0a80209a32de786ba1ee9edd0bdbf9e514882928
[gcc.git] / gcc / ChangeLog
1 2010-11-09 Richard Guenther <rguenther@suse.de>
2
3 PR tree-optimization/46355
4 * tree-loop-distribution.c (tree_loop_distribution): Do not
5 distribute loops without a single exit.
6
7 2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8
9 PR rtl-optimization/46237
10 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
11 saved hard regs if they might get partially clobbered.
12
13 2010-11-09 Paul Koning <ni1d@arrl.net>
14
15 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for
16 decrement.
17
18 2010-11-09 Richard Guenther <rguenther@suse.de>
19
20 PR tree-optimization/46177
21 * tree-loop-distribution.c (prop_phis): Remove.
22 (generate_builtin): Re-use the old loop exit edge to avoid
23 needing to update PHI nodes.
24
25 2010-11-09 Joern Rennecke <amylaar@spamcop.net>
26
27 * ix86_expand_split_stack_prologue (args_size): Change type to
28 unsigned HOST_WIDE_INT.
29
30 PR target/44755
31 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
32 * config/t-pnt16-warn: New file.
33 * config/picochip/picochip.c (picochip_emit_stack_allocate):
34 Use add_reg_note.
35 (picochip_emit_save_register): Likewise.
36 (picochip_emit_restore_register): Remove variable insn.
37 (picochip_legitimize_address): Don't use C++ style comments.
38 (picochip_legitimize_reload_address): Likewise.
39 (reorder_var_tracking_notes): Remove variable vliw_start.
40 (picochip_reorg): Cast first arguemnt to emit_note_after to
41 enum insn_note.
42 (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
43 (picochip_expand_builtin_3op): Likewise.
44 (picochip_expand_builtin_2opvoid): Likewise.
45 (picochip_expand_array_get, picochip_expand_array_put): Likewise.
46 (picochip_expand_array_testport): Likewise.
47 (picochip_init_builtins): Remove unused variables.
48 * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
49 to unsigned long, and output it as such.
50 (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
51 * config/picochip/picochip.md (movhicc): Remove nonsense statement.
52 (schedType): Cast result of picochip_schedule_type to
53 enum attr_schedType.
54
55 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
56
57 PR bootstrap/46392
58 * gengtype-parse.c (type): Call get_input_file_name to get
59 file name.
60
61 2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
62
63 * tree.h (contains_placeholder_p): Fix comment.
64 (type_contains_placeholder_p): Adjust comment.
65 * tree.c (contains_placeholder_p): Fix comment.
66 (type_contains_placeholder_1): Do not recurse on pointed-to types and
67 adjust comment.
68 (type_contains_placeholder_p): Add comment.
69
70 2010-11-09 Paul Koning <ni1d@arrl.net>
71
72 * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
73 output of byte values.
74
75 2010-11-09 Jakub Jelinek <jakub@redhat.com>
76
77 PR middle-end/46360
78 * tree-ssa-propagate.c (update_call_from_tree): Fix for use
79 not in SSA mode.
80
81 2010-11-09 Richard Guenther <rguenther@suse.de>
82
83 PR middle-end/46221
84 * varasm.c (compute_visible_aliases): New function.
85 (remove_unreachable_alias_pairs): Aliases make a target available
86 even though we reclaimed the cgraph node.
87 (finish_aliases_1): Likewise.
88 * Makefile.in (varasm.o): Add pointer-set.h dependency.
89
90 2010-11-09 Nick Clifton <nickc@redhat.com>
91
92 * config/mn10300/mn10300-modes.def: New file.
93
94 2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
95 Jeremie Salvucci <jeremie.salvucci@free.fr>
96
97 * gengtype.c (get_output_file_name): Declaration moved to
98 gengtype.h.
99 (plugin_files, get_file_basename, get_file_realbasename)
100 (get_file_langdir, error_at_line, gt_files, this_file)
101 (system_h_file, read_input_list, create_field_all)
102 (get_file_srcdir_relative_path, get_file_basename)
103 (get_file_langdir, get_file_gtfilename)
104 (get_output_file_with_visibility, get_output_file_name)
105 (struct flist, put_mangled_filename, walk_type)
106 (put_mangled_filename, finish_root_table, write_roots): Use
107 input_file-s.
108 (lang_dir_names, num_lang_dirs): Remove static.
109 (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
110 (main): Use input_file-s.
111
112 * gengtype.h: (struct input_file_st, input_file): New type.
113 (struct fileloc): Use it.
114 (gt_files, num_gt_files, this_file, system_h_file)
115 (input_file_by_name, get_file_srcdir_relative_path): Use
116 input_file.
117 (get_input_file_name): New function.
118 (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
119 use input_file.
120 (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
121 (get_output_file_name): Ditto.
122
123 * gengtype-lex.l (yybegin): Use input_file.
124
125 * gengtype-parse.c (parse_error): Use input_file.
126
127 2010-11-08 Xinliang David Li <davidxl@google.com>
128
129 PR tree-optimization/46316
130 * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
131 * double-int.h (double_int_mul_with_sign): New function.
132 * double-int.c (double_int_mul_with_sign): New function.
133
134 2010-11-08 Paul Koning <ni1d@arrl.net>
135
136 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
137
138 2010-11-08 Paul Koning <ni1d@arrl.net>
139
140 * config/pdp11/pdp11.md (negsi2): Fix wrong code.
141
142 2010-11-08 Paul Koning <ni1d@arrl.net>
143
144 * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
145 to 8 bits.
146
147 2010-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
148
149 PR target/46378
150 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
151 turn on ISA 2.04 rounding instructions for power5.
152
153 * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
154 not ISA 2.02.
155
156 PR target/45585
157 * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
158 in FPR registers.
159 (movdi_low_st): Ditto.
160
161 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
162 Richard Henderson <rth@redhat.com>
163
164 PR target/44758
165 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
166 (attribute acc_group): Cast value to enum attr_acc_group.
167 (*movdi_nodouble+6): Use gen_int_mode.
168 * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
169 if RTX_CODE is defined or not.
170 * config/frv/frv.c (enum frv_io_type): New enum, broken out of
171 struct frv_io.
172 (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
173 (frv_frame_access, frv_expand_prologue): Remove unused variables.
174 (frv_expand_block_clear): Likewise.
175 (frv_trampoline_init): Use LCT_NORMAL.
176 (struct frv_packet_group): New struct, broken out of type of
177 frv_packet.
178 (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
179 use cast in loop counter increment.
180 (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
181 assigning to io->type.
182 (bdesc_set): Use rtx_code UNKNOWN in initializer.
183 (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
184 (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
185 (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
186 (frv_read_argument): Use expand_normal.
187
188 PR target/44757
189 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
190 lm32_legitimate_constant_p.
191 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
192 * config/lm32/lm32.c (gen_int_relational): Make new block for
193 LE / LT / LEU / LTU case. Declare variables at start of block.
194 (lm32_block_move_inline): Use XALLOCAVEC.
195
196 2010-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
197
198 * config/i386/i386.c (ix86_function_arg_boundary): Fix warning
199 message.
200
201 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
202
203 * gengtype (get_output_file_for_structure): Ensure type is union
204 or struct.
205 (write_splay_tree_allocator_def): Use
206 get_output_file_with_visibility.
207
208 2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
209
210 * config/s390/s390.c (s390_handle_arch_option): Set type and flags
211 to defined values in case of an error.
212 (s390_option_override): Skip further processing if the -march
213 parameter wasn't recognized.
214
215 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
216
217 * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
218 assert that REG is a hard register number before using it as an index.
219
220 PR bootstrap/46358
221 * config/i386/i386.c (ix86_expand_split_stack_prologue):
222 Avoid warnings when HOST_WIDE_INT is 32 bit.
223
224 2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
225
226 PR target/46208
227 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
228 (sparc_promote_prototypes): Likewise.
229 (sparc_promote_function_mode): Promote in 32-bit mode as well.
230 (sparc_return_in_memory): Remove superfluous parentheses.
231 (sparc_struct_value_rtx): Fix long lines.
232 (sparc_function_value_1): Promote in 32-bit mode as well.
233
234 2010-11-08 Andrey Belevantsev <abel@ispras.ru>
235
236 PR rtl-optimization/45352
237 * sel-sched.c (find_best_expr): Do not set pneed_stall when
238 the variable_issue hook is not implemented.
239 (fill_insns): Remove dead variable stall_iterations.
240 (init_seqno_1): Force EBB start for resetting sched cycles on any
241 successor blocks of the rescheduled region.
242 (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
243 (reset_sched_cycles_in_current_ebb): Add debug printing.
244 New variable issued_insns. Advance state when we have issued
245 issue_rate insns.
246
247 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
248
249 * gengtype (main): Get here's position using POS_HERE macro for
250 do*typedef calls.
251
252 2010-11-07 Ian Lance Taylor <iant@google.com>
253
254 PR target/46089
255 * config/i386/i386.c (split_stack_fn_large): New static variable.
256 (ix86_expand_split_stack_prologue): Handle large model.
257
258 2010-11-07 Andreas Schwab <schwab@linux-m68k.org>
259
260 * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
261 all possible addressing modes.
262
263 2010-11-07 Uros Bizjak <ubizjak@gmail.com>
264
265 PR tree-optimization/46346
266 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
267
268 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
269
270 * config/mips/mips.c: Revert previous patch.
271 * config/mips/mips.md: Likewise.
272
273 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
274
275 * config/mips/mips.c (mips_rtx_costs): Handle FMA.
276 * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
277 (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
278 (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
279 (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
280 to use FMA.
281 (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
282 (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
283 (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
284 (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
285
286 2010-11-06 Simon Martin <simartin@users.sourceforge.net>
287
288 PR c/43384
289 * c-decl.c (lookup_label): Labels can only be referenced in a
290 function's scope.
291 (store_parm_decls_oldstyle): Skip erroneous parameters.
292
293 2010-11-06 Anatoly Sokolov <aesok@post.ru>
294
295 * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
296 LIBCALL_VALUE): Remove macros.
297 * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
298 TARGET_FUNCTION_VALUE_REGNO_P): Define.
299 (fr30_function_value_regno_p, fr30_function_value,
300 fr30_libcall_value): New functions.
301
302 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
303
304 PR middle-end/46314
305 * target.def (generate_internal_label): New asm_out hook.
306 * output.h (default_generate_internal_label): Declare.
307 * varasm.c (default_generate_internal_label): Define.
308
309 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
310
311 PR target/44981
312 * doc/extend.tex (format): Document NSString extension.
313 (format_arg): Likewise.
314 (Darwin Format Checks): New section.
315 * doc/tm.texi: Document string object hooks (generated).
316 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
317 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
318 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
319 * target.def (objc_construct_string_object): Rename, amend
320 documentation.
321 (string_object_ref_type_p): New hook.
322 (check_string_object_format_arg): New hook.
323 * c-parser.c (c_parser_attributes): Allow objective-c class names as
324 attribute identifiers.
325 * config/darwin-c.c (darwin_cfstring_ref_p): New.
326 (darwin_check_cfstring_format_arg): New.
327 (darwin_additional_format_types): New.
328 * config/darwin-protos.h (darwin_cfstring_ref_p) New.
329 (darwin_check_cfstring_format_arg): New.
330 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
331 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
332 (TARGET_N_FORMAT_TYPES): New.
333 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
334
335 2010-11-06 Eric Botcazou <ebotcazou@adacore.com>
336 Pascal Obry <obry@adacore.com>
337
338 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33
339 in 64-bit mode and 17 otherwise.
340
341 2010-11-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
342
343 PR debug/45939
344 * var-tracking.c (emit_note_insn_var_location): Make sure that
345 call related var location notes come before the normal ones.
346
347 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
348
349 PR target/46326
350 * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
351 in the last change.
352
353 2010-11-05 Ian Lance Taylor <iant@google.com>
354
355 * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
356
357 2010-11-05 Jakub Jelinek <jakub@redhat.com>
358
359 PR c/44772
360 * c-decl.c (warn_cxx_compat_finish_struct): Don't call
361 pointer_set_contains if DECL_NAME is NULL.
362
363 2010-11-05 Ian Lance Taylor <iant@google.com>
364
365 PR target/46084
366 * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
367 request enough additional space for alignment, and force alignment.
368
369 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
370
371 * config/i386/i386.c (legitimate_pic_address_disp_p):
372 Handle UNSPEC_PCREL.
373 (ix86_legitimate_address_p): Likewise.
374 (legitimize_pic_address): Likewise.
375 (output_pic_addr_const): Likewise.
376 (ix86_delegitimize_address): Likewise.
377 (ix86_find_base_term): Likewise.
378 (memory_address_length): Likewise.
379 (x86_output_mi_thunk): Handle special case x64
380 for non local binding.
381 * config/i386/i386.md (UNSPEC_PCREL): New.
382 * config/i386/winnt.c (i386_pe_binds_local_p):
383 Allow weak symbol for x64 windows with non-local binding.
384
385 2010-11-05 Jakub Jelinek <jakub@redhat.com>
386
387 PR target/45670
388 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
389 instead of EXPAND_NORMAL for base expansion.
390
391 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
392
393 * config.gcc: Support --with-fpmath=avx for x86.
394 * config/i386/avxmath.h: New.
395 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
396
397 2010-11-05 Ian Lance Taylor <iant@google.com>
398
399 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
400 * gengtype.c (walk_type): Don't recognize descbits option.
401
402 2010-11-05 Joseph Myers <joseph@codesourcery.com>
403
404 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
405 WORD_SWITCH_TAKES_ARG): Remove.
406 * doc/options.texi (Args): Document.
407 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
408 * doc/tm.texi: Regenerate.
409 * opt-functions.awk (switch_flags): Handle Args.
410 * opts-common.c: Update comment on tm.h include.
411 (decode_cmdline_option): Handle options with multiple arguments.
412 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
413 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
414 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
415 CL_COMMON): Update values.
416 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
417 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
418 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
419 sectobjectsymbols, sectorder, segcreate, segprot): New.
420
421 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
422 Uros Bizjak <ubizjak@gmail.com>
423
424 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
425 256bit AVX register is used.
426 (ix86_expand_vector_move_misalign): Likewise.
427 (ix86_expand_vector_move): Replace use_avx256_p with
428 VALID_AVX256_REG_MODE.
429
430 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
431
432 PR target/44750
433 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
434 change. Set $@-warn.o to -Wno-error.
435
436 PR bootstrap/44756
437 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
438 comparing it to a signed value.
439
440 PR bootstrap/44756
441 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
442 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
443 to i.
444
445 PR target/44754
446 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
447 (m32c_function_arg). Add comma between arguments two and three.
448 (m32c_promote_prototypes): Remove declaration.
449 (current_function_special_page_vector): Likewise.
450 (m32c_regno_reg_class): Change return type to enum reg_class.
451 (m32c_pushm_popm): Use add_reg_note.
452 (m32c_push_rounding): Change return type to unsigned int.
453 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
454 enum reload_type.
455 (m32c_insert_attributes): Constify variable name.
456 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
457 (m32c_prepare_shift): Remove variable lref.
458 (m32c_expand_movcc): Remove variable cmp.
459 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
460 (m32c_compare_redundant): Remove variable op2.
461 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
462 (m32c_pragma_memregs): Assign the number to target_memregs.
463 (m32c_pragma_address): Remove variable var_str.
464 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
465 enum reg_class.
466 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
467 * config/m32c/bitops.md (andsi3): Add default case to switch.
468 (iorsi3, xorsi3): Likewise.
469 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
470 * config/m32c/jump.md (call, call_value): Likewise.
471 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
472 (m32c_regno_reg_class): Likewise.
473 (current_function_special_page_vector): Declare.
474
475 2010-11-05 Jakub Jelinek <jakub@redhat.com>
476
477 * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
478
479 PR tree-optimization/46099
480 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
481 if it is NULL and uid wasn't found in the hash table. Just fold the
482 result if it is NULL otherwise. Insert other potentially needed
483 stmts right before current stmt instead of on the entry edge.
484 (struct elv_data): Add gsi and reset fields.
485 (eliminate_local_variables_1): Adjust caller. If take_address_of
486 failed for debug stmt, set dta->reset and return.
487 (eliminate_local_variables_stmt): Change STMT argument for GSI,
488 pass GSI through to the callback, handle resetting of debug stmts.
489 (eliminate_local_variables): Adjust caller. Process debug stmts
490 in second phase.
491
492 PR middle-end/43690
493 * gimplify.c (gimplify_asm_expr): If a "m" input is a
494 {pre,post}{in,de}crement, fail.
495
496 PR debug/46307
497 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
498 * tree-pretty-print.c (dump_generic_node): Likewise.
499 (op_code_prio): Likewise.
500 * cfgexpand.c (expand_debug_expr): Likewise.
501
502 2010-11-04 Paul Koning <ni1d@arrl.net>
503
504 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
505 constraints.
506
507 2010-11-04 Chao-ying Fu <fu@mips.com>
508
509 * configure.ac: Test assembler support for DSP Rev1 mult.
510 * configure: Regenerate.
511 * config.in: Regenerate.
512 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
513 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
514 (CODE_FOR_mips_multu): New define.
515 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
516 dspr2_32 to dsp_32.
517 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
518 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
519 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
520 New define_expand patterns.
521 * config/mips/constraints.md (ka): Update the constraint to test
522 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
523 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
524 mips_multu): Delete.
525 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
526 Change target constraint to "ka".
527 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
528 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
529 Emit the accumulator destination when ISA_HAS_DSP_MULT.
530 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
531 Emit the accumulator destination when ISA_HAS_DSP_MULT.
532 (<u>maddsidi4): Likewise.
533 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
534 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
535
536 2010-11-04 Paul Koning <ni1d@arrl.net>
537
538 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
539
540 2010-11-04 Paul Koning <ni1d@arrl.net>
541
542 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
543
544 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
545
546 Fixed using the Objective-C 2.0 dot-syntax with class names.
547 * c-parser.c (c_parser_next_token_starts_declspecs): In
548 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
549 (c_parser_next_token_starts_declaration): Same.
550 (c_parser_postfix_expression): Parse the Objective-C 2.0
551 dot-syntax with a class name.
552
553 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
554
555 * final.c (compute_alignments): Compute/free loop info all the time.
556 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
557 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
558 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
559 * config/rs6000/rs6000.c (cfgloop.h): Include.
560 (can_override_loop_align): New.
561 (rs6000_option_override_internal): Set it.
562 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
563 (rs6000_loop_align): New function.
564 (rs6000_loop_align_max_skip): Likewise.
565
566 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
567
568 PR driver/45703
569 * collect2.c (main): Print --help output to stdout. Do not
570 exit right away, so ld --help is appended. Add empty lines
571 to separate output suitably.
572
573 2010-11-04 Jakub Jelinek <jakub@redhat.com>
574
575 PR tree-optimization/46233
576 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
577 after calling analyze_function, not before.
578
579 PR target/46234
580 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
581 instead of build_va_arg_indirect_ref.
582 * config/spu/spu.c (spu_va_start): Likewise.
583 * config/s390/s390.c (s390_va_start): Likewise.
584
585 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
586
587 PR middle-end/46292
588 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
589 if the innermode is not vector mode, determine the mode of a subreg
590 by using mode_for_size of inner_size.
591
592 2010-11-04 Richard Guenther <rguenther@suse.de>
593
594 PR rtl-optimization/46183
595 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
596 (execute_rtl_pre): Likewise.
597 (execute_rtl_hoist): Likewise.
598
599 2010-11-04 Richard Guenther <rguenther@suse.de>
600
601 PR tree-optimization/46068
602 * ipa-split.c (consider_split): Remove gcc_unreachable.
603
604 2010-11-04 Richard Guenther <rguenther@suse.de>
605
606 * tree-nested.c (build_addr): Use build_fold_addr_expr.
607
608 2010-11-04 Richard Guenther <rguenther@suse.de>
609
610 PR tree-optimization/45991
611 * gimplify.c (force_gimple_operand_1): Use the provded test
612 function in the initial test.
613
614 2010-11-04 Jeff Law <law@redhat.com>
615
616 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
617 of readonly memory equivalances for const/pure calls.
618
619 2010-11-04 Richard Guenther <rguenther@suse.de>
620
621 PR tree-optimization/45733
622 * tree-vect-stmts.c (reverse_vec_elements): Honor the
623 permute builtins function return type.
624
625 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
626
627 PR middle-end/44765
628 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
629 as an index, check it is not INVALID_REGNUM.
630
631 PR bootstrap/44756
632 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
633 unsignedp.
634 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
635
636 PR bootstrap/44756
637 * function.c (thread_prologue_and_epilogue_insns): Add
638 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
639
640 PR bootstrap/44756
641 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
642
643 PR target/44750
644 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
645 (pdp11_preferred_reload_class): Rename class to rclass.
646 (pdp11_preferred_output_reload_class): Likewise.
647 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
648 ALL_COMPILERFLAGS .
649 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
650
651 PR bootstrap/44756
652 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
653 iteration variables to enum machine_mode.
654
655 PR target/44751
656 * config/h8300/h8300.c: Include df.h.
657 (push, pop): Use add_reg_note.
658 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
659 (compute_a_shift_cc): Likewise.
660 (expand_a_shift): Argument code has type enum rtx_code.
661 (struct shift_insn): Member cc_valid has type enum attr_cc.
662 (struct shift_info) <cc_inline, cc_special>: Likewise.
663 enum attr_cc.
664 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
665 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
666
667 2010-11-04 Ira Rosen <irar@il.ibm.com>
668
669 PR tree-optimization/46213
670 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
671 MINUS_EXPR only if the first operand is reduction operand.
672
673 2010-11-04 Richard Guenther <rguenther@suse.de>
674 Richard Henderson <rth@redhat.com>
675
676 * tree.def (FMA_EXPR): New tree code.
677 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
678 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
679 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
680 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
681 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
682 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
683 (execute_optimize_widening_mul): Call it. Reorganize to allow
684 dead stmt removal. Move TODO flags ...
685 (pass_optimize_widening_mul): ... here.
686 * flag-types.h (enum fp_contract_mode): New enum.
687 * common.opt (flag_fp_contract_mode): New variable.
688 (-ffp-contract): New option.
689 * opts.c (common_handle_option): Handle it.
690 * doc/invoke.texi (-ffp-contract): Document.
691 * tree.h (fold_fma): Declare.
692 * builtins.c (fold_fma): New function.
693 (fold_builtin_fma): Likewise.
694 (fold_builtin_3): Call it for fma.
695 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
696 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
697 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
698 New expanders.
699 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
700 named patterns.
701 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
702 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
703 (fms_optab, fnma_optab, fnms_optab): New defines.
704 * gimplify.c (gimplify_expr): Handle binary truth expressions
705 explicitly. Handle FMA_EXPR.
706 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
707 operations.
708
709 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
710 Richard Guenther <rguenther@suse.de>
711
712 * passes.c (init_optimization_passes): Move veclower after SSA.
713 * tree-vect-generic.c (uniform_vector_p): New function.
714 (expand_vector_operations_1): Handle conversion.
715 (pass_lower_vector): Update SSA form.
716
717 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
718
719 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
720 plugin capabilities.
721 * configure: Regenerate.
722
723 2010-11-03 Xinliang David Li <davidxl@google.com>
724
725 PR target/46200
726 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
727 Adjust cbase if the use stmt is after iv update.
728
729 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
730
731 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
732
733 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
734
735 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
736 comment. Pass true to the last argument of output_stack_adjust.
737
738 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
739
740 PR target/46295
741 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
742 if 256bit AVX register is used.
743
744 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
745
746 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
747 xsmindp/xsmaxdp on VSX for single precision min/max.
748 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
749 (vsx_sminsf3): Ditto.
750
751 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
752
753 * combine.c (try_combine): Fix formatting issues, improve comments and
754 fix a pasto.
755
756 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
757
758 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
759 of the result before building binary expressions.
760
761 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
762
763 PR rtl-optimization/45865
764 * Makefile.in (df-problems.o): Revert revision 164552.
765 * basic-block.h (enum bb_flags): Likewise.
766 * cfgcleanup.c (block_was_dirty): Likewise.
767 (try_forward_edges): Likewise.
768 (try_crossjump_bb): Likewise.
769 (try_head_merge_bb): Likewise.
770 (try_optimize_cfg): Likewise.
771 (cleanup_cfg): Likewise.
772 * df-core.c (df_set_bb_dirty): Likewise.
773 * df-problems.c: Likewise.
774 (df_simulate_find_uses): Likewise.
775 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
776 (find_memory, find_memory_store): Likewise.
777 (can_move_insns_across): Likewise.
778 * df.h (can_move_insns_across): Likewise.
779 * ifcvt.c (find_memory): Likewise.
780 (dead_or_predicable): Likewise.
781
782 2010-11-03 Richard Guenther <rguenther@suse.de>
783
784 PR middle-end/46288
785 * predict.c (strip_predict_hints): Simply DCE builtin expect if
786 the result is unused.
787
788 2010-11-03 Jakub Jelinek <jakub@redhat.com>
789
790 PR tree-optimization/46009
791 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
792 cond_if_else_store_replacement if bb1 and bb2 have the same
793 single successor.
794 (cond_store_replacement): Use gimple_assign_single_p, don't
795 check if rhs is SSA_NAME or invariant. Call release_defs for
796 assign.
797 (cond_if_else_store_replacement): New function.
798
799 2010-11-03 Richard Guenther <rguenther@suse.de>
800
801 * opts.c (finish_options): Properly check for all WHOPR
802 flags before complaining about -flto-partition.
803
804 2010-11-04 Alan Modra <amodra@gmail.com>
805
806 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
807 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
808 TARGET_SECURE_PLT.
809 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
810 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
811 on input, "r" on output.
812
813 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
814
815 Implemented -fobjc-std=objc1 flag.
816 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
817 option.
818 * doc/standards.texi (Standards): Updated the section on
819 Objective-C; mention support for Objective-C 2.0 features and the
820 new -fstd-objc=objc1 flag to disable them.
821
822 2010-11-03 Richard Guenther <rguenther@suse.de>
823
824 PR middle-end/46241
825 * dwarf2out.c (scope_die_for): Properly detect global scope.
826
827 2010-11-03 Richard Guenther <rguenther@suse.de>
828
829 PR tree-optimization/46190
830 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
831 Properly compute peel iterations.
832
833 2010-11-03 Richard Guenther <rguenther@suse.de>
834
835 PR tree-optimization/46286
836 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
837 re-allocated vector data.
838
839 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
840
841 PR target/46285
842 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
843 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
844 is completed.
845
846 2010-11-03 Richard Guenther <rguenther@suse.de>
847
848 PR tree-optimization/46217
849 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
850 flag matches.
851 (execute_update_addresses_taken): Likewise.
852
853 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
854
855 PR bootstrap/44335
856 * targhooks.c (targhook_words_big_endian): New function.
857 (targhook_float_words_big_endian): Likewise.
858 * targhooks.h (targhook_words_big_endian): Declare.
859 (targhook_float_words_big_endian): Likewise.
860 * target.def (words_big_endian, float_words_big_endian): New hooks.
861
862 2010-11-03 Jakub Jelinek <jakub@redhat.com>
863
864 PR tree-optimization/46165
865 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
866 a normal call into noreturn call.
867
868 2010-11-03 Richard Guenther <rguenther@suse.de>
869
870 PR middle-end/46251
871 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
872 not INDIRECT_REFs.
873
874 2010-11-03 Jakub Jelinek <jakub@redhat.com>
875
876 PR tree-optimization/46107
877 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
878 if cfg_hook_duplicate_loop_to_header_edge failed.
879
880 2010-11-03 Ian Lance Taylor <iant@google.com>
881
882 PR lto/46273
883 * config.gcc: Don't set lto_binary_reader.
884 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
885 (Configuration): Mention --disable-lto. Remove --with-libelf
886 paragraph.
887
888 2010-11-03 Jakub Jelinek <jakub@redhat.com>
889
890 PR debug/46252
891 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
892 prev_real_insn.
893 * gcse.c (insert_insn_end_basic_block): Likewise.
894
895 PR rtl-optimization/46034
896 PR rtl-optimization/46212
897 PR rtl-optimization/46248
898 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
899 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
900 before i0dest -> i0src substitution and pass 1 instead of 0 as last
901 argument to subst on i2pat.
902
903 2010-11-02 Ian Lance Taylor <iant@google.com>
904
905 * configure.ac: Use AC_SYS_LARGEFILE.
906 * configure: Rebuild.
907 * config.in: Rebuild.
908
909 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
910
911 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
912 fold_convert.
913 * c-typeck.c (build_function_call_vec): Likewise.
914 * cfgexpand.c (expand_debug_expr): Likewise.
915 * cgraphunit.c (assemble_thunk): Likewise.
916 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
917 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
918 (fold_binary_loc, fold_ternary_loc): Likewise.
919 * gimple-fold.c (get_symbol_constant_value): Likewise.
920 * gimple-low.c (lower_builtin_setjmp): Likewise.
921 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
922 * gimplify.c (gimplify_init_constructor): Likewise.
923 * lambda.h (build_linear_expr): Likewise.
924 * omp-low.c (omp_reduction_init): Likewise.
925 * tree-inline.c (remap_ssa_name): Likewise.
926 * tree-object-size.c (compute_object_sizes): Likewise.
927 * tree-sra.c (init_subtree_with_zero): Likewise.
928 (sra_ipa_modify_assign): Likewise.
929 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
930 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
931 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
932 (undistribute_ops_list): Likewise.
933 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
934 * tree-vect-stmts.c (vectorizable_call): Likewise.
935 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
936 (build_zero_cst): Handle more cases directly. Update comment.
937
938 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
939
940 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
941 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
942
943 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
944 and call ix86_split_call_vzeroupper instead of
945 ix86_split_call_pop_vzeroupper.
946 (*call_pop_1_vzeroupper): Likewise.
947 (*sibcall_pop_1_vzeroupper): Likewise.
948 (*call_value_pop_0_vzeroupper): Likewise.
949 (*call_value_pop_1_vzeroupper): Likewise.
950 (*sibcall_value_pop_1_vzeroupper): Likewise.
951
952 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
953
954 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
955
956 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
957
958 * basic-block.h (insert_insn_end_bb_new): Delete.
959 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
960
961 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
962 H.J. Lu <hongjiu.lu@intel.com>
963
964 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
965 (ix86_split_call_pop_vzeroupper): Likewise.
966
967 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
968 (ix86_expand_call): Conditionally decorate calls with
969 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
970 (ix86_split_call_vzeroupper): New.
971 (ix86_split_call_pop_vzeroupper): Likewise.
972
973 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
974 (*call_pop_0_vzeroupper): New insn_and_split pattern.
975 (*call_pop_1_vzeroupper): Likewise.
976 (*sibcall_pop_1_vzeroupper): Likewise.
977 (*call_0_vzeroupper): Likewise.
978 (*call_1_vzeroupper): Likewise.
979 (*sibcall_1_vzeroupper): Likewise.
980 (*call_1_rex64_vzeroupper): Likewise.
981 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
982 (*call_1_rex64_large_vzeroupper): Likewise.
983 (*sibcall_1_rex64_vzeroupper): Likewise.
984 (*call_value_pop_0_vzeroupper): Likewise.
985 (*call_value_pop_1_vzeroupper): Likewise.
986 (*sibcall_value_pop_1_vzeroupper): Likewise.
987 (*call_value_0_vzeroupper): Likewise.
988 (*call_value_0_rex64_vzeroupper): Likewise.
989 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
990 (*call_value_1_vzeroupper): Likewise.
991 (*sibcall_value_1_vzeroupper): Likewise.
992 (*call_value_1_rex64_vzeroupper): Likewise.
993 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
994 (*call_value_1_rex64_large_vzeroupper): Likewise.
995 (*sibcall_value_1_rex64_vzeroupper): Likewise.
996
997 2010-11-02 Ian Lance Taylor <iant@google.com>
998
999 PR lto/46273
1000 * config.gcc: Revert last patch: set lto_binary_reader.
1001
1002 2010-11-02 Richard Guenther <rguenther@suse.de>
1003
1004 PR tree-optimization/46149
1005 * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
1006 non-indirect MEM_REF variants.
1007
1008 2010-11-02 Richard Guenther <rguenther@suse.de>
1009
1010 PR tree-optimization/46216
1011 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
1012 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
1013
1014 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1015
1016 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
1017 (*-*-osf*): Likewise.
1018 * configure: Regenerate.
1019
1020 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
1021
1022 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
1023 for Intel Core 2 and Core i7.
1024
1025 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
1026
1027 Model decoder of Core 2/i7 for multipass scheduling.
1028
1029 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
1030 New type to hold target-specific data for multipass scheduling.
1031 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
1032 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
1033 Core 2/i7.
1034 (core2i7_secondary_decoder_max_insn_size,)
1035 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
1036 New static variables.
1037 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
1038 ([_]ix86_first_cycle_multipass_data): New static variable.
1039 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
1040 Implement targetm.sched hooks.
1041 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
1042 of ...
1043 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
1044 Implement new targetm.sched hooks.
1045 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
1046 targetm.sched hook to install multipass scheduling hooks on demand.
1047
1048 * doc/tm.texi.in: Document new targetm.sched hooks.
1049 * doc/tm.texi: Regenerate.
1050
1051 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
1052 (first_cycle_multipass_data_t): New typedef.
1053 (struct choice_entry: target_data): New field.
1054 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
1055 to allow target model restrictions not represented in DFA.
1056 (choose_ready, schedule_block): Update.
1057 (sched_extend_ready_list, sched_finish_ready_list): Call new target
1058 hooks to initialize target-specific data for multipass scheduling.
1059 * sched-int.h (max_issue): Update declaration.
1060 * sel-sched.c (choose_best_insn): Update.
1061 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
1062 (first_cycle_multipass_{init, fini}): Define and document new
1063 targetm.sched hooks.
1064
1065 2010-11-02 Richard Guenther <rguenther@suse.de>
1066
1067 PR tree-optimization/46184
1068 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
1069 input vector type from the reduction operand as well.
1070
1071 2010-11-02 Richard Guenther <rguenther@suse.de>
1072
1073 PR tree-optimization/46177
1074 * tree-loop-distribution.c (prop_phis): Use
1075 mark_virtual_phi_result_for_renaming.
1076
1077 2010-11-02 Martin Jambor <mjambor@suse.cz>
1078
1079 PR middle-end/46120
1080 * tree.c (get_binfo_at_offset): Bail out on artificial
1081 fields. Identify primary bases according to their offsets.
1082
1083 2010-11-02 Martin Jambor <mjambor@suse.cz>
1084
1085 PR tree-optimization/45875
1086 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
1087 (gimple_get_relevant_ref_binfo): Detect primary bases according to
1088 their field offset.
1089
1090 2010-11-02 Ian Lance Taylor <iant@google.com>
1091
1092 * doc/install.texi (Configuration): Note in two places that Java
1093 is not enabled by default.
1094
1095 2010-11-02 Ian Lance Taylor <iant@google.com>
1096
1097 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
1098 (Configuration): Mention --disable-lto. Remove --with-libelf
1099 paragraph.
1100
1101 2010-11-02 Ian Lance Taylor <iant@google.com>
1102
1103 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
1104 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
1105 LIBELFINC. Remove HAVE_libelf.
1106 * config.gcc: Don't set lto_binary_reader.
1107 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
1108 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
1109 (LIBS): Remove $(LIBELFLIBS).
1110 (INCLUDES): Remove $(LIBELFINC).
1111 * configure: Rebuild.
1112 * config.in: Rebuild.
1113
1114 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
1115
1116 * config/microblaze/microblaze-protos.h (function_arg): Delete.
1117 (function_arg_advance): Delete.
1118 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
1119 (FUNCTION_ARG): Delete.
1120 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
1121 (microblaze_function_arg_advance): ...this. Make static. Take a
1122 const_tree and a bool.
1123 (function-arg): Rename to...
1124 (microblaze_function_arg): ...this. Make static. Take a const_tree
1125 and a bool.
1126 (microblaze_expand_prologue): Call targetm.calls.function_arg and
1127 targetm.calls.function_arg_advance.
1128 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1129
1130 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
1131
1132 Merge from FSF "apple/trunk" branch.
1133
1134 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
1135 * config/darwin.opt: .. to here.
1136 (matt-stubs): New option.
1137 * config/i386/darwin.opt: Delete.
1138 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
1139 (MACHO_DYNAMIC_NO_PIC_P): New.
1140 (MACHOPIC_INDIRECT): New.
1141 (MACHOPIC_PURE): New.
1142 * config/i386/darwin.h (DARWIN_X86) Define to 1.
1143 (MACHOPIC_ATT_STUB): New.
1144 (CC1_SPEC): Do not remove mdynamic-no-pic.
1145 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
1146 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
1147 (FUNCTION_PROFILER): Correct over-length line.
1148 (SUBTARGET_OVERRIDE_OPTIONS): New.
1149 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
1150 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
1151 (legitimate_constant_p): Handle mdynamic-no-pic.
1152 (ix86_legitimate_address_p): Likewise.
1153 (ix86_legitimize_address): Likewise.
1154 (ix86_expand_move): Likewise.
1155 (machopic_output_stub): Update for ATT-style stubs and
1156 mdynamic-no-pic.
1157 * config/darwin-protos.h (machopic_symbol_defined_p): New.
1158 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
1159 TARGET_DYNAMIC_NO_PIC: Remove.
1160 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
1161 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
1162 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
1163 Remove handling of mdynamic-no-pic.
1164 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
1165 Define if required.
1166 (machopic_symbol_defined_p): Do not try to use current_function_decl
1167 when generating _get_pc thunks within stubs.
1168 (machopic_indirect_data_reference): Rework for direct conditionals
1169 rather than #ifdefs, add x86 mdynamic-no-pic
1170 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
1171 defined value.
1172 (darwin_override_options): Handle mdynamic-no-pic here.
1173 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
1174 (machopic_lazy_symbol_ptr3_section): New.
1175 (machopic_picsymbol_stub2_section): New.
1176 (machopic_picsymbol_stub3_section): New.
1177 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
1178 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
1179 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
1180 Moved common definition from x86 and rs6000.
1181 (MACHO_DYNAMIC_NO_PIC_P): Override value.
1182 (MACHOPIC_INDIRECT): Likewise.
1183 (MACHOPIC_PURE): Likewise.
1184 * config.gcc (x86-darwin-*): Remove darwin.opt.
1185
1186 2010-11-02 Jakub Jelinek <jakub@redhat.com>
1187
1188 PR debug/46255
1189 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
1190 instead of gsi_last_bb.
1191
1192 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
1193 Maxim Kuvyrkov <maxim@codesourcery.com>
1194
1195 * config/i386/i386.c (cpu_names): Add "corei7".
1196 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
1197
1198 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
1199 Maxim Kuvyrkov <maxim@codesourcery.com>
1200
1201 Tune alignment for Intel Core i7
1202
1203 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
1204 (enum processor_type): Update comment. Add entries for Core i7.
1205 * config/i386-c.c (ix86_target_macros_internal): Update.
1206 * config/i386.c (m_COREI7{_32,_64}): New macros.
1207 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
1208 (processor_target_table): Tune alignment for Core i7.
1209 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
1210
1211 * doc/invoke.texi: Document "corei7" option value.
1212
1213 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
1214 Maxim Kuvyrkov <maxim@codesourcery.com>
1215 H.J. Lu <hjl.tools@gmail.com>
1216
1217 Basic support for Intel Core i7
1218
1219 * i386.c (ix86_option_override_internal): Add entry for corei7, use
1220 generic tuning. Use generic32 when compiling for 32-bit ABI.
1221
1222 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
1223
1224 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
1225 sections and call darwin_asm_dwarf_section() to handle them.
1226 (darwin_asm_dwarf_section): New.
1227 (darwin_file_start): Remove code emitting dwarf section symbols.
1228
1229 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
1230
1231 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
1232 explicitly disable stack protection when building libgcc.
1233 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
1234
1235 2010-11-01 Jason Merrill <jason@redhat.com>
1236
1237 * fold-const.c (fold_indirect_ref_1): Handle folding
1238 POINTER_PLUS_EXPR to ARRAY_REF.
1239
1240 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
1241
1242 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
1243 (sh_delegitimize_address): New function.
1244
1245 2010-11-01 Joseph Myers <joseph@codesourcery.com>
1246
1247 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
1248 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
1249 (CC1_SPEC): Don't handle -target.
1250 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
1251 options.
1252 * config/darwin.opt (Zallowable_client, Zbundle_loader,
1253 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
1254 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
1255 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
1256 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
1257 Zweak_reference_mismatches, client_name, compatibility_version,
1258 current_version, dylinker_install_name, pagezero_size,
1259 read_only_relocs, seg1addr, segs_read_only_addr,
1260 segs_read_write_addr, sub_library, sub_umbrella): New.
1261 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
1262 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
1263 * config/freebsd.opt: New.
1264 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
1265 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
1266 * config/rpath.opt: New.
1267 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
1268 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
1269 Use rpath.opt.
1270
1271 2010-11-01 Joseph Myers <joseph@codesourcery.com>
1272
1273 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
1274 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
1275 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
1276 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
1277 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
1278 Document that options in .opt files do not need to be included.
1279 * doc/tm.texi: Regenerate.
1280 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
1281 * opts-common.c: Update comment on tm.h include.
1282 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
1283 * system.h (SWITCH_TAKES_ARG): Poison.
1284 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
1285 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
1286 in darwin.opt.
1287 (LINK_COMMAND_SPEC_A): Don't include %{x}.
1288 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1289 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
1290 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
1291 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1292 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
1293 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
1294 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
1295 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
1296 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1297 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
1298 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
1299 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
1300 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
1301 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
1302 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
1303 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
1304 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
1305 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
1306 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
1307 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
1308 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
1309 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
1310 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1311
1312 2010-11-01 Paul Koning <ni1d@arrl.net>
1313
1314 * config/pdp11/pdp11.md: Use iterators.
1315 (addqi3, subqi3, iorsi3, xorsi3): Delete.
1316
1317 2010-11-01 Steve Ellcey <sje@cup.hp.com>
1318
1319 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
1320 GCC_INSN_FLAGS_H.
1321 * libgcov.c (__gcov_indirect_call_profiler): Set
1322 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
1323 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
1324
1325 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
1326
1327 PR tree-optimization/46259
1328
1329 Revert:
1330 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
1331 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1332 build_vector_from_val.
1333
1334 2010-11-01 DJ Delorie <dj@redhat.com>
1335
1336 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
1337 as well as an assertion.
1338
1339 2010-11-01 Paul Koning <ni1d@arrl.net>
1340
1341 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
1342 complex modes in memory.
1343
1344 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
1345
1346 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
1347
1348 2010-11-01 Jakub Jelinek <jakub@redhat.com>
1349
1350 PR target/45250
1351 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
1352 (cfa_base_offset): New variable.
1353 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
1354 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
1355 is NULL.
1356 (vt_init_cfa_base): Initialize cfa_base_offset.
1357
1358 2010-11-01 Alan Modra <amodra@gmail.com>
1359
1360 PR target/46030
1361 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
1362 and savres_strategy.
1363 (stack_info): New file scope var.
1364 (rs6000_init_machine_status): Init stack_info.
1365 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
1366 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1367 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
1368 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
1369 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
1370 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
1371 (rs6000_savres_strategy): Rewrite.
1372 (rs6000_stack_info): Use "stack_info" in place of local "info".
1373 Return cached stack info when reload_completed unless ENABLE_CHECKING
1374 in which case confirm newly calculated stack info matches old info.
1375 Delay calculation of lr_save_p, set it for out of line gp save/restore
1376 as well as fp. Call rs6000_savres_strategy from here..
1377 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
1378 (rs6000_output_function_prologue): Use info->savres_strategy to
1379 determine whether fp save/restore externs need to be emitted.
1380
1381 2010-10-31 Jason Merrill <jason@redhat.com>
1382
1383 * tree.h (EXPR_LOC_OR_HERE): New macro.
1384 * builtins.c (c_strlen): Use it.
1385 * c-decl.c (build_enumerator): Likewise.
1386 * gimplify.c (internal_get_tmp_var): Likewise.
1387 (shortcut_cond_expr): Likewise.
1388 (gimplify_one_sizepos): Likewise.
1389
1390 2010-10-31 Richard Henderson <rth@redhat.com>
1391
1392 * config/i386/cygming.h (TARGET_SEH): New.
1393 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
1394 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
1395 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
1396 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
1397 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
1398 (ASM_DECLARE_FUNCTION_SIZE): New.
1399 * config/i386/i386-protos.h: Update.
1400 * config/i386/i386.c (ix86_option_override_internal): Enable
1401 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
1402 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
1403 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
1404 (ix86_compute_frame_layout): For SEH, disable
1405 use_fast_prologue_epilogue, move frame pointer to the end of
1406 the frame. Initialize hfp_save_offset.
1407 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
1408 at end of prologue for SEH.
1409 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
1410 emit blockage at beginning of epilogue.
1411 (ix86_expand_binary_operator): After reload, emit LEA if needed.
1412 (ix86_output_call_insn): New.
1413 * config/i386/i386.h (TARGET_SEH): New.
1414 (struct machine_function): Add member seh.
1415 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
1416 * config/i386/winnt.c (struct seh_frame_state): New.
1417 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
1418 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
1419 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
1420 i386_pe_start_function, i386_pe_end_function): New.
1421
1422 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
1423 as CFA_STORE in rules 12 and 13.
1424
1425 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
1426
1427 PR tree-optimization/46142
1428 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
1429 accommodate third function argument.
1430
1431 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
1432
1433 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
1434
1435 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
1436
1437 * fold-const.c (build_zero_vector): Use build_vector_from_val.
1438 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1439 (get_initial_def_for_reduction): Likewise.
1440 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1441 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1442 * tree.c (build_one_cst): Likewise.
1443 (build_vector_from_val): Use types_compatible_p for assert.
1444
1445 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
1446
1447 * emit-rtl.c (mark_used_flags): New function.
1448 (set_used_flags, reset_used_flags): Call it.
1449
1450 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
1451
1452 PR middle-end/44569
1453 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
1454 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
1455
1456 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
1457
1458 PR target/46195
1459 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
1460 (ix86_compat_aligned_value_p): This.
1461 (ix86_old_function_arg_boundary): Renamed to ...
1462 (ix86_compat_function_arg_boundary): This. Updated.
1463 (ix86_contains_aligned_value_p): New.
1464 (ix86_function_arg_boundary): Align long double parameters on
1465 stack to 4byte in 32bit.
1466
1467 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1468
1469 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1470 * c-parser.c (c_parser_objc_at_property_declaration): Removed
1471 parsing of RID_COPIES and RID_IVAR. Updated call to
1472 objc_add_property_declaration.
1473 * c-typecheck.c (build_component_ref): Call
1474 objc_maybe_build_component_ref instead of objc_build_setter_call.
1475 Use objc_is_property_ref to improve Objective-C checks.
1476 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
1477 of objc_build_getter_call.
1478
1479 2010-10-29 Paul Koning <ni1d@arrl.net>
1480
1481 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
1482 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
1483 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
1484 (REG_OK_STRICT): Move description.
1485
1486 2010-10-29 Paul Koning <ni1d@arrl.net>
1487
1488 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
1489
1490 2010-10-29 Paul Koning <ni1d@arrl.net>
1491
1492 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
1493
1494 2010-10-29 Paul Koning <ni1d@arrl.net>
1495
1496 PR/41822
1497 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
1498
1499 2010-10-29 Richard Henderson <rth@redhat.com>
1500
1501 PR rtl-opt/46226
1502 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
1503 for asm goto.
1504
1505 2010-10-29 Paul Koning <ni1d@arrl.net>
1506
1507 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
1508 register to register move.
1509
1510 2010-10-29 Paul Koning <ni1d@arrl.net>
1511
1512 * config/pdp11/pdp11.c (print_operand_address): Correct handling
1513 of integer constant addresses, delete vax-only logic.
1514
1515 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
1516
1517 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
1518 a conditional expression.
1519
1520 2010-10-29 Paul Koning <ni1d@arrl.net>
1521
1522 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
1523 instruction encoding.
1524
1525 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1526 Andrew Pinski <pinskia@gmail.com>
1527
1528 * tree.h (build_vector_from_val): Declare.
1529 * tree.c (build_vector_from_val): New function.
1530 * c-typeck.c (build_binary_op): Handle vector shifting.
1531 * doc/extend.texi: Description of the vector shifting operation.
1532
1533 2010-10-29 Paul Koning <pkoning@equallogic.com>
1534
1535 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
1536 pdp11_secondary_memory_needed): Declare.
1537 * config/pdp11/predicates.md (float_operand): New predicate.
1538 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
1539 (cbranchdf4, movdf): Change predicate.
1540 (movsf): Handle FPU register case.
1541 (truncdfsf2, extendsfdf2): Add FPU register case.
1542 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
1543 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
1544 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1545 (pdp11_register_move_cost): Update cost matrix.
1546 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
1547 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
1548 pdp11_secondary_memory_needed): New function.
1549 (pdp11_return_in_memory): Add other float types.
1550 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
1551 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
1552 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
1553 REGISTER_MOVE_COST): Delete.
1554 (BASE_RETURN_VALUE_REG): Add other float types.
1555
1556 2010-10-29 Nick Clifton <nickc@redhat.com>
1557
1558 * doc/invoke.texi: Document -mam34 and -mtune options.
1559 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
1560 (mn10300_tune_cpu): New variable.
1561 (mn10300_handle_option): Handle -mam34 and -mtune options.
1562 (mn10300_option_override): Convert tune string into tune cpu variable.
1563 (mn10300_legitimate_constant_p): Delete unused local variable.
1564 (is_load_insn): New function.
1565 (is_store_insn): New function.
1566 (mn10300_adjust_schedule_cost): New function.
1567 (TARGET_SCHED_ADJUST_COST): Define.
1568 * config/mn10300/mn10300.opt (mam34): New option.
1569 (mtune): New option.
1570 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
1571 (enum processor_type): Add AM34.
1572 (TARGET_AM34): Define.
1573 * config/mn10300/mn10300.md (attr cpu): Add am34.
1574 Add pipeline description.
1575 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
1576 Remove unneeded alternatives. Add timing attribute.
1577 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
1578 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
1579 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
1580 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
1581 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
1582 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
1583 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
1584 float_conditional_branch, jump, indirect_jump, tablejump,
1585 call_internal, call_value_internal, zero_extendqisi2_am33,
1586 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
1587 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
1588 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
1589 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
1590 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
1591 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
1592 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
1593 return_internal_regs, store_movm, return, call_next_insn):
1594 Add timing attribute.
1595 (am33_subsi3): Add missing clobber of CC_REG.
1596 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
1597 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
1598 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
1599 extendqisi2): Fix predicates.
1600 (call_internal, call_internal_value): Separate alternatives.
1601 * config/mn10300/t-mn10300: Add AM34 multilib.
1602
1603 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
1604
1605 * config/sh/sh.c (sh_promote_function_mode): Use
1606 default_promote_function_mode if !sh_promote_prototypes.
1607
1608 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
1609
1610 * recog.c (split_all_insns): Remove dead code.
1611
1612 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1613
1614 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1615
1616 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1617
1618 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1619 (FUNCTION_ARG_ADVANCE): Delete.
1620 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
1621 functions.
1622 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
1623 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1624 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1625
1626 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1627
1628 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
1629 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1630 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
1631 Take a const_tree and a bool.
1632 (mcore_function_arg_advance): New function.
1633 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1634
1635 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1636
1637 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
1638 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1639 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
1640 Take a const_tree and a bool.
1641 (mcore_function_arg_advance): New function.
1642 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1643
1644 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1645
1646 * config/h8300/h8300-protos.h (function_arg): Delete.
1647 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1648 * config/h8300/h8300.c (function_arg): Rename to...
1649 (h8300_function_arg): ...this. Make static. Take a const_tree and
1650 a bool.
1651 (h8300_function_arg_advance): New function.
1652 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1653
1654 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1655
1656 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
1657 to...
1658 * config/arc/arc.c (arc_function_arg): ...here and...
1659 (arc_function_arg_advance): ...here. New functions.
1660 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1661
1662 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1663
1664 * config/crx/crx-protos.h (crx_function_arg): Delete.
1665 (crx_function_arg_advance): Delete.
1666 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1667 * config/crx/crx.c (crx_function_arg): Make static. Take a
1668 const_tree and a bool.
1669 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
1670 (enough_regs_for_param): Take a const_tree.
1671 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1672
1673 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1674
1675 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
1676 (m68hc11_function_arg_advance): Delete.
1677 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
1678 (FUNCTION_ARG_ADVANCE): Delete.
1679 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
1680 Take a const_tree and a bool.
1681 (m68hc11_function_arg_advance): Likewise.
1682 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1683
1684 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1685
1686 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
1687 (xstormy16_function_arg_advance): Delete.
1688 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
1689 (FUNCTION_ARG_ADVANCE): Delete.
1690 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
1691 Take a const_tree and a bool.
1692 (xstormy16_function_arg_advance): Likewise. Return void, updating
1693 the CUM parameter instead.
1694 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1695
1696 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1697
1698 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
1699 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1700 (MOXIE_FUNCTION_ARG_SIZE): Move to...
1701 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
1702 (moxie_function_arg): Make static. Take a const_tree and a bool.
1703 (moxie_function_arg_advance): New function.
1704 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1705
1706 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1707
1708 * config/mn10300/mn10300-protos.h (function_arg): Delete.
1709 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
1710 (FUNCTION_ARG_ADVANCE): Delete.
1711 * config/mn10300/mn10300.c (function_arg): Rename to...
1712 (mn10300_function_arg): ...this. Make static. Take a const_tree
1713 and a bool.
1714 (mn10300_function_arg_advance): New function.
1715 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1716
1717 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1718
1719 * config/iq2000/iq2000-protos.h (function_arg): Delete.
1720 (function_arg_advance): Delete.
1721 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1722 * config/iq2000/iq2000.c (function_arg): Rename to...
1723 (iq2000_function_arg): ...this. Make static. Take a const_tree and
1724 a bool.
1725 (function_arg_advance): Rename to...
1726 (iq2000_function_arg_advance): ...this. Make static. Take a
1727 const_tree and a bool.
1728 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
1729 iq2000_function_arg.
1730 (iq2000_pass_by_reference): Call iq2000_function_arg).
1731 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1732
1733 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1734
1735 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
1736 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1737 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
1738 const_tree.
1739 (fr30_function_arg): New function.
1740 (fr30_function_arg_advance): New function.
1741 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1742
1743 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1744
1745 * config/frv/frv-protos.h (frv_function_arg): Delete.
1746 (frv_function_arg_advance): Delete.
1747 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1748 * config/frv/frv.c (frv_function_arg): Rename to...
1749 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
1750 (frv_function_arg, frv_function_incoming_arg): New functions.
1751 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
1752 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1753 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1754
1755 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
1756
1757 PR target/46153
1758 * config/i386/sse.md (sse_movhlps_exp): Use destination
1759 returned from ix86_fixup_binary_operands to expand insn.
1760 (sse_movlhps_exp): Ditto.
1761 (sse_loadhps_exp): Ditto.
1762 (sse_loadlps_exp): Ditto.
1763 (sse2_loadhpd_exp): Ditto.
1764 (sse2_loadlpd_exp): Ditto.
1765
1766 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
1767
1768 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
1769 constants in thumb2.
1770
1771 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
1772
1773 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
1774 arithmetics in masking operations.
1775 (contains_muldiv): Likewise.
1776 (try_combine): Likewise.
1777 (find_split_point): Likewise.
1778 (combine_simplify_rtx): Likewise.
1779 (simplify_if_then_else): Likewise.
1780 (simplify_set): Likewise.
1781 (expand_compound_operation): Likewise.
1782 (expand_field_assignment): Likewise.
1783 (make_extraction): Likewise.
1784 (extract_left_shift): Likewise.
1785 (make_compound_operation): Likewise.
1786 (force_to_mode): Likewise.
1787 (make_field_assignment): Likewise.
1788 (reg_nonzero_bits_for_combine): Likewise.
1789 (simplify_shift_const_1): Likewise.
1790 (simplify_comparison): Likewise.
1791
1792 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
1793
1794 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
1795 (ia64_function_arg_advance): Delete.
1796 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1797 (FUNCTION_ARG_ADVANCE): Delete.
1798 * config/ia64/ia64.c (ia64_function_arg): Rename to...
1799 (ia64_function_arg_1): ...this. Make static. Take const_tree and
1800 bool arguments.
1801 (ia64_function_arg, ia64_function_incoming_arg): New functions.
1802 (ia64_function_arg_advance): Make static. Take a const_tree and
1803 a bool.
1804 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1805 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1806
1807 2010-10-27 Steve Ellcey <sje@cup.hp.com>
1808
1809 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
1810 (TARGET_GET_RAW_ARG_MODE): New.
1811 * doc/tm.texi: Regenerate.
1812 * target.def (get_raw_result_mode): New.
1813 (get_raw_arg_mode): New.
1814 * targhooks.c (default_get_reg_raw_mode): New.
1815 * targhooks.h (default_get_reg_raw_mode): New.
1816 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
1817 (apply_result_size): Ditto.
1818 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
1819 (TARGET_GET_RAW_RESULT_MODE): Define.
1820 (TARGET_GET_RAW_ARG_MODE): Ditto.
1821
1822 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1823
1824 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
1825 for newer Solaris 10 release.
1826 (sparc_fallback_frame_state): Likewise.
1827
1828 2010-10-27 Jason Merrill <jason@redhat.com>
1829
1830 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
1831 variables sooner.
1832
1833 2010-10-27 Jie Zhang <jie@codesourcery.com>
1834 Maxim Kuvyrkov <maxim@codesourcery.com>
1835
1836 * haifa-sched.c (ISSUE_POINTS): Remove.
1837 (max_issue): Don't issue more than issue_rate instructions.
1838
1839 2010-10-27 Ian Lance Taylor <iant@google.com>
1840
1841 PR target/46197
1842 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
1843 (split_stack_return): Replace UNSPEC_STACK_CHECK with
1844 UNSPECV_SPLIT_STACK_RETURN.
1845
1846 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
1847
1848 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
1849
1850 * config/i386/i386.c (block_info): New.
1851 (BLOCK_INFO): Likewise.
1852 (call_avx256_state): Likewise.
1853 (check_avx256_stores): Likewise.
1854 (move_or_delete_vzeroupper_2): Likewise.
1855 (move_or_delete_vzeroupper_1): Likewise.
1856 (move_or_delete_vzeroupper): Likewise.
1857 (use_avx256_p): Likewise.
1858 (function_pass_avx256_p): Likewise.
1859 (flag_opts): Add -mvzeroupper.
1860 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
1861 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
1862 is disabled.
1863 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
1864 generate vzeroupper.
1865 (init_cumulative_args): Add an int to indicate caller. Set
1866 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
1867 based on return type.
1868 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
1869 caller_pass_avx256_p based on argument type.
1870 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
1871 is used, but not returned by caller.
1872 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
1873 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
1874 is used.
1875 (ix86_minimum_alignment): Likewise.
1876 (ix86_expand_special_args_builtin): Set target to
1877 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
1878 (ix86_reorg): Run the vzeroupper optimization if needed.
1879
1880 * config/i386/i386.h (ix86_args): Add caller.
1881 (INIT_CUMULATIVE_ARGS): Updated.
1882 (machine_function): Add use_vzeroupper_p, use_avx256_p,
1883 caller_pass_avx256_p, caller_return_avx256_p,
1884 callee_pass_avx256_p and callee_return_avx256_p.
1885
1886 * config/i386/i386.opt (-mvzeroupper): New.
1887
1888 * config/i386/predicates.md (vzeroupper_operation): Removed.
1889
1890 * config/i386/sse.md (avx_vzeroupper): Removed.
1891 (*avx_vzeroupper): Removed.
1892 (avx_vzeroupper): New.
1893
1894 * doc/invoke.texi: Document -mvzeroupper.
1895
1896 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1897
1898 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
1899 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
1900 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
1901
1902 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1903 Olivier Hainque <hainque@adacore.com>
1904
1905 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
1906 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
1907 fs->signal_frame instead.
1908
1909 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1910
1911 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
1912 parsing of RID_COPIES and RID_IVAR.
1913
1914 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1915
1916 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
1917 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
1918 Do not use objc_set_property_attr, but use local variables
1919 instead. Detect repeated usage of setter, getter and ivar
1920 attributes. Improved error processing when a setter name does not
1921 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
1922 that the token is a keyword. Updated call to
1923 objc_add_property_declaration.
1924
1925 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1926
1927 * c-parser.c (c_parser_objc_at_property): Renamed to
1928 c_parser_objc_at_property_declaration. Updated calls to
1929 objc_add_property_variable, now objc_add_property_declaration.
1930 Code rewritten to be much more robust in recovering from syntax
1931 errors. Added comments.
1932 (c_parser_objc_property_attrlist): Removed.
1933 (c_parser_external_declaration): Updated calls to
1934 c_parser_objc_at_property, now
1935 c_parser_objc_at_property_declaration.
1936 (c_parser_objc_methodprotolist): Same change.
1937
1938 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1939
1940 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
1941
1942 2010-10-26 Jan Hubicka <jh@suse.cz>
1943
1944 * ipa.c (process_references): Enqueue all referenced nodes;
1945 mark as reachable only non-external nodes.
1946 (cgraph_remove_unreachable_nodes): All referenced nodes should
1947 be enqueued; remove bogues node->needed check.
1948
1949 2010-10-26 Jan Hubicka <jh@suse.cz>
1950
1951 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
1952 to represent OMP.
1953
1954 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1955
1956 * config/i386/i386.md (split_stack_return): Replace
1957 unspec_volatile with unspec.
1958
1959 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
1960
1961 * doc/install.texi: Fix typo in --with-sysroot description.
1962
1963 2010-10-26 Jan Hubicka <jh@suse.cz>
1964
1965 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1966 Use info provided by linker plugin.
1967
1968 2010-10-26 Jason Merrill <jason@redhat.com>
1969
1970 * varasm.c (constructor_static_from_elts_p): Don't require a
1971 CONSTRUCTOR to have elements to be suitable for static
1972 initialization. Allow ARRAY_TYPE as well.
1973
1974 2010-10-26 Jan Hubicka <jh@suse.cz>
1975
1976 PR middle-end/45736
1977 * cgraph.c (cgraph_set_readonly_flag): Rename to...
1978 (cgraph_set_const_flags) ... this one; get also looping argument;
1979 clear constructor/destructor flags.
1980 (cgraph_set_pure_flag): Likewise.
1981 (cgraph_set_looping_const_or_pure_flag): Remove.
1982 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
1983 to optimize away static ctors/dtors; it does not work on inline clones;
1984 external functions can always be rmeoved.
1985 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
1986 inline clones; in LTO external functions always can go.
1987 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
1988 (cgraph_mark_address_taken_node): Assert that we are not taking
1989 address of inline clone.
1990 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
1991 external functions.
1992 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
1993 address taken.
1994 (ipcp_initialize_node_lattices): Only local functions can be
1995 handled without cloning.
1996 * cgraph.h (cgraph_set_readonly_flag,
1997 cgraph_set_looping_const_or_pure_flag): Remove.
1998 (cgraph_set_const_flag): Declare.
1999 (cgraph_set_pure_flag): Update.
2000 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
2001 flags setting code.
2002 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
2003 look at inline clones; fix handling of external definitions.
2004 (cgraph_postorder): Do not look at inline clones in the first pass.
2005 (function_and_variable_visibility): Drop constructors/destructor
2006 flags at pure and const functions.
2007 * tree-profile.c (tree_profiling): Update.
2008 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
2009 address taken; external functions do not account to whole program size.
2010 (cgraph_decide_inlining): Likewise; do not try to inline
2011 functions already inlined.
2012
2013 2010-10-26 Jie Zhang <jie@codesourcery.com>
2014
2015 * doc/invoke.texi: Improve documentation of
2016 -fstrict-volatile-bitfields.
2017
2018 2010-10-26 Ira Rosen <irar@il.ibm.com>
2019
2020 PR tree-optimization/46167
2021 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
2022 is basic block for the statement.
2023
2024 2010-10-26 Paul Koning <ni1d@arrl.net>
2025
2026 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
2027 current definition of struct_real_format.
2028
2029 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
2030
2031 PR target/44948
2032 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
2033 (ix86_function_arg_boundary): Always align parameters on stack
2034 in 64bit and align parameters with alignment >= 16byte on stack
2035 in 32bit. Warn alignment change.
2036
2037 2010-10-26 Ian Lance Taylor <iant@google.com>
2038
2039 PR middle-end/45687
2040 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
2041 offset.
2042
2043 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
2044
2045 Implement opaque-enum-specifiesr for C++0x
2046 * tree.h (ENUM_IS_OPAQUE): New.
2047 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
2048
2049 2010-10-26 Jie Zhang <jie@codesourcery.com>
2050
2051 * stor-layout.c (layout_decl): Use the field's type to
2052 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
2053 * config/arm/arm.c (arm_override_options): Default to
2054 -fstrict-volatile-bitfields.
2055
2056 2010-10-25 Paul Koning <ni1d@arrl.net>
2057
2058 * config/pdp11/pdp11.md: Add define_constants for register
2059 numbers, branch offset limits.
2060 * config/pdp11/pdp11.c: Use named constants instead of numbers.
2061 * config/pdp11.pdp11.h: Ditto.
2062
2063 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
2064
2065 * configure.ac: Use $cpu_type instead of $target to define the nop.
2066 * configure: Regenerate.
2067
2068 2010-10-25 Jie Zhang <jie@codesourcery.com>
2069
2070 * combine.c (try_combine): If insns need to be kept around, check that
2071 they can be copied in the merged instruction.
2072
2073 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
2074
2075 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
2076 has been modified.
2077 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
2078 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
2079 it has been modified.
2080
2081 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
2082
2083 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
2084
2085 2010-10-24 Paul Koning <ni1d@arrl.net>
2086
2087 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
2088 * config/pdp11/pdp11.c (output_jump): Ditto.
2089
2090 2010-10-24 Ian Lance Taylor <iant@google.com>
2091
2092 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
2093
2094 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
2095
2096 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
2097 least one insn with a locus corresponding to an edge's goto_locus,
2098 disregard non-fallthru edges to the exit block and merge the blocks
2099 created for the same goto_locus.
2100
2101 2010-10-23 Joseph Myers <joseph@codesourcery.com>
2102
2103 * gcc.c (n_switches_alloc_debug_check): New.
2104 (set_option_handlers): New.
2105 (process_command): Use set_option_handlers.
2106 (do_self_spec): Pass spec-generated options through option handlers.
2107 (main): Also save and restore n_switches_alloc when swapping
2108 switch arrays.
2109
2110 2010-10-23 Richard Henderson <rth@redhat.com>
2111
2112 PR target/46144
2113 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
2114 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
2115 Honor matching operands when splitting to XOR.
2116
2117 2010-10-23 Ian Lance Taylor <iant@google.com>
2118
2119 * tree-vrp.c (extract_range_from_binary_expr): If
2120 flag_non_call_exceptions don't eliminate division by zero.
2121 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2122
2123 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
2124
2125 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
2126 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
2127 __ORDER_PDP_ENDIAN__.
2128 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2129 (struct DWstruct): Define based on __BYTE_ORDER__.
2130 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2131 (struct INTstruct): Define based on __BYTE_ORDER__.
2132 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2133 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
2134 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
2135 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2136 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2137 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2138 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2139 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2140 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2141 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2142 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2143 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2144 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2145 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2146 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2147 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2148 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2149 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2150 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2151 * doc/tm.texi: Regenerate.
2152 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
2153 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
2154
2155 2010-10-23 Jie Zhang <jie@codesourcery.com>
2156
2157 PR rtl-optimization/37360
2158 * config/mips/mips.c (cached_can_issue_more): New local variable.
2159 (mips_sched_reorder_1): New.
2160 (mips_sched_reorder): Use mips_sched_reorder_1.
2161 (mips_sched_reorder2): New.
2162 (mips_variable_issue): Set cached_can_issue_more.
2163 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
2164 instead of mips_sched_reorder.
2165
2166 Revert:
2167 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
2168 PR rtl-optimization/37360
2169 * haifa-sched.c (max_issue): Do not assert that we never issue more
2170 insns than issue_rate. Add comment.
2171
2172 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
2173
2174 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
2175 location info of the expression.
2176
2177 2010-10-22 DJ Delorie <dj@redhat.com>
2178
2179 * doc/extend.texi (Named Address Spaces): Document the M32C named
2180 address space.
2181
2182 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
2183 __far address space.
2184 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
2185 "__far" address space for R8C and M16C processor variants.
2186 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
2187 (far_addr_space_p): New.
2188 (encode_pattern_1): Add sign and zero extend support.
2189 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
2190 (m32c_extra_constraint_p2): Add SF constraint.
2191 (m32c_legitimate_address_p): Support __far addresses.
2192 (m32c_addr_space_pointer_mode): New.
2193 (m32c_addr_space_address_mode): New.
2194 (m32c_addr_space_legitimate_address_p): New.
2195 (m32c_addr_space_legitimize_address): New.
2196 (m32c_addr_space_subset_p): New.
2197 (m32c_addr_space_convert): New.
2198 (conversions): Add __far operand patterns.
2199 (m32c_prepare_move): Force constants into registers for __far moves.
2200 (m32c_split_move): __far moves are always split.
2201 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
2202 * config/m32c/mov.md (mov<mode>_far_op1): New.
2203 (mov<mode>_far_op2): New.
2204 (movqi_op): Add __far (SF) support.
2205 (movhi_op): Likewise.
2206 (movsi_splittable): Split A1A0 also.
2207
2208 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
2209 Andrew Pinski <pinskia@gmail.com>
2210
2211 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
2212 * doc/extend.texi: New paragraph
2213
2214 2010-10-22 Paul Koning <ni1d@arrl.net>
2215
2216 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
2217
2218 2010-10-22 DJ Delorie <dj@redhat.com>
2219
2220 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
2221
2222 2010-10-22 Paul Koning <ni1d@arrl.net>
2223
2224 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
2225
2226 2010-10-22 Richard Henderson <rth@redhat.com>
2227
2228 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
2229 cases for __builtin_fma and __builtin_fmaf.
2230
2231 2010-10-22 Richard Henderson <rth@redhat.com>
2232
2233 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
2234 NEG+USE for vectors as well.
2235 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
2236 and splitter.
2237
2238 2010-10-22 Joseph Myers <joseph@codesourcery.com>
2239
2240 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
2241 SWITCH_CURTAILS_COMPILATION): Remove.
2242 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
2243 * doc/tm.texi: Regenerate.
2244 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
2245
2246 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
2247
2248 * config/i386/bdver1.md: New file.
2249 * config/i386/i386.md (include "bdver1.md"): Invoke the
2250 pipeline description for bdver1.
2251 (x86_sahf_1): Add "bdver1_decode" attribute.
2252 (*cmpfp_i_mixed): Likewise.
2253 (*cmpfp_i_sse): Likewise.
2254 (*cmpfp_i_i387): Likewise.
2255 (*cmpfp_iu_mixed): Likewise.
2256 (*cmpfp_iu_sse): Likewise.
2257 (*cmpfp_iu_387): Likewise.
2258 (*swap<mode>,*swap<mode>_1): Likewise.
2259 (fixuns_trunc<mode>hi2): Likewise.
2260 (fix_trunc<mode>si_sse): Likewise.
2261 (x86_fnstcw_1): Likewise.
2262 (x86_fldcw_1): Likewise.
2263 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
2264 (*floatsi<mode>2_vector_mixed): Likewise.
2265 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
2266 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
2267 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
2268 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
2269 (*floatsi<mode>2_vector_sse): Likewise.
2270 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
2271 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
2272 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
2273 (*mul<mode>3_1): Likewise.
2274 (*mulsi3_1_zext): Likewise.
2275 (*mulhi3_1): Likewise.
2276 (*mulqi3_1): Likewise.
2277 (*<u>mul<mode><dwi>3_1): Likewise.
2278 (*<u>mulqihi3_1): Likewise.
2279 (*<s>muldi3_highpart_1): Likewise.
2280 (*<s>mulsi3_highpart_1): Likewise.
2281 (*<s>mulsi3_highpart_zext): Likewise.
2282 (x86_64_shld): Likewise.
2283 (x86_shld): Likewise.
2284 (x86_64_shrd): Likewise.
2285 (x86_shrd): Likewise.
2286 (sqrtxf2): Likewise.
2287 (sqrt_extend<mode>xf2_i387): Likewise.
2288 (*sqrt<mode>2_sse): Likewise.
2289 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
2290 (sse_cvtsi2ssq): Likewise.
2291 (sse_cvtss2si): Likewise.
2292 (sse_cvtss2si_2): Likewise.
2293 (sse_cvtss2siq): Likewise.
2294 (sse_cvtss2siq_2): Likewise.
2295 (sse_cvttss2si): Likewise.
2296 (sse_cvttss2siq): Likewise.
2297 (sse2_cvtpi2pd): Likewise.
2298 (sse2_cvttpd2pi): Likewise.
2299 (sse2_cvtsi2sd): Likewise.
2300 (sse2_cvtsi2sdq): Likewise.
2301 (sse2_cvtsd2si): Likewise.
2302 (sse2_cvtsd2si_2): Likewise.
2303 (sse2_cvtsd2siq): Likewise.
2304 (sse2_cvtsd2siq_2): Likewise.
2305 (sse2_cvttsd2si): Likewise.
2306 (sse2_cvttsd2siq): Likewise.
2307 (*sse2_cvtpd2dq): Likewise.
2308 (*sse2_cvttpd2dq): Likewise.
2309 (sse2_cvtsd2ss): Likewise.
2310 (sse2_cvtss2sd): Likewise.
2311 (*sse2_cvtpd2ps): Likewise.
2312 (sse2_cvtps2pd): Likewise.
2313
2314 2010-10-22 Richard Guenther <rguenther@suse.de>
2315
2316 PR middle-end/46137
2317 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
2318 remove the virtual operands if they are not needed.
2319
2320 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
2321
2322 * config/i386/i386.c (processor_costs bdver1_cost): Update
2323 insn costs and architectural parameters for bdver1.
2324
2325 2010-10-22 Richard Guenther <rguenther@suse.de>
2326
2327 * gimple.h (gimple_register_canonical_type): Declare.
2328 * gimple.c (gimple_canonical_types): New global hashtable.
2329 (struct gimple_type_leader_entry_s): New type.
2330 (gimple_type_leader): New global cache.
2331 (gimple_lookup_type_leader): New function.
2332 (gtc_visit): Query the proper cache.
2333 (gimple_types_compatible_p): Likewise.
2334 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
2335 (gimple_canonical_type_eq): New function.
2336 (gimple_register_canonical_type): Likewise.
2337 (print_gimple_types_stats): Adjust for gimple_canonical_types.
2338 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
2339 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
2340 gimple_types_compatible_p for LTO.
2341
2342 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
2343
2344 PR target/46098
2345 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
2346 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
2347 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
2348 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
2349 (<sse>_movu<ssemodesuffix>): New expander.
2350 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
2351 (avx_movdqu<avxmodesuffix>): New expander.
2352 (*sse2_movdqu): Rename from sse2_movdqu.
2353 (sse2_movdqu): New expander.
2354
2355 2010-10-22 Richard Guenther <rguenther@suse.de>
2356
2357 PR tree-optimization/45720
2358 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2359 Handle negative step.
2360 (vect_enhance_data_refs_alignment): Likewise.
2361 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
2362 (vect_create_cond_for_align_checks): Likewise.
2363 (vect_create_cond_for_alias_checks): Likewise.
2364
2365 2010-10-22 Ira Rosen <irar@il.ibm.com>
2366
2367 PR tree-optimization/46126
2368 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
2369 vectorizable_shift in case of basic block vectorization.
2370
2371 2010-10-22 Joseph Myers <joseph@codesourcery.com>
2372
2373 * target.h (enum opt_levels, struct default_options): New.
2374 * target.def (handle_ofast): Remove hook.
2375 (target_option.optimization): Change to
2376 target_option.optimization_table.
2377 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
2378 TARGET_OPTION_OPTIMIZATION_TABLE.
2379 (CAN_DEBUG_WITHOUT_FP): Remove.
2380 * doc/tm.texi: Regenerate.
2381 * opts.c (maybe_default_option, maybe_default_options,
2382 default_options_table): New.
2383 (default_options_optimization): Take extra parameters. Don't
2384 assert that global_options and global_options_set are in use. Use
2385 maybe_default_options.
2386 (decode_options): Pass extra parameters to
2387 default_options_optimization.
2388 * common.opt (falign-loops): Use value 0 with Var.
2389 (frerun-cse-after-loop, ftree-ter): Remove Init.
2390 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
2391 TARGET_OPTION_OPTIMIZATION): Remove.
2392 * targhooks.c (empty_optimization_table): New.
2393 * targhooks.h (empty_optimization_table): Declare.
2394 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
2395 * config/alpha/alpha.c (alpha_option_optimization_table,
2396 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2397 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
2398 * config/arm/arm.c (arm_option_optimization: Change to
2399 arm_option_optimization_table.
2400 (TARGET_OPTION_OPTIMIZATION): Change to
2401 TARGET_OPTION_OPTIMIZATION_TABLE.
2402 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
2403 * config/avr/avr.c (avr_option_optimization_table,
2404 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2405 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
2406 * config/cris/cris.c (cris_option_optimization): Change to
2407 cris_option_optimization_table.
2408 (TARGET_OPTION_OPTIMIZATION): Change to
2409 TARGET_OPTION_OPTIMIZATION_TABLE.
2410 * config/crx/crx.c (crx_option_optimization): Change to
2411 crx_option_optimization_table.
2412 (TARGET_OPTION_OPTIMIZATION): Change to
2413 TARGET_OPTION_OPTIMIZATION_TABLE.
2414 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2415 * config/fr30/fr30.c (fr30_option_optimization_table,
2416 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2417 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
2418 * config/frv/frv.c (frv_option_optimization_table,
2419 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2420 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
2421 * config/h8300/h8300.c (h8300_option_optimization): Change to
2422 h8300_option_optimization_table.
2423 (TARGET_OPTION_OPTIMIZATION): Change to
2424 TARGET_OPTION_OPTIMIZATION_TABLE.
2425 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2426 * config/i386/i386.c (ix86_option_optimization): Change to
2427 ix86_option_optimization_table.
2428 (TARGET_OPTION_OPTIMIZATION): Change to
2429 TARGET_OPTION_OPTIMIZATION_TABLE.
2430 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2431 as initializer.
2432 * config/ia64/ia64.c (ia64_option_optimization): Change to
2433 ia64_option_optimization_table.
2434 (TARGET_OPTION_OPTIMIZATION): Change to
2435 TARGET_OPTION_OPTIMIZATION_TABLE.
2436 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
2437 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
2438 initializer.
2439 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2440 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2441 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2442 * config/lm32/lm32.c (lm32_option_optimization_table,
2443 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2444 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
2445 * config/m32r/m32r.c (m32r_option_optimization): Change to
2446 m32r_option_optimization_table.
2447 (TARGET_OPTION_OPTIMIZATION): Change to
2448 TARGET_OPTION_OPTIMIZATION_TABLE.
2449 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
2450 CAN_DEBUG_WITHOUT_FP): Remove.
2451 * config/mcore/mcore.c (mcore_option_optimization): Change to
2452 mcore_option_optimization_table.
2453 (TARGET_OPTION_OPTIMIZATION): Change to
2454 TARGET_OPTION_OPTIMIZATION_TABLE.
2455 * config/mep/mep.c (mep_option_optimization): Change to
2456 mep_option_optimization_table.
2457 (TARGET_OPTION_OPTIMIZATION): Change to
2458 TARGET_OPTION_OPTIMIZATION_TABLE.
2459 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
2460 * config/microblaze/microblaze.c
2461 (microblaze_option_optimization_table,
2462 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2463 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
2464 * config/mips/mips.c (mips_option_optimization_table,
2465 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2466 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
2467 * config/mmix/mmix.c (mmix_option_optimization): Change to
2468 mmix_option_optimization_table.
2469 (TARGET_OPTION_OPTIMIZATION): Change to
2470 TARGET_OPTION_OPTIMIZATION_TABLE.
2471 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
2472 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2473 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2474 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2475 * config/pa/pa.c (pa_option_optimization_table,
2476 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2477 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2478 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
2479 pdp11_option_optimization_table.
2480 (TARGET_OPTION_OPTIMIZATION): Change to
2481 TARGET_OPTION_OPTIMIZATION_TABLE.
2482 * config/picochip/picochip.c (picochip_option_optimization_table,
2483 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2484 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
2485 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
2486 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2487 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2488 * config/rx/rx.c (rx_option_optimization_table,
2489 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2490 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2491 * config/s390/s390.c (s390_option_optimization): Change to
2492 s390_option_optimization_table.
2493 (s390_option_override): Update comment.
2494 (TARGET_OPTION_OPTIMIZATION): Change to
2495 TARGET_OPTION_OPTIMIZATION_TABLE.
2496 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
2497 * config/score/score.c (score_option_optimization_table,
2498 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2499 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
2500 * config/sh/sh.c (sh_option_optimization): Change to
2501 sh_option_optimization_table.
2502 (TARGET_OPTION_OPTIMIZATION): Change to
2503 TARGET_OPTION_OPTIMIZATION_TABLE.
2504 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
2505 (sh_option_override, expand_block_move, multcosts, find_barrier,
2506 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
2507 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
2508 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
2509 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
2510 instead of TARGET_SMALLCODE.
2511 * config/sh/sh.opt (mspace): Make into an alias for -Os.
2512 * config/sparc/sparc.c (sparc_option_optimization_table,
2513 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2514 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
2515 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2516 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2517 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
2518 * config/v850/v850.c (v850_option_optimization): Change to
2519 v850_option_optimization_table.
2520 (TARGET_OPTION_OPTIMIZATION): Change to
2521 TARGET_OPTION_OPTIMIZATION_TABLE.
2522 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
2523 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
2524 xtensa_option_optimization_table.
2525 (TARGET_OPTION_OPTIMIZATION): Change to
2526 TARGET_OPTION_OPTIMIZATION_TABLE.
2527 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2528
2529 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
2530
2531 Based on the CFString implementation in FSF apple/trunk branch.
2532
2533 * target.def (objc_construct_string): New Hook.
2534 * doc/tm.texi (objc_construct_string): Document.
2535 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
2536 * config/t-darwin: Amend build rules for darwin.o.
2537 * config/darwin.opt: Add cfstrings flags.
2538 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
2539 (darwin_objc_construct_string): New.
2540 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
2541 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
2542 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
2543 (darwin_fold_builtin): Likewise.
2544 (darwin_build_constant_cfstring): Likewise.
2545 (darwin_objc_construct_string): Likewise.
2546 (darwin_cfstring_p): Likewise.
2547 (darwin_enter_string_into_cfstring_table): Likewise.
2548 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
2549 * config/darwin.c (darwin_running_cxx): New var.
2550 (machopic_select_section): Return cfstring_constant_object_section.
2551 (darwin_override_options): Set darwin_running_cxx.
2552 (add_builtin_field_decl): New.
2553 (darwin_init_cfstring_builtins): New.
2554 (darwin_build_constant_cfstring): New.
2555 (darwin_fold_builtin): New.
2556 (cfstring_hash): New.
2557 (cfstring_eq): New.
2558 (darwin_enter_string_into_cfstring_table): New.
2559 * config/darwin-sections.def (cfstring_constant_object_section): New.
2560 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
2561 (TARGET_OBJC_CONSTRUCT_STRING): Define.
2562
2563 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2564
2565 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
2566 TYPE_STUB_DECL instead of TREE_CHAIN.
2567 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
2568 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
2569 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
2570 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
2571 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
2572 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
2573 Likewise.
2574 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
2575
2576 2010-10-22 Jie Zhang <jie@codesourcery.com>
2577
2578 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
2579 (copy_blkmode_from_reg): Likewise.
2580 (read_complex_part): Likewise.
2581 (expand_expr_real_1): Calculate packedp and pass it to
2582 extract_bit_field.
2583 * expr.h (extract_bit_field): Update declaration.
2584 * calls.c (store_unaligned_arguments_into_pseudos): Update call
2585 to extract_bit_field.
2586 * expmed.c (extract_fixed_bit_field): Update calls to
2587 extract_fixed_bit_field.
2588 (store_split_bit_field): Likewise.
2589 (extract_bit_field_1): Add new argument packedp.
2590 (extract_bit_field): Add new argument packedp.
2591 (extract_fixed_bit_field): Add new argument packedp and let
2592 packed attribute override volatile.
2593 * stmt.c (expand_return): Update call to extract_bit_field.
2594
2595 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2596
2597 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
2598
2599 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2600
2601 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
2602 of gcc_checking_assert.
2603 * sel-sched.c (code_motion_process_successors): Likewise.
2604
2605 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
2606
2607 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
2608 when stopping because of a different locus on edge or insn.
2609 (try_optimize_cfg): Add comment.
2610 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
2611 block is a forwarder block, propagate locus on the edge.
2612 (cfg_layout_merge_blocks): Likewise.
2613
2614 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
2615
2616 PR target/45946
2617 * config/i386/i386.md (*pushti2): New insn pattern.
2618 (pushti2 splitter): New insn splitter.
2619 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
2620 DWI mode iterator.
2621
2622 2010-10-21 Paul Koning <ni1d@arrl.net>
2623
2624 * config/pdp11/pdp11-protos.md (arith_operand,
2625 const_immediate_operand, expand_shift_operand,
2626 immediate15_operand): Delete
2627 * config/pdp11/pdp11.c: Ditto.
2628 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
2629 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2630 EXTRA_CONSTRAINT): Delete.
2631 * config/pdp11/pdp11.md (various): Use standard constraints
2632 instead of removed ones.
2633 * config/pdp11/constraints.md: New file.
2634 * config/pdp11/predicates.md: New file.
2635
2636 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
2637
2638 PR c/45834
2639 * alias.c (true_dependence_1): Remove obsolete check for QImode.
2640 (may_alias_p): Ditto.
2641
2642 2010-10-21 Martin Jambor <mjambor@suse.cz>
2643
2644 PR tree-optimization/45875
2645 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
2646
2647 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2648
2649 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
2650 variables.
2651 (create_new_def_for): Likewise.
2652
2653 2010-10-21 Nick Clifton <nickc@redhat.com>
2654
2655 * config/mn10300/mn10300.c: Fold code to 80-character width.
2656 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
2657 MEM, CONST_INT and CONST_DOUBLE.
2658 (targetm): Move initialization to end of file.
2659 (print_operand): Rename to mn10300_print_operand.
2660 (print_operand_address): Rename to mn10300_print_operand_address.
2661 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
2662 (expand_prologue): Rename to mn10300_expand_prologue.
2663 (expand_epilogue): Rename to mn10300_expand_epilogue.
2664 (initial_offset): Rename to mn10300_initial_offset.
2665 (function_arg): Rename to mn10300_function_arg.
2666 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
2667 (symbolic_operand): Rename to mn10300_symbolic_operand.
2668 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
2669 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
2670 * config/mn10300/mn10300-protos.h: Update prototypes.
2671 * config/mn10300/mn10300.h: Fold code to 80-character width.
2672 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
2673 MEM, CONST_INT and CONST_DOUBLE.
2674 (CPP_SPEC): Move to...
2675 (TARGET_CPU_CPP_BUILTINS): ... here.
2676 * config/mn10300/mn10300.md: Fold code to 80-character width.
2677 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
2678 MEM, CONST_INT and CONST_DOUBLE.
2679
2680 2010-10-21 Ira Rosen <irar@il.ibm.com>
2681
2682 PR tree-optimization/46049
2683 PR tree-optimization/46052
2684 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
2685 (vect_get_slp_defs): Add arguments.
2686 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
2687 operands to vect_get_slp_defs.
2688 (vectorizable_reduction): Fix comment, pass scalar operands to
2689 vect_get_slp_defs.
2690 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
2691 type to determine number of units in the created vector.
2692 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
2693 (vectorizable_conversion): Fix comment.
2694 (vectorizable_shift): New function.
2695 (vectorizable_operation): Move code that handles shifts to
2696 vectorizable_shift.
2697 (vectorizable_type_demotion): Fix comment, pass scalar operands to
2698 vect_get_slp_defs.
2699 (vectorizable_type_promotion, vectorizable_store): Likewise.
2700 (vectorizable_condition): Fix comment.
2701 (vect_analyze_stmt): Call vectorizable_shift.
2702 (vect_transform_stmt): Likewise.
2703 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
2704 Use it as the operand to create vectors for, except reduction
2705 initial definition and store. Use operands type.
2706 (vect_get_slp_defs): Add new arguments. Pass them to
2707 vect_get_constant_vectors.
2708
2709 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2710
2711 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
2712 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
2713 * cfghooks.c (fixup_reorder_chain): Likewise.
2714 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
2715 * cgraph.c (cgraph_add_thunk): Likewise.
2716 (cgraph_create_edge_1): Likewise.
2717 (cgraph_create_virtual_clone): Likewise.
2718 * ddg.c (add_cross_iteration_register_deps): Likewise.
2719 * dwarf2out.c (modified_type_die): Likewise.
2720 * emit-rtl.c (set_mem_alias_set): Likewise.
2721 * ggc-zone.c (zone_allocate_marks): Likewise.
2722 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
2723 * gimple.c (iterative_hash_gimple_type): Likewise.
2724 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
2725 (create_single_exit_edge): Likewise.
2726 * haifa-sched.c (choose_ready): Likewise.
2727 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2728 * passes.c (execute_todo): Likewise.
2729 * sched-ebb.c (begin_schedule_ready): Likewise.
2730 * sel-sched.c (code_motion_process_successors): Likewise.
2731 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
2732 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
2733 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
2734 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
2735 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
2736 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
2737 (ssa_conflicts_add): Likewise.
2738 * tree-ssa-copy.c (replace_exp): Likewise.
2739 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
2740 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
2741 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2742 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
2743 (compute_antic): Likewise.
2744 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
2745 (add_dependence): Likewise.
2746 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
2747 * tree-vrp.c (supports_overflow_infinity): Likewise.
2748 (make_overflow_infinity, negative_overflow_infinity): Likewise.
2749 (avoid_overflow_infinity, register_new_assert_for): Likewise.
2750 (process_assert_insertions_for): Likewise.
2751 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
2752 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
2753 (intersect_loc_chains, variable_merge_over_cur): Likewise.
2754
2755 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2756
2757 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
2758 * reload1.c (has_nonexceptional_receiver): Likewise.
2759 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
2760 (create_new_def_for): Likewise.
2761 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
2762 (merge_phi_nodes): Likewise.
2763 (has_abnormal_incoming_edge_p): Delete.
2764
2765 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
2766
2767 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
2768
2769 2010-10-21 Richard Guenther <rguenther@suse.de>
2770 Michael Matz <matz@suse.de>
2771
2772 PR tree-optimization/45764
2773 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2774 Adjust initial misalignment for negative DR_STEP.
2775 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
2776 do not have the same alignment over the whole iteration domain.
2777
2778 2010-10-21 Richard Guenther <rguenther@suse.de>
2779
2780 PR tree-optimization/46111
2781 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
2782
2783 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2784
2785 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
2786
2787 2010-10-21 Tristan Gingold <gingold@adacore.com>
2788
2789 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
2790 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
2791
2792 2010-10-21 Tristan Gingold <gingold@adacore.com>
2793
2794 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
2795 signal_frame.
2796 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
2797
2798 2010-10-21 Tristan Gingold <gingold@adacore.com>
2799
2800 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
2801 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
2802
2803 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
2804
2805 * basic-block.h (find_fallthru_edge): Define.
2806 * cfgcleanup.c (merge_blocks_move): Use it.
2807 (try_crossjump_bb): Likewise.
2808 * cfglayout.c (fixup_reorder_chains): Likewise.
2809 (fixup_fallthru_exit_predecessor): Likewise.
2810 * cfgrtl.c (rtl_split_edge): Likewise.
2811 (rtl_verify_flow_info): Likewise.
2812 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2813 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
2814 * ifcvt.c (block_fallthru): Likewise.
2815 * reload1.c (fixup_abnormal_edges): Likewise.
2816 * sched-ebb.c (being_schedule_ready): Likewise.
2817 (schedule_ebb): Likwise.
2818 * sched-rgn.c (find_single_block_region): Likewise.
2819 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
2820 * tree-complex.c (expand_complex_move): Likewise.
2821 * sched-int.h (find_fallthru_edge): Rename to...
2822 (find_fallthru_edge_from): ...this.
2823 * haifa-sched.c (find_fallthru_edge): Rename to...
2824 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
2825 (init_before_recovery): Call find_fallthru_edge_from.
2826 * sel-sched-ir.c (merge_fences): Likewise.
2827 * sel-sched.c (in_fallthru_bb_p): Likewise.
2828 (move_cond_jump): Likewise.
2829
2830 2010-10-20 Paul Koning <ni1d@arrl.net>
2831
2832 * config/pdp11/pdp11.md (various): Fix conditions on a number of
2833 insn to check for target 11/40 or higher.
2834
2835 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2836
2837 * parser.c (c_parser_objc_method_type): Mark inline. Return a
2838 bool instead of a tree.
2839 (c_parser_objc_method_decl): Added bool argument. Updated call to
2840 objc_build_method_signature.
2841 (c_parser_objc_method_definition): Do not call
2842 objc_set_method_type. Updated calls to c_parser_objc_method_type,
2843 c_parser_objc_method_decl and objc_start_method_definition.
2844 (c_parser_objc_methodproto): Do not call objc_set_method_type.
2845 Updated calls to c_parser_objc_method_type,
2846 c_parser_objc_method_decl and objc_add_method_declaration.
2847
2848 2010-10-20 Jakub Jelinek <jakub@redhat.com>
2849
2850 PR tree-optimization/45919
2851 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
2852 array members.
2853
2854 PR tree-optimization/46066
2855 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
2856 instead of gsi_last_bb.
2857
2858 2010-10-20 DJ Delorie <dj@redhat.com>
2859
2860 * config/m32c/m32c.c (m32c_option_override): Always disable
2861 function-cse in 16-bit mode. Indirect calls are always worse than
2862 direct calls as there is no 16-bit indirect call opcode.
2863 (m32c_override_options_after_change): New, likewise.
2864
2865 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
2866
2867 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
2868 emitting the conditional move in the inner mode of the SUBREG.
2869
2870 2010-10-20 Anatoly Sokolov <aesok@post.ru>
2871
2872 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
2873 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
2874 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2875 (ia64_preferred_reload_class): Make static. Change rclass argument
2876 and result types from enum reg_class to reg_class_t.
2877
2878 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
2879
2880 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
2881 call for single operand expression.
2882
2883 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
2884
2885 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
2886 if there is a call statement to pure or const function in the block.
2887
2888 2010-10-20 Paul Koning <pkoning@equallogic.com>
2889
2890 Fix several build errors for pdp11 target.
2891 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
2892 (cbranchdf4): Conditional on TARGET_FPU.
2893 (movdf): Ditto; correct alternatives check.
2894 (movmemhi): Fix predicate and constraint.
2895 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
2896
2897 2010-10-20 Richard Guenther <rguenther@suse.de>
2898
2899 PR lto/45667
2900 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
2901 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
2902 (verify_gimple_assign_single): Disable ADDR_EXPR type check
2903 when in LTO.
2904
2905 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
2906
2907 PR fortran/42169
2908 * ira-emit.c (store_can_be_removed_p): Return false instead of
2909 gcc_unreachable.
2910
2911 2010-10-20 Dmitry Melnik <dm@ispras.ru>
2912
2913 * fold-const.c (fold_binary_loc): New transformation.
2914
2915 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
2916
2917 PR target/46085
2918 * config/i386/sse.md (reduc_splus_v8sf): Updated.
2919 (reduc_splus_v4df): Likewise.
2920
2921 2010-10-20 Richard Guenther <rguenther@suse.de>
2922
2923 PR tree-optimization/45860
2924 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
2925 conditional store replacement for non-register type stores.
2926
2927 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
2928
2929 * stor-layout.c (skip_simple_constant_arithmetic): New function.
2930 (self_referential_size): Use it instead of skip_simple_arithmetic.
2931
2932 2010-10-20 Olivier Hainque <hainque@adacore.com>
2933
2934 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
2935 If the current function calls eh_return, claim live all registers
2936 that we need to check for liveness otherwise.
2937
2938 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2939
2940 * c-decl.c (c_write_global_declarations): Call
2941 objc_write_global_declarations when compiling Objective-C.
2942 * c-lang.c (finish_file): Removed.
2943
2944 2010-10-19 DJ Delorie <dj@redhat.com>
2945
2946 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
2947 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
2948 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2949 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2950 * doc/tm.texi: Regenerate.
2951 * targhooks.h (default_label_align_after_barrier_max_skip,
2952 default_loop_align_max_skip, default_label_align_max_skip,
2953 default_jump_align_max_skip): Declare.
2954 * target.def (label_align_after_barrier_max_skip): New.
2955 (loop_align_max_skip): New.
2956 (label_align_max_skip): New.
2957 (jump_align_max_skip): New.
2958 * system.h (poison): Add those macros to the list.
2959 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
2960 (LOOP_ALIGN_MAX_SKIP): Remove.
2961 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
2962 (JUMP_ALIGN_MAX_SKIP): Remove.
2963 (default_label_align_after_barrier_max_skip): New.
2964 (default_loop_align_max_skip): New.
2965 (default_label_align_max_skip): New.
2966 (default_jump_align_max_skip): New.
2967 (compute_alignments): Use the new hooks.
2968 (shorten_branches): Likewise.
2969
2970 2010-10-19 Richard Henderson <rth@redhat.com>
2971
2972 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
2973 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
2974 (fma4i_fmadd_<mode>): New.
2975 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
2976 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
2977 standard fma patterns.
2978 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
2979 enable for FMA.
2980 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2981 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2982 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
2983
2984 2010-10-19 Paul Koning <pkoning@equallogic.com>
2985
2986 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
2987 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
2988
2989 2010-10-19 Richard Henderson <rth@redhat.com>
2990
2991 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
2992 (fmadf4, *fmsdf4, *nfmadf4): New.
2993 (fmaxf4, *fmsxf4, *nfmaxf4): New.
2994
2995 2010-10-19 Michael Eager <eager@eagercon.com>
2996
2997 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
2998 Use sjlj unwind info for exceptions.
2999
3000 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
3001
3002 PR fortran/43414
3003 * dwarf2out.c (add_calling_convention_attribute): Flag main
3004 Fortran subroutine with DW_AT_main_subprogram.
3005
3006 2010-10-19 Nick Clifton <nickc@redhat.com>
3007
3008 * config/rx/rx.c (rx_function_value): Small integer types are
3009 promoted to SImode.
3010 (rx_promote_function_mode): New function.
3011 (TARGET_PROMOTE_FUNCTION_MODE): Define.
3012
3013 2010-10-19 Nick Clifton <nickc@redhat.com>
3014
3015 * config/mep/mep.c (mep_print_operand): Use
3016 targetm.strip_name_encoding.
3017 (mep_output_aligned_common): Likewise.
3018
3019 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
3020
3021 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
3022
3023 2010-10-18 Richard Henderson <rth@redhat.com>
3024
3025 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
3026 (fma (neg a) (neg b) c) and (fma a (neg b) c).
3027
3028 2010-10-18 Richard Henderson <rth@redhat.com>
3029
3030 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
3031 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
3032 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
3033 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
3034 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
3035 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
3036 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
3037 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
3038 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
3039 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
3040 (bdesc_multi_arg): Remove the corresponding builtins.
3041 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
3042 (UNSPEC_FMA4_FMSUBADD): Remove.
3043 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
3044 * config/i386/sse.md (FMA4MODEF4): Remove.
3045 (FMAMODE): Add.
3046 (fma<mode>4): New expander.
3047 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
3048 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
3049 (*fma4i_fmsub_<mode>): Similarly.
3050 (*fma4i_fnmadd_<mode>): Similarly.
3051 (*fma4i_fnmsub_<mode>): Similarly.
3052 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
3053 with the first operand.
3054 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
3055 of explicit arithmetic. Macroize with AVXMODEF2P.
3056 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
3057 (xop_frcz<mode>2): Macroize with FMAMODE.
3058 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
3059 the first operand.
3060 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
3061 extra negations.
3062 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
3063 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
3064 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
3065 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
3066 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
3067 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
3068 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
3069 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
3070
3071 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
3072
3073 PR rtl-optimization/45966
3074 * combine.c (try_combine): If added_sets_2, deal with the case
3075 where i0 feeds i1 and i1 feeds i2.
3076
3077 2010-10-18 Jan Hubicka <jh@suse.cz>
3078
3079 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
3080 preserve flags before trying to guess on visibility.
3081 (varpool_externally_visible_p): New function.
3082 (function_and_variable_visibility): Use it.
3083
3084 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3085
3086 Implemented parsing @synthesize and @dynamic for Objective-C.
3087 * c-parser.c (c_parser_external_declaration): Recognize
3088 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3089 (c_parser_objc_at_synthesize_declaration): New.
3090 (c_parser_objc_at_dynamic_declaration): New.
3091
3092 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3093
3094 * c-parser.c (c_parser_objc_class_declaration): After finding an
3095 error, parse the whole declaration then reset parser->error.
3096
3097 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
3098
3099 PR target/46041
3100 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
3101 * builtins.c (mode_has_fma): Ditto.
3102
3103 2010-10-18 Steve Ellcey <sje@cup.hp.com>
3104
3105 PR target/36898
3106 PR middle-end/43760
3107 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
3108
3109 2010-10-18 Joseph Myers <joseph@codesourcery.com>
3110
3111 * config/i386/i386.c (ix86_option_override_internal): Define and
3112 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
3113 default.
3114 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3115 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
3116
3117 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3118
3119 Merge from 'apple/trunk' branch on FSF servers.
3120 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
3121 following Objective-C change:
3122
3123 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
3124
3125 Radar 4301047
3126 * c-parse.in (objc_quals): Build objc qualifier list same way
3127 as gcc-3.3
3128
3129 2010-10-18 Jan Hubicka <jh@suse.cz>
3130
3131 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
3132 function_and_variable_visibility): Revert accidental commit.
3133
3134 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
3135
3136 Merge from 'apple/trunk' branch on FSF servers.
3137 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
3138 the following Objective-C change:
3139
3140 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
3141
3142 Radar 4204796
3143 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
3144 'volatilized' type used in a typeof operator.
3145
3146 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
3147
3148 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
3149 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
3150 rewrite modelled on gimple_purge_dead_eh_edges.
3151 (gimple_purge_all_dead_abnormal_call_edges): New function.
3152 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
3153 directly instead of through gimple_purge_dead_abnormal_call_edges.
3154 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
3155 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
3156 removed AB side-effects from one of its statements.
3157 (init_pre): Initialize need_ab_cleanup.
3158 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
3159 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
3160
3161 2010-10-18 Jakub Jelinek <jakub@redhat.com>
3162
3163 PR c/46015
3164 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
3165 on computed goto argument.
3166
3167 2010-10-18 Richard Guenther <rguenther@suse.de>
3168
3169 PR tree-optimization/45967
3170 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
3171 (could_have_pointers): Likewise.
3172 (handle_rhs_call, handle_const_call, handle_pure_call,
3173 find_func_aliases, intra_create_variable_infos): Remove calls to them.
3174 (struct fieldoff): Add must_have_pointers field.
3175 (type_must_have_pointers): New function.
3176 (field_must_have_pointers): Likewise.
3177 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
3178 Adjust field merging.
3179 (create_function_info_for): May-have-pointers of varinfo is
3180 almost always true.
3181 (create_variable_info_for_1): Likewise.
3182
3183 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
3184
3185 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
3186 of operands to vec_concat.
3187
3188 2010-10-18 Richard Guenther <rguenther@suse.de>
3189
3190 PR lto/44950
3191 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
3192 also clear references to entries of it.
3193
3194 2010-10-18 Andi Kleen <ak@linux.intel.com>
3195
3196 PR other/43448
3197 * gccbug.in: Remove.
3198 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
3199 (doc, distclean, install-common): Remove reference to gccbug.
3200 * configure: Regenerate.
3201 * configure.ac (all_outputs): Remove gccbug.
3202 * doc/configfiles.texi: Remove references to gccbug.
3203 * doc/sourcebuild.texi: Dito.
3204
3205 2010-10-18 Jakub Jelinek <jakub@redhat.com>
3206
3207 PR middle-end/46019
3208 * fold-const.c (fold_binary_loc): If integer_pow2p has
3209 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
3210
3211 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
3212 Jeremie Salvucci <jeremie.salvucci@free.fr>
3213
3214 * gengtype.c (verbosity_level): Add variable.
3215 (set_gc_used): Count variables for verbosity.
3216 (close_output_files): Backing up files, counting written ones
3217 verbosily.
3218 (write_types): Count emitted functions for verbosity. Added
3219 debug messages.
3220 (write_enum_defn): Count structures for verbosity. Added debug
3221 messages.
3222 (gengtype_long_options): Add "verbose" & "backupdir".
3223 (print_usage): Ditto.
3224 (main): Verbose display of parsed files.
3225
3226 * gengtype.h (verbosity_level): Add declaration.
3227
3228 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
3229
3230 * gengtype.c (parse_program_options): Add allocation of
3231 plugin_files, and correct test on nb_plugin_files.
3232
3233 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3234
3235 Merge from 'apple/trunk' branch on FSF servers.
3236
3237 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3238
3239 Radar 4133425
3240 * c-decl.c (undeclared_variable): Issue diagnostic on
3241 private 'ivar' access.
3242
3243 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
3244
3245 PR target/46051
3246 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
3247 generated sequence to match *avx_vperm2f128<mode>_nozero.
3248 (vec_interleave_lowv4df): Ditto.
3249 (vec_interleave_highv8sf): Ditto.
3250 (vec_interleave_lowv8sf): Ditto.
3251
3252 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
3253
3254 * libgcov.c (create_file_directory): Enable it for win32 case.
3255 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
3256 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
3257 (GCOV_PREFIX_SKIP): Likewise.
3258
3259 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3260
3261 * doc/objc.texi (GNU Objective-C runtime API): New section.
3262 (Modern GNU Objective-C runtime API): New section.
3263 (Traditional GNU Objective-C runtime API): New section.
3264 (Executing code before main): Mention that this section is
3265 specific to the GNU Objective-C runtime.
3266 (Garbage Collection): Same.
3267
3268 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
3269
3270 * c-parser.c (c_parser_for_statement): Move initialization of
3271 cond and incr before if.
3272
3273 2010-10-17 Anatoly Sokolov <aesok@post.ru>
3274
3275 * target.def (preferred_output_reload_class): New hook.
3276 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
3277 * doc/tm.texi: Regenerate.
3278 * targhooks.c (default_preferred_output_reload_class): New function.
3279 * targhooks.h (default_preferred_output_reload_class): Declare.
3280 * reload.c (find_dummy_reload): Change rclass argument type from
3281 enum reg_class to reg_class_t. Change this_alternative array type
3282 from enum reg_class to reg_class_t.
3283 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
3284 (push_reload): Change preferred_class variable type to reg_class_t.
3285 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
3286 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
3287 argument type from enum reg_class to reg_class_t. Use
3288 HARD_REGISTER_NUM_P predicate.
3289 * recog.h (reg_fits_class_p): Update prototype.
3290
3291 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3292 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
3293 Remove.
3294 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
3295 static. Change regclass argument and result types from enum reg_class
3296 to reg_class_t.
3297 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3298
3299 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
3300
3301 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
3302 visibility enum, and handle @package.
3303
3304 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
3305
3306 * doc/objc.texi (What you can and what you cannot do in +load):
3307 Document that sending messages to constant string objects in +load
3308 is not guaranteed to work.
3309
3310 2010-10-16 Jan Hubicka <jh@suse.cz>
3311
3312 PR middle-end/44206
3313 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
3314 existence of refrences before removing the function.
3315
3316 2010-10-16 Jan Hubicka <jh@suse.cz>
3317
3318 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
3319 only_called_at_startup and only_called_at_exit.
3320 (cgraph_propagate_frequency): Compute only_called_at_startup and
3321 only_called_at_exit.
3322 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
3323 only_called_at_exit.
3324 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
3325 flags.
3326 * predict.c (compute_function_frequency): Initialize the new flags.
3327
3328 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
3329
3330 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
3331 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
3332 on the bounds of its domain.
3333 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
3334
3335 2010-10-16 Anatoly Sokolov <aesok@post.ru>
3336
3337 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
3338 * config/avr/avr-protos.h (preferred_reload_class): Remove.
3339 * config/avr/avr.c (preferred_reload_class): Remove.
3340 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
3341 * config/pa/pa.c (emit_move_sequence): Update comment
3342 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
3343 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
3344 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
3345 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
3346 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
3347 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
3348 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
3349 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
3350 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
3351 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
3352 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
3353 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
3354 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
3355
3356 2010-10-16 Joseph Myers <joseph@codesourcery.com>
3357
3358 * opts.c (set_fast_math_flags,
3359 set_unsafe_math_optimizations_flags): Make static.
3360 * toplev.h (set_fast_math_flags,
3361 set_unsafe_math_optimizations_flags): Remove prototypes.
3362
3363 2010-10-16 Joseph Myers <joseph@codesourcery.com>
3364
3365 * config/arm/arm.c (arm_option_optimization): Set
3366 flag_section_anchors to 1 not 2.
3367 * config/i386/i386.c (ix86_option_override_internal): Check
3368 global_options_set.x_flag_zee and
3369 global_options_set.x_flag_omit_frame_pointer.
3370 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
3371 flag_zee to 2.
3372 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
3373 global_options_set.x_flag_omit_frame_pointer.
3374 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
3375 opts->x_flag_section_anchors to 1 not 2.
3376 * config/sh/sh.c (sh_option_optimization): Don't set
3377 flag_schedule_insns to 2.
3378 (sh_option_override): Check
3379 global_options_set.x_flag_schedule_insns.
3380 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
3381
3382 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
3383
3384 * configure.ac: Make sure inhibit_libc remains false for mingw targets
3385 as cross.
3386 * configure: Regenerated.
3387
3388 2010-10-15 Xinliang David Li <davidxl@google.com>
3389
3390 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
3391 function.
3392 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
3393 into a recursive function.
3394
3395 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
3396
3397 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
3398 (*movdfcc_1): ditto.
3399
3400 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3401
3402 * target.def (target_option.init_struct): New hook.
3403 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
3404 * doc/tm.texi: Regenerate.
3405 * hooks.c (hook_void_gcc_optionsp): New.
3406 * hooks.h (hook_void_gcc_optionsp): Declare.
3407 * langhooks-def.h (lhd_init_options_struct): Remove.
3408 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
3409 * langhooks.c (lhd_init_options_struct): Remove.
3410 * opts.c (init_options_struct): Also call
3411 targetm.target_option.init_struct.
3412 * config/i386/i386.c (ix86_option_init_struct,
3413 TARGET_OPTION_INIT_STRUCT): New.
3414 (ix86_option_optimization): Move some settings to
3415 ix86_option_init_struct.
3416 * config/pdp11/pdp11.c (pdp11_option_init_struct,
3417 TARGET_OPTION_INIT_STRUCT): New.
3418 (pdp11_option_optimization): Move some settings to
3419 pdp11_option_init_struct.
3420 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
3421 rs6000_option_init_struct. Use options structure pointer.
3422 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3423 * config/s390/s390.c (s390_option_init_struct,
3424 TARGET_OPTION_INIT_STRUCT): New.
3425 (s390_option_optimization): Don't set
3426 flag_asynchronous_unwind_tables here.
3427 * config/sh/sh.c (sh_option_init_struct,
3428 TARGET_OPTION_INIT_STRUCT): New.
3429 (sh_option_optimization): Don't set flag_finite_math_only here.
3430 * config/spu/spu.c (spu_option_optimization): Replace by
3431 spu_option_optimization. Use options structure pointer.
3432 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3433
3434 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3435
3436 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
3437
3438 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
3439 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
3440 (Standard names): Document fma.
3441
3442 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
3443 __FP_FAST_FMAF, __FP_FAST_FMAL.
3444
3445 * builitns.c (expand_builtin_mathfn_ternary): New function for
3446 expanding ternary math functions, like fma.
3447 (expand_builtin): Call it for the fma builtins.
3448
3449 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
3450 ops at present.
3451
3452 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
3453 vectorizable functions to support vectorizing fma.
3454
3455 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
3456 Handle fma builtins.
3457
3458 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
3459 (UNSPEC_VSX_MSUB): Ditto.
3460 (UNSPEC_VSX_NMADD): Ditto.
3461 (UNSPEC_VSX_NMSUB): Ditto.
3462 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
3463 of UNSPEC. Renumber combiner patterns.
3464 (vsx_fmsub<mode>4*): Ditto.
3465 (vsx_fnmadd<mode>4*): Ditto.
3466 (vsx_fnmsub<mode>4*): Ditto.
3467
3468 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
3469 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
3470 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
3471 (altivec_vmaddfp_1): Ditto.
3472 (altivec_vmaddfp_2): Ditto.
3473 (atlivec_mulv4sf3): Ditto.
3474 (altivec_vnmsubfp): Ditto.
3475 (altivec_vnmsubfp_1): Ditto.
3476 (altivec_vnmsubfp_2): Ditto.
3477 (altivec_vnmsubfp_3): Delete.
3478
3479 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
3480 (fmasf4_fpr): Ditto.
3481 (fmssf4_fpr): Ditto.
3482 (fnmasf4_fpr): Ditto.
3483 (fnmssf4_fpr): Ditto.
3484 (fmadf4): Ditto.
3485 (fmadf4_fpr): Ditto.
3486 (fmsdf4_fpr): Ditto.
3487 (fnmadf4_fpr): Ditto.
3488 (fnmsdf4_fpr): Ditto.
3489
3490 * optabs.h (OTI_fma): Add fma optab.
3491 (fma_optab): Ditto.
3492
3493 * genopinit.c (optabs): Set fma optab.
3494
3495 * rtl.def (FMA): Add FMA rtl.
3496
3497 * tree.h (mode_has_fma): New function to return if MODE supports a
3498 fast multiply and add instruction.
3499 * builtins.c (mode_has_fma): Ditto.
3500
3501 2010-10-15 Jan Hubicka <jh@suse.cz>
3502
3503 * lto-streamer-out.c (write_symbol): Use pointer set of seen
3504 objects instead of bitmap.
3505 (produce_symtab): Likewise; output defined symbols first.
3506
3507 2010-10-15 Jie Zhang <jie@codesourcery.com>
3508
3509 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
3510 Option Summary and Index.
3511
3512 2010-10-15 Richard Guenther <rguenther@suse.de>
3513
3514 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
3515 for automatic variables again.
3516
3517 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3518
3519 * doc/extend.texi (Variable Length): Don't refer to VLAs not
3520 conforming to C99.
3521
3522 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3523
3524 * config/rx/rx.c (rx_option_optimization): Change to
3525 rx_override_options_after_change. Don't change
3526 flag_lto_compression_level. Don't check for changes to whether
3527 FPU instructions can be used. Check and set only
3528 flag_finite_math_only, not other fast-math flags.
3529 (rx_option_override): Call rx_override_options_after_change.
3530 (TARGET_OPTION_OPTIMIZATION): Remove.
3531 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3532
3533 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3534
3535 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
3536 disable section anchors for lang_hooks.name[4] != 'O'.
3537
3538 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3539
3540 * config/frv/frv.c (frv_option_optimization,
3541 TARGET_OPTION_OPTIMIZATION): Remove.
3542 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
3543
3544 2010-10-15 Michael Matz <matz@suse.de>
3545
3546 * cgraphunit.c (clone_of_p): Define unconditionally.
3547
3548 2010-10-15 Richard Guenther <rguenther@suse.de>
3549
3550 PR lto/45957
3551 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
3552
3553 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
3554
3555 * ifcvt.c (find_active_insn_before): New function.
3556 (find_active_insn_after): New function.
3557 (cond_exec_process_if_block): Use new functions to replace
3558 prev_active_insn() and next_active_insn().
3559
3560 2010-10-14 Yao Qi <yao@codesourcery.com>
3561
3562 PR target/45447
3563 * config/arm/arm.c (arm_build_builtin_va_list): Assign
3564 va_list_name to TYPE_STUB_DECL (va_list_type).
3565
3566 2010-10-14 Jan Hubicka <jh@suse.cz>
3567
3568 PR middle-end/45621
3569 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
3570 redirected to clone, be happy.
3571 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
3572 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
3573 former_clone_of unconditionally.
3574
3575 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3576
3577 Merge from FSF apple 'trunk' branch.
3578 2006 Fariborz Jahanian <fjahanian@apple.com>
3579
3580 Radars 4436866, 4505126, 4506903, 4517826
3581 * c-parser.c (c_parser, objc_property_attr_context) New flag.
3582 (c_lex_one_token): Handle property attributes.
3583 (c_parser_external_declaration): Handle @property.
3584 (c_parser_declaration_or_fndef): Warn on invalid attributes before
3585 @alias, @class, @end and @property objc keywords.
3586 (c_parser_objc_methodprotolist): Handle @property.
3587 (c_parser_objc_property_attrlist): New.
3588 (c_parser_objc_at_property): New.
3589 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
3590 (build_modify_expr): Likewise.
3591
3592 2010-10-14 Jakub Jelinek <jakub@redhat.com>
3593
3594 PR tree-optimization/46008
3595 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
3596
3597 2010-10-14 Richard Guenther <rguenther@suse.de>
3598
3599 PR tree-optimization/44913
3600 * tree-data-ref.c (disjoint_objects_p): Remove.
3601 (dr_may_alias_p): Simplify. Only hand the base object to
3602 the alias-oracle.
3603 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3604 some more trees, bail out instead of asserting.
3605 (ptr_derefs_may_alias_p): Likewise. Export.
3606 (refs_may_alias_p_1): Handle STRING_CSTs.
3607 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
3608
3609 2010-10-14 Joseph Myers <joseph@codesourcery.com>
3610
3611 PR c/45969
3612 * c-typeck.c (build_binary_op): Don't try to compute a semantic
3613 type with excess precision for boolean operations.
3614
3615 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
3616 Basile Starynkevitch <basile@starynkevitch.net>
3617
3618 * gengtype.c: Include getopt.h and version.h.
3619
3620 (lang_bitmap, struct outf, outf_p)
3621 (get_output_file_with_visibility, oprintf): Definitions moved to
3622 gengtype.h
3623 (output_files, header_file, srcdir, srcdir_len, this_file)
3624 (do_dump): No more static variables.
3625 (do_debug): New.
3626 (dbgprint_count_type_at): Added new function.
3627 (gengtype_long_options): New.
3628 (print_usage, print_version, parse_program_options): New.
3629 (main): Call parse_program_options, and removed old option
3630 handling code. Added some debug output.
3631
3632 * gengtype.h: Updated copyright year.
3633 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
3634 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
3635 Moved from gengtype.c to here.
3636 (do_debug, read_state_filename, write_state_filename): New variables.
3637 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
3638
3639 * Makefile.in:
3640 (REVISION): Always defined.
3641 (version.o): Removed ifdef REVISION_c.
3642 (s-gtype): Pass arguments to build/gengtype program.
3643 (build/version.o): Added building rule.
3644 (build/gengtype$(build_exeext)): Added build/version.o.
3645
3646 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3647
3648 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
3649 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
3650 __strong macros.
3651
3652 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
3653
3654 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
3655 may_trap_or_fault_p instead of may_trap_p predicate.
3656 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
3657 (substitute_placeholder_in_expr): Likewise.
3658 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
3659 flag on MEM_REF nodes.
3660 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
3661 flags on INDIRECT_REF nodes.
3662
3663 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
3664
3665 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
3666 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
3667 (arm*-*-eabi*) <tm_file>: Likewise.
3668 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
3669 (frv-*-*linux*) <tm_file>: Likewise.
3670 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
3671 and associated helper macros.
3672 * config/frv/frv-abi.h: Delete.
3673
3674 2010-10-14 Richard Guenther <rguenther@suse.de>
3675
3676 PR lto/44561
3677 * tree.def (NULLPTR_TYPE): New tree code.
3678 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
3679 * dwarf2out.c (is_base_type): Likewise.
3680 (gen_type_die_with_usage): Likewise.
3681 * sdbout.c (plain_type_1): Likewise.
3682 * tree.c (build_int_cst_wide): Likewise.
3683 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
3684
3685 2010-10-14 Joseph Myers <joseph@codesourcery.com>
3686
3687 * params.c (params_finished): New.
3688 (add_params): Assert !params_finished.
3689 (finish_params): New.
3690 (set_param_value_internal): Take params and params_set
3691 parameters. Assert params_finished.
3692 (set_param_value, maybe_set_param_value): Take params and
3693 params_set parameters. Update calls to set_param_value_internal.
3694 (set_default_param_value): Assert !params_finished. Don't use
3695 set_param_value_internal.
3696 (default_param_value, init_param_values): New.
3697 * params.h (struct param_info): Change value to default_value.
3698 Remove set.
3699 (set_param_value, maybe_set_param_value): Add params and
3700 params_set parameters.
3701 (PARAM_VALUE): Get parameters from global_options.
3702 (PARAM_SET_P): Remove.
3703 (finish_params, default_param_value, init_param_values): New.
3704 * common.opt (param_values): New Variable.
3705 * config/arm/arm.c (arm_option_override): Pass extra arguments to
3706 maybe_set_param_value.
3707 * config/i386/i386.c (ix86_option_override_internal): Pass extra
3708 arguments to maybe_set_param_value.
3709 * config/picochip/picochip.c (picochip_option_override): Pass
3710 extra arguments to maybe_set_param_value.
3711 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
3712 extra arguments to maybe_set_param_value.
3713 * config/s390/s390.c (s390_option_override): Use
3714 maybe_set_param_value instead of set_param_value. Pass extra
3715 arguments to maybe_set_param_value.
3716 * config/sparc/sparc.c (sparc_option_override): Pass extra
3717 arguments to maybe_set_param_value.
3718 * config/spu/spu.c (spu_option_override): Pass extra arguments to
3719 maybe_set_param_value.
3720 * opts.c (handle_param): Take opts and opts_set parameters.
3721 Update call to set_param_value.
3722 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
3723 initial_loop_invariant_max_bbs_in_loop): Remove.
3724 (init_options_once): Don't set them.
3725 (init_options_struct): Initialize parameters structures.
3726 (default_options_optimization): Use default_param_value when
3727 restoring defaults. Update calls to maybe_set_param_value.
3728 (finish_options): Update calls to maybe_set_param_value.
3729 (common_handle_option): Update calls to handle_param and
3730 set_param_value.
3731 * toplev.c (DEFPARAM): Update definition for changes to param_info.
3732 (general_init): Call finish_params.
3733
3734 2010-10-14 Nick Clifton <nickc@redhat.com>
3735
3736 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
3737 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
3738 (FIRST_PSEUDO_REGISTER): Increase by one.
3739 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
3740 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
3741 (MODES_TIEABLE): Call mn10300_modes_tieable.
3742 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
3743 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
3744 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
3745 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
3746 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
3747 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3748 (mn10300_cc_status_mdep): Delete.
3749 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
3750 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
3751 the combine-stack-adjust pass.
3752 (print_operand): Use the mode of the comparison operation to
3753 select the comparison suffix.
3754 (notice_update_cc): Delete.
3755 (mn10300_secondary_reload_class): Remove test for stack pointer
3756 based arithmetic.
3757 (output_tst): Rename to mn10300_output_cmp.
3758 (impossible_plus_operand): Move into predicates.md.
3759 (mn10300_legitimize_address): Make static.
3760 (mn10300_legitimate_address_p): Make static. Only allow SI sized
3761 constant pic operands.
3762 (mn10300_legitimate_constant_p): New function.
3763 (mn10300_case_values_threshold): Make static.
3764 (mn10300_hard_regno_mode_ok): New function.
3765 (mn10300_modes_tieable): New function.
3766 (mn10300_select_cc_mode): New function.
3767 * config/mn10300/predicates.md (impossible_plus_operand): Define.
3768 * config/mn10300/mn10300-protos.h: Tidy.
3769 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
3770 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
3771 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
3772 with clobbers or sets of CC_REG.
3773 (CC_REG): Define.
3774 (mov*): Remove use of CLR instruction.
3775 (cbranch_si4_<code>): New pattern/split.
3776 (integer_conditional_branch): New pattern.
3777 (cbranch_sf4_<code>): New pattern/split.
3778 (float_conditional_branch): New pattern.
3779 (casesi): Use addsi3 pattern instead of movsi pattern to add and
3780 move a value at the same time.
3781 (cc0 peepholes): Remove.
3782
3783 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3784
3785 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
3786 on RTX_FRAME_RELATED_P insns and the insn to which
3787 NOTE_INSN_EPILOGUE_BEG is attached.
3788 * sched-vis.c (print_value): Allow NULL value.
3789
3790 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3791
3792 PR rtl-optimization/45570
3793 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
3794 assert that we are pipelining outer loops. Allow returning
3795 zero predecessors.
3796
3797 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3798
3799 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
3800 (tidy_control_flow): Tidy vertical space.
3801 (sel_remove_bb): New variable idx. Use it to remember the basic
3802 block index before deleting the block.
3803 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
3804 (sel_merge_blocks): ... here.
3805 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
3806
3807 2010-10-14 Jakub Jelinek <jakub@redhat.com>
3808
3809 * cse.c (is_dead_reg): Change into inline function that is not
3810 called through for_each_rtx.
3811 (set_live_p): Adjust caller.
3812 (insn_live_p): Don't reset DEBUG_INSNs here.
3813 (struct dead_debug_insn_data): New data.
3814 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
3815 (delete_trivially_dead_insns): If there is just one setter for the
3816 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
3817 and add DEBUG_INSN for it right before the removed setter and
3818 use the DEBUG_EXPR instead of the dead pseudo.
3819
3820 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
3821
3822 * et-forest.c (et_nca): Return NULL immediately when
3823 the dominance forest has disjoint components.
3824
3825 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
3826
3827 * ira.c (setup_class_hard_regs): Fix typo in indexing
3828 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
3829
3830 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
3831
3832 * graph.c (inbb): New variable.
3833 (start_bb): Set inbb to 1 if output is inside of a building block.
3834 (end_bb): Check if output is inside of a building block.
3835
3836 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
3837
3838 PR rtl-optimization/45912
3839 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
3840 regno of registers instead of their index to compute the alignment.
3841
3842 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
3843
3844 * config/i386/i386.c (ix86_build_const_vector): Check vector
3845 mode instead of scalar mode.
3846 (ix86_build_signbit_mask): Likewise.
3847 (ix86_expand_fp_absneg_operator): Updated.
3848 (ix86_expand_copysign): Likewise.
3849 (ix86_expand_int_vcond): Likewise.
3850 (ix86_emit_swdivsf): Likewise.
3851 (ix86_sse_copysign_to_positive): Likewise.
3852 (ix86_expand_sse_fabs): Likewise.
3853 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
3854 * config/i386/sse.md (copysign<mode>3): Likewise.
3855 (sse2_cvtudq2ps): Likewise.
3856 (vec_unpacku_float_hi_v4si): Likewise.
3857 (vec_unpacku_float_lo_v4si): Likewise.
3858
3859 * config/i386/i386.c (ix86_builtins): Add
3860 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
3861 (bdesc_args): Likewise.
3862 (ix86_builtin_vectorized_function): Support
3863 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
3864 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
3865 and IX86_BUILTIN_CVTPS2DQ256.
3866 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
3867
3868 * config/i386/sse.md (STORENT_MODE): New.
3869 (VEC_FLOAT_MODE): Likewise.
3870 (VEC_EXTRACT_MODE): Likewise.
3871 (*avx_cvtdq2pd256_2): Likewise.
3872 (vec_pack_trunc_v4df): Likewise.
3873 (vec_interleave_highv8sf): Likewise.
3874 (vec_interleave_lowv8sf): Likewise.
3875 (storent<mode>): Macroized.
3876 (<code><mode>2: absneg): Likewise.
3877 (copysign<mode>3): Likewise.
3878 (vec_extract<mode>): Likewise.
3879
3880 PR target/44180
3881 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
3882 for V8SFmode.
3883
3884 2010-10-13 Richard Guenther <rguenther@suse.de>
3885 H.J. Lu <hongjiu.lu@intel.com>
3886
3887 * config/i386/sse.md (reduc_splus_v8sf): Add.
3888 (reduc_splus_v4df): Likewise.
3889 (vec_unpacks_hi_v8sf): Likewise.
3890 (vec_unpacks_lo_v8sf): Likewise.
3891 (*avx_cvtps2pd256_2): Likewise.
3892 (vec_unpacks_float_hi_v8si): Likewise.
3893 (vec_unpacks_float_lo_v8si): Likewise.
3894 (vec_interleave_highv4df): Likewise.
3895 (vec_interleave_lowv4df): Likewise.
3896
3897 2010-10-13 Richard Guenther <rguenther@suse.de>
3898
3899 PR objc/45878
3900 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
3901 alone if there are no virtual methods.
3902
3903 2010-10-13 Richard Henderson <rth@redhat.com>
3904
3905 * expr.c (build_personality_function): Take parameter LANG instead
3906 of parameter NAME. Build the name based on the lang prefix and the
3907 unwind method in use.
3908 * tree.c (lhd_gcc_personality): Update call to
3909 build_personality_function.
3910
3911 2010-10-13 Richard Guenther <rguenther@suse.de>
3912
3913 PR objc/45878
3914 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
3915
3916 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
3917
3918 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
3919 Canonicalize input operands of ASM_OPERANDS insns.
3920
3921 2010-10-13 Richard Guenther <rguenther@suse.de>
3922
3923 PR tree-optimization/45788
3924 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
3925 EH update until fixup-cfg.
3926
3927 2010-10-13 Julian Brown <julian@codesourcery.com>
3928
3929 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
3930 from CORE_REGS and GENERAL_REGS classes.
3931 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
3932 final constraint for register preferencing.
3933
3934 2010-10-13 Richard Guenther <rguenther@suse.de>
3935
3936 PR tree-optimization/45970
3937 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
3938 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
3939 (stmt_kills_ref_p): Likewise.
3940 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
3941
3942 2010-10-13 Richard Guenther <rguenther@suse.de>
3943
3944 PR tree-optimization/45982
3945 * tree-ssa-structalias.c (make_constraints_to): New function.
3946 (make_constraint_to): Implement in terms of make_constraints_to.
3947 (find_func_aliases): Properly make return values of pure/const
3948 functions escape if they assign to sth that is not a pointer.
3949
3950 2010-10-13 Richard Guenther <rguenther@suse.de>
3951
3952 PR middle-end/45874
3953 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3954 Fixup the CFG when EH was fixed up.
3955
3956 2010-10-13 Ira Rosen <irar@il.ibm.com>
3957
3958 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
3959 Use operand's type for POINTER_PLUS_EXPR.
3960
3961 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
3962
3963 * c-parser.c (c_parser_for_statement): Initialize incr.
3964
3965 2010-10-12 Xinliang David Li <davidxl@google.com>
3966
3967 PR tree-optimization/45972
3968 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
3969 with too many arguments.
3970
3971 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3972
3973 PR fortran/45636
3974 * tree-ssa-forwprop.c: Include expr.h.
3975 (constant_pointer_difference, simplify_builtin_call): New functions.
3976 (tree_ssa_forward_propagate_single_use_vars): Call
3977 simplify_builtin_call on builtin calls.
3978
3979 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
3980
3981 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
3982 (*adddi3_extend_sp32): Likewise.
3983 (*subdi3_insn_sp32): Likewise.
3984 (*subdi3_extend_sp32): Likewise.
3985 (*negdi2_sp32): Use negative test for consistency.
3986
3987 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3988
3989 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
3990 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3991 * config/fixed-bit.h: Likewise.
3992 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3993 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3994 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
3995 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
3996 (DF_SIZE): Likewise.
3997 * doc/tm.texi: Regenerate.
3998
3999 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
4000
4001 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
4002 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
4003 (*isel_reversed_unsigned_<mode>): New.
4004 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
4005 as valid comparisons and adjust operands and output appropriately.
4006 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
4007
4008 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
4009
4010 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
4011 DATA_ALIGNMENT and add COND parameter. Update comments above.
4012 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
4013 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
4014
4015 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
4016
4017 PR bootstrap/45958
4018 * exec-tool.in: Support '-plugin' as the second option to the linker.
4019
4020 2010-10-12 Richard Henderson <rth@redhat.com>
4021
4022 PR middle-end/45962
4023 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
4024 (expand_stack_vars): Assert large base allocated when used.
4025
4026 2010-10-12 Richard Guenther <rguenther@suse.de>
4027
4028 * tree-ssa-structalias.c (get_constraint_for_1): Constants
4029 only point to nonlocal, not anything.
4030
4031 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
4032
4033 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
4034 unwind info for exceptions.
4035
4036 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4037
4038 PR testsuite/45851
4039 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
4040 Document optional target selector.
4041
4042 2010-10-12 Joseph Myers <joseph@codesourcery.com>
4043
4044 * flag-types.h: New.
4045 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
4046 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
4047 options.h.
4048 (OPTIONS_H): Define.
4049 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
4050 of options.h.
4051 * configure.ac (tm_include_list): Include options.h not flags.h.
4052 * configure: Regenerate.
4053 * flags.h: Include flag-types.h. Include options.h at top of file
4054 again.
4055 (enum debug_info_type, enum debug_info_level, enum
4056 debug_info_usage, enum symbol_visibility, struct visibility_flags,
4057 enum ira_algorithm, enum ira_region, enum excess_precision, enum
4058 graph_dump_types, enum stack_check_type,
4059 enum warn_strict_overflow_code): Move to flag-types.h
4060 * opth-gen.awk: Include flag-types.h in options.h.
4061
4062 2010-10-12 Jakub Jelinek <jakub@redhat.com>
4063
4064 * expr.c (store_expr): Share code for STRING_CST and
4065 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
4066 check if target is a MEM.
4067
4068 * rtl.h: Include hashtab.h.
4069 (iterative_hash_rtx): New prototype.
4070 * rtl.c (iterative_hash_rtx): New function.
4071 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
4072 (output_loc_list): Return immediately if emitted is set, set it.
4073 (hash_loc_operands, hash_locs, hash_loc_list,
4074 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
4075 optimize_location_lists_1, optimize_location_lists): New function.
4076 (dwarf2out_finish): Call optimize_location_lists.
4077 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
4078
4079 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4080
4081 PR testsuite/45974
4082 Revert:
4083 * Makefile.in ($(lang_checks_parallel))
4084 ($(lang_checks_parallelized)): Use single quotes for
4085 $(RUNTESTFLAGS), to allow passing quoted content.
4086
4087 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4088
4089 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
4090 actual_oldval. Use __builtin_expect.
4091 (SUBWORD_VAL_CAS): Likewise.
4092
4093 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
4094
4095 * recog.c (nonmemory_operand): Call immediate_operand for
4096 CONSTANT_P operands.
4097
4098 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
4099
4100 * config/i386/i386.md (movmem<mode>): Macroize expander from
4101 movmem{si,di} using SWI48 mode iterator.
4102 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
4103 *strmovsi_rex_1 using P mode iterator.
4104 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
4105 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
4106 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
4107 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
4108 (setmem<mode>): Macroize expander from setmem{si,di} using
4109 SWI48 mode iterator.
4110 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
4111 *strsetsi_rex_1 using P mode iterator.
4112 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
4113 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
4114 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
4115 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
4116 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
4117 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
4118 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
4119 mode iterator.
4120 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
4121 *strlenqi_rex_1 using P mode iterator.
4122
4123 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
4124
4125 PR bootstrap/45445
4126 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
4127 static functions.
4128 (mark_ref_live, mark_ref_dead): Use them.
4129 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
4130 Save the original reg, and use the new functions.
4131 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
4132 changed.
4133 (check_and_make_def_conflict): Save the original reg.
4134
4135 2010-10-11 Martin Jambor <mjambor@suse.cz>
4136
4137 PR middle-end/45699
4138 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
4139 thunks.
4140
4141 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4142
4143 * Makefile.in ($(lang_checks_parallel))
4144 ($(lang_checks_parallelized)): Use single quotes for
4145 $(RUNTESTFLAGS), to allow passing quoted content.
4146
4147 PR bootstrap/35855
4148 * opt-functions.awk (BEGIN): New section.
4149 (lower, upper, digit, alnum): New variables.
4150 (static_var, opt_sanitized_name): Use alnum instead of character
4151 classes, for non-C locale.
4152 * optc-gen.awk: Likewise.
4153 * opth-gen.awk: Likewise.
4154
4155 2010-10-11 Anatoly Sokolov <aesok@post.ru>
4156
4157 * target.def (preferred_reload_class): New hook.
4158 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
4159 * doc/tm.texi: Regenerate.
4160 * targhooks.c (default_preferred_reload_class): New function.
4161 * targhooks.h (default_preferred_reload_class): Declare.
4162 * reload.c (find_dummy_reload): Change preferred_class variable type
4163 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
4164 target hook.
4165 (find_reloads): Change goal_alternative array type from int to
4166 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
4167 (push_reload, find_reloads_address_part): Use
4168 TARGET_PREFERRED_RELOAD_CLASS target hook.
4169 * reload1.c (emit_input_reload_insns): Ditto.
4170 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
4171 hook. Change rclass argument and secondary_class variable types from
4172 'enum reg_class' to reg_class_t.
4173
4174 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
4175 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
4176 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
4177 Change regclass argument and result types from enum reg_class to
4178 reg_class_t.
4179 (TARGET_PREFERRED_RELOAD_CLASS): Define.
4180
4181 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
4182
4183 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
4184 in masking operations.
4185 (simplify_const_unary_operation): Likewise.
4186 (simplify_binary_operation_1): Likewise.
4187 (simplify_const_binary_operation): Likewise.
4188 (simplify_const_relational_operation): Likewise.
4189 (simplify_ternary_operation): Likewise.
4190 (simplify_immed_subreg): Likewise.
4191
4192 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4193
4194 PR middle-end/45862
4195 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
4196 (TARGET_SUPPORTS_WEAK): New.
4197 * doc/tm.texi: Regenerate.
4198 * defaults.h (SUPPORTS_WEAK): Update comment.
4199 (TARGET_SUPPORTS_WEAK): New.
4200 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
4201 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
4202 SUPPORTS_WEAK.
4203 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
4204 make_decl_one_only): Likewise.
4205 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
4206 TARGET_SUPPORTS_WEAK.
4207 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
4208 instead of SUPPORTS_WEAK.
4209
4210 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4211
4212 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
4213
4214 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
4215
4216 * vec.h (VEC_qsort): Define.
4217 * dbxout.c (output_used_types): Use it.
4218 * df-scan.c (df_sort_and_compress_refs): Likewise.
4219 (df_sort_and_compress_mws): Likewise.
4220 * genautomata.c (uniq_sort_alt_states): Likewise.
4221 (evaluate_equiv_classes): Likewise.
4222 (output_trans_table): Likewise.
4223 (output_state): Likewise.
4224 * gimplify.c (compare_case_labels): Likewise.
4225 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
4226 * ipa.c (build_cdtor_fns): Likewise.
4227 * lto.c (lto_wpa_write_files): Likewise.
4228 * sel-sched.c (fill_vec_av_set): Likewise.
4229 * tree-predcom.c (determine_roots_comp): Likewise.
4230 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
4231 (splice_param_accesses): Likewise.
4232 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
4233 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
4234 (reassociate_bb): Likewise.
4235 * tree-ssa-sccvn.c (sort_scc): Likewise.
4236 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
4237
4238 2010-10-11 Ian Lance Taylor <iant@google.com>
4239
4240 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
4241 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
4242 TREE_THIS_NOTRAP when appropriate.
4243 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
4244 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
4245 newly created MEM_REF.
4246
4247 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
4248
4249 Nathan Froyds patch to hooks FUNCTION_ARG etc.
4250 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
4251 (picochip_incoming_function_arg): Delete.
4252 (picochip_arg_advance): Delete.
4253 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
4254 (FUNCTION_INCOMING_ARG): Delete.
4255 (FUNCTION_ARG_ADVANCE): Delete.
4256 * config/picochip/picochip.c (picochip_function_arg): Take a
4257 const_tree and a bool.
4258 (picochip_incoming_function_arg): Likewise.
4259 (picochip_arg_advance): Likewise.
4260 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4261 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4262
4263 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4264
4265 PR middle-end/45955
4266 * ipa.c (build_cdtor): Delete endless loop.
4267
4268 2010-10-07 Andi Kleen <ak@linux.intel.com>
4269
4270 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
4271 checksum-options.
4272 (checksum-options): Add.
4273 (cc1-dummy): Remove.
4274 (cc1-checksum): Change to run checksum over object files
4275 and options only.
4276 * dummy-checksum.c: Remove.
4277 * genchecksum.c: Update copyright.
4278 (usage): Allow multiple arguments.
4279 (BLOCKSIZE): Add.
4280 (dosum): Change for incremental checksum. Remove C output.
4281 (main): Iterate over all argument files. Add C output.
4282
4283 2010-10-11 Joseph Myers <joseph@codesourcery.com>
4284
4285 * params.c (set_param_value_internal): New.
4286 (set_param_value): Use set_param_value_internal.
4287 (maybe_set_param_value, set_default_param_value): New.
4288 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
4289 (maybe_set_param_value, set_default_param_value): Declare.
4290 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
4291 * config/i386/i386.c (ix86_option_override_internal): Use
4292 maybe_set_param_value.
4293 * config/ia64/ia64.c (ia64_option_default_params,
4294 TARGET_OPTION_DEFAULT_PARAMS): New.
4295 (ia64_option_optimization): Move some code to
4296 ia64_option_default_params.
4297 * config/picochip/picochip.c (picochip_option_override): Use
4298 maybe_set_param_value.
4299 * config/rs6000/rs6000.c (rs6000_option_default_params,
4300 TARGET_OPTION_DEFAULT_PARAMS): New.
4301 (rs6000_option_override_internal): Use maybe_set_param_value.
4302 (rs6000_option_optimization): Move some code to
4303 rs6000_option_default_params.
4304 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
4305 * config/sh/sh.c (sh_option_default_params,
4306 TARGET_OPTION_DEFAULT_PARAMS): New.
4307 (sh_option_optimization): Move some code to sh_option_default_params.
4308 * config/sparc/sparc.c (sparc_option_override): Use
4309 maybe_set_param_value.
4310 * config/spu/spu.c (spu_option_default_params,
4311 TARGET_OPTION_DEFAULT_PARAMS): New.
4312 (spu_option_optimization): Move some code to spu_option_default_params.
4313 (spu_option_override): Use maybe_set_param_value.
4314 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
4315 * doc/tm.texi: Regenerate.
4316 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
4317 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
4318 compiler_params.
4319 (default_options_optimization): Use maybe_set_param_value.
4320 (finish_options): Use maybe_set_param_value.
4321 * target.def (target_option.default_params): New hook.
4322 * toplev.c (general_init): Call targetm.target_option.default_params.
4323
4324 2010-10-11 Ira Rosen <irar@il.ibm.com>
4325
4326 PR tree-optimization/45902
4327 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
4328 vector type for constants, unless it's a pointer.
4329
4330 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4331
4332 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
4333
4334 2010-10-11 Jakub Jelinek <jakub@redhat.com>
4335
4336 PR target/45870
4337 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
4338 (ix86_delegitimize_address): Use it.
4339
4340 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
4341
4342 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
4343
4344 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
4345
4346 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
4347 to cum struct in the call to function_arg_advance.
4348 (alpha_function_arg_advance): Mark named as unused.
4349
4350 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
4351
4352 * config/mips/mips.c (mips_handle_option): Make "value" with
4353 ATTRIBUTE_UNUSED.
4354
4355 2010-10-09 Richard Henderson <rth@redhat.com>
4356
4357 PR rtl-opt/33721
4358 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
4359 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
4360 required_align, tidy the code a bit. Emit split_stack code in the
4361 right place. Mark the return value with the alignment properly.
4362 * expr.h (allocate_dynamic_stack_space): Update decl.
4363 * builtins.c (expand_builtin_apply): Update call to
4364 allocate_dynamic_stack_space.
4365 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
4366 * calls.c (initialize_argument_information): Update call to
4367 allocate_dynamic_stack_space.
4368 (expand_call): Likewise.
4369
4370 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
4371 Don't update_stack_alignment here.
4372 (alloc_stack_frame_space): Make ALIGN unsigned.
4373 (stack_var_cmp): Sort by alignment too.
4374 (partition_stack_vars): Don't merge large and small alignment vars.
4375 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
4376 Take care when BASE is not virtual_stack_vars_rtx.
4377 (expand_stack_vars): Allocate dynamic stack space for large
4378 alignment variables.
4379 (expand_one_stack_var): Update all to expand_one_stack_var_at.
4380 (defer_stack_allocation): True for large alignment vars.
4381 (update_stack_alignment): Merge into ...
4382 (expand_one_var): ... here.
4383 (gimple_expand_cfg): Place code from expand_stack_vars.
4384
4385 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4386
4387 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4388 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
4389 (pdp11_function_arg_advance): New function.
4390 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4391
4392 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4393
4394 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
4395 * libgcc2.c: Likewise.
4396
4397 2010-10-09 Richard Guenther <rguenther@suse.de>
4398
4399 PR lto/45956
4400 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
4401 Properly check if a decl is an automatic var.
4402
4403 2010-10-09 Richard Guenther <rguenther@suse.de>
4404
4405 PR lto/45947
4406 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
4407
4408 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4409
4410 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
4411 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4412 * config/mmix/mmix.c (mmix_function_arg): Rename to...
4413 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
4414 bool arguments.
4415 (mmix_function_arg): New function.
4416 (mmix_function_incoming_arg): New function.
4417 (mmix_function_arg_advance): New function.
4418 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4419 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4420
4421 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4422
4423 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4424 * config/vax/vax.c (vax_function_arg): New function.
4425 (vax_function_arg_advance): New function.
4426 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4427
4428 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4429
4430 * config/pa/pa-protos.h (function_arg): Delete.
4431 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4432 * config/pa/pa.c (function_arg): Rename to...
4433 (pa_function_arg): ...this. Make static. Take a const_tree and
4434 a bool.
4435 (pa_function_arg_advance): New function.
4436 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4437
4438 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4439
4440 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4441 * config/m68k/m68k.c (m68k_function_arg): New function.
4442 (m68k_function_arg_advance): New function.
4443 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4444
4445 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4446
4447 * config/avr/avr-protos.h (function_arg): Delete.
4448 (function_arg_advance): Delete.
4449 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4450 * config/avr/avr.c (function_arg): Rename to...
4451 (avr_function_arg): ...this. Make static. Take a const_tree and
4452 a bool.
4453 (function_arg_advance): Rename to...
4454 (avr_function_arg_advance): ...this. Make static. Take a
4455 const_tree and a bool.
4456 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4457
4458 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4459
4460 * config/alpha/alpha-protos.h (function_arg): Delete.
4461 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4462 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
4463 * config/alpha/alpha.c (function_arg): Rename to...
4464 (alpha_function_arg): ...this. Make static. Take a const_tree and
4465 a bool. Delete TARGET_ABI_UNICOSMK code.
4466 (alpha_function_arg_advance): New function.
4467 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4468
4469 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4470
4471 * config/mep/mep-protos.h (mep_function_arg): Delete.
4472 (mep_function_arg_advance): Delete.
4473 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4474 * config/mep/mep.c (mep_function_arg): Make static. Take a
4475 const_tree and a bool.
4476 (mep_function_arg_advance): Likewise.
4477 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4478
4479 2010-10-09 Richard Guenther <rguenther@suse.de>
4480
4481 PR tree-optimization/45945
4482 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
4483
4484 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
4485
4486 PR tree-optimization/45612
4487 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
4488 Test LABEL_DECLs as well. Fix formatting issues.
4489 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
4490 whose label is present in NON_SSA_VARS.
4491 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
4492 as well. Fix formatting issues.
4493 (visit_bb): Fix typos and formatting issue.
4494
4495 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4496
4497 PR tree-optimization/45950
4498 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
4499 before initializing vno->op.
4500
4501 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
4502
4503 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
4504 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
4505
4506 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
4507
4508 PR target/45913
4509 * config/i386/i386.c (ix86_binary_operator_ok): Support
4510 "andhi/andsi/anddi" as a zero-extending move.
4511
4512 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4513
4514 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
4515 into a temporary array.
4516
4517 2010-10-08 Jakub Jelinek <jakub@redhat.com>
4518
4519 PR tree-optimization/45903
4520 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
4521 of {A,L}SHIFTRT of MEM.
4522
4523 2010-10-08 Richard Guenther <rguenther@suse.de>
4524
4525 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4526 Re-construct BLOCK_VARS.
4527 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
4528 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4529 * tree.c (free_lang_data_in_block): Remove.
4530 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
4531 Do not touch the BLOCK tree.
4532 * expr.c (expand_expr_real_1): Allow externals.
4533
4534 2010-10-08 Richard Guenther <rguenther@suse.de>
4535
4536 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
4537 Do not output BLOCK_SUBBLOCKS.
4538 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
4539 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
4540 Re-construct BLOCK_SUBBLOCKS of parent block.
4541 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
4542 for BINFO_BASE_ACCESSES.
4543
4544 2010-10-08 Joseph Myers <joseph@codesourcery.com>
4545
4546 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
4547 (TREE_H): Include $(FLAGS_H) instead of options.h.
4548 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
4549 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4550 * common.opt (flag_complex_method, flag_evaluation_order,
4551 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
4552 Variable declarations.
4553 * configure.ac (tm_include_list): Include flags.h instead of options.h.
4554 * configure: Regenerate.
4555 * flags.h: Condition out contents for target libraries. Include
4556 options.h at end of file.
4557 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
4558 flag_evaluation_order, flag_warn_unused_result): Remove.
4559 * gcc.c (main): Intialize global_options with global_options_init.
4560 * langhooks-def.h (lhd_init_options_struct): Declare.
4561 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4562 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
4563 * langhooks.c (lhd_init_options_struct): New.
4564 * langhooks.h (struct lang_hooks): Add init_options_struct.
4565 Update comment on init_options.
4566 * optc-gen.awk: Generate initializer for global_options_init, not
4567 global_options.
4568 * opth-gen.awk: Condition out structure declarations for target
4569 libraries. Declare global_options_init.
4570 * opts-common.c: Include flags.h instead of options.h.
4571 * opts.c (flag_warn_unused_result): Remove.
4572 (read_cmdline_options): Take gcc_options parameters. Pass them to
4573 read_cmdline_option.
4574 (initial_lang_mask, initial_min_crossjump_insns,
4575 initial_max_fields_for_field_sensitive,
4576 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
4577 (init_options_once): New. Split out of decode_options.
4578 (init_options_struct): New. Split out of decode_options.
4579 (decode_cmdline_options_to_array_default_mask): New.
4580 (default_options_optimization): New. Split out of decode_options.
4581 (decode_options): Move most code to other functions. Update call
4582 to read_cmdline_options.
4583 (finish_options): New. Split out of decode_options.
4584 * opts.h (decode_options): Add gcc_options parameters.
4585 (init_options_once, init_options_struct,
4586 decode_cmdline_options_to_array_default_mask): New.
4587 * toplev.c (flag_complex_method, flag_ira_algorithm,
4588 flag_ira_region, flag_evaluation_order): Remove.
4589 (general_init): Use global_options_init for initial flag values
4590 for global_dc.
4591 (toplev_main): Call init_options_once, init_options_struct,
4592 lang_hooks.init_options_struct,
4593 decode_cmdline_options_to_array_default_mask and
4594 lang_hooks.init_option before decode_options. Update arguments to
4595 decode_options.
4596 * tree.h: Include flags.h instead of options.h.
4597
4598 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4599
4600 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4601
4602 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4603
4604 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
4605 Delete.
4606 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4607 (FUNCTION_INCOMING_ARG): Delete.
4608 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
4609 (function_arg_slotno): Likewise. Take bool arguments.
4610 (sparc_arg_partial_bytes): Update call to it.
4611 (function_arg): Rename to...
4612 (sparc_function_arg_1): ...this. Take bool arguments.
4613 (sparc_function_arg, sparc_function_incoming_arg): New functions.
4614 (function_arg_advance): Rename to...
4615 (sparc_function_arg_advance): ...this. Take bool argument.
4616 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
4617 (TARGET_FUNCTION_INCOMING_ARG): Define.
4618
4619 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4620
4621 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
4622 Delete.
4623 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4624 * config/bfin/bfin.c (function_arg_advance): Rename to...
4625 (bfin_function_arg_advance): ...this. Make static. Take const_tree
4626 and bool arguments.
4627 (function_arg): Rename to...
4628 (bfin_function_arg): ...this. Make static. Take const_tree and bool
4629 arguments.
4630 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4631
4632 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4633
4634 * config/score/score-protos.h (score_function_arg): Delete.
4635 (score_function_arg_advance): Delete.
4636 * config/score/score3.h (score3_function_arg_advance): Take a
4637 const_tree and a bool.
4638 (score3_function_arg): Likewise.
4639 * config/score/score7.h (score7_function_arg_advance): Likewise.
4640 (score7_function_arg): Likewise.
4641 * config/score/score3.c (score3_classify_arg): Likewise.
4642 (score3_function_arg_advance, score3_function_arg): Likewise.
4643 * config/score/score7.c (score7_classify_arg): Likewise.
4644 (score7_function_arg_advance, score7_function_arg): Likewise.
4645 * config/score/score.c (score_function_arg_advance): Likewise.
4646 (score_function_arg): Likewise. De-const-ify `cum' argument.
4647 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4648
4649 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4650
4651 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
4652 (s390_function_arg): Delete.
4653 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4654 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
4655 (s390_function_arg_integer): Likewise.
4656 (s390_function_arg_advance): Make static. Take a const_tree and
4657 a bool.
4658 (s390_function_arg): Likewise.
4659 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4660
4661 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4662
4663 * config/spu/spu-protos.h (spu_function_arg): Delete.
4664 * config/spu/spu.h (FUNCTION_ARG): Delete.
4665 (FUNCTION_ARG_ADVANCE): Move code to ...
4666 * config/spu/spu.c (spu_function_arg_advance): New function.
4667 (spu_function_arg): Make static. Take a const_tree and a bool.
4668 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
4669 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4670
4671 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4672
4673 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4674
4675 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4676
4677 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
4678 (init_vn_nary_op_from_op): New function.
4679 (init_vn_nary_op_from_stmt): New function.
4680 (vn_nary_op_lookup_1): New function.
4681 (sizeof_vn_nary_op): New function.
4682 (alloc_vn_nary_op_noinit): New function.
4683 (alloc_vn_nary_op): New function.
4684 (vn_nary_op_insert_into): New function.
4685 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
4686 (vn_nary_op_lookup): Likewise.
4687 (vn_nary_op_lookup_stmt): Likewise.
4688 (vn_nary_op_insert_pieces): Likewise.
4689 (vn_nary_op_insert): Likewise.
4690 (vn_nary_op_insert_stmt): Likewise.
4691 (copy_nary): Likewise.
4692 (set_value_id_for_result): New function.
4693 (set_hashtable_value_ids): Call it.
4694
4695 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4696
4697 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4698 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
4699
4700 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4701
4702 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
4703 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4704
4705 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
4706
4707 PR debug/45656
4708 * cse.c (cse_extended_basic_block): Preserve cc0 info across
4709 debug isnsn. Skip them when searching for cc0 setter.
4710 (set_live_p): Skip debug insns when searching for cc0 user.
4711
4712 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
4713
4714 PR debug/45673
4715 PR debug/45604
4716 PR debug/45419
4717 PR debug/45408
4718 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
4719 type of MEM_REFs to INTEGER_CSTs.
4720
4721 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
4722
4723 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
4724 m68hc11_print_operand_address.
4725
4726 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
4727
4728 * builtins.c (rewrite_call_expr): Move code to...
4729 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
4730 (rewrite_call_expr_array): New function.
4731 (fold_builtin_sprintf_chk_1): New function.
4732 (fold_builtin_sprintf_chk): Call it.
4733 (gimple_fold_builtin_sprintf_chk): Likewise.
4734 (fold_builtin_snprintf_chk_1): New function.
4735 (fold_builtin_snprintf_chk): Call it.
4736 (gimple_fold_builtin_snprintf_chk): Likewise.
4737 (gimple_rewrite_call_expr): Delete.
4738
4739 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4740
4741 * config.host: Update copyright year.
4742
4743 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4744
4745 * config.host (host_lto_plugin_soname): New shell variable.
4746 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
4747 * config.in: Regenerate.
4748 * configure: Regenerate.
4749 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
4750 LTO plugin shared library.
4751
4752 2010-10-07 Richard Henderson <rth@redhat.com>
4753
4754 * target.h (enum unwind_info_type): Move ...
4755 * coretypes.h: ... here.
4756
4757 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
4758
4759 * doc/objc.texi (Fast enumeration protocol): Mention that
4760 'unsigned int' can also be used instead of 'unsigned long' in
4761 countByEnumeratingWithState:objects:count:.
4762
4763 2010-10-07 Martin Jambor <mjambor@suse.cz>
4764
4765 * tree-sra.c (struct access): New field grp_assignment_write.
4766 (dump_access): Dump grp_assignment_write.
4767 (build_accesses_from_assign): Set grp_assignment_write.
4768 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
4769 (mark_read_status): Renamed to mark_rw_status, individual values
4770 renamed too.
4771 (analyze_access_subtree): Changed type of mark_write to
4772 mark_read_status. Fixed propagating of mark_read and
4773 mark_write. Changed benefit estimate. Updated comment.
4774
4775 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
4776
4777 PR Tree-Vect/45847
4778 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
4779 check for vectype_out returned by get_vectype_for_scalar_type().
4780
4781 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
4782
4783 PR target/45805
4784 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
4785 constraint, add register specifier in instruction template.
4786 (neon_vec_pack_trunc_<mode>): Likewise.
4787 (neon_vec_<US>mult_<mode>): Add register specifier to
4788 instruction template.
4789
4790 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4791
4792 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
4793 cygwin2.o.
4794 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
4795 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
4796 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
4797 (cygwin2.o): Likewise.
4798 * config/i386/cygwin1.c: Delete file.
4799 * config/i386/cygwin2.c: Likewise.
4800 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
4801 make all {%!mno-cygwin} ones unconditional.
4802 (STARTFILE_SPEC): Likewise.
4803 (REAL_LIBGCC_SPEC): Likewise.
4804 (LIB_SPEC): Likewise.
4805 (CXX_WRAP_SPEC): Likewise.
4806 (LINK_SPEC): Likewise.
4807 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
4808 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
4809 (cygwin_gplusplus_include_dir): Delete now-unused array.
4810 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
4811 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
4812 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
4813 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
4814 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
4815 (cygwin_local_include_dir): Delete now-unused array.
4816 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
4817 (cygwin_cross_include_dir): Delete now-unused array.
4818 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
4819 (cygwin_tool_include_dir): Delete now-unused array.
4820 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
4821 (cygwin_standard_include_dir): Delete now-unused array.
4822 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
4823 (GEN_CVT_ARRAY): Delete now-unused macro definition.
4824 (cvt_to_mingw): Delete now-unused array.
4825 (mingw_scan): Remove prototype of deleted function.
4826 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
4827 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
4828 * doc/invoke.texi (-mcygwin): Don't document removed option.
4829 (-mno-cygwin): Likewise.
4830
4831 2010-10-07 Richard Guenther <rguenther@suse.de>
4832
4833 * machmode.h (mode_for_vector): Declare.
4834 * stor-layout.c (mode_for_vector): New function, split out from ...
4835 (layout_type): ... here.
4836 * tree-vectorizer.h (current_vector_size): Declare.
4837 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
4838 mask vector type is available.
4839 (get_vectype_for_scalar_type): Rename to ...
4840 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
4841 size argument.
4842 (get_vectype_for_scalar_type): New wrapper around
4843 get_vectype_for_scalar_type_and_size using current_vector_size.
4844 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
4845 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
4846 of vect_analyze_loop here.
4847 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
4848 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
4849 to autodetect.
4850 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
4851 V8SF to V8SI conversion builtin.
4852
4853 2010-10-07 Richard Guenther <rguenther@suse.de>
4854
4855 * target.def (autovectorize_vector_sizes): New target hook.
4856 * targhooks.c (default_autovectorize_vector_sizes): New function.
4857 * targhooks.h (default_autovectorize_vector_sizes): Declare.
4858 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
4859 Document.
4860 * doc/tm.texi: Update.
4861 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
4862 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4863
4864 2010-10-07 Richard Guenther <rguenther@suse.de>
4865
4866 * target.def (units_per_simd_word): Rename to ...
4867 (preferred_simd_mode): ... this. Return mode instead of size.
4868 * targhooks.c (default_units_per_simd_word): Rename to ...
4869 (default_preferred_simd_mode): ... this. Return word_mode.
4870 * targhooks.h (default_preferred_simd_mode): Declare.
4871 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
4872 (arm_preferred_simd_mode): ... this. Re-implement.
4873 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
4874 (ix86_preferred_simd_mode): ... this. Re-implement.
4875 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
4876 (sparc_preferred_simd_mode): ... this. Re-implement.
4877 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
4878 (mips_preferred_simd_mode): ... this. Re-implement.
4879 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
4880 (rs6000_preferred_simd_mode): ... this. Re-implement.
4881 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
4882 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
4883 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
4884 * doc/tm.texi: Update.
4885
4886 2010-10-07 Richard Guenther <rguenther@suse.de>
4887
4888 PR middle-end/45869
4889 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
4890 of pointers.
4891
4892 2010-10-07 Alan Modra <amodra@gmail.com>
4893
4894 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
4895 rather than sign extension by hand.
4896
4897 2010-10-07 Jan Hubicka <jh@suse.cz>
4898
4899 PR middle-end/45926
4900 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
4901
4902 2010-10-07 Richard Guenther <rguenther@suse.de>
4903
4904 PR bootstrap/45914
4905 * configure.ac: Fix typo.
4906 * configure: Regenerated.
4907
4908 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4909
4910 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
4911 define_builtin_std where it's unnecessary.
4912 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
4913
4914 2010-10-06 Anatoly Sokolov <aesok@post.ru>
4915
4916 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
4917 * doc/tm.texi.in: Regenerate.
4918 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
4919 * targhooks.c (default_class_likely_spilled_p): Don't use the
4920 CLASS_LIKELY_SPILLED_P macro.
4921
4922 * config/arm/arm.md: Update comment.
4923
4924 2010-10-06 Jan Hubicka <jh@suse.cz>
4925
4926 * ipa.c (cgraph_remove_unreachable_nodes): External references can
4927 always be removed.
4928 (cgraph_externally_visible_p): We can not bring local comdats that
4929 are known to linker; fix handling of internal visibility.
4930 (function_and_variable_visibility): Likewise.
4931
4932 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
4933
4934 PR rtl-optimization/45394
4935 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
4936 (struct rtx_subst_pair): Remove AFTER field.
4937 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
4938 (propagate_for_debug): Remove MOVE parameter and adjust.
4939 (try_combine): In the special case where I2 is a PARALLEL, combine only
4940 destinations of SETs and set I2SRC to the I2 source.
4941 Adjust calls to propagate_for_debug throughout.
4942 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
4943 insns.
4944
4945 2010-10-06 Olivier Hainque <hainque@adacore.com>
4946
4947 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
4948 switch on insn codes as sequence of ifs.
4949
4950 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
4951
4952 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
4953 be UI_NONE for picochip.
4954 (picochip_option_override): Do not disable exception flags.
4955 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
4956 Declare.
4957
4958 2010-10-06 Richard Guenther <rguenther@suse.de>
4959
4960 * Makefile.in (regmove.o): Depend on $(TARGET_H).
4961
4962 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4963
4964 Implemented fast enumeration for Objective-C.
4965 * c-parser.c (objc_could_be_foreach_context): New.
4966 (c_lex_one_token): Recognize RID_IN keyword in a potential
4967 Objective-C foreach context.
4968 (c_parser_declaration_or_fndef): Added parameter. Accept
4969 Objective-C RID_IN keyword as terminating a declaration; in that
4970 case, return the declaration in the new parameter.
4971 (c_parser_extenral_declaration): Updated calls to
4972 c_parser_declaration_or_fndef.
4973 (c_parser_declaration_or_fndef): Same change.
4974 (c_parser_compound_statement_nostart): Same change.
4975 (c_parser_label): Same change.
4976 (c_parser_objc_methodprotolist): Same change.
4977 (c_parser_omp_for_loop): Same change.
4978 (c_parser_for_statement): Detect and parse Objective-C foreach
4979 statements.
4980 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
4981 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
4982 fast enumeration parsing code to turn off the c99 error but still
4983 perform checks on the loop declarations.
4984 * c-tree.h (check_for_loop_decls): Updated declaration.
4985 * doc/objc.texi: Document fast enumeration.
4986
4987 2010-10-06 Nick Clifton <nickc@redhat.com>
4988
4989 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
4990 (MDR_REGNUM): Define.
4991 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
4992 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
4993 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
4994 (REGISTER_NAMES): Add MDR.
4995 (DWARF2_DEBUGGING_INFO): Define to 1.
4996 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4997 (F): New function. Sets RTX_FRAME_RELATED_P.
4998 (mn10300_gen_multiple_store): Use F.
4999 (expand_prologue): Use F. Use gen_movsf() to push floating
5000 point registers.
5001 (expand_epilogue): Use gen_movsf() to pop floating point registers.
5002 (mn10300_option_override): Disable combine stack adjust pass.
5003
5004 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
5005
5006 PR target/45901
5007 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
5008 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
5009
5010 2010-10-06 Jakub Jelinek <jakub@redhat.com>
5011
5012 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
5013 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
5014 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
5015 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
5016 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
5017 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
5018 BUILT_IN_TOUPPER): Mark as leaf.
5019
5020 PR middle-end/45838
5021 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
5022 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
5023 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
5024 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
5025 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
5026 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
5027 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
5028
5029 2010-10-05 Anatoly Sokolov <aesok@post.ru>
5030
5031 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
5032 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5033 (m68hc11_class_likely_spilled_p): New function.
5034
5035 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
5036
5037 * c-parser.c (c_parser_objc_method_definition): Updated comment.
5038
5039 2010-10-05 Jan Hubicka <jh@suse.cz>
5040
5041 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
5042 Document.
5043 * opts.c (decode_options): Handle lto partitions.
5044 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
5045 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
5046
5047 2010-10-05 Jan Hubicka <jh@suse.cz>
5048
5049 * cgraphunit.c (assemble_function): Output thunks and aliases before
5050 the function itself.
5051
5052 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
5053
5054 * config/picochip/picochip.c (picochip_option_override): Disable
5055 exception flags for picochip.
5056
5057 2010-10-05 Joseph Myers <joseph@codesourcery.com>
5058
5059 * opts-common.c (handle_option, handle_generated_option,
5060 read_cmdline_option, set_option): Add diagnostic_context
5061 parameter. Update calls among these functions.
5062 (set_option): Don't use global_dc.
5063 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
5064 (decode_options): Pass global_dc to enable_warning_as_error.
5065 (common_handle_option): Pass global_dc to enable_warning_as_error.
5066 (enable_warning_as_error): Add diagnostic_context parameter.
5067 Document parameters. Don't use global_dc. Pass
5068 diagnostic_context parameter to handle_generated_option.
5069 * opts.h (set_option, handle_option, handle_generated_option,
5070 read_cmdline_option, enable_warning_as_error): Add
5071 diagnostic_context parameter.
5072 * Makefile.in (lto-opts.o): Update dependencies.
5073 * coretypes.h (struct diagnostic_context, diagnostic_context):
5074 Declare here.
5075 * diagnostic.h (diagnostic_context): Don't declare typedef here.
5076 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
5077 * langhooks-def.h (struct diagnostic_context): Don't declare here.
5078 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
5079 using diagnostic_context typedef.
5080 * langhooks.c (lhd_initialize_diagnostics): Declare using
5081 diagnostic_context typedef.
5082 * langhooks.h (struct diagnostic_context): Don't declare here.
5083 (initialize_diagnostics, print_error_function): Declare using
5084 diagnostic_context typedef.
5085 * lto-opts.c: Include diagnostic.h.
5086 (lto_reissue_options): Pass global_dc to set_option. Pass
5087 DK_UNSPECIFIED not 0.
5088 * plugin.c (plugins_internal_error_function): Declare using
5089 diagnostic_context typedef.
5090 * plugin.h (struct diagnostic_context): Don't declare here.
5091 (plugins_internal_error_function): Declare using
5092 diagnostic_context typedef.
5093
5094 2010-10-05 Olivier Hainque <hainque@adacore.com>
5095 Nicolas Roche <roche@adacore.com>
5096
5097 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
5098 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
5099
5100 2010-10-05 Ira Rosen <irar@il.ibm.com>
5101
5102 PR tree-optimization/45752
5103 * tree-vect-slp.c (vect_get_mask_element): Remove static
5104 variables, make them function arguments.
5105 (vect_transform_slp_perm_load): Pass new arguments to
5106 vect_get_mask_element.
5107
5108 2010-10-05 Richard Guenther <rguenther@suse.de>
5109
5110 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
5111 (gimple_mod_pow2): Likewise.
5112 (gimple_mod_subtract): Likewise.
5113 (gimple_ic): Likewise.
5114 (gimple_stringop_fixed_value): Likewise.
5115 * tree-profile.c (tree_init_edge_profiler): Mark profile
5116 functions nothrow and leaf.
5117 (add_abnormal_goto_call_edges): Remove.
5118 (tree_gen_edge_profiler): Work on SSA form.
5119 (tree_gen_ic_profiler): Likewise. Simplify.
5120 (do_tree_profiling): Update SSA form.
5121 (pass_tree_profile): Remove.
5122 (do_tree_profiling): Likewise.
5123 (gate_tree_profile_ipa): New function.
5124 (pass_ipa_tree_profile): New.
5125 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
5126 state of instrumented functions.
5127 * passes.c (init_optimization_passes): Remove early non-SSA
5128 inlining. Move profiling after early optimizations.
5129 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
5130 (pass_ipa_early_inline): Likewise.
5131 * tree-pass.h (pass_ipa_early_inline): Remove.
5132 (pass_tree_profile): Likewise.
5133 (pass_ipa_tree_profile): Declare.
5134
5135 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5136 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
5137
5138 * config/s390/s390.c (z196_cost): New.
5139 (s390_handle_arch_option): Add -march=z196.
5140 (s390_option_override): Use the new cost function and use the z10
5141 defaults also for z196.
5142 (legitimate_reload_constant_p): Adjust comment.
5143 (legitimate_reload_fp_constant_p): New function.
5144 (s390_preferred_reload_class): Distingiush between FP and Int constants.
5145 (preferred_la_operand_p): Avoid la with index on z196.
5146 (s390_adjust_priority): Trigger also for z196.
5147 (s390_issue_rate): Issue rate for z196 is 3.
5148 (s390_z10_fix_long_loop_prediction): Rename to ...
5149 (s390_fix_long_loop_prediction): ... this.
5150 (s390_reorg): Apply the z10 adjustments also for z196.
5151 (s390_loop_unroll_adjust): Do this also for z196.
5152 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
5153 (enum processor_flags): Add PF_Z196.
5154 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
5155 (TARGET_CPU_Z196, TARGET_Z196): New macros.
5156 * config.gcc: Enable z196 for --with-arch.
5157 * config/s390/2817.md: New file.
5158 * config/s390/2084.md: New type for multiply and add.
5159 * config/s390/2097.md: Likewise.
5160 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
5161 (UNSPECV_ATOMIC_OP): New constants.
5162 (fmadddf, fmaddsf): New values for type attribute.
5163 (z196prop): New insn attribute.
5164 (cpu, cpu_facility): Add z196.
5165 (ATOMIC_Z196): New code iterator.
5166 (noxa): New code attribute.
5167 (gk): New mode attribute.
5168 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
5169 Support load zero for fp constants.
5170 (fixuns_truncdddi2, fixuns_trunctddi2)
5171 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
5172 for z196.
5173 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
5174 (popcounthi2, popcountqi2): New expander.
5175 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
5176 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
5177 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
5178 insn definition.
5179 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
5180 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
5181 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
5182 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
5183 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
5184 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
5185 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
5186 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
5187 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
5188 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
5189 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
5190 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
5191 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
5192 Support new z196 instructions.
5193
5194 2010-10-05 Richard Guenther <rguenther@suse.de>
5195
5196 PR middle-end/45877
5197 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
5198 case where gimplification optimizes away the stmt.
5199
5200 2010-10-04 Jakub Jelinek <jakub@redhat.com>
5201
5202 PR debug/45849
5203 * var-tracking.c (strip_pointer_flags): New function.
5204 (emit_note_insn_var_location): If rtx_equal_p check failed,
5205 retry on locations simplified with simplify_replace_fn_rtx
5206 and strip_pointer_flags as its callback.
5207
5208 2010-10-04 Jan Hubicka <jh@suse.cz>
5209
5210 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
5211 (can_refer_decl_in_current_unit_p): ... this one; reverse return
5212 value; handle comdats too.
5213 (canonicalize_constructor_val): Use it; handle function_decls
5214 correctly.
5215 (gimple_fold_obj_type_ref_known_binfo): Likewise.
5216 * gimple.c (get_base_address): Accept all kinds of decls.
5217
5218 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5219
5220 * flags.h (g_switch_value, g_switch_set): Remove.
5221 * opts.c (g_switch_value, g_switch_set): Remove.
5222 * config/g.opt (G): Add Var(g_switch_value).
5223 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
5224 (alpha_option_override): Check global_options_set.x_g_switch_value
5225 instead of g_switch_set.
5226 (alpha_in_small_data_p): Remove cast in comparison with
5227 g_switch_value.
5228 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
5229 g_switch_value to unsigned HOST_WIDE_INT.
5230 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
5231 with g_switch_value.
5232 (frv_handle_option): Don't handle -G here.
5233 (frv_option_override): Check global_options_set.x_g_switch_value
5234 instead of g_switch_set. Don't modify g_switch_set.
5235 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
5236 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
5237 g_switch_value to unsigned HOST_WIDE_INT.
5238 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
5239 (ia64_option_override): Check global_options_set.x_g_switch_value
5240 instead of g_switch_set.
5241 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
5242 Remove.
5243 (lm32_in_small_data_p): Remove cast in comparison with
5244 g_switch_value.
5245 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
5246 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
5247 HOST_WIDE_INT.
5248 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
5249 (m32r_init): Check global_options_set.x_g_switch_value instead of
5250 g_switch_set.
5251 (m32r_in_small_data_p): Remove cast in comparison with
5252 g_switch_value.
5253 (m32r_file_start): Format g_switch_value with %d.
5254 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
5255 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
5256 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
5257 handle -G here.
5258 (microblaze_option_override): Check
5259 global_options_set.x_g_switch_value instead of g_switch_set.
5260 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
5261 (mips_option_override): Check global_options_set.x_g_switch_value
5262 instead of g_switch_set.
5263 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
5264 (rs6000_file_start): Format g_switch_value with %d.
5265 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
5266 comparisons with g_switch_value.
5267 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
5268 global_options_set.x_g_switch_value instead of g_switch_set.
5269 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5270 global_options_set.x_g_switch_value instead of g_switch_set.
5271 * config/score/score.c (score_handle_option): Don't handle -G here.
5272 * config/score/score3.c (score3_option_override): Check
5273 global_options_set.x_g_switch_value instead of g_switch_set.
5274 * config/score/score7.c (score7_option_override): Check
5275 global_options_set.x_g_switch_value instead of g_switch_set.
5276
5277 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
5278
5279 * common.opt (fira-coalesce): Remove.
5280
5281 * doc/invoke.texi (flag_ira_coalesce): Remove.
5282
5283 * ira-color.c (allocno_coalesced_p): Move before
5284 copy_freq_compare_func.
5285 processed_coalesced_allocno_bitmap): Ditto.
5286 (update_conflict_hard_regno_costs): Don't use
5287 ALLOCNO_FIRST_COALESCED_ALLOCNO.
5288 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
5289 (assign_hard_reg): Assume no coalesced allocnos.
5290 (get_coalesced_allocnos_attributes): Remove.
5291 (bucket_allocno_compare_func): Assume no coalesced allocnos.
5292 (push_allocno_to_stack): Ditto.
5293 (remove_allocno_from_bucket_and_push): Use
5294 ira_print_expanded_allocno instead of print_coalesced_allocno.
5295 (push_allocnos_to_stack): Assume uncoalesced allocnos.
5296 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
5297 all_conflicting_hard_regs.
5298 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
5299 (setup_allocno_left_conflicts_size): Ditto.
5300 (put_allocno_into_bucket): Ditto.
5301 (copy_freq_compare_func): Remove.
5302 (copy_freq_compare_func, merge_allocnos): Move before
5303 coalesced_pseudo_reg_freq_compare.
5304 coalesced_allocno_conflict_p): Ditto.
5305 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
5306 parameter. Assume it true.
5307 (color_allocnos): Assume uncoalesced allocnos. Use
5308 ira_print_expanded_allocno instead of print_coalesced_allocno.
5309 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
5310 parameter.
5311
5312 * ira.c: Remove comment about coalescing.
5313
5314 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5315
5316 * config/mips/mips.h (target_flags_explicit): Declare for
5317 GENERATOR_FILE.
5318
5319 2010-10-04 Andi Kleen <ak@linux.intel.com>
5320
5321 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
5322 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
5323
5324 2010-10-04 Matthias Klose <doko@ubuntu.com>
5325
5326 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
5327 multilib osdirname if it exists.
5328 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
5329
5330 2010-10-04 Jakub Jelinek <jakub@redhat.com>
5331
5332 PR middle-end/45876
5333 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
5334 arg0's type or its unsigned counterpart as utype. Convert
5335 arg1 to utype unconditionally.
5336
5337 2010-10-04 Julian Brown <julian@codesourcery.com>
5338
5339 * expr.c (expand_assignment): Add assertion to prevent emitting
5340 null rtx for movmisalign pattern.
5341 (expand_expr_real_1): Likewise.
5342 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
5343 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
5344 (arm_vector_alignment_reachable): New.
5345 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
5346 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
5347 (arm_print_operand): Include alignment qualifier in %A.
5348 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
5349 (movmisalign<mode>): New expander.
5350 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
5351 insn patterns.
5352
5353 2010-10-04 Joseph Myers <joseph@codesourcery.com>
5354
5355 * optc-gen.awk: Define global_options_set. Don't define
5356 target_flags_explicit.
5357 * opth-gen.awk: Declare global_options_set. Define
5358 target_flags_explicit as macro.
5359 * opts-common.c (handle_option): Take opts_set and generated_p
5360 parameters.
5361 (handle_generated_option, read_cmdline_option, set_option): Take
5362 opts_set parameter.
5363 (set_option): Use opts_set instead of hardcoding target_flags and
5364 target_flags_explicit.
5365 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
5366 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
5367 flag_value_profile_transformations_set, flag_peel_loops_set,
5368 flag_branch_probabilities_set, flag_inline_functions_set,
5369 flag_ipa_cp_set, flag_ipa_cp_clone_set,
5370 flag_predictive_commoning_set, flag_unswitch_loops_set,
5371 flag_gcse_after_reload_set): Remove.
5372 (common_handle_option, lang_handle_option, target_handle_option):
5373 Take opts_set parameter. Assert that it is &global_options_set.
5374 (common_handle_option): Don't set _set variables. Check opts_set
5375 instead of such variables.
5376 (enable_warning_as_error): Pass &global_options_set to
5377 handle_generated_option.
5378 * opts.h (cl_option_handler_func.handler, set_option,
5379 handle_option, handle_generated_option, read_cmdline_option): Add
5380 opts_set parameters.
5381 (handle_option): Add generated_p parameter.
5382 * config/i386/i386.c (ix86_function_specific_save,
5383 ix86_function_specific_restore): Updat for renaming of
5384 target_flags_explicit field.
5385 * config/i386/i386.opt (target_flags_explicit): Rename to
5386 ix86_target_flags_explicit.
5387 * config/ia64/ia64.c (ia64_override_options_after_change): Check
5388 global_options_set.x_flag_selective_scheduling and
5389 global_options_set.x_flag_selective_scheduling2, not
5390 sel_sched_switch_set.
5391 * flags.h (sel_sched_switch_set,
5392 flag_speculative_prefetching_set): Remove.
5393 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
5394 that it is &global_options_set.
5395 (process_command): Pass &global_options_set to read_cmdline_option.
5396 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
5397 set_option.
5398 * toplev.c (target_flags_explicit): Remove.
5399
5400 2010-10-04 Jan Hubicka <jh@suse.cz>
5401
5402 PR middle-end/45871
5403 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
5404 use get_ref_base_and_offset to handle references.
5405 (fold_const_aggregate_ref): Update.
5406
5407 2010-10-04 Martin Jambor <mjambor@suse.cz>
5408
5409 PR tree-optimization/45572
5410 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
5411 ipa_check_create_node_params.
5412 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
5413
5414 2010-10-04 Yao Qi <yao@codesourcery.com>
5415
5416 * doc/passes.texi: Clean up.
5417
5418 2010-10-03 Ian Lance Taylor <iant@google.com>
5419
5420 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
5421 referring to a field using a typedef name.
5422 (find_anonymous_field_with_type): New static function.
5423 (convert_to_anonymous_field): New static function.
5424 (convert_for_assignment): If -fplan9-extensions, permit converting
5425 pointer to struct to pointer to anonymous field.
5426 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
5427 (is_duplicate_field): New static function.
5428 (detect_field_duplicates_hash): If -fplan9-extensions, check for
5429 typedef names duplicating field names.
5430 (detect_field_duplicates): Likewise.
5431 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
5432 (C Dialect Options): Document -fplan9-extensions.
5433 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
5434
5435 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
5436
5437 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
5438 revision 164914.
5439 (vect_create_data_ref_ptr): Likewise.
5440 * tree-vect-stmts.c (vectorizable_store): Likewise.
5441 (perm_mask_for_reverse): Likewise.
5442 (reverse_vec_elements): Likewise.
5443 (vectorizable_load): Likewise.
5444
5445 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5446
5447 * cppbuiltin.c: New file.
5448 * cppbuiltin.h: New file.
5449 * Makefile.in: Take into account cppbuiltin.{h,c}.
5450
5451 2010-10-03 Andi Kleen <ak@linux.intel.com>
5452
5453 * lto-cgraph.c (input_cgraph): Check for missing sections.
5454
5455 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
5456
5457 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
5458 to nonimmediate_operand. Force operand 2 to register when allowed.
5459 (*<shiftrt_insn><mode>3_mask): Ditto.
5460 (*<rotate_insn><mode>3_mask): Ditto.
5461
5462 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
5463
5464 PR tree-optimization/45720
5465 PR tree-optimization/45764
5466 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5467 Don't accept backwards consecutive accesses.
5468 (vect_create_data_ref_ptr): Disallow negative steps.
5469
5470 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
5471 (perm_mask_for_reverse): Removed.
5472 (reverse_vec_elements): Likewise.
5473 (vectorizable_load): Don't handle negative steps.
5474
5475 2010-10-02 Jan Hubicka <jh@suse.cz>
5476
5477 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
5478 call destination is known.
5479
5480 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5481
5482 PR target/45820
5483 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
5484 earlier.
5485
5486 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5487
5488 * doc/install.texi (Configuration): Document build_configargs,
5489 host_configargs, target_configargs.
5490
5491 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
5492
5493 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
5494 (*<shiftrt_insn><mode>3_mask): Ditto.
5495 (*<rotate_insn><mode>3_mask): Ditto.
5496
5497 2010-10-01 Steve Ellcey <sje@cup.hp.com>
5498
5499 PR tree-optimization/44716
5500 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
5501 (HOT_TEXT_SECTION_NAME): Define.
5502
5503 2010-10-01 Nick Clifton <nickc@redhat.com>
5504
5505 * common.opt: Add -fcombine-stack-adjustments.
5506 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
5507 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
5508 flag_combine_stack_adjustments.
5509 * doc/invoke.texi: Document the new option.
5510
5511 2010-10-01 Richard Guenther <rguenther@suse.de>
5512
5513 PR tree-optimization/45854
5514 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
5515
5516 2010-10-01 Anthony Green <green@moxielogic.com>
5517
5518 * config.gcc: Fix moxie-*-rtems* configuration.
5519
5520 2010-10-01 Richard Guenther <rguenther@suse.de>
5521
5522 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
5523 (gen_decl_die): Likewise.
5524
5525 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5526
5527 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
5528 to the function code for SPU MD builtins.
5529 (spu_expand_builtin): Update.
5530 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
5531
5532 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5533
5534 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
5535 sjlj_except_unwind_info.
5536
5537 2010-10-01 Tristan Gingold <gingold@adacore.com>
5538
5539 * configure.ac: Define the nop insn for avr*-*-*
5540 * configure: Regenerate.
5541
5542 2010-10-01 Alan Modra <amodra@gmail.com>
5543
5544 PR target/45807
5545 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
5546 extend toc_restore_insn.
5547
5548 2010-09-30 Richard Guenther <rguenther@suse.de>
5549
5550 PR tree-optimization/43959
5551 * function.c (gimplify_parameters): Use create_tmp_reg instead of
5552 create_tmp_var.
5553
5554 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
5555
5556 * config/sh/sh.c (sh_expand_prologue): Set
5557 current_function_static_stack_size.
5558
5559 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5560
5561 * configure.ac: Check for Solaris 8 ld with .hidden support.
5562 * configure: Regenerate.
5563
5564 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5565
5566 PR middle-end/45758
5567 * graphite.c (graphite_initialize): Call scev_reset.
5568
5569 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5570
5571 * sese.h (scev_analyzable_p): Return false for real or floating
5572 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
5573
5574 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5575
5576 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
5577 and ps.
5578 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
5579 domain.
5580 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
5581 Do not allocate ub_expr, it is passed in initialized.
5582
5583 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5584
5585 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
5586 (build_cloog_prog): Dump CLooG input file when
5587 flag_graphite_dump_cloog is set. This is disabled on trunk.
5588 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
5589
5590 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5591
5592 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
5593 verify_dominators for CDI_POST_DOMINATORS.
5594 * sese.h: Remove comment about CDI_POST_DOMINATORS.
5595 (recompute_all_dominators): Remove call to free_dominance_info
5596 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
5597 for CDI_POST_DOMINATORS.
5598
5599 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5600
5601 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
5602 over pbb_dim_iter_domain.
5603
5604 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5605
5606 * graphite-flattening.c: Fix comments.
5607
5608 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5609
5610 * Makefile.in (OBJS-common): Add graphite-flattening.o.
5611 (graphite-flattening.o): New rule.
5612 * common.opt (floop-flatten): New flag.
5613 * doc/invoke.texi (-floop-flatten): Documented.
5614 * graphite-flattening.c: New.
5615 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
5616 * graphite-poly.h (flatten_all_loops): Declared.
5617 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
5618 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
5619 is set, also set flag_graphite.
5620
5621 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5622
5623 * graphite-poly.c (cloog_checksum): New.
5624 * graphite-poly.h (cloog_checksum): Declared.
5625
5626 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5627
5628 * graphite-poly.c (pbb_number_of_iterations): Removed.
5629 (pbb_number_of_iterations_at_time): Correctly compute the number
5630 of iterations in the transformed loop.
5631 * graphite-poly.h (pbb_number_of_iterations): Removed.
5632
5633 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5634
5635 * graphite-poly.h (lst_update_scattering_seq): Removed.
5636 (lst_update_scattering): Correctly handle outermost loop dewey
5637 renumbering.
5638
5639 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5640
5641 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
5642 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
5643 * graphite-poly.h (lst_niter_for_loop): New.
5644
5645 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5646
5647 * graphite-poly.c (apply_poly_transforms): Do not abort when the
5648 transform read from disk is not legal. Call fatal_error instead.
5649
5650 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5651
5652 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
5653 (print_scop_header): Removed. Inlined in the only call place...
5654 (print_scop): ... here.
5655
5656 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5657
5658 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
5659
5660 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5661
5662 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
5663
5664 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5665
5666 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
5667 (dot_deps_stmt): Same.
5668 * graphite-poly.c (dot_lst): Same.
5669
5670 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5671
5672 * graphite-blocking.c (scop_do_strip_mine): Do not call
5673 graphite_legal_transform.
5674 (scop_do_block): Same.
5675
5676 2010-09-30 Vladimir Kargov <kargov@gmail.com>
5677
5678 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
5679 description.
5680
5681 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5682
5683 * tree-scalar-evolution.c (instantiate_array_ref): New.
5684 (instantiate_scev_r): Also handle ARRAY_REFs.
5685
5686 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5687
5688 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5689 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
5690 RESULT_DECL, and FIELD_DECL. Return false for an
5691 SSA_NAME_IS_DEFAULT_DEF.
5692 (compute_scalar_evolution_in_loop): Do not further analyze the
5693 scalar evolution when no_evolution_in_loop_p returns true.
5694
5695 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5696
5697 * tree-chrec.h (evolution_function_is_affine_p): Do not check
5698 whether CHREC_LEFT is invariant. A function is affine when
5699 CHREC_RIGHT is invariant.
5700
5701 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5702
5703 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
5704 is_gimple_reg.
5705 (rewrite_degenerate_phi): Same.
5706 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
5707
5708 2010-09-30 Vladimir Kargov <kargov@gmail.com>
5709
5710 * graphite-scop-detection.c (graphite_can_represent_scev,
5711 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
5712 graphite_can_represent_loop): Remove outermost_loop.
5713
5714 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5715
5716 PR middle-end/45229
5717 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
5718 handle GIMPLE_CALLs with no LHS.
5719
5720 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5721
5722 * graphite-poly.c (init_graphite_out_file): New.
5723 (init_graphite_in_file): New.
5724 (apply_poly_transforms): Updated to enable reading and writing of
5725 multiple scop files.
5726
5727 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
5728
5729 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
5730 redundant checks.
5731
5732 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5733
5734 * graphite-clast-to-gimple.c (precision_for_value): Adjust
5735 computation of precision by 1.
5736
5737 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5738
5739 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
5740 (openscop_read_polyhedron_matrix): New.
5741 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
5742 (openscop_read_N_int): Same.
5743 * graphite-poly.c (openscop_read_N_int): New.
5744 (openscop_read_one_int): New.
5745 (openscop_read_N_string): New.
5746 (openscop_read_one_string): New.
5747 (openscop_read_powerset_matrix): New.
5748 (graphite_read_transforms): Remove.
5749 (graphite_read_scatt): New.
5750 (graphite_read_scop_file): New.
5751 (apply_poly_transforms): Updated to call graphite_read_scop_file.
5752
5753 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5754
5755 * graphite-poly.c: Change include order.
5756
5757 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5758
5759 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
5760 (cloog_matrix_nrows): New.
5761
5762 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5763
5764 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
5765 from matrix lines.
5766 * graphite-poly.c (openscop_print_scattering_function_1): Same.
5767 (print_scattering_function_1): Same.
5768 (openscop_print_pbb_domain): Same.
5769 (openscop_print_scop_context): Same.
5770 (print_scop_context): Same.
5771
5772 2010-09-30 Riyadh Baghdad <baghdadi.mr@gmail.com>
5773
5774 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
5775 (openscop_print_pdr_polyhedron): Print pph.
5776
5777 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5778
5779 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
5780 priority signed types.
5781
5782 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5783
5784 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
5785 the call to lang_hooks.types.type_for_size. Call
5786 build_nonstandard_integer_type.
5787
5788 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5789
5790 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
5791 (openscop_print_polyhedron_matrix): New.
5792 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
5793 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
5794 (openscop_print_pdr_powerset): New.
5795 (openscop_print_powerset_matrix): New.
5796 (openscop_print_scattering_function_1): New.
5797 (print_scattering_function): Add support for scattering names and
5798 OpenScop format.
5799 (graphite_write_transforms): Remove.
5800 (print_pdr_access_layout): Updated to support OpenScop format.
5801 (print_pdr): Same.
5802 (openscop_print_pbb_domain): New.
5803 (print_pbb_body): Added a parameter to allow indicating that pbb_body
5804 is not provided.
5805 (print_pbb): Updated to call the new print_pbb_body.
5806 (openscop_print_scop_context): New.
5807 (print_scop_header): New.
5808 (print_scop): Updated to call print_scop_header.
5809 * graphite-poly.h: Document OpenScop format.
5810
5811 2010-09-30 Anatoly Sokolov <aesok@post.ru>
5812
5813 * config/cris/m32c.c (cris_memory_move_cost): New.
5814 (cris_register_move_cost): Make static. Change arguments type from
5815 enum reg_class to reg_class_t.
5816 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5817 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5818 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
5819
5820 2010-09-30 Jakub Jelinek <jakub@redhat.com>
5821
5822 PR target/45843
5823 * config/i386/i386.c (ix86_gimplify_va_arg): Use
5824 INTVAL (XEXP (slot, 1)) as prev_size.
5825
5826 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
5827
5828 PR target/45837
5829 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
5830 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
5831 defined.
5832 * config/rs6000/option-defaults.h (toplevel): Change #if
5833 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
5834 global option changes.
5835
5836 2010-09-30 Jakub Jelinek <jakub@redhat.com>
5837
5838 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
5839
5840 PR tree-optimization/31261
5841 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
5842 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
5843
5844 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5845
5846 PR bootstrap/45796
5847 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
5848 special-casing for generators and turn into ...
5849 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
5850 rule, for better error messages in case of toplevel dependency errors.
5851 (genprog): Add hooks, rename to ...
5852 (genprogerr): ... this, and let genprog also contain check,
5853 checksum, condmd.
5854 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
5855 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
5856 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
5857
5858 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
5859 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5860
5861 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
5862 for GMP, MPFR and MPC.
5863
5864 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5865
5866 * config/sparc/sparc.opt (mimpure-text): Move ...
5867 * config/sol2.opt: ... here. Correct description.
5868 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
5869 * doc/invoke.texi (Option Summary, SPARC Options): Move
5870 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
5871 (Option Summary, Solaris 2 Options): ... here.
5872 (Submodel Options, Solaris 2 Options): New menu entry.
5873 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
5874 (Solaris 2 Options): ... here.
5875
5876 2010-09-30 Michael Eager <eager@eagercon.com>
5877
5878 * extend.texi (interrupt_handler): Add MicroBlaze to list.
5879 (save_volatiles): Describe option for MicroBlaze.
5880 * invoke.texi: Add MicroBlaze Options.
5881 * contrib.texi: Add acknowledgment.
5882 * md.texi: Add MicroBlaze d and z constraints.
5883 * install.texi: Add microblaze-*-elf.
5884 * configure.ac: Add microblaze-*-* to target list.
5885 * configure: Regenerate.
5886 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
5887 * config/microblaze/microblaze-protos.h: New.
5888 * config/microblaze/crti.s: New.
5889 * config/microblaze/predicates.md: New.
5890 * config/microblaze/linux.h: New.
5891 * config/microblaze/microblaze.md: New.
5892 * config/microblaze/constraints.md: New.
5893 * config/microblaze/crtn.s: New.
5894 * config/microblaze/microblaze.opt: New.
5895 * config/microblaze/microblaze-c.c: New.
5896 * config/microblaze/t-microblaze: New.
5897 * config/microblaze/microblaze.c: New.
5898 * config/microblaze/microblaze.h: New.
5899
5900 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5901
5902 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
5903 parse @optional/@required and set the flags as appropriate.
5904
5905 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
5906
5907 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
5908
5909 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5910
5911 * opt-functions.awk (static_var): Update comment.
5912 (var_ref): Return offsetof expression or -1, not variable address.
5913 * optc-gen.awk: Generate structure field initializers instead of
5914 static variables. Expect -1 for missing variables instead of null
5915 pointer. Add gcc_options parameters to generated functions.
5916 * opth-gen.awk: Generate structure fields for static variables.
5917 Add gcc_options parameters to generated functions.
5918 * common.opt (optimize, optimize_size): Add variables.
5919 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
5920 &global_options to cl_target_option_restore.
5921 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
5922 &global_options to cl_optimization_restore, cl_target_option_save
5923 and cl_target_option_restore.
5924 (ix86_set_current_function): Pass &global_options to
5925 cl_target_option_restore.
5926 * config/pdp11/pdp11.h (optimize): Remove.
5927 * config/rs6000/rs6000.h (optimize): Remove.
5928 * config/sh/sh.h (optimize): Remove.
5929 * config/xtensa/xtensa.h (optimize): Remove.
5930 * coretypes.h (struct gcc_options): Declare.
5931 * diagnostic.c (diagnostic_initialize): Initialize
5932 context->option_state.
5933 (diagnostic_report_diagnostic): Pass option_state to
5934 option_enabled hook.
5935 * diagnostic.h (diagnostic_context.option_enabled): Add void *
5936 parameter.
5937 (diagnostic_context.option_state): New field.
5938 * final.c (final_start_function, final, final_scan_insn): Rename
5939 optimize parameter to optimize_p.
5940 * flags.h (optimize, optimize_size): Remove.
5941 * function.c (invoke_set_current_function_hook): Pass
5942 &global_options to cl_optimization_restore.
5943 * gcc.c (driver_handle_option): Take gcc_options parameter.
5944 Assert that it is &global_options.
5945 (process_command): Pass &global_options to read_cmdline_option.
5946 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
5947 option_enabled.
5948 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
5949 &global_options to set_option.
5950 * opts-common.c (handle_option, handle_generated_option,
5951 read_cmdline_option, set_option): Take explicit gcc_options
5952 parameters. Use option_flag_var.
5953 (option_flag_var): New.
5954 * opts.c (common_handle_option, lang_handle_option,
5955 target_handle_option): Take gcc_options parameter. Assert that it
5956 is &global_options.
5957 (read_cmdline_options): Pass &global_options to read_cmdline_option.
5958 (print_filtered_help): Use option_flag_var. Pass &global_options
5959 to option_enabled.
5960 (common_handle_option): Use option_flag_var.
5961 (option_enabled): Take opts parameter. Use option_flag_var.
5962 (get_option_state): Take gcc_options parameter. Use
5963 option_flag_var. Pass gcc_options parameter to option_enabled.
5964 (enable_warning_as_error): Pass &global_options to
5965 handle_generated_option.
5966 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
5967 (cl_option_handler_func.handler): Take gcc_options parameter.
5968 (option_enabled, get_option_state, set_option, handle_option,
5969 handle_generated_option, read_cmdline_option): Take gcc_options
5970 parameters.
5971 * toplev.c (optimize, optimize_size): Remove.
5972 (print_switch_values): Pass &global_options to option_enabled.
5973 (option_affects_pch_p): Use option_flag_var. Pass &global_options
5974 to get_option_state.
5975 (general_init): Initialize global_dc->option_state.
5976 * tree.c (build_optimization_node): Pass &global_options to
5977 cl_optimization_save.
5978 (build_target_option_node): Pass &global_options to
5979 cl_target_option_save.
5980
5981 2010-09-30 Martin Jambor <mjambor@suse.cz>
5982
5983 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
5984 zero sized bit-fields.
5985
5986 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5987
5988 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
5989 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
5990 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
5991 (c_parser_objc_class_declaration): Same change.
5992 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
5993 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5994 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
5995 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
5996 and RID_AT_PUBLIC instead of RID_PUBLIC.
5997 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
5998 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5999
6000 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
6001
6002 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
6003 Add links to current providers of packages for Solaris and IRIX.
6004
6005 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6006
6007 Merge from 'apple/trunk' branch on FSF servers.
6008 * c-parser.c: Applied change originally in c-parse.in.
6009
6010 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
6011
6012 Radar 4281748
6013 * c-decl.c (start_decl): Check for redeclaration of class name.
6014 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
6015
6016 2010-09-29 Steve Ellcey <sje@cup.hp.com>
6017
6018 * config/ia64/ia64.c (ia64_builtin_decl): New.
6019 (TARGET_BUILTIN_DECL): Define.
6020 (ia64_builtins): New.
6021 (ia64_init_builtins): Save decls in ia64_builtins.
6022
6023 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
6024
6025 PR target/40457
6026 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
6027 (move2add_use_add3_insn): Likewise.
6028 (reload_cse_move2add): Likewise.
6029 * rtlanal.c (get_full_rtx_cost): New function.
6030 * rtl.h (struct full_rtx_costs): New.
6031 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
6032 costs_add_n_insns): New inline functions.
6033 (get_full_rtx_cost): Declare.
6034
6035 PR c/45054
6036 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
6037 invariants. Check for reg_equiv_invariant.
6038 (reload): Assert that spilled_pseudos is empty when returning.
6039
6040 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
6041
6042 * config/i386/mingw32.h (TARGET_64BIT): replaced by
6043 TARGET_64BIT_DEFAULT in #if check.
6044
6045 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
6046
6047 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
6048
6049 2010-09-29 Mike Stump <mikestump@comcast.net>
6050
6051 * config/darwin.h (flag_mkernel): Remove.
6052 (flag_apple_kext): Likewise.
6053
6054 2010-09-29 Joseph Myers <joseph@codesourcery.com>
6055 Jack Howarth <howarth@bromo.med.uc.edu>
6056
6057 * config/darwin.opt (undefined): Add.
6058
6059 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
6060
6061 PR testsuite/45664
6062 * configure.ac: Add --enable-indirect-function option.
6063 * config.gcc: Add default_gnu_indirect_function.
6064 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
6065 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
6066 * varasm.c (do_assemble_alias): Adjust for macro name change.
6067 * configure: Rebuilt.
6068 * doc/install.texi: Document --enable-indirect-function.
6069
6070 2010-09-29 Joseph Myers <joseph@codesourcery.com>
6071
6072 * doc/options.texi (Variable, Var, Init): Update documentation
6073 without reference to VarExists.
6074 (VarExists): Remove.
6075 * common.opt, config/i386/i386.opt, config/linux.opt,
6076 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
6077 Don't use VarExists.
6078
6079 2010-09-29 Joseph Myers <joseph@codesourcery.com>
6080
6081 * optc-gen.awk: Generate global_options initializer instead of
6082 individual variables. Add x_ prefix to names of structure members.
6083 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
6084 names of structure members.
6085 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6086 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
6087 * doc/tm.texi: Regenerate.
6088 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6089 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
6090 * c-parser.c (disable_extension_diagnostics,
6091 restore_extension_diagnostics): Update names of cpp_options members.
6092 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6093 * common.opt (fcompare-debug-second): Don't use Var.
6094 * config/alpha/alpha.h (target_flags): Remove.
6095 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6096 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
6097 * config/bfin/bfin.h (target_flags): Remove.
6098 * config/cris/cris.h (target_flags): Remove.
6099 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
6100 cl_target_option members.
6101 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
6102 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
6103 ix86_can_inline_p): Update names of cl_target_option members.
6104 * config/i386/i386.h (ix86_isa_flags): Remove.
6105 * config/lm32/lm32.h (target_flags): Remove.
6106 * config/mcore/mcore.h (mcore_stack_increment): Remove.
6107 * config/mcore/mcore.md (addsi3): Remove extern declaration of
6108 flag_omit_frame_pointer.
6109 * config/mep/mep.h (target_flags): Remove.
6110 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6111 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
6112 * config/mmix/mmix.h (target_flags): Remove.
6113 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
6114 flag_expensive_optimizations): Remove.
6115 * config/s390/s390.h (flag_pic): Remove.
6116 * config/score/score-conv.h (target_flags): Remove.
6117 * config/sh/sh.h (sh_fixed_range_str): Remove.
6118 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
6119 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
6120 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6121 * diagnostic.c (diagnostic_initialize): Update names of
6122 diagnostic_context members.
6123 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
6124 warn_system_headers.
6125 (diagnostic_report_warnings_p): Update for new names.
6126 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
6127 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
6128 HARD_FRAME_POINTER_IS_ARG_POINTER.
6129 * flags.h (flag_compare_debug): Declare.
6130 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6131 * opts.c (flag_compare_debug): Define.
6132 (common_handle_option): Update names of diagnostic_context
6133 members. Handle -fcompare-debug-second.
6134 (fast_math_flags_struct_set_p): Update names of cl_optimization
6135 members.
6136 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6137 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6138 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6139 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6140 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6141 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6142 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
6143 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6144 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
6145
6146 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
6147
6148 * config/picochip/picochip.c (picochip_output_internal_label):
6149 This function can now be called for debug CFI labels, which can come
6150 in the middle of a vliw instruction. Postpone until end of vliw.
6151
6152 2010-09-29 Richard Guenther <rguenther@suse.de>
6153
6154 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
6155 (DECL_FILE_SCOPE_P): Use it.
6156 (TYPE_FILE_SCOPE_P): New macro.
6157
6158 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6159
6160 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
6161 a CPP_NAME which is a reserved word, clearly separate cases for
6162 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
6163
6164 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
6165
6166 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
6167 token->value with the canonical spelling. Do exactly like C and
6168 C++ and leave it as it is.
6169
6170 2010-09-28 Richard Henderson <rth@redhat.com>
6171
6172 * config/alpha/alpha.c (alpha_builtins): New.
6173 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
6174 (alpha_builtin_function): New.
6175 (alpha_add_builtins, alpha_init_builtins): Use it.
6176
6177 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
6178
6179 * doc/standards.texi (Standards): Expanded the section on
6180 Objective-C and Objective-C++.
6181
6182 2010-09-28 DJ Delorie <dj@redhat.com>
6183
6184 PR target/45800
6185 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
6186 volatile MEMs.
6187
6188 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6189
6190 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
6191 attributes on methods.
6192 (c_parser_objc_method_definition): Handle attributes.
6193 (c_parser_objc_methodproto): Likewise.
6194 (c_parser_objc_maybe_method_attributes): New.
6195 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
6196 missing definition, similar to that in ObjC++.
6197
6198 2010-09-28 Richard Henderson <rth@redhat.com>
6199
6200 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
6201 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
6202 (CONFIG_SJLJ_EXCEPTIONS): Remove.
6203 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
6204 (STACK_CHECK_PROTECT): Likewise.
6205 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
6206 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
6207 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
6208 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
6209 (dwarf2out_assembly_start): Likewise.
6210 * except.c (init_eh): Use targetm.except_unwind_info.
6211 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
6212 (output_one_function_exception_table): Likewise.
6213 * final.c: Unconditionally include dwarf2out.h.
6214 (final_start_function): Unconditionally call dwarf2out routines.
6215 (final_end_function, final_scan_insn): Likewise.
6216 * function.c (expand_function_end): Use targetm.except_unwind_info.
6217 * opts.c (decode_options): Use targetm.except_unwind_info.
6218 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
6219 * target.def (debug_unwind_info, except_unwind_info): New.
6220 * target.h (enum unwind_info_type): New.
6221 * targhooks.c (default_debug_unwind_info): New.
6222 (default_except_unwind_info): New.
6223 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
6224 * targhooks.h: Declare them.
6225 * tree-tailcall.c: Include "target.h"
6226 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
6227 * Makefile.in (tree-tailcall.o): Update.
6228 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
6229 (lhd_gcc_personality): Likewise.
6230
6231 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
6232 (TARGET_EXCEPT_UNWIND_INFO): New.
6233 (DWARF2_UNWIND_INFO): Update.
6234 (TARGET_DEBUG_UNWIND_INFO): New.
6235 * doc/tm.texi: Rebuild.
6236
6237 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
6238 targetm.except_unwind_info.
6239
6240 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
6241 (arm_except_unwind_info): New.
6242 (arm_compute_func_type): Use it.
6243 (arm_expand_prologue, thumb_pushpop): Likewise.
6244 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
6245 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
6246 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
6247 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
6248 (DWARF2_UNWIND_INFO): Remove.
6249 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
6250 (ARM_EABI_UNWIND_TABLES): Remove.
6251
6252 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
6253 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
6254 (ia64_except_unwind_info): New.
6255 (ia64_output_function_prologue): Use it.
6256 (ia64_add_bundle_selector_before): Likewise.
6257 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
6258 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
6259 (TARGET_UNWIND_INFO): Remove.
6260
6261 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
6262
6263 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
6264
6265 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
6266 (c_parser_objc_protocol_definition): Likewise.
6267 (c_parser_external_declaration): Provide dummy attribute arguments.
6268 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
6269 (c_parser_objc_class_definition): Handle attributes.
6270 (c_parser_objc_protocol_definition): Likewise.
6271
6272 2010-09-28 Tobias Burnus <burnus@net-b.de>
6273
6274 PR fortran/40569
6275 PR fortran/40568
6276 * toplev.h (save_decoded_options, save_decoded_options_count):
6277 New global variables.
6278 * toplev.c (save_decoded_options, save_decoded_options_count):
6279 Export variables.
6280
6281 2010-09-28 Ian Lance Taylor <iant@google.com>
6282
6283 * config/i386/i386.c (ix86_supports_split_stack): Test
6284 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
6285
6286 2010-09-28 Ian Lance Taylor <iant@google.com>
6287
6288 PR target/45815
6289 * opts.c (decode_options): Don't test whether the target supports
6290 split stack if flag_split_stack == 0.
6291
6292 2010-09-28 Jan Hubicka <jh@suse.cz>
6293
6294 * builtin-attrs.def (ATTR_LEAF): New attribute.
6295 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
6296 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
6297 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
6298 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
6299 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
6300 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
6301 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
6302 * sync-builtins.def: Annotate all builtins by leaf.
6303 * omp-builtins.def: Annotate all builtins by leaf.
6304 * builtins.def: Annotate relevant builtins with leaf attribute.
6305 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
6306 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
6307 leaf.
6308
6309 2010-09-28 Jan Hubicka <jh@suse.cz>
6310
6311 * tree-ssa-ccp.c (fold_ctor_reference): New function.
6312 (fold_const_aggregate_ref): Use it.
6313 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
6314 into external static.
6315
6316 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6317
6318 PR target/44452
6319 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
6320 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
6321 (ix86_solaris_return_in_memory): Remove.
6322 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
6323 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
6324 (TARGET_SUBTARGET_DEFAULT): Redefine.
6325 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
6326 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
6327 (TARGET_SUBTARGET_DEFAULT): Redefine.
6328 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
6329 -mvect8-ret-in-mem.
6330 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
6331
6332 2010-09-29 Alan Modra <amodra@gmail.com>
6333
6334 PR target/45807
6335 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
6336 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
6337 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
6338 Delete.
6339 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
6340 (rs6000_emit_prologue): Don't just create frame save info for r2,
6341 actually save r2.
6342
6343 2010-09-28 Richard Henderson <rth@redhat.com>
6344
6345 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
6346 when 8 bytes are requested.
6347
6348 2010-09-28 Tristan Gingold <gingold@adacore.com>
6349
6350 * config/avr/avr.c (expand_prologue): Set
6351 current_function_static_stack_size.
6352
6353 2010-09-28 Tristan Gingold <gingold@adacore.com>
6354
6355 * config/alpha/alpha.md: Change the initial condition of the
6356 probing loop.
6357
6358 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
6359
6360 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
6361 Split from *avx_<maxmin:code><mode>3.
6362 (*avx_<smaxmin:code><mode>3): Ditto.
6363 * config/i386/i386.md (maxmin): Remove code iterator.
6364
6365 2010-09-27 Ian Lance Taylor <iant@google.com>
6366
6367 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
6368 requires assembler support for CFI directives.
6369
6370 2010-09-27 Richard Henderson <rth@redhat.com>
6371
6372 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
6373
6374 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
6375
6376 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
6377 that AFTER is not in the range FROM..TO, inclusive.
6378
6379 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
6380 Bernd Schmidt <bernds@codesourcery.com>
6381
6382 PR rtl-optimization/45792
6383 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
6384 If not all insns are to be merged, for each edge, stash the
6385 next candidate after the to-be-merged insns before doing the
6386 merge, and use them for the retry at the new insertion point.
6387 Handle CC0 targets when retrying.
6388
6389 2010-09-27 Ian Lance Taylor <iant@google.com>
6390
6391 * common.opt (fsplit-stack): New option.
6392 * opts.c (decode_options): Set flag_split_stack to final value.
6393 * target.def (supports_split_stack): New hook.
6394 * gcc.c (STACK_SPLIT_SPEC): Define.
6395 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
6396 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
6397 (Code Gen Options): Document -fsplit-stack.
6398 * doc/extend.texi (Function Attributes): Mention no_split_stack.
6399 (Function Attributes): Document no_split_stack.
6400 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
6401 TARGET_SUPPORTS_SPLIT_STACK.
6402 * doc/tm.texi: Rebuild.
6403 * function.c (thread_prologue_and_epilogue_insns): If
6404 flag_split_stack, add split stack prologue.
6405 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
6406 * varasm.c (saw_no_split_stack): New static variable.
6407 (assemble_start_function): Set saw_no_split_stack if the function
6408 has the no_split_stack attribute.
6409 (file_end_indicate_split_stack): New function.
6410 * output.h (file_end_indicate_split_stack): Declare.
6411 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
6412 and function.
6413 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
6414 routines.
6415 * config/i386/i386.c (ix86_option_override_internal): Don't set
6416 expand_builtin_va_start to NULL if -fsplit-stack.
6417 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
6418 -fsplit-stack.
6419 (ix86_va_start): If -fsplit-stack, get overflow pointer from
6420 scratch register set by prologue.
6421 (ix86_code_end): If -fsplit-stack, call
6422 file_end_indicate_split_stack.
6423 (ix86_supports_split_stack): New static function.
6424 (SPLIT_STACK_AVAILABLE): Define.
6425 (split_stack_prologue_scratch_regno): New static function.
6426 (split_stack_fn): New static variable.
6427 (ix86_expand_split_stack_prologue): New function.
6428 (ix86_live_on_entry): New static function.
6429 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
6430 (output_pic_addr_const): Likewise.
6431 (i386_asm_output_addr_const_extra): Likewise.
6432 (ix86_expand_call): Change return type to rtx. Return the new
6433 call instruction.
6434 (TARGET_SUPPORTS_SPLIT_STACK): Define.
6435 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6436 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
6437 (split_stack_prologue, split_stack_return): New insns.
6438 (split_stack_space_check): New insn.
6439 * config/i386/i386.h (struct machine_function): Add
6440 split_stack_varargs_pointer field.
6441 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
6442 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6443 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
6444 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6445 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
6446 Declare.
6447 (ix86_expand_call): Update declaration.
6448
6449 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6450
6451 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
6452 code. Added byref, which was missing in the list of codes.
6453 Explain that enumeration values are encoded as the integer type
6454 that the compiler uses to store them. Explain and make examples
6455 of how 'const' interacts with pointers, and the complication of
6456 the encoding of 'const char *'.
6457 (Legacy type encoding): New subsection, explaining that GCC emits
6458 incorrect type encodings for the NeXT runtime for compatibility
6459 reasons.
6460 (@@encode): New subsection, explaining @encode and particularly
6461 that protocol qualifiers are not recognized inside an @encode()
6462 expression.
6463 (Method signatures): New subsection, explaining how method
6464 signatures are encoded.
6465
6466 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6467
6468 Merge from 'apple/trunk' branch on FSF servers. Removed small
6469 change in build_conditional_expr that had been added when fixing
6470 PR objc/27377 and which did the same check in a less complete way.
6471
6472 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
6473
6474 Radar 4229905
6475 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
6476 looking for objective-c common pointer types.
6477
6478 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6479
6480 Radar 4154928
6481 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
6482 use their ObjC common type.
6483
6484 2010-09-27 Richard Guenther <rguenther@suse.de>
6485
6486 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
6487
6488 2010-09-27 Jie Zhang <jie@codesourcery.com>
6489
6490 * print-tree.c (print_node): Print in-constant-pool.
6491
6492 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
6493
6494 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
6495 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
6496 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
6497 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
6498
6499 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
6500
6501 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
6502 from pro_epilogue_adjust_stack_<mode>_{1,2}.
6503 (pro_epilogue_adjust_stack_<mode>_add): Rename from
6504 pro_epilogue_adjust_stack_<mode>_3.
6505 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
6506 renamed pro_epilogue_adjust_stack_{si,di}_add.
6507 (ix86_expand_prologue): Use indirect functions. Update for renamed
6508 pro_epilogue_adjust_stack_{si,di}_sub.
6509
6510 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
6511
6512 * config/i386/i386.md (movmsk_df): New insn.
6513 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
6514 sequence for TARGET_SSE_MATH.
6515
6516 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
6517
6518 * config/mips/mips.c (mips_builtin_decls): Declare.
6519 (mips_init_builtins): Store function declarations in
6520 mips_builtin_decls.
6521 (mips_builtin_decl): New function.
6522 (TARGET_BUILTIN_DECL): Define.
6523
6524 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
6525 Richard Henderson <rth@redhat.com>
6526
6527 * config/i386/cygwin.asm: Include auto-host.h.
6528 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
6529 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
6530 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
6531 alignment code from the 64-bit path. Use gas local labels.
6532 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
6533 from _di_2. Remove the useless constant integer argument.
6534 (pro_epilogue_adjust_stack_<mode>_3): New.
6535 (allocate_stack_worker_probe_<mode>): Macroize from
6536 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
6537 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
6538 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
6539 (__chkstk_ms): New function.
6540 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
6541 * config/i386/t-interix: Likewise.
6542 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
6543 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
6544 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
6545 * configure, config.in: Rebuild.
6546
6547 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
6548
6549 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
6550 statements because of the return slot optimization.
6551
6552 2010-09-25 Anatoly Sokolov <aesok@post.ru>
6553
6554 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
6555 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
6556 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6557 (class_likely_spilled_p): Rename to...
6558 (avr_class_likely_spilled_p): ...this. Make static. Change argument
6559 type to reg_class_t.
6560
6561 2010-09-24 Jan Hubicka <jh@suse.cz>
6562
6563 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
6564 (lto_symtab_resolve_symbols): Set it.
6565 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
6566 store resolution field in cgraph/varpool.
6567 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
6568 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
6569 (cgraph_dump_node): Drop used_from_object_file.
6570 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
6571 (cgraph_function_body_availability): Use decl_replaceable_p.
6572 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
6573 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
6574 cgraph_used_from_object_file_p.
6575 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
6576 cgraph_used_from_object_file_p.
6577 (resolution_used_from_other_file_p): New functoin.
6578 (cgraph_used_from_object_file_p): New predicate.
6579 * cgraph.h: Include plugin-api.h
6580 (struct cgraph_local_info): Remove used_from_object_file.
6581 (struct cgraph_node): Add resolution field.
6582 (struct varpool_node): Likewise; remove used_from_object_file;
6583 reove const_value_known.
6584 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
6585 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
6586 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
6587 varpool_used_from_object_file_p): Declare.
6588 (varpool_get_node, varpool_extra_name_alias): Update prototype.
6589 * tree.h (DECL_REPLACEABLE_P): Remove.
6590 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
6591 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
6592 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6593 input_overwrite_node, input_node, input_varpool_node): Stream
6594 resolution.
6595 * expr.c (expand_expr_real_1): Use const_value_known_p
6596 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
6597 const_value_known.
6598 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
6599 (function_and_variable_visibility): Set resolution for local vars
6600 and functions; use varpool_used_from_object_file_p.
6601 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
6602 static functions.
6603 (default_binds_local_p_1): Use resolutoin info.
6604 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
6605 * varpool.c (varpool_get_node): Constify.
6606 (const_value_known_p): Do not use vnode->const_value_known;
6607 use decl_replaceable_p.
6608 (varpool_finalize_decl): Do not set const_value_known.
6609 (cgraph_variable_initializer_availability): Use decl_replaceable_p
6610 (varpool_extra_name_alias): Return new node.
6611 (varpool_used_from_object_file_p): New function.
6612
6613 2010-09-24 Richard Henderson <rth@redhat.com>
6614
6615 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
6616 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
6617 (do_spill): Use REG_CFA_OFFSET.
6618 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
6619 as appropriate.
6620 (ia64_expand_epilogue): Likewise.
6621 (process_set): Split into ...
6622 (process_cfa_adjust_cfa): this,
6623 (process_cfa_register): this,
6624 (process_cfa_offset): and this new function.
6625 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
6626 instead of REG_FRAME_RELATED_EXPR.
6627
6628 2010-09-24 Olivier Hainque <hainque@adacore.com>
6629
6630 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
6631
6632 2010-09-24 Jan Hubicka <jh@suse.cz>
6633
6634 * doc/extend.texi: (attribute leaf): Document.
6635 * tree.c (local_define_builtin): Handle ECF_LEAF.
6636 (build_common_builtin_nodes): Set ECF_LEAF where needed.
6637 * tree.h (ECF_LEAF): New.
6638 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
6639 overwrittable and unavailable functions.
6640 (ipa_init): Put all_module_statics into optimization_summary_obstack.
6641 (copy_global_bitmap): Do not copy all_module_statics.
6642 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
6643 (propagate): Handle overwritable and unavailable leaf functions;
6644 initialize global info for overwritable and unavailable leaf functions;
6645 do not free all module statics.
6646 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
6647 local statics.
6648 * calls.c (flags_from_decl_or_type): Handle leaf.
6649 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
6650 abnormal gotos.
6651
6652 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
6653
6654 * gengtype.c: Reindented.
6655 * gengtype.h: Reindented.
6656 * gengtype-parse.c: Reindented.
6657
6658 2010-09-24 Jan Hubicka <jh@suse.cz>
6659
6660 PR tree-optimization/45738
6661 PR tree-optimization/45741
6662 * expr.c (string_constant): Allow CONST_DECL too;
6663 check that DECL_INITIAL is set.
6664 * varpool.c (const_value_known_p): Only look into VAR_DECL
6665 and CONST_DECL.
6666
6667 2010-09-24 Joseph Myers <joseph@codesourcery.com>
6668
6669 * common.opt (undef): New.
6670
6671 2010-09-24 Jakub Jelinek <jakub@redhat.com>
6672
6673 PR middle-end/45234
6674 * rtl.h (enum global_rtl_index): Add
6675 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
6676 (LAST_VIRTUAL_POINTER_REGISTER): Define.
6677 (virtual_preferred_stack_boundary_rtx,
6678 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
6679 (LAST_VIRTUAL_REGISTER): Increase by one.
6680 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
6681 instead of LAST_VIRTUAL_REGISTER.
6682 * function.c (instantiate_new_reg): Handle
6683 virtual_preferred_stack_boundary_rtx.
6684 * emit-rtl.c (init_virtual_regs): Handle
6685 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6686 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
6687 * explow.c (round_push): If crtl->preferred_stack_boundary
6688 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
6689 virtual_preferred_stack_boundary_rtx alignment instead of
6690 crtl->preferred_stack_boundary alignment.
6691 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
6692 macros. Never decrease crtl->preferred_stack_boundary,
6693 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
6694 instead of PREFERRED_STACK_BOUNDARY. Don't modify
6695 stack_pointer_delta in dynamic allocation, even when size
6696 is constant.
6697 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
6698 macro.
6699 * print-rtl.c (print_rtx): Handle
6700 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6701 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
6702 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
6703 * config/frv/frv.c (frv_emit_movsi): Likewise.
6704 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
6705 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
6706 Likewise.
6707
6708 Revert:
6709 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6710
6711 PR middle-end/45234
6712 * calls.c (expand_call): Make sure that all variable sized
6713 adjustments are multiple of preferred stack boundary after
6714 stack alignment.
6715
6716 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
6717 Dominique Dhumieres <dominiq@lps.ens.fr>
6718
6719 PR bootstrap/45751
6720 * config/darwin-driver.c (darwin_default_min_version):
6721 Adjust size passed to memcpy in two places.
6722
6723 2010-09-24 Richard Guenther <rguenther@suse.de>
6724
6725 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
6726 Make sure to not call set_type_context with error_mark_node.
6727 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
6728
6729 2010-09-24 Richard Guenther <rguenther@suse.de>
6730
6731 * Makefile.in (OBJS-onestep): Remove.
6732 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
6733 (libbackend.a): Remove onestep support.
6734 (libbackend.o): Remove.
6735 * configure.ac (--enable-intermodule): Remove.
6736 * configure: Regenerate.
6737
6738 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
6739
6740 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
6741 reaching the end of a block if it occurs at a DEBUG_INSN.
6742
6743 2010-09-09 Tristan Gingold <gingold@adacore.com>
6744
6745 PR target/44242
6746 * config/vms/vms-crt0-64.c: Removed.
6747 * config/vms/vms-crt0.c: Removed.
6748 * config/vms/vms-psxcrt0-64.c: Removed.
6749 * config/vms/vms-psxcrt0.c: Removed.
6750 * config/vms/vms-ucrt0.c: New file.
6751 * config/vms/t-vms64: Removed.
6752 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
6753 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
6754 * config.gcc (alpha-dec-vms): Use t-vms.
6755
6756 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
6757
6758 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
6759 underfull hbox in DVI output.
6760 (-fobjc-class-cxx-cdtors): Same change.
6761 (-fobjc-exceptions): Tidied up documentation. Explain what the
6762 option does, but moved the (lenghty) description of the exception
6763 syntax into objc.texi.
6764 (-fobjc-gc): Explain that the option is not useful with the GNU
6765 runtime.
6766 (-fzero-link): Explain that the GNU runtime always works in
6767 "zero-link" mode.
6768 * doc/objc.texi: All sections: simplified @node declarations
6769 removing specification of next, previous, up node.
6770 (Objective-C): Updated introduction.
6771 (Garbage Collection): Updated. The bohem-gc library is now
6772 included in gcc itself. Mention that this section only applies to
6773 the GNU Objective-C runtime.
6774 (compatibility_alias): Small tidy up.
6775 (Exceptions): New section mostly containing text previously in the
6776 description of the -fobjc-exception command-line option.
6777 (Synchronization): Same.
6778
6779 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
6780
6781 * config/i386/i386.md (ix86_code_end): Move the initialization of
6782 xops array near the consumer. Use AX_REG and SP_REG instead of
6783 numerical constants.
6784
6785 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
6786
6787 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
6788 method [methodname]' for an Objective-C method instead of the less
6789 satisfactory 'too many arguments to function' (with no method name).
6790
6791 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
6792
6793 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
6794 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
6795 (execute_update_addresses_taken): Remove parameter. Execute the
6796 optimization unconditionally.
6797 * passes.c (execute_function_todo): Call execute_update_addresses_taken
6798 unconditionally if TODO_rebuild_alias is set, else only when optimizing
6799 if TODO_update_address_taken is set.
6800
6801 2010-09-23 Anatoly Sokolov <aesok@post.ru>
6802
6803 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6804 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
6805 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6806 (arm_output_addr_const_extra): Make static.
6807
6808 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
6809
6810 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
6811 define as unspec_volatile.
6812 ("nops"): Define as unspec_volatile. Use fputs to write to
6813 asm_out_file directly. Output NOPs on separate lines using while loop.
6814 * config/i386/i386.c (ix86_code_end): Use fputs to write to
6815 asm_out_file directly. Output NOPs on separate lines using while loop.
6816
6817 2010-09-23 Richard Guenther <rguenther@suse.de>
6818
6819 PR tree-optimization/45565
6820 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
6821 Make sure to adjust the fndecl before replacing the stmt.
6822
6823 2010-09-23 Richard Guenther <rguenther@suse.de>
6824
6825 PR middle-end/45750
6826 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
6827 gimplifying MEM_REF.
6828
6829 2010-09-23 Alan Modra <amodra@gmail.com>
6830
6831 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
6832 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
6833
6834 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
6835
6836 PR rtl-optimization/44374
6837 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
6838 * df-core.c (df_set_bb_dirty): Set it.
6839 * ifcvt.c (find_memory): Remove function.
6840 (dead_or_predicable): Use can_move_insns_across.
6841 * df.h (can_move_insns_across): Declare function.
6842 * cfgcleanup.c (block_was_dirty): New static variable.
6843 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
6844 than df_get_bb_dirty.
6845 (try_head_merge_bb): New static function.
6846 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
6847 is set.
6848 * df-problems.c: Include "target.h"
6849 (df_simulate_find_uses): New static function.
6850 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
6851 (find_memory, find_memory_store): New static functions.
6852 (can_move_insns_across): New function.
6853 * Makefile.in (df-problems.o): Update dependencies.
6854
6855 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
6856
6857 PR java/44095
6858 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
6859 is specified and the suffix of the file isn't ".c".
6860 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6861
6862 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6863
6864 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
6865 * doc/cppopts.texi: Fix markup of index entry.
6866 * doc/extend.texi (Constructing Calls): Fix markup of
6867 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
6868 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
6869 (Vague Linkage, C++ Attributes): Fix markup of index entries and
6870 keywords.
6871 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
6872 avoid long lines.
6873 (C Dialect Options, C++ Dialect Options, Warning Options)
6874 (Debugging Options, Spec Files, Darwin Options)
6875 (i386 and x86-64 Options, MIPS Options)
6876 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
6877 index entries, avoid abbreviations, allow URLs to wrap, avoid
6878 long lines, avoid overlong pages from long @itemx lists.
6879 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
6880 * doc/standards.texi (Standards): Likewise.
6881 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
6882
6883 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6884
6885 * opts-common.c (prune_options): Make static. Work with decoded
6886 options.
6887 (decode_cmdline_options_to_array): Call prune_options. Don't
6888 resize option array here.
6889 * opts.h (prune_options): Remove prototype.
6890 * gcc.c (process_command): Take decoded options; don't call
6891 decode_cmdline_options_to_array here. Use decoded options for argv[0].
6892 (main): Call decode_cmdline_options_to_array here instead of
6893 prune_options. Update call to process_command.
6894 * config/darwin-driver.c: Include opts.h.
6895 (darwin_default_min_version): Work with decoded options. Don't
6896 handle -b or -V here.
6897 * config/darwin.h (darwin_default_min_version): Update prototype.
6898 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
6899 darwin_default_min_version.
6900 * config/i386/cygwin.h (mingw_scan): Update prototype.
6901 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
6902 * config/i386/cygwin1.c: Include opts.h.
6903 (mingw_scan): Work with decoded options.
6904 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
6905 * config/t-darwin (darwin-driver.o): Update dependencies.
6906
6907 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6908
6909 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
6910 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
6911 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
6912 -force-link, -force-link=, -language, -language=,
6913 -library-directory, -library-directory=, -no-canonical-prefixes,
6914 -no-standard-libraries, -no-warnings, -optimize, -output,
6915 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
6916 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
6917 -print-file-name=, -print-libgcc-file-name,
6918 -print-multi-directory, -print-multi-lib,
6919 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
6920 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
6921 -profile, -save-temps, -shared, -specs, -specs=, -static,
6922 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
6923 symbolic): New.
6924 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
6925 * gcc.c (A Short Introduction to Adding a Command-Line Option):
6926 Remove comment.
6927 (cc1_options): Correct specs for passing down --help,
6928 --target-help and --help=*. Add spec for passing down --version.
6929 (struct option_map, option_map, target_option_translations,
6930 translate_options): Remove.
6931 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
6932 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
6933 OPT_fhelp_ and OPT_ftarget_help.
6934 (process_command): Don't call translate_options. Call
6935 decode_cmdline_options_to_array before checking for
6936 -no-canonical-prefixes using decoded options.
6937 * opts-common.c (tm.h): Update comment on #include.
6938 (find_opt): Allow abbreviations of long options.
6939 (struct option_map, option_map): New.
6940 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
6941 and -mno handling.
6942 (target_option_translations): New.
6943 (decode_cmdline_options_to_array): Handle
6944 TARGET_OPTION_TRANSLATE_TABLE in driver.
6945 * opts.c (common_handle_option): Don't handle OPT_fhelp,
6946 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
6947
6948 2010-09-22 Richard Guenther <rguenther@suse.de>
6949
6950 * tree-inline.c (optimize_inline_calls): Schedule cleanups
6951 only if we inlined something. Block compaction and conditional
6952 folding are done by cfg cleanup. Schedule update-address-taken.
6953 (tree_function_versioning): Remove redundant call to number_blocks.
6954 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
6955 folding is done by cfg cleanup.
6956 * passes.c (init_optimization_passes): Remove update-address-taken
6957 pass after IPA inlining.
6958
6959 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6960
6961 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
6962 to update conditions. Fix reg_mode[] check.
6963
6964 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
6965
6966 * config/picochip/picochip.md (movhicc): Use expand to check whether
6967 movhicc is available and split it after reload.
6968
6969 2010-09-22 Richard Guenther <rguenther@suse.de>
6970
6971 * tree-ssanames.c (release_dead_ssa_names): Do not remove
6972 callee edges here.
6973 * passes.c (init_optimization_passes): Remove early CFG cleanup.
6974 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
6975 (pass_cleanup_cfg): Likewise.
6976 (execute_fixup_cfg): Cleanup.
6977 * tree-pass.h (pass_cleanup_cfg): Remove.
6978
6979 2010-09-22 Martin Jambor <mjambor@suse.cz>
6980
6981 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
6982 builtins if it is true.
6983 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
6984 parameter.
6985
6986 2010-09-22 Martin Jambor <mjambor@suse.cz>
6987
6988 * tree-sra.c (struct access): New field grp_no_warning.
6989 (create_access_replacement): Set TREE_NO_WARNING according to
6990 grp_no_warning.
6991 (create_artificial_child_access): Use build_ref_for_model and set
6992 grp_no_warning if build_user_friendly_ref_for_offset fails.
6993 (propagate_subaccesses_across_link): Likewise.
6994
6995 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
6996
6997 PR target/35664
6998 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
6999 ('f'): Likewise.
7000
7001 2010-09-22 Tristan Gingold <gingold@adacore.com>
7002
7003 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
7004
7005 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
7006
7007 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
7008 * config/i386/i386.c (decide_alg): Update for rename.
7009
7010 2010-09-22 Jakub Jelinek <jakub@redhat.com>
7011
7012 PR rtl-optimization/45739
7013 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
7014 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
7015
7016 2010-09-21 Anatoly Sokolov <aesok@post.ru>
7017
7018 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
7019 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
7020 Remove.
7021 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
7022 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7023
7024 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7025
7026 PR objc/23710
7027 * c-parser.c (c_parser_objc_method_definition): Check the return
7028 value of objc_start_method_definition and if false is returned,
7029 parse the method definition but emit no code.
7030
7031 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
7032
7033 PR objc/25965
7034 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
7035 call objc_get_interface_ivars ().
7036
7037 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
7038
7039 PR target/45694
7040 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
7041 static chain-register is used for 64-bit.
7042
7043 2010-09-21 Richard Guenther <rguenther@suse.de>
7044
7045 * dwarf2out.c (is_cu_die): New function.
7046 (add_pubtype): Use it.
7047 (gen_subprogram_die): Likewise.
7048 (gen_struct_or_union_type_die): Likewise.
7049 (dwarf2out_finish): Likewise.
7050 (comp_unit_die): Rename to ...
7051 (single_comp_unit_die): ... this.
7052 (comp_unit_die): New function lazily constructing and
7053 returning single_comp_unit_die.
7054 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
7055 base_type_die, subrange_type_die, modified_type_die,
7056 lower_bound_default, add_bound_info, add_prototyped_attribute,
7057 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
7058 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
7059 force_decl_die, gen_namespace_die, dwarf2out_decl,
7060 dwarf2out_start_source_file, dwarf2out_end_source_file,
7061 prune_unused_types, dwarf2out_finish): Use it.
7062 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
7063 the global list of translation-unit decls.
7064 (dwarf2out_init): Do not create single_comp_unit_die here.
7065 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
7066
7067 2010-09-21 Richard Guenther <rguenther@suse.de>
7068
7069 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
7070 for bool for C++.
7071
7072 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
7073
7074 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
7075 (qhs_extenddi_cstr): Likewise.
7076 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
7077 them for the source operand.
7078
7079 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
7080
7081 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
7082 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
7083 (ix86_split_ashr): Ditto.
7084 (ix86_split_lshr): Ditto.
7085
7086 2010-09-21 Richard Guenther <rguenther@suse.de>
7087
7088 PR tree-optimization/45580
7089 * tree-ssa-propagate.c (substitute_and_fold): Always replace
7090 regular uses.
7091 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
7092 virtuals fold the call into a regular indirect one.
7093
7094 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
7095
7096 PR rtl-optimization/42775
7097 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
7098 scheduling is enabled.
7099
7100 2010-09-20 Jakub Jelinek <jakub@redhat.com>
7101
7102 PR rtl-optimization/45728
7103 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
7104 gen_lowpart_common first and if that fails, force_reg first
7105 before calling gen_lowpart.
7106
7107 PR middle-end/45678
7108 * cfgexpand.c (expand_one_stack_var_at): Use
7109 crtl->max_used_stack_slot_alignment as max_align, instead
7110 of maximum of that and PREFERRED_STACK_BOUNDARY.
7111 Don't call update_stack_alignment.
7112
7113 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
7114
7115 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
7116 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
7117 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
7118 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
7119 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
7120 (build_nonstandard_integer_type): Likewise.
7121 (build_range_type_1): New function, built from...
7122 (build_range_type): ...this. Call build_range_type_1.
7123 (build_nonshared_range_type): New function.
7124 (build_array_type_1): New function, built from...
7125 (build_array_type: ...this. Call build_array_type_1.
7126 (build_nonshared_array_type): New function.
7127 * tree.h (build_nonshared_range_type): Declare.
7128 (build_nonshared_array_type): Likewise.
7129
7130 2010-09-20 Anatoly Sokolov <aesok@post.ru>
7131
7132 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
7133 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7134 (arm_class_likely_spilled_p): New function.
7135
7136 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
7137
7138 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
7139 indirect functions.
7140 (ix86_split_ashl): Ditto.
7141 (ix86_split_ashr): Ditto.
7142 (ix86_split_lshr): Ditto.
7143 (ix86_adjust_counter): Ditto.
7144
7145 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
7146
7147 * c-family/c-common.h (constant_string_class): Documented with
7148 comment identical to the one already in c-common.c.
7149
7150 2010-09-20 Jakub Jelinek <jakub@redhat.com>
7151
7152 * dwarf2out.c (any_cfis_emitted): New static variable.
7153 (add_fde_cfi): Set it.
7154 (dwarf2out_frame_debug): Clear it before processing,
7155 if it is set afterwards, flush any queued reg saves.
7156
7157 PR debug/45124
7158 * dwarf2out.c (add_accessibility_attribute): Assume
7159 DW_ACCESS_private as the default for dwarf_version > 2
7160 and DW_TAG_class_type parent.
7161 (gen_inheritance_die): Assume DW_ACCESS_public as the default
7162 for dwarf_version > 2 and parent other than DW_TAG_class_type.
7163
7164 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
7165
7166 PR target/45726
7167 * arm.md (arm_movt): Only enable on machines with MOVT.
7168
7169 2010-09-20 Jie Zhang <jie@codesourcery.com>
7170
7171 * config/arm/arm.c (arm_address_offset_is_imm): New.
7172 (arm_early_store_addr_dep): New.
7173 (arm_early_load_addr_dep): New.
7174 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
7175 (arm_early_load_addr_dep): Declare.
7176 (arm_address_offset_is_imm): Declare.
7177 * config/arm/cortex-m4.md: New file.
7178 * config/arm/cortex-m4-fpu.md: New file.
7179 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
7180 (attr generic_sched): Exclude cortexm4.
7181 (attr generic_vfp): Exclude cortexm4.
7182
7183 2010-09-20 Richard Guenther <rguenther@suse.de>
7184
7185 PR middle-end/45704
7186 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
7187
7188 2010-09-20 Jan Hubicka <jh@suse.cz>
7189
7190 PR tree-optimize/45605
7191 * cgraph.h (const_value_known_p): Declare.
7192 (varpool_decide_const_value_known): Remove.
7193 * tree-ssa-ccp.c (get_base_constructor): Use it.
7194 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
7195 * expr.c (string_constant): Likewise.
7196 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
7197 * ipa.c (ipa_discover_readonly_nonaddressable_var,
7198 function_and_variable_visibility): Likewise.
7199 * gimplify.c (gimplify_call_expr): Likewise.
7200 * gimple-fold.c (get_symbol_constant_value): Likewise.
7201 * varpool.c (varpool_decide_const_value_known): Replace by...
7202 (const_value_known_p): ... this one; handle other kinds of DECLs
7203 too and work for automatic vars.
7204 (varpool_finalize_decl): Use const_value_known_p.
7205
7206 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
7207
7208 PR target/45726
7209 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
7210
7211 2010-09-20 Richard Guenther <rguenther@suse.de>
7212
7213 PR tree-optimization/45705
7214 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
7215
7216 2010-09-20 Jakub Jelinek <jakub@redhat.com>
7217
7218 PR rtl-optimization/45695
7219 * combine.c (try_combine): When splitting a two set pattern,
7220 make sure the pattern which will be put into i2 doesn't use REGs
7221 or MEMs set by insns in between i2 and i3.
7222
7223 2010-09-19 Jan Hubicka <jh@suse.cz>
7224
7225 PR lto/44246
7226 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
7227 processing same node twice.
7228
7229 2010-09-19 Anatoly Sokolov <aesok@post.ru>
7230
7231 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
7232 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7233 (bfin_class_likely_spilled_p): New function
7234
7235 2010-09-19 Ira Rosen <irar@il.ibm.com>
7236
7237 PR tree-optimization/45714
7238 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
7239 created in vectorizable_call instead of the original statement in
7240 def stmt updates.
7241
7242 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
7243
7244 * config/i386/i386-protos.h (split_double_mode): New prototype.
7245 (split_di, split_ti): Remove prototypes.
7246 * config/i386/i386.c (split_double_mode): New function.
7247 (split_di, split_ti): Remove.
7248 (ix86_expand_branch): Use split_double_mode.
7249 (ix86_split_to_parts): Ditto.
7250 (ix86_split_ashl): Ditto.
7251 (ix86_split_ashr): Ditto.
7252 (ix86_split_lshr): Ditto.
7253 (ix86_force_to_memory): Ditto.
7254 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
7255
7256 2010-09-18 Jan Hubicka <jh@suse.cz>
7257
7258 PR tree-optimization/45453
7259 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
7260 virtual functions are reachable.
7261 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
7262 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
7263 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
7264 when modifying function.
7265
7266 2010-09-18 Jan Hubicka <jh@suse.cz>
7267
7268 PR tree-optimization/45605
7269 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
7270 * gimple-fold.c (static_object_in_other_unit_p): New function.
7271 (canonicalize_constructor_val): Use it.
7272 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
7273 returning NULL.
7274 (gimple_fold_obj_type_ref_known_binfo): Use
7275 static_object_in_other_unit_p.
7276
7277 2010-09-18 Richard Guenther <rguenther@suse.de>
7278
7279 PR tree-optimization/45709
7280 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
7281 insertions until after all PHI nodes of the block are processed.
7282
7283 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
7284
7285 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
7286
7287 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
7288
7289 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
7290
7291 2010-09-18 Richard Guenther <rguenther@suse.de>
7292
7293 PR tree-optimization/45709
7294 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
7295
7296 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
7297
7298 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
7299 (dot_deps_stmt): Same.
7300 * graphite-poly.c (dot_lst): Same.
7301 * graphite-scop-detection.c (dot_all_scops): Same.
7302 (dot_scop): Same.
7303
7304 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
7305
7306 Revert:
7307 2009-12-16 Ben Elliston <bje@au.ibm.com>
7308
7309 * tree-data-ref.c (dot_rdg_1): Added back.
7310 (dot_rdg): Same. Added "#if 0" around system call.
7311
7312 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
7313 Richard Henderson <rth@redhat.com>
7314
7315 * config/i386/i386.c (initial_ix86_tune_features): Add
7316 X86_TUNE_PAD_SHORT_FUNCTION.
7317 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
7318 (ix86_count_insn): New.
7319 (ix86_pad_short_function): Likewise.
7320 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
7321
7322 * config/i386/i386.h (ix86_tune_indices): Add
7323 X86_TUNE_PAD_SHORT_FUNCTION.
7324 (TARGET_PAD_SHORT_FUNCTION): New.
7325
7326 * config/i386/i386.md (UNSPEC_NOPS): New.
7327 (nops): Likewise.
7328
7329 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
7330
7331 PR middle-end/45234
7332 * calls.c (expand_call): Make sure that all variable sized
7333 adjustments are multiple of preferred stack boundary after
7334 stack alignment.
7335
7336 2010-09-17 DJ Delorie <dj@redhat.com>
7337
7338 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
7339 passed an invalid value, print an error instead of ICEing.
7340 (valid_psw_flag): New.
7341 (rx_expand_builtin): Call it for setpsw/clrpsw.
7342 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
7343
7344 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
7345 (bitclr_in_memory): Likewise.
7346 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
7347
7348 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
7349
7350 PR middle-end/45678
7351 * cfgexpand.c (update_stack_alignment): New.
7352 (get_decl_align_unit): Use it.
7353 (expand_one_stack_var_at): Call update_stack_alignment.
7354
7355 2010-09-17 Richard Guenther <rguenther@suse.de>
7356
7357 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
7358 Properly copy the read string.
7359
7360 2010-09-17 Joseph Myers <joseph@codesourcery.com>
7361
7362 * doc/options.texi (Variable): Document.
7363 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
7364 generate target_flags declarations explicitly. Don't define
7365 VarExists variables for the driver.
7366 * common.opt (target_flags): New Variable record.
7367 (flag_dump_unnumbered, flag_dump_unnumbered_links,
7368 flag_var_tracking, flag_var_tracking_assignments,
7369 flag_var_tracking_assignments_toggle): Don't mark variables with
7370 VarExists.
7371 * config/i386/i386.c (ix86_isa_flags): Don't define here.
7372 * config/i386/i386.opt (ix86_isa_flags): Define here.
7373 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
7374 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
7375 VarExists.
7376 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
7377 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
7378 Only define for generator programs.
7379 * rtlanal.c (target_flags): Remove.
7380 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
7381 flag_var_tracking_assignments_toggle): Remove.
7382
7383 2010-09-17 Michael Matz <matz@suse.de>
7384
7385 PR tree-optimization/43432
7386 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7387 Accept backwards consecutive accesses.
7388 (vect_create_data_ref_ptr): If step is negative generate
7389 decreasing IVs.
7390 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
7391 (perm_mask_for_reverse, reverse_vec_elements): New functions.
7392 (vectorizable_load): Handle loads with negative steps when easily
7393 possible.
7394
7395 2010-09-03 Jan Hubicka <jh@suse.cz>
7396
7397 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
7398
7399 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
7400
7401 * config/v850/v850.c (v850_function_value_regno_p): Make static.
7402 Adjust comments. Declare.
7403 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
7404 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
7405
7406 2010-09-17 Richard Guenther <rguenther@suse.de>
7407
7408 * common.opt (combine): Remove.
7409 * gcc.c (default_compilers): Remove specs testing combine.
7410 The C compilers no longer can combine.
7411 (option_map): Remove -combine.
7412 (display_help): Remove -combine.
7413 (driver_handle_option): Remove OPT_combine handling.
7414 (compile_input_file_p): Remove.
7415 (do_spec): Remove code concerning combine.
7416 (main): Likewise.
7417 * doc/invoke.texi: Remove traces of -combine.
7418 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
7419
7420 2010-09-17 Richard Guenther <rguenther@suse.de>
7421
7422 PR middle-end/45678
7423 * builtins.c (fold_builtin_memory_op): Always properly adjust
7424 alignment of memory accesses.
7425
7426 2010-09-16 Jan Hubicka <jh@suse.cz>
7427
7428 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
7429 processing clone.
7430
7431 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
7432
7433 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
7434
7435 * config/i386/i386.c (predict_jump): Add prototype.
7436 (flag_opts): Add -m8bit-idiv.
7437 (ix86_split_idivmod): New.
7438
7439 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
7440 Add 2 splitters for SI/DI mode divide.
7441 (divmod<mode>4_1): New pattern.
7442 (udivmod<mode>4_1): Likewise.
7443 (testdi_ccno_1): Likewise.
7444
7445 * config/i386/i386.opt (m8bit-idiv): New.
7446
7447 * doc/invoke.texi: Document -m8bit-idiv.
7448
7449 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
7450
7451 PR bootstrap/45680
7452 * config/i386/i386.c (min_insn_size): Moved out of the
7453 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
7454
7455 2010-09-16 Jan Hubicka <jh@suse.cz>
7456
7457 * lto-cgraph.c (lto_output_node): Fix handling of clones.
7458 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
7459 unreachable clones with reachable clones.
7460 * tree-inline.c (copy_bb): Fix sanity checking when producing
7461 unreachable clone.
7462
7463 2010-09-16 Anatoly Sokolov <aesok@post.ru>
7464
7465 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
7466 (TARGET_MEMORY_MOVE_COST): Define.
7467 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
7468
7469 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
7470
7471 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
7472 maybe_tidy_empty_bb.
7473
7474 Revert:
7475 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
7476 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7477
7478 2010-09-16 Joseph Myers <joseph@codesourcery.com>
7479
7480 * target.def (target_option.optimization): New hook.
7481 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
7482 TARGET_OPTION_OPTIMIZATION hook.
7483 * doc/tm.texi: Regenerate.
7484 * hooks.c (hook_void_int_int): New.
7485 * hooks.h (hook_void_int_int): Declare.
7486 * opts.c: Don't include tm_p.h.
7487 (decode_options): Use targetm.target_option.optimization instead
7488 of OPTIMIZATION_OPTIONS.
7489 * system.h (OPTIMIZATION_OPTIONS): Poison.
7490 * config/arm/arm-protos.h (arm_optimization_options): Remove.
7491 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
7492 (arm_optimization_options): Rename to arm_option_optimization.
7493 Make static.
7494 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
7495 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
7496 (cris_option_optimization): New.
7497 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
7498 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
7499 (crx_option_optimization): New.
7500 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
7501 * config/frv/frv-protos.h (frv_optimization_options): Remove.
7502 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
7503 (frv_optimization_options): Rename to frv_option_optimization.
7504 Make static.
7505 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
7506 * config/h8300/h8300.c (h8300_option_optimization): New.
7507 (TARGET_OPTION_OPTIMIZATION): Define.
7508 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
7509 * config/i386/i386-protos.h (optimization_options): Remove.
7510 * config/i386/i386.c (optimization_options): Rename to
7511 ix86_option_optimization. Make static.
7512 (TARGET_OPTION_OPTIMIZATION): Define.
7513 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
7514 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
7515 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
7516 (ia64_optimization_options): Rename to ia64_option_optimization.
7517 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
7518 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
7519 commented-out definition.
7520 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
7521 instead of OPTIMIZATION_OPTIONS.
7522 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
7523 (m32r_option_optimization): New.
7524 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
7525 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
7526 Remove.
7527 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
7528 (mcore_option_optimization): New.
7529 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
7530 * config/mep/mep-protos.h (mep_optimization_options): Remove.
7531 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
7532 (mep_optimization_options): Rename to mep_option_optimization.
7533 Make static. Take unused level and size parameters.
7534 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
7535 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
7536 (mmix_option_optimization): New.
7537 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
7538 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
7539 (pdp11_option_optimization): New.
7540 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
7541 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
7542 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
7543 (optimization_options): Rename to rs6000_option_optimization.
7544 Make static.
7545 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
7546 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
7547 * config/rx/rx.c (rx_set_optimization_options): Rename to
7548 rx_option_optimization. Make static. Take unused level and size
7549 parameters.
7550 (TARGET_OPTION_OPTIMIZATION): Define.
7551 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
7552 * config/s390/s390-protos.h (optimization_options): Remove.
7553 * config/s390/s390.c (optimization_options): Rename to
7554 s390_option_optimization. Make static. Don't mark size parameter
7555 unused.
7556 (TARGET_OPTION_OPTIMIZATION): Define.
7557 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
7558 * config/sh/sh-protos.h (sh_optimization_options): Remove.
7559 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
7560 (sh_optimization_options): Rename to sh_option_optimization. Make
7561 static. Don't mark parameters unused.
7562 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
7563 * config/spu/spu-protos.h (spu_optimization_options): Remove.
7564 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
7565 (spu_optimization_options): Rename to spu_option_optimization.
7566 Make static.
7567 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
7568 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
7569 (v850_option_optimization): New.
7570 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
7571 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
7572 (xtensa_option_optimization): New.
7573 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
7574
7575 2010-09-16 Joseph Myers <joseph@codesourcery.com>
7576
7577 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
7578 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
7579 * doc/tm.texi: Regenerate.
7580 * system.h (OVERRIDE_OPTIONS): Poison.
7581 * target.def (override): Default to hook_void_void.
7582 * targhooks.c (default_target_option_override): Remove.
7583 * genmodes.c, machmode.def: Update comments mentioning
7584 OVERRIDE_OPTIONS.
7585 * config/alpha/alpha-modes.def: Update comment mentioning
7586 alpha_override_options.
7587 * config/alpha/alpha-protos.h (override_options): Remove.
7588 * config/alpha/alpha.c (override_options): Rename to
7589 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
7590 (TARGET_OPTION_OVERRIDE): Define.
7591 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
7592 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
7593 of OVERRIDE_OPTIONS.
7594 * config/arc/arc-protos.h (arc_init): Remove.
7595 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
7596 (arc_init): Rename to arc_option_override. Make static.
7597 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
7598 (OVERRIDE_OPTIONS): Remove.
7599 * config/arm/arm-protos.h (arm_override_options): Remove.
7600 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
7601 (arm_override_options): Rename to arm_option_override. Make
7602 static. Call SUBTARGET_OVERRIDE_OPTIONS.
7603 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
7604 * config/arm/arm.md: Update comment referring to arm_override_options.
7605 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7606 instead of OVERRIDE_OPTIONS.
7607 * config/avr/avr-protos.h (avr_override_options): Remove.
7608 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
7609 (avr_override_options): Rename to avr_option_override. Make static.
7610 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
7611 * config/bfin/bfin-protos.h (override_options): Remove (twice).
7612 * config/bfin/bfin.c (override_options): Rename to
7613 bfin_option_override. Make static.
7614 (TARGET_OPTION_OVERRIDE): Define.
7615 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
7616 * config/cris/cris-protos.h (cris_override_options): Remove.
7617 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
7618 (cris_override_options): Rename to cris_option_override. Make static.
7619 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
7620 * config/frv/frv-protos.h (frv_override_options): Remove.
7621 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
7622 (frv_override_options): Rename to frv_option_override. Make static.
7623 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
7624 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
7625 * config/h8300/h8300.c (h8300_init_once): Rename to
7626 h8300_option_override. Make static.
7627 (TARGET_OPTION_OVERRIDE): Define.
7628 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
7629 * config/i386/i386-protos.h (override_options): Remove.
7630 * config/i386/i386.c (override_options): Rename to
7631 ix86_option_override_internal. Make static. Comments referring
7632 to this function and callers changed.
7633 (ix86_option_override): New.
7634 (TARGET_OPTION_OVERRIDE): Define.
7635 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
7636 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
7637 * config/ia64/ia64.c (ia64_file_start): Update comment referring
7638 to ia64_override_options.
7639 * config/iq2000/iq2000-protos.h (override_options): Remove.
7640 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
7641 (override_options): Rename to iq2000_option_override. Make static.
7642 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
7643 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
7644 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
7645 (lm32_override_options): Rename to lm32_option_override. Make static.
7646 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
7647 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
7648 (m32r_option_override): New.
7649 (m32r_init): Update comment.
7650 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
7651 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
7652 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
7653 (m68hc11_override_options): Rename to m68hc11_option_override.
7654 Make static. Return void.
7655 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
7656 * config/m68k/m68k-protos.h (override_options): Remove.
7657 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
7658 (override_options): Rename to m68k_option_override. Make static.
7659 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
7660 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
7661 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
7662 (mcore_override_options): Rename to mcore_option_override. Make
7663 static.
7664 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
7665 * config/mep/mep-protos.h (mep_override_options): Remove.
7666 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
7667 (mep_override_options): Rename to mep_option_override. Make static.
7668 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
7669 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
7670 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
7671 (mmix_override_options): Rename to mmix_option_override. Make static.
7672 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
7673 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
7674 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
7675 (mn10300_override_options): Rename to mn10300_option_override.
7676 Make static.
7677 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
7678 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
7679 * config/moxie/moxie.c (moxie_override_options): Rename to
7680 moxie_option_override. Make static.
7681 (TARGET_OPTION_OVERRIDE): Define.
7682 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
7683 * config/picochip/picochip-protos.h (picochip_override_options):
7684 Remove. Update comment referring to picochip_override_options.
7685 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
7686 (picochip_override_options): Rename to picochip_option_override.
7687 Make static. Update comment and definition of
7688 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
7689 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
7690 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7691 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7692 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7693 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7694 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7695 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
7696 instead of OVERRIDE_OPTIONS.
7697 * config/rs6000/rs6000-modes.def: Update comment referring to
7698 rs6000_override_options.
7699 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
7700 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
7701 (rs6000_override_options): Rename to
7702 rs6000_option_override_internal. Make static. Commented
7703 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
7704 (rs6000_option_override): New.
7705 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
7706 instead of OVERRIDE_OPTIONS.
7707 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7708 * config/s390/s390-protos.h (override_options): Remove.
7709 * config/s390/s390.c (override_options): Rename to
7710 s390_option_override. Make static.
7711 (TARGET_OPTION_OVERRIDE): Define.
7712 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
7713 * config/score/score-protos.h (score_override_options): Remove.
7714 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
7715 (score_override_options): Rename to score_option_override. Make
7716 static.
7717 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
7718 Update comment referring to override_options.
7719 * config/score/score3.c (score3_override_options): Rename to
7720 score3_option_override.
7721 * config/score/score3.h (score3_override_options): Rename to
7722 score3_option_override.
7723 * config/score/score7.c (score7_override_options): Rename to
7724 score7_option_override.
7725 * config/score/score7.h (score7_override_options): Rename to
7726 score7_option_override.
7727 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
7728 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
7729 (sparc_override_options): Rename to sparc_option_override. Make
7730 static. Call SUBTARGET_OVERRIDE_OPTIONS.
7731 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
7732 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7733 instead of OVERRIDE_OPTIONS.
7734 * config/spu/spu-protos.h (spu_override_options): Remove.
7735 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
7736 (spu_override_options): Rename to spu_option_override. Make
7737 static.
7738 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
7739 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
7740 OVERRIDE_OPTIONS.
7741 * config/vax/vax-protos.h (override_options): Remove.
7742 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
7743 (override_options): Rename to vax_option_override. Make static.
7744 Call SUBTARGET_OVERRIDE_OPTIONS.
7745 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
7746 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
7747 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
7748 * config/xtensa/xtensa-protos.h (override_options): Remove.
7749 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
7750 (override_options): Rename to xtensa_option_override. Make static.
7751 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
7752
7753 2010-09-16 Richard Guenther <rguenther@suse.de>
7754
7755 PR tree-optimization/45623
7756 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
7757 (get_constraint_for_component_ref): If computing a constraint
7758 for the rhs handle type punning through unions.
7759 (get_constraint_for_address_of): Adjust.
7760 (get_constraint_for_1): Likewise.
7761 (get_constraint_for): Likewise.
7762 (get_constraint_for_rhs): New function.
7763 (do_structure_copy): Adjust.
7764 (make_constraint_to): Likewise.
7765 (handle_const_call): Likewise.
7766 (find_func_aliases): Likewise.
7767 (process_ipa_clobber): Likewise.
7768 (create_variable_info_for): Likewise.
7769
7770 2010-09-16 Ira Rosen <irar@il.ibm.com>
7771
7772 * tree-vectorizer.c: Fix documentation.
7773 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
7774 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
7775 is_pattern_stmt_p, is_loop_header_bb_p,
7776 stmt_vinfo_set_inside_of_loop_cost,
7777 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
7778 known_alignment_for_access_p): Likewise.
7779 * tree-vect-loop.c: Fix documentation.
7780 (vect_get_cost): Start function name from new line.
7781 * tree-vect-data-refs.c: Fix documentation.
7782 * tree-vect_stmts.c: Likewise.
7783 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
7784 (vectorizable_store): Free vec_oprnds if allocated.
7785 (vectorizable_condition): Initialize several variables to avoid
7786 warnings.
7787 * tree-vect-slp.c: Fix documentation.
7788
7789 2010-09-16 Richard Guenther <rguenther@suse.de>
7790
7791 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
7792 is TS_TRANSLATION_UNIT_DECL.
7793 (initialize_tree_contains_struct): Adjust.
7794 (all_translation_units): New global vector.
7795 (build_translation_unit_decl): New function.
7796 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
7797 (struct tree_translation_unit_decl): New.
7798 (all_translation_units): Declare.
7799 (union tree_node): Add translation_unit_decl member.
7800 (build_translation_unit_decl): Declare.
7801 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
7802 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
7803 New function.
7804 (pack_value_fields): Call it.
7805 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
7806 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
7807 (lto_output_tree_pointers): Call it.
7808 * lto-streamer-in.c (lto_input_tree_ref): Handle references
7809 to TRANSLATION_UNIT_DECL.
7810 (unpack_ts_translation_unit_decl_value_fields): New function.
7811 (unpack_value_fields): Call it.
7812 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
7813 (lto_input_tree_pointers): Call it.
7814 * lto-streamer.c (check_handled_ts_structures): Adjust.
7815 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
7816 * c-decl.c (all_translation_units): Remove.
7817 (pop_scope): Use build_translation_unit_decl.
7818 (collect_all_refs): Adjust.
7819 (for_each_global_decl): Likewise.
7820 (c_write_global_declarations): Likewise.
7821
7822 2010-09-16 Jakub Jelinek <jakub@redhat.com>
7823
7824 PR bootstrap/45686
7825 * fold-const.c (fold_checksum_tree): Change slot from const void **
7826 to void **, use CONST_CAST_TREE to store into *slot.
7827
7828 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
7829
7830 * config/i386/i386.md: Remove unneeded empty conditions and
7831 preparation statements from expanders.
7832 * config/i386/mmx.md: Ditto.
7833 * config/i386/sse.md: Ditto.
7834
7835 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
7836
7837 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
7838
7839 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
7840
7841 PR rtl-optimization/45593
7842 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
7843 insns that were in delay slots as stand-alone insns.
7844
7845 2010-09-15 Ian Lance Taylor <iant@google.com>
7846
7847 * incpath.c (remove_duplicates): If name is not a directory, issue
7848 a warning rather than an error.
7849
7850 2010-09-15 Martin Jambor <mjambor@suse.cz>
7851
7852 PR middle-end/45644
7853 * tree-sra.c (create_access): Check for bit-fields directly.
7854
7855 2010-09-15 Jakub Jelinek <jakub@redhat.com>
7856
7857 PR tree-optimization/45633
7858 * tree-cfg.c (verify_gimple_assign_binary): Allow
7859 MINUS_EXPR with lhs and rhs1 pointer vector and
7860 rhs2 sizetype vector.
7861 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
7862 or vector pointer use TER to optimize pointer subtraction.
7863
7864 2010-09-15 Jie Zhang <jie@codesourcery.com>
7865
7866 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
7867 fcmpd to fcmps.
7868
7869 2010-09-15 Ian Lance Taylor <iant@google.com>
7870
7871 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
7872
7873 2010-09-15 Ian Lance Taylor <iant@google.com>
7874
7875 * function.c (get_arg_pointer_save_area): Set
7876 arg_pointer_save_area_init to true.
7877
7878 2010-09-15 Martin Jambor <mjambor@suse.cz>
7879
7880 * tree-sra.c (generate_subtree_copies): Updated comment.
7881 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
7882 obtained from the statement iterator instead.
7883 (load_assign_lhs_subreplacements): Removed parameters lhs and
7884 right_offset, which is obtained from top_racc instead. Parameter lacc
7885 is now expected to be the root of the processed tree rather than root's
7886 first child. Updated all callers.
7887
7888 2010-09-15 Joseph Myers <joseph@codesourcery.com>
7889
7890 * config/pdp11/pdp11.c (register_move_cost): Rename to
7891 pdp11_register_move_cost.
7892 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
7893 pdp11_register_move_cost.
7894 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
7895 pdp11_register_move_cost instead of register_move_cost.
7896
7897 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
7898
7899 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
7900 pattern for vmovn. Expansion in case of non
7901 -mvectorize-with-neon-quad.
7902 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
7903 non- -mvectorize-with-neon-quad case.
7904 (move_lo_quad_<mode>): New expansion to vmov into low part.
7905 (move_hi_quad_<mode>): New expansion to vmov into high part.
7906 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
7907 (move_lo_quad_v4sf): Likewise.
7908 (move_lo_quad_v8hi): Likewise.
7909 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
7910 low part.
7911 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
7912 high part.
7913 * config/arm/iterators.md (ANY128): New mode iterator.
7914 (V_narrow_pack): New mode attribute.
7915 (V_HALF): Add attribute.
7916 (V_DOUBLE): Add attribute.
7917 (V_mode_nunits): Add attribute.
7918
7919 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
7920
7921 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
7922 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
7923
7924 2010-09-15 Olivier Hainque <hainque@adacore.com>
7925 Jose Ruiz <ruiz@adacore.com>
7926
7927 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
7928 * config/alpha/osf5-unwind.h: New file.
7929
7930 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7931
7932 PR bootstrap/45672
7933 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
7934 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7935 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7936
7937 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7938
7939 * c-lang.h (struct lang_type): Add variable_size GTY option.
7940
7941 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7942
7943 PR bootstrap/45672
7944 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7945
7946 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7947
7948 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
7949 result isn't used in memory address.
7950
7951 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7952
7953 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
7954 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
7955 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7956 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7957 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7958 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7959
7960 * target.def: Add units_per_simd_word to vectorize.
7961
7962 * targhooks.c (default_units_per_simd_word): New.
7963 * targhooks.h (default_units_per_simd_word): Likewise.
7964 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
7965 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7966 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
7967 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7968 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7969 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7970 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7971 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7972
7973 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
7974 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
7975
7976 * tree-vect-stmts.c: Don't include "tm_p.h".
7977 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
7978 with targetm.vectorize.units_per_simd_word.
7979
7980 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
7981
7982 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
7983
7984 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
7985 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7986
7987 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
7988 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
7989
7990 * doc/tm.texi: Regenerated.
7991
7992 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7993
7994 * tree-vect-stmts.c: Include "tm_p.h".
7995
7996 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
7997 out of RTX_CODE.
7998
7999 2010-09-14 Martin Jambor <mjambor@suse.cz>
8000
8001 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
8002 location of generated statement. Changed all callers.
8003 (build_ref_for_model): New parameter loc which used to set location of
8004 all generated expressions. Changed all callers.
8005 (generate_subtree_copies): Likewise.
8006 (init_subtree_with_zero): Likewise.
8007 (sra_modify_expr): Set locations of all generated statements and
8008 expressions to the location the original statement.
8009 (handle_unscalarized_data_in_subtree): Likewise.
8010 (load_assign_lhs_subreplacements): Likewise.
8011 (sra_modify_constructor_assign): Likewise.
8012 (sra_modify_assign): Likewise.
8013
8014 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
8015
8016 PR target/45277
8017 PR target/45363
8018 PR target/45407
8019 * doc/install.texi (sparc*-*-*): New section.
8020 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
8021
8022 2010-09-14 Jakub Jelinek <jakub@redhat.com>
8023
8024 PR middle-end/45567
8025 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
8026 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
8027 (expand_builtin): Adjust caller.
8028 (expand_builtin_unop): Only use subtarget if it has the right mode.
8029
8030 2010-09-14 Tristan Gingold <gingold@adacore.com>
8031
8032 * configure.ac (plugins): Fix typos.
8033 * configure: Regenerate.
8034
8035 2010-09-14 Jakub Jelinek <jakub@redhat.com>
8036
8037 PR debug/45660
8038 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
8039 gen_type_die for function/method return type.
8040
8041 2010-09-14 Ira Rosen <irar@il.ibm.com>
8042
8043 PR tree-optimization/45470
8044 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
8045 can throw an exception.
8046 * tree-vect-stmts.c (vectorizable_call): Likewise.
8047
8048 2010-09-14 DJ Delorie <dj@redhat.com>
8049
8050 PR target/44749
8051 * config/mep/mep-protos.h (mep_save_register_info,
8052 mep_reinit_regs, mep_init_regs): Declare.
8053
8054 * config/mep/mep.c: Move all target definitions to the end of the
8055 file to avoid the need for duplicate declarations.
8056 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
8057 (mep_reorg_erepeat): Remove unused variables.
8058 (mep_expand_builtin): Likewise.
8059
8060 * config/mep/mep-pragma.c: Don't include rtl.h.
8061 (INVALID_REGNUM): New.
8062 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
8063 functions.
8064 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
8065 Avoid enum/integer math.
8066
8067 2010-09-13 Joseph Myers <joseph@codesourcery.com>
8068
8069 PR target/44749
8070 * config/mep/t-mep (GTM_H): Add insn-constants.h.
8071 * config/mep/mep.c (mep_conditional_register_usage): Take no
8072 parameters.
8073 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
8074 prototype.
8075 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
8076 call to mep_conditional_register_usage.
8077
8078 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
8079
8080 PR debug/43937
8081 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
8082 the DECL as well.
8083
8084 2010-09-13 Jakub Jelinek <jakub@redhat.com>
8085
8086 PR rtl-optimization/45617
8087 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
8088 even if low N bits of X aren't known to be zero.
8089
8090 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
8091
8092 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
8093
8094 * config/i386/i386.c (initial_ix86_tune_features): Add
8095 X86_TUNE_VECTORIZE_DOUBLE.
8096 (ix86_units_per_simd_word): New.
8097
8098 * config/i386/i386.h (ix86_tune_indices): Add
8099 X86_TUNE_VECTORIZE_DOUBLE.
8100 (TARGET_VECTORIZE_DOUBLE): New.
8101 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
8102
8103 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
8104
8105 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
8106 (new_temp_expr_table): Allocate call_cnt vector.
8107 (free_temp_expr_table): Free it.
8108 (process_replaceable): Add call_cnt parm and set in vector.
8109 (find_replaceable_in_bb): Skip replacement if def/use span a call.
8110 (debug_ter): Dump call_cnt value, remove stderr uses.
8111
8112 2010-09-13 Jan Hubicka <jh@suse.cz>
8113
8114 * tree.c (build_zero_cst): New.
8115 * tree.h (build_zero_cst): Declare.
8116 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
8117 (get_base_constructor): Break out from ...
8118 (fold_const_aggregate_ref): Here; handle empty constructors.
8119
8120 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
8121
8122 * config/arm/arm.md: (define_attr "conds"): Update comment.
8123 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
8124 conds attribute to clob.
8125 (arm_sync_compare_and_swapsi): Likewise.
8126 (arm_sync_compare_and_swap<mode>): Likewise.
8127 (arm_sync_lock_test_and_setsi): Likewise.
8128 (arm_sync_lock_test_and_set<mode>): Likewise.
8129 (arm_sync_new_<sync_optab>si): Likewise.
8130 (arm_sync_new_nandsi): Likewise.
8131 (arm_sync_new_<sync_optab><mode>): Likewise.
8132 (arm_sync_new_nand<mode>): Likewise.
8133 (arm_sync_old_<sync_optab>si): Likewise.
8134 (arm_sync_old_nandsi): Likewise.
8135 (arm_sync_old_<sync_optab><mode>): Likewise.
8136 (arm_sync_old_nand<mode>): Likewise.
8137
8138 2010-09-13 Olivier Hainque <hainque@adacore.com>
8139
8140 * fwprop.c (forward_propagate_and_simplify): Only attach a
8141 REG_EQUAL note to an insn if the destination is a register.
8142 * gcse.c (try_replace_reg): Likewise.
8143
8144 2010-09-13 Richard Guenther <rguenther@suse.de>
8145
8146 PR tree-optimization/45611
8147 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
8148 (copy_ref_info): Likewise.
8149
8150 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
8151
8152 PR debug/45604
8153 PR debug/45419
8154 PR debug/45408
8155 * tree-pretty-print.c (dump_generic_node): Disregard top-level
8156 types of MEM_REF pointer types to the same type.
8157
8158 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
8159
8160 PR rtl-optimization/41087
8161 * ifcvt.c (noce_get_condition): Don't allow conditions with
8162 side-effects.
8163
8164 2010-09-12 Anatoly Sokolov <aesok@post.ru>
8165
8166 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8167 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
8168 * config/frv/frv.c (frv_register_move_cost): Make static. Change
8169 arguments type to reg_class_t. Add mode argument.
8170 (frv_memory_move_cost): New.
8171 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
8172
8173 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
8174
8175 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
8176 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
8177
8178 2010-09-10 Jan Hubicka <jh@suse.cz>
8179
8180 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
8181
8182 2010-09-10 Richard Guenther <rguenther@suse.de>
8183
8184 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
8185 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
8186 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
8187 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
8188 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
8189
8190 2010-09-10 Richard Guenther <rguenther@suse.de>
8191
8192 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
8193 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
8194 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
8195 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
8196
8197 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
8198
8199 PR middle-end/45634
8200 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
8201 of string folding is of integral type.
8202
8203 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
8204
8205 * doc/invoke.texi (-x): Fix typo.
8206
8207 2010-09-10 Richard Guenther <rguenther@suse.de>
8208
8209 PR debug/44115
8210 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
8211 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8212 Output DECL_DEBUG_EXPR.
8213 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8214 Input DECL_DEBUG_EXPR.
8215
8216 2010-09-10 Richard Guenther <rguenther@suse.de>
8217
8218 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
8219 (build_index_type): Implement in terms of build_range_type.
8220 (build_range_type): Do not allow NULL_TREE type, improve
8221 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
8222 if we didn't hash.
8223 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
8224 create a distinct copy of the type.
8225
8226 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
8227
8228 * configure: Regenerated.
8229 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
8230
8231 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8232
8233 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
8234 * config/arm/cortex-a9-neon.md: New and partially generated.
8235 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
8236
8237 2010-09-10 Richard Guenther <rguenther@suse.de>
8238
8239 * tree.h (build_index_2_type): Remove.
8240 * tree.c (build_index_2_type): Remove.
8241
8242 2010-09-10 Jakub Jelinek <jakub@redhat.com>
8243
8244 PR bootstrap/45630
8245 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
8246 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
8247 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
8248
8249 2010-09-10 Martin Jambor <mjambor@suse.cz>
8250
8251 PR tree-optimization/44972
8252 * tree-sra.c: Include toplev.h.
8253 (build_ref_for_offset): Entirely reimplemented.
8254 (build_ref_for_model): New function.
8255 (build_user_friendly_ref_for_offset): New function.
8256 (analyze_access_subtree): Removed build_ref_for_offset check.
8257 (propagate_subaccesses_across_link): Likewise.
8258 (create_artificial_child_access): Use
8259 build_user_friendly_ref_for_offset.
8260 (propagate_subaccesses_across_link): Likewise.
8261 (ref_expr_for_all_replacements_p): Removed.
8262 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
8263 (sra_modify_expr): Use build_ref_for_model.
8264 (load_assign_lhs_subreplacements): Likewise.
8265 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
8266 checks for return values of build_ref_for_offset.
8267 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
8268 build_ref_for_offset.
8269 * ipa-prop.h: Include gimple.h
8270 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
8271 (ipa_analyze_indirect_call_uses): Update comment.
8272 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
8273 (IPA_PROP_H): Likewise.
8274
8275 2010-09-10 Martin Jambor <mjambor@suse.cz>
8276
8277 PR tree-optimization/44972
8278 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
8279 calling build_ref_for_offset.
8280
8281 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8282
8283 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
8284 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
8285 * config/arm/arm-tune.md: Regenerate.
8286 * doc/invoke.texi (ARM Options): Document it.
8287
8288 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
8289
8290 * config/i386/i386.c: Include sched-int.h.
8291 (TARGET_SCHED_DISPATCH): Defined.
8292 (TARGET_SCHED_DISPATCH_DO): Defined.
8293 (DISPATCH_WINDOW_SIZE): Defined.
8294 (MAX_DISPATCH_WINDOWS): Defined.
8295 (MAX_INSN): Defined.
8296 (MAX_IMM): Defined.
8297 (MAX_IMM_SIZE): Defined.
8298 (MAX_IMM_32): Defined.
8299 (MAX_IMM_64): Defined.
8300 (MAX_LOAD): Defined.
8301 (MAX_STORE): Defined.
8302 (BIG): Defined.
8303 (dispatch_group): New.
8304 (num_allowable_groups): New.
8305 (group_name): New.
8306 (sched_insn_info_s): New.
8307 (dispatch_windows_s): New.
8308 (imm_info_s): New.
8309 (dispatch_window_list): New.
8310 (dispatch_window_list1): New.
8311 (get_mem_group): New.
8312 (is_cmp): New.
8313 (dispatch_violation): New.
8314 (is_branch): New.
8315 (is_prefetch): New.
8316 (init_window): New.
8317 (allocate_window): New.
8318 (init_dispatch_sched): New.
8319 (is_end_basic_block): New.
8320 (process_end_window): New.
8321 (allocate_next_window): New.
8322 (find_constant_1): New.
8323 (find_constant): New.
8324 (get_num_immediates): New.
8325 (has_immediate): New.
8326 (get_insn_path): New.
8327 (get_insn_group): New.
8328 (count_num_restricted): New.
8329 (fits_dispatch_window): New.
8330 (add_insn_window): New.
8331 (add_to_dispatch_window): New.
8332 (debug_dispatch_window_file): New.
8333 (debug_dispatch_window): New.
8334 (debug_insn_dispatch_info_file): New.
8335 (debug_ready_dispatch): New.
8336 (do_dispatch): New.
8337 (has_dispatch): New.
8338 * config/i386/i386.h (debug_ready_dispatch): Declared.
8339 (debug_dispatch_window): Declared.
8340 * config/i386/i386.opt (mdispatch-scheduler): New flag.
8341 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
8342 (TARGET_SCHED_DISPATCH_DO): New.
8343 * doc/tm.texi: Regererated.
8344 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
8345 ready_remove_first_dispatch
8346 (schedule_block): Call targetm.sched.dispatch and
8347 targetm.sched.dispatch_do.
8348 (sched_init): Call targetm.sched.dispatch and
8349 targetm.sched.dispatch_do.
8350 (ready_remove_first_dispatch): New.
8351 (number_in_ready): New.
8352 (get_ready_element): New.
8353 * hooks.c (hook_bool_rtx_int_false): New.
8354 (hook_void_rtx_int): New.
8355 * hooks.h (hook_bool_rtx_int_false): Declared.
8356 (hook_void_rtx_int): Declared.
8357 * sched-int.h (IS_DISPATCH_ON): Defined.
8358 (IS_CMP): Defined.
8359 (DISPATCH_VIOLATION): Defined.
8360 (FITS_DISPATCH_WINDOW): Defined.
8361 (DISPATCH_INIT): Defined.
8362 (ADD_TO_DISPATCH_WINDOW): Defined.
8363 (get_ready_element): Declared.
8364 (number_in_ready): Declared.
8365 * target.def (dispatch): Defined.
8366 (dispatch_do): Defined.
8367
8368 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
8369
8370 PR middle-end/45312
8371 * reload1.c (merge_assigned_reloads): Remove.
8372 (reload_as_needed): Don't call it.
8373
8374 2010-09-09 Anatoly Sokolov <aesok@post.ru>
8375
8376 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
8377 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8378 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8379
8380 2010-09-09 Matthias Klose <doko@ubuntu.com>
8381
8382 PR bootstrap/43847
8383 * configure.ac (--enable-plugin): Enhance for cross builds.
8384 * configure: Regenerate.
8385
8386 2010-09-09 Jan Hubicka <jh@suse.cz>
8387
8388 PR tree-optimization/45598
8389 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
8390 string folding is of integral type.
8391
8392 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8393
8394 * configure.ac (gnu_indirect_function): New test.
8395 * configure: Rebuilt.
8396 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
8397 * defaults.h (IFUNC_ASM_TYPE): Provide default.
8398
8399 * doc/extend.texi (Function Attributes): Document ifunc.
8400 * varasm.c (do_assemble_alias): Deal with ifuncs too.
8401
8402 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
8403
8404 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
8405 epilogue instruction move.
8406
8407 2010-09-09 Jan Hubicka <jh@suse.cz>
8408
8409 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
8410 command line to allow more partitions than input files.
8411
8412 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
8413
8414 PR middle-end/44554
8415 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
8416
8417 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
8418
8419 PR middle-end/40386
8420 * ira.c (pseudo_for_reload_consideration_p): Don't use
8421 flag_ira_share_spill_slots.
8422
8423 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8424
8425 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
8426 point zero operands that fit into a single GPR.
8427 (s390_preferred_reload_class): Ensure we only return general-purpose
8428 register classes.
8429 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
8430 floating-point zero operands into GPRs.
8431 ("*mov<mode>_64"): Likewise.
8432 ("mov<mode>"): Likewise using lhi.
8433
8434 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8435
8436 * config/s390/s390.c (s390_symref_operand_p): Return false for
8437 literal pool references.
8438 (s390_check_qrst_address): Update caller.
8439
8440 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
8441
8442 * config/i386/predicates.md (ext_register_operand): Check that
8443 SUBREG_REG is really a register before looking for REGNO.
8444 (reg_not_xmm0_operand): Handle SUBREGs correctly.
8445 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
8446
8447 2010-09-09 Jakub Jelinek <jakub@redhat.com>
8448
8449 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
8450 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
8451 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
8452 * print-rtl.c (print_rtx): Likewise.
8453 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8454 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
8455 for ADDR_EXPR with non-addressable object.
8456 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
8457 (struct dw_val_struct): Add v.val_decl_ref.
8458 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
8459 Handle DW_OP_GNU_implicit_pointer.
8460 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
8461 (get_ref_die_offset_label): New function.
8462 (implicit_ptr_descriptor): New function.
8463 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
8464 (loc_descriptor): Likewise.
8465 (gen_variable_die): Put even definitions into decl_die_table.
8466 (resolve_addr_in_expr): Resolve still unresolved
8467 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
8468 return false.
8469 (dwarf2out_finish): Call output_location_lists after outputting
8470 .debug_info and .debug_abbrev instead of before.
8471
8472 2010-09-09 Roland McGrath <roland@redhat.com>
8473
8474 * dwarf2out.c (DWARF_REF_SIZE): Define.
8475 (size_of_loc_descr): Use it for DW_OP_call_ref.
8476
8477 2010-09-09 Alan Modra <amodra@gmail.com>
8478
8479 * doc/invoke.text: Reinstate mcmodel=medium.
8480 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8481 CMODEL_MEDIUM as default.
8482 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
8483 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
8484 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
8485 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
8486
8487 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8488
8489 PR target/45250
8490 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
8491 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
8492 (builtin_longjmp): Likewise.
8493 (allocate_stack): Use hard_frame_pointer_rtx instead of
8494 frame_pointer_rtx.
8495 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
8496 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
8497 (pa_can_eliminate): Likewise.
8498 (TARGET_INTERNAL_ARG_POINTER): Define.
8499 (TARGET_CAN_ELIMINATE): Define.
8500 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
8501 pointer.
8502 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
8503 (pa_internal_arg_pointer, pa_can_eliminate,
8504 pa_initial_elimination_offset): New.
8505 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
8506 (HARD_FRAME_POINTER_REGNUM): Set to register three.
8507 (INITIAL_FRAME_POINTER_OFFSET): Delete.
8508 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
8509 Define.
8510 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
8511 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
8512 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
8513 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
8514 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
8515 new soft frame pointer.
8516 * config/pa/pa64-regs.h: Likewise.
8517
8518 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
8519
8520 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
8521 numerical constant.
8522 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
8523
8524 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
8525
8526 PR debug/45531
8527 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
8528
8529 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
8530
8531 PR debug/45419
8532 PR debug/45408
8533 * tree-pretty-print.c (dump_generic_node): Disregard top-level
8534 qualifiers in otherwise equal MEM_REF pointer types.
8535 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
8536 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
8537
8538 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8539
8540 PR target/44392
8541 * config/arm/arm.md (bswapsi2): Handle condition correctly
8542 for armv6 and optimize_size.
8543
8544 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8545
8546 PR other/18555
8547 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
8548
8549 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
8550
8551 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
8552 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
8553 ix86_expand_strlen, legitimate_pic_address_disp_p,
8554 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
8555 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
8556 ix86_check_movabs, ix86_secondary_memory_needed): Change function
8557 prototype to bool.
8558 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
8559 return_in_memory_ms_64, ix86_check_movabs,
8560 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
8561 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
8562 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
8563 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
8564 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
8565 ix86_secondary_memory_needed): Change to bool. Return
8566 "true" and "false" values.
8567 * config/i386/i386.md: Return "true" and "false" values.
8568
8569 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8570
8571 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8572 run_expensive_tests.
8573
8574 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8575
8576 * toplev.c (output_stack_usage): Use lbasename instead of basename.
8577
8578 2010-09-08 Martin Jambor <mjambor@suse.cz>
8579
8580 PR other/45443
8581 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
8582 at -O3.
8583
8584 2010-09-08 Richard Guenther <rguenther@suse.de>
8585
8586 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
8587 (visit): Adjust.
8588 (iterative_hash_gimple_type): Likewise.
8589 (gimple_type_hash): Likewise.
8590 (gimple_register_type): Likewise.
8591 (print_gimple_types_stats): Likewise.
8592 (free_gimple_type_tables): Likewise.
8593
8594 2010-09-08 Michael Matz <matz@suse.de>
8595
8596 PR tree-optimization/43430
8597 * tree-vect-stmts.c (vectorizable_condition): Support multiple
8598 copies for conditional statements if it's not part of a reduction.
8599
8600 2010-09-08 Michael Matz <matz@suse.de>
8601
8602 PR tree-optimization/33244
8603 * tree-ssa-sink.c (statement_sink_location): Don't sink into
8604 empty loop latches.
8605
8606 2010-09-08 Richard Guenther <rguenther@suse.de>
8607
8608 PR tree-optimization/45578
8609 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
8610 Be more careful when transfering alignment information to
8611 the new induction variable.
8612 (copy_ref_info): Likewise.
8613
8614 2010-09-08 Richard Guenther <rguenther@suse.de>
8615
8616 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
8617 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
8618
8619 2010-09-08 Arnaud Charlet <charlet@adacore.com>
8620
8621 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
8622 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
8623
8624 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
8625
8626 PR doc/45587
8627 * doc/md.texi: Fixed modes on several standard pattern names.
8628
8629 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
8630
8631 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
8632 (ashl<mode>3): ...this.
8633 (loongson_psra<V_suffix>): Rename to...
8634 (ashr<mode>3): ...this.
8635 (loongson_psrl<V_suffix>): Rename to...
8636 (lshr<mode>3): ...this.
8637 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
8638 (CODE_FOR_loongson_psllw): Define.
8639 (CODE_FOR_loongson_psrlh): Define.
8640 (CODE_FOR_loongson_psrlw): Define.
8641 (CODE_FOR_loongson_psrah): Define.
8642 (CODE_FOR_loongson_psraw): Define.
8643
8644 2010-09-07 Richard Henderson <rth@redhat.com>
8645
8646 * tree-vect-data-refs.c: Include tm_p.h.
8647 * Makefile.in (tree-vect-data-refs.o): Update deps.
8648 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
8649 Move delarations outside #ifdef RTX_CODE.
8650
8651 2010-09-07 Richard Henderson <rth@redhat.com>
8652
8653 * final.c (rest_of_handle_final): Unconditionally do
8654 output_function_exception_table before assemble_end_function.
8655
8656 2010-09-07 Jan Hubicka <jh@suse.cz>
8657
8658 * tree-inline.c (tree_inlinable_function_p): Do not test
8659 DECL_REPLACEABLE_P.
8660 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
8661 update_callee_keys, cgraph_decide_inlining): Test function availability.
8662 * cif-code.def (OVERWRITABLE): New code.
8663
8664 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
8665 Jack Howarth <howarth@bromo.med.uc.edu>
8666
8667 PR target/36502
8668 PR target/42313
8669 PR target/44651
8670 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
8671 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
8672 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
8673 MAX macro.
8674
8675 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
8676
8677 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
8678 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
8679
8680 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
8681
8682 * config.gcc: Don't append t-android for Android targets.
8683
8684 * config/t-android: Removed.
8685
8686 2010-09-07 Richard Henderson <rth@redhat.com>
8687
8688 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
8689 * doc/tm.texi.in: Add doc marker.
8690 * doc/tm.texi: Rebuild.
8691 * except.c (switch_to_exception_section): Always build.
8692 (output_one_function_exception_table): Move section switch,
8693 personality output, and label output ...
8694 (output_function_exception_table): ... here. Use the new
8695 personality hook.
8696
8697 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
8698 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
8699 TARGET_ASM_INIT_SECTIONS): New.
8700 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
8701 make static.
8702 (TARGET_ASM_UNWIND_EMIT): Update to match.
8703 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
8704
8705 * config/arm/arm.c (arm_asm_emit_except_personality): New.
8706 (arm_asm_init_sections): New.
8707 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
8708
8709 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8710
8711 * config/arm/arm.md: Remove unused variable.
8712
8713 2010-09-07 Anatoly Sokolov <aesok@post.ru>
8714
8715 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8716 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
8717 (m32r_memory_move_cost): New function.
8718
8719 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
8720
8721 * config.gcc: Append t-android for Android targets.
8722
8723 * config/t-android: New.
8724
8725 2010-09-07 Richard Henderson <rth@redhat.com>
8726
8727 * target.def (unwind_emit_before_insn): New hook.
8728 * doc/tm.texi.in: Add @hook marker for it.
8729 * doc/tm.texi: Rebuild.
8730 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
8731
8732 2010-09-07 Martin Jambor <mjambor@suse.cz>
8733
8734 PR fortran/43665
8735 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
8736 are any type attributes.
8737
8738 2010-09-07 Jan Hubicka <jh@suse.cz>
8739
8740 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
8741 array_ref_low_bound in string access folding.
8742
8743 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
8744
8745 PR target/45206
8746 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
8747 eh_return fixup sequence.
8748
8749 2010-09-07 Jan Hubicka <jh@suse.cz>
8750
8751 * gimple-fold.c (maybe_fold_reference): Verify that operand is
8752 gimple_min_invariant.
8753
8754 2010-09-07 Richard Guenther <rguenther@suse.de>
8755
8756 PR middle-end/45569
8757 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
8758 nor CONSTRUCTOR can trap.
8759 * tree-complex.c (update_complex_assignment): Update EH info.
8760
8761 2010-09-07 Richard Guenther <rguenther@suse.de>
8762
8763 PR middle-end/45569
8764 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
8765 * passes.c (execute_function_todo): Do not verify anything if
8766 we saw errors.
8767
8768 2010-09-07 Richard Guenther <rguenther@suse.de>
8769
8770 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
8771
8772 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
8773
8774 PR target/43137
8775 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
8776 New define_mode_attrs.
8777 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
8778 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
8779 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
8780 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
8781 Remove pool_range attribute.
8782 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
8783 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
8784 pool_range and neg_pool_range attributes.
8785 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
8786 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
8787 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
8788
8789 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
8790
8791 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
8792 check glibc.
8793
8794 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
8795
8796 PR target/22152
8797 * config/i386/mmx.md (*mov<mode>_internal_rex64,
8798 *mov<mode>_internal_avx, *mov<mode>_internal,
8799 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
8800 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
8801
8802 2010-09-06 Mark Mitchell <mark@codesourcery.com>
8803
8804 * c-typeck.c (do_warn_double_promotion): Remove.
8805 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
8806 Objective-C++ too.
8807
8808 2010-09-06 Anatoly Sokolov <aesok@post.ru>
8809
8810 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
8811 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
8812 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
8813 argument type to reg_class_t. Change result type to bool.
8814 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8815
8816 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
8817
8818 PR libobjc/19850
8819 * gthr-posix.h (__gthread_objc_thread_detach): Use
8820 _objc_thread_attribs when detaching a thread.
8821 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
8822
8823 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
8824
8825 PR target/45524
8826 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
8827 * configure: Regenerated.
8828
8829 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8830
8831 * combine.c (try_combine): Set subst_low_luid to i0.
8832
8833 2010-09-06 Richard Guenther <rguenther@suse.de>
8834
8835 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
8836 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
8837 (build_aligned_type): Declare.
8838 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
8839 (check_aligned_type): New function.
8840 (build_aligned_type): Likewise.
8841 * expr.c (expand_assignment): Handle misaligned stores via
8842 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
8843 (expand_expr_real_1): Likewise.
8844 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
8845 * tree-vect-stmts.c (vectorizable_store): Do not build
8846 MISALIGNED_INDIRECT_REF but initialize alignment information.
8847 (vectorizable_load): Likewise.
8848 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
8849 handling.
8850 * cfgexpand.c (expand_debug_expr): Likewise.
8851 * dwarf2out.c (loc_list_from_tree): Likewise.
8852 * fold-const.c (maybe_lvalue_p): Likewise.
8853 (operand_equal_p): Likewise.
8854 (build_fold_addr_expr_with_type_loc): Likewise.
8855 * gimplify.c (gimplify_addr_expr): Likewise.
8856 (gimplify_expr): Likewise.
8857 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8858 (verify_gimple_assign_single): Likewise.
8859 * tree-dump.c (dequeue_and_dump): Likewise.
8860 (tree_could_trap_p): Likewise.
8861 * tree-predcom.c (ref_at_iteration): Likewise.
8862 * tree-pretty-print.c (dump_generic_node): Likewise.
8863 (op_code_prio): Likewise.
8864 (op_symbol_code): Likewise.
8865 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8866 * tree-ssa-loop-im.c (for_each_index): Likewise.
8867 (gen_lsm_tmp_name): Likewise.
8868 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
8869 (find_interesting_uses_address): Likewise.
8870 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8871 * tree-ssa-operands.c (get_expr_operands): Likewise.
8872 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8873 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8874 (ao_ref_init_from_vn_reference): Likewise.
8875 * tree.c (staticp): Likewise.
8876 (build1_stat): Likewise.
8877 (reference_alias_ptr_type): Likewise.
8878 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8879 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
8880 MISALIGNED_INDIRECT_REF handling.
8881
8882 2010-09-06 Richard Guenther <rguenther@suse.de>
8883
8884 PR tree-optimization/45534
8885 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
8886 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
8887 on the target.
8888 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
8889 valid on the target.
8890
8891 2010-09-06 Andreas Schwab <schwab@redhat.com>
8892
8893 * configure.ac: Quote argument of AC_MSG_WARN.
8894 * configure: Regenerate.
8895
8896 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
8897
8898 * sel-sched.c (move_cond_jump): Correct arguments to
8899 maybe_tidy_empty_bb.
8900 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
8901
8902 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
8903
8904 PR rtl-optimization/44919
8905 * sel-sched.c (move_cond_jump): Remove assert, check that
8906 the several blocks case can only happen with mutually exclusive
8907 insns instead. Rewrite the movement code to support moving through
8908 several basic blocks.
8909
8910 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
8911
8912 * config/i386/i386.md (iptrsize): New mode attribute.
8913 (tp_seg): Ditto.
8914 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
8915 mode iterator.
8916 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
8917 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
8918 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
8919 (stack_tls_protect_set_<mode>): Ditto from
8920 stack_tls_protect_set_{si,di}. Use %@ to output segment register
8921 of thread base pointer load.
8922 (stack_tls_protect_test_<mode>): Ditto from
8923 stack_tls_protect_test_{si,di}. Use %@ to output segment register
8924 of thread base pointer load.
8925 (stack_protect_set): Rewrite using indirect functions.
8926 (stack_protect_test): Ditto.
8927 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
8928 (ix86_print_operand): Handle '@'.
8929
8930 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
8931
8932 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
8933 MINUS_EXPR.
8934
8935 2010-09-05 Mark Mitchell <mark@codesourcery.com>
8936
8937 * doc/invoke.texi: Document -Wdouble-promotion.
8938 * c-typeck.c (convert_arguments): Check for implicit conversions
8939 from float to double.
8940 (do_warn_double_promotion): New function.
8941 (build_conditional_expr): Use it.
8942 (build_binary_op): Likewise.
8943
8944 2010-09-05 Richard Guenther <rguenther@suse.de>
8945
8946 PR tree-optimization/45535
8947 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
8948 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
8949 dereferencing it.
8950 (indirect_refs_may_alias_p): Likewise.
8951
8952 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
8953
8954 * config/sh/sh.c (sh_option_override): Make static.
8955 Adjust comments. Declare.
8956 (sh_function_value_regno_p): Likewise.
8957 (sh_register_move_cost): Modify the arguments, make static.
8958 Adjust comments. Declare.
8959 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
8960 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8961 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
8962 REGISTER_MOVE_COST): Delete.
8963 * config/sh/sh-protos.h (sh_override_options): Delete.
8964 (sh_register_move_cost): Delete.
8965 (sh_function_value_regno_p): Delete.
8966
8967 2010-09-04 Anatoly Sokolov <aesok@post.ru>
8968
8969 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
8970 m32r_function_value_regno_p): New functions.
8971 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8972 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
8973 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
8974 FUNCTION_VALUE_REGNO_P): Remove.
8975
8976 2010-09-04 Jan Hubicka <jh@suse.cz>
8977
8978 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
8979 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
8980 fold_read_from_constant_string.
8981
8982 * gimple.h (canonicalize_constructor_val): Declare.
8983 * gimple-fold.c (canonicalize_constructor_val): New function.
8984 (get_symbol_constant_value):Use it.
8985 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
8986
8987 2010-09-04 Jan Hubicka <jh@suse.cz>
8988
8989 * tree-switch-conversion.c (build_one_array): Set constructor to be
8990 static.
8991 * varpool.c (varpool_finalize_decl): Compute const_value_known.
8992
8993 2010-09-04 Richard Guenther <rguenther@suse.de>
8994
8995 PR bootstrap/45519
8996 * tree-flow.h (force_gimple_operand_1): Declare.
8997 (force_gimple_operand_gsi_1): Likewise.
8998 * gimplify.c (force_gimple_operand_1): New worker taking a
8999 gimple predicate for ...
9000 (force_gimple_operand): ... which now wraps it.
9001 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
9002 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
9003 last change.
9004 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
9005 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
9006 (create_mem_ref): Likewise.
9007
9008 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
9009
9010 * config/i386/predicates.md (sse_reg_operand): New predicate.
9011 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
9012 predicate for operand 1.
9013 (XFmode push splitter): Use fp_register_operand predicate
9014 for operand 1.
9015 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
9016 (SF-DF float_extend push splitter): Add reload_completed insn
9017 predicate.
9018 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
9019 MODEF mode macro. Add reload_completed insn predicate.
9020
9021 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
9022
9023 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
9024 (struct df_extract_ref): Remove.
9025 (union df_ref_d): Remove extract_ref member.
9026 (df_ref_create): Remove last three arguments.
9027 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
9028 * df-scan.c (df_ref_record): Remove last three arguments, do not
9029 pass them to df_ref_create_structure.
9030 (df_uses_record): Remove first and last three arguments. Replace
9031 first argument with DF_REF_REGULAR, adjust calls to remove the
9032 width, offset and mode. Always call recursively on the second
9033 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
9034 (df_ref_create_structure): Remove first argument.
9035 (struct df_scan_problem_data): Remove ref_extract_pool.
9036 (df_scan_free_internal): Do not free it.
9037 (df_scan_alloc): Do not allocate it.
9038 (df_ref_create): Remove last three arguments, do not pass them to
9039 df_ref_create_structure.
9040 (df_free_ref): Remove DF_REF_EXTRACT case.
9041 (df_notes_rescan): Adjust call to df_uses_record.
9042 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
9043 Remove DF_REF_EXTRACT case.
9044 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
9045 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
9046 and SUBREG definitions.
9047 (df_get_conditional_uses): Remove references to width/offset/mode,
9048 adjust call to df_ref_create_structure.
9049 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9050 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
9051 calls to df_uses_record and df_ref_record.
9052 * fwprop.c (update_df): Remove references to width/offset/mode,
9053 adjust call to df_ref_create.
9054
9055 2010-09-03 Jan Hubicka <jh@suse.cz>
9056
9057 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
9058 (build_cdtor_fns): Update use of build_cdtor.
9059
9060 2010-09-03 Joseph Myers <joseph@codesourcery.com>
9061
9062 * doc/options.texi (SeparateAlias): Document.
9063 * opt-functions.awk (switch_flags): Handle SeparateAlias.
9064 * opth-gen.awk: Generate enumeration names for options marked
9065 SeparateAlias, but not for those marked Ignore.
9066 * opts-common.c (generate_canonical_option): Don't output separate
9067 argument for options marked CL_SEPARATE_ALIAS.
9068 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
9069 * opts.h (CL_SEPARATE_ALIAS): New.
9070 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
9071 CL_COMMON): Adjust definitions.
9072 * config/i386/darwin.opt, config/mips/sde.opt: New.
9073 * common.opt (fdump-final-insns): New.
9074 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9075 i386/darwin.opt.
9076 (mips*-sde-elf*): Add mips/sde.opt.
9077 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
9078 -mno-data-in-code and -mcode-xonly here.
9079 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
9080 * gcc.c (option_map): Add "j" to --dump entry.
9081 (translate_options): Don't translate -d to -foutput-class-dir= here.
9082
9083 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
9084
9085 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
9086 DR_IS_WRITE.
9087 (compute_all_dependences): Same.
9088 (create_rdg_edge_for_ddr): Same.
9089 * tree-data-ref.h (DR_IS_WRITE): New.
9090 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
9091 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
9092 (write_memrefs_written_at_least_once): Same.
9093 * tree-predcom.c (suitable_component_p): Same.
9094 (determine_roots_comp): Same.
9095 (execute_load_motion): Same.
9096 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
9097 (vect_enhance_data_refs_alignment): Same.
9098 (vect_analyze_group_access): Same.
9099
9100 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
9101
9102 PR testsuite/42843
9103 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
9104 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
9105
9106 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
9107
9108 * dwarf2out.c (file scope): Remove #if0'd code.
9109 (gen_subprogram_die): Same.
9110
9111 2010-09-03 Jakub Jelinek <jakub@redhat.com>
9112
9113 PR middle-end/45484
9114 * dwarf2out.c (flush_queued_reg_saves): Rename to...
9115 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
9116 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
9117 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
9118 * config/i386/i386.c (output_set_got): Call it.
9119
9120 2010-09-03 Michael Matz <matz@suse.de>
9121
9122 PR middle-end/45415
9123 * tree-sra.c (sra_modify_assign): If we modify the statement,
9124 say so.
9125
9126 * tree-ssa.c (verify_ssa): Check number of operands and links
9127 per statement to agree.
9128
9129 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
9130 Iain Sandoe <iains@gcc.gnu.org>
9131
9132 PR target/45476
9133 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
9134 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
9135 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
9136
9137 2010-09-03 Richard Guenther <rguenther@suse.de>
9138
9139 * lto-streamer-out.c (output_function): Output function
9140 start and end loci.
9141 * lto-streamer-in.c (input_function): Input function start
9142 and end loci.
9143
9144 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9145
9146 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
9147 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
9148 * configure: Regenerate.
9149 * aclocal.m4: Regenerate.
9150
9151 2010-09-03 Jan Hubicka <jh@suse.cz>
9152
9153 PR lto/44812
9154 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
9155 on functions/variables in other partition.
9156
9157 2010-09-03 Jan Hubicka <jh@suse.cz>
9158
9159 * cgraph.h (struct varpool_node): Add const_value_known.
9160 (varpool_decide_const_value_known): Declare.
9161 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
9162 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
9163 (input_varpool_node): Restore const_value_known.
9164 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
9165 initializer folding.
9166 * ipa.c (ipa_discover_readonly_nonaddressable_var,
9167 function_and_variable_visibility): Compute const_value_known.
9168 * gimple-fold.c (get_symbol_constant_value): Use varpool for
9169 initializer folding.
9170 * varpool.c (varpool_decide_const_value_known): New function.
9171
9172 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
9173
9174 * config/i386/i386.md: Remove empty preparation statements
9175 from splitters.
9176
9177 2010-09-03 Jan Hubicka <jh@suse.cz>
9178
9179 * passes.c (rest_of_decl_compilation): Do not add local vars into
9180 varpool.
9181 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
9182 static or extern vars are in varpool.
9183 (varpool_finalize_decl): Sanity check that only static vars are
9184 finalized.
9185
9186 2010-09-03 Jakub Jelinek <jakub@redhat.com>
9187
9188 PR debug/45500
9189 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
9190 not just generic vectors with BLKmode.
9191
9192 2010-09-03 Richard Guenther <rguenther@suse.de>
9193
9194 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
9195 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
9196 * tree.h (TMR_SYMBOL): Remove.
9197 (TMR_BASE, TMR_OFFSET): Adjust.
9198 (TMR_INDEX2): New.
9199 * alias.c (ao_ref_from_mem): Use TMR_BASE.
9200 * builtins.c (get_object_alignment): Merge TMR_BASE and
9201 TMR_SYMBOL handling.
9202 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
9203 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
9204 handling. Also allow TARGET_MEM_REF as base address.
9205 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
9206 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
9207 base. Gimplify TMR_INDEX2.
9208 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
9209 * tree-dfa.c (get_ref_base_and_extent): Likewise.
9210 (get_addr_base_and_unit_offset): Likewise.
9211 * tree-eh.c (tree_could_trap_p): Likewise.
9212 * tree-pretty-print.c (dump_generic_node): Likewise.
9213 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
9214 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
9215 base to index2.
9216 (get_address_description): Reconstruct addres description
9217 from merged TMR_BASE and TMR_INDEX2.
9218 (maybe_fold_tmr): Fold propagated addresses.
9219 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
9220 MEM_REF and TARGET_MEM_REF paths.
9221 (indirect_refs_may_alias_p): Likewise.
9222 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
9223 instead of TMR_SYMBOL.
9224 * tree-ssa-operands.c (get_tmr_operands): Simplify.
9225 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
9226 according to changes ...
9227 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
9228 Split TARGET_MEM_REF into two fields plus the base.
9229 * tree.c (mem_ref_offset): Simplify.
9230 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
9231 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
9232 Strip NOPs when folding MEM_REF addresses.
9233 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
9234 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
9235 (fold_gimple_assign): ... not here.
9236
9237 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
9238
9239 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
9240 * config/mips/mips.c (mips_shift_truncation_mask): New function.
9241 (TARGET_SHIFT_TRUNCATION_MASK): Define.
9242
9243 2010-09-02 Richard Henderson <rth@redhat.com>
9244
9245 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
9246 instead of readelf in the test.
9247 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
9248 in the .debug_frame section for coff targets.
9249 * configure: Rebuild.
9250
9251 2010-09-02 Anatoly Sokolov <aesok@post.ru>
9252
9253 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
9254 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
9255 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9256 (m32c_class_likely_spilled_p): Make static. Change argument type to
9257 reg_class_t. Change result type to bool.
9258
9259 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
9260
9261 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
9262 to convert (double)(long) into a single FRIZ instruction or not
9263 when -ffast-math is used.
9264
9265 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
9266 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
9267 or FRIZ instruction if -ffast-math.
9268 * config/rs6000/rs6000.md (friz): Ditto.
9269
9270 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
9271
9272 2010-09-02 Joseph Myers <joseph@codesourcery.com>
9273
9274 * opth-gen.awk (quote, comma): Remove unused variables.
9275
9276 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
9277
9278 * arm.c (arm_override_options): Correct fall-back code to use
9279 SUBTARGET_CPU_DEFAULT.
9280
9281 2010-09-02 Julian Brown <julian@codesourcery.com>
9282
9283 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
9284 unspecs.
9285 (vcond<mode>, vcondu<mode>): New expanders.
9286 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
9287 comparisons with zero.
9288 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
9289 * config/arm/constraints.md (Dz): New constraint.
9290
9291 2010-09-02 Anatoly Sokolov <aesok@post.ru>
9292
9293 * target.def (class_likely_spilled_p): New hook.
9294 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
9295 * doc/tm.texi: Regenerate.
9296 * targhooks.c (default_class_likely_spilled_p): New function.
9297 * targhooks.h (default_class_likely_spilled_p): Declare.
9298 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
9299 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
9300 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
9301 Use fixed_reg_set instead of fixed_regs.
9302 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
9303 * calls.c (avoid_likely_spilled_reg): Ditto.
9304 * ira-conflicts.c (ira_build_conflicts): Ditto.
9305 * ira.c (update_equiv_regs): Ditto.
9306 * mode-switching.c (create_pre_exit): Ditto.
9307 * regmove.c (find_matches): Ditto.
9308 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
9309 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
9310 (small_register_class_p): New inline function.
9311 (push_secondary_reload, find_reusable_reload, find_reloads): Use
9312 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
9313
9314 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
9315 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
9316 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9317
9318 2010-09-02 Richard Guenther <rguenther@suse.de>
9319
9320 PR tree-optimization/44937
9321 PR tree-optimization/45412
9322 * ipa-split.c (split_function): Properly remove PHI nodes.
9323
9324 2010-09-02 Joseph Myers <joseph@codesourcery.com>
9325
9326 * opts.h (struct cl_option): Add warn_message field.
9327 (struct cl_decoded_option): Add warn_message field.
9328 * doc/options.texi (Ignore, Warn): Document.
9329 * opt-functions.awk (needs_state_p): Don't consider aliases or
9330 ignored options to need state saved.
9331 * optc-gen.awk: Handle Warn and Ignore.
9332 * opth-gen.awk: Output OPT_SPECIAL_ignore.
9333 * opts-common.c (decode_cmdline_option): Set warn_message field.
9334 Handle ignored options.
9335 (decode_cmdline_options_to_array, generate_option,
9336 generate_option_input_file): Set warn_message field.
9337 (read_cmdline_option): Generate warnings from warn_message field.
9338 Handle ignored options.
9339 * common.opt (Wunreachable-code, fargument-alias,
9340 fargument-noalias, fargument-noalias-global,
9341 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
9342 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
9343 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
9344 ftree-salias): Mark Ignore.
9345 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
9346 -mintel-syntax and -mno-intel-syntax here.
9347 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
9348 using Warn.
9349 * opts.c (common_handle_option): Don't handle options marked as
9350 ignored.
9351 (enable_warning_as_error): Handle ignored options.
9352
9353 2010-09-02 Joseph Myers <joseph@codesourcery.com>
9354
9355 PR driver/44076
9356 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
9357 alias_target fields.
9358 * opt-functions.awk (opt_sanitized_name): Don't handle
9359 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
9360 * optc-gen.awk: Generate alias fields.
9361 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
9362 Don't generate such constants for aliases.
9363 * opts-common.c (generate_canonical_option): New.
9364 (decode_cmdline_option): Handle aliases. Use
9365 generate_canonical_option for known options instead of copying the
9366 input option text.
9367 * doc/options.texi (Alias): Document.
9368 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
9369 fstack-check, specs): Mark as aliases.
9370 * gcc.c (driver_handle_option): Canonicalize -L options to joined
9371 arguments.
9372 (driver_handle_option): Don't handle OPT_specs.
9373 * opts.c (common_handle_option): Don't handle options marked as
9374 aliases.
9375 (enable_warning_as_error): Handle aliases.
9376 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
9377 OPT_Wlarger_than_eq.
9378 * tree-optimize.c (tree_rest_of_compilation): Use
9379 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
9380
9381 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
9382
9383 * config/i386/i386.md (nonmemory_operand): New mode attribute.
9384 (push memory peephole2): Macroize peepholes using SWI mode iterator.
9385 (move immediate to memory peephole2): Macroize peepholes using
9386 SWI124 mode iterator.
9387 (non-pairable NOT peephole2): Macroize peepholes using SWI124
9388 mode iterator.
9389 (simple lea add peephole2): Macroize peepholes using SWI48
9390 mode iterator.
9391 (simple lea mult peephole2): Ditto.
9392 (imul by 3,5,9 to lea peephole2): Ditto.
9393 (mov $-1, reg peephole2): Macroize peepholes using SWI248
9394 mode iterator.
9395 (imul $32bit_imm,mem,reg peephole2): Ditto.
9396 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
9397
9398 2010-09-02 Ian Bolton <ian.bolton@arm.com>
9399
9400 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
9401
9402 2010-09-02 Olivier Hainque <hainque@adacore.com>
9403
9404 PR middle-end/44763
9405 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
9406 (allocno_priority_compare_func): Use it instead of a straight
9407 difference computation over priorities.
9408
9409 2010-09-02 Andi Kleen <ak@linux.intel.com>
9410
9411 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
9412
9413 2010-09-02 Ira Rosen <irar@il.ibm.com>
9414
9415 * tree-vectorizer.h (get_later_stmt): New function.
9416 (vect_analyze_data_ref_dependences): Add argument.
9417 * tree-vect-loop.c (vect_analyze_loop): Update call to
9418 vect_analyze_data_ref_dependences.
9419 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
9420 New function.
9421 (vect_analyze_data_ref_dependence): Add argument for basic block
9422 dependencies. Check dependencies in basic block vectorization.
9423 (vect_analyze_data_ref_dependences): Add argument and update call to
9424 vect_analyze_data_ref_dependences.
9425 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
9426 (vect_bb_vectorizable_with_dependencies): New.
9427 (vect_slp_analyze_bb): Check dependencies in basic block.
9428 (vect_schedule_slp_instance): Insert stores before the last store in
9429 SLP instance.
9430
9431 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
9432
9433 PR target/45476
9434 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
9435 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
9436
9437 2010-09-01 Jakub Jelinek <jakub@redhat.com>
9438
9439 PR middle-end/45458
9440 * bb-reorder.c (add_labels_and_missing_jumps): Treat
9441 bbs ending with throwing insns like blocks ending with a call.
9442 (fix_up_fall_thru_edges): Likewise.
9443
9444 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
9445
9446 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
9447 (m32c_function_arg_advance): Delete.
9448 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9449 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
9450 comments. Take a const_tree and a bool. Declare.
9451 (m32c_function_arg_advance): Likewise.
9452 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9453
9454 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
9455
9456 PR target/45476
9457 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
9458 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
9459 * config/i386/mingw32.h: ... here.
9460
9461 2010-09-01 Andi Kleen <ak@linux.intel.com>
9462
9463 PR lto/45475
9464 * lto-streamer-in.c (lto_input_ts_target_option): Add.
9465 (lto_input_tree_pointers): Call lto_input_ts_target_option.
9466 * lto-streamer-out (lto_output_ts_target_option): Add.
9467 (lto_output_tree_pointers): Call lto_output_ts_target_option.
9468
9469 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
9470
9471 PR/target 45452
9472 * config/i386/cygwin.h: Change order of specified import libraries.
9473 * config/i386/mingw32.h: Likewise.
9474 * config/i386/t-cygwin: Likewise.
9475 * config/i386/t-mingw32: Likewise.
9476 * config/i386/t-mingw-w32: Likewise.
9477 * config/i386/t-mingw-w64: Likewise.
9478
9479 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9480
9481 * config/arm/neon-schedgen.ml (core): New type.
9482 (allCores): List of supported cores.
9483 (availability_table): Add supported cores.
9484 (collate_bypasses): Accept core as a parameter.
9485 (worst_case_latencies_and_bypasses): Accept core as a parameter.
9486 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
9487 and coreStr to get tune attribute and prefix for functional units.
9488 (emit_bypasses): Accept core name and use it.
9489 (calculate_per_core_availability_table): New.
9490 (filter_core): New.
9491 (calculate_core_availability_table): New.
9492 (main): Use calculate_core_availablity_table.
9493 * config/arm/cortex-a8-neon.md: Update copyright year.
9494 Regenerated from ml file and merged in.
9495 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
9496 cortex_a8_neon_mrc.
9497
9498 2010-09-01 Ian Bolton <ian.bolton@arm.com>
9499
9500 * Makefile.in (tree-switch-conversion.o): Update dependencies.
9501
9502 2010-09-01 Richard Guenther <rguenther@suse.de>
9503
9504 * alias.c (ao_ref_from_mem): Adjust.
9505 * builtins.c (get_object_alignment): Likewise.
9506 * cfgexpand.c (expand_debug_expr): Likewise.
9507 * gimple.c (get_base_address): Likewise.
9508 * tree-dfa.c (get_ref_base_and_extent): Likewise.
9509 (get_addr_base_and_unit_offset): Likewise. Fix for
9510 both TMR_SYMBOL and TMR_BASE being set.
9511 * tree-eh.c (tree_could_trap_p): Likewise.
9512 * gimplify.c (gimplify_expr): Do not attempt to gimplify
9513 TMR_SYMBOL. Always gimplify TMR_BASE.
9514 * tree-cfg.c (verify_types_in_gimple_reference): Verify
9515 TMR_BASE if there is a TMR_SYMBOL.
9516 * tree-pretty-print.c (dump_generic_node): Adjust.
9517 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
9518 (tree_mem_ref_addr): Likewise.
9519 (create_mem_ref_raw): Likewise.
9520 (move_fixed_address_to_symbol): Likewise.
9521 (create_mem_ref): Likewise.
9522 (dump_mem_address): Likewise.
9523 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
9524 Fix for both TMR_SYMBOL and TMR_BASE being set.
9525 (indirect_refs_may_alias_p): Likewise.
9526 * tree-ssa-operands.c (get_tmr_operands): Adjust.
9527 * tree.def (TARGET_MEM_REF): Adjust documentation.
9528
9529 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
9530
9531 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
9532 Rename from X86_TUNE_ADD_ESP_4.
9533 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
9534 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
9535 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
9536 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
9537 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
9538 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
9539 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
9540 * config/i386/i386.c (initial_ix86_tune_features)
9541 <X86_TUNE_SINGLE_POP>: Invert members.
9542 <X86_TUNE_DOUBLE_POP>: Ditto.
9543 <X86_TUNE_SINGLE_PUSH>: Ditto.
9544 <X86_TUNE_DOUBLE_PUSH>: Ditto.
9545 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
9546 No longer exported.
9547 (push peephole2 patterns): Macroize peepholes using P mode iterator.
9548 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
9549 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
9550 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
9551
9552 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
9553
9554 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
9555 a volatile LHS if the constructor has only one element.
9556
9557 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
9558
9559 PR bootstrap/45321
9560 * tree.c (stdarg_p): Make fntype parameter const.
9561 * tree.h (stdarg_p): Likewise.
9562 (function_args_iterator): Remove unused fntype field.
9563 (function_args_iter_init): Do not initialize fntype
9564 field. Make fntype parameter const.
9565
9566 2010-09-01 Richard Guenther <rguenther@suse.de>
9567
9568 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
9569 estimate.
9570 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
9571 (execute_vrp): Compute number of iteration estimates.
9572 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
9573 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9574 * tree-data-ref.c (estimated_loop_iterations): Adjust.
9575 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9576 Infer loop bounds from undefined behavior based on a new parameter.
9577 (estimate_numbers_of_iterations): Likewise.
9578 (scev_probably_wraps_p): Adjust.
9579 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9580
9581 2010-09-01 Nick Clifton <nickc@redhat.com>
9582
9583 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
9584 where appropriate.
9585 (xstormy16_legitimate_address_p): Use true and false instead of 1
9586 and 0.
9587 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
9588 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
9589 magic constant 2.
9590 (xstormy16_expand_call): Fix comment at start of function.
9591
9592 2010-09-01 Nick Clifton <nickc@redhat.com>
9593
9594 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
9595 when pushing accumulator register.
9596 (rx_get_stack_layout): Always save call clobbered registers inside
9597 interrupt handlers.
9598 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
9599
9600 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
9601
9602 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
9603 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
9604
9605 * libgcc-std.ver (GCC_4.6.0): Define version.
9606
9607 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
9608
9609 * tree-nested.c (convert_all_function_calls): Iterate until after the
9610 sum of static chains in the nest doesn't change.
9611
9612 2010-08-31 Anatoly Sokolov <aesok@post.ru>
9613
9614 * config/m32c/m32c.c (classes_intersect): Remove.
9615 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
9616 reg_classes_intersect_p instead of classes_intersect.
9617 (class_can_hold_mode): Change arguments type from enum reg_class to
9618 reg_class_t. Use reg_class_contents instead of class_contents.
9619 (m32c_register_move_cost): Make static. Change arguments type from
9620 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
9621 classes_intersect. Use reg_class_contents instead of class_contents.
9622 (m32c_memory_move_cost): Make static. Change arguments type from
9623 enum reg_class to reg_class_t.
9624 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9625 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9626 * config/m32c/m32c-protos.h (m32c_register_move_cost,
9627 m32c_memory_move_cost): Remove.
9628
9629 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9630
9631 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
9632 (arm_function_arg): Delete.
9633 (arm_needs_doubleword_align): Take a const_tree.
9634 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9635 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
9636 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
9637 (arm_function_arg): Make static. Take a const_tree and a bool.
9638 (arm_function_arg_advance): Likewise.
9639 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9640
9641 2010-08-31 Andi Kleen <ak@linux.intel.com>
9642
9643 * common.opt (fwhopr=): Update for -fwhopr=jobserver
9644 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
9645 * lto-wrapper.c (run_gcc): Add jobserver mode.
9646 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
9647 argument.
9648
9649 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
9650
9651 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
9652 (popsi1): Ditto.
9653 (*popdi1_epilogue): Ditto.
9654 (*popsi1_epilogue): Ditto.
9655 (popsi, popdi peephole2 patterns): Update peepholes for changed
9656 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
9657
9658 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
9659 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
9660
9661 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
9662 (override_options): Do not initialize removed ix86_gen_pop1.
9663 (gen_pop): New static function.
9664 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
9665 (release_scratch_register_on_entry): Ditto.
9666 (ix86_restore_reg_using_pop): Ditto.
9667 (ix86_expand_epilogue): Ditto.
9668
9669 2010-08-31 Jakub Jelinek <jakub@redhat.com>
9670
9671 PR middle-end/45461
9672 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
9673
9674 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9675
9676 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
9677 semicolons.
9678
9679 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9680
9681 * doc/extend.texi: Fix documentation of the return value of
9682 __builtin_choose_expr.
9683
9684 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9685
9686 * config/v850/v850-protos.h (function_arg): Delete.
9687 * config/v850/v850.h (FUNCTION_ARG): Delete.
9688 (FUNCTION_ARG_ADVANCE): Move code to...
9689 * config/v850/v850.c (v850_function_arg_advance): ...here.
9690 (v850_function_arg): Make static. Take a const_tree and a bool.
9691 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9692
9693 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9694
9695 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
9696 these...
9697 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9698 ...and these...
9699 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
9700 ..to here..
9701 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9702 ...and here.
9703 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9704
9705 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9706
9707 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
9708 Delete.
9709 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9710 * config/rx/rx.c (rx_function_arg_size): Make static.
9711 (rx_function_arg): Likewise.
9712 (rx_function_arg_advance): New function.
9713 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9714
9715 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
9716
9717 * config/arm/arm.c (arm_override_options): Remove superfluous test.
9718 Fix indentation.
9719
9720 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
9721
9722 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
9723 (dwarf2out_decl) <CONST_DECL>: Likewise.
9724
9725 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
9726
9727 Stack usage support
9728 * common.opt (-fstack-usage): New option.
9729 * doc/invoke.texi (Debugging options): Document it.
9730 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
9731 allocate_dynamic_stack_space.
9732 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
9733 and propagate it to allocate_dynamic_stack_space.
9734 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
9735 * calls.c (initialize_argument_information): Pass TRUE as 4th
9736 argument to allocate_dynamic_stack_space.
9737 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
9738 to 1 when pushing a variable-sized argument onto the stack. Pass
9739 TRUE as 4th argument to allocate_dynamic_stack_space.
9740 Update current_function_pushed_stack_size.
9741 (emit_library_call_value_1): Likewise.
9742 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
9743 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
9744 attempt to find an upper bound. Remove redundant code for the
9745 SETJMP_VIA_SAVE_AREA case.
9746 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
9747 * function.h (struct stack_usage): New structure.
9748 (current_function_static_stack_size): New macro.
9749 (current_function_dynamic_stack_size): Likewise.
9750 (current_function_pushed_stack_size): Likewise.
9751 (current_function_dynamic_alloc_count): Likewise.
9752 (current_function_has_unbounded_dynamic_stack_size): Likewise.
9753 (current_function_allocates_dynamic_stack_space): Likewise.
9754 (struct function): Add new field 'su'.
9755 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
9756 add the value of the dynamic offset to the dynamic stack usage.
9757 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
9758 for variable-sized objects.
9759 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
9760 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
9761 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
9762 BUILT_IN_ALLOCA for variable-sized objects.
9763 * output.h (output_stack_usage): Declare.
9764 * toplev.c (stack_usage_file): New file pointer.
9765 (output_stack_usage): New function.
9766 (open_auxiliary_file): Likewise.
9767 (lang_dependent_init): Open file if flag_stack_usage is set.
9768 (finalize): Close file if stack_usage_file is not null.
9769 * tree.h (ALLOCA_FOR_VAR_P): New macro.
9770 * config/alpha/alpha.c (compute_frame_size): New function.
9771 (alpha_expand_prologue): Use it.
9772 (alpha_start_function): Likewise.
9773 (alpha_expand_epilogue): Likewise. Set stack usage info.
9774 * config/i386/i386.c (ix86_expand_prologue): Likewise.
9775 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9776 * config/mips/mips.c (mips_expand_prologue): Likewise.
9777 * config/pa/pa.c (hppa_expand_prologue): Likewise.
9778 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9779 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9780
9781 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
9782
9783 PR tree-optimization/45427
9784 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
9785 Handle the case that the exit is never taken correctly.
9786 (number_of_iterations_ne): Pass exit_must_be_taken to
9787 number_of_iterations_ne_max.
9788
9789 2010-08-30 Catherine Moore <clm@codesourcery.com>
9790
9791 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
9792 Infer -mdspr2 for the the 74K.
9793
9794 2010-08-30 Jakub Jelinek <jakub@redhat.com>
9795
9796 PR debug/45419
9797 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
9798
9799 PR middle-end/45423
9800 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
9801 and TRUTH_{AND,OR,XOR}_EXPR.
9802 * c-parser.c (c_parser_omp_atomic): Handle boolean
9803 {PRE,POST}_{INC,DEC}REMENT.
9804
9805 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
9806
9807 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
9808 (function_arg): Delete.
9809 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9810 (FUNCTION_INCOMING_ARG): Delete.
9811 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
9812 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
9813 and a bool.
9814 (function_arg): Rename to...
9815 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
9816 a bool.
9817 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
9818 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9819 (TARGET_FUNCTION_INCOMING_ARG): Define.
9820
9821 2010-08-30 Richard Guenther <rguenther@suse.de>
9822
9823 PR tree-optimization/21602
9824 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
9825 using points-to information.
9826
9827 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
9828
9829 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
9830
9831 2010-08-30 Richard Guenther <rguenther@suse.de>
9832
9833 PR tree-optimization/45449
9834 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
9835 variables.
9836
9837 2010-08-30 Joseph Myers <joseph@codesourcery.com>
9838
9839 * opts.h (CL_ERR_NEGATIVE): Define.
9840 * opts.c (unknown_option_callback): Don't postpone warnings for
9841 options marked with CL_ERR_NEGATIVE.
9842 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
9843 for negative versions of CL_REJECT_NEGATIVE options.
9844
9845 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
9846
9847 * config/i386/i386.md (zero_extendsidi2_1): Rename from
9848 zero_extendsidi2_32.
9849 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
9850 using SWI12 mode iterator.
9851 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
9852 to define_insn_and_split pattern.
9853 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
9854 using SWI24 mode iterator.
9855 (*zero_extendqi<mode>2_and): Macroize insn from
9856 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
9857 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
9858 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
9859 SWI24 mode iterator.
9860 (*zero_extendqi<mode>2_movzbl): Ditto from
9861 *zero_extendqi{hi,si}2_movzbl.
9862 (extendsidi2_1): Rename from extendsidi2_32.
9863 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
9864 SWI12 mode iterator.
9865
9866 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
9867
9868 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
9869 general purpose registers.
9870 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
9871 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
9872 with general purpose registers and memory operands. Add associated
9873 CCImode post-reload splitter.
9874 * config/ia64/div.md: Change BImode to CCImode throughout.
9875
9876 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
9877
9878 * config/ia64/ia64.md (cstorebi4): Fix thinko.
9879
9880 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
9881
9882 * config/picochip/picochip.c (reorder_var_tracking_notes): This
9883 function was dropping debug insns which caused PR45299.
9884
9885 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
9886
9887 * config/i386/sse.md (extsuffix): New code attribute.
9888 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
9889 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
9890 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
9891 and sse4_1_zero_extendv4qiv4si2.
9892 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
9893 and sse4_1_zero_extendv2qiv2di2.
9894 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
9895 and sse4_1_zero_extendv4hiv4si2.
9896 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
9897 and sse4_1_zero_extendv2hiv2di2.
9898 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
9899 and sse4_1_zero_extendv2siv2di2
9900
9901 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
9902 using any_extend code iterator.
9903 (*avx_<s>mulv8hi3_highpart): Macroize insn from
9904 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
9905 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
9906
9907 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
9908 gen_sse4_1_sign_extend* functions.
9909 (struct builtin_description bdesc_args): Ditto.
9910
9911 2010-08-27 Xinliang David Li <davidxl@google.com>
9912
9913 PR/45422
9914 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
9915 (iv_ca_set_no_cp): Update used inv expr count.
9916 (iv_ca_set_cp): Ditto.
9917 (iv_ca_new): Initialize new member.
9918 (iv_ca_free): Free memory.
9919
9920 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9921
9922 * config/sh/sh-protos.h (sh_function_arg): Delete.
9923 (sh_function_arg_advance): Delete.
9924 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9925 (PASS_IN_REG_P): Eliminate cast.
9926 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
9927 const_tree and a bool.
9928 (sh_function_arg): Likewise.
9929 (sh_output_mi_thunk): Call sh_function_arg_advance) and
9930 sh_function_arg.
9931 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9932
9933 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
9934 Kaz Kojima <kkojima@gcc.gnu.org>
9935
9936 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
9937 when possible.
9938 (sh_expand_epilogue): Likewise.
9939 * config/sh/sh.md (movml_push_banked): New insn.
9940 (movml_pop_banked): Likewise.
9941
9942 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
9943
9944 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
9945 gen_regexp_oneof, gen_regexp_sequence): Use the string found
9946 in vector element 0 rather than the original string when there's
9947 only one element.
9948 (gen_regexp): Remove extra semicolon.
9949
9950 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
9951 thumb2_movsf_vfp): Set attribute "insn".
9952 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
9953 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
9954 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
9955 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
9956 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
9957 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
9958 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
9959 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
9960 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
9961 if_not_arith, if_arith_not, cond_move_not): Likewise.
9962
9963 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9964
9965 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
9966 New declaration.
9967 (rs6000_allocate_stack_temp): Ditto.
9968 (rs6000_expand_convert_si_to_sfdf): Ditto.
9969
9970 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
9971 line. Update the options set if power6 or power7 server/embedded
9972 type options are used. If we give a warning for no vsx under
9973 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
9974 (rs6000_allocate_stack_temp): New function to allocate a stack
9975 tempoary and adjust the address so it meets either REG+OFFSET or
9976 REG+REG addressing requirements.
9977 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
9978 that they can be used with the LFIWAX/LFIWZX instrucitons.
9979 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
9980 converting signed/unsigned SImode to either SFmode/DFmode.
9981
9982 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
9983 whether certain instructions can be generated.
9984 (TARGET_FCTIDZ): Ditto.
9985 (TARGET_STFIWX): Ditto.
9986 (TARGET_LFIWAX): Ditto.
9987 (TARGET_LFIWZX): Ditto.
9988 (TARGET_FCFIDS): Ditto.
9989 (TARGET_FCFIDU): Ditto.
9990 (TARGET_FCFIDUS): Ditto.
9991 (TARGET_FCTIDUZ): Ditto.
9992 (TARGET_FCTIWUZ): Ditto.
9993
9994 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
9995 (UNSPEC_FCTID): Ditto.
9996 (UNSPEC_LFIWAX): Ditto.
9997 (UNSPEC_LFIWZX): Ditto.
9998 (UNSPEC_FCTIWUZ): Ditto.
9999 (rreg): Use correct constraints.
10000 (SI_CONVERT_FP): New mode attribute for floating point conversion
10001 tests.
10002 (E500_CONVERT): Ditto.
10003 (lfiwax): New insns for converting from integer to floating point
10004 utilizing newer instructions. Attempt to optimize conversions
10005 that come from memory so that we don't load the value into a GPR,
10006 spill it to the stack and reload it into a FPR.
10007 (floatsi<mode>2_lfiwax): Ditto.
10008 (floatsi<mode>2_lfiwax_mem): Ditto.
10009 (floatsi<mode>2_lfiwax_mem2): Ditto.
10010 (lfiwzx): Ditto.
10011 (floatunssi<mode>2_lfiwzx): Ditto.
10012 (floatunssi<mode>2_lfiwzx_mem): Ditto.
10013 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
10014 (floatdidf2_mem): Ditto.
10015 (floatunsdidf2_fcfidu): Ditto.
10016 (floatunsdidf2_mem): Ditto.
10017 (floatunsdisf2): Ditto.
10018 (floatunsdisf2_fcfidus): Ditto.
10019 (floatunsdisf2_mem): Ditto.
10020 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
10021 Use FCFID on 32-bit hosts that support it.
10022 (floatsidf2_internal): Ditto.
10023 (floatunssisf2): Ditto.
10024 (floatunssidf2): Ditto.
10025 (floatunssidf2_internal): Ditto.
10026 (floatsisf2): Ditto.
10027 (floatdidf2): Ditto.
10028 (floatdidf2_fpr): Ditto.
10029 (floatunsdidf2): Ditto.
10030 (floatdisf2): Ditto.
10031 (floatdisf2_fcfids): Ditto.
10032 (floatdisf2_internal1): Ditto.
10033 (fixuns_truncsfsi2): Delete, merge into common pattern for both
10034 SF/DF. Add power7 support.
10035 (fix_truncsfsi2): Ditto.
10036 (fixuns_truncdfsi2): Ditto.
10037 (fixuns_truncdfdi2): Ditto.
10038 (fix_truncdfsi2): Ditto.
10039 (fix_truncdfsi2_internal): Ditto.
10040 (fix_truncdfsi2_internal_gfxopt): Ditto.
10041 (fix_truncdfsi2_mfpgpr): Ditto.
10042 (fctiwz): Ditto.
10043 (btruncdf2): Ditto.
10044 (btruncdf2_fpr): Ditto.
10045 (btructsf2): Ditto.
10046 (ceildf2): Ditto.
10047 (ceildf2_fpr): Ditto.
10048 (ceilsf2): Ditto.
10049 (floordf2): Ditto.
10050 (floordf2_fpr): Ditto.
10051 (floorsf2): Ditto.
10052 (rounddf2): Ditto.
10053 (rounddf2_fpr): Ditto.
10054 (roundsf2): Ditto.
10055 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
10056 (fix_trunc<mode>di2): Ditto.
10057 (fixuns_trunc<mode>si2): Ditto.
10058 (fixuns_trunc<mode>di2): Ditto.
10059 (fctiwz_<mode>): Ditto.
10060 (btrunc<mode>2): Ditto.
10061 (btrunc<mode>2_fpr): Ditto.
10062 (ceil<mode>2): Ditto.
10063 (ceil<mode>2_fpr): Ditto.
10064 (floor<mode>2): Ditto.
10065 (float<mode>2_fpr): Ditto.
10066 (round<mode>2): Ditto.
10067 (round<mode>2_fpr): Ditto.
10068 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
10069 (fixuns_trunc<mode>si2_stfiwx): Ditto.
10070 (fix_truncdfsi2_internal): Ditto.
10071 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
10072 converted value on stack, loaded into GPR, and then stored into
10073 the final destination.
10074 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
10075 FCTIDZ.
10076 (lrint<mode>di2): New insn, provide the lrint builtin functions.
10077 (ftruncdf2): Delete, unused.
10078 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
10079
10080 * config/rs6000/vsx.md (toplevel): Update copyright year.
10081 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
10082 (VSr3): Ditto.
10083
10084 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
10085 Jeremie Salvucci <jeremie.salvucci@free.fr>
10086
10087 * gengtype.c (output_type_enum): Test the right union member.
10088
10089 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
10090
10091 PR target/41484
10092 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
10093 operands for operand 1.
10094 (sse4_1_extendv4qiv4si2): Ditto.
10095 (sse4_1_extendv2qiv2di2): Ditto.
10096 (sse4_1_extendv4hiv4si2): Ditto.
10097 (sse4_1_extendv2hiv2di2): Ditto.
10098 (sse4_1_extendv2siv2di2): Ditto.
10099 (sse4_1_zero_extendv8qiv8hi2): Ditto.
10100 (sse4_1_zero_extendv4qiv4si2): Ditto.
10101 (sse4_1_zero_extendv2qiv2di2): Ditto.
10102 (sse4_1_zero_extendv4hiv4si2): Ditto.
10103 (sse4_1_zero_extendv2hiv2di2): Ditto.
10104 (sse4_1_zero_extendv2siv2di2): Ditto.
10105 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
10106 (*sse4_1_extendv4qiv4si2): Ditto.
10107 (*sse4_1_extendv2qiv2di2): Ditto.
10108 (*sse4_1_extendv4hiv4si2): Ditto.
10109 (*sse4_1_extendv2hiv2di2): Ditto.
10110 (*sse4_1_extendv2siv2di2): Ditto.
10111 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
10112 (*sse4_1_zero_extendv4qiv4si2): Ditto.
10113 (*sse4_1_zero_extendv2qiv2di2): Ditto.
10114 (*sse4_1_zero_extendv4hiv4si2): Ditto.
10115 (*sse4_1_zero_extendv2hiv2di2): Ditto.
10116 (*sse4_1_zero_extendv2siv2di2): Ditto.
10117
10118 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
10119
10120 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
10121 (mips_function_arg): Delete.
10122 (mips_function_arg_boundary): Take a const_tree.
10123 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
10124 (mips_arg_info): Likewise.
10125 (mips_setup_incoming_varargs): Call mips_function_arg_advance
10126 instead of FUNCTION_ARG_ADVANCE.
10127 (mips_function_arg_advance): Adjust prototype. Make static.
10128 (mips_function_arg): Likewise.
10129 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10130 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
10131
10132 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
10133
10134 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10135 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
10136 (function_arg): Delete.
10137 (function_arg_boundary): Take a const_tree.
10138 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
10139 (rs6000_spe_function_arg): Likewise.
10140 (rs6000_parm_start): Likewise.
10141 (rs6000_arg_size): Likewise.
10142 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
10143 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
10144 (rs6000_mixed_function_arg): Likewise.
10145 (function_arg): Rename to...
10146 (rs6000_function_arg): ...this.
10147 (function_arg_advance): Rename to...
10148 (rs6000_function_arg_advance_1): ...this
10149 (rs6000_function_arg_advance): New function. Call it.
10150 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
10151 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
10152 (rs6000_function_value): Likewise.
10153 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10154
10155 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10156
10157 * config/arm/arm.md (enabled): Test the value of arch_enabled
10158 rather than just using it.
10159
10160 2010-08-27 Olivier Hainque <hainque@adacore.com>
10161 Eric Botcazou <ebotcazou@adacore.com>
10162
10163 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
10164 cover all the possible offsets from this base.
10165 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
10166
10167 2010-08-26 Jakub Jelinek <jakub@redhat.com>
10168
10169 PR tree-optimization/44485
10170 * calls.c (flags_from_decl_or_type): For const or pure
10171 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
10172 together with ECF_CONST resp. ECF_PURE.
10173 * builtins.c (expand_builtin): Use flags_from_decl_or_type
10174 instead of querying flags directly.
10175 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
10176 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
10177
10178 2010-08-26 Richard Guenther <rguenther@suse.de>
10179
10180 PR tree-optimization/45255
10181 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
10182 and externals are also invariant.
10183
10184 2010-08-25 Jakub Jelinek <jakub@redhat.com>
10185
10186 PR rtl-optimization/44858
10187 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
10188 newi2pat, make sure they don't affect newpat.
10189
10190 PR rtl-optimization/45400
10191 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
10192 SUBREG_REG if both modes are of MODE_INT class.
10193
10194 2010-08-25 Julian Brown <julian@codesourcery.com>
10195
10196 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
10197 * config/arm/arm.md (generic_sched): No for Cortex-A5.
10198 (generic_vfp): Likewise.
10199 (cortex-a5.md): Include.
10200 * config/arm/cortex-a5.md: New.
10201
10202 2010-08-25 Richard Guenther <rguenther@suse.de>
10203
10204 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
10205 * gimple.c (gimple_get_alias_set): Remove special handling
10206 for pointers.
10207
10208 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
10209
10210 PR middle-end/45355
10211 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
10212 dead_or_set_p when computing i0_feeds_i2_n.
10213
10214 * combine.c (find_split_point): Undo canonicalization of multiply-add
10215 to (minus x (mult)) when it seems likely that this will increase the
10216 chances of a split.
10217
10218 2010-08-25 Richard Guenther <rguenther@suse.de>
10219
10220 PR lto/44562
10221 * lto-streamer.c (lto_record_common_node): Do not mess with
10222 TYPE_CANONICAL when not in lto.
10223 * gimple.c (gimple_register_type): Likewise.
10224
10225 2010-08-25 Richard Guenther <rguenther@suse.de>
10226
10227 PR tree-optimization/45316
10228 * tree-ssa-pre.c (eliminate): Properly clean EH info.
10229
10230 2010-08-25 Richard Guenther <rguenther@suse.de>
10231
10232 PR tree-optimization/45393
10233 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
10234 and clean EH info. Avoid SSA update.
10235 (execute_cse_sincos): Cleanup the CFG if it has changed.
10236
10237 2010-08-25 Richard Guenther <rguenther@suse.de>
10238
10239 PR middle-end/45379
10240 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
10241 TARGET_MEM_REF in alignment computation.
10242
10243 2010-08-25 Jakub Jelinek <jakub@redhat.com>
10244
10245 PR tree-optimization/45059
10246 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
10247 type conversions from newop{1,2}. Assert t is a comparison and
10248 newop{1,2} after the stripping are gimple vals.
10249
10250 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
10251
10252 * config/arm/iterators.md (VU, SE, V_widen_l): New.
10253 (V_unpack, US): New.
10254 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
10255 (vec_unpack<US>_lo_<mode>): Likewise.
10256 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
10257 (neon_vec_unpack<US>_lo_<mode>): Likewise.
10258 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
10259 (vec_widen_<US>mult_hi_<mode>): Likewise.
10260 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
10261 (neon_vec_<US>mult_hi_<mode>"): Likewise.
10262 (neon_unpack<US>_<mode>): Widening move intermediate step for
10263 vectorizing without -mvectorize-with-neon-quad.
10264 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
10265 for vectorizing without -mvectorize-with-neon-quad.
10266 * config/arm/predicates.md (vect_par_constant_high): Check for
10267 high-half lanes of a vector.
10268 (vect_par_constant_low): Check for low-half lanes of a vector.
10269
10270 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
10271
10272 * tree-if-conv.c (struct ifc_dr): New.
10273 (IFC_DR): New.
10274 (DR_WRITTEN_AT_LEAST_ONCE): New.
10275 (DR_RW_UNCONDITIONALLY): New.
10276 (memref_read_or_written_unconditionally): Use the cached values
10277 when possible.
10278 (write_memref_written_at_least_once): Same.
10279 (if_convertible_loop_p): Initialize and free DR->aux fields.
10280
10281 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
10282
10283 * gimple.c (gimple_could_trap_p_1): Not static anymore.
10284 Pass an extra bool parameter include_mem.
10285 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
10286 (gimple_assign_rhs_could_trap_p): Same.
10287 * gimple.h (gimple_could_trap_p_1): Declared.
10288 * tree-data-ref.h (same_data_refs_base_objects): New.
10289 (same_data_refs): New.
10290 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
10291 (write_memrefs_written_at_least_once): New.
10292 (ifcvt_memrefs_wont_trap): New.
10293 (operations_could_trap): New.
10294 (ifcvt_could_trap_p): New.
10295 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
10296 Gets a vector of data refs.
10297 (if_convertible_stmt_p): Same.
10298 (if_convertible_loop_p_1): New.
10299 (if_convertible_loop_p): Call if_convertible_loop_p_1.
10300
10301 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
10302
10303 * common.opt (ftree-loop-if-convert-stores): New flag.
10304 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
10305 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
10306 the created statement before GSI.
10307 (if_convertible_phi_p): Allow virtual phi nodes when
10308 flag_loop_if_convert_stores is set.
10309 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
10310 Do not handle types that do not match is_gimple_reg_type.
10311 Remove loop and bb parameters. Call gimple_could_trap_p instead of
10312 when flag_loop_if_convert_stores is set, as LHS can contain
10313 memory refs.
10314 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
10315 to if_convertible_gimple_assign_stmt_p.
10316 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
10317 (replace_phi_with_cond_gimple_assign_stmt): Renamed
10318 predicate_scalar_phi. Do not handle virtual phi nodes.
10319 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
10320 Call predicate_scalar_phi.
10321 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
10322 just after the labels for flag_loop_if_convert_stores, otherwise
10323 insert the predicate in the end of the BB.
10324 (predicate_mem_writes): New.
10325 (combine_blocks): Call predicate_all_scalar_phis. When
10326 flag_loop_if_convert_stores is set, call predicate_mem_writes.
10327 (tree_if_conversion): Call mark_sym_for_renaming when
10328 flag_loop_if_convert_stores is set.
10329 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
10330 flag_loop_if_convert_stores is set.
10331
10332 2010-08-24 Anatoly Sokolov <aesok@post.ru>
10333
10334 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
10335 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
10336 (pa_function_value): Make static.
10337 (override_options): Rename to...
10338 (pa_option_override): ...this. Make static.
10339 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
10340 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
10341 TARGET_OPTION_OVERRIDE): Define.
10342 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
10343 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
10344 Remove.
10345 * config/pa/pa-protos.h (override_options): Remove.
10346
10347 2010-08-24 Richard Guenther <rguenther@suse.de>
10348
10349 PR middle-end/45379
10350 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
10351 if addr->index is NULL or zero.
10352 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
10353 TARGET_MEM_REF more properly.
10354 (indirect_ref_may_alias_decl_p): Likewise.
10355 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
10356 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
10357
10358 2010-08-23 Anatoly Sokolov <aesok@post.ru>
10359
10360 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
10361 (m32c_override_options): Rename to...
10362 (m32c_option_override): ...this. Make static.
10363 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
10364 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
10365 Remove.
10366 * config/m32c/m32c-protos.h (m32c_override_options,
10367 m32c_function_value_regno_p): Remove.
10368
10369 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
10370
10371 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
10372 Fix a typo in a previous commit.
10373
10374 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
10375
10376 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
10377 Pre-initialize innerloop_iters to one.
10378
10379 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
10380
10381 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
10382 existing static function global.
10383
10384 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
10385 is changed to global.
10386
10387 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
10388 may_be_nonaddressable_p on base, and don't collect this reference
10389 if the address of the base could not be taken.
10390
10391 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10392
10393 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
10394 enable the compiler to autovectorize mathmetical functions for
10395 power7 using the Mathematical Acceleration Subsystem library.
10396
10397 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
10398 handle which vector math library we have.
10399 (rs6000_override_options): Add -mveclibabi=mass support.
10400 (rs6000_builtin_vectorized_libmass): New function to handle auto
10401 vectorizing math functions that are in the MASS library.
10402 (rs6000_builtin_vectorized_function): Call it.
10403
10404 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10405 -mveclibabi=mass.
10406
10407 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10408
10409 PR boehm-gc/34544
10410 * gthr-posix.h (__gthread_active_init): Delete.
10411 (__gthread_active_p): Do activity check here.
10412 Don't include errno.h on hppa-hpux. Update comment.
10413 * gthr-posix95.h (__gthread_active_init): Delete.
10414 (__gthread_active_p): Do activity check here.
10415 Don't include errno.h on hppa-hpux. Update comment.
10416 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
10417 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
10418 add -lpthread when -mt or -pthread is specified.
10419 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
10420 (LINK_GCC_C_SEQUENCE_SPEC): Define.
10421 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
10422 (stublib.c, pthread_default_stacksize_np-stub.o,
10423 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
10424 $(T)libgcc_stub.a): Add methods.
10425 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
10426 (stublib.c, pthread_default_stacksize_np-stub.o,
10427 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
10428 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10429 pthread_mutex_unlock): New stubs.
10430
10431 2010-08-22 Joseph Myers <joseph@codesourcery.com>
10432
10433 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
10434 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
10435 options.
10436 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
10437 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
10438 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
10439 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
10440 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
10441 "-l".
10442 * cppspec.c: Include opts.h.
10443 (lang_specific_driver): Use cl_decoded_option structures.
10444 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
10445 * doc/tm.texi: Regenerate.
10446 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
10447 (driver_handle_option): Allow driver options needing no special
10448 processing.
10449 (process_command): Decode options before call to
10450 lang_specific_driver. Pass decoded options to
10451 lang_specific_driver.
10452 * gcc.h (lang_specific_driver): Update prototype.
10453 * gccspec.c: Include opts.h.
10454 (lang_specific_driver): Use cl_decoded_option structures.
10455 * opts-common.c (option_ok_for_language, generate_option,
10456 generate_option_input_file): New.
10457 (decode_cmdline_option): Use option_ok_for_language.
10458 (decode_cmdline_options_to_array): Use generate_option_input_file.
10459 (handle_generated_option): Use generate_option.
10460 * opts.h (generate_option, generate_option_input_file): Declare.
10461
10462 2010-08-22 Anatoly Sokolov <aesok@post.ru>
10463
10464 * config/mips/mips.c (mips_override_options): Rename to...
10465 (mips_option_override): ...this. Make static.
10466 (TARGET_OPTION_OVERRIDE): Define.
10467 (mips_in_small_data_p): Update comment.
10468 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
10469 (FIXED_REGISTERS): Update comment.
10470 * config/mips/mips-protos.h (mips_override_options): Remove.
10471
10472 2010-08-21 Olivier Hainque <hainque@adacore.com>
10473
10474 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
10475
10476 2010-08-21 Olivier Hainque <hainque@adacore.com>
10477
10478 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
10479 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
10480
10481 2010-08-20 Jan Hubicka <jh@suse.cz>
10482
10483 * tree-pass.h (pass_ipa_cdtor_merge): New function.
10484 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
10485 heap allocated.
10486 (record_cdtor_fn): Move to ipa.c; do not test for
10487 have_ctors_dtors.
10488 (build_cdtor): Move to ipa.c; add code avoiding construction
10489 when target have ctors/dtors and there is only one ctor/dtor at given
10490 priority.
10491 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
10492 sort; reverse order of constructors.
10493 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
10494 (cgraph_finalize_function): Do not call record_cdtor_fn.
10495 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
10496 (cgraph_build_static_cdtor): Move to ipa.c.
10497 * ipa.c: Include target.h and tree-iterator.h.
10498 (cgraph_build_static_cdtor, static_ctors, static_dtors,
10499 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
10500 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
10501 pass_ipa_cdtor_merge): New.
10502 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
10503 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
10504 bounds access.
10505
10506 2010-08-20 Jan Hubicka <jh@suse.cz>
10507
10508 PR c++/45307
10509 PR c++/17736
10510 * cgraph.h (cgraph_only_called_directly_p,
10511 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
10512 static cdtors.
10513 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
10514 are not needed.
10515 (cgraph_finalize_function): Static cdtors are reachable.
10516 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
10517
10518 2010-08-20 Jan Hubicka <jh@suse.cz>
10519
10520 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
10521 flag_wpa.
10522 * lto-streamer-out.c (lto_output): Likewise.
10523 * passes.c (ipa_write_optimization_summaries): Initialize statement
10524 uids.
10525
10526 2010-08-20 Olivier Hainque <hainque@adacore.com>
10527
10528 * tree.h (alias_diag_flags): New enum.
10529 (alias_pair): Add an 'emitted_diags' field.
10530 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
10531 (assemble_alias): Initialize emitted_diags of new pairs.
10532
10533 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
10534
10535 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10536 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10537 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10538 (STACK_CHECK_PROTECT): Define.
10539 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
10540 (output_probe_stack_range): Likewise.
10541 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
10542 builtin stack checking is enabled.
10543 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
10544 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10545 (probe_stack_range): New insn.
10546
10547 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
10548
10549 PR target/45336
10550 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
10551 short first.
10552
10553 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
10554 char first.
10555
10556 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10557
10558 PR target/45336
10559 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
10560 to cover zero extension into 64-bit register.
10561 (*sse2_pextrw): Likewise.
10562 (*sse4_1_pextrd_zext): New insn.
10563
10564 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
10565
10566 revert r163410, partially revert r163267.
10567 * config/rs6000/darwin.h (LIB_SPEC): Remove.
10568 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
10569 Darwin versions.
10570
10571 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10572
10573 PR middle-end/44974
10574 * builtins.c (expand_builtin): Don't optimize away
10575 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
10576
10577 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
10578
10579 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
10580 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
10581 alternative 1 of operand 2.
10582
10583 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10584 Paolo Bonzini <bonzini@gnu.org>
10585
10586 * simplify-rtx.c (simplify_unary_operation_1): Optimize
10587 (sign_extend (zero_extend (...)) and
10588 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
10589
10590 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10591
10592 PR rtl-optimization/45353
10593 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
10594 after bb_note is a BARRIER.
10595
10596 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
10597
10598 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
10599 linking libgcc.a.
10600
10601 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10602 Michael Matz <matz@suse.de>
10603
10604 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
10605
10606 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
10607
10608 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
10609 (ggc_mark_roots): ...here.
10610
10611 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
10612
10613 * vec.h (FOR_EACH_VEC_ELT): Define.
10614 * c-decl.c: Use it.
10615 * cfgloop.c: Likewise.
10616 * cfgloopmanip.c: Likewise.
10617 * cgraph.c: Likewise.
10618 * cgraphunit.c: Likewise.
10619 * combine.c: Likewise.
10620 * config/bfin/bfin.c: Likewise.
10621 * config/mips/mips.c: Likewise.
10622 * config/rs6000/rs6000.c: Likewise.
10623 * dbxout.c: Likewise.
10624 * df-scan.c: Likewise.
10625 * dominance.c: Likewise.
10626 * dse.c: Likewise.
10627 * dwarf2out.c: Likewise.
10628 * except.c: Likewise.
10629 * expr.c: Likewise.
10630 * function.c: Likewise.
10631 * gcse.c: Likewise.
10632 * genattr.c: Likewise.
10633 * ggc-common.c: Likewise.
10634 * gimplify.c: Likewise.
10635 * graphite-blocking.c: Likewise.
10636 * graphite-clast-to-gimple.c: Likewise.
10637 * graphite-dependences.c: Likewise.
10638 * graphite-interchange.c: Likewise.
10639 * graphite-poly.c: Likewise.
10640 * graphite-scop-detection.c: Likewise.
10641 * graphite-sese-to-poly.c: Likewise.
10642 * graphite.c: Likewise.
10643 * haifa-sched.c: Likewise.
10644 * ifcvt.c: Likewise.
10645 * implicit-zee.c: Likewise.
10646 * ipa-prop.c: Likewise.
10647 * ipa-struct-reorg.c: Likewise.
10648 * ipa.c: Likewise.
10649 * ira-build.c: Likewise.
10650 * ira-color.c: Likewise.
10651 * ira-emit.c: Likewise.
10652 * lambda-code.c: Likewise.
10653 * loop-invariant.c: Likewise.
10654 * loop-unroll.c: Likewise.
10655 * lower-subreg.c: Likewise.
10656 * lto-cgraph.c: Likewise.
10657 * lto-opts.c: Likewise.
10658 * lto-streamer-in.c: Likewise.
10659 * lto-streamer-out.c: Likewise.
10660 * lto-streamer.c: Likewise.
10661 * lto-symtab.c: Likewise.
10662 * matrix-reorg.c: Likewise.
10663 * opts.c: Likewise.
10664 * predict.c: Likewise.
10665 * print-tree.c: Likewise.
10666 * sdbout.c: Likewise.
10667 * sel-sched-dump.c: Likewise.
10668 * sel-sched-ir.c: Likewise.
10669 * sel-sched.c: Likewise.
10670 * sese.c: Likewise.
10671 * stor-layout.c: Likewise.
10672 * tree-cfg.c: Likewise.
10673 * tree-cfgcleanup.c: Likewise.
10674 * tree-chrec.c: Likewise.
10675 * tree-data-ref.c: Likewise.
10676 * tree-emutls.c: Likewise.
10677 * tree-inline.c: Likewise.
10678 * tree-into-ssa.c: Likewise.
10679 * tree-loop-distribution.c: Likewise.
10680 * tree-loop-linear.c: Likewise.
10681 * tree-mudflap.c: Likewise.
10682 * tree-outof-ssa.c: Likewise.
10683 * tree-parloops.c: Likewise.
10684 * tree-predcom.c: Likewise.
10685 * tree-pretty-print.c: Likewise.
10686 * tree-scalar-evolution.c: Likewise.
10687 * tree-ssa-live.c: Likewise.
10688 * tree-ssa-loop-im.c: Likewise.
10689 * tree-ssa-loop-ivcanon.c: Likewise.
10690 * tree-ssa-loop-ivopts.c: Likewise.
10691 * tree-ssa-loop-manip.c: Likewise.
10692 * tree-ssa-loop-niter.c: Likewise.
10693 * tree-ssa-loop-prefetch.c: Likewise.
10694 * tree-ssa-phiprop.c: Likewise.
10695 * tree-ssa-pre.c: Likewise.
10696 * tree-ssa-reassoc.c: Likewise.
10697 * tree-ssa-sccvn.c: Likewise.
10698 * tree-ssa-structalias.c: Likewise.
10699 * tree-ssa.c: Likewise.
10700 * tree-vect-data-refs.c: Likewise.
10701 * tree-vect-loop-manip.c: Likewise.
10702 * tree-vect-loop.c: Likewise.
10703 * tree-vect-patterns.c: Likewise.
10704 * tree-vect-slp.c: Likewise.
10705 * tree-vect-stmts.c: Likewise.
10706 * tree-vrp.c: Likewise.
10707 * tree.c: Likewise.
10708 * value-prof.c: Likewise.
10709 * var-tracking.c: Likewise.
10710 * varasm.c: Likewise.
10711 * vmsdbgout.c: Likewise.
10712
10713 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
10714 Richard Guenther <richard.guenther@gmail.com>
10715
10716 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
10717 copy the src value and return a copy.
10718 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
10719 (C++ Volatiles): Adjust to describe C++ semantics only.
10720
10721 2010-08-20 Joseph Myers <joseph@codesourcery.com>
10722
10723 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
10724 be zero or nonzero.
10725 * doc/tm.texi: Regenerate.
10726 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
10727 * df-scan.c (df_get_exit_block_use_set), reginfo.c
10728 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
10729 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
10730 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
10731 to 1.
10732
10733 2010-08-20 Olivier Hainque <hainque@adacore.com>
10734
10735 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
10736 an extra nop past a sibling call at the very end.
10737
10738 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
10739
10740 PR bootstrap/45350
10741 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
10742 a comment.
10743
10744 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
10745
10746 * target.def (function_arg, function_incoming_arg): Remove const
10747 qualifier on CUMULATIVE_ARGS parameter.
10748 * targhooks.h (default_function_arg, default_function_incoming_arg):
10749 Likewise.
10750 * targhooks.c (default_function_arg, default_function_incoming_arg):
10751 Likewise.
10752 * config/i386/i386.c (ix86_function_arg): Likewise.
10753
10754 2010-08-19 Jakub Jelinek <jakub@redhat.com>
10755
10756 PR target/45336
10757 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
10758 SIGN_EXTENDs or ZERO_EXTENDs.
10759
10760 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
10761
10762 PR target/42172
10763 * combine.c (combine_validate_cost): New arg I0. All callers changed.
10764 Take its cost into account if nonnull.
10765 (insn_a_feeds_b): New static function.
10766 (combine_instructions): Look for four-insn combinations.
10767 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
10768 them into account when computing all_adjacent and looking for other
10769 uses.
10770 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
10771 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
10772 (try_combine): New arg I0. Handle four-insn combinations.
10773 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
10774 like ELIM_I1.
10775
10776 2010-08-19 Jason Merrill <jason@redhat.com>
10777
10778 PR c++/45307
10779 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
10780 if ctor is empty.
10781 (gimplify_modify_expr_rhs): Adjust.
10782
10783 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
10784
10785 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
10786 bitmap_bit_p.
10787 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
10788 * dominance.c (iterate_fix_dominators): Likewise.
10789 * dse.c (set_usage_bits): Likewise.
10790 (set_position_unneeded, record_store): Likewise.
10791 * gimple-fold.c (get_maxval_strlen): Likewise.
10792 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
10793 * ipa-inline.c (update_caller_keys): Likewise.
10794 * ipa-split.c (verify_non_ssa_vars): Likewise.
10795 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
10796 (close_type_exposed_parameter, close_type_full_escape): Likewise.
10797 (close_addressof_down): Likewise.
10798 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
10799 (setup_allocno_left_conflicts_size): Likewise.
10800 (ira_reassign_conflict_allocnos): Likewise.
10801 (ira_reassign_pseudos): Likewise.
10802 * ira-emit.c (change_loop): Likewise.
10803 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
10804 * lto-streamer-out.c (write_symbol): Likewise.
10805 * predict.c (expr_expected_value_1): Likewise.
10806 * regstat.c (regstat_bb_compute_ri): Likewise.
10807 * sel-sched.c (create_block_for_bookkeeping): Likewise.
10808 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
10809 * stmt.c (expand_case): Likewise.
10810 * tree-eh.c (emit_eh_dispatch): Likewise.
10811 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
10812 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
10813 Likewise.
10814 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
10815 (rdg_build_components): Likewise.
10816 * tree-object-size.c (collect_object_sizes_for): Likewise.
10817 * tree-sra.c (convert_callers): Likewise.
10818 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
10819 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
10820 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
10821
10822 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
10823
10824 * config/i386/i386.md (*lea_1): Use P mode iterator.
10825 (lea add splitter): Also handle DImode operands.
10826 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
10827 predicate. Do not use ix86_lea_for_add_ok.
10828 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
10829 (lea ashift splitter): Also handle DImode operands.
10830 (DImode lea ashift splitter): Remove splitter.
10831
10832 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
10833
10834 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
10835 ix86_binary_operator_ok.
10836
10837 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
10838
10839 PR rtl-optimization/44691
10840 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
10841 is not a register.
10842
10843 2010-08-19 Ian Bolton <ian.bolton@arm.com>
10844
10845 PR target/45070
10846 * config/arm/arm.c (arm_output_epilogue): Ensure that return
10847 value of size 1-3 is handled correctly.
10848
10849 2010-08-19 Ian Bolton <ian.bolton@arm.com>
10850
10851 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
10852 type for the conditional has wide enough range.
10853
10854 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
10855
10856 PR target/45327
10857 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
10858 ix86_binary_operator_ok.
10859
10860 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
10861
10862 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
10863 <default>: Swap operands 1 and 2 for alternative 2 to use existing
10864 code to output insn mnemonic. Fix comment.
10865 (*addsi_1_zext): Add r-r-0 alternative 1.
10866 <TYPE_LEA>: Split insn to lea.
10867 <default>: Handle alternative 1.
10868 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
10869 multi-level if_then_else RTX to set "type" attribute.
10870 <default>: Handle alternative 2.
10871 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
10872 Use cond RTX instead of multi-level if_then_else RTX to set
10873 "type" attribute.
10874 <default>: Handle alternatives 2 and 4.
10875 (lea splitters): Update calls to ix86_lea_for_add_ok.
10876
10877 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
10878 argument.
10879 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
10880
10881 2010-08-18 Richard Guenther <rguenther@suse.de>
10882
10883 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
10884 use operand helpers.
10885
10886 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
10887
10888 PR middle-end/45292
10889 * optabs.c (expand_bool_compare_and_swap): Expand pending
10890 pops before trying the optab.
10891
10892 2010-08-18 Yao Qi <yao@codesourcery.com>
10893
10894 PR target/45094
10895 * config/arm/arm.c (output_move_double): Fix typo generating
10896 instructions ('ldr'->'str').
10897
10898 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10899
10900 PR rtl-optimization/42575
10901 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
10902 live ranges.
10903
10904 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
10905
10906 * config/arm/arm-protos.h (arm_expand_sync): New.
10907 (arm_output_memory_barrier, arm_output_sync_insn): New.
10908 (arm_sync_loop_insns): New.
10909 * config/arm/arm.c (FL_ARCH7): New.
10910 (FL_FOR_ARCH7): Include FL_ARCH7.
10911 (arm_arch7): New.
10912 (arm_print_operand): Support %C markup.
10913 (arm_legitimize_sync_memory): New.
10914 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
10915 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
10916 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
10917 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
10918 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
10919 (arm_process_output_sync_insn, arm_output_sync_insn): New.
10920 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
10921 * config/arm/arm.h (struct arm_sync_generator): New.
10922 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
10923 (TARGET_HAVE_MEMORY_BARRIER): New.
10924 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
10925 * config/arm/arm.md: Include sync.md.
10926 (UNSPEC_MEMORY_BARRIER): New.
10927 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
10928 (VUNSPEC_SYNC_OP):New.
10929 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
10930 (sync_result, sync_memory, sync_required_value): New attributes.
10931 (sync_new_value, sync_t1, sync_t2): Likewise.
10932 (sync_release_barrier, sync_op): Likewise.
10933 (length): Add logic to length attribute defintion to call
10934 arm_sync_loop_insns when appropriate.
10935 * config/arm/sync.md: New file.
10936
10937 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10938
10939 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
10940 ENABLE_TREE_CHECKING.
10941 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
10942 and GCC >= 4.3.
10943
10944 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
10945
10946 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
10947 or optimizing for size, always avoid lea if possible.
10948
10949 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
10950
10951 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
10952
10953 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
10954 Dunmmy function with NULL return unless the target is
10955 OSX >= 10.6 (Darwin10).
10956
10957 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
10958
10959 * gcc.c (spec_function): Add remove-outfile.
10960 (remove_outfile_spec_function): New function.
10961 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
10962 * invoke.texi (replace-outfile): Document.
10963
10964 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
10965
10966 PR target/45296
10967 * reginfo.c (globalize_reg): Reject stack registers.
10968
10969 2010-08-17 Richard Guenther <rguenther@suse.de>
10970
10971 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
10972 list of conditional equivalences.
10973 (free_all_edge_infos): Adjust.
10974 (record_equivalences_from_incoming_edge): Likewise.
10975 (record_cond): Likewise.
10976 (build_and_record_new_cond): Likewise.
10977 (record_conditions): Likewise.
10978 (dom_opt_leave_block): Likewise.
10979
10980 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
10981
10982 * doc/invoke.texi (ms-extension): Add documentation.
10983
10984 2010-08-17 Richard Guenther <rguenther@suse.de>
10985
10986 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
10987
10988 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
10989
10990 PR c/40563
10991 * c-decl.c (diagnose_uninitialized_cst_member): New function.
10992 (finish_decl): Use it to issue a -Wc++-compat warning about
10993 uninitialized const field in struct or union.
10994
10995 (finish_struct): Use strip_array_types.
10996
10997 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10998
10999 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
11000 functions.
11001 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
11002 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
11003 call block_nreverse here.
11004 (blocks_nreverse): Rename decl temporary to block.
11005
11006 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
11007
11008 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
11009 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
11010 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
11011 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
11012 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
11013 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
11014 thumb2_iorsi3): Delete.
11015 (orsi_notsi_si): No longer a named pattern.
11016 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
11017 * config/arm/predicates.md (shift_amount_operand): New.
11018 (mult_operator): New.
11019 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
11020 attr enabled): New.
11021 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
11022 arch matches t2.
11023 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
11024 (not_shiftsi_compare0): Likewise, renamed from
11025 arm_notsi_shiftsi_compare0.
11026 (not_shiftsi_compare0_scratch): Likweise, renamed from
11027 arm_notsi_shiftsi_compare0_scratch.
11028 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
11029 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
11030 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
11031 so that the register alternative is disabled when the shift_operator
11032 is MULT. Use "M" as the constraint for constants.
11033 (arith_shiftsi splitter): Enable for TARGET_32BIT.
11034 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
11035 constraint for constants.
11036 (arith_shiftsi_compare0_scratch): Likewise.
11037 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
11038 Handle Thumb2 alternative.
11039
11040 2010-08-16 Joseph Myers <joseph@codesourcery.com>
11041
11042 * doc/options.texi (NoDriverArg): Document.
11043 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
11044 -MDX and -MMDX.
11045 * opt-functions.awk (switch_flags): Handle NoDriverArg.
11046 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
11047 marking for CL_NO_DRIVER_ARG options when in the driver.
11048 * opts.h (CL_NO_DRIVER_ARG): Define.
11049 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
11050 CL_COMMON): Update values.
11051
11052 2010-08-16 Joseph Myers <joseph@codesourcery.com>
11053
11054 * common.opt: Add driver options.
11055 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
11056 * doc/options.texi (Driver, RejectDriver): Document.
11057 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
11058 print_prog_name, print_multi_directory, print_sysroot,
11059 print_multi_os_directory, print_multi_lib,
11060 print_sysroot_headers_suffix, report_times, combine_flag,
11061 use_pipes, wrapper_string): Remove.
11062 (save_switch, driver_unknown_option_callback,
11063 driver_wrong_lang_callback, driver_post_handling_callback,
11064 driver_handle_option): New.
11065 (spec_lang, last_language_n_infiles): Make file-scope static
11066 instead of local to process_command.
11067 (process_command): Use decode_cmdline_options_to_array and
11068 read_cmdline_option for option processing. Compute have_c in
11069 prescan of decoded options.
11070 * opt-functions.awk (switch_flags): Handle Driver and
11071 RejectDriver.
11072 (var_type, var_type_struct): Handle Separate options as generating
11073 const char * variables.
11074 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
11075 CL_TARGET to be passed by caller if required.
11076 (decode_cmdline_options_to_array): Update comment.
11077 * opts.c (complain_wrong_lang): Handle options only valid for the
11078 driver.
11079 (decode_options): Update call to decode_cmdline_options_to_array.
11080 (print_filtered_help): Ignore driver-only options.
11081 (print_specific_help): Ignore CL_DRIVER.
11082 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
11083 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
11084 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
11085 Update values.
11086
11087 2010-08-16 Richard Guenther <rguenther@suse.de>
11088
11089 * tree-cfg.c (verify_types_in_gimple_reference): Verify
11090 TARGET_MEM_REF a bit.
11091 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
11092 (create_mem_ref_raw): Always create TMR_OFFSET, store the
11093 alias pointer type via it.
11094 (copy_mem_ref_info): Adjust.
11095 (maybe_fold_tmr): Likewise.
11096 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
11097 (reference_alias_ptr_type): Likewise.
11098 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
11099 adjust documentation of TMR_OFFSET operand.
11100 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
11101 use the alias pointer type.
11102 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
11103 initialize mem attrs but the TMR itself.
11104 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
11105 similar to MEM_REF.
11106 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
11107 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
11108 (unshare_and_remove_ssa_names): Likewise.
11109 (copy_ref_info): Adjust.
11110 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
11111 TARGET_MEM_REF case.
11112 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
11113 at TMR_ORIGINAL.
11114 * tree.h (TMR_ORIGINAL): Remove.
11115 * gimple.c (get_base_address): For TARGET_MEM_REF with a
11116 symbol return that.
11117 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
11118 with a symbol.
11119 (get_addr_base_and_unit_offset): Likewise.
11120 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
11121 TARGET_MEM_REFs.
11122 (indirect_ref_may_alias_decl_p): Likewise.
11123 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
11124
11125 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
11126
11127 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
11128 with GCC version 4.6, the default setting (when not optimizing
11129 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
11130 been changed to -fomit-frame-pointer.
11131
11132 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
11133
11134 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
11135 Darwin10. Do not link libgcc.a for Darwin >= 9.
11136
11137 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
11138
11139 * doc/invoke.texi (Warning Options): Fix terminology and markup
11140 in the description of how unknown warning options are handled.
11141
11142 2010-08-15 Ira Rosen <irar@il.ibm.com>
11143
11144 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
11145 in basic blocks.
11146 (vect_supportable_dr_alignment): Check alignment for basic blocks.
11147 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
11148 data references.
11149 (vect_bb_vectorization_profitable_p): New function.
11150 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
11151 check if it's worthwhile to vectorize the basic block.
11152
11153 2010-08-14 Anatoly Sokolov <aesok@post.ru>
11154
11155 * reload.h (register_move_cost, memory_move_secondary_cost,
11156 secondary_reload_class): Adjust prototype.
11157 * rtl.h (reg_class_subset_p): Adjust prototype.
11158 * reload.c (secondary_reload_class): Change arguments type from
11159 enum reg_class to reg_class_t. Change result type to reg_class_t.
11160 * reginfo.c (register_move_cost, reg_class_subset_p): Change
11161 arguments type from enum reg_class to reg_class_t.
11162 (memory_move_secondary_cost): Change arguments type from
11163 enum reg_class to reg_class_t. Change type of saved_flags to
11164 reg_class_t.
11165
11166 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11167 Remove macros.
11168 (mips_cost): Remove.
11169 (struct mips_rtx_cost_data): Moved to mips.c.
11170 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
11171 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
11172 (mips_cost): Make static.
11173 (mips_canonicalize_move_class): Change argument type to reg_class_t.
11174 Change result type to reg_class_t.
11175 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
11176 type from enum reg_class to reg_class_t.
11177 (mips_register_move_cost): Make static. Change arguments
11178 type from enum reg_class to reg_class_t.
11179 (mips_memory_move_cost): New function.
11180 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11181
11182 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
11183
11184 PR rtl-optimization/43358
11185 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
11186 of a single hard register, using simplify_subreg_regno to decide
11187 what that register should be.
11188
11189 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
11190
11191 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
11192 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
11193 (loongson_pmull<V_suffix>): Rename to...
11194 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
11195
11196 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
11197
11198 * configure.ac: Enable -fomit-frame-pointer on darwin
11199 which support dwarf2.
11200 * config/i386/i386.c (override_options): Same.
11201
11202 2010-08-13 Jie Zhang <jie@codesourcery.com>
11203
11204 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
11205
11206 2010-08-12 Joseph Myers <joseph@codesourcery.com>
11207
11208 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
11209 -MMD.
11210
11211 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
11212
11213 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
11214 up dot_prod pattern searching if a stmt is outside the loop.
11215
11216 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
11217 Uros Bizjak <ubizjak@gmail.com>
11218
11219 * config.gcc: Handle --enable-frame-pointer.
11220
11221 * configure.ac: Add --enable-frame-pointer.
11222 * configure: Regenerated.
11223
11224 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
11225 (override_options): If not configured with --enable-frame-pointer,
11226 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
11227 optimizing for size), -fasynchronous-unwind-tables and
11228 -maccumulate-outgoing-args by default.
11229
11230 2010-08-12 Jakub Jelinek <jakub@redhat.com>
11231
11232 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
11233
11234 PR middle-end/45262
11235 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
11236 -a overflows. Normalize the range.
11237
11238 2010-08-12 Richard Guenther <rguenther@suse.de>
11239
11240 PR tree-optimization/45232
11241 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
11242 for types with undefined overflow.
11243 (reassociate_bb): Allow re-associating of bit and min/max
11244 operations for types with undefined overflow.
11245 * tree-ssa-forwprop.c (associate_plusminus): New function.
11246 (tree_ssa_forward_propagate_single_use_vars): Call it.
11247
11248 2010-08-12 Richard Guenther <rguenther@suse.de>
11249
11250 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
11251 * tree-ssa-alias.c (get_ptr_info): Move ...
11252 * tree-ssanames.c (get_ptr_info): ... here. Initialize
11253 align and misalign fields conservatively.
11254 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
11255 derive alignment information.
11256 (evaluate_stmt): Derive alignment information from memory
11257 allocation functions.
11258 * tree.h (get_pointer_alignment): Make unsigned.
11259 * builtins.c (get_object_alignment): Use alignment information we
11260 have computed for pointers.
11261 (get_pointer_alignment): Likewise. Make conservative, return
11262 and unsigned value.
11263 (expand_builtin_strlen): Adjust.
11264 (expand_builtin_memcmp): Likewise.
11265 (expand_builtin_strcmp): Likewise.
11266 (expand_builtin_strncmp): Likewise.
11267 (get_builtin_sync_mem): Use at least mode alignment.
11268 (fold_builtin_memset): Adjust.
11269 (fold_builtin_memory_op): Likewise.
11270 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
11271 information also dump pointer alignment knowledge.
11272 (dump_gimple_stmt): Likewise.
11273
11274 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
11275
11276 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
11277 (EMPTY_FIELD_BOUNDARY): Remove.
11278 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
11279
11280 2010-08-12 Jakub Jelinek <jakub@redhat.com>
11281
11282 PR debug/45259
11283 * caller-save.c (save_call_clobbered_regs): Only swap notes with
11284 DEBUG_INSNs if n_regs_saved.
11285
11286 2010-08-12 Wei Guozhi <carrot@google.com>
11287
11288 PR target/44999
11289 * config/arm/arm.md (andsi3): Change to zero extension if possible.
11290 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
11291
11292 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
11293
11294 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
11295
11296 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
11297
11298 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11299
11300 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
11301 the case removed in the previous patch, when the only phi argument
11302 is defined in the same loop as the phi node itself. Handle it
11303 separately from the invariant case by both propagating it outside
11304 the region and replacing the phi node with an assign.
11305
11306 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11307
11308 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
11309 constant phi nodes with one argument are is_gimple_min_invariant
11310 and SSA_NAME_IS_DEFAULT_DEF.
11311
11312 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11313
11314 * graphite-cloog-util.c (oppose_constraint):
11315 Extend loop counter's value range (CLOOG_ORG).
11316 (cloog_matrix_to_ppl_constraint): Same.
11317 (new_Constraint_System_from_Cloog_matrix): Same.
11318 * graphite-cloog-compat.h (matrix_num_type): New.
11319
11320 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11321
11322 * graphite.c (graphite_initialize): Do not initialize
11323 CLooG and initialize the Parma Polyhedra Library
11324 manually when using CLOOG_ORG.
11325 (graphite_finalize): Do not finalize CLooG and finalize
11326 the Parma Polyhedra Library manually when using CLOOG_ORG.
11327 * graphite-cloog-compat.h (cloog_initialize): Hide function
11328 when using CLOOG_ORG.
11329 (cloog_finalize): Same.
11330
11331 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11332
11333 * graphite-clast-to-gimple.c (free_scattering): Change
11334 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
11335 (CLOOG_ORG).
11336 (build_cloog_prog): Same.
11337 * graphite-cloog-compat.h (cloog_domain): Removed.
11338 (cloog_scattering): New.
11339 (cloog_set_domain): Removed.
11340 (cloog_set_scattering): New.
11341 (cloog_next_domain): Removed.
11342 (cloog_next_scattering): New.
11343 (cloog_set_next_domain): Removed.
11344 (cloog_set_next_scattering): New.
11345 (CloogScatteringList): New.
11346 (CloogScattering): New.
11347 (cloog_scattering_free): New.
11348 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
11349 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
11350 New.
11351
11352 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11353
11354 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
11355 CloogState.
11356 (set_cloog_options): Same.
11357 (print_clast_stmt): Same.
11358 (scop_to_clast): Same.
11359 (print_generated_program): Same.
11360 (gloog): Same.
11361 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
11362 (scop_to_clast): Extend with CloogState.
11363 * graphite-cloog-util.c: Include graphite-cloog-compat.h
11364 (new_Cloog_Domain_from_ppl_Polyhedron):
11365 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
11366 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
11367 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11368 * graphite-cloog-util.h (build_cloog_prog): Same.
11369 * graphite-cloog-copat.h (build_cloog_prog): New.
11370 (CloogState): New.
11371 (cloog_state_malloc): New.
11372 (cloog_state_free): New.
11373 (cloog_loop_malloc): New.
11374 (cloog_options_malloc): New.
11375 (cloog_statement_alloc): New.
11376 (cloog_domain_from_cloog_matrix): New.
11377 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
11378 (new_Cloog_Domain_from_ppl_Polyhedron): New.
11379
11380 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11381
11382 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
11383 type of NAME now depends on used CLooG version.
11384 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
11385 (gcc_type_for_clast_expr): Same.
11386 (print_clast_stmt): Replace pprint with clast_pprint.
11387 * graphite-cloog-compat.h: Provide compatibility macros for
11388 CLooG Legacy.
11389 (clast_name_p): New.
11390 (clast_expr_term): New.
11391 (clast_expr_red): New.
11392 (clast_expr_bin): New.
11393 (clast_pprint): New.
11394
11395 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11396
11397 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
11398 compatible to newer CLooG releases (CLOOG_ORG).
11399 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
11400 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
11401 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
11402 (build_cloog_prog) : New.
11403 (cloog_program_extract_scalars): New.
11404 (cloog_program_scatter): New.
11405
11406 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11407
11408 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
11409 conditionally (CLOOG_ORG).
11410 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
11411 (cloog_statement_usr): New.
11412 (cloog_domain): Same.
11413 (cloog_set_domain): Same.
11414 (cloog_next_domain): Same.
11415 (cloog_set_next_domain): Same.
11416 (cloog_program_nb_scattdims): Same.
11417 (cloog_program_set_nb_scattdims): Same.
11418 (cloog_program_names): Same.
11419 (cloog_program_set_names): Same.
11420 (cloog_program_set_context): Same.
11421 (cloog_program_set_loop): Same.
11422 (cloog_program_blocklist): Same.
11423 (cloog_program_set_blocklist): Same.
11424 (cloog_program_scaldims): Same.
11425 (cloog_program_set_scaldims): Same.
11426 (cloog_names_nb_parameters): Same.
11427 (cloog_names_set_nb_parameters): Same.
11428 (cloog_names_parameters): Same.
11429 (cloog_names_set_parameters): Same.
11430 (cloog_names_set_nb_iterators): Same.
11431 (cloog_names_set_iterators): Same.
11432 (cloog_names_set_nb_scattering): Same.
11433 (cloog_names_set_scattering): Same.
11434 (cloog_statement_set_usr): Same.
11435 (cloog_loop_set_next): Same.
11436 (cloog_loop_set_domain): Same.
11437 (cloog_loop_set_block): Same.
11438 (cloog_block_list_next): Same.
11439 (cloog_block_list_set_next):
11440 (cloog_block_list_set_block): Same.
11441
11442 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11443
11444 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
11445 a bool.
11446 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
11447 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
11448 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
11449 when something has been changed.
11450 (rewrite_commutative_reductions_out_of_ssa): Same.
11451
11452 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11453
11454 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
11455 handle the case when def is in the sese region.
11456 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
11457 for invariant expressions.
11458 (rewrite_cross_bb_phi_deps): Removed.
11459 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
11460 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
11461 rewrite_cross_bb_phi_deps.
11462
11463 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11464
11465 * graphite-sese-to-poly.c
11466 (rewrite_commutative_reductions_out_of_ssa_loop): Call
11467 scev_analyzable_p only on is_gimple_reg
11468
11469 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11470
11471 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
11472 (rewrite_close_phi_out_of_ssa): Propagate constant values or
11473 parametric expressions outside the scop region.
11474 (rewrite_cross_bb_scalar_deps): Same.
11475 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
11476
11477 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11478
11479 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
11480 SSA_NAME_DEF_STMT only on SSA_NAMEs.
11481
11482 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11483
11484 * tree-scalar-evolution.c (instantiate_scev_name): Do not
11485 instantiate default definitions.
11486
11487 2010-08-11 Vladimir Kargov <kargov@gmail.com>
11488 Sebastian Pop <sebastian.pop@amd.com>
11489
11490 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
11491 (loop_exits_from_bb_p): New.
11492 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
11493 (loop_exits_from_bb_p): Declared.
11494 * graphite-scop-detection.c (scopdet_basic_block_info): Call
11495 loop_exits_to_bb_p.
11496
11497 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11498
11499 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
11500 extra parameter for the region. Call scev_analyzable_p.
11501 (rewrite_reductions_out_of_ssa): Update call to
11502 rewrite_close_phi_out_of_ssa.
11503 (rewrite_cross_bb_phi_deps): Same.
11504 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
11505 parameter for the region. Call scev_analyzable_p.
11506 (rewrite_commutative_reductions_out_of_ssa): Update call to
11507 rewrite_commutative_reductions_out_of_ssa_loop.
11508
11509 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11510
11511 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
11512
11513 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11514
11515 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
11516 SSA scalar phi nodes that can be scev_analyzable_p.
11517
11518 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11519
11520 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
11521 handle SSA_NAME_IS_DEFAULT_DEF.
11522
11523 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11524
11525 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
11526
11527 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11528
11529 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
11530 case non close-phi nodes with one argument.
11531
11532 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11533
11534 * sese.h (scev_analyzable_p): Scevs could be expressions without
11535 chrecs and still be scev_analyzable_p.
11536
11537 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11538
11539 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11540
11541 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11542
11543 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
11544 * cfgloop.h (struct loop): Remove single_iv field.
11545 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
11546 (scop_canonicalize_loops): Removed.
11547 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
11548 over all the loop phi nodes in loop->header.
11549 (build_poly_scop): Remove use of scop_canonicalize_loops.
11550
11551 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11552
11553 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
11554 handle GIMPLE_CALL.
11555
11556 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11557
11558 * tree-chrec.c (chrec_apply): Should only apply to the specified
11559 variable. Also handle multivariate chains of recurrences that
11560 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
11561
11562 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11563
11564 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
11565 (debug_clast_name_indexes_1): Removed.
11566 (debug_clast_name_indexes): Removed.
11567 (pbb_to_depth_to_oldiv): Removed.
11568 (build_iv_mapping): Replace the use of rename_map with iv_map.
11569 (translate_clast_user): Remove uses of rename_map. Allocate and
11570 free iv_map.
11571 (translate_clast_for_loop): Remove uses of rename_map.
11572 (translate_clast_for): Same.
11573 (translate_clast_guard): Same.
11574 (translate_clast): Same.
11575 (gloog): Same.
11576 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
11577 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
11578 * sese.c (set_rename): Now static.
11579 (rename_variables_in_stmt): Removed.
11580 (rename_uses): New.
11581 (is_parameter): Removed.
11582 (is_iv): Removed.
11583 (expand_scalar_variables_call): Removed.
11584 (expand_scalar_variables_ssa_name): Removed.
11585 (expand_scalar_variables_expr): Removed.
11586 (expand_scalar_variables_stmt): Removed.
11587 (expand_scalar_variables): Removed.
11588 (rename_variables): Removed.
11589 (remove_condition): Removed.
11590 (get_true_edge_from_guard_bb): Removed.
11591 (get_false_edge_from_guard_bb): Removed.
11592 (struct igp): Removed.
11593 (default_before_guard): Removed.
11594 (convert_for_phi_arg): Removed.
11595 (add_guard_exit_phis): Removed.
11596 (insert_guard_phis): Removed.
11597 (graphite_copy_stmts_from_block): Now also uses iv_map and a
11598 region. Do not copy conditions. Do not copy induction variables.
11599 Call rename_uses.
11600 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
11601 the translated statement. Use the iv_map for the induction
11602 variable renaming.
11603 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
11604 (set_rename): Removed declaration.
11605 (scev_analyzable_p): ...here.
11606 * tree-chrec.c (chrec_apply_map): New.
11607 * tree-chrec.h (chrec_apply_map): Declared.
11608
11609 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11610
11611 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
11612 insert_loop_close_phis.
11613 * sese.c (name_defined_in_loop_p): Removed.
11614 (expr_defined_in_loop_p): Removed.
11615 (alive_after_loop): Removed.
11616 (close_phi_not_yet_inserted_p): Removed.
11617 (struct alep): Removed.
11618 (add_loop_exit_phis): Removed.
11619 (insert_loop_close_phis): Removed.
11620
11621 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11622
11623 * graphite-cloog-util.c
11624 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
11625 * graphite-poly.c
11626 (psct_scattering_dim_for_loop_depth): Same.
11627
11628 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11629
11630 * graphite-cloog-util.h: Added cloog.h.
11631 * graphite-blocking.c: Removed cloog.h.
11632 * graphite-dependences.c: Same.
11633 * graphite-interchange.c: Same.
11634 * graphite-poly.c: Same.
11635 * graphite-ppl.c: Same.
11636 * graphite-scop-detection.c: Same.
11637 * graphite-sese-to-poly.c:
11638 Removed cloog.h.
11639 Removed graphite-clast-to-gimple.h.
11640 (check_poly_representation): Removed (unused).
11641 * graphite-sese-to-poly.h
11642 (check_poly_representation): Removed (unused).
11643
11644 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11645
11646 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
11647 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
11648 (graphite-cloog-util.o): New.
11649 (graphite-ppl.o): Added graphite-cloog-util.h.
11650 * graphite-clast-to-gimple.c:
11651 Added graphite-cloog-util.h to include statements.
11652 * graphite-cloog-util.c: New.
11653 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
11654 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11655 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11656 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11657 (insert_constraint_into_matrix): Same.
11658 (ppl_Constrain_System_number_of_constraints): Same.
11659 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11660 (oppose_constraint): Same.
11661 (cloog_matrix_to_ppl_constraint): Same.
11662 (new_Constraint_System_from_Cloog_Matrix): Same.
11663 * graphite-cloog-util.h: New.
11664 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
11665 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11666 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11667 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11668 (insert_constraint_into_matrix): Same.
11669 * graphite-ppl.c:
11670 Added graphite-cloog-util.h to include statements.
11671 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
11672 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11673 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11674 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11675 (insert_constraint_into_matrix): Same.
11676 (ppl_Constrain_System_number_of_constraints): Same.
11677 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11678 (oppose_constraint): Same.
11679 (cloog_matrix_to_ppl_constraint): Same.
11680 (new_Constraint_System_from_Cloog_Matrix): Same.
11681 * graphite-ppl.h:
11682 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
11683 graphite-cloog-util.h.
11684 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11685 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11686 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11687 (insert_constraint_into_matrix): Same.
11688
11689 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11690
11691 * graphite-clast-to-gimple.c
11692 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
11693 (precision_for_interval): Same.
11694 (gcc_type_for_interval): Same.
11695 (compute_type_for_level): Same.
11696 * graphite-interchange.c
11697 (lst_interchange_profitable_p): Same.
11698 * graphite-poly.c
11699 (psct_scattering_dim_for_loop_depth): Same.
11700 * graphite-ppl.c
11701 (ppl_max_for_le_pointset): Same.
11702 (ppl_min_for_le_pointset): Same.
11703
11704 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11705
11706 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
11707 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
11708
11709 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11710
11711 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
11712 rewrite_close_phi_out_of_ssa.
11713
11714 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11715
11716 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
11717
11718 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11719
11720 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
11721 rename_map.
11722 * sese.c (debug_rename_map): Same.
11723 (get_rename): Same.
11724 (set_rename): Same.
11725 (rename_variables_in_stmt): Same.
11726 (expand_scalar_variables_call): Same.
11727 (expand_scalar_variables_ssa_name): Same.
11728 (expand_scalar_variables_expr): Same.
11729 (expand_scalar_variables_stmt): Same.
11730 (expand_scalar_variables): Same.
11731 (rename_variables): Same.
11732 (graphite_copy_stmts_from_block): Same.
11733 (copy_bb_and_scalar_dependences): Same.
11734
11735 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11736
11737 * graphite-clast-to-gimple.c (copy_renames): Removed.
11738 (translate_clast_for): Do not call copy_renames.
11739 (translate_clast_guard): Same.
11740
11741 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11742
11743 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
11744 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
11745 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
11746 before rewrite_cross_bb_scalar_deps.
11747
11748 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11749
11750 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
11751 Early return in when flag_associative_math is not set.
11752
11753 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11754
11755 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
11756 of SSA copies on edges except for loop->latch.
11757
11758 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11759
11760 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
11761 Split out of rewrite_reductions_out_of_ssa.
11762 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
11763 Declared.
11764 * graphite.c (graphite_transform_loops): Call it.
11765
11766 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11767
11768 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
11769
11770 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
11771
11772 * dbgcnt.def (graphite_scop): New counter.
11773 * graphite.c: Include dbgcnt.h.
11774 (graphite_transform_loops): Use new counter to limit transformations.
11775 * Makefile.in (graphite.o): Depend on DBGCNT_H.
11776
11777 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11778
11779 * passes.c (init_optimization_passes): Add pass_graphite.
11780 Schedule a pass_copy_prop before pass_graphite_transforms.
11781 * timevar.def (TV_GRAPHITE): Declared.
11782 * tree-pass.h (pass_graphite): Declared.
11783 * tree-ssa-loop.c (pass_graphite): New.
11784
11785 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11786
11787 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
11788 Remove calls to rename_nb_iterations and rename_sese_parameters.
11789 * graphite-clast-to-gimple.h (gloog): Update declaration.
11790 * graphite.c (graphite_transform_loops): Update call to gloog.
11791 * sese.c (rename_variables_in_expr): Removed.
11792 (rename_nb_iterations): Removed.
11793 (rename_sese_parameters): Removed.
11794 * sese.h (rename_nb_iterations): Removed.
11795 (rename_sese_parameters): Removed.
11796
11797 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11798
11799 * graphite-clast-to-gimple.c (gloog): Remove call to
11800 sese_adjust_liveout_phis.
11801 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
11802 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
11803 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
11804 rewrite_phi_out_of_ssa.
11805 * sese.c (get_vdef_before_sese): Removed.
11806 (sese_adjust_vphi): Removed.
11807 (sese_adjust_liveout_phis): Removed.
11808 * sese.h (sese_adjust_liveout_phis): Removed.
11809
11810 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11811
11812 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
11813 argument for the place after which to insert the out of SSA copy.
11814 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
11815 (rewrite_phi_out_of_ssa): Same.
11816 (rewrite_cross_bb_scalar_deps): Same.
11817 (insert_copyout): Removed.
11818 (insert_copyin): Removed.
11819 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
11820 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
11821 insert_copyin.
11822
11823 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11824
11825 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
11826 (rewrite_reductions_out_of_ssa): Same.
11827 (rewrite_commutative_reductions_out_of_ssa): Same.
11828 (build_poly_scop): Do not call these functions.
11829 * graphite-sese-to-poly.h (build_poly_scop): Declared.
11830 (rewrite_reductions_out_of_ssa): Declared.
11831 (rewrite_commutative_reductions_out_of_ssa): Declared.
11832 * graphite.c (graphite_transform_loops): Call on every scop
11833 rewrite_commutative_reductions_out_of_ssa before calling
11834 rewrite_reductions_out_of_ssa and build_scop_bbs.
11835
11836 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11837
11838 * graphite-dependences.c (dot_deps): Make system call to dotty run
11839 in background.
11840 (dot_deps_stmt): Same.
11841 * graphite-poly.c (dot_lst): Same.
11842
11843 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11844
11845 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
11846 phi_arg_in_outermost_loop.
11847 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
11848 (remove_invariant_phi): Same.
11849
11850 2010-08-11 Anatoly Sokolov <aesok@post.ru>
11851
11852 * target.def (output_addr_const_extra): New hook.
11853 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
11854 * doc/tm.texi: Regenerate.
11855 * targhooks.c (default_asm_output_addr_const_extra): New function.
11856 * targhooks.h (default_asm_output_addr_const_extra): Declare.
11857 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
11858 target hook.
11859
11860 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11861 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
11862 * config/i386/i386.h (output_addr_const_extra): Rename to...
11863 (i386_asm_output_addr_const_extra): ...this. Make static.
11864 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11865
11866 2010-08-11 Richard Henderson <rth@redhat.com>
11867
11868 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
11869
11870 2010-08-11 Nick Clifton <nickc@redhat.com>
11871
11872 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
11873 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
11874 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11875 stormy16-lib2-cmpsi.c.
11876
11877 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
11878 -O2.
11879
11880 2010-08-11 Joseph Myers <joseph@codesourcery.com>
11881
11882 * opts.h (struct cl_option_handler_func): Make handler take
11883 cl_decoded_option structure as parameter, not individual elements.
11884 (struct cl_option_handlers): Make callbacks take cl_decoded_option
11885 structure as parameter, not individual elements.
11886 (handle_option): Take cl_decoded_option structure as parameter,
11887 not individual elements.
11888 (handle_generated_option): Declare.
11889 * opts-common.c (handle_option): Take cl_decoded_option structure
11890 as parameter, not individual elements. Update calls to callback
11891 and handler functions.
11892 (handle_generated_option): New.
11893 (read_cmdline_option): Update calls to callback functions and
11894 handle_option.
11895 * opts.c (common_handle_option, complain_wrong_lang,
11896 unknown_option_callback, post_handling_callback,
11897 lang_handle_option, target_handle_option): Take cl_decoded_option
11898 structure as parameter, not individual elements.
11899 (lang_handle_option, target_handle_option, common_handle_option):
11900 Assert option has at most one argument.
11901 (enable_warning_as_error): Call handle_generated_option instead of
11902 handle_option. Do not pass -Werror argument as argument of
11903 generated option.
11904
11905 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11906
11907 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11908 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11909 (SUBWORD_BOOL_CAS): Likewise.
11910 (SUBWORD_SYNC_OP): Likewise.
11911 (SUBWORD_TEST_AND_SET): Likewise.
11912 (FETCH_AND_OP_WORD): Parenthesise INF_OP
11913 (SUBWORD_SYNC_OP): Likewise.
11914 (OP_AND_FETCH_WORD): Likewise.
11915
11916 2010-08-10 Xinliang David Li <davidxl@google.com>
11917
11918 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
11919 compute max/min offset in address.
11920
11921 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
11922
11923 * ira-live.c: Include sbitmap.h.
11924 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
11925 Compress live ranges even more.
11926
11927 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11928
11929 * coverage.c (ctr_labels): Delete.
11930
11931 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11932
11933 PR bootstrap/45177
11934 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
11935 test here from arm_gen_load_multiple_1.
11936 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
11937 multiple_operation_profitable_p.
11938
11939 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11940
11941 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
11942 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
11943
11944 2010-08-10 Richard Henderson <rth@redhat.com>
11945
11946 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
11947 after saving registers. Assert that SSE registers are only saved
11948 with a sufficiently aligned frame.
11949 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
11950 remove stack_realign_fp handling.
11951 (ix86_expand_prologue): Save int registers before stack_realign_fp,
11952 and do not mark the stack alignment as frame related.
11953 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
11954
11955 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
11956 saves when re-aligning the stack.
11957
11958 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11959
11960 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
11961 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
11962 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
11963
11964 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11965
11966 * dwarf2out.c (struct die_struct): Move die_tag to the end.
11967
11968 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
11969
11970 * config/arm/iterators.md: New file.
11971 * config/arm/arm.md: Include iterators.md.
11972 (QHSI): Move to new file.
11973 (LTUGEU, cnb, optab, ior_xor): Likewise.
11974 * config/arm/iwmmxt.md (VMMX): Move to new file.
11975 (VSHFT, MMX_char): Likewise.
11976 * config/arm/neon.md (VD): Move to new file.
11977 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
11978 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
11979 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
11980 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
11981 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
11982 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
11983 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
11984 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
11985 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
11986 (Is_d_reg, V_mode_nunits): Likewise.
11987 * config/arm/vec-common.md (VALL): Move to new file.
11988 (VALLW, VINT, VINTW): Likewise.
11989
11990 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11991
11992 PR middle-end/45182
11993 * combine.c (make_compound_operation): Don't try to convert
11994 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
11995
11996 2010-08-10 Richard Guenther <rguenther@suse.de>
11997
11998 * tree.h (get_object_alignment): Adjust prototype.
11999 * builtins.c (get_object_alignment): Return unsigned int,
12000 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
12001 and TARGET_MEM_REF properly.
12002 (get_pointer_alignment): Adjust.
12003 * emit-rtl.c (get_mem_align_offset): Adjust comment.
12004 (set_mem_attributes_minus_bitpos): Adjust.
12005 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
12006
12007 2010-08-10 Richard Guenther <rguenther@suse.de>
12008
12009 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
12010 (copy_prop_visit_assignment): Simplify.
12011 (copy_prop_visit_stmt): Also visit assignments from
12012 constants.
12013 (copy_prop_visit_phi_node): Use operand_equal_p.
12014
12015 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
12016
12017 * ipa-split.c (find_split_points): Free stack.
12018
12019 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
12020
12021 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
12022 * tree.c (tree_node_kind): Delete corresponding entries.
12023
12024 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
12025
12026 * alias.c (may_alias_p): Remove unused ret.
12027
12028 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
12029
12030 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
12031 alias_sets_conflict_p.
12032 (walk_mems_1): Moved from alias.c.
12033 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
12034 in alias.c.
12035 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
12036 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
12037 * alias.c (walk_mems_2): Moved to ddg.c.
12038 (walk_mems_1): Ditto.
12039 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
12040 to ddg.c.
12041 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
12042 disambiguation.
12043 *(may_alias_p): New function to check whether two memory expression
12044 may alias or not. Currently used in buidling inter-iteration memory
12045 dependence.
12046 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
12047 (insn_alias_sets_conflict_p): Removed
12048 *rtl.h (may_alias_p): New function prototype.
12049
12050 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
12051
12052 * tree.c (nreverse): Assert that we don't have a BLOCK.
12053
12054 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
12055
12056 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
12057 * config/arm/arm.c (arm_get_pcs_model): Likewise.
12058 * config/avr/avr.c (init_cumulative_args): Likewise.
12059 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12060 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12061 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
12062 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
12063 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
12064 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12065 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12066 * dwarf2out.c (gen_subprogram_die): Likewise.
12067 * function.c (allocate_struct_function): Likewise.
12068 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
12069 (deserves_ellipsis): Delete.
12070
12071 2010-08-09 Richard Guenther <rguenther@suse.de>
12072
12073 * tree-ssa-copy.c (cached_last_copy_of): Remove.
12074 (valueize_val): New function.
12075 (get_last_copy_of): Remove.
12076 (set_copy_of_val): Simplify.
12077 (dump_copy_of): Likewise.
12078 (copy_prop_visit_cond_stmt): Use valueize_val.
12079 (copy_prop_visit_phi_node): Properly handle unvisited names.
12080 Drop code managing copy-of chains.
12081 (init_copy_prop): Adjust.
12082 (fini_copy_prop): Likewise.
12083 (execute_copy_prop): Remove obsolete comment.
12084
12085 2010-08-09 Richard Guenther <rguenther@suse.de>
12086
12087 PR middle-end/44632
12088 * function.c (gimplify_parameters): Do not clear addressable
12089 bit of the original parameter.
12090
12091 2010-08-09 Richard Guenther <rguenther@suse.de>
12092
12093 PR middle-end/45212
12094 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
12095 alignment from MEM_REF offset only if we took it from the
12096 base object.
12097
12098 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
12099
12100 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
12101
12102 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
12103
12104 * c-tree.h (build_arg_info): Declare.
12105 * c-decl.c (build_arg_info): Define.
12106 (get_parm_info): Call it. Delete initialization code.
12107 * c-parser.c (c_parser_parms_declarator): Likewise.
12108 (c_parser_parms_list_declaractor): Likewise.
12109
12110 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
12111
12112 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
12113 (struct c_arg_info): Change type of tags field.
12114 * c-decl.c (grokdeclarator): Update for changed type of tags field.
12115 (get_parm_info): Likewise.
12116 (store_parm_decls_newstyle): Likewise.
12117
12118 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
12119
12120 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
12121 (branch_island_list): Delete.
12122 (branch_islands): Declare.
12123 (add_compiler_branch_island): Adjust for branch_islands instead of
12124 branch_island_list.
12125 (macho_branch_islands): Likewise.
12126 (no_previous_def): Likewise.
12127 (get_prev_label): Likewise.
12128
12129 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12130
12131 PR boehm-gc/34544
12132 * gthr-posix.h (__gthread_start): Delete.
12133 (__gthread_active_init): Use pthread_default_stacksize_np instead of
12134 pthread_create to determine if hpux pthreads are active.
12135 * gthr-posix95.h (__gthread_start): Delete.
12136 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
12137
12138 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
12139
12140 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
12141 _WIN64 not expanded.
12142
12143 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
12144 H.J. Lu <hongjiu.lu@intel.com>
12145
12146 PR target/45213
12147 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
12148 to output 32bit SFmode immediate as 8 byte sign extended value.
12149
12150 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
12151
12152 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
12153 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
12154 (SUBWORD_BOOL_CAS): Likewise.
12155 (SUBWORD_SYNC_OP): Likewise.
12156 (SUBWORD_TEST_AND_SET): Likewise.
12157 (FETCH_AND_OP_WORD): Parenthesise INF_OP
12158 (SUBWORD_SYNC_OP): Likewise.
12159 (OP_AND_FETCH_WORD): Likewise.
12160
12161 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12162
12163 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
12164 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
12165 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
12166 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
12167 generic part.
12168 (cortex_a9_sched_adjust_cost): New function.
12169 (xscale_sched_adjust_cost): New function.
12170 * config/arm/arm-protos.h (struct tune_params): New field
12171 sched_adjust_cost.
12172 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
12173
12174 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
12175
12176 PR target/44942
12177 * config/sparc/sparc.c (function_arg_advance): Always take into account
12178 the padding, if any.
12179
12180 2010-08-06 Richard Guenther <rguenther@suse.de>
12181
12182 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
12183 (dump_lattice_value): Dump it.
12184 (get_default_value): Adjust.
12185 (get_constant_value): Likewise.
12186 (set_value_varying): Likewise.
12187 (set_lattice_value): Make sure to not go up the lattice
12188 with bitwise constant values.
12189 (get_value_for_expr): Handle ADDR_EXPRs.
12190 (value_to_double_int): New function.
12191 (get_value_from_alignment): Likewise.
12192 (do_dbg_cnt): Adjust.
12193 (ccp_lattice_meet): Handle partially constant values.
12194 (bit_value_unop_1): New function.
12195 (bit_value_binop_1): Likewise.
12196 (bit_value_unop): Likewise.
12197 (bit_value_binop): Likewise.
12198 (evaluate_stmt): Track partially constant values if
12199 flag_tree_bit_ccp is set.
12200 (ccp_fold_stmt): Dump if we folded a predicate.
12201 (ccp_visit_stmt): Adjust.
12202 * common.opt (ftree-bit-ccp): New flag.
12203 * doc/invoke.texi (ftree-bit-ccp): Document.
12204 * opts.c (decode_options): Enable bit-CCP at -O1.
12205
12206 2010-08-06 Alan Modra <amodra@gmail.com>
12207
12208 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
12209 and -mrelocatable-lib description.
12210
12211 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
12212
12213 From Martin Thuresson <martint@google.com>
12214 * postreload.c (reload_cse_simplify_operands): Use
12215 SET_REGNO_RAW instead of SET_REGNO.
12216 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
12217 SET_REGNO.
12218 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
12219 instead of SET_REGNO.
12220 * rtl.h (SET_REGNO_RAW): New macro.
12221
12222 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
12223
12224 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
12225 computations. Fix formatting issues.
12226 (num_sign_bit_copies1): Likewise.
12227 (canonicalize_condition): Likewise.
12228
12229 2010-08-05 Richard Henderson <rth@redhat.com>
12230
12231 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
12232 (floor_log2): Use clz_hwi.
12233 (exact_log2): Use ctz_hwi.
12234 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
12235 * builtins.c (fold_builtin_bitop): Use them.
12236 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12237 * combine.c (get_pos_from_mask): Use ctz_hwi.
12238 * double-int.c (double_int_ctz): Likewise.
12239 * explow.c (force_reg): Likewise.
12240 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
12241
12242 2010-08-05 Richard Henderson <rth@redhat.com>
12243
12244 PR target/45189
12245 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
12246 the alignment constant is properly sign-extended.
12247
12248 2010-08-05 Richard Guenther <rguenther@suse.de>
12249
12250 * expr.c (store_expr): Use emit_block_move only if both
12251 source and target are MEMs. Use store_bit_field if only
12252 the target is a MEM.
12253
12254 2010-08-05 Richard Henderson <rth@redhat.com>
12255
12256 PR debug/45188
12257 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
12258 (INCOMING_RETURN_ADDR_RTX): Likewise.
12259 (dwarf2out_do_frame): Remove conditional compilation.
12260 (dwarf2out_frame_init): Likewise.
12261
12262 2010-08-05 Nicolas Setton <setton@adacore.com>
12263
12264 * gcov.c (flag_display_progress): New static variable.
12265 (main): Display progress info on standard output if requested.
12266 (options): Add -d/--display-progress.
12267 (print_usage): Print them.
12268 (process_args): Handle them.
12269 * doc/gcov.texi: Document them.
12270
12271 2010-08-05 Martin Jambor <mjambor@suse.cz>
12272
12273 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
12274 (ipcp_insert_stage): Redirect only edges not flagged with
12275 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
12276 discovered constants.
12277
12278 2010-08-05 Martin Jambor <mjambor@suse.cz>
12279
12280 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
12281 (struct ipa_param_descriptor): New fields types and
12282 cannot_devirtualize.
12283 (ipa_param_cannot_devirtualize_p): New function.
12284 (ipa_param_types_vec_empty): Likewise.
12285 (ipa_make_edge_direct_to_target): Declare.
12286 * ipa-cp.c: Fixed first stage driver name in initial comment,
12287 described devirtualization there too.
12288 (ipcp_analyze_node): Call ipa_analyze_params_uses.
12289 (ipcp_print_all_lattices): Print devirtualization info.
12290 (ipa_set_param_cannot_devirtualize): New function.
12291 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
12292 lattice to BOTTOM.
12293 (ipcp_init_stage): Merged into...
12294 (ipcp_generate_summary): ...its caller.
12295 (ipcp_change_tops_to_bottom): Also process type lists.
12296 (ipcp_add_param_type): New function.
12297 (ipcp_copy_types): Likewise.
12298 (ipcp_propagate_types): Likewise.
12299 (ipcp_propagate_stage): Also propagate types.
12300 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
12301 Also return true if propagated types require it.
12302 (ipcp_update_callgraph): Dump redirection info.
12303 (ipcp_process_devirtualization_opportunities): New function.
12304 (ipcp_const_param_count): Include known type information.
12305 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
12306 on new node. Fixed formatting.
12307 * ipa-prop.c (make_edge_direct_to_target): Renamed to
12308 ipa_make_edge_direct_to_target and changed all callers. Made
12309 externally visible.
12310 (ipa_node_duplication_hook): Duplicate types vector.
12311 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
12312 redirect outgoing calls for which we can't get a decl from the
12313 statement. Check that we can get a decl from the call statement.
12314 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
12315 ipa_analyze_params_uses only when ipa-cp is disabled.
12316 * tree-inline.c (get_indirect_callee_fndecl): Removed.
12317 (expand_call_inline): Do not call get_indirect_callee_fndecl.
12318 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
12319 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
12320
12321 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
12322
12323 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
12324 temporary. Emit move from temporary to accum, so REG_EQUAL note will
12325 be attached to this insn in correct mode.
12326
12327 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
12328
12329 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
12330 using REGNO of base_reg directly.
12331
12332 2010-08-05 Jie Zhang <jie@codesourcery.com>
12333
12334 PR tree-optimization/45144
12335 * tree-sra.c (type_consists_of_records_p): Return false
12336 if the record contains bit-field.
12337
12338 2010-08-04 Richard Henderson <rth@redhat.com>
12339
12340 * config/i386/i386.c (struct ix86_frame): Remove padding and
12341 to_allocate members.
12342 (ix86_compute_frame_layout): Don't store them.
12343 (ix86_can_use_return_insn_p): Use a more direct and more obviously
12344 correct condition for the position of the stack pointer.
12345 (ix86_expand_prologue): Compute remaining stack allocation based
12346 on the ultimate stack pointer offset.
12347 (ix86_expand_epilogue): Use more obvious expressions testing for
12348 the stack pointer already pointing to the saved registers.
12349
12350 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
12351 duplication deconstructing the frame pointer. Simplify
12352 deallocation of the local stack frame.
12353
12354 * reg-notes.def (CFA_EXPRESSION): New.
12355 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12356 (dwarf2out_frame_debug_cfa_expression): New.
12357 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
12358
12359 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
12360 * config/i386/i386.c (ix86_expand_prologue): Set it.
12361 (ix86_expand_epilogue): Clear it.
12362 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
12363 context, add REG_CFA_EXPRESSION notes.
12364
12365 * config/i386/i386.h (struct machine_frame_state): Rename from
12366 machine_cfa_state. Add members tracking SP and FP regardless
12367 of the current CFA register.
12368 (ix86_cfa_state): Remove.
12369 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
12370 and sse_reg_save_offset members.
12371 (ix86_compute_frame_layout): Set them.
12372 (gen_push): Increment sp_offset too.
12373 (choose_baseaddr_len, choose_baseaddr): New.
12374 (ix86_emit_save_reg_using_mov): New.
12375 (ix86_emit_save_regs_using_mov): Use it.
12376 (ix86_emit_save_sse_regs_using_mov): Likewise.
12377 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
12378 compare vs the saved red_zone_offset.
12379 (pro_epilogue_adjust_stack): Adjust sp_offset.
12380 (ix86_adjust_stack_and_probe): Likewise.
12381 (ix86_expand_prologue): Set up, use, and validate the new
12382 frame_state_info members. Use gen_frame_mem.
12383 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
12384 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
12385 new frame_state_info members.
12386 (ix86_emit_leave): Likewise.
12387 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
12388 out-of-range stack pointer offsets here.
12389 (ix86_emit_restore_sse_regs_using_mov): Likewise.
12390 (ix86_expand_epilogue): Use and validate the new frame_state_info
12391 members. Break up and simplify the logic selecting the
12392 restore_regs_via_mov code path. Ensure that there will be no
12393 out-of-range stack pointer offsets.
12394
12395 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
12396
12397 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
12398 argument name to reflect the expected tree; fix indentation.
12399 (ix86_asm_output_function_label): Output the entire 32-bit
12400 ms_hook here as bytes ...
12401 (ix86_expand_prologue): ... not here as insns. Attach the
12402 unwind info for the ms_hook to a blockage insn.
12403 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
12404 (ix86_ms_bitfield_layout_p): Fix indentation.
12405 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
12406
12407 * config/i386/i386.c (ix86_using_red_zone): New.
12408 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
12409 ix86_expand_prologue, ix86_force_to_memory): Use it.
12410
12411 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
12412 saving the int registers.
12413
12414 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
12415 and DWARF2_UNWIND_INFO conditional compilation.
12416
12417 2010-08-04 Richard Henderson <rth@redhat.com>
12418
12419 PR debug/45171
12420 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
12421 an is_naming_typedef_decl.
12422
12423 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
12424
12425 PR rtl-optimization/45162
12426 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
12427 * dce.c (word_dce_process_block): Likewise.
12428
12429 2010-08-04 Steve Ellcey <sje@cup.hp.com>
12430
12431 PR target/44583
12432 * config/ia64/constraints.md (Z): New.
12433 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
12434 (xfreg_or_signed_fp01_operand): New.
12435 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
12436 with fr_reg_or_signed_fp01_operand and constraint G with Z.
12437 (subsf3): Ditto.
12438 (*maddsf4): Ditto.
12439 (*msubsf4): Ditto.
12440 (adddf3): Ditto.
12441 (adddf3_trunc): Ditto.
12442 (subdf3): Ditto.
12443 (*subdf3_trunc): Ditto.
12444 (*madddf4): Ditto.
12445 (*madddf4_trunc): Ditto.
12446 (*msubdf4): Ditto.
12447 (*msubdf4_trunc): Ditto.
12448 (addxf3): Replace xfreg_or_fp01_operand with
12449 xfreg_or_signed_fp01_operand and constraint G with Z.
12450 (*addxf3_truncsf): Ditto.
12451 (*addxf3_truncdf): Ditto.
12452 (subxf3): Ditto.
12453 (*subxf3_truncsf): Ditto.
12454 (*subxf3_truncdf): Ditto.
12455 (*maddxf4): Ditto.
12456 (*maddxf4_truncsf): Ditto.
12457 (*maddxf4_truncdf): Ditto.
12458 (*msubxf4): Ditto.
12459 (*msubxf4_truncsf): Ditto.
12460 (*msubxf4_truncdf): Ditto.
12461
12462 2010-08-04 Richard Guenther <rguenther@suse.de>
12463
12464 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
12465 if either alias-set is zero.
12466
12467 2010-08-04 Richard Guenther <rguenther@suse.de>
12468
12469 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
12470 * tree-ssa-ccp.c: ... here.
12471 * tree-ssa-copy.c: ... and here.
12472 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
12473 value_range_t): Move ...
12474 * tree-vrp.c: ... here.
12475 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
12476 (substitute_and_fold): Adjust prototype.
12477 * tree-ssa-propagate.c (replace_uses_in): Adjust.
12478 (replace_phi_args_in): Likewise.
12479 (substitute_and_fold): Take callback to query lattice instead
12480 of pointer to lattice. Replace SSA name defs with lattice
12481 values first.
12482 * tree-ssa-ccp.c (ccp_finalize): Adjust.
12483 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
12484 (get_value): New function.
12485 (fini_copy_prop): Adjust.
12486 * tree-vrp.c (vrp_finalize): Adjust.
12487
12488 2010-08-04 Richard Guenther <rguenther@suse.de>
12489
12490 PR middle-end/45176
12491 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
12492 points-to set for original MEM_REF.
12493
12494 2010-08-04 Richard Guenther <rguenther@suse.de>
12495
12496 * tree-ssa-ccp.c (get_constant_value): New function.
12497 (get_rhs_assign_op_for_ccp): Remove.
12498 (valueize_op): New function.
12499 (ccp_fold): Use get_constant_value and valueize_op.
12500 (fold_const_aggregate_ref): Likewise.
12501 (ccp_fold_stmt): Likewise.
12502 (visit_assignment): Simplify.
12503
12504 2010-08-04 Richard Guenther <rguenther@suse.de>
12505
12506 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
12507 * double-int.h (double_int_ctz): Declare.
12508 * double-int.c (double_int_ctz): New function.
12509
12510 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
12511
12512 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
12513 Define.
12514 picochip_expand_movmemhi : Expand movmem pattern.
12515 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
12516 Declare.
12517 * config/picochip/picochip.md (movmemhi) : New pattern.
12518
12519 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
12520
12521 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
12522
12523 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
12524
12525 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
12526 NEG as operand of a MULT by merging it with the other operand.
12527 * combine.c (make_compound_operation): Use trunc_int_for_mode when
12528 generating a MULT with constant. Canonicalize PLUS and MINUS involving
12529 MULT.
12530 * config/arm/constraints.md (M): Examine only 32 bits of a
12531 HOST_WIDE_INT.
12532 * config/arm/predicates.md (power_of_two_operand): Likewise.
12533
12534 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12535
12536 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
12537 non-NOTE insns.
12538
12539 2010-08-03 Jan Hubicka <jh@suse.cz>
12540
12541 * ipa-split.c (struct split_point): Add split_part_set_retval.
12542 (find_retval): Forward declare.
12543 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
12544 (consider_split): Compute current->split_part_set_retval.
12545 (visit_bb): Do not look into return value.
12546 (split_function): Handle !split_part_set_retval
12547
12548 2010-08-03 Martin Jambor <mjambor@suse.cz>
12549
12550 * tree-sra.c (completely_scalarize_record): New parameter REF, create
12551 its own access->expr intead of using build_ref_for_offset.
12552
12553 2010-08-03 Joseph Myers <joseph@codesourcery.com>
12554
12555 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
12556 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
12557 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
12558 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
12559 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
12560 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
12561 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
12562 DEFAULT_SWITCH_TAKES_ARG.
12563 * config/rx/rx.opt (-patch=): Remove option.
12564 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
12565 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
12566 * doc/invoke.texi (RX Options): Remove -patch=.
12567 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
12568 (option_map): Remove --profile-blocks, --quiet and --silent.
12569
12570 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
12571
12572 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
12573 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
12574 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
12575 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12576 Update calls to ix86_expand_compare and ix86_expand_branch.
12577 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
12578 ix86_expand_compare.
12579 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
12580 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12581 Make static.
12582 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
12583 and ix86_compare_op1. Update calls to ix86_expand_compare.
12584 (ix86_expand_int_movcc): Ditto.
12585 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
12586 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
12587 (ix86_expand_setcc): Ditto.
12588 (ix86_expand_compare): Remove prototype.
12589 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
12590 ix86_compare_op0 and ix86_compare_op1. Update calls
12591 to ix86_expand_branch to directly pass operands[1] and operands[2].
12592 (cbranchxf4): Ditto.
12593 (cbranch<MODEF:mode>4): Ditto.
12594 (cbranchcc4): Ditto.
12595 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
12596 Update calls to ix86_expand_setcc to directly pass operands[2] and
12597 operands[3].
12598 (cstorexf4): Ditto.
12599 (cstore<MODEF:mode>4): Ditto.
12600 (cstorecc4): Ditto.
12601
12602 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
12603
12604 PR target/45063
12605 * caller-save.c (save_call_clobbered_regs): Remove regs from
12606 hard_regs_saved when they are set.
12607
12608 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
12609
12610 PR target/41089
12611 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
12612 as volatile.
12613
12614 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
12615
12616 * common.opt (ftree-loop-distribute-patterns): New.
12617 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
12618 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
12619 at -O3.
12620 * tree-data-ref.c (stores_zero_from_loop): New.
12621 * tree-data-ref.h (stores_zero_from_loop): Declared.
12622 * tree-loop-distribution.c (tree_loop_distribution): Call
12623 stores_zero_from_loop.
12624 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
12625
12626 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
12627
12628 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
12629 into account.
12630
12631 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
12632 * config/arm/arm.c (thumb1_code): New variable.
12633 (arm_override_options): Set it.
12634 (thumb1_final_prescan_insn): Keep track of condition code status.
12635 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
12636 jumps that depend on them.
12637 * config/arm/arm.h (thumb1_code): Declare variable.
12638 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
12639 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
12640 thumb1_cc_mode.
12641 (CC_STATUS_INIT): New macro.
12642 * config/arm/constraints.md (Pd): New constraint.
12643 * config/arm/predicates.md (noov_comparison_operator): New predicate.
12644 * config/arm/arm.md (is_thumb1): New define_attr.
12645 (conds): Set default to "clob" when generating Thumb1 code.
12646 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
12647 code are set. Use two-operand assembly syntax.
12648 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
12649 pattern.
12650 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
12651 codes are set. Use two-operand assembly syntax.
12652 (zero_extendhisi splitter): Remove constraints.
12653 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
12654 thumb1_movsf_insn): Set conds attribute as appropriate.
12655 (cbranchsi4_insn): Use condition code status from struct
12656 machine_function to determine whether the comparison can be eliminated.
12657 Discourage the alternative using high registers.
12658 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
12659 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
12660 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
12661 subsi3_cbranch): Delete.
12662 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
12663 one subtract and one cbranch insn.
12664
12665 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
12666 thumb2_movdf_soft_insn): Delete patterns.
12667 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
12668 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
12669 (pool_range, neg_pool_range): Use them to define defaults.
12670 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
12671 and allow for TARGET_32BIT.
12672
12673 PR target/40457
12674 * config/arm/arm.h (arm_regs_in_sequence): Declare.
12675 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
12676 load_multiple_sequence, store_multiple_sequence): Delete
12677 declarations.
12678 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
12679 declarations.
12680 * config/arm/ldmstm.md: New file.
12681 * config/arm/arm.c (arm_regs_in_sequence): New array.
12682 (load_multiple_sequence): Now static. New args SAVED_ORDER,
12683 CHECK_REGS. All callers changed.
12684 If SAVED_ORDER is nonnull, copy the computed order into it.
12685 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
12686 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
12687 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
12688 If SAVED_ORDER is nonnull, copy the computed order into it.
12689 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
12690 like REGS. Handle Thumb mode.
12691 (arm_gen_load_multiple_1): New function, broken out of
12692 arm_gen_load_multiple.
12693 (arm_gen_store_multiple_1): New function, broken out of
12694 arm_gen_store_multiple.
12695 (arm_gen_multiple_op): New function, with code from
12696 arm_gen_load_multiple and arm_gen_store_multiple moved here.
12697 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
12698 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
12699 changed.
12700 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
12701 * config/arm/predicates.md (commutative_binary_operator): New.
12702 (load_multiple_operation, store_multiple_operation): Handle more
12703 variants of these patterns with different starting offsets. Handle
12704 Thumb-1.
12705 * config/arm/arm.md: Include "ldmstm.md".
12706 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
12707 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
12708 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
12709 peepholes): Delete.
12710 * config/arm/ldmstm.md: New file.
12711 * config/arm/arm-ldmstm.ml: New file.
12712
12713 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
12714 if statement which adds extra costs to frame-related expressions.
12715
12716 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12717
12718 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
12719
12720 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
12721
12722 PR target/45142
12723 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
12724 alternative 2.
12725 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
12726 split V4SI operands.
12727
12728 2010-08-01 Anatoly Sokolov <aesok@post.ru>
12729
12730 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12731 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
12732 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
12733 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12734
12735 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
12736
12737 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
12738 LOCAL_INCLUDE_DIR.
12739
12740 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12741
12742 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
12743 used in the call to optab_for_tree_code. Fix the second
12744 is_widening_mult_p call. Check that both unwidened operands
12745 have the same sign.
12746
12747 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
12748
12749 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
12750
12751 2010-07-31 Anatoly Sokolov <aesok@post.ru>
12752
12753 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12754
12755 2010-07-30 DJ Delorie <dj@redhat.com>
12756
12757 * config/rx/predicates.md (rx_constshift_operand): New.
12758 * config/rx/rx.md (zs_cond): New.
12759 (cbranchsi4): Remove mode.
12760 (*cbranchsi4_<code>): Likewise.
12761 (*tstbranchsi4_<code>): New.
12762 (*tstbranchsi4r_<code>): New.
12763 (*tstbranchsi4m_eq): New.
12764 (*tstbranchsi4m_ne): New.
12765 (cbranchsf4): Remove mode.
12766 (*cbranchsf4_<code>): Likewise.
12767
12768 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
12769
12770 * rtlanal.c (simplify_subreg_regno): Don't treat
12771 HARD_FRAME_POINTER_REGNUM specially.
12772
12773 2010-07-30 Joseph Myers <joseph@codesourcery.com>
12774
12775 * common.opt (-G): Don't define option here.
12776 * config/g.opt: New.
12777 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
12778 rs6000/powerpc and score targets.
12779 * opts.c (common_handle_option): Don't handle -G here.
12780 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
12781 * config/frv/frv.c (frv_handle_option): Handle -G.
12782 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
12783 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
12784 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
12785 * config/mips/mips.c (mips_handle_option): Handle -G.
12786 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
12787 * config/score/score.c (score_handle_option): Handle -G.
12788
12789 2010-07-30 Anatoly Sokolov <aesok@post.ru>
12790
12791 * config/mmix/mmix.c: Include basic-block.h.
12792
12793 2010-07-30 Jakub Jelinek <jakub@redhat.com>
12794
12795 PR debug/45055
12796 PR rtl-optimization/45137
12797 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
12798 prototypes.
12799 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
12800 New functions.
12801 * combine.c (next_nonnote_nondebug_insn): Removed.
12802 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
12803 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
12804 * sched-deps.c (sched_analyze_insn): Likewise.
12805 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
12806 * rtlanal.c (canonicalize_condition): Likewise.
12807 * postreload.c (reload_combine_recognize_pattern): Likewise.
12808 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
12809
12810 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
12811
12812 * config/i386/i386.md (int_cond): Remove code iterator.
12813 (fp_cond): Ditto.
12814 (cbranch<mode>4): Use ordered_comparison_operator predicate
12815 for operator0.
12816 (cstore<mode>4): Ditto for operator1.
12817 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
12818 (add<mode>cc): ditto.
12819
12820 2010-07-30 Richard Guenther <rguenther@suse.de>
12821
12822 PR middle-end/45141
12823 * expr.c (expand_expr_real_1): Check for not handled base address.
12824
12825 2010-07-30 Richard Guenther <rguenther@suse.de>
12826
12827 * ipa-prop.c (ipa_modify_formal_parameters): Use
12828 build_distinct_type_copy.
12829
12830 2010-07-30 Anthony Green <green@moxielogic.com>
12831
12832 * config/moxie/rtems.h: New file.
12833 * config.gcc: Add moxie-rtems support.
12834
12835 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
12836
12837 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
12838 df flags as in run_fast_df_dce.
12839
12840 2010-07-29 Jakub Jelinek <jakub@redhat.com>
12841
12842 Revert:
12843 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12844
12845 * rtl.def (NOTE): Swap operands 4 and 5.
12846 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
12847 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
12848 Adjust accordingly.
12849 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
12850
12851 2010-07-29 Jakub Jelinek <jakub@redhat.com>
12852
12853 PR debug/45110
12854 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
12855 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
12856 (gen_subprogram_die): Likewise. Remove it when removing declaration's
12857 formal parameters.
12858 (gen_decl_die): Change return type to dw_die_ref, return what
12859 gen_formal_parameter_die returned.
12860
12861 2010-07-29 Martin Jambor <mjambor@suse.cz>
12862
12863 * dbgcnt.def (eipa_sra): New counter.
12864 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
12865
12866 2010-07-29 Xinliang David Li <davidxl@google.com>
12867
12868 PR bootstrap/45119
12869 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
12870 in revision 162652.
12871
12872 2010-07-29 Richard Guenther <rguenther@suse.de>
12873
12874 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
12875 (TV_TREE_STORE_CCP): Likewise.
12876 (TV_TREE_REDPHI): Likewise.
12877
12878 2010-07-29 Richard Guenther <rguenther@suse.de>
12879
12880 * double-int.h (double_int_and_not): New function.
12881 * combine.c (try_combine): Use it.
12882 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
12883
12884 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
12885
12886 PR rtl-optimization/42575
12887 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
12888 Argument AU removed. All callers changed. Ignore artificial refs.
12889 Use return value of df_word_lr_simulate_defs to decide whether an insn
12890 is necessary.
12891 (fast_dce): Rename arg to WORD_LEVEL.
12892 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
12893 static.
12894 (pass_fast_rtl_byte_dce): Delete.
12895 * dce.h (run_word_dce): Declare.
12896 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
12897 All callers changed. Simplify code to only deal with two-word regs.
12898 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
12899 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
12900 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
12901 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
12902 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
12903 (df_word_lr_mark_ref): Declare.
12904 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
12905 df_word_lr_simulate_uses): Declare or rename from byte variants.
12906 (df_byte_lr_simulate_artificial_refs_at_top,
12907 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12908 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
12909 declarations.
12910 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
12911 (enum df_mm): Delete.
12912 * df-byte-scan.c: Delete file.
12913 * df-problems.c (df_word_lr_problem_data): Renamed from
12914 df_byte_lr_problem_data, all members deleted except for
12915 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
12916 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
12917 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12918 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
12919 df_byte_lr_confluence_0): Delete functions.
12920 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
12921 callers changed.
12922 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
12923 Don't initialize members that were deleted, don't try to discover data
12924 about registers. Ignore hard regs.
12925 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
12926 (df_word_lr_mark_ref): New function.
12927 (df_word_lr_bb_local_compute): Renamed from
12928 df_byte_bb_lr_local_compute; all callers changed. Use
12929 df_word_lr_mark_ref. Assert that artificial refs don't include
12930 pseudos. Ignore hard registers.
12931 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
12932 Assert that exit block uses don't contain pseudos.
12933 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
12934 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
12935 callers changed. Ignore hard regs.
12936 (df_word_lr_transfer_function): Renamed from
12937 df_byte_lr_transfer_function; all callers changed.
12938 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
12939 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
12940 changed.
12941 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
12942 callers changed.
12943 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
12944 confluence operator 0 set to NULL.
12945 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
12946 callers changed.
12947 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
12948 Return bool, true if bitmap changed or insn otherwise necessary.
12949 All callers changed. Simplify using df_word_lr_mark_ref.
12950 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
12951 all callers changed. Simplify using df_word_lr_mark_ref.
12952 * lower-subreg.c: Include "dce.h"
12953 (decompose_multiword_subregs): Call run_word_dce if df available.
12954 * Makefile.in (lower-subreg.o): Adjust dependencies.
12955 (df-byte-scan.o): Delete.
12956 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
12957
12958 2010-07-29 Richard Guenther <rguenther@suse.de>
12959
12960 * tree.c (build_vector): Assert that the vector constant
12961 has enough elements.
12962 (build_vector_from_ctor): Pad with trailing zeros.
12963
12964 2010-07-29 Richard Guenther <rguenther@suse.de>
12965
12966 PR tree-optimization/45120
12967 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12968 Handle offset in DEREFs properly.
12969 (get_constraint_for_1): Handle MEM_REF offset properly.
12970
12971 2010-07-29 Richard Guenther <rguenther@suse.de>
12972
12973 PR middle-end/45034
12974 * convert.c (convert_to_integer): Always use an unsigned
12975 type for narrowed negate and bitwise not.
12976
12977 2010-07-29 Ira Rosen <irar@il.ibm.com>
12978
12979 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
12980 to outer loop when creating reduction epilogue for double reduction,
12981 and switch back to the inner loop when updating the phi nodes.
12982 Update uses of outer loop exit phi nodes in double reduction (instead
12983 of uses of reduction).
12984
12985 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
12986
12987 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
12988 popcount on power7 and parity on power6 systems.
12989 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
12990 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
12991 instructions.
12992
12993 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
12994 (UNSPEC_PARITY): Ditto.
12995 (SFDF): New iterator for SF/DF.
12996 (rreg2): New mode attribute for floating register constraint.
12997 (TARGET_FLOAT): New mode attribute for whether single/double float
12998 is supported.
12999 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
13000 pattern.
13001 (parity<mode>2_cmpb): New insn for parity on power6 and newer
13002 machines.
13003 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
13004 pattern. Add support for fcpsgn instruction added in power6.
13005 (copysignsf3): Delete.
13006 (copysigndf3): Delete.
13007 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
13008 instead of if_then_else in RTL to avoid problems with -0.
13009
13010 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
13011 of if_then_else to mirror scalar code.
13012 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
13013 rs6000.md.
13014
13015 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
13016 instead of if_then_else.
13017
13018 2010-07-28 Xinliang David Li <davidxl@google.com>
13019
13020 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
13021 (dump_cand): Dump var_before/after.
13022 (htab_inv_expr_eq): New function.
13023 (htab_inv_expr_hash): New function.
13024 (tree_ssa_iv_optimize_init): Support pseudo invariants.
13025 (add_candidate_1): consider base type precision.
13026 (set_use_iv_cost): New parameter.
13027 (adjust_setup_cost): Use profile information.
13028 (get_address_cost): Do not hard code width in computing address
13029 offset limits.
13030 (compare_aff_trees): New function.
13031 (get_loop_invariant_expr_id): New function.
13032 (get_computation_cost_at): New parameter and use profile information.
13033 (get_computation_cost): New parameter.
13034 (determine_use_iv_cost_generic): Pass new parameter.
13035 (determine_use_iv_cost_address): Ditto.
13036 (determine_use_iv_cost_condition): Ditto.
13037 (autoinc_possible_for_pair): Ditto.
13038 (determine_use_iv_costs): More dumps.
13039 (iv_ca_get_num_inv_exprs): New function.
13040 (iv_ca_recount_cost): Consider loop invariants in register pressure
13041 cost.
13042 (iv_ca_add_use): New parameter.
13043 (iv_ca_dump): Better dumping.
13044 (iv_ca_extend): New parameter.
13045 (try_add_cand_for): Attempt to get better partial solution.
13046 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
13047 (create_new-ivs): More dumps.
13048 (rewrite_use_compare): Ditto.
13049 (free_loop_data): More cleanup.
13050 (treee_ssa_iv_optimize_finalize): Ditto.
13051
13052 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
13053
13054 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
13055 * config/i386/i386.c (ix86_profile_before_prologue): New.
13056 (override_options): Add special handling for -mfentry.
13057 (ix86_function_regparm): Likewise.
13058 (ix86_function_sseregparm): Likewise.
13059 (ix86_frame_pointer_required): Likewise.
13060 (ix86_expand_prologue): Check for ms_hook_prologue.
13061 (x86_function_profiler): Adjust mcount output.
13062 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
13063 * config/i386/i386.opt (mfentry): New.
13064 * doc/invoke.texi (mfentry): Add documentation.
13065 * doc/tm.texi: Regenerated..
13066 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
13067 * final.c (final_start_function): Replace macro
13068 PROFILE_BEFORE_PROLOGUE by target hook.
13069 * function.c (thread_prologue_and_epilogue_insns): Likewise.
13070 * target.def (profile_before_prologue): New hook.
13071 * targhooks.c (default_profile_before_prologue): New.
13072 * targhooks.h (default_profile_before_prologue): New.
13073
13074 2010-07-28 Jakub Jelinek <jakub@redhat.com>
13075
13076 PR debug/45105
13077 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
13078
13079 PR debug/45103
13080 * dwarf2out.c (dwarf2out_var_location): Always consider
13081 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
13082
13083 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
13084
13085 PR rtl-optimization/45107
13086 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
13087
13088 2010-07-28 Richard Guenther <rguenther@suse.de>
13089
13090 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
13091 (set_lattice_value): Do not query an old default value.
13092 (get_value_for_expr): New function. Properly canonicalize
13093 float values.
13094 (ccp_visit_phi_node): Use it.
13095
13096 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
13097
13098 * config/arm/arm.c (arm_pcs_default): Remove static.
13099 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
13100 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
13101 (arm_pcs_default): Declare.
13102
13103 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
13104
13105 * config/rs6000/rs6000.c (rs6000_override_options):
13106 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
13107 ... to darwin_rs6000_override_options.
13108 (rs6000_return_in_memory): Update preceding comment for darwin
13109 64 bit ABI. Use TARGET_MACHO inline.
13110 (rs6000_darwin64_struct_check_p): New.
13111 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
13112 (function_arg): Likewise.
13113 (rs6000_arg_partial_bytes): Likewise.
13114 (rs6000_function_value): Likewise.
13115
13116 2010-07-28 Andi Kleen <ak@linux.intel.com>
13117
13118 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
13119
13120 2010-07-28 Richard Guenther <rguenther@suse.de>
13121
13122 PR middle-end/44903
13123 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
13124 targets try harder to not generate unaligned accesses.
13125
13126 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
13127
13128 PR rtl-optimization/45101
13129 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
13130 for gcse-las.
13131
13132 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
13133
13134 PR tree-optimization/44885
13135 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
13136 with non-aliased component.
13137
13138 2010-07-28 Joseph Myers <joseph@codesourcery.com>
13139
13140 * config/darwin-driver.c (SWITCH_TAKES_ARG,
13141 WORD_SWITCH_TAKES_ARG): Remove.
13142 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
13143 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
13144 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
13145 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
13146 definitions from gcc.c.
13147 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
13148 defaults.h.
13149 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
13150 Move to defaults.h.
13151 * opts-common.c: Include tm.h.
13152 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
13153 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
13154 Handle more than one argument. Set canonical_option_num_elements.
13155 (decode_cmdline_options_to_array): Set
13156 canonical_option_num_elements and trailing elements of
13157 canonical_option.
13158 * opts.h (struct cl_decoded_option): Allow four elements in
13159 canonical_option. Add field canonical_option_num_elements.
13160 * Makefile.in (opts-common.o): Update dependencies.
13161
13162 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
13163
13164 PR middle-end/44790
13165 PR middle-end/44993
13166 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
13167 sure the base has address_mode before adding the offset.
13168
13169 2010-07-27 Xinliang David Li <davidxl@google.com>
13170
13171 * tree-flow.h (create_mem_ref): Add one new parameter.
13172 * tree-ssa-address.c (create_mem_ref): New parameter.
13173 (addr_to_parts): Ditto.
13174 (move_variant_to_index): New function.
13175 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
13176
13177 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
13178
13179 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
13180 4 and 5.
13181 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
13182 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
13183 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
13184 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
13185 CODE_LABELs and NOTEs.
13186 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
13187 * combine.c (try_combine): Likewise.
13188 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13189 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
13190
13191 2010-07-27 Joseph Myers <joseph@codesourcery.com>
13192
13193 * coretypes.h (struct cl_option_handlers): Declare.
13194 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
13195 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
13196 * langhooks-def.h (lhd_handle_option): Declare.
13197 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
13198 * langhooks.c (lhd_handle_option): New.
13199 * langhooks.h (struct lang_hooks): Update prototype and return
13200 value type of handle_option hook.
13201 * optc-gen.awk: Generate target_flags_explicit definition for the
13202 driver.
13203 * opts-common.c: Include diagnostic.h.
13204 (handle_option): Move from opts.c. Update prototype and return
13205 value type. Use handlers structure.
13206 (read_cmdline_option): Move from opts.c. Update prototype. Use
13207 handlers structure.
13208 (set_option): Move from opts.c.
13209 * opts.c (common_handle_option): Update prototype and return value
13210 type. Update calls to handle_option and enable_warning_as_error.
13211 (unknown_option_callback, post_handling_callback,
13212 lang_handle_option, target_handle_option): New.
13213 (handle_option, read_cmdline_option): Move to opts-common.c.
13214 (read_cmdline_options): Update prototype. Update call to
13215 read_cmdline_option.
13216 (decode_options): Initialize and use handlers structure.
13217 (set_option): Move to opts-common.c.
13218 (enable_warning_as_error): Update prototype. Update call to
13219 handle_option.
13220 * opts.h (struct cl_option_handler_func, struct
13221 cl_option_handlers): New.
13222 (handle_option, enable_warning_as_error): Update prototypes.
13223 (read_cmdline_option): Declare.
13224 * Makefile.in (opts-common.o): Update dependencies.
13225
13226 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13227
13228 * config/arm/arm.c (params.h): Include.
13229 (arm_override_options): Tune gcse-unrestricted-cost.
13230 * config/arm/t-arm (arm.o): Define dependencies.
13231
13232 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13233
13234 PR target/42495
13235 PR middle-end/42574
13236 * basic-block.h (get_dominated_to_depth): Declare.
13237 * dominance.c (get_dominated_to_depth): New function, use
13238 get_all_dominated_blocks as a base.
13239 (get_all_dominated_blocks): Use get_dominated_to_depth.
13240
13241 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
13242 (hoist_exprs): Remove.
13243 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
13244 (compute_code_hoist_vbeinout): Add debug print outs.
13245 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
13246
13247 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
13248 quadratic behavior.
13249 * params.h (MAX_HOIST_DEPTH): New macro.
13250 * doc/invoke.texi (max-hoist-depth): Document.
13251
13252 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13253
13254 PR rtl-optimization/40956
13255 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
13256 constants.
13257
13258 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13259
13260 PR target/42495
13261 PR middle-end/42574
13262 * config/arm/arm.c (legitimize_pic_address): Use
13263 gen_calculate_pic_address pattern to emit calculation of PIC address.
13264 (will_be_in_index_register): New function.
13265 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
13266 (thumb1_legitimate_address_p): Use it provided !strict_p.
13267 * config/arm/arm.md (calculate_pic_address): New expand and split.
13268
13269 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13270
13271 PR target/42495
13272 PR middle-end/42574
13273 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
13274 * config/arm/arm.md (define_split "J", define_split "K"): Make
13275 IRA/reload friendly.
13276
13277 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13278
13279 * gcse.c (insert_insn_end_basic_block): Update signature, remove
13280 unused checks.
13281 (pre_edge_insert, hoist_code): Update.
13282
13283 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13284
13285 PR target/42495
13286 PR middle-end/42574
13287 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
13288
13289 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13290
13291 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
13292
13293 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13294
13295 PR rtl-optimization/40956
13296 PR target/42495
13297 PR middle-end/42574
13298 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
13299 for hoisting.
13300 (hoist_code): Count occurences in current block too.
13301
13302 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13303
13304 * gcse.c (struct expr:max_distance): New field.
13305 (doing_code_hoisting_p): New static variable.
13306 (want_to_gcse_p): Change signature. Allow constrained hoisting of
13307 simple expressions, don't change behavior for PRE. Set max_distance.
13308 (insert_expr_in_table): Set new max_distance field.
13309 (hash_scan_set): Update.
13310 (hoist_expr_reaches_here_p): Stop search after max_distance
13311 instructions.
13312 (find_occr_in_bb): New static function. Use it in ...
13313 (hoist_code): Calculate sizes of basic block before any changes are
13314 done. Pass max_distance to hoist_expr_reaches_here_p.
13315 (one_code_hoisting_pass): Set doing_code_hoisting_p.
13316
13317 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
13318 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
13319 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
13320 macros.
13321 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
13322 Document.
13323
13324 2010-07-27 Jeff Law <law@redhat.com>
13325 Maxim Kuvyrkov <maxim@codesourcery.com>
13326
13327 * gcse.c (compute_transpout, transpout): Remove, move logic
13328 to prune_expressions.
13329 (compute_pre_data): Move pruning of trapping expressions ...
13330 (prune_expressions): ... here. New static function.
13331 (compute_code_hoist_data): Use it.
13332 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
13333
13334 2010-07-27 Xinliang David Li <davidxl@google.com>
13335
13336 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
13337 (rewrite_use_address): Adjust iv update position when needed.
13338
13339 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
13340
13341 * dbgcnt.def (hoist_insn): New debug counter.
13342 * gcse.c (hoist_code): Use it.
13343
13344 2010-07-27 Xinliang David Li <davidxl@google.com>
13345
13346 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
13347 (niter_for_single_dom_exit): Passes additional parameter.
13348 (iv_period): Fix comments.
13349 (may_eliminate_iv): Handles multiple exit loops properly.
13350 (free_tree_niter_desc): New function.
13351 (free_loop_data): Frees up loop iteration descriptors.
13352
13353 2010-07-27 Jakub Jelinek <jakub@redhat.com>
13354
13355 PR target/44542
13356 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
13357 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
13358 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
13359 (expand_one_var): Don't consider DECL_ALIGN for variables for
13360 which expand_one_stack_var_at has been already called.
13361
13362 PR testsuite/44701
13363 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
13364 constraints on IA-64.
13365
13366 2010-07-27 Jie Zhang <jie@codesourcery.com>
13367
13368 PR target/44290
13369 Revert:
13370 2010-07-23 Jie Zhang <jie@codesourcery.com>
13371
13372 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13373 false if ! tree_versionable_function_p.
13374
13375 2010-07-27 Jakub Jelinek <jakub@redhat.com>
13376
13377 * dwarf2out.c (add_data_member_location_attribute): Use
13378 add_AT_unsigned instead of add_AT_int if offset is non-negative.
13379
13380 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
13381
13382 * postreload.c (try_replace_in_use): New static function.
13383 (reload_combine_recognize_const_pattern): Use it here. Allow
13384 substituting into a final add insn, and substituting into a memory
13385 reference in an insn that sets the reg.
13386
13387 2010-07-27 Joseph Myers <joseph@codesourcery.com>
13388
13389 * common.opt (o): Add MissingArgError.
13390 * doc/options.texi (MissingArgError): Document.
13391 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
13392 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
13393 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
13394 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
13395 * langhooks.h (struct lang_hooks): Remove missing_argument.
13396 * optc-gen.awk: Handle MissingArgError and output new structure
13397 field initializers.
13398 * opts.c (read_cmdline_option): Use missing_argument_error field
13399 instead of missing_argument langhook.
13400 * opts.h (struct cl_option): Add missing_argument_error field.
13401 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
13402
13403 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
13404
13405 PR target/29090
13406 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
13407 Darwin64 ABI, for zero-sized objects.
13408
13409 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
13410
13411 PR target/35491
13412 PR target/29090
13413
13414 Merge from Apple local 4.2.1.
13415 2005-05-11 Stan Shebs <shebs@apple.com>
13416 Fix 64-bit varargs for Darwin (Radar 4028089).
13417 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
13418 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
13419 Add argument, add case for 8-byte register half-filled with a float.
13420 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
13421 single-precision floats specially.
13422
13423 2010-07-27 Ira Rosen <irar@il.ibm.com>
13424
13425 PR tree-optimization/44152
13426 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
13427 complex numbers for further check.
13428 (vect_supported_load_permutation_p): Check nodes with
13429 complex numbers.
13430
13431 2010-07-27 Joseph Myers <joseph@codesourcery.com>
13432
13433 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
13434 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
13435 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
13436 (LANG_HOOKS_INITIALIZER): Add new hooks.
13437 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
13438 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
13439 and complain_wrong_lang_p. Update init_options prototype.
13440 * c-objc-common.c (c_initialize_diagnostics): First call
13441 c_common_initialize_diagnostics.
13442 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
13443 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
13444 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
13445 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
13446 (hook_uint_void_0): New.
13447 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
13448 (hook_uint_void_0): New.
13449 * opts-common.c (decode_cmdline_option,
13450 decode_cmdline_options_to_array): Also fill in canonical_option field.
13451 * opts.c (complain_wrong_lang): Use langhook to determine whether
13452 to complain instead of special-casing LTO.
13453 (decode_options): Separate lang_mask determination with
13454 option_lang_mask hook from call of init_options hook.
13455 * opts.h (struct cl_decoded_option): Add canonical_option.
13456
13457 2010-07-27 Jakub Jelinek <jakub@redhat.com>
13458
13459 PR tree-optimization/45083
13460 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
13461
13462 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
13463
13464 * postreload.c (reload_combine_recognize_const_pattern): Move test
13465 for limiting the insn movement to the right scope.
13466
13467 PR rtl-optimization/45051
13468 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
13469 than reg_mentioned_p.
13470
13471 2010-07-26 Richard Henderson <rth@redhat.com>
13472
13473 PR target/44132
13474 * tree-emutls.c: New file.
13475 * Makefile.in (OBJS-common): Add it.
13476 * tree-pass.h (pass_ipa_lower_emutls): Declare.
13477 * passes.c (init_optimization_passes): Add it.
13478
13479 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
13480 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
13481 * expr.c (emutls_var_address): Delete.
13482 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
13483 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
13484 (emutls_finish): Delete.
13485 * toplev.c (compile_file): Don't call it.
13486 * tree.h (emutls_decl): Delete.
13487 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
13488 (emutls_finish, emutls_finalize_control_var): Delete.
13489 (emutls_object_type): Move to tree-emutls.c.
13490 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
13491 default_emutls_var_fields, get_emutls_object_type,
13492 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
13493 default_emutls_var_init): Likewise.
13494 (get_variable_section): Don't special case emutls.
13495 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
13496 default_elf_select_section, default_unique_section,
13497 default_encode_section_info): Likewise.
13498 * varpool.c (decide_is_variable_needed): Likewise.
13499 * gimple-iterator.c (update_call_edge_frequencies): New
13500 (gsi_insert_on_edge_immediate): Use it.
13501 (gsi_insert_seq_on_edge_immediate): Likewise.
13502 (gsi_commit_one_edge_insert): Likewise.
13503
13504 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
13505 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
13506 (x86_64_elf_unique_section): Likewise.
13507
13508 2010-07-26 Jan Hubicka <jh@suse.cz>
13509
13510 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
13511 GTY((skip)).
13512
13513 2010-07-26 Anatoly Sokolov <aesok@post.ru>
13514
13515 * target.def (output_source_filename): New hook.
13516 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
13517 * doc/tm.texi: Regenerate.
13518 * toplev.c (output_file_directive) Remove function.
13519 * toplev.h (output_file_directive) Remove.
13520 * output.h (default_asm_output_source_filename,
13521 output_file_directive): Declare.
13522 * varasm.h (default_asm_output_source_filename,
13523 output_file_directive): New functions.
13524
13525 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
13526 * config/mips/mips-protos.h (mips_output_filename): Remove.
13527 * config/mips/mips.c (mips_output_filename): Make Static.
13528 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
13529
13530 2010-07-26 Richard Guenther <rguenther@suse.de>
13531
13532 PR tree-optimization/43784
13533 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
13534 if the destination is used by the call.
13535
13536 2010-07-26 Richard Guenther <rguenther@suse.de>
13537
13538 PR middle-end/45073
13539 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
13540 SSA updating on being in SSA form.
13541
13542 2010-07-26 Richard Guenther <rguenther@suse.de>
13543
13544 PR middle-end/45056
13545 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
13546
13547 2010-07-26 Richard Guenther <rguenther@suse.de>
13548
13549 PR tree-optimization/45071
13550 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
13551 adjust op->opcode.
13552
13553 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
13554
13555 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
13556 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
13557 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
13558 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
13559 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
13560 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
13561 save_r31, return_r31, save_interrupt, return_interrupt,
13562 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
13563 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
13564 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
13565 new ABI requirements.
13566 (save_r6_r9, L_callt_save_r6_r9): Remove.
13567 * config/v850/predicates.md (even_reg_operand, disp23_operand,
13568 const_float_1_operand const_float_0_operand): New Predicates.
13569 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
13570 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
13571 * config/v850/t-v850: Update multilibs for new target variants.
13572 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
13573 * config/v850/t-v850e: Likewise.
13574 * config/v850/v850.c (v850_issue_rate): New.
13575 (v850_strict_argument_naming): New.
13576 (function_arg): Modify to generate a different ABI.
13577 (print_operand): Update case 'z' to support float modes.
13578 (output_move_single): Modify to generate appropriate and better
13579 assembly.
13580 (v850_float_z_comparison_operator, v850_select_cc_mode,
13581 v850_float_nz_comparison_operator, v850_gen_float_compare,
13582 v850_gen_compare): New functions to support comparison of float values.
13583 (ep_memory_offset): Add support for V850E2 targets.
13584 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
13585 (INTERRUPT_REGPARM_NUM): Remove.
13586 (compute_register_save_size): Add extra case to save/restore long call.
13587 (use_prolog_function): New function to support prologue.
13588 (expand_prologue): Add support for V850E2 targets and modified
13589 as per the current ABI requirements.
13590 (expand_epilogue): Likewise.
13591 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
13592 (construct_save_jarl): Likewise.
13593 (construct_dispose_instruction): Update as per the current ABI
13594 requirements.
13595 (construct_prepare_instruction): Likewise.
13596 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
13597 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
13598 (CPP_SPEC): Updated to support v850e2 targets.
13599 (STRICT_ALIGNMENT): Modified.
13600 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
13601 (FIXED_REGISTERS): Likewise.
13602 (CALL_USED_REGISTERS): Likewise.
13603 (CONDITIONAL_REGISTER_USAGE): Updated.
13604 (HARD_REGNO_MODE_OK): Updated.
13605 (reg_class): Updated to add even registers.
13606 (REG_CLASS_NAMES): Likewise.
13607 (REG_CLASS_CONTENTS): Likewise.
13608 (REGNO_REG_CLASS): Updated for CC registers.
13609 (REG_CLASS_FROM_LETTER): Added support for even registers.
13610 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
13611 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
13612 ARG_POINTER_REGNUM): Updated.
13613 (FUNCTION_ARG_ADVANCE): Define.
13614 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
13615 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
13616 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
13617 (GO_IF_LEGITIMATE_ADDRESS): Updated.
13618 (SELECT_CC_MODE): Define.
13619 (REGISTER_NAMES): Updated to add psw and fcc registers.
13620 (ADDITIONAL_REGISTER_NAMES): Updated.
13621 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
13622 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
13623 * config/v850/v850.md (define_constants): Define new constants.
13624 (type): Update store,bit1,macc,div,fpu and single attributes.
13625 (cpu): New attribute.
13626 (cc): Add set_z attribute.
13627 (unsign23byte_load, sign23byte_load, unsign23hword_load,
13628 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
13629 23word_store): New instructions for 23-bit displacement load and store.
13630 (movqi_internal, movhi_internal): Update the attributes.
13631 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
13632 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
13633 the attributes.
13634 (v850_tst1): Modified using CC_REGNUM.
13635 (tstsi): Remove.
13636 (cmpsi): Modified as define_expand from define_insn.
13637 (cmpsi_insn, cmpsf, cmpdf): New instructions.
13638 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
13639 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
13640 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
13641 one_cmplsi2): Clobber the CC_REGNUM register.
13642 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
13643 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
13644 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
13645 (setf_insn, set_z_insn, set_nz_insn): New instructions for
13646 v850e2v3 target.
13647 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
13648 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
13649 targets.
13650 (sasf_1, sasf_2): Remove.
13651 (sasf): New instruction.
13652 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
13653 targets. CC_REGNUM register is clobbered and attributes are
13654 updated.
13655 (branch_z_normal, branch_z_invert, branch_nz_normal,
13656 branch_nz_invert): New branch related instructions.
13657 (jump): Updated the attributes.
13658 (switch): Update to support new targets. CC_REGNUM register is
13659 clobbered and attributes are updated.
13660 (call_internal_short, call_internal_long, call_value_internal_short,
13661 call_value_internal_long): Updated the attributes.
13662 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
13663 clobbered and attributes are updated.
13664 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
13665 Update to support new targets. CC_REGNUM register is clobbered.
13666 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
13667 instructions.
13668 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
13669 are updated.
13670 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
13671 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
13672 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
13673 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
13674 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
13675 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
13676 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
13677 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
13678 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
13679 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
13680 point instructions defined for V850e2v3 target.
13681 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
13682 Add support for V850E2 targets and CC_REGNUM register is clobbered.
13683 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
13684 support for new targets.
13685 * config/v850/v850-modes.def: New file.
13686 * config/v850/v850.opt(mstrict-align): Remove.
13687 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
13688 mv850e2v3): New command line options for V850.
13689 * config.gcc: Update the newly added files.
13690 * doc/invoke.texi: Update the newly added command line options for
13691 V850 target.
13692
13693 2010-07-26 Richard Guenther <rguenther@suse.de>
13694
13695 PR tree-optimization/45052
13696 * ipa-pure-const.c (check_stmt): Check volatileness.
13697
13698 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
13699
13700 PR target/44707
13701 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
13702 * config/sparc/sparc.c: Include reload.h.
13703 (legitimize_tls_address): Rename into...
13704 (sparc_legitimize_tls_address): ...this.
13705 (legitimize_pic_address): Rename into...
13706 (sparc_legitimize_pic_address): ...this.
13707 (sparc_expand_move): Adjust to above renaming.
13708 (sparc_tls_referenced_p): Likewise.
13709 (sparc_legitimize_tls_address): Likewise.
13710 (sparc_legitimize_pic_address): Likewise.
13711 (sparc_legitimize_address): Likewise.
13712 (sparc_output_mi_thunk): Likewise.
13713 (sparc_legitimize_reload_address): New global function. Recognize
13714 (lo_sum (high ...) ...) patterns generated by earlier passes.
13715 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
13716
13717 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
13718
13719 PR target/44484
13720 * config/sparc/predicates.md (memory_reg_operand): Delete.
13721 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
13722 (*sync_compare_and_swap): Encode the address form in the pattern.
13723 (*sync_compare_and_swapdi_v8plus): Likewise.
13724
13725 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
13726
13727 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
13728 Streamline paragraph on compatibility with the system compiler.
13729
13730 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
13731
13732 PR middle-end/45035
13733 * alias.c (true_dependence_1): Fix thinko in merge of old
13734 true_dependence and canon_true_dependence.
13735
13736 2010-07-23 Jan Hubicka <jh@suse.cz>
13737
13738 * lto-streamer-out.c (write_symbol): Fix visibilities of external
13739 references.
13740
13741 2010-07-23 Le-Chun Wu <lcwu@google.com>
13742
13743 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
13744 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
13745 and an unnecessary assignment.
13746 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
13747 self-assign warning.
13748 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
13749 unnecessary self-init.
13750
13751 2010-07-23 Richard Guenther <rguenther@suse.de>
13752
13753 PR lto/43071
13754 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
13755 for -flto and -fwhopr.
13756
13757 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
13758
13759 PR target/41943
13760 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
13761 (stmp-int-hdrs): Prefix/postfix headers by include_next.
13762 * config.gcc (user_headers_inc_next_pre): New.
13763 (user_headers_inc_next_post): Likewise.
13764 (*-w64-mingw*): Use for float.h post-fixing, and for
13765 stddef.h/stdarg.h pre-fixing by include_next.
13766 * configure.ac (user_headers_inc_next_post): New.
13767 (user_headers_inc_next_pre): New.
13768 * configure: Regenerated.
13769
13770 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13771
13772 * configure.ac: Don't disable TLS on Solaris 8/9 by default
13773 Set tga_func for Solaris 2/x86 resp. SPARC.
13774 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
13775 (LIB_THREAD_LDFLAGS_SPEC): Define.
13776 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
13777 * configure: Regenerate.
13778 * config.in: Regenerate.
13779 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
13780 -pthread, -threads, LIB_TLS_SPEC with -pthread.
13781 * doc/install.texi (Specific, *-*-solaris2*): Document use of
13782 alternate thread libraries on Solaris 8.
13783 Document TLS patch requirements.
13784 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
13785 Document tls.
13786
13787 PR target/18788
13788 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
13789 -shared.
13790
13791 2010-07-23 Jakub Jelinek <jakub@redhat.com>
13792
13793 * tree.h (struct tree_base): Add nameless_flag bitfield.
13794 (TYPE_NAMELESS, DECL_NAMELESS): Define.
13795 * omp-low.c (create_omp_child_function, scan_omp_parallel,
13796 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
13797 DECL_ARTIFICIAL where needed.
13798 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
13799 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
13800 has DECL_NAMELESS set.
13801
13802 2010-07-23 Martin Jambor <mjambor@suse.cz>
13803
13804 PR tree-optimization/44915
13805 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
13806 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
13807 (analyze_function): Likewise.
13808
13809 2010-07-23 Martin Jambor <mjambor@suse.cz>
13810
13811 PR tree-optimization/44914
13812 * tree-sra.c (sra_modify_function_body): Return true if CFG was
13813 changed, add purging dead eh edges.
13814 (ipa_sra_modify_function_body): Return true if CFG was changed,
13815 simplify purging dead eh edges.
13816 (modify_function): Return true if CFG was changed.
13817 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
13818 was changed.
13819 (ipa_early_sra): Likewise.
13820
13821 2010-07-23 Jie Zhang <jie@codesourcery.com>
13822
13823 PR target/44290
13824 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
13825 if "naked".
13826 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13827 false if ! tree_versionable_function_p.
13828
13829 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
13830
13831 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
13832 * ipa-pure-const.c (special_builtlin_state): Remove
13833 BUILT_IN_ARGS_INFO case.
13834 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13835 * builtins.c (expand_builtin): Likewise.
13836 (expand_builtin_args_info): Remove.
13837 * doc/tm.texi (__builtin_args_info): Remove.
13838 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
13839 * doc/tm.text.in: Likewise.
13840
13841 2010-07-23 Richard Guenther <rguenther@suse.de>
13842
13843 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
13844 (lto_symtab_merge_decls_2): Likewise.
13845 * tree-ssa.c (useless_type_conversion_p): Likewise.
13846 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13847 * gimple.c (gtc_visited2, gtc_ob2): Remove.
13848 (struct type_pair_d): Make same_p an array indexed by mode.
13849 Update comment.
13850 (lookup_type_pair): Update initialization.
13851 (struct sccs): Adjust same_p type.
13852 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
13853 Adjust.
13854 (print_gimple_types_stats): Likewise.
13855 * gimple.h (enum gtc_mode): New.
13856 (gimple_types_compatible_p): Adjust prototype.
13857
13858 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
13859
13860 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
13861 again after processing insn.
13862
13863 2010-07-23 Jie Zhang <jie@codesourcery.com>
13864
13865 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
13866 proper words when !tree_versionable_function_p.
13867
13868 2010-07-23 Richard Guenther <rguenther@suse.de>
13869
13870 PR tree-optimization/45037
13871 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
13872
13873 2010-07-23 Jie Zhang <jie@codesourcery.com>
13874
13875 * doc/extend.texi: Remove IP2K from the description of naked attribute.
13876 Add MCORE instead.
13877
13878 2010-07-10 Andi Kleen <ak@linux.intel.com>
13879
13880 PR lto/44992
13881 * lto-opts.c (lto_write_options): Add NULL file_data argument to
13882 lto_get_section_name.
13883 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13884 * lto-streamer-out.c (produce_asm): Likewise.
13885 (copy_function): Likewise.
13886 (produce_symtab): Likewise.
13887 (produce_asm_for_decls): Likewise.
13888 * lto-streamer.c (lto_get_section_name): Add file_data argument.
13889 Rewrite to add random postfix to LTO sections.
13890 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
13891 (lto_get_section_name): Add file_data argument to prototype.
13892
13893 2010-07-10 Andi Kleen <ak@linux.intel.com>
13894
13895 * lto-section-in.c (lto_section_name): Synchronize names
13896 with lto_get_section_name.
13897
13898 2010-07-10 Andi Kleen <ak@linux.intel.com>
13899
13900 * lto-opts.c (lto_read_file_options): Check for missing section.
13901
13902 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13903
13904 * ira.c (check_allocation): Correctly handle the case where an allocno
13905 with two objects was allocated to a single reg.
13906
13907 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
13908
13909 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
13910 (is_widening_mult_p): Likewise.
13911 (convert_to_widen): Use them.
13912 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
13913 well as integer ones.
13914
13915 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
13916
13917 * alias.c (true_dependence_1): New function, merged version of
13918 true_dependence and canon_true_dependence.
13919 (true_dependence): Simplify.
13920 (canon_true_dependence): Simplify.
13921
13922 2010-07-22 Richard Henderson <rth@redhat.com>
13923
13924 PR target/45027
13925 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
13926 of V4SFmode for the SSE saves; increase stack alignment if needed.
13927 (ix86_gimplify_va_arg): Don't increase stack alignment here.
13928
13929 2010-07-22 Jakub Jelinek <jakub@redhat.com>
13930
13931 PR bootstrap/45028
13932 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
13933 call cprop_find_used_regs again via note_uses.
13934
13935 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
13936
13937 * alias.c (get_alias_set): Fix formatting issues.
13938
13939 2010-07-22 Steve Ellcey <sje@cup.hp.com>
13940
13941 PR middle-end/44878
13942 * stmt.c (expand_value_return): Call promote_function_mode with
13943 a for_return argument of 2 when returning by reference.
13944
13945 2010-07-22 Dodji Seketeli <dodji@redhat.com>
13946
13947 PR debug/45024
13948 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
13949 unit DIE if we can find the scope DIE.
13950
13951 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13952
13953 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
13954 changed. Initialize OBJECT_SUBWORD.
13955 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
13956 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
13957 all callers changed.
13958 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
13959 (finish_allocno): Likewise.
13960 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
13961 (remove_low_level_allocnos): Likewise.
13962 (update_bad_spill_attribute): Likewise.
13963 (setup_min_max_allocno_live_range_point): Likewise.
13964 (sort_conflict_id_map): Likewise.
13965 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
13966 (ior_hard_reg_conflicts): New function.
13967 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
13968 (compress_conflict_vecs): Iterate over objects, not allocnos.
13969 (ira_add_live_range_to_object): New function.
13970 (object_range_compare_func): Renamed from allocno_range_compare_func.
13971 All callers changed.
13972 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
13973 subobjects, widen the min/max range of the lowest-order object to
13974 potentially include all other such low-order objects.
13975 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
13976 (check_allocation): Likewise. Use more fine-grained tests for register
13977 conflicts.
13978 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
13979 allocno subobjects.
13980 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
13981 choices about which bits to set in each set. Don't use
13982 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
13983 using the multiple sets we computed.
13984 (push_allocno_to_stack): Iterate over allocno subobjects.
13985 (all_conflicting_hard_regs_coalesced): New static function.
13986 (setup_allocno_available_regs_num): Use it.
13987 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
13988 subobjects.
13989 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
13990 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13991 by ALLOCNO_NUM_OBJECTS.
13992 (calculate_spill_cost): Likewise.
13993 (color_pass): Express if statement in a more normal way.
13994 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
13995 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
13996 (setup_slot_coalesced_allocno_live_ranges): Likewise.
13997 (allocno_reload_assign): Likewise.
13998 (ira_reassign_pseudos): Likewise.
13999 (fast_allocation): Likewise.
14000 * ira-conflicts.c (build_conflict_bit_table): Likewise.
14001 (print_allocno_conflicts): Likewise.
14002 (ira_build_conflicts): Likewise.
14003 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
14004 callers changed. Test subword 0 of each allocno for conflicts.
14005 (build_object_conflicts): Renamed from build_allocno_conflicts. All
14006 callers changed. Iterate over allocno subobjects.
14007 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
14008 * ira-int.h (struct ira_allocno): New member: num_objects.
14009 Rename object to objects and change it into an array.
14010 (ALLOCNO_OBJECT): Add new argument N.
14011 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
14012 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
14013 (ior_hard_reg_conflicts): Declare.
14014 (ira_add_live_range_to_object): Declare.
14015 (ira_allocno_object_iterator): New.
14016 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
14017 (FOR_EACH_ALLOCNO_OBJECT): New macro.
14018 * ira-lives.c (objects_live): Renamed from allocnos_live; all
14019 uses changed.
14020 (allocnos_processed): New sparseset.
14021 (make_object_born): Renamed from make_allocno_born; take an
14022 ira_object_t argument. All callers changed.
14023 (make_object_dead): Renamed from make_allocno_dead; take an
14024 ira_object_t argument. All callers changed.
14025 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
14026 All callers changed.
14027 (mark_pseudo_regno_live): Iterate over allocno subobjects.
14028 (mark_pseudo_regno_dead): Likewise.
14029 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
14030 functions.
14031 (mark_ref_live): Detect subword accesses and call
14032 mark_pseudo_regno_subword_live as appropriate.
14033 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
14034 (process_bb_nodes_live): Deal with object-related updates first; set
14035 and test bits in allocnos_processed to avoid computing allocno
14036 statistics more than once.
14037 (create_start_finish_chains): Iterate over objects, not allocnos.
14038 (print_object_live_ranges): New function.
14039 (print_allocno_live_ranges): Use it.
14040 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
14041 and objects_live.
14042
14043 2010-07-22 Richard Guenther <rguenther@suse.de>
14044
14045 PR lto/42451
14046 * gimple.c (gtc_next_dfs_num): New global.
14047 (struct sccs): Make value a union, add integer same_p member.
14048 (gtc_visit): New function.
14049 (gimple_types_compatible_p_1): New function, split out from ...
14050 (gimple_types_compatible_p): ... here. Start a DFS walk here.
14051 (iterative_hash_gimple_type): Adjust for sccs change.
14052
14053 2010-07-22 Martin Jambor <mjambor@suse.cz>
14054
14055 PR tree-optimization/44891
14056 * tree-sra.c: Include gimple-pretty-print.h.
14057 (replace_uses_with_default_def_ssa_name): Renamed to
14058 get_repl_default_def_ssa_name, return the new SSA name instead of
14059 replacing the old one.
14060 (sra_modify_assign): Dump a message when removing a load, if the LHS
14061 is an SSA_NAME, do not do any propagation, just set the RHS to a
14062 default definition SSA NAME, type convert if necessary.
14063 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
14064
14065 2010-07-22 Richard Guenther <rguenther@suse.de>
14066
14067 PR tree-optimization/45017
14068 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
14069 TYPE_PRECISION of integral types in addition to size.
14070
14071 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
14072
14073 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
14074 when no C library is specified.
14075
14076 2010-07-22 Martin Jambor <mjambor@suse.cz>
14077
14078 * ipa-prop.h (struct ipa_node_params): Updated comment.
14079 (struct ipa_edge_args): Likewise.
14080 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
14081
14082 2010-07-22 Martin Jambor <mjambor@suse.cz>
14083
14084 * cgraphunit.c (verify_edge_count_and_frequency): New function.
14085 (verify_cgraph_node): Verify frequencies of indirect edges.
14086 * tree-inline.c (tree_function_versioning): Update frequencies of
14087 indirect edges.
14088
14089 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14090
14091 PR target/43698
14092 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
14093 Set *arm_rev to be predicable.
14094
14095 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
14096
14097 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
14098 (LINK_COMMAND_SPEC_A): New.
14099 (DSYMUTIL): New.
14100 (DSYMUTIL_SPEC): New.
14101 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
14102 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
14103
14104 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
14105
14106 * calls.c (load_register_parameters): Move check for zero
14107 sized items so that only the call to
14108 mem_overlaps_already_clobbered_arg_p () is protected.
14109
14110 2010-07-22 Jan Hubicka <jh@suse.cz>
14111
14112 * ipa-pure-const.c (varying_state): Break out from ...
14113 (get_function_state): ... here; always return varying_state
14114 when state would be NULL otherwise.
14115 (remove_node_data): Do not free varying state.
14116
14117 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
14118
14119 PR bootstrap/44970
14120 PR middle-end/45009
14121 * postreload.c: Include "target.h".
14122 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
14123 into account.
14124 (fixup_debug_insns): Don't copy the rtx.
14125 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
14126 Don't copy when replacing. Call fixup_debug_insns in the case where
14127 we merged one add with another.
14128 (reload_combine_recognize_pattern): Fail if there aren't any uses.
14129 Try harder to determine whether we're picking a valid index register.
14130 Don't set store_ruid for an insn we're going to scan in the
14131 next iteration.
14132 (reload_combine): Remove unused code.
14133 (reload_combine_note_use): When updating use information for
14134 an old insn, ignore a use that occurs after store_ruid.
14135 * Makefile.in (postreload.o): Update dependencies.
14136
14137 * function.c (record_hard_reg_sets): Restrict the previous change
14138 to cases where the incoming nominal mode is the same as the
14139 incoming promoted mode and everything happens in MODE_INT.
14140
14141 2010-07-21 Jakub Jelinek <jakub@redhat.com>
14142
14143 PR debug/45015
14144 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
14145 ASM_OPERANDS_OUTPUT_IDX.
14146 (adjust_insn): For inline asm with multiple sets ensure first
14147 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
14148 the insn.
14149
14150 2010-07-21 Richard Henderson <rth@redhat.com>
14151
14152 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
14153 comparison for avoiding xmm register saves. Emit the xmm register
14154 saves explicitly.
14155 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
14156 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
14157 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
14158 Remove patterns and the associated splitters.
14159
14160 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
14161
14162 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
14163 and imagine parts of a complex, so that they can have the same
14164 base and fall into the same group.
14165
14166 2010-07-21 Richard Guenther <rguenther@suse.de>
14167
14168 PR lto/45018
14169 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
14170 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
14171 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
14172
14173 2010-07-21 Martin Jambor <mjambor@suse.cz>
14174
14175 PR tree-optimization/44900
14176 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
14177 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
14178
14179 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
14180
14181 PR middle-end/44738
14182 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
14183
14184 2010-07-21 Richard Guenther <rguenther@suse.de>
14185
14186 PR middle-end/45013
14187 * tree-ssa.c (useless_type_conversion_p): Dispatch to
14188 gimple_types_compatible_p only when in lto.
14189 * gimple.c (gimple_types_compatible_p): Use canonical types
14190 to speed up comparison.
14191
14192 2010-07-21 Richard Guenther <rguenther@suse.de>
14193
14194 * tree-flow.h (referenced_var): Move define ...
14195 * tree-flow-inline.h (referenced_var): ... here as an inline
14196 function. Assert here ...
14197 * tree-dfa.c (referenced_var_lookup): ... instead of here.
14198 * tree-ssa.c (maybe_optimize_var): Check if the variable
14199 is in referenced vars.
14200 (execute_update_addresses_taken): Remove old broken check.
14201 * gimple-pretty-print.c (pp_points_to_solution): Use
14202 referenced_var_lookup.
14203 * tree-into-ssa.c (dump_decl_set): Likewise.
14204
14205 2010-07-21 Jakub Jelinek <jakub@redhat.com>
14206
14207 PR debug/45003
14208 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
14209 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
14210 ZERO_EXTEND here.
14211
14212 2010-07-20 Richard Henderson <rth@redhat.com>
14213
14214 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
14215
14216 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
14217
14218 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
14219 computing the sum of the stack pointer and a large constant.
14220 * config/arm/constraints.md (M): Remove superfluous parentheses.
14221 (Pc): New constraint.
14222
14223 2010-07-20 Jakub Jelinek <jakub@redhat.com>
14224
14225 PR debug/45006
14226 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
14227 operand's type if exp is tcc_unary class tree.
14228
14229 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
14230
14231 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
14232 Reverse sense of if_then_else condition.
14233
14234 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
14235
14236 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
14237 * config/rs6000/rs6000.c (rs6000_override_options): Set
14238 rs6000_block_move_inline_limit appropriately.
14239 (expand_block_move): Use rs6000_block_move_inline_limit.
14240 * doc/invoke.texi (mblock-move-inline-limit): Document.
14241
14242 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
14243
14244 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
14245 FROM and TO. All callers changed. Don't look for tracked uses,
14246 just scan the RTL for DEBUG_INSNs and substitute.
14247 (reload_combine_recognize_pattern): Call fixup_debug_insns.
14248 (reload_combine): Ignore DEBUG_INSNs.
14249
14250 2010-07-20 Jakub Jelinek <jakub@redhat.com>
14251
14252 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
14253 depth to 8 from 5.
14254
14255 PR debug/45003
14256 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
14257 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
14258 instead of the result's type.
14259
14260 2010-07-20 Richard Guenther <rguenther@suse.de>
14261
14262 PR tree-optimization/44977
14263 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
14264 SSA form.
14265
14266 2010-07-20 Richard Guenther <rguenther@suse.de>
14267
14268 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
14269 (lto_symtab_merge_decls_2): Likewise.
14270 * gimple.h (gimple_types_compatible_p): Declare.
14271 * gimple.c (gimple_queue_type_fixup): Remove.
14272 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
14273 (gimple_compatible_complete_and_incomplete_type_p): New function.
14274 (gimple_types_compatible_p): Adjust.
14275 (gimple_register_type): Remove type fixup code.
14276 (print_gimple_types_stats): Adjust.
14277 (free_gimple_type_tables): Likewise.
14278 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
14279 * tree-ssa.c (useless_type_conversion_p): Likewise.
14280
14281 2010-07-20 Richard Guenther <rguenther@suse.de>
14282
14283 PR middle-end/44971
14284 PR middle-end/44988
14285 * tree-ssa.c (maybe_optimize_var): New function split out from ...
14286 (execute_update_addresses_taken): ... here.
14287 (non_rewritable_mem_ref_base): Likewise.
14288 (execute_update_addresses_taken): Do not iterate over all referenced
14289 vars but just all local decls and parms.
14290 Properly check call and asm arguments and rewrite call arguments.
14291
14292 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
14293
14294 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
14295 to top level.
14296 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
14297 definitions ...
14298 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
14299 New macro.
14300 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
14301
14302 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
14303
14304 * gengtype.c (start_root_entry): New function, split out from
14305 write_root. Check whether V is null and raise an error if so.
14306 (write_field_root): Check for V being null. Don't raise an error here;
14307 set V to null instead.
14308 (write_root): Update comment above function. Use start_root_entry.
14309
14310 2010-07-19 Xinliang David Li <davidxl@google.com>
14311
14312 PR testsuite/44932
14313 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
14314 def edges.
14315 (find_uninit_use): Add dump.
14316 (is_use_properly_guarded): Ditto.
14317 (warn_uninitialized_phi): Ditto.
14318 (execute_late_warn_uninitialized): Ditto.
14319
14320 2010-07-19 Richard Guenther <rguenther@suse.de>
14321
14322 PR middle-end/44941
14323 * expr.c (emit_block_move_hints): Move zero size check first.
14324 Move asserts to more useful places.
14325 * calls.c (load_register_parameters): Check for zero size.
14326
14327 2010-07-19 Richard Henderson <rth@redhat.com>
14328
14329 * tree-optimize.c (execute_all_early_local_passes): New. Change
14330 cgraph_state here ...
14331 (execute_early_local_optimizations): ... not here. Remove.
14332 (pass_early_local_passes, pass_all_early_optimizations): Update.
14333
14334 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
14335
14336 * postreload.c (reload_combine_closest_single_use): Ignore the
14337 number of uses for DEBUG_INSNs.
14338 (fixup_debug_insns): New static function.
14339 (reload_combine_recognize_const_pattern): Use it. Don't let the
14340 main loop be affected by DEBUG_INSNs.
14341 Really disallow moving adds past a jump insn.
14342 (reload_combine_recognize_pattern): Don't update use_ruid here.
14343 (reload_combine_note_use): Do it here.
14344 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
14345
14346 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
14347
14348 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
14349 of a loop.
14350 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
14351
14352 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
14353
14354 * config/i386/darwin.h: Define darwin_emit_branch_islands.
14355 (TARGET_MACHO_BRANCH_ISLANDS): New.
14356 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
14357 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
14358 default value.
14359 * config/i386/i386.c (output_pic_addr_const): Do not emit
14360 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
14361 (x86_output_mi_thunk): Adjust symbol creation.
14362 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
14363 Remove out of date comment.
14364 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
14365 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14366 (DARWIN_GENERATE_ISLANDS): Ditto.
14367 (output_call): Do not emit branch islands unless
14368 darwin_emit_branch_islands is set.
14369 * config/darwin.c: Declare darwin_emit_branch_islands.
14370 (machopic_indirect_data_reference): Do not emit unless
14371 darwin_emit_branch_islands is set.
14372 (darwin_override_options): Set darwin_emit_branch_islands
14373 where it is needed.
14374 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14375
14376 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14377
14378 * doc/sourcebuild.texi (Effective-Target Keywords): Document
14379 sse_runtime, sse2_runtime.
14380
14381 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
14382
14383 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
14384 low half of a single-register SCmode return value before ORing
14385 it with the high half.
14386 * config/mips/mips16.S (MERGE_GPRf): Likewise.
14387
14388 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14389
14390 PR target/44805
14391 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
14392 on all targets.
14393
14394 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
14395
14396 PR target/42235
14397 * postreload.c (reload_cse_move2add): Return bool, true if anything.
14398 changed. All callers changed.
14399 (move2add_use_add2_insn): Likewise.
14400 (move2add_use_add3_insn): Likewise.
14401 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
14402 reload_combine.
14403 (RELOAD_COMBINE_MAX_USES): Bump to 16.
14404 (last_jump_ruid): New static variable.
14405 (struct reg_use): New members CONTAINING_MEM and RUID.
14406 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
14407 (reload_combine_split_one_ruid, reload_combine_split_ruids,
14408 reload_combine_purge_insn_uses, reload_combine_closest_single_use
14409 reload_combine_purge_reg_uses_after_ruid,
14410 reload_combine_recognize_const_pattern): New static functions.
14411 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
14412 is true for our reg and that we have available index regs.
14413 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
14414 callers changed. Use them to initialize fields in struct reg_use.
14415 (reload_combine): Initialize last_jump_ruid. Be careful when to
14416 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
14417 Call reload_combine_recognize_const_pattern.
14418 (reload_combine_note_store): Update REAL_STORE_RUID field.
14419
14420 2010-07-16 Jason Merrill <jason@redhat.com>
14421
14422 * Makefile.in (opts-common.o): Depend on options.h.
14423
14424 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
14425
14426 * tree.c (build_common_builtin_nodes): Use build_function_type_list
14427 instead of build_function_type.
14428 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
14429 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
14430
14431 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
14432
14433 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
14434 do all the work.
14435 (rs6000_emit_int_cmove): Use function pointers for insn generation.
14436 Don't force values into registers unnecessarily.
14437 (output_isel): Assert that we're not given conditions we can't handle.
14438 Delete corresponding code.
14439 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
14440 scc_comparison_operator constraint. Permit 0 for the consequent
14441 operand. Permit any GPR for the alternative operand.
14442 (isel_unsigned_<mode>): Likewise.
14443
14444 2010-07-16 Jakub Jelinek <jakub@redhat.com>
14445
14446 PR target/44942
14447 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
14448 argument to const_tree.
14449 * config/i386/i386.c (function_arg_advance): If padding needs to be
14450 inserted before argument, increment cum->words by number of padding
14451 words as well.
14452 (contains_aligned_value_p): Change argument to const_tree.
14453 (ix86_function_arg_boundary): Change second argument to const_tree.
14454
14455 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
14456
14457 PR target/42235
14458 * function.c (record_hard_reg_sets): New static function.
14459 (assign_parm_setup_reg): If an optab for extending exists and the
14460 generated code clobbbers no hard regs, emit the insn directly and
14461 create a REG_EQUIV note.
14462
14463 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
14464
14465 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
14466 TREE_CHAIN.
14467 * c-typeck.c (push_init_level): Likewise.
14468 (process_init_element): Likewise.
14469
14470 2010-07-15 Anatoly Sokolov <aesok@post.ru>
14471
14472 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
14473 (integer_three_node): Add.
14474 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
14475 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
14476 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
14477 of call build_int_cst.
14478 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
14479 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
14480 (find_interesting_uses_address): Ditto.
14481 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
14482 * tree-eh.c (lower_eh_constructs_2): Ditto.
14483 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
14484 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
14485 * expmed.c (expand_divmod): Ditto.
14486 * tree-mudflap.c (mx_register_decls): Ditto.
14487 * varasm.c (array_size_for_constructor): Ditto.
14488 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
14489 * c-parser.c (c_parser_postfix_expression): Ditto.
14490
14491 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
14492
14493 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
14494 New static variables.
14495 (reload_combine_recognize_pattern): New static function, broken out
14496 of reload_combine.
14497 (reload_combine): Use it. Only initialize first_index_reg and
14498 last_index_reg once.
14499
14500 2010-07-15 Richard Henderson <rth@redhat.com>
14501
14502 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
14503 when done.
14504
14505 2010-07-15 Jan Hubicka <jh@suse.cz>
14506
14507 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
14508 comdats for broken gold.
14509 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
14510
14511 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
14512
14513 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
14514
14515 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
14516
14517 * tree.h (DECL_CHAIN): Define.
14518 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
14519 * c-decl.c: Likewise.
14520 * c-parser.c: Likewise.
14521 * c-typeck.c: Likewise.
14522 * cfgexpand.c: Likewise.
14523 * cgraph.c: Likewise.
14524 * cgraphunit.c: Likewise.
14525 * combine.c: Likewise.
14526 * config/alpha/alpha.c: Likewise.
14527 * config/arm/arm.c: Likewise.
14528 * config/frv/frv.c: Likewise.
14529 * config/i386/i386.c: Likewise.
14530 * config/i386/winnt-cxx.c: Likewise.
14531 * config/ia64/ia64.c: Likewise.
14532 * config/iq2000/iq2000.c: Likewise.
14533 * config/mep/mep.c: Likewise.
14534 * config/mips/mips.c: Likewise.
14535 * config/pa/som.h: Likewise.
14536 * config/rs6000/rs6000.c: Likewise.
14537 * config/s390/s390.c: Likewise.
14538 * config/sh/sh.c: Likewise.
14539 * config/sh/symbian-cxx.c: Likewise.
14540 * config/sparc/sparc.c: Likewise.
14541 * config/spu/spu.c: Likewise.
14542 * config/stormy16/stormy16.c: Likewise.
14543 * config/vxworks.c: Likewise.
14544 * config/xtensa/xtensa.c: Likewise.
14545 * coverage.c: Likewise.
14546 * dbxout.c: Likewise.
14547 * dwarf2out.c: Likewise.
14548 * emit-rtl.c: Likewise.
14549 * expr.c: Likewise.
14550 * function.c: Likewise.
14551 * gimple-low.c: Likewise.
14552 * gimple-pretty-print.c: Likewise.
14553 * gimplify.c: Likewise.
14554 * integrate.c: Likewise.
14555 * ipa-inline.c: Likewise.
14556 * ipa-prop.c: Likewise.
14557 * ipa-split.c: Likewise.
14558 * ipa-struct-reorg.c: Likewise.
14559 * ipa-type-escape.c: Likewise.
14560 * langhooks.c: Likewise.
14561 * lto-cgraph.c: Likewise.
14562 * omp-low.c: Likewise.
14563 * stor-layout.c: Likewise.
14564 * tree-cfg.c: Likewise.
14565 * tree-complex.c: Likewise.
14566 * tree-dfa.c: Likewise.
14567 * tree-dump.c: Likewise.
14568 * tree-inline.c: Likewise.
14569 * tree-mudflap.c: Likewise.
14570 * tree-nested.c: Likewise.
14571 * tree-object-size.c: Likewise.
14572 * tree-pretty-print.c: Likewise.
14573 * tree-sra.c: Likewise.
14574 * tree-ssa-live.c: Likewise.
14575 * tree-ssa-loop-niter.c: Likewise.
14576 * tree-ssa-math-opts.c: Likewise.
14577 * tree-ssa-reassoc.c: Likewise.
14578 * tree-ssa-sccvn.c: Likewise.
14579 * tree-ssa-structalias.c: Likewise.
14580 * tree-tailcall.c: Likewise.
14581 * tree-vrp.c: Likewise.
14582 * tree.c: Likewise.
14583 * var-tracking.c: Likewise.
14584 * varasm.c: Likewise.
14585
14586 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14587
14588 PR target/44877
14589 * config/spu/spu.c (spu_expand_builtin_1): Allow references
14590 (as well as pointers) as argument to mask_for_load builtins.
14591
14592 2010-07-15 Richard Guenther <rguenther@suse.de>
14593
14594 PR tree-optimization/44946
14595 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
14596 with accessing only padding properly.
14597
14598 2010-07-15 Jan Hubicka <jh@suse.cz>
14599
14600 * ipa.c (function_and_variable_visibility): Variables marked as used
14601 should not be localized.
14602
14603 2010-07-15 Jan Hubicka <jh@suse.cz>
14604
14605 * cgraph.c: Include lto-streamer.h
14606 (change_decl_assembler_name): Work when assembler name hash is at place.
14607 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
14608 be sure to rename it to avoid name clash.
14609 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
14610 Localize hidden symbols only when locally defined.
14611
14612 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
14613
14614 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
14615
14616 2010-07-15 Magnus Granberg <zorry@gentoo.org>
14617 Kevin F. Quinn <kevquinn@gentoo.org>
14618
14619 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
14620 * common.opt: Add -Wtrampolines.
14621 * doc/invoke.texi: Add -Wtrampolines.
14622
14623 2010-07-15 Jie Zhang <jie@codesourcery.com>
14624
14625 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
14626 cortex_a8_issue_ls.
14627
14628 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
14629
14630 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
14631 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
14632
14633 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14634
14635 * config/spu/spu.c (reg_names): Remove prototype.
14636 (call_used_regs): Likewise.
14637
14638 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
14639
14640 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
14641 "unused" with attribute "used".
14642 (__JCR_END__): Likewise.
14643 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
14644 "used" attribute.
14645 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
14646
14647 2010-07-14 Richard Guenther <rguenther@suse.de>
14648
14649 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
14650 (maybe_fixup_decls): Likewise.
14651 (input_gimple_stmt): Do not fixup anything.
14652 * lto-streamer-out.c (output_gimple_stmt): Make sure all
14653 non-automatic variable uses are wrapped inside a MEM_REF.
14654
14655 2010-07-14 Richard Henderson <rth@redhat.com>
14656
14657 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
14658 for functions.
14659 * varasm.c (assemble_variable): Remove early exit for functions;
14660 assert that we're given a variable.
14661
14662 2010-07-14 Jie Zhang <jie@codesourcery.com>
14663
14664 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
14665 cortex_a8_default when neon_type is not none.
14666
14667 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
14668
14669 * lower-subreg.c (subreg_context): New static bitmap.
14670 (decompose_multiword_subregs): Allocate and free it.
14671 (find_decomposable_subregs): Set a bit in it for a register that
14672 occurs in a subreg that changes mode but not size.
14673 (can_decompose_p): Test it instead of non_decomposable_context.
14674
14675 2010-07-14 Richard Guenther <rguenther@suse.de>
14676
14677 PR tree-optimization/44824
14678 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
14679 is_gimple_mem_ref_addr.
14680 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
14681 non-decl_address_invariant_p addresses.
14682
14683 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
14684
14685 * reload.c (find_reloads): Revert code to penalize small register
14686 classes that was brought in with the IRA merge.
14687
14688 2010-07-14 Richard Guenther <rguenther@suse.de>
14689
14690 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
14691 as base of ARRAY_REFs.
14692
14693 2010-07-14 Richard Guenther <rguenther@suse.de>
14694
14695 PR middle-end/44930
14696 * tree-pretty-print.c (do_niy): Do not print a newline.
14697
14698 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
14699
14700 * ira-int.h (struct ira_object): New.
14701 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
14702 (struct ira_allocno): Remove members min, max,
14703 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
14704 conflict_allocnos_num and conflict_vec_p. Add new member object.
14705 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
14706 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
14707 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
14708 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
14709 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
14710 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
14711 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
14712 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
14713 an ira_object_t rather than ira_allocno_t. All uses changed.
14714 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14715 contains a vector of ira_object_t; all uses changed.
14716 (ira_objects_num): Declare variable.
14717 (ira_create_allocno_object): Declare function.
14718 (ira_conflict_vector_profitable_p): Adjust prototype.
14719 (ira_allocate_conflict_vec): Renamed from
14720 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
14721 (ira_allocate_object_conflicts): Renamed from
14722 ira_allocate_allocno_conflicts; first arg now ira_object_t.
14723 (struct ira_object_iterator): New.
14724 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
14725 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
14726 to conflict_vec_p. All uses changed.
14727 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
14728 Changed to take into account that conflicts are now tracked for
14729 objects.
14730 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
14731 Args changed to accept ira_object_t. All uses changed.
14732 (allocnos_conflict_p): New static function.
14733 (collected_conflict_objects): Renamed from collected_allocno_objects;
14734 now a vector of ira_object_t. All uses changed.
14735 (build_conflict_bit_table): Changed to take into account that
14736 conflicts are now tracked for objects.
14737 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
14738 (print_allocno_conflicts, ira_build_conflicts): Likewise.
14739 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
14740 setup_allocno_left_conflicts_size, allocno_reload_assign,
14741 fast_allocation): Likewise.
14742 * ira-lives.c (make_hard_regno_born, make_allocno_born)
14743 process_single_reg_class_operands, process_bb_node_lives): Likewise.
14744 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
14745 Likewise.
14746 * ira-build.c (ira_objects_num): New variable.
14747 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14748 contains a vector of ira_object_t; all uses changed.
14749 (ira_object_id_map_vec): Corresponding change.
14750 (object_pool): New static variable.
14751 (initiate_allocnos): Initialize it.
14752 (finish_allocnos): Free it.
14753 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
14754 New functions.
14755 (ira_create_allocno): Don't set members that were removed.
14756 (ira_set_allocno_cover_class): Don't change conflict hard regs.
14757 (merge_hard_reg_conflicts): Changed to take into account that
14758 conflicts are now tracked for objects.
14759 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
14760 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
14761 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
14762 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
14763 setup_min_max_conflict_allocno_ids, ): Likewise.
14764 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
14765 to ira_object_t; all callers changed.
14766 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
14767 to ira_object_t, all callers changed.
14768 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
14769 to ira_object_t, all callers changed.
14770 (conflict_check, curr_conflict_check_tick): Renamed from
14771 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
14772 changed.
14773 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
14774 arg changed to ira_object_t, all callers changed.
14775 (create_cap_allocno): Call ira_create_allocno_object.
14776 (finish_allocno): Free the corresponding object.
14777 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
14778 callers changed. Adjusted for dealing with objects.
14779 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
14780 dealing with objects.
14781 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
14782
14783 * ira-int.h (struct live_range): Rename allocno member to object
14784 and change type to ira_object_t.
14785 (struct ira_object): New member live_ranges.
14786 (struct ira_allocno): Remove member live_ranges.
14787 (ALLOCNO_LIVE_RANGES): Remove.
14788 (OBJECT_LIVE_RANGES): New macro.
14789 (ira_create_live_range, ira_copy_live_range_list,
14790 ira_merge_live_range_list, ira_live_ranges_intersect_p,
14791 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
14792 * ira-build.c (ira_create_object): Initialize live ranges here.
14793 (ira_create_allocno): Not here.
14794 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
14795 changed to ira_object_t, all callers changed.
14796 (copy_live_range): Rename from copy_allocno_live_range, all callers
14797 changed.
14798 (ira_copy_live_range_list): Rename from
14799 ira_copy_allocno_live_range_list, all callers changed.
14800 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
14801 all callers changed.
14802 (ira_live_ranges_intersect_p): Rename from
14803 ira_allocno_live_ranges_intersect_p, all callers changed.
14804 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
14805 callers changed.
14806 (ira_finish_live_range_list): Rename from
14807 ira_finish_allocno_live_range_list, all callers changed.
14808 (change_object_in_range_list): Rename from change_allocno_in_range_list,
14809 last arg changed to ira_object_t, all callers changed.
14810 (finish_allocno): Changed to expect live ranges in the allocno's object.
14811 (move_allocno_live_ranges, copy_allocno_live_ranges,
14812 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
14813 ira_flattening, ira_build): Likewise.
14814 * ira-color.c (allocnos_have_intersected_live_ranges_p,
14815 slot_coalesced_allocno_live_ranges_intersect,
14816 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
14817 * ira-conflicts.c (build_conflict_bit_table): Likewise.
14818 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14819 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
14820 make_allocno_dead, create_start_finish_chains,
14821 remove_some_program_points_and_update_live_ranges,
14822 ira_debug_live_range_list): Likewise.
14823
14824 * ira-int.h (ira_object_conflict_iterator): Rename from
14825 ira_allocno_conflict_iterator.
14826 (ira_object_conflict_iter_init): Rename from
14827 ira_allocno_conflict_iter_init, second arg changed to
14828 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
14829 FOR_EACH_ALLOCNO_CONFLICT.
14830 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
14831 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
14832 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
14833 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14834
14835 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
14836
14837 PR other/44874
14838 * tree-dump.c (dump_options): Add enumerate_locals entry.
14839 Add TDF_NOID exclusion to all entry.
14840 * tree-dump.h (dump_enumerated_decls): Declare.
14841 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
14842 Don't display type uid.
14843 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
14844 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
14845 * tree-ssa-live.c: Include gimple.h.
14846 (numbered_tree_d): New struct.
14847 (numbered_tree): New typedef.
14848 (DEF_VEC_O (numbered_tree): New.
14849 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
14850 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
14851 (dump_enumerated_decls): Likewise.
14852 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
14853 debug info and flag_dump_final_insns, call dump_enumerated_decls.
14854 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
14855 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
14856
14857 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
14858
14859 * expmed.h (MAX_BITS_PER_WORD): Move to...
14860 * defaults.h (MAX_BITS_PER_WORD): ...here.
14861
14862 2010-07-13 DJ Delorie <dj@redhat.com>
14863
14864 * config/h8300/h8300.c (h8300_init_once): Default to
14865 -fstrict_volatile_bitfields.
14866
14867 * config/sh/sh.c (sh_override_options): Default to
14868 -fstrict_volatile_bitfields.
14869
14870 * config/rx/rx.c (rx_option_override): New.
14871
14872 * config/m32c/m32c.c (m32c_override_options): Default to
14873 -fstrict_volatile_bitfields.
14874
14875 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
14876
14877 * tree.h (build_function_call_expr): Delete.
14878 (build_call_expr_loc_array): New function.
14879 (build_call_expr_loc_vec): New function.
14880 * tree-flow.h (struct omp_region): Change type of ws_args field
14881 to a VEC.
14882 * builtins.c (build_function_call_expr): Delete.
14883 (build_call_expr_loc_array): New function.
14884 (build_call_expr_loc): Call it. Use XALLOCAVEC.
14885 (build_call_expr): Likewise.
14886 (build_call_expr_loc_vec): New function.
14887 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
14888 build_function_call_expr.
14889 * expr.c (emutls_var_address): Likewise.
14890 * varasm.c (emutls_common_1): Likewise.
14891 * omp-low.c (expand_omp_atomic_mutex): Likewise.
14892 (expand_omp_taskreg): Adjust for new type of region->ws_args.
14893 (get_ws_args_for): Return a VEC instead of a tree.
14894 (expand_parallel_call): Call build_call_expr_loc_vec instead of
14895 build_function_call_expr.
14896 * stor-layout.c (self_referential_size): Likewise.
14897
14898 2010-07-13 Jakub Jelinek <jakub@redhat.com>
14899
14900 PR testsuite/44701
14901 * recog.c (constrain_operands): Allow side-effects in memory
14902 operands if either < or > constraint is used, rather than if
14903 both < and > is used.
14904
14905 2010-07-13 Richard Guenther <rguenther@suse.de>
14906
14907 PR middle-end/44911
14908 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
14909 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
14910 without name.
14911
14912 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
14913
14914 PR target/44761
14915 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
14916 to variable emited.
14917 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
14918 * config/sh/sh.md (symGOT_load): Likewise.
14919 (symDTPOFF2reg): Likewise.
14920 (symTPOFF2reg): Likewise.
14921
14922 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14923
14924 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
14925 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
14926
14927 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14928
14929 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
14930 explanation.
14931 Find ucontext_t * on Solaris 11.
14932 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
14933 Handle new Solaris 11 __sighndlr patterns.
14934
14935 2010-07-13 Jakub Jelinek <jakub@redhat.com>
14936
14937 PR debug/44901
14938 * vec.h (VEC_block_remove): Fix comment.
14939 * tree-ssa-live.c (remove_unused_locals): Don't use
14940 VEC_unordered_remove on local_decls, instead replace a single
14941 vector element in each iteration if at least one element had
14942 to be removed and VEC_truncate at the end.
14943 * omp-low.c (expand_omp_taskreg): Likewise.
14944
14945 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
14946
14947 * c-decl.c (finish_function): Fix typo in comment.
14948
14949 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
14950
14951 PR bootstrap/44921
14952 * postreload.c (move2add_use_add3_insn): Silence gcc warning
14953 on min_regno.
14954
14955 2010-07-12 Jakub Jelinek <jakub@redhat.com>
14956
14957 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
14958 (simplify_stmt_using_ranges): Use it.
14959
14960 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14961
14962 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
14963 member. Do not mark as GTY(()).
14964 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
14965 (spu_builtin_decls): New static variable.
14966 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
14967 (spu_init_builtins): Likewise.
14968 (spu_builtin_mul_widen_even): Likewise.
14969 (spu_builtin_mul_widen_odd): Likewise.
14970 (spu_builtin_mask_for_load): Likewise.
14971 (spu_builtin_vec_perm): Likewise.
14972 * config/spu/spu-c.c: Include "target.h".
14973 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
14974 of using spu_builtins[].fndecl.
14975
14976 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14977
14978 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
14979 imply -minterlink-mips16.
14980
14981 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14982
14983 * config/mips/mips.h (mips16_globals): Declare.
14984 (SWITCHABLE_TARGET): Define.
14985 * config/mips/mips.c: Include target-globals.h.
14986 (mips16_globals): New variable.
14987 (mips_set_mips16_mode): Use save_target_globals and
14988 restore_target_globals instead of target_reinit.
14989
14990 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14991
14992 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
14993 to say that the function can be called more than once.
14994 * target-globals.c (save_target_globals): Call init_reg_sets.
14995
14996 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14997
14998 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
14999 * bb-reorder.h: New file.
15000 * bb-reorder.c (default_target_bb_reorder): New variable.
15001 (this_target_bb_reorder): New conditional variable.
15002 (uncond_jump_length): Redefine as a macro.
15003 * target-globals.h (this_target_bb_reorder): Declare.
15004 (target_globals): Add a bb_reorder field.
15005 (restore_target_globals): Copy the bb_reorder field to
15006 this_target_bb-reorder.
15007 * target-globals.c: Include bb-reorder.h.
15008 (default_target_globals): Initialize the bb_reorder field.
15009 (save_target_globals): Likewise.
15010
15011 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15012
15013 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
15014 * gcse.h: New file.
15015 * gcse.c: Include gcse.h.
15016 (default_target_gcse): New variable.
15017 (this_target_gcse): New conditional variable.
15018 (can_copy): Redefine as a macro.
15019 (can_copy_init_p): New macro.
15020 (can_copy_p): Remove can_copy_init_p.
15021 * target-globals.h (this_target_gcse): Declare.
15022 (target_globals): Add a gcse field.
15023 (restore_target_globals): Copy the gcse field to this_target_gcse.
15024 * target-globals.c: Include gcse.h.
15025 (default_target_globals): Initialize the gcse field.
15026 (save_target_globals): Likewise.
15027
15028 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15029
15030 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
15031 and x_ira_prohibited_mode_move_regs_initialized_p.
15032 (ira_prohibited_mode_move_regs): Redefine as a macro.
15033 * ira.c (ira_prohibited_mode_move_regs): Delete.
15034 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
15035
15036 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15037
15038 * reload.h (target_reload): Add x_cached_reg_save_code and
15039 x_cached_reg_restore_code.
15040 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
15041 Redefine as macros.
15042
15043 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15044
15045 * Makefile.in (target-globals.o): Depend on builtins.h.
15046 * builtins.h: New file.
15047 * builtins.c: Include builtins.h.
15048 (default_target_builtins): New variable.
15049 (this_target_builtins): New conditional variable.
15050 (apply_args_mode, apply_result_mode): Redefine as macros.
15051 * target-globals.h (this_target_builtins): Declare.
15052 (target_globals): Add a builtins field.
15053 (restore_target_globals): Copy the builtins field to
15054 this_target_builtins.
15055 * target-globals.c: Include builtins.h.
15056 (default_target_globals): Initialize the builtins field.
15057 (save_target_globals): Likewise.
15058
15059 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15060
15061 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
15062 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
15063 from expmed.c.
15064 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
15065 (alg_hash, alg_hash_used_p): New macros.
15066 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
15067 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
15068 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
15069
15070 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15071
15072 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
15073 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
15074 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
15075 (this_op_costs, costs_classes): Redefine as macros.
15076 (record_reg_classes): Don't take op_costs as a parameter.
15077 (record_operand_costs): Likewise. Update calls to record_reg_classes.
15078 (scan_one_insn): Update call to record_operand_costs.
15079
15080 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15081
15082 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
15083 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
15084 (target_ira_int): New structure.
15085 (default_target_ira_int): Declare.
15086 (this_target_ira_int): Declare as a variable or define as a macro.
15087 (ira_reg_mode_hard_regset, ira_register_move_cost)
15088 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
15089 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
15090 (prohibited_class_mode_regs, ira_important_classes_num)
15091 (ira_important_classes, ira_reg_class_intersect)
15092 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
15093 (ira_reg_class_union): Redefine as macros.
15094 * ira.h (target_ira): New structure.
15095 (default_target_ira): Declare.
15096 (this_target_ira): Declare as a variable or define as a macro.
15097 (ira_available_class_regs, ira_hard_regno_cover_class)
15098 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
15099 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
15100 (ira_class_hard_regs_num): Redefine as macros.
15101 * ira.c (default_target_ira, default_target_ira_int): New variables.
15102 (this_target_ira, this_target_ira_int): New conditional variables.
15103 (ira_reg_mode_hard_regset, ira_memory_move_cost)
15104 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
15105 (ira_class_subset_p): Delete.
15106 (no_unit_alloc_regs): Redefine as a macro.
15107 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
15108 (ira_class_hard_regs_num, ira_class_hard_reg_index)
15109 (ira_available_class_regs): Delete.
15110 (alloc_reg_class_subclasses): Redefine as a macro.
15111 (ira_reg_class_cover_size, ira_reg_class_cover)
15112 (ira_important_classes_num, ira_important_classes)
15113 (ira_important_class_nums, ira_class_translate): Delete.
15114 (cover_class_order): Document the variable's lifetime.
15115 (reorder_important_classes): Don't set ira_important_class_nums.
15116 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
15117 (ira_reg_class_super_classes, ira_reg_class_union)
15118 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
15119 Delete.
15120 (setup_reg_class_nregs): Don't set ira_max_regs.
15121 (prohibited_class_mode_regs): Delete.
15122 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
15123 (target_globals): Add ira and ira_int fields.
15124 (restore_target_globals): Copy the ira field to this_target_ira
15125 and the ira_int field to this_target_ira_int.
15126 * target-globals.c: Include ira-int.h.
15127 (default_target_globals): Initialize the ira and ira_int fields.
15128 (save_target_globals): Likewise.
15129
15130 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15131
15132 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
15133 * cfgloop.h (target_cfgloop): New structure.
15134 (default_target_cfgloop): Declare.
15135 (this_target_cfgloop): Declare as a variable or define as a macro.
15136 (target_avail_regs, target_clobbered_regs, target_res_regs)
15137 (target_reg_cost, target_spill_cost): Redefine as macros.
15138 * cfgloopanal.c (default_target_cfgloop): New variable.
15139 (this_target_cfgloop): New conditional variable.
15140 (target_avail_regs, target_clobbered_regs, target_res_regs)
15141 (target_reg_cost, target_spill_cost): Delete.
15142 * target-globals.h (this_target_cfgloop): Declare.
15143 (target_globals): Add a cfgloop field.
15144 (restore_target_globals): Copy the cfgloop field to
15145 this_target_cfgloop.
15146 * target-globals.c: Include cfgloop.h.
15147 (default_target_globals): Initialize the cfgloop field.
15148 (save_target_globals): Likewise.
15149
15150 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15151
15152 * regs.h (target_regs): Add x_direct_load, x_direct_store and
15153 x_float_extend_from_mem.
15154 (direct_load, direct_store, float_extend_from_mem): New macros.
15155 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
15156
15157 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15158
15159 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
15160 (target-globals.o): Depend on $(LIBFUNCS_H).
15161 * libfuncs.h: Include hashtab.h.
15162 (libfunc_entry): Moved from optabs.c.
15163 (target_libfuncs): New structure.
15164 (default_target_libfuncs): Declare.
15165 (this_target_libfuncs): Declare as a variable or define as a macro.
15166 (libfunc_table): Redefine as a macro.
15167 * optabs.c (default_target_libfuncs): New variable.
15168 (this_target_libfuncs): New conditional variable.
15169 (libfunc_table): Delete.
15170 (libfunc_entry): Moved to optabs.h.
15171 (libfunc_hash): Redefine as a macro.
15172 (hash_libfunc, eq_libfunc): Fix comments.
15173 (init_optabs): Use libfunc_hash to detect cases where the function
15174 has already been called. Clear the hash table instead of
15175 recreating it.
15176 * target-globals.h (this_target_libfuncs): Declare.
15177 (target_globals): Add a libfuncs field.
15178 (restore_target_globals): Copy the libfuncs field to
15179 this_target_libfuncs.
15180 * target-globals.c: Include libfuncs.h.
15181 (default_target_globals): Initialize the libfuncs field.
15182 (save_target_globals): Likewise.
15183
15184 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15185
15186 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
15187 in all dependency lists.
15188
15189 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15190
15191 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
15192 * optabs.h (target_optabs): New structure.
15193 (default_target_optabs): Declare.
15194 (this_target_optabs): Declare as a variable or define as a macro.
15195 (optab_table, convert_optab_table, direct_optab_table): Redefine
15196 as macros.
15197 * optabs.c (default_target_optabs): New variable.
15198 (this_target_optabs): New conditional variable.
15199 (optab_table, convert_optab_table, direct_optab_table): Delete.
15200 * target-globals.h (this_target_optabs): Declare.
15201 (target_globals): Add a optabs field.
15202 (restore_target_globals): Copy the optabs field to
15203 this_target_optabs.
15204 * target-globals.c: Include expr.h and optabs.h.
15205 (default_target_globals): Initialize the optabs field.
15206 (save_target_globals): Likewise.
15207
15208 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15209
15210 * flags.h (target_flagstate): Add x_flag_excess_precision.
15211 (flag_excess_precision): Redefine as a macro.
15212 * toplev.c (flag_excess_precision): Delete.
15213
15214 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15215
15216 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
15217 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
15218 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
15219 (no_caller_save_reg_set): Redefine as a macro.
15220 * reload.h (target_reload): Add x_caller_save_initialized_p and
15221 x_regno_save_mode.
15222 (caller_save_initialized_p): Redefine as a macro.
15223 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
15224 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
15225 (regno_save_mode): Redefine as a macro.
15226
15227 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15228
15229 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
15230 * expmed.h: New file.
15231 * expmed.c (default_target_costs): New variable.
15232 (this_target_costs): New conditional variable.
15233 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
15234 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
15235 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
15236 * target-globals.h (this_target_expmed): Declare.
15237 (target_globals): Add a expmed field.
15238 (restore_target_globals): Copy the expmed field to
15239 this_target_expmed.
15240 * target-globals.c: Include expmed.h.
15241 (default_target_globals): Initialize the expmed field.
15242 (save_target_globals): Likewise.
15243
15244 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15245
15246 * Makefile.in (target-globals.o): Depend on reload.h.
15247 * reload.h (target_reload): New structure.
15248 (default_target_reload): Declare.
15249 (this_target_reload): Declare as a variable or define as a macro.
15250 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
15251 * reload1.c (default_target_reload): New variable
15252 (this_target_reload): New conditional variable.
15253 (indirect_symref_ok, double_reg_address_ok): Delete.
15254 (spill_indirect_levels): Redefine as a macro.
15255 * target-globals.h (this_target_reload): Declare.
15256 (target_globals): Add a reload field.
15257 (restore_target_globals): Copy the reload field to
15258 this_target_reload.
15259 * target-globals.c: Include hard-reg-set.h.
15260 (default_target_globals): Initialize the reload field.
15261 (save_target_globals): Likewise.
15262
15263 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15264
15265 * rtl.h (target_rtl): Add x_static_reg_base_value.
15266 * alias.c (static_reg_base_value): Redefine as a macro.
15267
15268 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15269
15270 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
15271 (GTFILES): Remove reginfo.c.
15272 * rtl.h (target_rtl): Add x_top_of_stack.
15273 (top_of_stack): New macro.
15274 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
15275 (top_of_stack): Delete.
15276
15277 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15278
15279 * regs.h (target_regs): Add x_hard_regs_of_mode,
15280 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
15281 x_may_move_out_cost and x_last_mode_for_init_move_cost.
15282 (have_regs_of_mode, contains_reg_of_mode, move_cost)
15283 (may_move_in_cost, may_move_out_cost): Redefine as macros.
15284 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
15285 (may_move_in_cost, may_move_out_cost): Delete.
15286 (last_mode_for_init_move_cost): Redefine as a macro.
15287
15288 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15289
15290 * hard-reg-set.h (target_hard_regs): New structure.
15291 (default_target_hard_regs): Declare.
15292 (this_target_hard_regs): Declare as a variable or define as a macro.
15293 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
15294 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
15295 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
15296 (reg_class_size, reg_class_subclasses, reg_class_subunion)
15297 (reg_class_superunion, reg_names): Redefine as macros.
15298 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
15299 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
15300 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
15301 (reg_class_contents, reg_class_size, reg_class_subclasses)
15302 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
15303 (default_target_hard_regs): New variable
15304 (this_target_hard_regs, initial_call_really_used_regs)
15305 (initial_reg_alloc_order): New conditional variables.
15306 (initial_reg_names): New variable.
15307 (init_reg_sets): Assert that initial_call_really_used_regs,
15308 initial_reg_alloc_order and initial_reg_names
15309 are all the same size as their variable counterparts. Use them to
15310 initialize those counterparts.
15311 * target-globals.h (this_target_hard_regs): Declare.
15312 (target_globals): Add a hard_regs field.
15313 (restore_target_globals): Copy the hard_regs field to
15314 this_target_hard_regs.
15315 * target-globals.c: Include hard-reg-set.h.
15316 (default_target_globals): Initialize the hard_regs field.
15317 (save_target_globals): Likewise.
15318
15319 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15320
15321 * Makefile.in (target-globals.o): Depend on $(RTL_H).
15322 * rtl.h (target_rtl): New structure.
15323 (default_target_rtl): Declare.
15324 (this_target_rtl): Declare as a variable or define as a macro.
15325 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
15326 Redefine as macros.
15327 * emit-rtl.c (default_target_rtl): New variable.
15328 (this_target_rtl): New conditional variable.
15329 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
15330 (return_address_pointer_rtx): Delete.
15331 (initial_regno_reg_rtx): New macro.
15332 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
15333 (init_emit_regs): Likewise.
15334 * target-globals.h (this_target_rtl): Declare.
15335 (target_globals): Add a rtl field.
15336 (restore_target_globals): Copy the rtl field to this_target_rtl.
15337 * target-globals.c: Include rtl.h.
15338 (default_target_globals): Initialize the rtl field.
15339 (save_target_globals): Likewise.
15340
15341 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15342
15343 * Makefile.in (target-globals.o): Depend on $(REGS_H).
15344 * regs.h (target_reg_modes): New structure.
15345 (default_target_reg_modes): Declare.
15346 (this_target_reg_modes): Declare as a variable or define as a macro.
15347 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
15348 * reginfo.c (default_target_reg_modes): New variable.
15349 (this_target_reg_modes): New conditional variable.
15350 (hard_regno_nregs, reg_raw_mode): Delete.
15351 * target-globals.h (this_target_regs): Declare.
15352 (target_globals): Add a regs field.
15353 (restore_target_globals): Copy the regs field to this_target_regs.
15354 * target-globals.c: Include regs.h.
15355 (default_target_globals): Initialize the regs field.
15356 (save_target_globals): Likewise.
15357
15358 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
15359
15360 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
15361 * doc/tm.texi: Regenerate.
15362 * Makefile.in (OBJS-common): Add target-globals.o.
15363 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
15364 and target-globals.h.
15365 (target-globals.o): New rule.
15366 (GTFILES): Include $(srcdir)/target-globals.h.
15367 * defaults.h (SWITCHABLE_TARGET): Define.
15368 * gengtype.c (open_base_files): Add target-globals.h to the
15369 list of includes.
15370 * target-globals.h: New file.
15371 * target-globals.c: Likewise.
15372
15373 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
15374 * flags.h (target_flag_state): New structure.
15375 (default_target_flag_state): Declare.
15376 (this_target_flag_state): Declare as a variable or define as a macro.
15377 (align_loops_log): Redefine as a macro.
15378 (align_loops_max_skip, align_jumps_log): Likewise.
15379 (align_jumps_max_skip, align_labels_log): Likewise.
15380 (align_labels_max_skip, align_functions_log): Likewise.
15381 * toplev.c (default_target_flag_state): New variable.
15382 (this_target_flag_state): New conditional variable.
15383 (align_loops_log): Delete.
15384 (align_loops_max_skip, align_jumps_log): Likewise.
15385 (align_jumps_max_skip, align_labels_log): Likewise.
15386 (align_labels_max_skip, align_functions_log): Likewise.
15387 * target-globals.h (this_target_flag_state): Declare.
15388 (target_globals): Add a flag_state field.
15389 (restore_target_globals): Copy the flag_state field to
15390 this_target_flag_state.
15391 * target-globals.c: Include flags.h.
15392 (default_target_globals): Initialize the flag_state field.
15393 (save_target_globals): Likewise.
15394
15395 2010-07-12 Jie Zhang <jie@codesourcery.com>
15396
15397 * postreload.c (reg_symbol_ref[]): New.
15398 (move2add_use_add2_insn): New.
15399 (move2add_use_add3_insn): New.
15400 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
15401 (move2add_note_store): Likewise.
15402
15403 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
15404
15405 PR rtl-optimization/44752
15406 * genautomata.c (main): Don't emit an empty file even if there
15407 is no automaton.
15408
15409 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15410
15411 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
15412 ix86_solaris_return_in_memory.
15413 * config/i386-protos.h: Reflect this.
15414 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15415 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15416 Move ...
15417 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
15418
15419 2010-07-12 Jie Zhang <jie@codesourcery.com>
15420
15421 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
15422 align the stack when it's going to be saved.
15423
15424 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15425
15426 PR pch/14940
15427 * config/host-solaris.c (mmap_fixed): New function.
15428 (sol_gt_pch_get_address): Use it.
15429 (sol_gt_pch_use_address): Likewise.
15430
15431 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15432
15433 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
15434 pentiumpro on Solaris 8 and 9/x86.
15435 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
15436 Document SSE/SSE2 support.
15437 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
15438
15439 2010-07-12 Andi Kleen <ak@linux.intel.com>
15440
15441 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
15442 instead of gcc_assert to print better error message for multiple
15443 prevailing defs.
15444
15445 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
15446
15447 * config/i386/i386.c (ix86_asm_output_function_label): Change format
15448 string placeholder from 0x%x to %#x.
15449 (ix86_code_end): Use putc to output '\n'.
15450 (ix86_print_operand) <case ';'>: Use putc to output ';'.
15451
15452 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
15453
15454 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
15455 in directive -export.
15456
15457 2010-07-10 Anatoly Sokolov <aesok@post.ru>
15458
15459 * reginfo.h (reg_classes_intersect_p): Change arguments type to
15460 reg_class_t.
15461 * rtl.h (reg_classes_intersect_p): Adjust prototype.
15462
15463 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15464 Remove macros.
15465 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
15466 rs6000_memory_move_cost): Remove
15467 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
15468 TARGET_MEMORY_MOVE_COST): Define.
15469 (rs6000_register_move_cost): Make static. Change arguments type from
15470 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
15471 (rs6000_memory_move_cost): Make static. Change arguments type from
15472 'enum reg_class' to reg_class_t.
15473
15474 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
15475
15476 PR middle-end/42505
15477 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
15478 lookup code into....
15479 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
15480 new functions.
15481 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
15482 * cfgloopanal.c (target_clobbered_regs): Define.
15483 (init_set_costs): Initialize target_clobbered_regs.
15484 (estimate_reg_pressure_cost): Add call_p argument. When true,
15485 adjust the number of available registers to exclude the
15486 call-clobbered registers.
15487 * cfgloop.h (target_clobbered_regs): Declare.
15488 (estimate_reg_pressure_cost): Adjust declaration.
15489 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
15490 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
15491 (determine_set_costs): Dump target_clobbered_regs.
15492 (loop_body_includes_call): New function.
15493 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
15494 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
15495 call_p flag through.
15496 (best_gain_for_invariant): Likewise.
15497 (find_invariants_to_move): Likewise.
15498 (move_single_loop_invariants): Likewise, using already-computed
15499 has_call field.
15500
15501 2010-07-10 Richard Guenther <rguenther@suse.de>
15502 Joern Rennecke <joern.rennecke@embecosm.com>
15503
15504 PR debug/44832
15505 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
15506 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
15507 unless they have DECL_IGNORED_P set.
15508
15509 2010-07-10 Richard Guenther <rguenther@suse.de>
15510
15511 PR lto/44889
15512 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
15513 helper function.
15514 (gimple_types_compatible_p): Similar to pointed-to
15515 types allow and merge a mix of complete and incomplete aggregate.
15516 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
15517 (iterative_hash_gimple_type): Adjust for that.
15518
15519 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
15520
15521 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
15522
15523 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
15524
15525 PR objc/44140
15526 * config/darwin.c (output_objc_section_asm_op): Save and restore
15527 section when outputting ObjC section list.
15528
15529 2010-07-09 Jan Hubicka <jh@suse.cz>
15530
15531 * lto-streamer-out.c (produce_symtab): Do not write alias
15532 cgraph/varpool nodes.
15533
15534 2010-07-09 Jan Hubicka <jh@suse.cz>
15535
15536 * tree-inline.c (declare_return_variable): Fix ICE while
15537 inlining DECL_BY_VALUE function not in SSA form
15538
15539 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
15540
15541 PR tree-optimization/44576
15542 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
15543 New. Pull out from is_loop_prefetching_profitable to implement
15544 the trip count to ahead ratio heuristic.
15545 (mem_ref_count_reasonable_p): New. Pull out from
15546 is_loop_prefetching_profitable to implement the instruction to
15547 memory reference ratio heuristic. Also consider not reasonable if
15548 the memory reference count is above a threshold (to avoid
15549 explosive compilation time.
15550 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
15551 is_loop_prefetching_profitable to implement the instruction to
15552 prefetch ratio heuristic.
15553 (is_loop_prefetching_profitable): Removed.
15554 (loop_prefetch_arrays): Distribute the cost analysis across the
15555 function to allow early exit of the prefetch analysis.
15556 is_loop_prefetching_profitable is splitted into three functions,
15557 with each one called as early as possible.
15558 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
15559 number of memory references in a loop is considered too many.
15560
15561 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
15562
15563 * reload.c (find_reloads): Don't clear badop if we have a winreg
15564 alternative, but not win, and the class only has fixed regs.
15565 * hard-reg-set.h (class_only_fixed_regs): Declare.
15566 * reginfo.c (class_only_fixed_regs): New array.
15567 (init_reg_sets_1): Initialize it.
15568 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
15569 discourage alternatives using the stack pointer.
15570
15571 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
15572
15573 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
15574
15575 * config/arm/arm.md (cbranchqi4): Fix array size.
15576 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
15577 calculating length.
15578
15579 2010-07-09 Richard Guenther <rguenther@suse.de>
15580
15581 * gimple.c (struct type_fixup_s): New struct and VEC type.
15582 (gimple_register_type_fixups): New static global.
15583 (gimple_queue_type_fixup): New function.
15584 (gimple_types_compatible_p): Queue type fixups instead of
15585 applying them here.
15586 (gimple_register_type): Apply queued fixups for the
15587 canonical type. Empty the type fixup queue.
15588
15589 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
15590
15591 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
15592 * configure: Regenerate.
15593 * config.in: Ditto.
15594
15595 2010-07-09 Jakub Jelinek <jakub@redhat.com>
15596 Denys Vlasenko <dvlasenk@redhat.com>
15597 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15598
15599 PR tree-optimization/28632
15600 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
15601 (extract_range_from_binary_expr): Further optimize
15602 BIT_AND_EXPR and BIT_IOR_EXPR.
15603
15604 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
15605
15606 * tree-if-conv.c (fold_or_predicates): New.
15607 (add_to_predicate_list): Call it.
15608
15609 2010-07-09 Richard Guenther <rguenther@suse.de>
15610
15611 PR middle-end/44890
15612 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
15613 if base is a pointer.
15614 * tree-cfg.c (verify_expr): Update MEM_REF checking.
15615
15616 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15617
15618 PR target/44877
15619 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
15620 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
15621 builtin mask for load/store builtins.
15622
15623 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
15624
15625 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
15626 for "lock addl".
15627 * configure: Regenerate.
15628 * config/i386/i386.c (ix86_print_operand) <case ';'>:
15629 Remove TARGET_MACHO.
15630
15631 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
15632
15633 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
15634 default ISA flags.
15635 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
15636
15637 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
15638
15639 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
15640
15641 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
15642
15643 * config/picochip/picochip.md (commsTestPort): Emit more
15644 efficient sequence for tstport instruction.
15645
15646 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
15647
15648 * config/i386/i386.c (ix86_veclib_handler): Make static.
15649
15650 2010-07-09 Richard Guenther <rguenther@suse.de>
15651
15652 PR tree-optimization/44852
15653 * tree-ssa-alias.c: Include toplev.h for exact_log2.
15654 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
15655 in MEM_REF.
15656 (indirect_refs_may_alias_p): Likewise.
15657 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
15658
15659 2010-07-09 Richard Guenther <rguenther@suse.de>
15660
15661 PR tree-optimization/44882
15662 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
15663 sets do conflict.
15664 (vectorizable_load): Likewise.
15665
15666 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
15667
15668 PR target/40657
15669 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
15670 All callers changed.
15671 Handle the case when we're called for the epilogue.
15672 (thumb_unexpanded_epilogue): Use it.
15673 (thumb1_expand_epilogue): Likewise.
15674
15675 2010-07-09 Jakub Jelinek <jakub@redhat.com>
15676
15677 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
15678 both ranges are range_int_cst_p with non-negative minimum,
15679 try harder to derive smaller range.
15680
15681 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15682
15683 * genrecog.c: Include diagnostic-core.h before toplev.h.
15684 * genoutput.c: Likewise.
15685 * genextract.c: Likewise.
15686 * genautomata.c: Likewise.
15687 * genemit.c: Likewise.
15688 * genpeep.c: Likewise.
15689 * genattrtab.c: Likewise.
15690 * genconditions.c: Likewise.
15691 * genpreds.c: Likewise.
15692
15693 2010-07-08 Andi Kleen <ak@linux.intel.com>
15694
15695 * lto-section-in.c (lto_section_name): Add missing comma.
15696
15697 2010-07-08 Anatoly Sokolov <aesok@post.ru>
15698
15699 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
15700 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
15701 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
15702 (ia64_override_options): Rename to...
15703 (ia64_option_override): ... this one. Make static.
15704
15705 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15706
15707 PR middle-end/44843
15708 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
15709 pointed-to type of the offset in a MEM_REF to compute the alignment.
15710
15711 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
15712
15713 * final.c (final_scan_insn): Replace
15714 TARGET_UNWIND_INFO macro check by unwind_emit
15715 hook NULL check.
15716 * targhooks.c (default_unwind_emit): Removed.
15717 * targhooks.h (default_unwind_emit): Likewise.
15718 * target.def (unwind_emit): Set default value to NULL.
15719
15720 * config/i386/i386-protos.h (ix86_asm_output_function_label):
15721 New prototype.
15722 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
15723 for NULL fntype argument and allow 64-bit targets.
15724 (ix86_asm_output_function_label): New function.
15725 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
15726 (ix86_handle_fndecl_attribute): Likewise.
15727 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
15728 * doc/doc/tm.texi: Regenerated.
15729 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
15730 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
15731 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
15732 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
15733 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15734 * config/elfos.h: Likewise.
15735 * config/i386/cygming.h: Likewise.
15736 * config/netbsd-aout.h: Likewise.
15737 * config/openbsd.h: Likewise.
15738 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
15739 by ix86_asm_output_function_label function call.
15740 * varasm.c (assemble_start_function): Use
15741 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15742
15743 2010-07-08 Jan Hubicka <jh@suse.cz>
15744
15745 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
15746 New function.
15747 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
15748 Declare.
15749 * ipa-cp.c (ipcp_estimate_growth): Use it.
15750 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
15751 Likewise.
15752
15753 2010-07-08 Jan Hubicka <jh@suse.cz>
15754
15755 * tree-inline.c (declare_return_variable): Allocate annotation for new
15756 temporary.
15757
15758 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
15759
15760 PR tree-optimization/44710
15761 * tree-if-conv.c (parse_predicate): New.
15762 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
15763 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
15764
15765 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
15766
15767 * common.opt (ftree-loop-if-convert): New flag.
15768 * doc/invoke.texi (ftree-loop-if-convert): Documented.
15769 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
15770 when flag_tree_loop_if_convert is set.
15771
15772 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
15773
15774 * config/i386/i386.c: Use short syntax for function calls
15775 through function pointers.
15776 * config/i386/i386.md: Ditto.
15777
15778 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15779
15780 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
15781
15782 2010-07-08 Richard Guenther <rguenther@suse.de>
15783
15784 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
15785 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
15786
15787 2010-07-08 Jakub Jelinek <jakub@redhat.com>
15788
15789 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
15790 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
15791 (loc_list_from_tree): Likewise.
15792 (output_loc_operands): Handle outputting DW_OP_const[48]u
15793 with loc->dtprel set.
15794 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
15795
15796 2010-07-08 Jan Hubicka <jh@suse.cz>
15797
15798 * ipa.c: Include pointer-set.h
15799 (cgraph_externally_visible_p): New attribute ALIASED;
15800 when in LTO, hidden symbols are local unless they are aliased.
15801 (function_and_variable_visibility): Compute aliased nodes;
15802 handle LTO and hidden symbol on functions and vars.
15803 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
15804 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
15805
15806 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15807
15808 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15809 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15810 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15811 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15812 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15813 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
15814 (ix86_gen_probe_stack_range): Likewise.
15815 (override_options): Set them.
15816 (ix86_target_stack_probe): New function.
15817 (ix86_compute_frame_layout): Force use of push instructions to
15818 save registers if stack checking with probes is enabled.
15819 (get_scratch_register_on_entry): New function.
15820 (release_scratch_register_on_entry): Likewise.
15821 (ix86_adjust_stack_and_probe): Likewise.
15822 (output_adjust_stack_and_probe): Likewise.
15823 (ix86_emit_probe_stack_range): Likewise.
15824 (output_probe_stack_range): Likewise.
15825 (ix86_expand_prologue): Emit stack checking code if static built-in
15826 stack checking is enabled.
15827 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
15828 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
15829 (output_adjust_stack_and_probe): Likewise.
15830 (output_probe_stack_range): Likewise.
15831 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15832 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
15833 TARGET_STACK_PROBE.
15834 (allocate_stack_worker_64): Likewise.
15835 (allocate_stack): Likewise.
15836 (adjust_stack_and_probe): New insn.
15837 (probe_stack_range): Likewise.
15838
15839 2010-07-08 Richard Guenther <rguenther@suse.de>
15840
15841 PR tree-optimization/44831
15842 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
15843 a MEM_REF preserving TBAA info of the original dereference.
15844 Dereference the original pointer if the address is not invariant.
15845 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
15846 at least one invariant address that we are going to dereference.
15847
15848 2010-07-08 Richard Guenther <rguenther@suse.de>
15849
15850 PR tree-optimization/44861
15851 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
15852 information when building MEM_REFs.
15853 (vectorizable_load): Likewise.
15854 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
15855
15856 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15857
15858 * config/sol2-c.c: Do not include diagnostic-core.h.
15859
15860 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15861
15862 PR bootstrap/44768
15863 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
15864 with respect to current_function_decl. Pass decl of the function.
15865 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
15866 * ipa-inline.c (compute_inline_parameters): Pass decl to
15867 estimated_stack_frame_size.
15868
15869 2010-07-08 Richard Guenther <rguenther@suse.de>
15870
15871 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15872 New function.
15873 (valueize_refs): Call it.
15874
15875 2010-07-08 Richard Guenther <rguenther@suse.de>
15876
15877 PR rtl-optimization/44838
15878 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
15879 SSA form do not use pointer equivalence.
15880
15881 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15882
15883 * dwarf2out.c (AT_linkage_name): Delete.
15884 (add_linkage_attr): New function.
15885 (add_linkage_name): Call it to emit the linkage attribute.
15886 (dwarf2out_finish): Likewise.
15887 (move_linkage_attr): Explicitly accept both attribute variants.
15888
15889 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15890
15891 * toplev.h: Do not include diagnostic-core.h.
15892 Include diagnostic-core.h in every file that includes toplev.h.
15893 * c-tree.h: Do not include toplev.h.
15894 * pretty-print.h: Update comment.
15895 * Makefile.in: Update dependencies.
15896 * alias.c: Include diagnostic-core.h in every file that includes
15897 toplev.h.
15898 * attribs.c: Likewise.
15899 * auto-inc-dec.c: Likewise.
15900 * bb-reorder.c: Likewise.
15901 * bt-load.c: Likewise.
15902 * caller-save.c: Likewise.
15903 * calls.c: Likewise.
15904 * cfg.c: Likewise.
15905 * cfganal.c: Likewise.
15906 * cfgbuild.c: Likewise.
15907 * cfgcleanup.c: Likewise.
15908 * cfghooks.c: Likewise.
15909 * cfgloop.c: Likewise.
15910 * combine.c: Likewise.
15911 * config/alpha/alpha.c: Likewise.
15912 * config/arc/arc.c: Likewise.
15913 * config/arm/arm.c: Likewise.
15914 * config/arm/pe.c: Likewise.
15915 * config/avr/avr.c: Likewise.
15916 * config/bfin/bfin.c: Likewise.
15917 * config/cris/cris.c: Likewise.
15918 * config/crx/crx.c: Likewise.
15919 * config/darwin-c.c: Likewise.
15920 * config/darwin.c: Likewise.
15921 * config/fr30/fr30.c: Likewise.
15922 * config/frv/frv.c: Likewise.
15923 * config/h8300/h8300.c: Likewise.
15924 * config/host-darwin.c: Likewise.
15925 * config/i386/i386.c: Likewise.
15926 * config/i386/netware.c: Likewise.
15927 * config/i386/nwld.c: Likewise.
15928 * config/i386/winnt-cxx.c: Likewise.
15929 * config/i386/winnt-stubs.c: Likewise.
15930 * config/i386/winnt.c: Likewise.
15931 * config/ia64/ia64-c.c: Likewise.
15932 * config/ia64/ia64.c: Likewise.
15933 * config/iq2000/iq2000.c: Likewise.
15934 * config/lm32/lm32.c: Likewise.
15935 * config/m32c/m32c-pragma.c: Likewise.
15936 * config/m32c/m32c.c: Likewise.
15937 * config/m32r/m32r.c: Likewise.
15938 * config/m68hc11/m68hc11.c: Likewise.
15939 * config/m68k/m68k.c: Likewise.
15940 * config/mcore/mcore.c: Likewise.
15941 * config/mep/mep-pragma.c: Likewise.
15942 * config/mep/mep.c: Likewise.
15943 * config/mmix/mmix.c: Likewise.
15944 * config/mn10300/mn10300.c: Likewise.
15945 * config/moxie/moxie.c: Likewise.
15946 * config/pa/pa.c: Likewise.
15947 * config/pdp11/pdp11.c: Likewise.
15948 * config/picochip/picochip.c: Likewise.
15949 * config/rs6000/rs6000-c.c: Likewise.
15950 * config/rs6000/rs6000.c: Likewise.
15951 * config/rx/rx.c: Likewise.
15952 * config/s390/s390.c: Likewise.
15953 * config/score/score.c: Likewise.
15954 * config/score/score3.c: Likewise.
15955 * config/score/score7.c: Likewise.
15956 * config/sh/sh.c: Likewise.
15957 * config/sh/symbian-base.c: Likewise.
15958 * config/sh/symbian-c.c: Likewise.
15959 * config/sh/symbian-cxx.c: Likewise.
15960 * config/sol2-c.c: Likewise.
15961 * config/sol2.c: Likewise.
15962 * config/sparc/sparc.c: Likewise.
15963 * config/spu/spu.c: Likewise.
15964 * config/stormy16/stormy16.c: Likewise.
15965 * config/v850/v850-c.c: Likewise.
15966 * config/v850/v850.c: Likewise.
15967 * config/vax/vax.c: Likewise.
15968 * config/vxworks.c: Likewise.
15969 * config/xtensa/xtensa.c: Likewise.
15970 * convert.c: Likewise.
15971 * cse.c: Likewise.
15972 * cselib.c: Likewise.
15973 * dbgcnt.c: Likewise.
15974 * dbxout.c: Likewise.
15975 * ddg.c: Likewise.
15976 * dominance.c: Likewise.
15977 * emit-rtl.c: Likewise.
15978 * explow.c: Likewise.
15979 * expmed.c: Likewise.
15980 * fixed-value.c: Likewise.
15981 * fold-const.c: Likewise.
15982 * fwprop.c: Likewise.
15983 * gcse.c: Likewise.
15984 * ggc-common.c: Likewise.
15985 * ggc-page.c: Likewise.
15986 * ggc-zone.c: Likewise.
15987 * gimple-low.c: Likewise.
15988 * gimplify.c: Likewise.
15989 * graph.c: Likewise.
15990 * haifa-sched.c: Likewise.
15991 * ifcvt.c: Likewise.
15992 * implicit-zee.c: Likewise.
15993 * integrate.c: Likewise.
15994 * ira-build.c: Likewise.
15995 * ira-color.c: Likewise.
15996 * ira-conflicts.c: Likewise.
15997 * ira-costs.c: Likewise.
15998 * ira-lives.c: Likewise.
15999 * ira.c: Likewise.
16000 * lists.c: Likewise.
16001 * loop-doloop.c: Likewise.
16002 * loop-iv.c: Likewise.
16003 * lto-opts.c: Likewise.
16004 * lto-symtab.c: Likewise.
16005 * main.c: Likewise.
16006 * modulo-sched.c: Likewise.
16007 * optabs.c: Likewise.
16008 * params.c: Likewise.
16009 * plugin.c: Likewise.
16010 * postreload-gcse.c: Likewise.
16011 * postreload.c: Likewise.
16012 * predict.c: Likewise.
16013 * profile.c: Likewise.
16014 * real.c: Likewise.
16015 * regcprop.c: Likewise.
16016 * reginfo.c: Likewise.
16017 * regmove.c: Likewise.
16018 * reorg.c: Likewise.
16019 * resource.c: Likewise.
16020 * rtl.c: Likewise.
16021 * rtlanal.c: Likewise.
16022 * sched-deps.c: Likewise.
16023 * sched-ebb.c: Likewise.
16024 * sched-rgn.c: Likewise.
16025 * sdbout.c: Likewise.
16026 * sel-sched-dump.c: Likewise.
16027 * sel-sched-ir.c: Likewise.
16028 * simplify-rtx.c: Likewise.
16029 * stmt.c: Likewise.
16030 * stor-layout.c: Likewise.
16031 * store-motion.c: Likewise.
16032 * targhooks.c: Likewise.
16033 * tree-cfg.c: Likewise.
16034 * tree-cfgcleanup.c: Likewise.
16035 * tree-dump.c: Likewise.
16036 * tree-eh.c: Likewise.
16037 * tree-inline.c: Likewise.
16038 * tree-nomudflap.c: Likewise.
16039 * tree-object-size.c: Likewise.
16040 * tree-optimize.c: Likewise.
16041 * tree-outof-ssa.c: Likewise.
16042 * tree-phinodes.c: Likewise.
16043 * tree-profile.c: Likewise.
16044 * tree-ssa-ccp.c: Likewise.
16045 * tree-ssa-coalesce.c: Likewise.
16046 * tree-ssa-live.c: Likewise.
16047 * tree-ssa-loop-niter.c: Likewise.
16048 * tree-ssa-loop-prefetch.c: Likewise.
16049 * tree-ssa-loop.c: Likewise.
16050 * tree-ssa-structalias.c: Likewise.
16051 * tree-ssa-uninit.c: Likewise.
16052 * tree-ssa.c: Likewise.
16053 * tree-vect-data-refs.c: Likewise.
16054 * tree-vect-loop-manip.c: Likewise.
16055 * tree-vect-loop.c: Likewise.
16056 * tree-vect-patterns.c: Likewise.
16057 * tree-vect-stmts.c: Likewise.
16058 * tree-vrp.c: Likewise.
16059 * varasm.c: Likewise.
16060 * vec.c: Likewise.
16061 * web.c: Likewise.
16062 * xcoffout.c: Likewise.
16063
16064 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
16065
16066 * gengtype.c (write_field_root): New function.
16067 (write_root): Use it.
16068
16069 2010-07-07 Wei Guozhi <carrot@google.com>
16070
16071 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
16072 of lowest bits to lshift/compare): Add a missing line.
16073
16074 2010-07-07 Wei Guozhi <carrot@google.com>
16075
16076 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
16077 of lowest bits to lshift/compare): New.
16078
16079 2010-07-07 Tom Tromey <tromey@redhat.com>
16080
16081 * doc/tm.texi: Update.
16082 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
16083 Add @hook.
16084 * target.def (want_debug_pub_sections): New hook.
16085 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
16086 * dwarf2out.c (add_pubname_string): Check
16087 targetm.want_debug_pub_sections.
16088 (add_pubname): Likewise.
16089 (add_pubtype): Likewise.
16090
16091 2010-07-07 Jie Zhang <jie@codesourcery.com>
16092
16093 * genautomata.c (output_automata_list_min_issue_delay_code):
16094 Correctly decompress min_issue_delay.
16095
16096 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
16097
16098 PR rtl-optimization/44404
16099 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
16100 possible, use reg_overlap_mentioned_p instead.
16101
16102 2010-07-07 Duncan Sands <baldrick@free.fr>
16103
16104 PR middle-end/41355
16105 * tree.c (build_function_type_skip_args): Copy the original type using
16106 build_distinct_type_copy rather than copy_node.
16107
16108 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
16109
16110 PR target/44850
16111 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
16112 revision 161876.
16113 (ix86_expand_prologue): Likewise.
16114 (ix86_handle_fndecl_attribute): Likewise.
16115 (ix86_asm_declare_function_name): Likewise.
16116 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16117 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16118 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
16119 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
16120 * doc/extend.texi: Likewise.
16121
16122 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
16123
16124 PR target/44844
16125 * config/i386/i386.md (rdrand<mode>): Changed to expand to
16126 retry if the carry flag isn't valid.
16127 (rdrand<mode>_1): New.
16128
16129 2010-07-07 Richard Guenther <rguenther@suse.de>
16130
16131 PR middle-end/44790
16132 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
16133 for expanding the constant offset for MEM_REFs.
16134
16135 2010-07-07 Richard Guenther <rguenther@suse.de>
16136
16137 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
16138 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
16139 * gimple.h (is_gimple_operand): Remove.
16140 * gimple.c (is_gimple_operand): Likewise.
16141 (walk_gimple_op): Fix wi->val_only setting for calls.
16142 * tree-cfg.c (verify_gimple_call): Fix argument validation.
16143 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
16144 invalid gimple calls.
16145
16146 2010-07-06 Jan Hubicka <jh@suse.cz>
16147
16148 * lto-cgraph.c (output_cgraph): Add missing declaration.
16149
16150 2010-07-06 Jan Hubicka <jh@suse.cz>
16151
16152 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
16153 partition.
16154
16155 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
16156
16157 * doc/gimple.texi (GIMPLE_DEBUG): Document.
16158 * doc/rtl.texi (Debug Information): New node.
16159 (NOTE_INSN_VAR_LOCATION): Document.
16160 (debug_insn): Likewise.
16161 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
16162
16163 2010-07-07 Jan Hubicka <jh@suse.cz>
16164
16165 With parts by Richard Guenther.
16166
16167 PR middle-end/44813
16168 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
16169 for functions passed by reference.
16170 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
16171 in memory when passed by reference.
16172 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
16173 beggining.
16174 * ipa-split.c (split_function): Cleanup way return value is passed;
16175 handle SSA DECL_BY_REFERENCE retvals.
16176 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
16177 DECL_BY_REFERENCE is set.
16178 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
16179 find_what_p_points_to): Handle RESULT_DECL.
16180 * tree-inline.c (declare_return_variable): Get new entry_block argument;
16181 when passing by reference ensure that RESULT_DECL is gimple_val.
16182 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
16183 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
16184
16185 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
16186
16187 PR rtl-optimization/44787
16188 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
16189 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
16190
16191 2010-07-06 Jan Hubicka <jh@suse.cz>
16192
16193 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
16194 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
16195 with body can prevail.
16196 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
16197 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
16198 * cgraph.c (cgraph_get_node_or_alias): New function.
16199 * cgraph.h (cgraph_get_node_or_alias): Declare.
16200
16201 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
16202
16203 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
16204 support.
16205 (ix86_expand_prologue): Likewise.
16206 (ix86_handle_fndecl_attribute): Likewise.
16207 (ix86_asm_declare_function_name): New function for
16208 ASM_DECLARE_FUNCTION_NAME.
16209 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
16210 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
16211 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
16212 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
16213 * doc/extend.texi: Adjust documentation about ms_hook_prologue
16214 attribute.
16215
16216 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
16217
16218 * config/i386/i386.md (immediate_operand): New mode attribute.
16219
16220 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
16221 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
16222 using P mode iterator.
16223 (pro_epilogue_adjust_stack_di_2): Rename from
16224 pro_epilogue_adjust_stack_rex64_2.
16225
16226 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
16227
16228 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
16229
16230 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
16231 through gen_mov_insv_1 function pointer.
16232 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
16233 gen_truncxf<mode>2 through gen_truncxf function pointer.
16234 (remainder<mode>3): Ditto.
16235 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
16236 (allocate_stack): Call gen_allocate_stack_worker_64 or
16237 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
16238 function pointer.
16239 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
16240 function pointer.
16241
16242 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
16243
16244 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
16245 operand constraint instead of <r><i>m.
16246
16247 2010-07-06 Richard Guenther <rguenther@suse.de>
16248
16249 PR middle-end/44828
16250 * convert.c (convert_to_integer): Watch out for overflowing
16251 MULT_EXPR as well.
16252
16253 2010-07-05 Jan Hubicka <jh@suse.cz>
16254
16255 * lto-streamer.c (write_symbol_vec): Rename to ...
16256 (write_symbol) ... this one; write only symbol given and when
16257 present in cache. Sanity check that what is defined is present
16258 in cgraph/varpool with body/finalized decl.
16259 (write_symbols_of_kind): Remove.
16260 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
16261 pairs to produce symtab.
16262 (produce_asm_for_decls): Update call of produce_symtab; don't do so
16263 when doing WPA streaming.
16264
16265 2010-07-05 Jan Hubicka <jh@suse.cz>
16266
16267 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
16268 function is still available to fold into.
16269
16270 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
16271
16272 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
16273 * function.h (struct_function): Change type of local_decls field
16274 to a VEC.
16275 (add_local_decl): New function.
16276 (FOR_EACH_LOCAL_DECL): New macro.
16277 * cfgexpand.c (init_vars_expansion): Adjust for new type of
16278 cfun->local_decls.
16279 (estimated_stack_frame_size): Likewise.
16280 (expand_used_vars): Likewise.
16281 * cgraphbuild.c (build_cgraph_edges): Likewise.
16282 * function.c (instantiate_decls_1): Likewise.
16283 * ipa-struct-reorg.c (build_data_structure): Likewise.
16284 * ipa-type-escape.c (analyze_function): Likewise.
16285 * lto-streamer-in.c (input_function): Likewise.
16286 * lto-streamer-out.c (output_function): Likewise.
16287 * tree-ssa-live.c (remove_unused_locals): Likewise.
16288 * tree.c (free_lang_data_in_decl): Likewise.
16289 (find_decls_types_in_node): Likewise.
16290 * omp-low.c (remove_exit_barrier): Likewise.
16291 (expand_omp_taskreg): Likewise.
16292 (list2chain): Rename to...
16293 (vec2chain): ...this. Adjust.
16294 * cgraphunit.c (assemble_thunk): Call add_local_decl.
16295 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
16296 * gimple-low.c (record_vars_into): Likewise.
16297 * tree-inline.c (remap_decls): Likewise.
16298 (declare_return_variable): Likewise.
16299 (declare_inline_vars): Likewise.
16300 (copy_forbidden): Adjust for new type of cfun->local_decls.
16301 (add_local_variables): New function.
16302 (expand_call_inline): Call it.
16303 (tree_function_versioning): Likewise.
16304
16305 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
16306
16307 AVX Programming Reference (June, 2010)
16308 * config/i386/cpuid.h (bit_F16C): New.
16309 (bit_RDRND): Likewise.
16310 (bit_FSGSBASE): Likewise.
16311
16312 * config/i386/i386-builtin-types.def: Add
16313 "DEF_FUNCTION_TYPE (UINT16)", function types for
16314 float16 <-> float conversions and
16315 "DEF_FUNCTION_TYPE (VOID, UINT64)".
16316
16317 * config/i386/i386-c.c (ix86_target_macros_internal): Support
16318 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
16319 OPTION_MASK_ISA_F16C.
16320
16321 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
16322 (OPTION_MASK_ISA_RDRND_SET): Likewise.
16323 (OPTION_MASK_ISA_F16C_SET): Likewise.
16324 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
16325 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
16326 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
16327 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
16328 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
16329 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
16330 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
16331 (override_options): Handle them.
16332 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
16333 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
16334 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
16335 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
16336 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
16337 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
16338 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
16339 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
16340 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
16341 (bdesc_args): Likewise.
16342 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
16343 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
16344 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
16345 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
16346 Handle non-memory store.
16347
16348 * config/i386/i386.h (TARGET_FSGSBASE): New.
16349 (TARGET_RDRND): Likewise.
16350 (TARGET_F12C): Likewise.
16351
16352 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
16353 (UNSPEC_VCVTPS2PH): Likewise.
16354 (UNSPECV_RDFSBASE): Likewise.
16355 (UNSPECV_RDGSBASE): Likewise.
16356 (UNSPECV_WRFSBASE): Likewise.
16357 (UNSPECV_WRGSBASE): Likewise.
16358 (UNSPECV_RDRAND): Likewise.
16359 (rdfsbase<mode>): Likewise.
16360 (rdgsbase<mode>): Likewise.
16361 (wrfsbase<mode>): Likewise.
16362 (wrgsbase<mode>): Likewise.
16363 (rdrand<mode>): Likewise.
16364
16365 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
16366
16367 * config/i386/immintrin.h (_rdrand_u16): New.
16368 (_rdrand_u32): Likewise.
16369 (_readfsbase_u32): Likewise.
16370 (_readfsbase_u64): Likewise.
16371 (_readgsbase_u32): Likewise.
16372 (_readgsbase_u64): Likewise.
16373 (_writefsbase_u32): Likewise.
16374 (_writefsbase_u64): Likewise.
16375 (_writegsbase_u32): Likewise.
16376 (_writegsbase_u64): Likewise.
16377 (_rdrand_u64): Likewise.
16378 (_cvtsh_ss): Likewise.
16379 (_mm_cvtph_ps): Likewise.
16380 (_mm256_cvtph_ps): Likewise.
16381 (_cvtss_sh): Likewise.
16382 (_mm_cvtps_ph): Likewise.
16383 (_mm256_cvtps_ph): Likewise.
16384
16385 * config/i386/sse.md (vcvtph2ps): New.
16386 (*vcvtph2ps_load): Likewise.
16387 (vcvtph2ps256): Likewise.
16388 (vcvtps2ph): Likewise.
16389 (*vcvtps2ph): Likewise.
16390 (*vcvtps2ph_store): Likewise.
16391 (vcvtps2ph256): Likewise.
16392
16393 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
16394
16395 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
16396
16397 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
16398
16399 PR bootstrap/44512
16400 * genenums.c (main): Output include of insn-constants.h
16401 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
16402
16403 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
16404
16405 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
16406 (override_options): Initialize it.
16407 (ix86_expand_prologue): Use it.
16408
16409 2010-07-05 Jakub Jelinek <jakub@redhat.com>
16410
16411 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
16412
16413 2010-07-05 Anatoly Sokolov <aesok@post.ru>
16414
16415 * double-int.h (fit_double_type): Remove declaration.
16416 * double-int.c (fit_double_type): Remove function.
16417 * tree.h (int_fits_type_p): Adjust prototype.
16418 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
16419 instead of fit_double_type.
16420 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
16421 instead of fit_double_type and build_int_cst_wide.
16422 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
16423 instead of fit_double_type and build_int_cst_wide.
16424 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
16425 of fit_double_type.
16426
16427 2010-07-05 Jan Hubicka <jh@suse.cz>
16428
16429 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
16430 in_other_partition.
16431 * lto-cgraph.c (referenced_from_other_partition_p,
16432 reachable_from_other_partition_p): Use in_other_partition flags.
16433 (output_node, output_varpool_node): COMDAT nodes always have private
16434 copies and thus are never used from other partition.
16435
16436 2010-07-05 Anatoly Sokolov <aesok@post.ru>
16437
16438 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
16439 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
16440 * config/ia64/ia64.c Include reload.h.
16441 (ia64_memory_move_cost): New function.
16442 (TARGET_MEMORY_MOVE_COST): Define.
16443 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
16444 memory_move_cost.
16445
16446 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
16447
16448 PR middle-end/42505
16449 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
16450 comments about cost model.
16451 (try_add_cand_for): Add second strategy for choosing initial set
16452 based on original IVs, controlled by ORIGINALP argument.
16453 (get_initial_solution): Add ORIGINALP argument.
16454 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
16455 (find_optimal_iv_set): Try two different strategies for choosing
16456 the IV set, and return the one with lower cost.
16457
16458 2010-07-05 Richard Guenther <rguenther@suse.de>
16459
16460 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
16461
16462 2010-07-05 Richard Guenther <rguenther@suse.de>
16463
16464 * tree.c (reference_alias_ptr_type): New function.
16465 * tree.h (reference_alias_ptr_type): Declare.
16466 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
16467 allow non-TARGET_MEM_REF new refs.
16468 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
16469 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
16470 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
16471 (create_mem_ref): Get alias pointer type. Adjust calls to
16472 create_mem_ref_raw.
16473 (maybe_fold_tmr): Likewise.
16474 * tree-flow.h (create_mem_ref): Adjust prototype.
16475
16476 2010-07-05 Jakub Jelinek <jakub@redhat.com>
16477
16478 PR c++/44808
16479 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
16480 *from_p is VAR_DECL.
16481
16482 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
16483
16484 * tree.h (build_call_list): Remove.
16485 * tree.c (build_call_list): Remove.
16486
16487 2010-07-05 Richard Guenther <rguenther@suse.de>
16488
16489 * double-int.h (double_int_sub): Declare.
16490 * double-int.c (double_int_sub): New function.
16491 * dwarf2out.c (field_byte_offset): Use it.
16492 * fixed-value.c (do_fixed_add): Likewise.
16493 (do_fixed_multiply): Likewise.
16494 (do_fixed_divide): Likewise.
16495 * tree-predcom.c (add_ref_to_chain): Likewise.
16496 (determine_roots_comp): Likewise.
16497 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16498
16499 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
16500
16501 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
16502 implementations.
16503
16504 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
16505
16506 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
16507 * arm-modes.def (CC_NOTB): Don't define.
16508 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
16509 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
16510 (LTUGEU): New code_iterator.
16511 (cnb, optab): New corresponding code_attrs.
16512 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
16513 to canonical form. Operands 1 and 2 are commutative. Parametrize
16514 using LTUGEU.
16515 (addsi3_carryin_shift_<optab>): Likewise.
16516 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
16517 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
16518 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
16519 (subsi3_compare): Renamed from subsi3_compare0_c.
16520 Change CC_NOTB to CC.
16521 (arm_subsi3_insn): Allow constants for operand 0.
16522 (compare_scc peephole for eq case): New.
16523 (compare_scc splitters): Change CC_NOTB to CC.
16524
16525 2010-07-05 Richard Guenther <rguenther@suse.de>
16526
16527 * tree-ssa-loop-im.c (for_each_index): Do not handle
16528 ALIGN_INDIRECT_REF.
16529 (gen_lsm_tmp_name): Likewise.
16530 * tree-dump.c (dequeue_and_dump): Likewise.
16531 * tree-pretty-print.c (dump_generic_node): Likewise.
16532 (op_code_prio): Likewise.
16533 (op_symbol_code): Likewise.
16534 * tree.c (staticp): Likewise.
16535 (build1_stat): Likewise.
16536 * tree.h (INDIRECT_REF_P): Likewise.
16537 * fold-const.c (maybe_lvalue_p): Likewise.
16538 (operand_equal_p): Likewise.
16539 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16540 (ao_ref_init_from_vn_reference): Likewise.
16541 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
16542 (find_interesting_uses_address): Likewise.
16543 * dwarf2out.c (loc_list_from_tree): Likewise.
16544 * gimplify.c (gimplify_expr): Likewise.
16545 * tree-eh.c (tree_could_trap_p): Likewise.
16546 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16547 * cfgexpand.c (expand_debug_expr): Likewise.
16548 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16549 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
16550 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
16551 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
16552 * tree-ssa-operands.c (get_expr_operands): Likewise.
16553 * expr.c (safe_from_p): Likewise.
16554 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
16555 * tree-vect-data-refs.c (vect_setup_realignment): Build
16556 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
16557 * tree-vect-stmts.c (vectorizable_load): Likewise.
16558 * tree.def (ALIGN_INDIRECT_REF): Remove.
16559
16560 2010-07-05 Richard Guenther <rguenther@suse.de>
16561
16562 PR tree-optimization/44784
16563 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
16564 for inserted stmts.
16565 (find_or_generate_expression): Fix SCCVN insertion check.
16566
16567 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
16568
16569 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
16570 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
16571 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
16572 directives.
16573
16574 2010-07-05 Ira Rosen <irar@il.ibm.com>
16575
16576 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
16577 statements that are not vectorized.
16578 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
16579 in INSIDE_COST.
16580
16581 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
16582
16583 PR bootstrap/44820
16584 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
16585
16586 2010-07-05 Richard Guenther <rguenther@suse.de>
16587
16588 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
16589 RESULT_DECLs properly.
16590
16591 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
16592
16593 PR rtl-optimization/44695
16594 * config/i386/i386.md (extract_code): Removed.
16595 (<u>divmodqi4): Likewise.
16596 (divmodqi4): New.
16597 (udivmodqi4): Likewise.
16598 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
16599 (udivmodhiqi3): Likewise.
16600
16601 2010-07-04 Jan Hubicka <jh@suse.cz>
16602
16603 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
16604
16605 2010-07-04 Jan Hubicka <jh@suse.cz>
16606
16607 * cgraphunit.c (init_cgraph): Only initialize dump file if it
16608 is not already initialized.
16609
16610 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
16611
16612 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
16613 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
16614 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
16615 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
16616 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
16617 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
16618 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
16619 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
16620 (sync_new_nand_optab): Redefine as macros.
16621 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
16622 Delete.
16623 (direct_optab_index): New enum.
16624 (direct_optab_d): New structure.
16625 (direct_optab): New typedef.
16626 (direct_optab_table): Declare.
16627 (direct_optab_handler, set_direct_optab_handler): New functions.
16628 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
16629 (sync_lock_release_optab): New macros.
16630 * optabs.c (direct_optab_table): New variable.
16631 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
16632 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
16633 cmpstr_optab and cmpstrn_optab.
16634 (emit_conditional_move): Likewise for movcc_optab.
16635 (can_conditionally_move_p): Likewise for movcc_gen_code.
16636 (init_insn_codes): Clear direct_optab_table.
16637 (init_optabs): Don't initialize the new "direct optabs" here.
16638 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
16639 vcond_gen_code.
16640 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
16641 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
16642 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
16643 (expand_sync_operation): Likewise other sync_*_optabs.
16644 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
16645 to sync_compare_and_swap_optab.
16646 (expand_sync_lock_test_and_set): Use direct_optab_handler for
16647 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
16648 to the names of both.
16649 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
16650 cmpstr_optab and cmpstrn_optab.
16651 (expand_builtin_lock_release): Likewise sync_lock_release.
16652 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
16653 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
16654 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
16655 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
16656 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
16657 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
16658 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
16659 (sync_lock_test_and_set, sync_lock_release): Delete.
16660 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
16661 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
16662 * genopinit.c (optabs): Use set_direct_optab_handler for the new
16663 macro optabs.
16664 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
16665 the "optab" local variable. Use direct_optab_handler for optab and
16666 sync_compare_and_swap_optab.
16667 * reload1.c (reload_in_optab, reload_out_optab): Delete.
16668 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
16669 reload_in_optab and reload_out_optab.
16670 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16671 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
16672 * config/pa/pa.c (pa_secondary_reload): Likewise.
16673 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
16674 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
16675 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
16676 (VMSupportsCS8_builtin): Likewise.
16677
16678 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
16679
16680 * optabs.h (optab_handlers): Change type of insn_code to int.
16681 (optab_handler, set_optab_handler, convert_optab_handler)
16682 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
16683 CODE_FOR_nothing".
16684 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
16685 (init_insn_codes): Zero both the above arrays.
16686 (init_optabs): Never call init_insn_codes first time around.
16687
16688 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
16689
16690 * optabs.h (optab_handler, convert_optab_handler): Turn into
16691 inline functions that return an insn code.
16692 (set_optab_handler, set_convert_optab_handler): New functions.
16693 * builtins.c: Replace optab_handler(X)->insn_code with
16694 optab_handler or set_optab_handler thoughout. Likewise
16695 convert_optab_handler(X)->insn_code with convert_optab_handler
16696 and set_convert_optab_handler.
16697 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
16698 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
16699 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
16700 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
16701 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
16702 config/spu/spu.c: Likewise.
16703
16704 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
16705
16706 PR target/44531
16707 * config.gcc (sh*-*-*): Use regular expressions instead of
16708 the 'i' modifier for sed substitutions.
16709
16710 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
16711
16712 * gimple.c (gimple_body): Comments added.
16713
16714 2010-07-04 Richard Guenther <rguenther@suse.de>
16715
16716 PR middle-end/44809
16717 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
16718 of an INDIRECT_REF.
16719
16720 2010-07-04 Richard Guenther <rguenther@suse.de>
16721
16722 PR tree-optimization/44479
16723 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
16724 extra SSA name copy statements which preserves points-to
16725 information.
16726 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16727 Copy points-to information for all pointers. Properly handle
16728 MEM_REFs.
16729 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
16730 copy statements.
16731 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
16732 dependency.
16733
16734 2010-07-04 Richard Guenther <rguenther@suse.de>
16735
16736 PR middle-end/44785
16737 * tree-inline.c (initialize_inlined_parameters): Do not
16738 re-use pointer-map slot over remap_type call.
16739
16740 2010-07-04 Richard Guenther <rguenther@suse.de>
16741
16742 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
16743
16744 2010-07-04 Richard Guenther <rguenther@suse.de>
16745
16746 PR tree-optimization/44656
16747 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
16748 again after value-replacing in the defintions lhs.
16749
16750 2010-07-04 Ira Rosen <irar@il.ibm.com>
16751 Revital Eres <eres@il.ibm.com>
16752
16753 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
16754 Document new arguments.
16755 * doc/tm.texi: Regenerate.
16756 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
16757 Handle unaligned store.
16758 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
16759 * target.def (builtin_vectorization_cost): Add new arguments.
16760 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
16761 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
16762 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
16763 (vect_vfa_segment_size): Fix indentation.
16764 * tree-vectorizer.h (struct _vect_peel_info): New.
16765 (struct _vect_peel_extended_info): New.
16766 (struct _loop_vec_info): Add new field for peeling hash table and a
16767 macro for its access.
16768 (VECT_MAX_COST): Define.
16769 (vect_get_load_cost): Declare.
16770 (vect_get_store_cost, vect_get_known_peeling_cost,
16771 vect_get_single_scalar_iteraion_cost): Likewise.
16772 (vect_supportable_dr_alignment): Add new argument.
16773 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
16774 field.
16775 (destroy_loop_vec_info): Free peeling hash table.
16776 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
16777 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
16778 vect_analyze_slp. Fix indentation.
16779 (vect_get_single_scalar_iteraion_cost): New function.
16780 (vect_get_known_peeling_cost): Likewise.
16781 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
16782 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
16783 statement. Move outside cost calculation inside unknown peeling case.
16784 Call vect_get_known_peeling_cost for known amount of peeling.
16785 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
16786 reference to the print message of forced alignment.
16787 (vect_verify_datarefs_alignment): Update call to
16788 vect_supportable_dr_alignment.
16789 (vect_get_data_access_cost): New function.
16790 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
16791 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
16792 vect_peeling_hash_choose_best_peeling): Likewise.
16793 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
16794 to store all the accesses in the loop and find best possible access to
16795 align using peeling for known alignment case. For unknown alignment
16796 check if stores are preferred or if peeling is worthy.
16797 (vect_find_same_alignment_drs): Analyze pairs of loads too.
16798 (vect_supportable_dr_alignment): Add new argument and check aligned
16799 accesses according to it.
16800 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
16801 (cost_for_stmt): Call vect_get_stmt_cost.
16802 (vect_model_simple_cost): Likewise.
16803 (vect_model_store_cost): Call vect_get_stmt_cost. Call
16804 vect_get_store_cost to calculate the cost of the statement.
16805 (vect_get_store_cost): New function.
16806 (vect_model_load_cost): Call vect_get_stmt_cost. Call
16807 vect_get_load_cost to calculate the cost of the statement.
16808 (vect_get_load_cost): New function.
16809 (vectorizable_store): Update call to vect_supportable_dr_alignment.
16810 (vectorizable_load): Likewise.
16811 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
16812 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
16813 arguments. Handle unaligned store.
16814 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
16815 (rs6000_builtin_support_vector_misalignment): Return true for word and
16816 double word alignments for VSX.
16817 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
16818 vect_supportable_dr_alignment and builtin_vectorization_cost.
16819
16820 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16821
16822 PR target/44597
16823 * config/pa/predicates.md (prefetch_cc_operand): Remove.
16824 (prefetch_nocc_operand): Likewise.
16825 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
16826 (prefetch_20): New insn.
16827 (prefetch_cc): Remove.
16828 (prefetch_nocc): Likewise.
16829
16830 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
16831
16832 * expr.c (vector_mode_valid_p): Move to c-common.c.
16833 * expr.h (vector_mode_valid_p): Do not declare here.
16834 * system.h: Poison GCC_EXPR_H in front-ends.
16835 * Makefile.in: Update dependencies.
16836
16837 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16838
16839 PR target/44705
16840 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
16841
16842 2010-07-03 Jan Hubicka <jh@suse.cz>
16843
16844 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
16845 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
16846 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
16847 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
16848 Likewise.
16849
16850 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
16851 Update timevars.V
16852 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
16853 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
16854 TV_IPA_LTO_DECL_OUT): New.
16855 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
16856
16857 2010-07-03 Jan Hubicka <jh@suse.cz>
16858
16859 * ipa-inline.c (update_edge_key): Break out from ...
16860 update_callers_keys): ... here;
16861 (update_callee_keys): Update only the edges from caller to callee.
16862 (update_all_calle_keys): Do what update_calle_keys did.
16863 (decide_inlining_of_small_functions): Avoid recomputing of all
16864 callees when badness increase.
16865
16866 2010-07-03 Jie Zhang <jie@codesourcery.com>
16867
16868 * config/arm/arm.c (arm_attr_length_move_neon): New.
16869 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
16870 * config/arm/neon.md (define_mode_attr V_slen): Remove.
16871 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
16872 to compute length attribute.
16873
16874 2010-07-03 Jie Zhang <jie@codesourcery.com>
16875
16876 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
16877 as predicate for operand 1 and remove its constraint.
16878 * config/arm/predicates.md (vfp_register_operand): New.
16879 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
16880 (*push_fp_multi): Likewise.
16881
16882 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
16883
16884 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
16885
16886 2010-07-03 Jan Hubicka <jh@suse.cz>
16887
16888 * config/i386/i386.c (override_options): Revert accidental commit.
16889
16890 2010-07-02 Le-Chun Wu <lcwu@google.com>
16891
16892 PR c++/44128
16893 * doc/invoke.texi: Update documentation of -Wshadow.
16894
16895 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
16896 Julian Brown <julian@codesourcery.com>
16897 Sandra Loosemore <sandra@codesourcery.com>
16898
16899 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
16900 comparisons. Adjust to take both operands.
16901 (arm_select_cc_mode): Handle DImode comparisons.
16902 (arm_gen_compare_reg): Generate a scratch register for DImode
16903 comparisons which require one. Use xor for Thumb equality checks.
16904 (arm_const_double_by_immediates): New.
16905 (arm_print_operand): Allow 'Q' and 'R' for constants.
16906 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
16907 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
16908 arm_canonicalize_comparison.
16909 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
16910 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
16911 prototype.
16912 (arm_const_double_by_immediates): Declare.
16913 * config/arm/constraints.md (Di): New constraint.
16914 * config/arm/predicates.md (arm_immediate_di_operand)
16915 (arm_di_operand, cmpdi_operand): New.
16916 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
16917 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
16918 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
16919 (cstoredi4): Handle non-Cirrus also.
16920
16921 2010-07-02 Julian Brown <julian@codesourcery.com>
16922 Sandra Loosemore <sandra@codesourcery.com>
16923
16924 PR target/43703
16925 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
16926 (smax<mode>3): Disable for NEON float modes when
16927 flag_unsafe_math_optimizations is false.
16928 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
16929 (*mul<mode>3_neon)
16930 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
16931 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
16932 for NEON float modes when flag_unsafe_math_optimizations is false.
16933 (quad_halves_<code>v4sf): Only enable if
16934 flag_unsafe_math_optimizations is true.
16935 * doc/invoke.texi (ARM Options): Add note about floating point
16936 vectorization requiring -funsafe-math-optimizations.
16937
16938 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16939 Julian Brown <julian@codesourcery.com>
16940
16941 * config/arm/neon.md (UNSPEC_VABA): Delete.
16942 (UNSPEC_VABAL): Delete.
16943 (UNSPEC_VABS): Delete.
16944 (UNSPEC_VMUL_N): Delete.
16945 (adddi3_neon): New.
16946 (subdi3_neon): New.
16947 (mul<mode>3add<mode>_neon): Make the pattern named.
16948 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16949 (neon_vadd<mode>): Replace with define_expand, and move the remaining
16950 unspec parts...
16951 (neon_vadd<mode>_unspec): ...to this.
16952 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
16953 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
16954 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
16955 (neon_vaba<mode>): Rewrite in terms of vabd.
16956 (neon_vabal<mode>): Rewrite in terms of vabdl.
16957 (neon_vabs<mode>): Rewrite without unspec.
16958 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
16959 (*arm_subdi3): Likewise.
16960 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
16961 No_op attribute to disable assembly output checks.
16962 * config/arm/arm_neon.h: Regenerated.
16963 * doc/arm-neon-intrinsics.texi: Regenerated.
16964
16965 2010-07-02 Jan Hubicka <jh@suse.cz>
16966
16967 * ipa-split.c (split_function): For aggregate values, set the return
16968 slot optimization bit. When passing DECL_BY_REFERENCE, produce
16969 *<retval> = fncall.part ().
16970 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
16971
16972 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16973
16974 * config/arm/neon.md (UNSPEC_VAND): Delete.
16975 (UNSPEC_VBIC): Delete.
16976 (UNSPEC_VCLZ): Delete.
16977 (UNSPEC_VCNT): Delete.
16978 (UNSPEC_VEOR): Delete.
16979 (UNSPEC_VORN): Delete.
16980 (UNSPEC_VORR): Delete.
16981 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
16982 core registers too.
16983 (anddi3_neon): Likewise.
16984 (orndi3_neon): Likewise.
16985 (bicdi3_neon): Likewise.
16986 (xordi3_neon): Likewise.
16987 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
16988 rid of unspec and handle unused operand.
16989 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
16990 * config/arm/predicates.md (imm_for_neon_logic_operand):
16991 Require TARGET_NEON.
16992 (imm_for_neon_inv_logic_operand): Likewise.
16993 * config/arm/arm.md (define_split for logical_binary_operator):
16994 Disable for NEON registers.
16995 (anddi3): Add new define_expand, and rename the insn. Disable
16996 this insn for NEON, where anddi3_neon now applies.
16997 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
16998 (iordi3): As for anddi3.
16999 (xordi3): Likewise.
17000 * config/arm/neon.ml (Vand): Split DImode variants and mark them
17001 as No_op to disable testing for exact instruction match.
17002 (Vorr): Likewise.
17003 (Veor): Likewise.
17004 (Vbic): Likewise.
17005 (Vorn): Likewise.
17006 * config/arm/arm_neon.h: Regenerated.
17007 * doc/arm-neon-intrinsics.texi: Regenerated.
17008
17009 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
17010
17011 * expr.h (emit_stack_probe): Declare.
17012 * explow.c (emit_stack_probe): Make global.
17013 (anti_adjust_stack_and_probe): Fix comments.
17014 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
17015 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17016 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17017 * config/sparc/sparc.c: Include except.h.
17018 (sparc_emit_probe_stack_range): New function.
17019 (output_probe_stack_range): Likewise.
17020 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
17021 built-in stack checking is enabled.
17022 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
17023 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
17024 (probe_stack_range): New insn.
17025
17026 2010-07-02 Richard Guenther <rguenther@suse.de>
17027
17028 PR target/43958
17029 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
17030 for argument alignment.
17031
17032 2010-07-02 Jan Hubicka <jh@suse.cz>
17033
17034 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
17035 walk backwards from entry_bb to check only those basic block of header
17036 that might lead to execution of split part.
17037 (consider_split) ... here.
17038 (find_return_bb): Allow assignment in return BB.
17039 (find_retval): New.
17040 (split_function): Fix name of cloned function; take care of updating
17041 return value in return_bb containing move.
17042
17043 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
17044
17045 PR target/44771
17046 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
17047 used variable insn.
17048
17049 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
17050
17051 * implicit-zee.c (combine_reaching_defs): Fix long lines.
17052 (is_set_with_extension_DI): Delete.
17053 (struct zero_extend_info): New structure.
17054 (add_removable_zero_extend): New function.
17055 (find_removable_zero_extends): Use note_stores to find SETs.
17056 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
17057
17058 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
17059
17060 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
17061 is_miss_rate_acceptable. Pull total_positions computation
17062 out of the loops. Early return if miss_positions exceeds
17063 the acceptable threshold.
17064 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
17065 is_miss_rate_acceptable after renaming of compute_miss_rate.
17066
17067 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
17068
17069 PR middle-end/44576
17070 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
17071 of 1000) for miss rate if the address diference is greater than or
17072 equal to the cache line size (the two reference will never hit the
17073 same cache line).
17074
17075 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
17076
17077 PR target/42835
17078 * config/arm/arm-modes.def (CC_NOTB): New mode.
17079 * config/arm/arm.c (get_arm_condition_code): Handle it.
17080 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
17081 * config/arm/arm.md (subsi3_compare0_c): New pattern.
17082 (compare_scc): Now a define_and_split. Add a number of extra
17083 splitters before it.
17084
17085 PR target/42172
17086 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
17087 and ZERO_EXTEND.
17088 (arm_rtx_costs_1): Likewise.
17089 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
17090 * config/arm/arm.md (is_arch6): New attribute.
17091 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
17092 extendqisi2): Tighten the code somewhat, avoiding invalid
17093 RTL to occur in the expander patterns.
17094 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
17095 (thumb1_zero_extendhisi2_v6): Delete.
17096 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
17097 (thumb1_extendhisi2_v6): Delete.
17098 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
17099 (thumb1_extendqisi2_v6): Delete.
17100 (zero_extendhisi2 for register input splitter): New.
17101 (zero_extendqisi2 for register input splitter): New.
17102 (thumb1_extendhisi2 for register input splitter): New.
17103 (extendhisi2 for register input splitter): New.
17104 (extendqisi2 for register input splitter): New.
17105 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
17106 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
17107 and add support for a register alternative requiring a split.
17108 (thumb1_zero_extendqisi2): Likewise.
17109 (arm_zero_extendqisi2): Likewise.
17110 (arm_extendhisi2): Likewise.
17111 (arm_extendqisi2): Likewise.
17112
17113 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
17114
17115 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
17116 instead of an unspec.
17117 (neon_expand_vector_init): Likewise.
17118 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
17119 (UNSPEC_VDUP_LANE): Delete.
17120 (UNSPEC VDUP_N): Delete.
17121 (UNSPEC_VGET_HIGH): Delete.
17122 (UNSPEC_VGET_LANE): Delete.
17123 (UNSPEC_VGET_LOW): Delete.
17124 (UNSPEC_VMVN): Delete.
17125 (UNSPEC_VSET_LANE): Delete.
17126 (V_double_vector_mode): New.
17127 (vec_set<mode>_internal): Make code emitted match that for the
17128 corresponding intrinsics.
17129 (vec_setv2di_internal): Likewise.
17130 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
17131 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
17132 (neon_vset_lane<mode>): Combine double and quad patterns and
17133 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
17134 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
17135 (neon_vdup_n<mode>): Rewrite RTL without unspec.
17136 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
17137 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
17138 with neon_vdup_lanev2di, adjusting the pattern from the latter
17139 to be predicable for consistency.
17140 (neon_vdup_lane<mode>_internal): New.
17141 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
17142 to avoid using an unspec.
17143 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
17144 (neon_vdup_lanev2di): Turn into a define_expand.
17145 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
17146 (neon_vget_high<mode>): Replace with....
17147 (neon_vget_highv16qi): New pattern using canonical RTL.
17148 (neon_vget_highv8hi): Likewise.
17149 (neon_vget_highv4si): Likewise.
17150 (neon_vget_highv4sf): Likewise.
17151 (neon_vget_highv2di): Likewise.
17152 (neon_vget_low<mode>): Replace with....
17153 (neon_vget_lowv16qi): New pattern using canonical RTL.
17154 (neon_vget_lowv8hi): Likewise.
17155 (neon_vget_lowv4si): Likewise.
17156 (neon_vget_lowv4sf): Likewise.
17157 (neon_vget_lowv2di): Likewise.
17158
17159 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
17160 test for this emitting vmov.
17161 (Vset_lane): Likewise.
17162 (Vdup_n): Likewise.
17163 (Vmov_n): Likewise.
17164
17165 * doc/arm-neon-intrinsics.texi: Regenerated.
17166
17167 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
17168
17169 * config/arm/neon.md (vec_extractv2di): Correct error in register
17170 numbering to reconcile with neon_vget_lanev2di.
17171
17172 2010-07-02 Richard Guenther <rguenther@suse.de>
17173
17174 * tree-ssa-structalias.c (pt_solution_set_var): New function.
17175 * tree-ssa-alias.h (pt_solution_set_var): Declare.
17176 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
17177 points-to information.
17178
17179 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
17180
17181 * config/s390/s390.c (override_options): Adopt prefetching
17182 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
17183
17184 2010-07-02 Jan Hubicka <jh@suse.cz>
17185
17186 * df-problems.c (df_kill_notes): Do not collect dead notes.
17187 (df_set_note): Just call add_reg_note.
17188 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
17189 df_create_unused_note): Do not deal with lists of old notes.
17190 (df_note_bb_compute): Likewise.
17191
17192 2010-07-02 Richard Guenther <rguenther@suse.de>
17193
17194 * tree-ssa-structalias.c (find_func_aliases): Handle
17195 pointer alignment via BIT_AND_EXPR.
17196 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
17197
17198 2010-07-02 Richard Guenther <rguenther@suse.de>
17199
17200 * tree-data-ref.c (initialize_data_dependence_relation): Handle
17201 mismatching number of dimensions properly.
17202
17203 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17204
17205 PR target/44707
17206 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
17207 (lo_sum (high ...) ...) patterns generated by earlier passes.
17208
17209 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17210
17211 * doc/install.texi (Prerequisites): Document Perl requirement on
17212 Solaris 2.
17213 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
17214
17215 2010-07-02 Richard Guenther <rguenther@suse.de>
17216
17217 PR middle-end/44777
17218 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
17219
17220 2010-07-02 Jan Hubicka <jh@suse.cz>
17221
17222 PR middle-end/44706
17223 * predict.c (predict_paths_for_bb): Handle case when control dependence
17224 BB has only abnormal edges.
17225
17226 2010-07-02 Richard Guenther <rguenther@suse.de>
17227
17228 PR tree-optimization/44748
17229 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
17230 the embedded conversion in MEM_REFs.
17231
17232 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
17233
17234 * reload.c: Include toplev.h.
17235 * recog.c: Likewise.
17236 * Makefile.in: Adjust dependencies.
17237
17238 2010-07-01 Jakub Jelinek <jakub@redhat.com>
17239
17240 PR debug/44694
17241 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
17242 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
17243
17244 2010-07-01 Richard Guenther <rguenther@suse.de>
17245
17246 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
17247 types for offsets.
17248
17249 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
17250
17251 PR target/44732
17252 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
17253 Fix argument types.
17254
17255 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
17256
17257 PR target/44727
17258 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17259 Make sure operand 0 dies.
17260
17261 2010-07-01 Richard Guenther <rguenther@suse.de>
17262
17263 PR middle-end/42834
17264 PR middle-end/44468
17265 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
17266 * doc/generic.texi (References to storage): Document MEM_REF.
17267 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
17268 (print_call_name): Likewise.
17269 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
17270 (build_simple_mem_ref_loc): New function.
17271 (mem_ref_offset): Likewise.
17272 * tree.h (build_simple_mem_ref_loc): Declare.
17273 (build_simple_mem_ref): Define.
17274 (mem_ref_offset): Declare.
17275 * fold-const.c: Include tree-flow.h.
17276 (operand_equal_p): Handle MEM_REF.
17277 (build_fold_addr_expr_with_type_loc): Likewise.
17278 (fold_comparison): Likewise.
17279 (fold_unary_loc): Fold
17280 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
17281 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
17282 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
17283 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
17284 (ptr_deref_may_alias_ref_p_1): Likewise.
17285 (ao_ref_base_alias_set): Properly differentiate base object for
17286 offset and TBAA.
17287 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
17288 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
17289 (indirect_refs_may_alias_p): Likewise.
17290 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
17291 chasing code.
17292 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
17293 (call_may_clobber_ref_p_1): Likewise.
17294 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
17295 * expr.c (expand_assignment): Handle MEM_REF.
17296 (store_expr): Handle MEM_REFs from STRING_CSTs.
17297 (store_field): If expanding a MEM_REF of a non-addressable
17298 decl use bitfield operations.
17299 (get_inner_reference): Handle MEM_REF.
17300 (expand_expr_addr_expr_1): Likewise.
17301 (expand_expr_real_1): Likewise.
17302 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
17303 * alias.c (ao_ref_from_mem): Handle MEM_REF.
17304 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
17305 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
17306 (dr_analyze_indices): Likewise.
17307 (dr_analyze_alias): Likewise.
17308 (object_address_invariant_in_loop_p): Likewise.
17309 * gimplify.c (mark_addressable): Handle MEM_REF.
17310 (gimplify_cond_expr): Build MEM_REFs.
17311 (gimplify_modify_expr_to_memcpy): Likewise.
17312 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
17313 (gimple_fold_indirect_ref): Adjust.
17314 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
17315 * tree.def (MEM_REF): New tree code.
17316 * tree-dfa.c: Include toplev.h.
17317 (get_ref_base_and_extent): Handle MEM_REF.
17318 (get_addr_base_and_unit_offset): New function.
17319 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
17320 * gimple-fold.c (may_propagate_address_into_dereference): Handle
17321 MEM_REF.
17322 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
17323 accesses if the array has just one dimension. Remove always true
17324 parameter. Do not require type compatibility here.
17325 (maybe_fold_offset_to_component_ref): Remove.
17326 (maybe_fold_stmt_indirect): Remove.
17327 (maybe_fold_reference): Remove INDIRECT_REF handling.
17328 Fold back to non-MEM_REF.
17329 (maybe_fold_offset_to_address): Simplify. Deal with type
17330 mismatches here.
17331 (maybe_fold_reference): Likewise.
17332 (maybe_fold_stmt_addition): Likewise. Also handle
17333 &ARRAY + I in addition to &ARRAY[0] + I.
17334 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
17335 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
17336 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
17337 * tree-ssa.c (useless_type_conversion_p): Make most pointer
17338 conversions useless.
17339 (warn_uninitialized_var): Handle MEM_REF.
17340 (maybe_rewrite_mem_ref_base): New function.
17341 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
17342 to SSA form.
17343 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
17344 INDIRECT_REF handling.
17345 (copy_tree_body_r): Handle MEM_REF.
17346 * gimple.c (is_gimple_addressable): Adjust.
17347 (is_gimple_address): Likewise.
17348 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
17349 invariant base are invariant.
17350 (is_gimple_min_lval): Adjust.
17351 (is_gimple_mem_ref_addr): New function.
17352 (get_base_address): Handle MEM_REF.
17353 (count_ptr_derefs): Likewise.
17354 (get_base_loadstore): Likewise.
17355 * gimple.h (is_gimple_mem_ref_addr): Declare.
17356 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
17357 * tree-cfg.c (verify_address): New function, split out from ...
17358 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
17359 the address operand of MEM_REFs. Verify MEM_REFs. Reject
17360 INDIRECT_REFs.
17361 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
17362 INDIRECT_REF. Allow conversions.
17363 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
17364 a register does not change its size.
17365 (verify_types_in_gimple_reference): Verify MEM_REF.
17366 (verify_gimple_assign_single): Disallow INDIRECT_REF.
17367 Handle MEM_REF.
17368 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
17369 New.
17370 (mark_address_taken): Handle MEM_REF.
17371 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
17372 (get_asm_expr_operands): Pass opf_not_non_addressable.
17373 (get_expr_operands): Handle opf_[not_]non_addressable.
17374 Handle MEM_REF. Remove INDIRECT_REF handling.
17375 * tree-vrp.c (check_array_ref): Handle MEM_REF.
17376 (search_for_addr_array): Likewise.
17377 (check_array_bounds): Likewise.
17378 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
17379 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
17380 (ref_always_accessed_p): Likewise.
17381 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
17382 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
17383 Handle MEM_REF.
17384 * cgraphbuild.c (mark_load): Properly check for NULL result
17385 from get_base_address.
17386 (mark_store): Likewise.
17387 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
17388 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
17389 handling for MEM_REF.
17390 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
17391 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
17392 * builtins.c (stabilize_va_list_loc): Use the function ABI
17393 valist type if we couldn't canonicalize the argument type.
17394 Always dereference with the canonical va-list type.
17395 (maybe_emit_free_warning): Handle MEM_REF.
17396 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
17397 memmove to memcpy.
17398 * builtins.c (fold_builtin_memory_op): Use ref-all types
17399 for all memcpy foldings.
17400 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
17401 (build_outer_var_ref): Likewise.
17402 (scan_omp_1_op): Likewise.
17403 (lower_rec_input_clauses): Likewise.
17404 (lower_lastprivate_clauses): Likewise.
17405 (lower_reduction_clauses): Likewise.
17406 (lower_copyprivate_clauses): Likewise.
17407 (expand_omp_atomic_pipeline): Likewise.
17408 (expand_omp_atomic_mutex): Likewise.
17409 (create_task_copyfn): Likewise.
17410 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
17411 Remove old union trick. Initialize constant offsets.
17412 (ao_ref_init_from_vn_reference): Likewise. Do not handle
17413 INDIRECT_REF. Init base_alias_set properly.
17414 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
17415 (vn_reference_fold_indirect): Adjust for MEM_REFs.
17416 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
17417 for ARRAY_REFs.
17418 (may_insert): Remove.
17419 (visit_reference_op_load): Do not test may_insert.
17420 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
17421 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17422 a field to store the constant offset this op applies.
17423 (run_scc_vn): Adjust prototype.
17424 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
17425 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
17426 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
17427 bother about volatile qualifiers on pointers.
17428 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
17429 * tree-ssa-loop-ivopts.c
17430 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
17431 (strip_offset_1): Likewise.
17432 (find_interesting_uses_address): Replace INDIRECT_REF handling with
17433 MEM_REF handling.
17434 (get_computation_cost_at): Likewise.
17435 * ipa-pure-const.c (check_op): Handle MEM_REF.
17436 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
17437 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
17438 and constants.
17439 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
17440 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
17441 (eliminate_local_variables_1): Likewise.
17442 (create_call_for_reduction_1): Likewise.
17443 (create_loads_for_reductions): Likewise.
17444 (create_loads_and_stores_for_name): Likewise.
17445 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
17446 (ssa_accessed_in_tree): Handle MEM_REF.
17447 (ssa_accessed_in_assign_rhs): Likewise.
17448 (update_type_size): Likewise.
17449 (analyze_accesses_for_call_stmt): Likewise.
17450 (analyze_accesses_for_assign_stmt): Likewise.
17451 (transform_access_sites): Likewise.
17452 (transform_allocation_sites): Likewise.
17453 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
17454 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
17455 not handle INDIRECT_REF.
17456 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
17457 (cond_store_replacement): Likewise.
17458 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17459 MEM_REF, no not handle INDIRECT_REFs.
17460 (insert_into_preds_of_block): Properly initialize avail.
17461 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
17462 for ARRAY_REFs. Properly handle reference lookups that
17463 require a bit re-interpretation.
17464 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
17465 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
17466 (build_ref_for_offset_1): Remove.
17467 (build_ref_for_offset): Build MEM_REFs.
17468 (gate_intra_sra): Disable for now.
17469 (sra_ipa_modify_expr): Handle MEM_REF.
17470 (ipa_early_sra_gate): Disable for now.
17471 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
17472 MEM_REF handling.
17473 (disqualify_base_of_expr): Likewise.
17474 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
17475 MEM_REF handling.
17476 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
17477 Use mem_ref_offset. Remove bogus folding.
17478 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
17479 (make_fancy_name_1): Add support for MEM_REF.
17480 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
17481 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
17482 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
17483 (compute_complex_ancestor_jump_func): Likewise.
17484 (ipa_analyze_virtual_call_uses): Likewise.
17485 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
17486 INDIRECT_REF folding with more generalized MEM_REF folding.
17487 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
17488 (forward_propagate_addr_into_variable_array_index): Also handle
17489 &ARRAY + I in addition to &ARRAY[0] + I.
17490 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
17491 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
17492 creates assignments with overlap.
17493 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
17494 (get_frame_field): Likewise.
17495 (get_nonlocal_debug_decl): Likewise.
17496 (convert_nonlocal_reference_op): Likewise.
17497 (struct nesting_info): Add mem_refs pointer-set.
17498 (create_nesting_tree): Allocate it.
17499 (convert_local_reference_op): Insert to be folded mem-refs.
17500 (fold_mem_refs): New function.
17501 (finalize_nesting_tree_1): Perform defered folding of mem-refs
17502 (free_nesting_tree): Free the pointer-set.
17503 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
17504 (vectorizable_load): Likewise.
17505 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
17506 (propagate_with_phi): Likewise.
17507 * tree-object-size.c (addr_object_size): Handle MEM_REFs
17508 instead of INDIRECT_REFs.
17509 (compute_object_offset): Handle MEM_REF.
17510 (plus_stmt_object_size): Handle MEM_REF.
17511 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
17512 for &MEM_REF.
17513 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
17514 (symbol_marked_for_renaming): Likewise.
17515 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
17516 (fold-const.o): Add $(TREE_FLOW_H).
17517 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
17518 (find_func_clobbers): Likewise.
17519 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
17520 (decompose_access): Likewise.
17521 (replace_field_acc): Likewise.
17522 (replace_field_access_stmt): Likewise.
17523 (insert_new_var_in_stmt): Likewise.
17524 (get_stmt_accesses): Likewise.
17525 (reorg_structs_drive): Disable.
17526 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
17527 (ix86_canonical_va_list_type): Likewise.
17528
17529 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
17530
17531 PR other/44566
17532 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
17533 * target.def (struct gcc_target): Replace enum reg_class with
17534 reg_class_t in hook argument / return types.
17535 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
17536 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
17537 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
17538 * targhooks.h (default_branch_target_register_class): Likewise.
17539 (default_ira_cover_classes, default_secondary_reload): Likewise.
17540 (default_memory_move_cost, default_register_move_cost): Likewise.
17541 * targhooks.c (default_branch_target_register_class): Likewise.
17542 (default_ira_cover_classes, default_secondary_reload): Likewise.
17543 (default_memory_move_cost, default_register_move_cost): Likewise.
17544 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
17545 * bt-load.c (branch_target_load_optimize): Likewise.
17546 * ira.c (setup_cover_and_important_classes): Likewise.
17547 * ira-costs.c (copy_cost): Likewise.
17548 * reload1.c (emit_input_reload_insns): Likewise.
17549 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
17550 * config/frv/frv.c (frv_secondary_reload): Likewise.
17551 * config/s390/s390.c (s390_secondary_reload): Likewise.
17552 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
17553 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
17554 (ix86_register_move_cost): Likewise.
17555 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
17556 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
17557 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
17558 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
17559 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
17560 (rs6000_ira_cover_classes): Likewise.
17561 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
17562 * config/picochip/picochip-protos.h (picochip_secondary_reload):
17563 Likewise.
17564 * config/pa/pa.c (pa_secondary_reload): Likewise.
17565 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
17566 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
17567 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
17568 * doc/tm.texi: Regenerate.
17569
17570 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
17571
17572 PR bootstrrap/44726
17573 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
17574 use.
17575 (build_alias_set_optimal_p): Likewise.
17576 (build_base_obj_set_for_drs): Likewise.
17577
17578 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
17579
17580 * target.def: Remove comment about licensing problems of function
17581 declarations.
17582
17583 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
17584 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
17585 * doc/tm.texi: Regenerate.
17586
17587 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
17588 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
17589
17590 * target.def (enum_va_list_p): Use DEFHOOK.
17591 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
17592 Rename ptype to ptree.
17593 * doc/tm.texi: Regenerate.
17594
17595 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
17596 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
17597 * doc/tm.texi: Regenerate.
17598
17599 * target.def (memory_move_cost): Use DEFHOOK.
17600 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
17601 Rename regclass AKA class to rclass.
17602 * doc/tm.texi: Regenerate.
17603
17604 * target.def (pragma_parse): Use DEFHOOK.
17605 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
17606 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
17607 * doc/tm.texi: Regenerate.
17608
17609 * target.def (pass_by_reference): Use DEFHOOK.
17610 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
17611 * doc/tm.texi: Regenerate.
17612
17613 * target.def (resolve_overloaded_builtin): Rename params to arglist.
17614 Use DEFHOOK.
17615 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
17616 * doc/tm.texi: Regenerate.
17617
17618 * target.def (return_pops_args): Use DEFHOOK.
17619 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
17620 Rename stack-size to size.
17621 * doc/tm.texi: Regenerate.
17622
17623 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
17624 last-sched_cycle to last_clock, cur_cycle to clock.
17625 * doc/tm.texi.in: Use @hook.
17626 * doc/tm.texi: Regenerate.
17627
17628 * target.def (print_operand, print_operand_address): Update comment.
17629 (print_operand_punct_valid_p): Likewise.
17630
17631 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
17632
17633 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
17634 to rtl.h.
17635 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
17636 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
17637 * rtl-error.h: New.
17638 * regrename.c: Do not include toplev.h. Include rtl-error.h.
17639 * rtl-error.c: Likewise.
17640 * reload.c: Likewise.
17641 * recog.c: Likewise.
17642 * sel-sched.c: Likewise.
17643 * function.c: Likewise.
17644 * reg-stack.c: Likewise.
17645 * cfgrtl.c: Likewise.
17646 * reload1.c: Likewise.
17647 * final.c: Include rtl-error.
17648 * Makefile.in: Adjust dependencies.
17649
17650 2010-06-30 Jan Hubicka <jh@suse.cz>
17651
17652 PR middle-end/PR44706
17653 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
17654 to return the value.
17655
17656 2010-06-30 Michael Matz <matz@suse.de>
17657
17658 PR bootstrap/44699
17659 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
17660 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
17661 a gimple reg, attach the original VDEF to the last store in the
17662 sequence.
17663
17664 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
17665
17666 PR other/44034
17667 * config/darwin.c (darwin_override_options): Use renamed
17668 targetm.asm_out.emit_unwind_label.
17669
17670 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
17671
17672 PR tree-optimization/39799
17673 * tree-inline.c (remap_ssa_name): Initialize variable only if
17674 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17675
17676 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
17677
17678 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
17679
17680 2010-06-30 Richard Guenther <rguenther@suse.de>
17681
17682 PR target/44722
17683 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
17684 against oscillation with reverse peephole2.
17685
17686 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
17687
17688 PR target/44721
17689 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17690 Fix last commit.
17691
17692 2010-06-30 Nick Clifton <nickc@redhat.com>
17693
17694 * config/rx/rx-modes.def: New file.
17695 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
17696 (CC_REGNUM): Define.
17697 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
17698 register.
17699 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
17700 (SELECT_CC_MODE): Define.
17701 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
17702 (reg:CC CC_REG) instead of (cc0).
17703 (attr "cc"): Delete.
17704 (cbranchsi4): Do not split compare and branch here. Instead move
17705 it to...
17706 (cbranchsi4_<code>): ... here. New patterns.
17707 (cmpsi): Call rx-compare_redundant to find out if it is necessary
17708 to emit the compare instruction.
17709 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
17710 cc_status flags.
17711 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
17712 FIRST_PSEUDO_REGNUM.
17713 (rx_expand_prologue, rx_expand_epilogue): Likewise.
17714 (rx_notice_update_cc): Delete.
17715 (rx_cc_modes_compatible): New function.
17716 (flags_needed_for_conditional): New function.
17717 (flags_from_mode): New function.
17718 (rx_compare_redundant): New function - scans backwards through
17719 insn list to find out if condition flags are already set correctly.
17720 (TARGET_CC_MODES_COMPATIBLE): Define.
17721 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
17722
17723 * config/rx/rx.h (BRANCH_COST): Define.
17724 (REGISTER_MOVE_COST): Define.
17725 * config/rx/predicates (rx_source_operand): Allow all constant types.
17726 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
17727 (tstsi4): New pattern.
17728 * config/rx/rx.c (rx_memory_move_cost): Define.
17729 (TARGET_MEMORY_MOVE_COST): Define.
17730
17731 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
17732
17733 * tree.h (block_may_fallthru): Declare here.
17734 * tree-flow.h (block_may_fallthru): Do not declare here.
17735 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
17736 bitmap.h
17737 * Makefile.in (c-typeck.o): Update dependencies.
17738
17739 2010-06-30 Jakub Jelinek <jakub@redhat.com>
17740
17741 PR debug/44694
17742 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
17743 * cselib.c (cfa_base_preserved_regno): New static variable.
17744 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
17745 of REGNO (cfa_base_preserved_val->locs->loc).
17746 (cselib_preserve_cfa_base_value): Add regno argument, set
17747 cfa_base_preserved_regno to it.
17748 (cselib_invalidate_regno): Allow removal of registers other than
17749 cfa_base_preserved_regno from cfa_base_preserved_val.
17750 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
17751 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
17752 of MEM addresses, if not on LHS.
17753 (reverse_op): Don't add reverse ops for cfa_base_rtx.
17754 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
17755
17756 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
17757
17758 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
17759 static variables.
17760 (peep2_buf_position): New static function.
17761 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
17762 peephole2_optimize): Use it.
17763 (peep2_attempt, peep2_update_life): New static functions, broken out
17764 of peephole2_optimize.
17765 (peep2_fill_buffer): New static function.
17766 (peephole2_optimize): Change the main loop to try to fill the buffer
17767 with the maximum number of insns before matching them against
17768 peepholes. Use a forward scan. Remove special case for targets with
17769 conditional execution.
17770 * genrecog.c (change_state): Delete dead code.
17771 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17772 Rewrite so as not to expect the second insn to have had a peephole
17773 applied yet.
17774
17775 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17776
17777 * genhooks.c (emit_findices): Cast field precision to int.
17778 (emit_documentation): Likewise.
17779
17780 2010-06-29 Jakub Jelinek <jakub@redhat.com>
17781
17782 PR tree-optimization/43801
17783 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
17784 if old_decl was DECL_ONE_ONLY.
17785
17786 PR debug/44668
17787 * dwarf2out.c (add_accessibility_attribute): New function.
17788 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
17789 instead of adding DW_AT_accessibility manually.
17790 (gen_enumeration_type_die, gen_struct_or_union_type_die,
17791 gen_typedef_die): Use it.
17792
17793 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17794
17795 * vmsdbgout.c (full_name): Just output the file name if not native.
17796
17797 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17798
17799 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
17800 (funcnam_table): New static table.
17801 (funcnum_table): New static table.
17802 (write_rtnbeg): Write value saved in funcnum_table.
17803 (write_rtnend): Write value saved in funcnum_table.
17804 (vmsdbgout_begin_function): Save current function info in
17805 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
17806 (vmsdbgout_finish): Iterate over funcnum_table.
17807
17808 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17809
17810 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
17811 (vmsdbgout_type_decl): Declare
17812 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
17813 (FUNC_EPILOGUE_LABEL): New macro
17814 (vmsdbgout_begin_epilogue): New function.
17815 (vmsdbgout_type_decl): New function.
17816
17817 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17818
17819 * vmsdbg.h: Update copyright.
17820
17821 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17822
17823 * vmsdbg.h (DST_K_TBG): New DST constant.
17824 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
17825 (write_modbeg): Cast module_language to avoid warning.
17826 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
17827
17828 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
17829
17830 PR other/44034
17831 * target.def, doc/tm.texi.in, genhooks.c: New files.
17832 * target.h: Instead of defining individual hook members,
17833 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
17834 include target.def.
17835 * target-def.h: Instead of defining individual hook initializers,
17836 include target-hooks-def.h.
17837 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
17838 targetm.live_on_entry -> targetm.extra_live_on_entry
17839 targetm.sched.md_finish ->targetm.sched.finish
17840 targetm.sched.md_init -> targetm.sched.init
17841 targetm.sched.md_init_global -> targetm.sched.init_global
17842 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
17843 targetm.asm_out.except_table_label ->
17844 targetm.asm_out.emit_except_table_label
17845 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
17846 targetm.target_help -> targetm.help
17847 targetm.vectorize.builtin_support_vector_misalignment ->
17848 targetm.vectorize.support_vector_misalignment
17849 targetm.file_start_app_off -> targetm.asm_file_start_app_off
17850 targetm.file_start_file_directive ->
17851 targetm.asm_file_start_file_directive
17852 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
17853 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
17854 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
17855 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
17856 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
17857 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
17858 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
17859 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
17860 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
17861 * Makefile.in (TARGET_H): Depend on target.def.
17862 (TARGET_DEF_H): Depend on target-hooks-def.h.
17863 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
17864 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
17865 * doc/tm.texi: Regenerate.
17866
17867 * Makefile.in (s-tm-texi): Remove stray tab / rule.
17868
17869 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
17870 (targetm.sched.init): Likewise.
17871
17872 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17873
17874 PR bootstrap/44713
17875 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
17876 (function_arg_advance_32): Const-ify TYPE parameter.
17877 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
17878 (ix86_function_arg_advance): Change type of NAMED to bool.
17879 (function_arg_32): Const-ify CUM and TYPE parameters.
17880 (function_arg_64): Likewise. Change type of NAMED to bool.
17881 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
17882 to bool.
17883 (ix86_function_arg): Change type of NAMED to bool.
17884 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
17885 last argument as a bool.
17886
17887 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
17888
17889 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
17890 (OVERRIDE_OPTIONS): Add note of obsolescence.
17891 Replace references with references to TARGET_OPTION_OVERRIDE.
17892 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
17893 the macro).
17894 * targhooks.c (default_target_option_override): New function.
17895 * targhooks.h (default_target_option_override): Declare.
17896 * target.h (struct gcc_target): Add override member to
17897 target_option member.
17898 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
17899 targetm.target_option.override call.
17900 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
17901 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
17902
17903 2010-06-29 Jan Hubicka <jh@suse.cz>
17904
17905 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
17906
17907 2010-06-29 Jan Hubicka <jh@suse.cz>
17908
17909 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
17910 unreachable.
17911 (rebuild_frequencies): New function.
17912 * predict.h (rebuild_frequencies): Declare.
17913 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
17914 entry block and edge reaching new_entry.
17915 (tree_function_versioning): When doing partial cloning, rebuild
17916 frequencies when done.
17917 * passes.c (execute_function_todo): Use rebild_frequencies.
17918
17919 2010-06-29 Richard Guenther <rguenther@suse.de>
17920
17921 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
17922 * tree-flow.h (enum noalias_state): Remove.
17923 (struct var_ann_d): Remove noalias_state member.
17924
17925 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
17926
17927 PR target/43902
17928 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
17929 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
17930 (maddhidi4): Likewise.
17931
17932 Revert parts of the change for PR25130.
17933 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17934 MEM_ALIAS_SET.
17935
17936 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17937
17938 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
17939 targetm.calls.function_incoming_arg, and
17940 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
17941 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
17942 * target.h (struct gcc_target): Add function_arg_advance,
17943 function_arg, and function_incoming_arg fields.
17944 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
17945 (TARGET_FUNCTION_INCOMING_ARG): Define.
17946 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
17947 and TARGET_FUNCTION_INCOMING_ARG.
17948 * targhooks.h (default_function_arg_advance): Declare.
17949 (default_function_arg, default_function_incoming_arg): Declare.
17950 * targhooks.c (default_function_arg_advance): New function.
17951 (default_function_arg, default_function_incoming_arg): New function.
17952 * config/i386/i386.c (function_arg_advance): Rename to...
17953 (ix86_function_arg_advance): ...this. Make static.
17954 (function_arg): Rename to...
17955 (ix86_function_arg): ...this. Make static.
17956 (TARGET_FUNCTION_ARG_ADVANCE): Define.
17957 (TARGET_FUNCTION_ARG): Define.
17958 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
17959 (FUNCTION_ARG): Delete.
17960 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
17961 (function_arg): Delete prototype.
17962
17963 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17964
17965 * reginfo.c (init_reg_sets_1): Adjust comments.
17966 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
17967 * calls.c (prepare_call_address): Likewise.
17968 (emit_call_1): Use targetm.calls.return_pops_args.
17969 (expand_call): Likewise.
17970 * function.c (assign_parms): Likewise.
17971 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
17972 * target.h (struct gcc_target) [struct calls]: Add
17973 return_pops_args field.
17974 * targhooks.h (default_return_pops_args): Declare.
17975 * targhooks.c (default_return_pops_args): Define.
17976 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
17977 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
17978 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
17979 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
17980 documentation.
17981 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
17982 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
17983 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
17984 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
17985 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
17986 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
17987 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
17988 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
17989 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
17990 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
17991 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
17992 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
17993 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
17994 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
17995 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
17996 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
17997 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
17998 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
17999 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
18000 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
18001 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
18002 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
18003 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
18004 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
18005 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
18006 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
18007 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
18008 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
18009 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
18010 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
18011 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
18012 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
18013 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
18014 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
18015 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
18016 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
18017 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
18018 * config/i386/i386.c (ix86_return_pops_args): Make static.
18019 Constify arguments.
18020 (TARGET_RETURN_POPS_ARGS): Define.
18021 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
18022 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
18023 (TARGET_RETURN_POPS_ARGS): Define.
18024 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
18025 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
18026 (TARGET_RETURN_POPS_ARGS): Define.
18027
18028 2010-06-29 Richard Guenther <rguenther@suse.de>
18029
18030 PR middle-end/44667
18031 * tree-inline.c (initialize_inlined_parameters): Make sure
18032 to remap the inlined parameter variable substitutions types.
18033
18034 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
18035
18036 PR rtl-optimization/44659
18037 * combine.c (make_compound_operation) <SUBREG>: Do not return the
18038 result of force_to_mode if it partially re-expanded the compound.
18039
18040 2010-06-28 Jan Hubicka <jh@suse.cz>
18041
18042 PR middle-end/44671
18043 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
18044 RESULT_DECL.
18045
18046 2010-06-28 Anatoly Sokolov <aesok@post.ru>
18047
18048 * double-int.h (force_fit_type_double): Remove declaration.
18049 * double-int.c (force_fit_type_double): Move to tree.c.
18050 * tree.h (force_fit_type_double): Declare.
18051 * tree.h (force_fit_type_double): Moved from double-int.c. Use
18052 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
18053 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
18054 * convert.c (convert_to_pointer): Adjust call to
18055 force_fit_type_double.
18056 * tree-vrp.c (extract_range_from_assert,
18057 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
18058 * fold-const.c: Update comment.
18059 (int_const_binop, fold_convert_const_int_from_int,
18060 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
18061 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
18062 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
18063 round_up_loc): Adjust call to force_fit_type_double.
18064
18065 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18066
18067 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
18068
18069 2010-06-28 Martin Jambor <mjambor@suse.cz>
18070
18071 * tree-sra.c (convert_callers): New parameter, change fndecls of
18072 recursive calls.
18073 (modify_function): Pass the old decl to convert_callers.
18074
18075 2010-06-28 Martin Jambor <mjambor@suse.cz>
18076
18077 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
18078 ipa_check_create_node_params and ipa_initialize_node_params with
18079 checking asserts they are not necessary.
18080
18081 2010-06-28 Jan Hubicka <jh@suse.cz>
18082
18083 PR tree-optimization/44687
18084 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
18085
18086 2010-06-28 Martin Jambor <mjambor@suse.cz>
18087
18088 PR c++/44535
18089 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
18090 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
18091 instead of BINFO_BASE_BINFO.
18092
18093 2010-06-28 Michael Matz <matz@suse.de>
18094
18095 PR middle-end/44592
18096 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
18097 proper VDEF chain for intermediate stores in the sequence.
18098
18099 2010-06-28 Jan Hubicka <jh@suse.cz>
18100
18101 PR tree-optimization/44357
18102 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
18103 uninlinable functions.
18104
18105 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
18106
18107 * config.gcc (powerpc*-*-*): Handle titan.
18108 * config/rs6000/rs6000.c (titan_cost): New costs.
18109 (rs6000_override_options): Add "titan" to processor_target_table.
18110 Add Titan to branch alignment logic.
18111 Correctly set rs6000_cost for titan.
18112 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
18113 * config/rs6000/titan.md: New file.
18114 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
18115
18116 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
18117
18118 * tree-browser.c (TB_history_stack): Convert to a VEC.
18119 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
18120 (TB_history_prev): Likewise.
18121
18122 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
18123
18124 * vec.h (vec_heap_free): Add parentheses around free.
18125
18126 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
18127
18128 * system.h: Poison GCC_EXCEPT_H for front-end files.
18129
18130 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
18131 langhook.
18132 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
18133 Define to NULL by default.
18134 * except.h: Define GCC_EXCEPT_H.
18135 (doing_eh): Remove prototype.
18136 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
18137 (lang_protect_cleanup_actions): Remove.
18138 * except.c (lang_protect_cleanup_actions): Remove.
18139 (doing_eh): Remove.
18140 (gen_eh_region): Don't check doing_eh here.
18141 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
18142 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
18143 instead of lang_protect_cleanup_actions.
18144 * omp-low.c (maybe_catch_exception): Likewise.
18145 * Makefile.in: Update dependencies.
18146
18147 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
18148
18149 * cgraph.h (struct varpool_node): new used_from_object_file flag.
18150 (struct cgraph_local_info): new used_from_object_file flag.
18151 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
18152 (cgraph_clone_node): initialize used_from_object_file.
18153 (cgraph_create_virtual_clone): initialize used_from_object_file.
18154 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
18155 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
18156 when compiling with -fwhole-program.
18157 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
18158 internal resolver.
18159 * ipa.c (function_and_variable_visibility): Set externally_visible
18160 flag of varpool_node if used_from_object_file flag is set.
18161 (cgraph_externally_visible_p): check used_from_object_file flag.
18162 * doc/invoke.texi (-fwhole-program option): Change description of
18163 externally_visible attribute accordingly.
18164 * doc/extend.texi (externally_visible): Ditto.
18165
18166 2010-06-27 Jan Hubicka <jh@suse.cz>
18167
18168 * params.def (max-inline-insns-auto): Default to 40.
18169 * doc/invoke.texi (max-inline-insns-auto): Document the change.
18170
18171 2010-06-27 Jan Hubicka <jh@suse.cz>
18172
18173 PR middle-end/44671
18174 PR middle-end/44686
18175 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
18176 signature change.
18177 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
18178 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
18179
18180 2010-06-27 Anatoly Sokolov <aesok@post.ru>
18181
18182 * target.h (struct gcc_target): Add register_move_cost field.
18183 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
18184 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
18185 * targhooks.c (default_register_move_cost): New function.
18186 * targhooks.h (default_register_move_cost): Declare function.
18187 * defaults.h (REGISTER_MOVE_COST): Delete.
18188 * ira-int.h (ira_register_move_cost): Update comment.
18189 * ira.c (ira_register_move_cost): Update comment.
18190 * reload.h (register_move_cost): Declare.
18191 * reginfo.c (register_move_cost): New function.
18192 (move_cost): Update comment.
18193 (init_move_cost, memory_move_secondary_cost): Replace
18194 REGISTER_MOVE_COST with register_move_cost.
18195 * postreload.c (reload_cse_simplify_set): (Ditto.).
18196 * reload.c (find_valid_class, find_reloads): (Ditto.).
18197 * reload1.c (choose_reload_regs): (Ditto.).
18198 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
18199 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
18200 * doc/md.texi (can_create_pseudo_p): Update documentation.
18201
18202 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
18203 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
18204 * config/i386/i386.h (ix86_memory_move_cost): Make static.
18205 (TARGET_MEMORY_MOVE_COST): Define.
18206
18207 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
18208 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
18209 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
18210 (TARGET_MEMORY_MOVE_COST): Define.
18211
18212 2010-06-27 Richard Guenther <rguenther@suse.de>
18213
18214 PR tree-optimization/44683
18215 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
18216 false edge from the inverted condition.
18217
18218 2010-06-27 Richard Guenther <rguenther@suse.de>
18219
18220 PR middle-end/44684
18221 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
18222 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
18223 for register LHS. Or non-store assignments.
18224
18225 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
18226
18227 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
18228 (sparc_emit_set_const64): Likewise. Remove disabled code.
18229 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
18230 (sparc_emit_set_const64): Likewise.
18231
18232 2010-06-26 Catherine Moore <clm@codesourcery.com>
18233
18234 * config/mips/mips.md (alu_type): New attribute.
18235 (type): Infer type from alu_type.
18236 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
18237 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
18238 *subsi3_extended, negsi2, negdi2, *low<mode>,
18239 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
18240 xor<mode>3, *nor<mode>3,
18241 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
18242 *zero_extendhi_truncqi): Set alu_type instead of type.
18243
18244 2010-06-26 Douglas B Rupp <rupp@gnat.com>
18245
18246 * config/alpha/alpha.c (alpha_need_linkage): Adjust
18247 splay_tree_new_ggc call.
18248 (alpha_use_linkage): Likewise.
18249
18250 2010-06-26 Joseph Myers <joseph@codesourcery.com>
18251
18252 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
18253 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
18254 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
18255 (static_specs): Remove switches_need_spaces.
18256 (process_command, do_self_spec): Hardcode handling "-o" instead of
18257 checking switches_need_spaces.
18258 * system.h (SWITCHES_NEED_SPACES): Poison.
18259
18260 2010-06-26 Richard Guenther <rguenther@suse.de>
18261
18262 PR tree-optimization/44393
18263 * tree-loop-distribution.c (generate_loops_for_partition): Fix
18264 stmt removal and VOP renaming.
18265 (generate_memset_zero): Remove redundant stmt updating.
18266 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
18267 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
18268
18269 2010-06-26 Jan Hubicka <jh@suse.cz>
18270
18271 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
18272 edges comming from header are equivalent.
18273 (visit_bb): Handle PHIs correctly.
18274 * tree-inline.c (copy_phis_for_bb): Be able to copy
18275 PHI from entry edge.
18276 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
18277
18278 2010-06-26 Richard Guenther <rguenther@suse.de>
18279
18280 PR middle-end/44674
18281 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
18282 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
18283
18284 2010-06-26 Joseph Myers <joseph@codesourcery.com>
18285
18286 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
18287 add_infile, alloc_switch): New.
18288 (process_command): Remove variable lang_n_infiles. Process
18289 options in a single pass. Use new functions for allocating
18290 infiles and switches arrays. Properly skip operands of
18291 -Xpreprocessor and -Xassembler.
18292
18293 2010-06-26 Jan Hubicka <jh@suse.cz>
18294
18295 PR middle-end/44671
18296 * cgraphunit.c (cgraph_function_versioning): Remove wrong
18297 cgraph_make_decl_local call; fix typo copying RTL data.
18298
18299 2010-06-25 DJ Delorie <dj@redhat.com>
18300
18301 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
18302 (m32c_output_aligned_common): Likewise.
18303 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
18304 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18305 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
18306 (m32c_register_pragmas): Register it.
18307 * config/m32c/m32c.c (m32c_get_pragma_address): New.
18308 (m32c_insert_attributes): Set #pragma address decls volatile.
18309 (pragma_entry_eq): New.
18310 (pragma_entry_hash): New.
18311 (m32c_note_pragma_address): New.
18312 (m32c_get_pragma_address): New.
18313 (m32c_output_aligned_common): New.
18314 * doc/extend.texi: Document the new pragma.
18315
18316 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
18317 also.
18318 * config/m32c/predicates.md (m32c_any_operand): Check the code
18319 instead of memory_operand so as to allow matching volatile MEMs.
18320 (m32c_nonimmediate_operand): Likewise.
18321 (mra_operand): Allow volatiles.
18322
18323 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
18324
18325 PR debug/44610
18326 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
18327 address if the offset is unknown.
18328
18329 2010-06-25 Douglas B Rupp <rupp@gnat.com>
18330
18331 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
18332 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
18333 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
18334 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
18335 to ia64_start_function. Invoke it.
18336 * config/ia64/ia64.c (ia64_start_function): Call new function
18337 dwarf2out_vms_debug_main_pointer.
18338
18339 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
18340
18341 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
18342 statements computing the true predicate.
18343
18344 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
18345
18346 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
18347 to boolean_true_node.
18348 (reset_bb_predicate): New.
18349 (predicate_bbs): Call reset_bb_predicate.
18350
18351 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
18352
18353 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
18354 (tree_if_conversion): Returns true when something has been changed.
18355 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
18356 changed something.
18357
18358 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
18359
18360 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
18361 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
18362 * tree-if-conv.c: Include dbgcnt.h.
18363 (tree_if_conversion): Use if_conversion_tree to count the number of
18364 if-convertible loops.
18365
18366 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
18367
18368 * common.opt (fprefetch-loop-arrays): Re-define
18369 -fprefetch-loop-arrays as a tri-state option with the initial
18370 value of -1.
18371 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
18372 pass only when flag_prefetch_loop_arrays > 0.
18373 * toplev.c (process_options): Note that, with tri-states,
18374 flag_prefetch_loop_arrays>0 means prefetching is enabled.
18375 * config/i386/i386.c (override_options): Enable prefetching at -O3
18376 for a set of CPUs that sw prefetching is helpful.
18377 (software_prefetching_beneficial_p): New. Return TRUE if software
18378 prefetching is beneficial for the given CPU.
18379
18380 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
18381
18382 PR rtl-optimization/44326
18383 * implicit-zee.c (find_removable_zero_extends): Replace
18384 INSN_P with NONDEBUG_INSN_P.
18385
18386 2010-06-25 Martin Jambor <mjambor@suse.cz>
18387
18388 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
18389 (struct ipa_node_params): Removed the modification_analysis_done flag.
18390 (ipa_is_param_modified): Removed.
18391 (ipa_analyze_node): Declare.
18392 (ipa_compute_jump_functions): Remove declaration.
18393 (ipa_count_arguments): Likewise.
18394 (ipa_detect_param_modifications): Likewise.
18395 (ipa_analyze_params_uses): Likewise.
18396 * ipa-prop.c (struct param_analysis_info): New type.
18397 (visit_store_addr_for_mod_analysis): Removed.
18398 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
18399 moved down in the file.
18400 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
18401 (ipa_count_arguments): Made static.
18402 (mark_modified): New function.
18403 (is_parm_modified_before_call): New function.
18404 (compute_pass_through_member_ptrs): New parameter parms_info, call
18405 is_parm_modified_before_call instead of ipa_is_param_modified.
18406 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
18407 it to compute_pass_through_member_ptrs.
18408 (ipa_compute_jump_functions): New parameter parms_info, pass it to
18409 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
18410 on the callee if it is analyzed. Made static.
18411 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
18412 is_parm_modified_before_call instead of ipa_is_param_modified.
18413 (ipa_analyze_call_uses): New parameter parms_info, pass it to
18414 ipa_analyze_indirect_call_uses.
18415 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
18416 ipa_analyze_call_uses.
18417 (ipa_analyze_params_uses): New parameter parms_info, pass it to
18418 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
18419 (ipa_analyze_node): New function.
18420 (ipa_print_node_params): Do not dump the modified flag.
18421 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
18422 it. Do not stream the modified parameter flag.
18423 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
18424 it. Do not stream the modified parameter flag.
18425 * ipa-cp.c (ipcp_analyze_node): Removed.
18426 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
18427 with only a call to ipa_analyze_node.
18428 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
18429 node with only a call to ipa_analyze_node.
18430
18431 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
18432
18433 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
18434
18435 2010-06-25 Jan Hubicka <jh@suse.cz>
18436
18437 * tree-pass.h (pass_split_functions): Declare.
18438 * opts.c (decode_options): Enable function splitting at -O2
18439 * timevar.def (TV_IPA_FNSPLIT): New macro.
18440 * ipa-split.c: New file.
18441 * common.opt (-fpartial-inlining): New flag.
18442 * Makefile.in (ipa-split.o): New object file.
18443 * passes.c (init_optimization_passes): Add ipa-split.
18444 * params.def (partial-inlining-entry-probability): New parameters.
18445 * doc/invoke.texi (-fpartial-inlining): New.
18446
18447 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
18448
18449 PR 44665
18450 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
18451 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
18452 (gimplify_expr): Likewise.
18453
18454 2010-06-25 Martin Jambor <mjambor@suse.cz>
18455
18456 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
18457 statements instead of bailing out on them.
18458 (ipa_analyze_indirect_call_uses): Do not require that loads from the
18459 parameter are in the same BB as the condition. Update comments.
18460
18461 2010-06-25 Jakub Jelinek <jakub@redhat.com>
18462
18463 PR middle-end/43866
18464 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
18465 true or always false, return NULL_TREE.
18466 (tree_unswitch_single_loop): Optimize conditions even when reaching
18467 max-unswitch-level parameter. If num > 0, optimize first all conditions
18468 using entry checks, then do still reachable block discovery and consider
18469 only conditions in still reachable basic blocks in the loop.
18470
18471 PR tree-optimization/44539
18472 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
18473 the call doesn't have LHS, but has VDEF.
18474
18475 2010-06-25 Joseph Myers <joseph@codesourcery.com>
18476
18477 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
18478 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
18479 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
18480 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
18481 * system.h (MODIFY_TARGET_NAME): Poison.
18482
18483 2010-06-25 Alan Modra <amodra@gmail.com>
18484
18485 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
18486 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
18487 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
18488 CMODEL_LARGE as default.
18489 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
18490 (offsettable_ok_by_alignment): Delete.
18491 (rs6000_emit_move): Remove mcmodel=medium optimization.
18492
18493 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
18494
18495 With large parts from Jim Wilson:
18496 PR target/43902
18497 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
18498 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18499 * optabs.c (optab_for_tree_code): Likewise.
18500 (expand_widen_pattern_expr): Likewise.
18501 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
18502 out of execute_optimize_widening_mul.
18503 (convert_plusminus_to_widen): New function.
18504 (execute_optimize_widening_mul): Use the two new functions.
18505 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
18506 Remove code to generate widening multiply-accumulate. Add support
18507 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18508 * gimple-pretty-print.c (dump_ternary_rhs): New function.
18509 (dump_gimple_assign): Call it when appropriate.
18510 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
18511 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
18512 (expand_gimple_stmt_1): Likewise.
18513 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
18514 WIDEN_MULT_MINUS_EXPR.
18515 * tree-ssa-operands.c (get_expr_operands): Likewise.
18516 * tree-inline.c (estimate_operator_cost): Likewise.
18517 * gimple.c (extract_ops_from_tree_1): Renamed from
18518 extract_ops_from_tree. Add new arg for a third operand; fill it.
18519 (gimple_build_assign_stat): Support operations with three operands.
18520 (gimple_build_assign_with_ops_stat): Likewise.
18521 (gimple_assign_set_rhs_from_tree): Likewise.
18522 (gimple_assign_set_rhs_with_ops_1): Renamed from
18523 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
18524 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
18525 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
18526 WIDEN_MULT_MINUS_EXPR.
18527 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
18528 (extract_ops_from_tree_1): Adjust declaration.
18529 (gimple_assign_set_rhs_with_ops_1): Likewise.
18530 (gimple_build_assign_with_ops): Pass NULL for last operand.
18531 (gimple_build_assign_with_ops3): New macro.
18532 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
18533 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
18534 functions.
18535 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
18536 (verify_gimple_assign): Call it.
18537 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
18538 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
18539 functions for dealing with three-operand statements.
18540 * tree.c (commutative_ternary_tree_code): New function.
18541 * tree.h (commutative_ternary_tree_code): Declare it.
18542 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
18543 ternary statements.
18544 (gimple_assign_nonzero_warnv_p): Likewise.
18545 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
18546 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
18547 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
18548 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
18549 (struct hashtable_expr): New member ternary in the union.
18550 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
18551 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
18552 (iterative_hash_hashable_expr): Likewise.
18553 (print_expr_hash_elt): Handle EXPR_TERNARY.
18554 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
18555 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
18556 statements. Handle GIMPLE_TERNARY_RHS.
18557
18558 2010-06-25 Jan Hubicka <jh@suse.cz>
18559
18560 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
18561
18562 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
18563
18564 PR c/44517
18565 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
18566 parameters are not good.
18567 (c_parser_parameter_declaration): Error unknown type name if the type
18568 name can't start declaration specifiers.
18569
18570 2010-06-25 Joseph Myers <joseph@codesourcery.com>
18571
18572 * gcc.c (translate_options): Don't mention +e in comment.
18573 (process_command): Don't handle +e specially.
18574
18575 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
18576
18577 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
18578
18579 * ira-build.c (merge_hard_reg_conflicts): New function.
18580 (create_cap_allocno, copy_info_to_removed_store_destinations,
18581 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
18582 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
18583 (remove_unnecessary_allocnos, remove_low_level_allocnos)
18584 copy_nifo_to_removed_store_destination): Use them.
18585 * ira-lives.c (make_hard_regno_born): New function, split out of
18586 make_regno_born.
18587 (make_allocno_born): Likewise.
18588 (make_hard_regno_dead): New function, split out of make_regno_dead.
18589 (make_allocno_dead): Likewise.
18590 (inc_register_pressure): New function, split out of set_allocno_live.
18591 (dec_register_pressure): New function, split out of clear_allocno_live.
18592 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
18593 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
18594 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
18595 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
18596 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
18597 mark_pseudo_regno_live.
18598 (process_bb_node_lives): Use mark_pseudo_regno_live,
18599 make_hard_regno_born and make_allocno_dead.
18600 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
18601 set_allocno_live, clear_allocno_live): Delete functions.
18602
18603 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
18604 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
18605 functions.
18606 (ira_flattening): Use ira_parent_allocno.
18607 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
18608 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
18609
18610 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
18611 statement.
18612
18613 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
18614 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
18615 minmax_set_iter_cond, minmax_set_iter_next,
18616 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
18617 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
18618 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
18619 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
18620 uses changed.
18621
18622 * ira-int.h (struct live_range, live_range_t): Renamed from struct
18623 ira_allocno_live_range and allocno_live_range_t; all uses changed.
18624 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
18625 All uses changed.
18626
18627 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
18628
18629 * thumb2.md (thumb2_tlobits_cbranch): Delete.
18630 (peephole2 to convert zero_extract/compare of single bit to
18631 lshift/compare): New.
18632
18633 2010-06-24 Anatoly Sokolov <aesok@post.ru>
18634
18635 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
18636 recursive call and call to 'int_const_binop'.
18637 (build_range_check, fold_cond_expr_with_comparison, unextend,
18638 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
18639 multiple_of_p): Adjust call to const_binop.
18640
18641 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
18642
18643 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
18644 determine size of XFmode operand.
18645 (XFmode extended DFmode push splitter): Ditto.
18646 (XFmode extended SFmode push splitter): Ditto.
18647
18648 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
18649
18650 PR target/44588
18651 * config/i386/i386.md (extract_code): New.
18652 (<u>divmodqi4): Likewise.
18653 (divmodhiqi3): Likewise.
18654 (udivmodhiqi3): Likewise.
18655 (<u>divqi3): Remvoved.
18656
18657 2010-06-24 Jakub Jelinek <jakub@redhat.com>
18658
18659 PR middle-end/44492
18660 * recog.h (struct recog_data): Add is_asm field.
18661 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
18662 present in constraints of inline-asm operand and memory operand
18663 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
18664 (extract_insn): Initialize recog_data.is_asm.
18665 * doc/md.texi (Constraints): Document operand side-effect rules.
18666
18667 2010-06-24 Andi Kleen <ak@linux.intel.com>
18668
18669 * c-parser.c (c_parser_conditional_expression): Call
18670 warn_for_omitted_condop.
18671 * doc/invoke.texi: Document omitted condop warning.
18672
18673 2010-06-24 Nick Clifton<nickc@redhat.com>
18674
18675 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
18676 insn in the sequence is a jump insn before setting its label.
18677
18678 2010-06-24 Alan Modra <amodra@gmail.com>
18679
18680 * collect2.c (main): Match exactly --version and --help.
18681
18682 2010-06-24 DJ Delorie <dj@redhat.com>
18683
18684 * config/m32c/m32c-pragma.c: Don't include rtl.h.
18685
18686 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
18687
18688 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
18689 using X87MODEF mode iterator.
18690 (pushsf splitter): Macroize splitter using P mode iterator.
18691 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
18692 mode iterator.
18693
18694 (*movxf_internal): Rename from *movxf_integer.
18695 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
18696 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
18697 (*movdf_internal): Rename from *movdf_integer.
18698 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
18699 (*movsf_internal): Rename from *movdf_1.
18700
18701 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
18702
18703 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
18704 (const_gimple_seq_node): Removed typedefs.
18705
18706 * gimple.h (gimple_seq_node_d, gimple_seq_node)
18707 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
18708
18709 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
18710
18711 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
18712 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
18713 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
18714 and CODE_FOR_vec_extract_lo_v4df.
18715
18716 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
18717 Changed to define_insn_and_split.
18718 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
18719 (vec_extract_lo_v16hi): Likewise.
18720 (vec_extract_lo_v32qi): Likewise.
18721 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
18722 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
18723
18724 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
18725
18726 PR target/44640
18727 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
18728 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
18729 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
18730 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
18731 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
18732
18733 PR target/44640
18734 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
18735
18736 PR other/44644
18737 * df-core.c (struct df): Rename to df_d.
18738 * df.h (struct df): Likewise.
18739 * dse.h (struct df): Remove forward declaration.
18740 * recog.h (struct insn_data): Rename to:
18741 (struct_insn_data_d). Adjusted all users.
18742
18743 2010-06-23 Arnaud Charlet <charlet@adacore.com
18744
18745 PR ada/22220
18746 * doc/install.texi: Update requirements to build GNAT.
18747
18748 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
18749
18750 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
18751 enum type.
18752 (m68k_sched_attr_opx_type): Remove unreachable return.
18753 (m68k_sched_attr_opy_type): Likewise.
18754 (m68k_sched_attr_size): Likewise.
18755 (sched_get_opxy_mem_type): Likewise.
18756 (m68k_sched_attr_op_mem): Likewise.
18757
18758 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
18759
18760 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
18761 new statement and adjust VDEF only if necessary. Remove superfluous
18762 call to maybe_clean_or_replace_eh_stmt.
18763 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
18764 copy the flags.
18765 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
18766 * tree-inline.c (copy_bb): ...and not there.
18767
18768 2010-06-22 Cary Coutant <ccoutant@google.com>
18769
18770 * dwarf2out.c (is_nested_in_subprogram): New function.
18771 (should_move_die_to_comdat): Use it.
18772 (copy_ancestor_tree): Don't mark DIEs here.
18773 (copy_decls_walk): Start walk from root of newly-added tree;
18774 mark DIEs here instead.
18775
18776 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
18777
18778 * config/i386/i386.md (unit): Also check sseishft1.
18779
18780 2010-06-22 Jan Hubicka <jh@suse.cz>
18781
18782 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
18783 enabled.
18784
18785 2010-06-22 Jan Hubicka <jh@suse.cz>
18786
18787 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
18788 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
18789 Return true if something changed.
18790 * df.h (df_confluence_function_n): Return bool.
18791 * df-core.c (df_worklist_propagate_forward,
18792 df_worklist_propagate_backward): Track changes and ages.
18793 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
18794 track ages.
18795 * dse.c (dse_confluence_n): Return always true.
18796
18797 2010-06-22 Jan Hubicka <jh@suse.cz>
18798
18799 * bitmap.c (bitmap_clear_bit): Micro optimize.
18800
18801 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
18802
18803 * config/i386/i386.md (SWI1248x): New mode iterator.
18804 (SWI48x): Ditto.
18805 (SWI12): Ditto.
18806 (SWI24): Ditto.
18807
18808 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
18809 SWI1248x mode iterator.
18810 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
18811 using SWI124 mode iterator.
18812 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
18813 mode iterator.
18814 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
18815 *pushdi2_prologue_rex64 using P mode iterator.
18816 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
18817 using SWI48 mode iterator.
18818 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
18819 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
18820 using SWI1248x mode iterator.
18821 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
18822 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
18823 SWI48 mode iterator.
18824 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
18825 iterator.
18826 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
18827 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
18828 SWI12 mode iterator.
18829 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
18830 SWI12 mode iterator.
18831 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
18832 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
18833 SWI24 mode iterator.
18834 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
18835 SWI48 mode iterator.
18836 (mov<mode>_insn_1): New expander.
18837 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
18838 using SWI48x mode iterator.
18839
18840 (*movoi_internal_avx): Rename from *movoi_internal.
18841 (*movti_internal_rex64): Rename from *movti_rex64.
18842 (*movti_internal_sse): Rename from *movti_sse.
18843 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
18844 (*movdi_internal): Rename from *movdi_2.
18845 (*movsi_internal): Rename from *movsi_1.
18846 (*movhi_internal): Rename from *movhi_1.
18847 (*movqi_internal): Rename from *movqi_1.
18848
18849 (insv): Update the call to gen_movsi_insv_1 for rename.
18850 * config/i386/i386.c (promote_duplicated_reg): Ditto.
18851
18852 2010-06-22 Jan Hubicka <jh@suse.cz>
18853
18854 * passes.c (execute_function_todo): Move call of statistics_fini_pass
18855 to ...
18856 (execute_todo) ... this one.
18857
18858 2010-06-22 Alan Modra <amodra@gmail.com>
18859
18860 PR target/44364
18861 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18862 * caller-save.c (insert_restore, insert_save): Use non-validate
18863 form of adjust_address.
18864
18865 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18866
18867 PR target/39690
18868 * config/pa/pa.c (override_options): Disable
18869 -freorder-blocks-and-partition.
18870
18871 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
18872
18873 PR target/44615
18874 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
18875
18876 * config/i386/i386.md (type): Add sseishft1
18877
18878 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
18879 (ppro_insn_load): Likewise.
18880 (ppro_insn_store): Likewise.
18881 (ppro_insn_both): Likewise.
18882
18883 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
18884 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
18885 for type.
18886 (*vec_extractv2di_1_avx): Likewise.
18887 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
18888 type. Remove atom_unit.
18889 (*vec_extractv2di_1_sse2): Likewise.
18890
18891 2010-06-21 DJ Delorie <dj@redhat.com>
18892
18893 * diagnostic.h (diagnostic_classification_change_t): New.
18894 (diagnostic_context): Add history and push/pop list.
18895 (diagnostic_push_diagnostics): Declare.
18896 (diagnostic_pop_diagnostics): Declare.
18897 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
18898 from pragmas in a history chain instead of the global table.
18899 (diagnostic_push_diagnostics): New.
18900 (diagnostic_pop_diagnostics): New.
18901 (diagnostic_report_diagnostic): Scan history chain to find state
18902 of diagnostics as of the diagnostic location.
18903 * opts.c (set_option): Pass UNKNOWN_LOCATION to
18904 diagnostic_classify_diagnostic.
18905 (enable_warning_as_error): Likewise.
18906 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
18907 use in the history chain.
18908 * doc/extend.texi: Document pragma GCC diagnostic changes.
18909
18910 2010-06-21 Jakub Jelinek <jakub@redhat.com>
18911
18912 * dwarf2out.c (add_linkage_name): New function. Don't add
18913 anything to DW_TAG_member DIEs.
18914 (add_name_and_src_coords_attributes): Use it.
18915 (gen_variable_die): Call it for C++ static data members if
18916 specification is DW_TAG_member.
18917
18918 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
18919 C++ char16_t and char32_t.
18920
18921 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
18922 * genattrtab.c: Include vecprim.h.
18923 (cached_attrs, cached_attr_count, attrs_seen_once,
18924 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
18925 attrs_cached_after): New variables.
18926 (find_attrs_to_cache): New function.
18927 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
18928 (write_test_expr): Add attrs_cached argument, return it too,
18929 attempt to cache non-const attributes used more than once in
18930 a single case handling.
18931 (write_attr_get): Use find_attrs_to_cache, for caching candidates
18932 emit cached_* variables. Adjust write_attr_set callers.
18933 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
18934 to find attributes that should be cached in this block. Adjust
18935 write_test_expr callers.
18936 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
18937 callers.
18938 (make_automaton_attrs): Adjust write_test_expr caller.
18939
18940 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
18941 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
18942 (make_automaton_attrs): If find_tune_attr returns non-NULL,
18943 write separate internal_dfa_insn_code_* and insn_default_latency_*
18944 functions for each attribute's value and emit init_sched_attrs
18945 function and function pointers.
18946 * genattr.c (const_attrs, reservations): New variables.
18947 (gen_attr): Add const attributes to const_attrs vector.
18948 (check_tune_attr, find_tune_attr): New functions.
18949 (main): Add reservations to reservations vector. If find_tune_attr
18950 returns true, add prototype for init_sched_attrs and make
18951 internal_dfa_insn_code and insn_default_latency function pointers,
18952 otherwise define init_sched_attrs as dummy macro.
18953 * cfgexpand.c: Include insn-attr.h.
18954 (gimple_expand_cfg): Call init_sched_attrs.
18955
18956 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
18957
18958 PR target/44575
18959 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
18960 va_arg from a set of register save slots into a temporary,
18961 if the container is bigger than type size, do the copying
18962 using smaller mode or using memcpy.
18963
18964 PR bootstrap/44426
18965 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
18966 prototype.
18967 (sel_print_to_dot): Remove macro.
18968 (sel_print): Likewise. New prototype.
18969 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
18970 (sel_print): New function.
18971
18972 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18973
18974 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
18975 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
18976
18977 2010-06-21 Nick Clifton <nickc@redhat.com>
18978
18979 * config/rx/rx.h (PTRDIFF_TYPE): Define.
18980 (SMALL_REGISTER_CLASS): Define (to zero).
18981 (PRINT_OPERAND): Delete.
18982 (PRINT_OPERAND_ADDRESS): Delete.
18983 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
18984 (rx_print_operand_address): Delete prototype.
18985 * config/rx/rx.c (rx_print_operand): Make static.
18986 Allow %H and %L to handle CONST_DOUBLEs.
18987 (rx_print_operand_address): Make static.
18988 (rx_gen_move_template): Rename local variable 'template' to
18989 out_template.
18990 (rx_function_arg): Do not pass unknown sized objects in registers.
18991 (TARGET_PRINT_OPERAND): Define.
18992 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18993
18994 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18995
18996 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
18997
18998 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
18999
19000 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
19001 stack-alignment for simple leaf-functions.
19002
19003 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
19004
19005 * doc/install.texi: Document bootstrap-lto.
19006
19007 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
19008
19009 PR debug/44248
19010 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
19011 (input_function): Drop them here, if VTA is disabled.
19012
19013 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
19014
19015 PR target/44546
19016 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
19017 New predicate.
19018 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
19019 ix86_swapped_fp_comparsion_operator instead of
19020 ix86_fp_comparison_operator.
19021
19022 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
19023 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
19024 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
19025 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
19026 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
19027 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
19028
19029 2010-06-20 Joseph Myers <joseph@codesourcery.com>
19030
19031 PR other/32998
19032 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
19033 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
19034 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
19035 (decode_cmdline_option): Update for this return value. Set
19036 orig_option_with_args_text field. Set arg field for unknown
19037 options. Make static.
19038 (decode_cmdline_options_to_array): New.
19039 (prune_options): Update handling of find_opt return value.
19040 * opts.c (read_cmdline_option): Take decoded option. Return void.
19041 (read_cmdline_options): Take decoded options.
19042 (decode_options): Add parameters for decoded options. Use
19043 decode_cmdline_options_to_array. Use decoded options for -O
19044 scan. Use integral_argument for -O parameters. Update call to
19045 read_cmdline_options.
19046 (enable_warning_as_error): Update handling of find_opt return value.
19047 * opts.h: Update comment on unknown options.
19048 (struct cl_decoded_option): Update comments on opt_index and arg.
19049 Add orig_option_with_args_text.
19050 (decode_cmdline_option): Remove.
19051 (decode_cmdline_options_to_array): Declare.
19052 (decode_options): Update prototype.
19053 * toplev.c (save_argv): Remove.
19054 (save_decoded_options, save_decoded_options_count): New.
19055 (read_integral_parameter): Remove.
19056 (print_switch_values): Use decoded options.
19057 (toplev_main): Don't set save_argv. Update call to decode_options.
19058 * toplev.h (read_integral_parameter): Remove.
19059 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
19060
19061 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
19062
19063 PR target/44072
19064 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
19065 immediate.
19066 * constraints.md (Pw, Px): New constraints.
19067 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
19068
19069 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
19070
19071 * config/i386/sse.md (fma4modesuffixf4): Removed.
19072 (ssemodesuffixf2s): Likewise.
19073 (ssemodesuffixf4): Likewise.
19074 (ssemodesuffixf2c): Likewise.
19075 (ssescalarmodesuffix2s): Likewise.
19076 (avxmodesuffixf2c): Likewise.
19077 (ssemodesuffix): New.
19078 (ssescalarmodesuffix): Likewise.
19079 Update patterns with ssemodesuffix and ssescalarmodesuffix.
19080
19081 2010-06-19 Philip Herron <herron.philip@googlemail.com>
19082
19083 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
19084
19085 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
19086
19087 * stor-layout.c (debug_rli): Remove unused local variables.
19088
19089 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
19090
19091 PR rtl-optimization/40900
19092 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
19093 original expression for later reuse.
19094 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
19095 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
19096
19097 2010-06-18 Anatoly Sokolov <aesok@post.ru>
19098
19099 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
19100 double_int_fits_in_uhwi_p): Implement as static inline.
19101 (double_int_xor): New inline function.
19102 (double_int_lrotate, double_int_rrotate, double_int_max,
19103 double_int_umax, double_int_smax, double_int_min, double_int_umin,
19104 double_int_smin): Declare.
19105 (lrotate_double, rrotate_double): Remove declaration.
19106 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
19107 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
19108 (double_int_lrotate, double_int_rrotate, double_int_max,
19109 double_int_umax, double_int_smax, double_int_min, double_int_umin,
19110 double_int_smin): New function.
19111 * fold-const.c (int_const_binop): Clean up, use double_int_*
19112 functions.
19113 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
19114 double_int_* and immed_double_int_const functions.
19115
19116 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
19117
19118 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
19119 * function.c (types_used_by_cur_var_decl): Likewise.
19120 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
19121
19122 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
19123
19124 * tree.h (record_layout_info): Change type of pending_statics field
19125 to a VEC.
19126 * stor-layout.c (start_record_layout): Store NULL into
19127 pending_statics.
19128 (debug_rli): Call debug_vec_tree instead of debug_tree.
19129 (place_field): Likewise.
19130 (finish_record_layout): Likewise.
19131
19132 2010-06-18 Alan Modra <amodra@gmail.com>
19133
19134 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
19135
19136 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19137
19138 PR target/43740
19139 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
19140 for SET source operand from SET destination operand.
19141
19142 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
19143
19144 PR rtl-optimization/39871
19145 * reload1.c (init_eliminable_invariants): For flag_pic, disable
19146 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
19147 (function_invariant_p): Rule out a plus of frame or arg pointer with
19148 a SYMBOL_REF.
19149 * ira.c (find_reg_equiv_invariant_const): Likewise.
19150
19151 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
19152
19153 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
19154 print_operand_address and puts to output the operand for CONST.
19155
19156 2010-06-17 Jakub Jelinek <jakub@redhat.com>
19157
19158 PR debug/44572
19159 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
19160 hook.
19161
19162 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
19163
19164 * v850-protos.h (print_operand): Delete.
19165 (print_operand_address): Delete.
19166 * v850.h (PRINT_OPERAND): Delete.
19167 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19168 (PRINT_OPERAND_ADDRESS): Delete.
19169 * v850.c (print_operand_address): Rename to...
19170 (v850_print_operand_address): ...this. Make static. Call
19171 v850_print_operand.
19172 (print_operand): Rename to...
19173 (v850_print_operand): ...this. Make static. Call
19174 v850_print_operand_address.
19175 (v850_print_operand_punct_valid_p): New function.
19176 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19177 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19178
19179 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
19180
19181 * config/sh/sh-protos.h (print_operand): Delete.
19182 (print_operand_address): Delete.
19183 * config/sh/sh.h (PRINT_OPERAND): Delete.
19184 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19185 (PRINT_OPERAND_ADDRESS): Delete.
19186 * config/sh/sh.c (sh_print_operand_address): Make static.
19187 (sh_print_operand): Make static. Call sh_print_operand_address
19188 and sh_print_operand.
19189 (sh_print_operand_punct_valid_p): New function.
19190 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19191 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19192
19193 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
19194
19195 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
19196 (mcore_print_operand_address): Delete.
19197 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
19198 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19199 (PRINT_OPERAND_ADDRESS): Delete.
19200 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
19201 (mcore_print_operand): Make static.
19202 (mcore_print_operand_punct_valid_p): New function.
19203 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
19204 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19205
19206 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
19207
19208 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
19209 (print_operand_address): Delete.
19210 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
19211 (PRINT_OPERAND_ADDRESS): Delete.
19212 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
19213 static.
19214 (m68hc11_print_operand): Make static.
19215 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19216
19217 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
19218
19219 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
19220 (m32r_print_operand_address): Delete.
19221 * config/m32r/m32r.h (m32r_punct_chars): Delete.
19222 (PRINT_OPERAND): Delete.
19223 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19224 (PRINT_OPERAND_ADDRESS): Delete.
19225 * config/m32r/m32r.c (m32r_punct_chars): Make static.
19226 (m32r_print_operand_address): Make static.
19227 (m32r_print_operand): Make static.
19228 (m32r_print_operand_punct_valid_p): New function.
19229 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19230 (TARGET_PRINT_OPERAND_ADDRESS): Define.
19231
19232 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
19233
19234 * config/iq2000/iq2000-protos.h (print_operand): Delete.
19235 (print_operand_address): Delete.
19236 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
19237 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19238 (PRINT_OPERAND_ADDRESS): Delete.
19239 (iq2000_print_operand_punct): Delete.
19240 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
19241 (iq2000_print_operand_address): Make static.
19242 (iq2000_print_operand): Make static.
19243 (iq2000_print_operand_punct_valid_p): New function.
19244 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19245 (TARGET_PRINT_OPERAND_ADDRESS): Define.
19246
19247 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
19248
19249 * config/frv/frv-protos.h (frv_print_operand): Delete.
19250 (frv_print_operand_address): Delete.
19251 * config/frv/frv.h (PRINT_OPERAND): Delete.
19252 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19253 (PRINT_OPERAND_ADDRESS): Delete.
19254 * config/frv/frv.c (frv_print_operand_address): Make static.
19255 (frv_print_operand): Make static.
19256 (frv_print_operand_punct_valid_p): New function.
19257 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19258 (TARGET_PRINT_OPERAND_ADDRESS): Define.
19259
19260 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
19261
19262 * tree.h (vec_member): Declare.
19263 * tree.c (vec_member): Define.
19264
19265 2010-06-17 Richard Guenther <rguenther@suse.de>
19266
19267 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
19268 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
19269
19270 2010-06-17 Richard Guenther <rguenther@suse.de>
19271
19272 * tree-inline.c (declare_return_variable): Remove bogus code.
19273
19274 2010-06-17 Richard Guenther <rguenther@suse.de>
19275
19276 * gimplify.c (gimplify_bind_expr): Always promote complex
19277 and vector variables to registers if possible.
19278
19279 2010-06-17 Richard Guenther <rguenther@suse.de>
19280
19281 * expr.c (get_inner_reference): Use double_int for bit_offset
19282 calculation.
19283
19284 2010-06-16 DJ Delorie <dj@redhat.com>
19285
19286 * common.opt (-fstrict-volatile-bitfields): new.
19287 * doc/invoke.texi: Document it.
19288 * fold-const.c (optimize_bit_field_compare): For volatile
19289 bitfields, use the field's type to determine the mode, not the
19290 field's size.
19291 * expr.c (expand_assignment): Likewise.
19292 (get_inner_reference): Likewise.
19293 (expand_expr_real_1): Likewise.
19294 * expmed.c (store_fixed_bit_field): Likewise.
19295 (extract_bit_field_1): Likewise.
19296 (extract_fixed_bit_field): Likewise.
19297
19298 2010-06-16 Richard Guenther <rguenther@suse.de>
19299
19300 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
19301
19302 2010-06-16 Douglas B Rupp <rupp@gnat.com>
19303
19304 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
19305 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
19306 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
19307 * debug.c: Likewise.
19308 * sdbout.c: Likewise.
19309 * vmsdbgout.c: Likewise.
19310 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
19311 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
19312 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
19313 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
19314 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
19315 * dwarf2out.c (dw_fde_struct): New fields
19316 dw_fde_vms_{end,begin}_prologue.
19317 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
19318 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
19319 (dwarf2out_vms_end_prologue): New function.
19320 (dwarf2out_vms_begin_epilogue): New function.
19321 (dw_val_struct): New value dw_val_class_vms_delta.
19322 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
19323 begin_epilogue for VMS.
19324 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
19325 new static functions.
19326 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
19327 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
19328 static functions.
19329 (print_die): New case dw_val_class_vms_delta.
19330 (attr_checksum): Likewise.
19331 (same_dw_val_p: Likewise.
19332 (size_of_die): Likewise.
19333 (value_format): Likewise.
19334 (output_die): Likewise.
19335 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
19336 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
19337 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
19338 dwarf2out_cfi_begin_epilogue
19339 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
19340
19341 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
19342
19343 * config/cris/cris-protos.h (cris_print_operand): Delete.
19344 (cris_print_operand_address): Delete.
19345 * config/cris/cris.h (PRINT_OPERAND): Delete.
19346 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19347 (PRINT_OPERAND_ADDRESS): Delete.
19348 * config/cris/cris.c (cris_print_operand_address): Make static.
19349 (cris_print_operand): Make static.
19350 (cris_print_operand_punct_valid_p): New function.
19351 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19352 (TARGET_PRINT_OPERAND_ADDRESS): Define.
19353
19354 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
19355
19356 * config/arm/arm-protos.h (arm_print_operand): Delete.
19357 (arm_print_operand_address): Delete.
19358 * config/arm/arm.h (PRINT_OPERAND): Delete.
19359 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19360 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
19361 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
19362 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
19363 (arm_print_operand): Make static.
19364 (arm_print_operand_punct_valid_p): New function.
19365 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19366 (TARGET_PRINT_OPERAND_ADDRESS): Define.
19367
19368 2010-06-16 Nick Clifton <nickc@redhat.com>
19369
19370 * config/rx/constraints.md (NEGint4): New constraint.
19371 * config/rx/rx.md (attr cc): Add set_zsc.
19372 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
19373 initialised.
19374 (cmpsf): Likewise.
19375 (call_internal): Clobber the cc0 register.
19376 (call_value_internal): Likewise.
19377 (cstoresi4): Likewise.
19378 (movsieq): Likewise.
19379 (movsine): Likewise.
19380 (addsi3): Add alternative to handle small negative constants.
19381 (sunsi3): Likewise.
19382 (addsi3): Do not set the O bit in the cc0 register.
19383 (adddi3): Likewise.
19384 (subsi3): Likewise.
19385 (subdi3): Likewise.
19386 (andsi3): Reorder alternatives to prefer shorter forms.
19387 (mulsi3): Likewise.
19388 (iorsi3): Likewise.
19389 (negsi2): Note that the cc0 flags are set.
19390 (rotlsi3): Note that only the Z and S bits are set in cc0.
19391 (lshrsi3): Likewise.
19392 (ashlsi3): Likewise.
19393 (subsf3): Use %Q for the MEM operand.
19394 (fix_truncsfsi2): Likewise.
19395 (floatsisf2): Likewise.
19396 (bitset): Remove early clobber from destination.
19397 (bitset_in_memory): Likewise.
19398 (lrintsf2): Clobber the cc0 register.
19399 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
19400 (rx_print_operand): Handle %N.
19401
19402 2010-06-16 Jan Hubicka <jh@suse.cz>
19403
19404 * df-core.c (df_compact_blocks): Free problem_temps vector.
19405
19406 2010-06-16 Martin Jambor <mjambor@suse.cz>
19407
19408 PR tree-optimization/43905
19409 * tree-sra.c: Include tree-inline.h.
19410 (create_abstract_origin): Removed.
19411 (modify_function): Version the call graph node instead of creating
19412 abstract origins and dealing with same_body aliases.
19413 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
19414 function is versionable.
19415 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
19416
19417 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
19418
19419 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
19420 (CHOOSE_DYNAMIC_LINKER): Update.
19421
19422 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
19423
19424 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
19425 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
19426 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
19427 *prefetch_3dnow_rex.
19428
19429 2010-06-15 Anatoly Sokolov <aesok@post.ru>
19430
19431 * target.h (struct asm_out):Add declare_constant_name field.
19432 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19433 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
19434 * output.h (default_asm_declare_constant_name): Declare.
19435 (assemble_label): Update prototype.
19436 * varasm.c (assemble_constant_contents): Use
19437 targetm.asm_out.declare_constant_name target hook.
19438 (assemble_label): Add 'file' argument.
19439 (default_asm_declare_constant_name): New function.
19440 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
19441 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
19442 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
19443
19444 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
19445 * config/darwin.c (darwin_asm_declare_constant_name): New function.
19446 (machopic_output_indirection): Update assemble_label argument list.
19447 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
19448 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19449
19450 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
19451
19452 PR middle-end/44391
19453 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19454 size_one_node for pointer types. Do not call gmp_cst_to_tree.
19455
19456 2010-06-15 Richard Guenther <rguenther@suse.de>
19457
19458 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
19459
19460 2010-06-15 Paul Brook <paul@codesourcery.com>
19461
19462 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
19463 hard-float ABI.
19464
19465 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
19466
19467 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
19468 don't get a vector type for output.
19469
19470 2010-06-15 Jakub Jelinek <jakub@redhat.com>
19471
19472 PR fortran/44536
19473 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
19474 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
19475 (LANG_HOOKS_DECLS): Add it.
19476 * gimplify.c (omp_notice_variable): Call
19477 lang_hooks.decls.omp_report_decl.
19478
19479 2010-06-15 Martin Jambor <mjambor@suse.cz>
19480
19481 PR lto/44464
19482 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
19483 on the newly dead SSA name.
19484
19485 2010-06-15 Alan Modra <amodra@gmail.com>
19486
19487 * doc/invoke.texi: Add mcmodel to powerpc options.
19488 * configure.ac: Add HAVE_LD_LARGE_TOC test.
19489 * configure: Regenerate.
19490 * config.in: Regenerate.
19491 * config/rs6000/linux64.opt (mcmodel): New.
19492 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
19493 (TARGET_CMODEL, SET_CMODEL): Define.
19494 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
19495 select CMODEL_MEDIUM default.
19496 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
19497 (TARGET_CMODEL): Define default.
19498 * config/rs6000/rs6000.c (cmodel): New variable.
19499 (rs6000_explicit_options): Add cmodel field.
19500 (rs6000_handle_option): Handle -mcmodel.
19501 (create_TOC_reference): Add largetoc_reg param. Generate high,
19502 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
19503 (rs6000_delegitimize_address): Recognise new toc reference rtl
19504 and minimal-toc rtl.
19505 (rs6000_legitimize_reload_address): Handle new toc references.
19506 (print_operand_address): Handle legitimate_constant_pool_address_p
19507 match before lo_sum.
19508 (rs6000_eliminate_indexed_memrefs): Tidy.
19509 (rs6000_emit_move): Tweak threshold for inlining constants.
19510 Keep rs6000_emit_allocate_stack large stack frame offsets
19511 loaded into r0 inline.
19512 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
19513 (tocrel_base, tocrel_offset): New variables.
19514 (toc_relative_expr_p): Set them here.
19515 (print_operand_address): Skip over any offset on constant pool address.
19516 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
19517 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
19518 (offsettable_ok_by_alignment): New function.
19519 (rs6000_emit_move): Address suitably aligned local symbol_refs
19520 relative to the toc pointer for -mcmodel=medium.
19521 (legitimate_constant_pool_address_p): Make param const_rtx. Add
19522 strict param. Allow lo_sum version of addressing. Verify reg
19523 used for -mminimal-toc and -mcmodel != small. Update all callers.
19524 * config/rs6000/constraints.md: Update for above change.
19525 * config/rs6000/predicates.md: Likewise.
19526 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
19527 code.
19528 (tls_gd): Split for -mcmodel=medium/large.
19529 (tls_gd_high, tls_gd_low): New.
19530 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
19531 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
19532 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
19533 (largetoc_high, largetoc_low): New.
19534 (cmptf_internal2): Add clobber.
19535 * config/rs6000/rs6000-protos.h: Update.
19536
19537 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
19538
19539 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
19540 true if no prefetch is going to be generated for a given group.
19541 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
19542 estimate the prefetch_count.
19543 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
19544 prefetch count by considering the unroll_factor and prefetch_mod
19545 for is_loop_prefetching_profitable.
19546
19547 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
19548
19549 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
19550 anything if the argument is not a MEM.
19551
19552 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
19553
19554 PR debug/43650
19555 PR debug/44181
19556 PR debug/44247
19557 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
19558 debug stmts.
19559 (canonicalize_loop_ivs): Likewise.
19560
19561 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
19562
19563 PR debug/43656
19564 * haifa-sched.c (setup_insn_reg_pressure_info,
19565 update_register_pressure): Reject debug insns.
19566 (ready_sort): Don't setup reg pressure for debug insns.
19567 (schedule_insn): Don't update reg pressure for debug insns.
19568
19569 2010-06-14 Richard Guenther <rguenther@suse.de>
19570
19571 * lto-streamer.c (cached_bp): Remove.
19572 (bitpack_delete): Likewise.
19573 (bitpack_create): Likewise.
19574 (bp_get_next_word): Likewise.
19575 (bp_pack_value, bp_unpack_value): Move ...
19576 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
19577 Re-implement.
19578 (struct bitpack_d): Likewise.
19579 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
19580 New inline functions.
19581 * lto-streamer-out.c (lto_output_bitpack): Remove.
19582 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
19583 (pack_value_fields): Adjust.
19584 (lto_write_tree): Likewise.
19585 (output_gimple_stmt): Likewise.
19586 (output_function): Likewise.
19587 * lto-streamer-in.c (input_gimple_stmt): Adjust.
19588 (input_function): Likewise.
19589 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
19590 (lto_input_bitpack): Remove.
19591 (lto_materialize_tree): Adjust.
19592 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
19593 * lto-cgraph.c (lto_output_edge): Adjust.
19594 (lto_output_node): Likewise.
19595 (lto_output_varpool_node): Likewise.
19596 (lto_output_ref): Likewise.
19597 (input_node): Likewise.
19598 (input_varpool_node): Likewise.
19599 (input_ref): Likewise.
19600 (input_edge): Likewise.
19601 (output_node_opt_summary): Likewise.
19602 (input_node_opt_summary): Likewise.
19603 * ipa-pure-const.c (pure_const_write_summary): Likewise.
19604 (pure_const_read_summary): Likewise.
19605 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
19606 (ipa_read_indirect_edge_info): Likewise.
19607 (ipa_write_node_info): Likewise.
19608 (ipa_read_node_info): Likewise.
19609
19610 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
19611
19612 PR target/44534
19613 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
19614 (vec_extract_lo_v16hi): Likewise.
19615 (vec_extract_lo_v32qi): Likewise.
19616
19617 2010-06-14 Jakub Jelinek <jakub@redhat.com>
19618
19619 PR bootstrap/44426
19620 * tree.h (build_call_expr): Don't define as vararg macro, instead
19621 add a prototype.
19622 * builtins.c (build_call_nofold): Remove.
19623 (expand_builtin_int_roundingfn, expand_builtin_pow,
19624 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
19625 expand_builtin_memset_args, expand_builtin_strcmp,
19626 expand_builtin_strncmp, expand_builtin_memory_chk): Use
19627 build_call_nofold_loc instead of build_call_nofold.
19628 (build_call_expr): New function.
19629
19630 PR tree-optimization/44508
19631 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
19632 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
19633 don't eliminate trivially dead stmts.
19634 * tree-vrp.c (vrp_finalize): Pass false as last argument
19635 to substitute_and_fold.
19636 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
19637 to substitute_and_fold.
19638 * tree-ssa-ccp.c (ccp_finalize): Likewise.
19639
19640 PR bootstrap/44509
19641 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
19642
19643 2010-06-14 Ira Rosen <irar@il.ibm.com>
19644
19645 PR tree-optimization/44507
19646 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
19647 to build initial vector for BIT_AND_EXPR.
19648 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
19649
19650 2010-06-14 Jakub Jelinek <jakub@redhat.com>
19651
19652 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
19653 adjust z10prop set_attr.
19654
19655 2010-06-13 Jan Hubicka <jh@suse.cz>
19656
19657 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
19658 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
19659 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
19660 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
19661 datastructure checks into checking asserts.
19662 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
19663 * tree-ssa-sccvn.c (VN_INFO): Likewise.
19664 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
19665 df_ref_create_structure): Likewise.
19666 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
19667 pool_free): Use gcc_checking_assert.
19668 * alias.c (get_alias_set): Likewise.
19669 * var-tracking.c (variable_htab_free, shared_hash_copy,
19670 canonicalize_values_mark, variable_merge_over_cur): Likewise.
19671 * lto-streamer.c (bp_unpack_value): Likewise.
19672
19673 2010-06-13 Richard Guenther <rguenther@suse.de>
19674
19675 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
19676 Do not stream but initialize TYPE_CANONICAL to NULL.
19677 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
19678 * gimple.c (gimple_types_compatible_p): Disregard
19679 TYPE_STRUCTURAL_EQUALITY_P.
19680 (gimple_register_type): Use TYPE_CANONICAL as cache.
19681 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
19682 before registering common types.
19683 * config/i386/i386.c (ix86_function_arg_boundary): Do not
19684 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
19685 * tree.h (TYPE_CANONICAL): Clarify documentation.
19686
19687 2010-06-13 Anatoly Sokolov <aesok@post.ru>
19688
19689 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19690 LIBCALL_VALUE): Remove macros.
19691 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
19692 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19693 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19694 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
19695 (ia64_function_value): Make static. Handle receiving the function
19696 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
19697
19698 2010-06-12 Jan Hubicka <jh@suse.cz>
19699
19700 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
19701 at correct place.
19702
19703 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
19704
19705 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
19706
19707 2010-06-12 Jan Hubicka <jh@suse.cz>
19708
19709 * df-core.c (df_clear_bb_info): New function.
19710 (df_set_blocks): bb_info is always allocated.
19711 (df_get_bb_info): Use block_info_elt_size.
19712 (df_set_bb_info): Likewise.
19713 (df_compact_blocks): Update for new block_info.
19714 (grow_bb_info): New function.
19715 * df-problems.c (df_grow_bb_info): Move to df-core.c
19716 (df_rd_set_bb_info): Remove.
19717 (df_rd_free_bb_info): Do not free block pool.
19718 (df_rd_alloc): Do not create pool, use check for
19719 obstack presence instead of NULL pointer for new blocks.
19720 (df_rd_free): DO not free alloc pool; clear block_info.
19721 (problem_RD): Add size of block info structure.
19722 (df_lr_set_bb_info): Remove.
19723 (df_lr_free_bb_info): Do not free block pool.
19724 (df_lr_alloc): Do not create pool, use check for
19725 obstack presence instead of NULL pointer for new blocks.
19726 (df_lr_free): DO not free alloc pool; clear block_info.
19727 (problem_LR): Add size of block info structure.
19728 (df_live_set_bb_info): Remove.
19729 (df_live_free_bb_info): Do not free block pool.
19730 (df_live_alloc): Do not create pool, use check for
19731 obstack presence instead of NULL pointer for new blocks.
19732 (df_live_free): DO not free alloc pool; clear block_info.
19733 (problem_LIVE): Add size of block info structure.
19734 (problem_CHAIN): Add size of block info structure.
19735 (df_byte_lr_set_bb_info): Remove.
19736 (df_byte_lr_free_bb_info): Do not free block pool.
19737 (df_byte_lr_alloc): Do not create pool, use check for
19738 obstack presence instead of NULL pointer for new blocks.
19739 (df_byte_lr_free): DO not free alloc pool; clear block_info.
19740 (problem_BYTE_LR): Add size of block info structure.
19741 (problem_NOTE): Add size of block info structure.
19742 (df_byte_MD_set_bb_info): Remove.
19743 (df_byte_MD_free_bb_info): Do not free block pool.
19744 (df_byte_MD_alloc): Do not create pool, use check for
19745 obstack presence instead of NULL pointer for new blocks.
19746 (df_byte_MD_free): DO not free alloc pool; clear block_info.
19747 (problem_BD): Add size of block info structure.
19748 * df-scan.c (df_scan_free_internal): Free block pool.
19749 (df_scan_set_bb_info): Remove.
19750 (df_scan_free_bb_info): Check for artificial_defs instead
19751 of bb_info being non-NULL.
19752 (df_scan_alloc): DO not create df_scan_block pool.
19753 (problem_SCAN): Set size of block info.
19754 (df_bb_refs_record): Do not allocate bb_info.
19755 * df.h (df_problem): Add block_info_elt_size.
19756 (struct dataflow): Change block_info to void *.
19757 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
19758 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
19759 in-line structures.
19760
19761 2010-06-12 Jan Hubicka <jh@suse.cz>
19762
19763 PR tree-optimize/44485
19764 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
19765 containing use of return value of noreturn function.
19766
19767 2010-06-12 Anatoly Sokolov <aesok@post.ru>
19768
19769 * targhooks.c (default_function_value): Don't use
19770 FUNCTION_OUTGOING_VALUE.
19771 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
19772 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
19773
19774 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
19775
19776 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
19777 Add crtfastmath.o to extra_parts.
19778 * config/mips/crtfastmath.c: New.
19779 * config/mips/linux.h (ENDFILE_SPEC): New.
19780
19781 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
19782
19783 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
19784 old_type in parameter.
19785 (gcc_type_for_value): Update call to gcc_type_for_interval.
19786 (compute_type_for_level_1): Renamed compute_type_for_level.
19787 Update call to gcc_type_for_interval.
19788
19789 2010-06-11 Joseph Myers <joseph@codesourcery.com>
19790
19791 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
19792 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
19793
19794 2010-06-11 Joseph Myers <joseph@codesourcery.com>
19795
19796 * opts-common.c: Include options.h.
19797 (integral_argument): Move from opts.c.
19798 (decode_cmdline_option): New. Based on read_cmdline_option.
19799 * opts.c (integral_argument): Move to opts-common.c.
19800 (read_cmdline_option): Move most contents to
19801 decode_cmdline_option. Use %qs in diagnostics.
19802 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
19803 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
19804 decode_cmdline_option): New.
19805
19806 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19807
19808 PR target/44481
19809 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
19810 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
19811 (partiysi2_cmp): Ditto.
19812 (*partiyhi2_cmp): Ditto.
19813 (*parityqi2_cmp): Remove.
19814
19815 2010-06-11 Jan Hubicka <jh@suse.cz>
19816
19817 * bitmap.h (bmp_iter_next_bit): New.
19818 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
19819
19820 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
19821 Eric Botcazou <ebotcazou@adacore.com>
19822
19823 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
19824 computed cost.
19825
19826 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19827
19828 * config/i386/i386.md (unspec): New define_c_enum.
19829 (unspecv): Ditto.
19830
19831 2010-06-10 Jakub Jelinek <jakub@redhat.com>
19832
19833 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
19834
19835 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
19836
19837 PR middle-end/44483
19838 * tree-if-conv.c (bb_predicate_s): New struct.
19839 (bb_predicate_p): New.
19840 (bb_has_predicate): New.
19841 (bb_predicate): New.
19842 (set_bb_predicate): New.
19843 (bb_predicate_gimplified_stmts): New.
19844 (set_bb_predicate_gimplified_stmts): New.
19845 (add_bb_predicate_gimplified_stmts): New.
19846 (init_bb_predicate): New.
19847 (free_bb_predicate): New.
19848 (is_predicated): Use bb_predicate.
19849 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
19850 (predicate_bbs): Same. Gimplify the condition of the basic blocks
19851 before processing their successors.
19852 (clean_predicate_lists): Removed.
19853 (find_phi_replacement_condition): Use bb_predicate.
19854 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
19855 computations.
19856 (insert_gimplified_predicates): New.
19857 (combine_blocks): Call insert_gimplified_predicates.
19858 (tree_if_conversion): Call free_bb_predicate instead of
19859 clean_predicate_lists.
19860
19861 2010-10-11 Paul Brook <paul@codesourcery.com>
19862
19863 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
19864 * config/arm/arm.c (all_architectures): Change v7e-m default to
19865 cortexm4.
19866 * config/arm/arm-cores.def: Add cortex-m4.
19867 * config/arm/arm-tune.md: Regenerate.
19868
19869 2010-06-11 Jan Hubicka <jh@suse.cz>
19870
19871 * ipa-pure-const.c (special_builtlin_state): New function.
19872 (check_call): Use it instead of special casign BUILT_IN_RETURN.
19873 (propagate_pure_const): Use it.
19874
19875 2010-06-11 Jan Hubicka <jh@suse.cz>
19876
19877 * df-problems.c (df_live_scratch): Convert to bitmap_head.
19878 (df_live_alloc): Initialize df_live_scratch when initializing
19879 problem_data.
19880 (df_live_transfer_function): Update uses of df_live_scratch.
19881 (df_live_free): Free problem_data; clear df_live_scratch before
19882 releasing the obstack.
19883 (df_md_free): Free problem data.
19884
19885 2010-06-11 Jan Hubicka <jh@suse.cz>
19886
19887 * doc/invoke.texi (Wsuggest-attribute): Document.
19888 (Wmissing-noreturn): Remove.
19889 * ipa-pure-const.c (warn_function_noreturn): New function.
19890 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
19891 warn_missing_noreturn.
19892 * common.opt (Wsuggest-attribute=noreturn): New.
19893 * tree-flow.h (warn_function_noreturn): Declare.
19894 * tree-cfg.c (execute_warn_function_noreturn): Use
19895 warn_function_noreturn.
19896 (gate_warn_function_noreturn): New.
19897 (pass_warn_function_noreturn): Update.
19898
19899 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19900
19901 * c-typeck.c (handle_warn_cast_qual): Add loc
19902 parameter. Improve warning message.
19903 (build_c_cast): Pass location to handle_warn_cast_qual.
19904
19905 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19906
19907 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
19908 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
19909 insn mnemonic.
19910 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
19911
19912 2010-06-10 Dodji Seketeli <dodji@redhat.com>
19913
19914 Fix bootstap on mips
19915 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
19916 be naming typedefs.
19917
19918 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
19919
19920 * system.h (helper_const_non_const_cast): New inline for
19921 gcc version <= 4.0.
19922 (CONST_CAST2): For gcc version <= 4.0 use
19923 new helper to do const/non-const casting.
19924
19925 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19926
19927 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
19928 * Makefile.in (OBJS-common): Include insn-enums.o.
19929 (insn-enums.o): New rule.
19930 (simple_generated_c): Add insn-enums.c.
19931 (build/genenums.o): New rule.
19932 (genprogmd): Add "enums".
19933 * genconstants.c (print_enum_type): Declare a C string array
19934 for each enum.
19935 * genenums.c: New file.
19936 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
19937 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
19938 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
19939
19940 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19941
19942 * doc/md.texi (define_enum_attr): Document.
19943 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
19944 * read-md.h (lookup_enum_type): Declare.
19945 * read-md.c (lookup_enum_type): New function.
19946 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
19947 * genattrtab.c (attr_desc): Add an enum_name field.
19948 (evaluate_eq_attr): Take the associated attribute as argument.
19949 Get the enum prefix from the enum_name field, if defined.
19950 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
19951 (simplify_test_exp): Pass attr to evaluate_eq_attr.
19952 (add_attr_value): New function, split out from...
19953 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
19954 (write_test_expr): Pass attr to evaluate_eq_attr.
19955 (write_attr_get): Use the enum_name as the enum tag, if defined.
19956 (write_attr_valueq): Use the enum_name as a prefix, if defined.
19957 (find_attr): Initialize enum_name.
19958 (main): Handle DEFINE_ENUM_ATTR.
19959 * gensupport.c (process_rtx): Likewise.
19960 * config/mips/mips.h (mips_tune_attr): Delete.
19961 * config/mips/mips.md (cpu): Use define_attr_enum.
19962
19963 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19964
19965 * doc/md.texi (define_c_enum, define_enum): Document.
19966 * read-md.h (md_constant): Add a parent_enum field.
19967 (enum_value, enum_type): New structures.
19968 (upcase_string, traverse_enum_types): Declare.
19969 * read-md.c (enum_types): New variable.
19970 (upcase_string, add_constant): New functions.
19971 (handle_constants): Don't create the hash table here.
19972 Use add_constant.
19973 (traverse_md_constants): Don't check for a null md_constants.
19974 (decimal_string, handle_enum, traverse_enum_types): New functions.
19975 (read_md_files): Initialize md_constants and md_enums.
19976 * genconstants.c (print_md_constant): Ignore info argument.
19977 Only print constants that belong to no enum.
19978 (print_enum_type): New function.
19979 (main): Don't pass stdout to print_md_constant. Call print_enum_type
19980 for each defined enum type.
19981 * config/mips/mips.md (processor): New define_enum.
19982 (unspec): New define_c_enum.
19983 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
19984 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
19985 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
19986 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
19987 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
19988 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
19989 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
19990 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
19991 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
19992 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
19993 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
19994 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
19995 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
19996 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
19997 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
19998 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
19999 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
20000 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
20001 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
20002 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
20003 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
20004 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
20005 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
20006 (UNSPEC_RDDSP): Move to mips-dsp.md.
20007 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
20008 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
20009 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
20010 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
20011 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
20012 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
20013 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
20014 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
20015 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
20016 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
20017 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
20018 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
20019 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
20020 Moved to mips-dspr2.md.
20021 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
20022 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
20023 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
20024 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
20025 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
20026 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
20027 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
20028 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
20029 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
20030 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
20031 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
20032 UNSPEC_LOONGSON_PSADBH)
20033 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
20034 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
20035 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
20036 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
20037 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
20038 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
20039 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
20040 (cpu): Update comment.
20041 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
20042 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
20043 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
20044 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
20045 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
20046 UNSPEC_LOONGSON_PCMPEQ)
20047 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
20048 UNSPEC_LOONGSON_PINSR_0)
20049 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
20050 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
20051 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
20052 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
20053 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
20054 UNSPEC_LOONGSON_PSADBH)
20055 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
20056 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
20057 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
20058 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
20059 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
20060 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
20061 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
20062 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
20063 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
20064 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
20065 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
20066 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
20067 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
20068 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
20069 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
20070 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
20071 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
20072 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
20073 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
20074 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
20075 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
20076 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
20077 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
20078 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
20079 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
20080 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
20081 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
20082 (UNSPEC_RDDSP): Moved from mips.md.
20083 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
20084 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
20085 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
20086 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
20087 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
20088 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
20089 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
20090 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
20091 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
20092 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
20093 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
20094 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
20095 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
20096 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
20097 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
20098 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
20099 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
20100 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
20101 (UNSPEC_SCC): Moved from mips.md.
20102 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
20103 "processor_type" to "processor".
20104 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
20105 * config/mips/mips.h (processor_type): Delete.
20106 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
20107 "processor_type" to "processor".
20108
20109 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
20110
20111 * configure.ac (tm_include_list): Add insn-constants.h.
20112 * configure: Regenerate.
20113 * Makefile.in (GTM_H): Move insn-constants.h here from...
20114 (TM_H): ...here.
20115 * mkconfig.sh: Remove special handling for insn-constants.h.
20116
20117 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
20118
20119 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
20120 (BUILD_MD): ...this new variable.
20121 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
20122 that include the old contents of simple_generated_h and
20123 simple_generated_c.
20124 (simple_generated_h, simple_generated_c): Include them. Add
20125 insn-constants.h.
20126 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
20127 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
20128 Remove these dependencies from the main rule and include
20129 insn-conditions.md in the command line only if it appears
20130 in the dependency list.
20131 (insn-constants.h, s-constants): Delete.
20132 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
20133 or gensupport.h.
20134 (build/genmddeps.o): Likewise.
20135 (genprogrtl): New variable that contains everything from genprogmd
20136 except mddeps and constants.
20137 (genprogmd): Redefine in terms of genprogrtl. Make these programs
20138 depend on $(BUILD_MD)
20139 (genprog): New variable. Make these programs depend on
20140 $(BUILD_ERRORS).
20141 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
20142 (main): Use read_md_files instead of init_rtx_reader_args.
20143 * genconstants.c: As for genmddeps.c.
20144 * read-md.h (read_skip_construct): Declare.
20145 * read-md.c (read_skip_construct): New function.
20146 (handle_file): Allow a null handle_directive, skipping the
20147 construct if so.
20148 (parse_include): Update the comment accordingly.
20149
20150 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
20151
20152 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
20153 * genmddeps.c: Include read-md.h.
20154 (main): Call init_rtx_reader_args instead of init_md_reader_args.
20155 * genattr.c (main): Likewise.
20156 * genattrtab.c (main): Likewise.
20157 * genautomata.c (main): Likewise.
20158 * gencodes.c (main): Likewise.
20159 * genconditions.c (main): Likewise.
20160 * genconfig.c (main): Likewise.
20161 * genconstants.c (main): Likewise.
20162 * genemit.c (main): Likewise.
20163 * genextract.c (main): Likewise.
20164 * genflags.c (main): Likewise.
20165 * genopinit.c (main): Likewise.
20166 * genoutput.c (main): Likewise.
20167 * genpeep.c (main): Likewise.
20168 * genrecog.c (main): Likewise.
20169 * genpreds.c (main): Likewise.
20170 * gensupport.h (in_fname): Move to read-md.h.
20171 (init_md_reader_args_cb): Rename to...
20172 (init_rtx_reader_args_cb): ...this and return a bool.
20173 (init_md_reader_args): Rename to...
20174 (init_rtx_reader_args): ...this and return a bool.
20175 (include_callback): Move to read-md.h.
20176 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
20177 (file_name_list, first_dir_md_include): Move to read-md.c
20178 (first_bracket_include): Delete unused variable.
20179 (last_dir_md_include): Move to read-md.c.
20180 (process_include): Delete, moving code to read-md.c:handle_include.
20181 (process_rtx): Don't handle INCLUDE.
20182 (save_string): Delete.
20183 (rtx_handle_directive): New function.
20184 (init_md_reader_args_cb): Rename to...
20185 (init_rtx_reader_args_cb): ...this and return a boolean success value.
20186 Use read_md_args.
20187 (init_md_reader_args): Rename to...
20188 (init_rtx_reader_args): ...this and return a boolean success value.
20189 * rtl.def (INCLUDE): Delete.
20190 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
20191 argument.
20192 * read-rtl.c (read_conditions): Don't gobble ')' here.
20193 (read_mapping): Likewise.
20194 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
20195 Handle top-level non-rtx constructs here rather than in read_rtx_1.
20196 Store the whole queue in *X. Remove call to init_md_reader.
20197 (read_rtx_1): Rename to...
20198 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
20199 Don't handle top-level non-rtx constructs here. Don't handle (nil)
20200 here.
20201 (read_nested_rtx): New function. Handle (nil) here rather than
20202 in read_rtx_code.
20203 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
20204 gobble ')' here.
20205 * read-md.h (directive_handler_t): New type.
20206 (in_fname, include_callback): Moved from read-md.h.
20207 (read_constants, init_md_reader): Delete.
20208 (read_md_files): Declare.
20209 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
20210 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
20211 from gensupport.c.
20212 (read_constants): Rename to...
20213 (handle_constants): ...this. Don't gobble ')' here.
20214 (handle_include, handle_file, handle_toplevel_file)
20215 (parse_include): New functions, mostly taken from gensupport.c.
20216 (init_md_reader): Subsume into...
20217 (read_md_files): ...this new function.
20218
20219 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
20220
20221 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
20222 (unread_char): Decrement read_md_lineno after putting back '\n'.
20223 * read-md.c (fatal_with_file_and_line): Push back any characters
20224 that we decide not to add to the context.
20225 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
20226 fatal_expected_char in cases where '/' ends a line (for example).
20227 (read_name): Don't increment read_md_lineno here.
20228 (read_escape): Likewise.
20229 (read_quoted_string): Likewise.
20230 (read_braced_string): Likewise.
20231
20232 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
20233
20234 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
20235 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
20236 * genconstants.c: Include read-md.h.
20237 * read-rtl.c (md_constants): Move to read-md.c.
20238 (md_name): Move to read-md.h.
20239 (initialize_iterators): Use leading_string_hash instead of def_hash
20240 and leading_string_eq_p instead of def_name_eq_p.
20241 (read_name): Move to read-md.c.
20242 (def_hash, def_name_eq_p): Delete.
20243 (read_constants, traverse_md_constants): Move to read-md.c.
20244 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
20245 * read-md.h: Include hashtab.h.
20246 (md_name): Moved from read-rtl.c.
20247 (md_constant): Moved from read-md.h.
20248 (leading_string_hash, leading_string_eq_p, read_name)
20249 (read_constants, traverse_md_constants): Declare.
20250 * read-md.c (md_constants): Moved from read-rtl.c.
20251 (leading_string_hash, leading_string_eq_p): New functions.
20252 (read_name, read_constants, traverse_md_constants): Moved from
20253 read-rtl.c.
20254
20255 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
20256
20257 * read-rtl.c (md_name): New structure.
20258 (read_name): Take an md_name instead of a buffer pointer.
20259 Use the "string" field instead of strcpy when expanding constants.
20260 (read_constants): Remove the tmp_char argument. Update the calls
20261 to read_name, using two local name buffers instead of the tmp_char
20262 argument. Merge the constant-creation code.
20263 (read_conditions): Remove the tmp_char argument. Update the calls
20264 to read_name, using a local name buffer instead of the tmp_char
20265 argument.
20266 (read_mapping): Replace tmp_char variable with a local name buffer.
20267 Update the calls to read_name.
20268 (read_rtx_1): Likewise. Update the calls to read_constants and
20269 read_conditions.
20270
20271 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
20272
20273 * Makefile.in (build/read-md.o): Depend on errors.h.
20274 * read-md.h (error_with_line): Declare.
20275 * read-md.c: Include errors.h.
20276 (message_with_line_1): New function, extracted from...
20277 (message_with_line): ...here.
20278 (error_with_line): New function.
20279 * genattrtab.c: If a call to message_with_line is followed by
20280 "have_error = 1;", replace both statements with a call to
20281 error_with_line.
20282 * genoutput.c: Likewise.
20283 * genpreds.c: Likewise.
20284 * genrecog.c: If a call to message_with_line is followed by
20285 "error_count++;", replace both statements with a call to
20286 error_with_line.
20287 (errorcount): Delete.
20288 (main): Don't check it.
20289 * gensupport.c: If a call to message_with_line is followed by
20290 "errors = 1;", replace both statements with a call to error_with_line.
20291 (errors): Delete.
20292 (process_define_cond_exec): Check have_error instead of errors.
20293 (init_md_reader_args_cb): Likewise. Don't set errors.
20294
20295 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
20296
20297 * read-md.h (read_md_file): Declare.
20298 (read_char, unread_char): New functions.
20299 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
20300 (read_quoted_string, read_string): Remove FILE * argument.
20301 * read-md.c (read_md_file): New variable.
20302 (read_md_filename, read_md_lineno): Update comments and remove
20303 unnecessary initialization.
20304 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
20305 (read_escape, read_quoted_string, read_braced_string, read_string):
20306 Remove FILE * argument. Update calls accordingly, using read_char
20307 and unread_char instead of getc and ungetc.
20308 * rtl.h (read_rtx): Remove FILE * argument.
20309 * read-rtl.c (iterator_group): Remove FILE * argument from
20310 "find_builtin".
20311 (iterator_traverse_data): Remove "infile" field.
20312 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
20313 (add_mapping, read_name, read_constants, read_conditions)
20314 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
20315 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
20316 Remove file arguments from all calls, using read_char and unread_char
20317 instead of getc and ungetc.
20318 * gensupport.c (process_include): Preserve read_md_file around
20319 the include. Set read_md_file to the handle of the included file.
20320 Update call to read_rtx.
20321 (init_md_reader_args_cb): Set read_md_file to the handle of the file
20322 and remove local FILE *. Update calls to read_rtx.
20323
20324 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
20325
20326 * read-md.h (read_rtx_lineno): Rename to...
20327 (read_md_lineno): ...this.
20328 (read_rtx_filename): Rename to...
20329 (read_md_filename): ...this.
20330 (copy_rtx_ptr_loc): Rename to...
20331 (copy_md_ptr_loc): ...this.
20332 (print_rtx_ptr_loc): Rename to...
20333 (print_md_ptr_loc): ...this.
20334 * read-md.c: Likewise. Update references after renaming.
20335 (string_obstack): Replace RTL with MD in comment.
20336 (set_rtx_ptr_loc): Rename to...
20337 (set_md_ptr_loc): ...this.
20338 (get_rtx_ptr_loc): Rename to...
20339 (get_md_ptr_loc): ...this.
20340 * genconditions.c: Update references after renaming.
20341 * genemit.c: Likewise.
20342 * genoutput.c: Likewise.
20343 * genpreds.c: Likewise.
20344 * gensupport.c: Likewise.
20345 * read-rtl.c: Likewise.
20346
20347 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
20348
20349 * Makefile.in (READ_MD_H): New variable.
20350 (BUILD_RTL): Add build/read-md.o.
20351 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
20352 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
20353 (build/genattrtab.o, build/genconditions.o build/genemit.o)
20354 (build/genextract.o, build/genflags.o, build/genoutput.o)
20355 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
20356 (build/read-md.o): New rule.
20357 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
20358 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
20359 * coretypes.h: ...here.
20360 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
20361 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
20362 * genattr.c: Include read-md.h.
20363 * genattrtab.c: Likewise.
20364 * genconditions.c: Likewise.
20365 * genemit.c: Likewise.
20366 * genextract.c: Likewise.
20367 * genflags.c: Likewise.
20368 * genoutput.c: Likewise.
20369 * genpreds.c: Likewise.
20370 * genrecog.c: Likewise.
20371 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
20372 (join_c_conditions, print_c_condition, read_rtx_filename)
20373 (read_rtx_lineno): Move to read-md.h.
20374 * read-rtl.c: Include read-md.h.
20375 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
20376 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
20377 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
20378 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
20379 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
20380 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
20381 (read_braced_string, read_string): Move to read-md.c.
20382 (read_rtx): Move some initialization to init_md_reader and call
20383 init_md_reader here.
20384 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
20385 Move to read-md.h.
20386 * gensupport.c: Include read-md.h.
20387 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
20388 * read-md.h, read-md.c: New files.
20389
20390 2010-06-10 Anatoly Sokolov <aesok@post.ru>
20391
20392 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20393 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20394 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
20395 * config/moxie/moxie.c (moxie_function_value): Make static.
20396 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
20397 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20398
20399 2010-06-10 Martin Jambor <mjambor@suse.cz>
20400
20401 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
20402 * dbgcnt.def (tree_sra): New counter.
20403 * tree-sra.c: Include dbgcnt.h.
20404 (gate_intra_sra): Check tree_sra debug counter.
20405
20406 2010-06-10 Martin Jambor <mjambor@suse.cz>
20407
20408 PR tree-optimization/44258
20409 * tree-sra.c (build_access_subtree): Return false iff there is a
20410 partial overlap.
20411 (build_access_trees): Likewise.
20412 (analyze_all_variable_accesses): Disqualify candidates if
20413 build_access_trees returns true for them.
20414
20415 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
20416
20417 PR debug/41371
20418 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
20419 tail-recurse into canonical node. Fast-forward over
20420 non-canonical VALUEs.
20421
20422 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
20423
20424 PR boostrap/44470
20425 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
20426 (*addsi_1_zext) <TYPE_LEA>: Likewise.
20427 (add lea splitter): Likewise.
20428 (add_zext lea splitter): Likewise.
20429
20430 2010-06-10 Joseph Myers <joseph@codesourcery.com>
20431
20432 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
20433
20434 2010-06-10 Jan Hubicka <jh@suse.cz>
20435
20436 * df-problems.c (df_live_problem_data): Add live_bitmaps.
20437 (df_live_alloc): Initialize problem data and live_osbtacks.
20438 (df_live_finalize): Remove obstack, problem data; do not
20439 clear all bitmaps.
20440 (df_live_top_dump, df_live_bottom_dump): Do not dump old
20441 data when not allocated.
20442 (df_live_verify_solution_start): Do not allocate problem data.
20443 (df_live_verify_solution_end): Check if out is allocated.
20444 (struct df_md_problem_data): New structure.
20445 (df_md_alloc): Allocate problem data.
20446 (df_md_free): Free problem data; do not clear bitmaps.
20447
20448 2010-06-10 Jan Beulich <jbeulich@novell.com>
20449
20450 PR bootstrap/37304
20451 * configure.ac: Replace $() with ${} when intending to expand
20452 variables rather than invoking commands.
20453 * configure: Re-generate.
20454
20455 2010-06-10 Jan Hubicka <jh@suse.cz>
20456
20457 PR rtl-optimization/44460
20458 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
20459 TYPE_NEEDS_CONSTRUCTING sanity check.
20460
20461 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
20462
20463 * doc/include/fdl.texi: Move to GFDL version 1.3.
20464
20465 * doc/cpp.texi: Move to GFDL version 1.3.
20466 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
20467 * doc/gccint.texi: Move to GFDL version 1.3.
20468 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
20469 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
20470 * doc/invoke.texi: Move to GFDL version 1.3.
20471
20472 2010-06-09 Jan Hubicka <jh@suse.cz>
20473
20474 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
20475 Break out from ...
20476 (propagate) ... here; swap the order.
20477
20478 2010-06-09 Jan Hubicka <jh@suse.cz>
20479
20480 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
20481 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
20482 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
20483 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
20484
20485 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
20486
20487 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
20488 Do not the gather memory reference in the outer loop if the step
20489 is not a constant.
20490
20491 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
20492
20493 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
20494 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
20495 8 to 4. Minor change of the related comments.
20496
20497 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
20498
20499 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
20500 the scev analysis when the variable is not used outside the loop
20501 in a close phi node: call compute_overall_effect_of_inner_loop.
20502
20503 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
20504
20505 * graphite-sese-to-poly.c (single_pred_cond): Renamed
20506 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
20507 (build_sese_conditions_before): Renamed call to single_pred_cond.
20508 (build_sese_conditions_after): Same.
20509
20510 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
20511
20512 * graphite-poly.h: Fix comments and indentation.
20513 * graphite-sese-to-poly.c: Same.
20514 (build_sese_conditions_before): Compute stmt and gbb only when needed.
20515 * tree-chrec.c: Fix comments and indentation.
20516 (tree-ssa-loop-niter.c): Same.
20517
20518 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
20519
20520 PR rtl-optimization/42461
20521 * dce.c (deletable_insn_p): Return true for const or pure calls again.
20522 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
20523
20524 2010-06-09 Jan Hubicka <jh@suse.cz>
20525
20526 * bitmap.c (bitmap_and): Walk array forward.
20527 (bitmap_and_compl_into): Likewise.
20528 (bitmap_xor): Likewise.
20529 (bitmap_xor_into): Likewise.
20530 (bitmap_equal_p): Likewise.
20531 (bitmap_intersect_p): Likewise.
20532 (bitmap_intersect_compl_p): Likewise.
20533 (bitmap_ior_and_into): Likewise.
20534 (bitmap_elt_copy): Likewise.
20535 (bitmap_and_compl): Likewise.
20536 (bitmap_elt_ior): Likewise.
20537
20538 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
20539
20540 * opts-common.c (prune_options): Ensure replacement argv array
20541 is correctly terminated by a NULL entry.
20542
20543 2010-06-09 Jan Hubicka <jh@suse.cz>
20544
20545 * cgraph.h (varpool_first_static_initializer,
20546 varpool_next_static_initializer): Make checking only when
20547 checking enabled.
20548 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
20549 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
20550 gcc_assert to gcc_checking_assert.
20551 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
20552 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
20553 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
20554 op_iter_init_phiuse, op_iter_init_phidef,
20555 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
20556 gcc_checking_assert.
20557 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
20558 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
20559 partition_is_global, live_on_entry, live_on_exit,
20560 live_merge_and_clear): Likewise.
20561 * system.h (gcc_checking_assert): New macro.
20562 * gimple.h (set_bb_seq): Use gcc_checking_assert.
20563
20564 2010-06-09 Jason Merrill <jason@redhat.com>
20565
20566 * Makefile.in (TAGS): Collect tags info from c-family.
20567
20568 2010-06-09 Jan Hubicka <jh@suse.cz>
20569
20570 * gimple.h (gcc_gimple_checking_assert): New macro.
20571 (gimple_set_def_ops, gimple_set_use_ops,
20572 gimple_set_vuse, gimple_set_vdef,
20573 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
20574 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
20575 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
20576 gimple_asm_output_op, gimple_asm_output_op_ptr,
20577 gimple_asm_set_output_op, gimple_asm_clobber_op,
20578 gimple_asm_set_clobber_op, gimple_asm_label_op,
20579 gimple_asm_set_label_op, gimple_try_set_kind,
20580 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
20581 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
20582 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
20583 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
20584 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
20585 gimple_omp_for_set_initial, gimple_omp_for_final,
20586 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
20587 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
20588 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
20589 conditional with ENABLE_GIMPLE_CHECKING.
20590 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
20591
20592 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
20593
20594 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
20595 (get_computation_cost_at): Use it.
20596 (determine_use_iv_cost_condition): Likewise.
20597 (determine_iv_cost): Likewise.
20598
20599 2010-06-09 Richard Guenther <rguenther@suse.de>
20600
20601 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
20602 replace constants.
20603
20604 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
20605
20606 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
20607
20608 2010-06-09 Martin Jambor <mjambor@suse.cz>
20609
20610 PR tree-optimization/44423
20611 * tree-sra.c (dump_access): Dump also grp_assignment_read.
20612 (analyze_access_subtree): Pass negative allow_replacements to children
20613 if the current type is scalar.
20614
20615 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
20616
20617 PR testsuite/42843
20618 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
20619 * doc/plugins.texi (Plugin license check): Update information
20620 on type of plugin_is_GPL_compatible.
20621 * Makefile.in (PLUGINCC): Define as $(COMPILER).
20622 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
20623
20624 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
20625
20626 * config/arm/arm.c (thumb2_reorg): New function.
20627 (arm_reorg): Call it.
20628 * config/arm/thumb2.md (define_peephole2 for flag clobbering
20629 arithmetic operations): Delete.
20630
20631 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
20632
20633 PR target/44067
20634 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
20635 e500v2 target.
20636
20637 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
20638
20639 PR plugins/44459
20640 * gcc-plugin.h: Encapsulate all declarations in extern "C".
20641
20642 2010-06-08 Jan Hubicka <jh@suse.cz>
20643
20644 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
20645 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
20646
20647 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
20648
20649 PR tree-optimization/39874
20650 PR middle-end/28685
20651 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
20652 Declare.
20653 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
20654 same_bool_result_p): New.
20655 (and_var_with_comparison, and_var_with_comparison_1,
20656 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
20657 (or_var_with_comparison, or_var_with_comparison_1,
20658 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
20659 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
20660 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
20661 of combine_comparisons.
20662 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
20663
20664 2010-06-08 Anatoly Sokolov <aesok@post.ru>
20665
20666 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20667 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20668 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
20669 pdp11_function_value_regno_p): New functions.
20670 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20671 TARGET_FUNCTION_VALUE_REGNO_P): Define.
20672
20673 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
20674
20675 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
20676 Thumb-2 in the MINUS case.
20677
20678 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20679
20680 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
20681
20682 * doc/gty.texi (GTY Options): Document typed GC allocation and
20683 variable_size GTY option.
20684
20685 * ggc-internal.h: New.
20686
20687 * ggc.h: Update copyright year.
20688 (digit_string): Move to stringpool.c.
20689 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
20690 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
20691 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
20692 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
20693 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
20694 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
20695 (ggc_force_collect, ggc_get_size, ggc_statistics)
20696 (ggc_print_common_statistics): Move to ggc-internal.h.
20697 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
20698 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
20699 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
20700 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
20701 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
20702 (ggc_alloc_zone_pass_stat): Remove.
20703 (ggc_internal_alloc_stat, ggc_internal_alloc)
20704 (ggc_internal_cleared_alloc_stat): New.
20705 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
20706 (ggc_internal_vec_alloc_stat)
20707 (ggc_internal_cleared_vec_alloc_stat)
20708 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
20709 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
20710 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
20711 (ggc_cleared_alloc_ptr_array_two_args): New.
20712 (htab_create_ggc, splay_tree_new_ggc): Redefine.
20713 (ggc_splay_alloc): Change the type of the first argument to
20714 enum gt_types_enum.
20715 (ggc_alloc_string): Make macro.
20716 (ggc_alloc_string_stat): New.
20717 (ggc_strdup): Redefine.
20718 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
20719 (ggc_alloc_rtvec_sized): New.
20720 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
20721 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
20722 (ggc_internal_cleared_alloc_zone_stat)
20723 (ggc_internal_zone_alloc_stat)
20724 (ggc_internal_zone_cleared_alloc_stat)
20725 (ggc_internal_zone_vec_alloc_stat)
20726 (ggc_alloc_zone_rtx_def_stat)
20727 (ggc_alloc_zone_tree_node_stat)
20728 (ggc_alloc_zone_cleared_tree_node_stat)
20729 (ggc_alloc_cleared_gimple_statement_d_stat): New.
20730
20731 * ggc-common.c: Include ggc-internal.h.
20732 (ggc_internal_cleared_alloc_stat): Rename from
20733 ggc_alloc_cleared_stat.
20734 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
20735 (ggc_calloc): Remove.
20736 (ggc_cleared_alloc_htab_ignore_args): New.
20737 (ggc_cleared_alloc_ptr_array_two_args): New.
20738 (ggc_splay_alloc): Add obj_type parameter.
20739 (init_ggc_heuristics): Formatting fixes.
20740
20741 * ggc-none.c: Update copyright year.
20742 (ggc_alloc_stat): Rename to ggc_alloc_stat.
20743 (ggc_alloc_cleared_stat): Rename to
20744 ggc_internal_cleared_alloc_stat.
20745 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20746
20747 * ggc-page.c: Update copyright year. Include ggc-internal.h.
20748 Remove references to ggc_alloc in comments.
20749 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
20750 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
20751 (new_ggc_zone, destroy_ggc_zone): Remove.
20752 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20753
20754 * ggc-zone.c: Include ggc-internal.h. Remove references to
20755 ggc_alloc in comments.
20756 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
20757 (ggc_internal_alloc_zone_pass_stat): New.
20758 (ggc_internal_cleared_alloc_zone_stat): New.
20759 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
20760 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
20761 (new_ggc_zone, destroy_ggc_zone): Remove.
20762
20763 * stringpool.c: Update copyright year. Include ggc-internal.h
20764 (digit_vector): Make static.
20765 (digit_string): Moved from ggc.h.
20766 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
20767 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
20768
20769 * Makefile.in (GGC_INTERNAL_H): New.
20770 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
20771 $(GGC_INTERNAL_H) to dependencies.
20772
20773 * gentype.c: Update copyright year.
20774 (walk_type): Accept variable_size GTY option.
20775 (USED_BY_TYPED_GC_P): New macro.
20776 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
20777 whitespace at the end of strings.
20778 (get_type_specifier, variable_size_p): New functions.
20779 (alloc_quantity, alloc_zone): New enums.
20780 (write_typed_alloc_def): New function.
20781 (write_typed_struct_alloc_def): Likewise.
20782 (write_typed_typed_typedef_alloc_def): Likewise.
20783 (write_typed_alloc_defns): Likewise.
20784 (output_typename, write_splay_tree_allocator_def): Likewise.
20785 (write_splay_tree_allocators): Likewise.
20786 (main): Call write_typed_alloc_defns and
20787 write_splay_tree_allocators.
20788
20789 * lto-streamer.h (lto_file_decl_data_ptr): New.
20790
20791 * passes.c (order): Define using cgraph_node_ptr.
20792
20793 * strinpool.c (struct string_pool_data): Declare nested_ptr using
20794 ht_identifier_ptr.
20795
20796 * gimple.h (union gimple_statement_d): Likewise.
20797
20798 * rtl.h (struct rtx_def): Likewise.
20799 (struct rtvec_def): Likewise.
20800
20801 * tree.h (union tree_node): Likewise.
20802
20803 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
20804
20805 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
20806
20807 * tree-scalar-evolution.c (scev_initialize): Likewise.
20808
20809 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
20810
20811 * dwarf2asm.c (dw2_force_const_mem): Likewise.
20812
20813 * omp-low.c (lower_omp_critical): Likewise.
20814
20815 * bitmap.h (struct bitmap_head_def): Update comment to not
20816 reference ggc_alloc.
20817
20818 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
20819
20820 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
20821
20822 * ipa-prop.c (duplicate_ggc_array): Rename to
20823 duplicate_ipa_jump_func_array. Use typed GC allocation.
20824 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
20825
20826 * gimple.c (gimple_alloc_stat): Use
20827 ggc_alloc_cleared_gimple_statement_d_stat.
20828
20829 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
20830
20831 * tree.c (make_node_stat): Use
20832 ggc_alloc_zone_cleared_tree_node_stat.
20833 (make_tree_vec_stat): Likewise.
20834 (build_vl_exp_stat): Likewise.
20835 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
20836 (make_tree_binfo_stat): Likewise.
20837 (tree_cons_stat): Likewise.
20838
20839 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
20840 (shallow_copy_rtx_stat): Likewise.
20841 (make_node_stat): Likewise.
20842
20843 * lto-symtab.c: Fix comment.
20844
20845 * tree-cfg.c (create_bb): Update comment to not reference
20846 ggc_alloc_cleared.
20847 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
20848
20849 * varpool.c (varpool_node): Use typed GC allocation.
20850 (varpool_extra_name_alias): Likewise.
20851
20852 * varasm.c (emutls_decl): Likewise.
20853 (get_unnamed_section): Likewise.
20854 (get_noswitch_section): Likewise.
20855 (get_section): Likewise.
20856 (get_block_for_section): Likewise.
20857 (build_constant_desc): Likewise.
20858 (create_constant_pool): Likewise.
20859 (force_const_mem): Likewise.
20860
20861 * tree.c (build_vl_exp_stat): Likewise.
20862 (build_real): Likewise.
20863 (build_string): Likewise.
20864 (decl_debug_expr_insert): Likewise.
20865 (decl_value_expr_insert): Likewise.
20866 (type_hash_add): Likewise.
20867 (build_omp_clause): Likewise.
20868
20869 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
20870
20871 * tree-ssa.c (init_tree_ssa): Likewise.
20872
20873 * tree-ssa-structalias.c (heapvar_insert): Likewise.
20874
20875 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20876
20877 * tree-ssa-loop-niter.c (record_estimate): Likewise.
20878
20879 * tree-ssa-alias.c (get_ptr_info): Likewise.
20880
20881 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20882
20883 * tree-phinodes.c (allocate_phi_node): Likewise.
20884
20885 * tree-iterator.c (tsi_link_before): Likewise.
20886 (tsi_link_after): Likewise.
20887
20888 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20889
20890 * tree-dfa.c (create_var_ann): Likewise.
20891
20892 * tree-cfg.c (create_bb): Likewise.
20893
20894 * toplev.c (alloc_for_identifier_to_locale): Likewise.
20895 (general_init): Likewise.
20896
20897 * stringpool.c (stringpool_ggc_alloc): Likewise.
20898 (gt_pch_save_stringpool): Likewise.
20899
20900 * sese.c (if_region_set_false_region): Likewise.
20901
20902 * passes.c (do_per_function_toporder): Likewise.
20903
20904 * optabs.c (set_optab_libfunc): Likewise.
20905 (set_conv_libfunc): Likewise.
20906
20907 * lto-symtab.c (lto_symtab_register_decl): Likewise.
20908
20909 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20910 (input_eh_region): Likewise.
20911 (input_eh_lp): Likewise.
20912 (make_new_block): Likewise.
20913 (unpack_ts_real_cst_value_fields): Likewise.
20914
20915 * lto-section-in.c (lto_new_in_decl_state): Likewise.
20916
20917 * lto-cgraph.c (input_node_opt_summary): Likewise.
20918
20919 * loop-init.c (loop_optimizer_init): Likewise.
20920
20921 * lambda.h (lambda_vector_new): Likewise.
20922
20923 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
20924
20925 * ira.c (update_equiv_regs): Likewise.
20926
20927 * ipa.c (cgraph_node_set_new): Likewise.
20928 (cgraph_node_set_add): Likewise.
20929 (varpool_node_set_new): Likewise.
20930 (varpool_node_set_add): Likewise.
20931
20932 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
20933 (duplicate_ipa_jump_func_array): Likewise.
20934 (ipa_read_node_info): Likewise.
20935
20936 * ipa-cp.c (ipcp_create_replace_map): Likewise.
20937
20938 * integrate.c (get_hard_reg_initial_val): Likewise.
20939
20940 * gimple.c (gimple_alloc_stat): Likewise.
20941 (gimple_build_omp_for): Likewise.
20942 (gimple_seq_alloc): Likewise.
20943 (gimple_copy): Likewise.
20944
20945 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
20946 (gsi_insert_after_without_update): Likewise.
20947
20948 * function.c (add_frame_space): Likewise.
20949 (insert_temp_slot_address): Likewise.
20950 (assign_stack_temp_for_type): Likewise.
20951 (allocate_struct_function): Likewise.
20952 (types_used_by_var_decl_insert): Likewise.
20953
20954 * except.c (init_eh_for_function): Likewise.
20955 (gen_eh_region): Likewise.
20956 (gen_eh_region_catch): Likewise.
20957 (gen_eh_landing_pad): Likewise.
20958 (add_call_site): Likewise.
20959
20960 * emit-rtl.c (get_mem_attrs): Likewise.
20961 (get_reg_attrs): Likewise.
20962 (start_sequence): Likewise.
20963 (init_emit): Likewise.
20964
20965 * dwarf2out.c (new_cfi): Likewise.
20966 (queue_reg_save): Likewise.
20967 (dwarf2out_frame_init): Likewise.
20968 (new_loc_descr): Likewise.
20969 (find_AT_string): Likewise.
20970 (new_die): Likewise.
20971 (add_var_loc_to_decl): Likewise.
20972 (clone_die): Likewise.
20973 (clone_as_declaration): Likewise.
20974 (break_out_comdat_types): Likewise.
20975 (new_loc_list): Likewise.
20976 (loc_descriptor): Likewise.
20977 (add_loc_descr_to_each): Likewise.
20978 (add_const_value_attribute): Likewise.
20979 (tree_add_const_value_attribute): Likewise.
20980 (add_comp_dir_attribute): Likewise.
20981 (add_name_and_src_coords_attributes): Likewise.
20982 (lookup_filename): Likewise.
20983 (store_vcall_insn): Likewise.
20984 (dwarf2out_init): Likewise.
20985
20986 * dbxout.c (dbxout_init): Likewise.
20987
20988 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20989
20990 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20991
20992 * config/score/score7.c (score7_output_external): Likewise.
20993
20994 * config/score/score3.c (score3_output_external): Likewise.
20995
20996 * config/s390/s390.c (s390_init_machine_status): Likewise.
20997
20998 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20999 (rs6000_init_machine_status): Likewise.
21000 (output_toc): Likewise.
21001
21002 * config/pa/pa.c (pa_init_machine_status): Likewise.
21003 (get_deferred_plabel): Likewise.
21004
21005 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21006
21007 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21008
21009 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21010
21011 * config/mep/mep.c (mep_init_machine_status): Likewise.
21012 (mep_note_pragma_flag): Likewise.
21013
21014 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21015
21016 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21017
21018 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21019
21020 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21021 (i386_pe_maybe_record_exported_symbol): Likewise.
21022
21023 * config/i386/i386.c (get_dllimport_decl): Likewise.
21024 (ix86_init_machine_status): Likewise.
21025 (assign_386_stack_local): Likewise.
21026
21027 * config/frv/frv.c (frv_init_machine_status): Likewise.
21028
21029 * config/darwin.c (machopic_indirection_name): Likewise.
21030
21031 * config/cris/cris.c (cris_init_machine_status): Likewise.
21032
21033 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21034
21035 * config/avr/avr.c (avr_init_machine_status): Likewise.
21036
21037 * config/arm/arm.c (arm_init_machine_status): Likewise.
21038
21039 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21040 (alpha_need_linkage): Likewise.
21041 (alpha_use_linkage): Likewise.
21042
21043 * cgraph.c (cgraph_allocate_node): Likewise.
21044 (cgraph_create_edge_1): Likewise.
21045 (cgraph_create_indirect_edge): Likewise.
21046 (cgraph_add_asm_node): Likewise.
21047
21048 * cfgrtl.c (init_rtl_bb_info): Likewise.
21049
21050 * cfgloop.c (alloc_loop): Likewise.
21051 (rescan_loop_exit): Likewise.
21052
21053 * cfg.c (init_flow): Likewise.
21054 (alloc_block): Likewise.
21055 (unchecked_make_edge): Likewise.
21056
21057 * c-parser.c (c_parse_init): Likewise.
21058 (c_parse_file): Likewise.
21059
21060 * c-decl.c (bind): Likewise.
21061 (record_inline_static): Likewise.
21062 (push_scope): Likewise.
21063 (make_label): Likewise.
21064 (lookup_label_for_goto): Likewise.
21065 (finish_struct): Likewise.
21066 (finish_enum): Likewise.
21067 (c_push_function_context): Likewise.
21068
21069 * bitmap.c (bitmap_element_allocate): Likewise.
21070 (bitmap_gc_alloc_stat): Likewise.
21071
21072 * alias.c (record_alias_subset): Likewise.
21073 (init_alias_analysis): Likewise.
21074
21075 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
21076
21077 * fold-const.c (fold_comparison): Remove redundant parenthesis.
21078 * tree-inline.c (expand_call_inline): Pass translated return value of
21079 cgraph_inline_failed_string to diagnostic function.
21080
21081 2010-06-08 Andrew Pinski <pinskia@gmail.com>
21082 Shujing Zhao <pearly.zhao@oracle.com>
21083
21084 PR c/37724
21085 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
21086 implicit bad conversions is initialization.
21087 (error_init): Use gmsgid instead of msgid for argument name and change
21088 the call for error.
21089 (pedwarn_init): Use gmsgid instead of msgid for argument name and
21090 change the call for pedwarn.
21091 (warning_init): Use gmsgid instead of msgid for argument name and
21092 change the call for warning.
21093
21094 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
21095
21096 * config/mips/mips-protos.h (mips_print_operand): Delete.
21097 (mips_print_operand_address): Delete.
21098 * config/mips/mips.h (mips_print_operand_punct): Delete.
21099 (PRINT_OPERAND): Delete.
21100 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21101 (PRINT_OPERAND_ADDRESS): Delete.
21102 * config/mips/mips.c (mips_print_operand_punct): Make static.
21103 (mips_print_operand_address): Make static.
21104 (mips_print_operand): Make static. Call
21105 mips_print_operand_punct_valid_p.
21106 (mips_print_operand_punct_valid_p): New function.
21107 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21108 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21109
21110 2010-06-07 Jan Hubicka <jh@suse.cz>
21111
21112 PR middle-end/44454
21113 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
21114 are allocated.
21115
21116 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
21117
21118 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
21119 name of RECORD.
21120
21121 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21122
21123 * doc/sourcebuild.texi (Effective-Target Keywords, Other
21124 attributes): Document gas.
21125
21126 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
21127
21128 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
21129 <TYPE_LEA>: Split instruction.
21130 <default>: Remove alternative 2 handling.
21131 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
21132 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
21133 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
21134
21135 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
21136 (ashift_zext lea splitter): Use DImode for multiplication.
21137
21138 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
21139 to generate addition.
21140
21141 2010-06-07 Joseph Myers <joseph@codesourcery.com>
21142
21143 * common.opt (fira-verbose): Use Var.
21144 (fpcc-struct-return): Use Init instead of VarExists.
21145 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
21146 toplev.c.
21147 * flags.h (flag_signed_char, flag_short_enums,
21148 flag_pcc_struct_return, flag_ira_verbose,
21149 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
21150 * toplev.c (flag_detailed_statistics, flag_signed_char,
21151 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
21152 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
21153 * toplev.h (flag_crossjumping, flag_if_conversion,
21154 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
21155 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
21156 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
21157 flag_cprop_registers, time_report, flag_ira_loop_pressure,
21158 flag_ira_coalesce, flag_ira_move_spills,
21159 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
21160
21161 2010-06-07 Jan Hubicka <jh@suse.cz>
21162
21163 * df-core.c (df_analyze_problem): Do verification after allocation.
21164
21165 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
21166 (df_lr_alloc): Initialize problem data; move bitmaps to
21167 lr_bitmaps obstack.
21168 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
21169 (df_lr_verify_solution_start): Do not initialize problem data;
21170 allocate bitmaps in lr_bitmaps.
21171 (df_lr_verify_solution_end): Do not free problem data.
21172
21173 2010-06-07 Jan Hubicka <jh@suse.cz>
21174
21175 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
21176 if caller is noreturn.
21177 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
21178 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
21179 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
21180 * ipa-pure-const.c (check_decl): Add IPA parameter.
21181 (state_from_flags): New function.
21182 (better_state, worse_state): New functions.
21183 (check_call): When in IPA mode, do not care about callees.
21184 (check_load, check_store): Update.
21185 (check_ipa_load, check_ipa_store): New.
21186 (check_stmt): When in IPA mode, use IPA checkers.
21187 (analyze_function): Use state_from_flags.
21188 (propagate): Check indirect edges and references.
21189
21190 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
21191
21192 PR rtl-optimization/44404
21193 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
21194 of count_occurrences to see if it's safe to modify mem_insn.
21195
21196 2010-06-07 Richard Guenther <rguenther@suse.de>
21197
21198 * gimplify.c (gimplify_cleanup_point_expr): For empty body
21199 and EH-only cleanup drop the cleanup instead of inserting it
21200 unconditionally.
21201
21202 2010-06-07 Ira Rosen <irar@il.ibm.com>
21203
21204 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
21205 documentation.
21206 * targhooks.c (default_builtin_vectorization_cost): New function.
21207 * targhooks.h (default_builtin_vectorization_cost): Declare.
21208 * target.h (enum vect_cost_for_stmt): Define.
21209 (builtin_vectorization_cost): Change argument and comment.
21210 * tree-vectorizer.h: Remove cost model macros.
21211 * tree-vect-loop.c: Include target.h.
21212 (vect_get_cost): New function.
21213 (vect_estimate_min_profitable_iters): Replace cost model macros with
21214 calls to vect_get_cost.
21215 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
21216 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
21217 default implementation.
21218 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
21219 calls to target hook builtin_vectorization_cost.
21220 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
21221 Likewise.
21222 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
21223 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
21224 implementation to return costs.
21225 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
21226 * config/spu/spu.h: Remove vectorizer cost model macros.
21227 * config/i386/i386.h: Likewise.
21228 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
21229 a call to target hook builtin_vectorization_cost.
21230
21231 2010-06-06 Sriraman Tallam <tmsriram@google.com>
21232
21233 PR target/44319
21234 * config/i386/i386.c (override_options): Turn zee pass on for level 2
21235 and above and defer till target is known.
21236 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
21237 turn off otherwise.
21238
21239 2010-05-25 Jan Hubicka <jh@suse.cz>
21240
21241 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
21242 (df_compact_blocks): Likewise.
21243 * df.h (struct df): Turn hardware_regs_used,
21244 regular_block_artificial_uses, eh_block_artificial_uses,
21245 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
21246 bitmap_head.
21247 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
21248 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
21249 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
21250 df_scan_blocks, df_insn_delete, df_insn_rescan,
21251 df_insn_rescan_debug_internal, df_insn_rescan_all,
21252 df_process_deferred_rescans, df_process_deferred_rescans,
21253 df_notes_rescan, df_get_call_refs, df_get_call_refs,
21254 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
21255 df_record_entry_block_defs, df_record_exit_block_uses,
21256 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
21257 df_scan_verify): Update.
21258
21259 2010-05-25 Dodji Seketeli <dodji@redhat.com>
21260
21261 PR c++/44188
21262 * c-common.c (is_typedef_decl): Move this definition ...
21263 * tree.c (is_typedef_decl): ... here.
21264 (typdef_variant_p): Move definition here from cp/tree.c.
21265 * c-common.h (is_typedef_decl): Move this declaration ...
21266 * tree.h (is_typedef_decl): ... here.
21267 (typedef_variant_p): Move declaration here from cp/cp-tree.h
21268 * dwarf2out.c (is_naming_typedef_decl): New function.
21269 (gen_tagged_type_die): Split out of ...
21270 (gen_type_die_with_usage): ... this function. When an anonymous
21271 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
21272 is emitted for the typedef.
21273 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
21274 anonymous tagged types.
21275
21276 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
21277
21278 PR c/20000
21279 * c-decl.c (grokdeclarator): Delete warning.
21280
21281 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
21282
21283 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
21284 newly built CALL_EXPR.
21285 * tree-profile.c (tree_profiling): Don't profile functions produced
21286 for built-in stuff.
21287
21288 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
21289
21290 PR bootstrap/44427
21291 PR bootstrap/44428
21292 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
21293 endianness-independent.
21294
21295 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
21296
21297 * c-common.c: Move to c-family/.
21298 * c-common.def: Likewise.
21299 * c-common.h: Likewise.
21300 * c-cppbuiltin.c: Likewise.
21301 * c-dump.c: Likewise.
21302 * c-format.c: Likewise.
21303 * c-format.h : Likewise.
21304 * c-gimplify.c: Likewise.
21305 * c-lex.c: Likewise.
21306 * c-omp.c: Likewise.
21307 * c.opt: Likewise.
21308 * c-opts.c: Likewise.
21309 * c-pch.c: Likewise.
21310 * c-ppoutput.c: Likewise.
21311 * c-pragma.c: Likewise.
21312 * c-pragma.h: Likewise.
21313 * c-pretty-print.c: Likewise.
21314 * c-pretty-print.h: Likewise.
21315 * c-semantics.c: Likewise.
21316 * stub-objc.c: Likewise.
21317
21318 * gengtype.c (get_file_langdir): Special-case files in c-family/.
21319 (get_output_file_with_visibility): Fix name for c-common.h.
21320 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
21321
21322 * c-tree.h: Update include path for moved files.
21323 * c-lang.c: Likewise.
21324 * c-lang.h: Likewise.
21325 * c-parser.c: Likewise.
21326 * c-convert.c: Likewise.
21327 * c-decl.c: Likewise.
21328 * c-objc-common.c: Likewise.
21329 * configure.ac: Make sure c-family/ exists in the build directory.
21330 * configure: Regenerate.
21331 * Makefile.in: Update paths for moved files. Regroup files per
21332 location and update dependencies. Move generated_files down after
21333 ALL_GTFILES_H.
21334
21335 * config/spu/spu-c.c: Update paths for moved files.
21336 * config/mep/mep-pragma.c: Likewise.
21337 * config/darwin-c.c: Likewise.
21338 * config/i386/msformat-c.c: Likewise.
21339 * config/i386/i386-c.c: Likewise.
21340 * config/avr/avr-c.c: Likewise.
21341 * config/sol2-c.c: Likewise.
21342 * config/ia64/ia64-c.c: Likewise.
21343 * config/rs6000/rs6000-c.c: Likewise.
21344 * config/arm/arm.c: Likewise.
21345 * config/arm/arm-c.c: Likewise.
21346 * config/h8300/h8300.c: Likewise.
21347 * config/v850/v850-c.c: Likewise.
21348
21349 * config/t-darwin: Fix dependencies for moved files.
21350 * config/t-sol2: Fix dependencies for moved files.
21351 * config/mep/t-mep: Fix dependencies for moved files.
21352 * config/ia64/t-ia64: Fix dependencies for moved files.
21353 * config/rs6000/t-rs6000: Fix dependencies for moved files.
21354 * config/v850/t-v850: Fix dependencies for moved files.
21355 * config/v850/t-v850e: Fix dependencies for moved files.
21356
21357 * config/m32c/m32c-pragma.c
21358
21359 * po/exgettext: Look in c-family/ also.
21360
21361 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
21362
21363 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
21364 (mark_control_dependent_edges_necessary): Call it instead of marking
21365 the last statement manually.
21366 (propagate_necessity): Likewise.
21367
21368 2010-06-05 Jan Hubicka <jh@suse.cz>
21369
21370 * basic-block.h (compute_dominance_frontiers): Updated.
21371 (compute_idf): Likewise.
21372
21373 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
21374 for dominance frontiers.
21375 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
21376 (insert_updated_phi_nodes_for): Likewise.
21377 (update_ssa): Likewise.
21378 * cfganal.c (compute_dominance_frontiers_1): Likewise.
21379 (compute_dominance_frontiers): Likewise.
21380 (compute_idf): Likewise.
21381 * df-problems.c (df_md_local_compute): Likewise.
21382
21383 2010-06-05 Anatoly Sokolov <aesok@post.ru>
21384
21385 * target.h (struct gcc_target): Add memory_move_cost field.
21386 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
21387 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
21388 * targhooks.c (default_memory_move_cost): New function.
21389 * targhooks.h (default_memory_move_cost): Declare function.
21390 * reload.h (memory_move_cost): Declare.
21391 (memory_move_secondary_cost): Change type of 'in' argument to bool.
21392 * reginfo.c (memory_move_cost): New function.
21393 (memory_move_secondary_cost): Change type of 'in' argument to bool.
21394 * ira.h (ira_memory_move_cost): Update comment.
21395 * ira.c (ira_memory_move_cost): Update comment.
21396 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
21397 with memory_move_cost.
21398 * postreload.c (reload_cse_simplify_set): (Ditto.).
21399 * reload1.c (choose_reload_regs): (Ditto.).
21400 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
21401 (MEMORY_MOVE_COST): Revise documentation.
21402
21403 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
21404 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
21405 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
21406 type of 'in' argument to bool.
21407 (TARGET_MEMORY_MOVE_COST): Define.
21408
21409 2010-06-05 Jan Hubicka <jh@suse.cz>
21410
21411 * ipa-pure-const.c (propagate): Fix typo in handling of functions
21412 that cannot return. Be more careful when merging the results with
21413 previously known ones.
21414
21415 2010-06-05 Matthias Klose <doko@ubuntu.com>
21416
21417 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
21418 function to add the -iplugindir option.
21419 (find_plugindir_spec_function): Add new declaration and function.
21420 (static_spec_func): Use it for "find-plugindir".
21421
21422 2010-06-05 Jakub Jelinek <jakub@redhat.com>
21423
21424 PR c++/44361
21425 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
21426 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
21427 statement expression.
21428
21429 2010-06-05 Jan Hubicka <jh@suse.cz>
21430
21431 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
21432 (df_rd_problem_data): Convert sparse_invalidated_by_call,
21433 dense_invalidated_by_call to bitmap head.
21434 (df_rd_alloc, df_rd_bb_local_compute_process_def,
21435 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
21436 df_rd_start_dump, df_lr_verify_transfer_functions,
21437 df_live_verify_transfer_functions, df_chain_create_bb,
21438 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
21439 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
21440 df_simulate_one_insn_forwards, df_md_alloc,
21441 df_md_bb_local_compute_process_def,
21442 df_md_bb_local_compute_process_def, df_md_local_compute,
21443 df_md_transfer_function df_md_free): Update.
21444
21445 2010-06-05 Joseph Myers <joseph@codesourcery.com>
21446
21447 PR c/44322
21448 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
21449 target type for ADDR_EXPR; require no changes to qualifiers except
21450 for function types.
21451 * c-tree.h (c_build_type_variant): Remove.
21452
21453 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
21454
21455 * genautomata.c (get_excl_set): Do work per element, not per char.
21456 (check_presence_pattern_sets): Similar.
21457 (check_absence_pattern_sets): Similar.
21458
21459 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
21460
21461 * genautomata.c (curr_state_pass_num): Delete.
21462 (min_issue_delay_pass_states): Delete.
21463 (min_issue_delay): Delete.
21464 (initiate_min_issue_delay_pass_states): Delete.
21465 (output_min_issue_delay_table): Compute min_issue_delay_vect
21466 using a breadth-first search variant.
21467 (output_tables): Don't call initiate_min_issue_delay_pass_states.
21468
21469 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
21470
21471 PR boostrap/44421
21472 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
21473 (df_byte_lr_bb_local_compute): Likewise.
21474
21475 2010-06-03 Jason Merrill <jason@redhat.com>
21476
21477 Implement noexcept operator (5.3.7)
21478 * c-common.c (c_common_reswords): Add noexcept.
21479 * c-common.h (enum rid): Add RID_NOEXCEPT.
21480
21481 2010-06-04 Joseph Myers <joseph@codesourcery.com>
21482
21483 * config/darwin-driver.c (darwin_default_min_version): Use
21484 GCC-specific formats in diagnostics.
21485 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
21486 diagnostics.
21487 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
21488 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
21489 eval_spec_function, handle_braces, process_brace_body, main,
21490 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
21491 getenv_spec_function, compare_version_strings,
21492 version_compare_spec_function): Use GCC-specific formats in
21493 diagnostics.
21494
21495 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
21496
21497 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
21498 that operand 0 and operand 1 are equal.
21499 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
21500 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
21501 and operand 1 are equal.
21502 <default>: Ditto. Remove ??? comment.
21503 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
21504 and operand 1 are equal.
21505 <default>: Ditto. Remove ??? comment.
21506 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
21507 are equal.
21508 (*add<mode>_4) <default>: Ditto.
21509 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
21510
21511 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
21512
21513 * config/i386/i386-protos.h (ix86_print_operand): Declare.
21514 * config/i386/i386.c (ix86_print_operand): Make non-static.
21515 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
21516 * output.h (output_operand): Declare.
21517 * final.c (output_operand): Make non-static.
21518
21519 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
21520
21521 PR rtl-optimization/44013
21522 * sched-deps.c (add_dependence_list_and_free): Don't free lists
21523 when processing debug insns.
21524
21525 PR debug/41371
21526 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
21527 recursing. Check that recursion is bounded. Rename inner var
21528 to avoid hiding incoming argument.
21529
21530 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
21531
21532 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
21533 operands[2] == 255.
21534 (*addqi_3): Ditto.
21535 (*addqi_4): Ditto.
21536 (*addqi_5): Ditto.
21537 (*addqi_ext_1_rex64): Ditto.
21538 (*addqi_ext_1): Ditto.
21539
21540 (*addqi_4): Check for incdec_operand in QImode.
21541
21542 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
21543 using SWI mode iterator.
21544 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
21545 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
21546 mode iterator.
21547 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
21548 using SWI mode iterator.
21549
21550 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
21551
21552 PR c/25880
21553 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
21554 * c-format.c (gcc_diag_flag_specs): Add hash.
21555 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
21556 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
21557 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
21558 pp_c_cv_qualifiers. Handle qualifiers spelling here.
21559 (pp_c_type_qualifier_list): Call the function above.
21560 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
21561 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
21562 (WARN_FOR_QUALIFIERS): New macro.
21563 (convert_for_assignment): Use it.
21564
21565 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
21566
21567 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
21568
21569 2010-06-04 Jan Hubicka <jh@suse.cz>
21570
21571 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
21572 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
21573 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
21574 DF_BYTE_LR_OUT): Update for embedded bitmaps.
21575 * fwprop.c (single_def_use_enter_block): Likewise.
21576 * ddg.c (create_ddg_dep_from_intra_loop_link,
21577 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
21578 * loop-iv.c (latch_dominating_def): Likewise.
21579 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
21580 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
21581 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
21582 df_rd_transfer_function, df_rd_top_dump,
21583 df_rd_bottom_dump): Update.
21584 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
21585 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
21586 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
21587 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
21588 df_lr_verify_solution_start, df_lr_verify_solution_end,
21589 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
21590 df_live_free_bb_info, df_live_alloc, df_live_reset,
21591 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
21592 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
21593 df_live_verify_solution_start, df_live_verify_solution_end,
21594 df_live_verify_transfer_functions, df_chain_create_bb,
21595 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
21596 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21597 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21598 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
21599 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
21600 df_byte_lr_transfer_function, df_byte_lr_top_dump,
21601 df_byte_lr_bottom_dump, df_create_unused_note,
21602 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
21603 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
21604 df_md_transfer_function, df_md_init, df_md_confluence_0,
21605 df_md_confluence_n,
21606 df_md_top_dump, df_md_bottom_dump): Update.
21607 (struct df_lr_problem_data): Embedd bitmap headers.
21608
21609 2010-06-04 Jan Hubicka <jh@suse.cz>
21610
21611 * dce.c (dce_process_block): Do not re-scan already marked
21612 instructions.
21613
21614 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
21615
21616 PR rtl-optimization/39871
21617 PR rtl-optimization/40615
21618 PR rtl-optimization/42500
21619 PR rtl-optimization/42502
21620 * ira.c (init_reg_equiv_memory_loc: New function.
21621 (ira): Call it twice.
21622 * reload.h (calculate_elim_costs_all_insns): Declare.
21623 * ira-costs.c: Include "reload.h".
21624 (regno_equiv_gains): New static variable.
21625 (init_costs): Allocate it.
21626 (finish_costs): Free it.
21627 (ira_costs): Call calculate_elim_costs_all_insns.
21628 (find_costs_and_classes): Take estimated elimination costs
21629 into account.
21630 (ira_adjust_equiv_reg_cost): New function.
21631 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
21632 * reload1.c (init_eliminable_invariants, free_reg_equiv,
21633 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
21634 (elim_bb): New static variable.
21635 (reload): Move code out of here into init_eliminable_invariants and
21636 free_reg_equiv. Call them.
21637 (calculate_elim_costs_all_insns): New function.
21638 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
21639 all callers changed. If FOR_COSTS is true, don't call alter_reg,
21640 but call note_reg_elim_costly if we turned a valid memory address
21641 into an invalid one.
21642 * Makefile.in (ira-costs.o): Depend on reload.h.
21643
21644 2010-06-04 Julian Brown <julian@codesourcery.com>
21645
21646 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
21647 for pool ranges.
21648
21649 2010-06-04 Richard Guenther <rguenther@suse.de>
21650
21651 PR lto/41584
21652 * cgraph.h (struct varpool_node): Add lto_file_data field.
21653 * lto-cgraph.c (input_varpool_node): Initialize it.
21654
21655 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
21656
21657 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
21658 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
21659 predicate in "type" attribute calculation.
21660 (*addsi_1_zext): Ditto.
21661 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
21662 (*addsi_2_zext): Ditto.
21663 (*add<mode>_3): Ditto.
21664 (*addsi_3_zext): Ditto.
21665 (*add<mode>_5): Ditto.
21666
21667 2010-06-03 Jan Hubicka <jh@suse.cz>
21668
21669 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
21670 of bitmap_bit_p.
21671 * cfganal.c (compute_dominance_frontiers_1): Likewise.
21672
21673 2010-06-03 Jan Hubicka <jh@suse.cz>
21674
21675 * df-problems.c (df_create_unused_note, df_note_bb_compute):
21676 micro-optimize the checks when to add new note.
21677
21678 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
21679
21680 * final.c (output_asm_insn): Call
21681 targetm.asm_out.print_operand_punct_valid_p. Update comments.
21682 (output_operand): Call targetm.asm_out.print_operand. Update comments.
21683 (output_address): Call targetm.asm_out.print_operand_address.
21684 Update comments.
21685 * target.h (struct gcc_target): Add print_operand,
21686 print_operand_address, and print_operand_punct_valid_p fields.
21687 * targhooks.h (default_print_operand): Declare.
21688 (default_print_operand_address): Declare.
21689 (default_print_operand_punct_valid_p): Declare.
21690 * targhooks.c (default_print_operand): Define.
21691 (default_print_operand_address): Define.
21692 (default_print_operand_punct_valid_p): Define.
21693 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
21694 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
21695 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
21696 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
21697 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
21698 * vmsdbgout.c (addr_const_to_string): Update comment.
21699 * config/i386/i386.c (print_operand): Rename to...
21700 (ix86_print_operand): ...this. Make static.
21701 (print_operand_address): Rename to...
21702 (ix86_print_operand_address): ...this. Make static. Call
21703 ix86_print_operand instead of PRINT_OPERAND.
21704 (ix86_print_operand_punct_valid_p): New function.
21705 (TARGET_PRINT_OPERAND): Define.
21706 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21707 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21708 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
21709 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21710 (PRINT_OPERAND): Delete.
21711 (PRINT_OPERAND_ADDRESS): Delete.
21712 * config/i386/i386-protos.h (print_operand): Delete prototype.
21713 (print_operand_address): Delete prototype.
21714
21715 2010-06-03 Richard Guenther <rguenther@suse.de>
21716
21717 PR tree-optimization/44403
21718 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21719 Preserve pointer qualifiers.
21720 (vect_create_data_ref_ptr): Likewise.
21721
21722 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
21723
21724 PR c++/44294
21725 * defaults.h (MAX_FIXED_MODE_SIZE): New.
21726
21727 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
21728
21729 2010-06-03 Jakub Jelinek <jakub@redhat.com>
21730
21731 PR debug/44375
21732 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
21733 return false if merging the bbs would lead to goto_locus
21734 location being lost from the IL.
21735
21736 2010-06-03 Jan Hubicka <jh@suse.cz>
21737 Jakub Jelinek <jakub@redhat.com>
21738
21739 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
21740 set->regs[i] is NULL or has just one entry.
21741
21742 2010-06-03 Jan Hubicka <jh@suse.cz>
21743
21744 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
21745 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
21746
21747 2010-06-03 Paul Brook <paul@codesourcery.com>
21748
21749 * config/arm/arm.c (FL_TUNE): Define.
21750 (arm_default_cpu, arm_cpu_select): Remove.
21751 (all_cores): Populate core field.
21752 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
21753 (arm_find_cpu): New function.
21754 (arm_handle_option): Lookup cpu/architecture names.
21755 (arm_override_options): Cleanup mcpu/march/mtune handling.
21756 (arm_file_start): Ditto.
21757
21758 2010-06-03 Alan Modra <amodra@gmail.com>
21759
21760 PR target/44169
21761 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
21762 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
21763 rtx to gen_load_toc_v4_PIC_1b. Tidy.
21764 (rs6000_emit_load_toc_table): Likewise.
21765
21766 2010-06-02 Jan Hubicka <jh@suse.cz>
21767
21768 * passes.c (init_optimization_passes): Put ipa reference
21769 after ipa pure-const.
21770
21771 2010-06-02 Jan Hubicka <jh@suse.cz>
21772
21773 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
21774 calls_read_all and calls_write_all.
21775 (get_reference_optimization_summary): Fix formatting.
21776 (is_proper_for_analysis): Check that decl is not readonly.
21777 (propagate_bits): Check CONST/PURE/noreturn flags.
21778 (ipa_init): Move all_module_statics to optimization_summary_obstack.
21779 (analyze_function): Ignore indirect edges.
21780 (copy_global_bitmap): For all module statics, do nothing.
21781 (generate_summary): Do not print calls_read_all/calls_write_all.
21782 (read_write_all_from_decl): Take node as argument; check
21783 cgraph_node_cannot_return.
21784 (propagate): Reorganize read_all/write_all computation;
21785 check indirect edges; check ecf flags; use all_module_statics
21786 in the results; do not free all_module_statics.
21787 (stream_out_bitmap): Handle all_module_statics.
21788 (ipa_reference_write_optimization_summary): Likewise; use
21789 varpool/cgraph encoders to get boundaries.
21790 (ipa_reference_read_optimization_summary): Read in all_module_statics;
21791 use it when possible.
21792
21793 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21794
21795 PR target/44218
21796 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
21797 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
21798
21799 * doc/extend.texi (powerpc builtins): Document vec_recip,
21800 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
21801
21802 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
21803 (rs6000_emit_swrsqrt): Ditto.
21804 (rs6000_emit_swdivsf): Delete.
21805 (rs6000_emit_swdivdf): Ditto.
21806 (rs6000_emit_swrsqrtsf): Ditto.
21807
21808 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
21809 describe the reciprocal estimate support for each type.
21810 (recip_options): Map -mrecip=<opt> into option bits.
21811 (gen_2arg_fn_t): New typedef for binary rtx gen function.
21812 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
21813 reciprocal estimate instructions.
21814 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
21815 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
21816 Set up rs6000_recip_bits based on the -mrecip* options. Print the
21817 cost information if -mdebug=cost or -mdebug=reg.
21818 (rs6000_override_options): Set -mrecip-precision for power6, and
21819 power7 machines. If -mvsx or -mdfp, enable various options that
21820 came in previous instruction set ISAs, unless the option was
21821 explicitly disabled by the command line option. Parse
21822 -mrecip=<opt> options.
21823 (rs6000_builtin_vectorized_function): Add support for vectorizing
21824 the reciprocal estimate builtins and expansions.
21825 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
21826 (bdesc_2arg): Add reciprocal estimate builtins.
21827 (bdesc_1arg): Add reciprocal square root estimate builtins.
21828 (rs6000_expand_builtin): Rewrite to use a switch statement,
21829 instead of multiple if/then/elses. Add reciprocal estimate builtins.
21830 (rs6000_init_builtins): Create declarations for reciprocal
21831 estimate builtins.
21832 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
21833 sized, prefer traditional floating point registers, if integer
21834 vector types, prefer altivec registers. Don't actually look at
21835 the memory address any more.
21836 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
21837 builtins.
21838 (rs6000_load_constant_and_splat): New helper function to load up
21839 the constant for reciprocal estimate instructions.
21840 (rs6000_emit_madd): New helper function for generating
21841 multiply/add type instructions, based on the current switches.
21842 (rs6000_emit_msub): Ditto.
21843 (rs6000_emit_mnsub): Ditto.
21844 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
21845 replace a divide with a reciprocal estimate and fixup, adding
21846 support for machines with high precision and vectors.
21847 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
21848 low precision machines.
21849 (rs6000_emit_swdiv): New common function to be called to replace a
21850 division with reciprocal estimate and fixup.
21851 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
21852 for double and vector types. Add support for high precision machines.
21853
21854 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
21855 the reciprocal estimate instructions can be generated.
21856 (TARGET_FRE): Ditto.
21857 (TARGET_FRSQRTES): Ditto.
21858 (TARGET_FRSQRTE): Ditto.
21859 (RS6000_RECIP_*): New macros for reciprocal estimate support.
21860
21861 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
21862 square root estimate on vectors.
21863 (re<mode>2): New insn for reciprocal division estimate on vectors.
21864
21865 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
21866 New builtin.
21867 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
21868 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
21869 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
21870 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
21871 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
21872 (RS6000_BUILTIN_RSQRT): Ditto.
21873 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
21874 floating point builtin.
21875
21876 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21877 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
21878 __RECIP_PRECISION__ based on the command line switches.
21879 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
21880
21881 * config/rs6000/rs6000.opt (-mrecip): Document add support for
21882 replacing division instructions with reciprocal estimate and fixup.
21883 (-mrecip=<opt>): New option.
21884 (-mrecip-precision): Ditto.
21885
21886 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
21887 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
21888 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
21889 precision scalar.
21890
21891 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
21892 (UNSPEC_VREFP): Ditto.
21893 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
21894 conterparts with regard to support of -mno-fused-madd and -ffast-math.
21895 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
21896 reciprocal estimate instructions to be generated.
21897 (altivec_vrefp): Ditto.
21898
21899 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
21900 estimate support.
21901 (rreg): New mode attribute for reciprocal estimate support.
21902 (recip<mode>3): New insn for division using reciprocal estimate
21903 and fixup builtins.
21904 (divide define_split): New define_split to convert floating point
21905 division to use reciprocal estimate if the user used the
21906 appropriate options and the split is run when we can add new
21907 pseudo registers for the fixup.
21908 (rsqrt<mode>2): New insn for reciprocal square root support.
21909 (recipsf3): Move into recip<mode>3.
21910 (recipdf3): Ditto.
21911 (fres): Use TARGET_FRES.
21912 (rsqrtsf2): Move into rsqrt<mode>2.
21913 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
21914 (copysignsf3): Add support for VSX.
21915 (fred): Use TARGET_FRE.
21916 (fred_fpr): Ditto.
21917 (rsqrtdf_internal1): New function for frsqrte instruciton.
21918
21919 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
21920 (vec_rsqrt): Ditto.
21921
21922 2010-06-03 Richard Guenther <rguenther@suse.de>
21923
21924 PR middle-end/44291
21925 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
21926 (set_user_assembler_libfunc): Likewise.
21927
21928 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21929
21930 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
21931 defaults.h.
21932 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
21933 to defaults.h
21934 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
21935 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
21936 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
21937 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
21938 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
21939 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
21940 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
21941 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
21942 * defaults.h: Updated for above mentioned changes.
21943
21944 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
21945
21946 * c-common.c: Remove header include of tm_p.h.
21947 * Makefile.in (c-common.o): Remove TM_P_H dependency.
21948
21949 2010-06-02 Jakub Jelinek <jakub@redhat.com>
21950
21951 * tree.h (struct tree_decl_map): New type.
21952 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
21953 (tree_decl_map_hash): New prototype.
21954 (debug_expr_for_decl, value_expr_for_decl): Change into
21955 tree_decl_map hashtab from tree_map.
21956 (init_ttree): Adjust initialization.
21957 (tree_decl_map_hash): New function.
21958 (decl_debug_expr_lookup, decl_debug_expr_insert,
21959 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
21960
21961 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21962
21963 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
21964 linker emulations.
21965 * configure: Regenerate.
21966 * config.in: Regenerate.
21967
21968 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
21969 (X86_64_EMULATION): Define.
21970 (TARGET_LD_EMULATION): Use them.
21971
21972 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
21973 (SPARC64_EMULATION): Define.
21974 (LINK_ARCH_SPEC): Use them.
21975
21976 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21977
21978 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
21979 smallest_mode_for_size for computing the precision types of new
21980 graphite IVs. Do not call lang_hooks.types.type_for_size.
21981
21982 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21983
21984 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
21985 information.
21986 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
21987
21988 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21989
21990 PR middle-end/44363
21991 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
21992 return false instead.
21993
21994 2010-06-02 Jan Hubicka <jh@suse.cz>
21995
21996 PR middle-end/44295
21997 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
21998 create new cgraph node to check callee.
21999
22000 2010-06-02 Richard Guenther <rguenther@suse.de>
22001
22002 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
22003
22004 2010-06-02 Richard Guenther <rguenther@suse.de>
22005
22006 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
22007 (lto_wrapper_cleanup): ... this. Do not exit.
22008 (fatal): Adjust. Exit here.
22009 (fatal_perror): Likewise.
22010 (fatal_signal): New function.
22011 (main): Set up signal handlers to cleanup temporary files.
22012 * Makefile.in (lto-wrapper.o): Adjust dependencies.
22013
22014 2010-06-02 Richard Guenther <rguenther@suse.de>
22015
22016 PR tree-optimization/44377
22017 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
22018
22019 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22020
22021 * config/s390/2097.md (z10_fhex): Remove insn reservation.
22022 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
22023 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
22024 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
22025 instruction.
22026 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
22027
22028 2010-06-02 Jan Hubicka <jh@suse.cz>
22029
22030 * bitmap.c (bitmap_descriptor): Add search_iter.
22031 (bitmap_find_bit): Increment it.
22032 (print_statistics): Print it.
22033
22034 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
22035
22036 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
22037 instead of gimple_build_call_vec. Delete unnecessary local variable.
22038
22039 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
22040
22041 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
22042 change from yesterday.
22043
22044 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
22045
22046 * c-ada-spec.c: Clean up redundant includes.
22047
22048 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
22049
22050 * gimplify.c: Do not include except.h and optabs.h.
22051 (gimplify_body): Do not initialize RTL profiling.
22052 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
22053 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
22054 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
22055 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
22056 langhooks.h.
22057
22058 * tree-pretty-print.h: Include pretty-print.h.
22059 * gimple-pretty-print.h: Include pretty-print.h.
22060
22061 * tree-pretty-print.c: Do not include diagnostic.h.
22062 * tree-vrp.c: Likewise.
22063 * tree-tailcall.c: Likewise
22064 * tree-scalar-evolution.c: Likewise
22065 * tree-ssa-dse.c: Likewise
22066 * tree-chrec.c: Likewise
22067 * tree-ssa-sccvn.c: Likewise
22068 * tree-ssa-copyrename.c: Likewise
22069 * tree-nomudflap.c: Likewise
22070 * tree-call-cdce.c: Likewise
22071 * tree-stdarg.c: Likewise
22072 * tree-ssa-math-opts.c: Likewise
22073 * tree-nrv.c: Likewise
22074 * tree-ssa-sink.c: Likewise
22075 * tree-browser.c: Likewise
22076 * tree-ssa-loop-ivcanon.c: Likewise
22077 * tree-ssa-loop.c: Likewise
22078 * tree-parloops.c: Likewise
22079 * tree-ssa-address.c: Likewise
22080 * tree-ssa-ifcombine.c: Likewise
22081 * tree-if-conv.c: Likewise
22082 * tree-data-ref.c: Likewise
22083 * tree-affine.c: Likewise
22084 * tree-ssa-phiopt.c: Likewise
22085 * tree-ssa-coalesce.c: Likewise
22086 * tree-ssa-pre.c: Likewise
22087 * tree-ssa-live.c: Likewise
22088 * tree-predcom.c: Likewise
22089 * tree-ssa-forwprop.c: Likewise
22090 * tree-ssa-dce.c: Likewise
22091 * tree-ssa-ter.c: Likewise
22092 * tree-ssa-loop-prefetch.c: Likewise
22093 * tree-optimize.c: Likewise
22094 * tree-ssa-phiprop.c: Likewise
22095 * tree-object-size.c: Likewise
22096 * tree-outof-ssa.c: Likewise
22097 * tree-ssa-structalias.c: Likewise
22098 * tree-switch-conversion.c: Likewise
22099 * tree-ssa-reassoc.c: Likewise
22100 * tree-ssa-operands.c: Likewise
22101 * tree-vectorizer.c: Likewise
22102 * tree-vect-data-refs.c: Likewise
22103 * tree-vect-generic.c: Likewise
22104 * tree-vect-stmts.c: Likewise
22105 * tree-vect-patterns.c: Likewise
22106 * tree-vect-slp.c: Likewise
22107 * tree-vect-loop.c: Likewise
22108 * tree-ssa-loop-ivopts.c: Likewise
22109 * tree-ssa-loop-im.c: Likewise
22110 * tree-ssa-loop-niter.c: Likewise
22111 * tree-ssa-loop-unswitch.c: Likewise
22112 * tree-ssa-loop-manip.c: Likewise
22113 * tree-ssa-loop-ch.c: Likewise
22114 * tree-dump.c: Likewise
22115 * tree-complex.c: Likewise
22116
22117 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
22118 * tree-ssa-uninit.c: Likewise
22119 * tree-ssa-threadupdate.c: Likewise
22120 * tree-ssa-uncprop.c: Likewise
22121 * tree-ssa-ccp.c: Likewise
22122 * tree-ssa-dom.c: Likewise
22123 * tree-ssa-propagate.c: Likewise
22124 * tree-ssa-alias.c: Likewise
22125 * tree-dfa.c: Likewise
22126 * tree-cfgcleanup.c: Likewise
22127 * tree-sra.c: Likewise
22128 * tree-ssa-copy.c: Likewise
22129 * tree-ssa.c: Likewise
22130 * tree-profile.c: Likewise
22131 * tree-cfg.c: Likewise
22132 * tree-ssa-threadedge.c: Likewise
22133 * tree-vect-loop-manip.c: Likewise
22134
22135 * tree-inline.c: Do not include diagnostic.h and expr.h.
22136 Include rtl.h.
22137 (copy_decl_for_dup_finish): Do not use NULL_RTX.
22138
22139 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
22140 * tree-loop-distribution.c: Likewise.
22141
22142 2010-06-01 Jan Hubicka <jh@suse.cz>
22143
22144 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
22145
22146 2010-06-01 Jan Hubicka <jh@suse.cz>
22147
22148 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
22149 remove return value.
22150 (split_bbs_on_noreturn_calls) .... here.
22151 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
22152 * tree-flow.h (fixup_noreturn_call): New.
22153
22154 2010-06-01 Jan Hubicka <jh@suse.cz>
22155
22156 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
22157
22158 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
22159
22160 * tree.h (build_nt_call_list): Delete.
22161 * tree.c (build_nt_call_list): Delete.
22162
22163 2010-06-01 Jan Hubicka <jh@suse.cz>
22164
22165 * fwprop.c: Make emit-rtl.h include last.
22166 * rtlanal.c: Include emit-rtl.h.
22167 * genautomata.c: Output emit-rtl include into insn-automata.c
22168 * df-scan.c: Include emit-rtl.h.
22169 * haifa-sched.c: Indlude emit-rtl.h.
22170 * mode-switching.c: Indlude emit-rtl.h.
22171 * graph.c: Indlude emit-rtl.h.
22172 * sel-sched.c: Include emit-rtl.h.
22173 * sel-sched-ir.c: Include emit-rtl.h.
22174 * ira-build.c: Include emit-rtl.h.
22175 * emit-rtl.c (first_insn, last_insn): Remove defines.
22176 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
22177 Move to emit-rtl.h.
22178 (set_new_first_and_last_insn, get_last_insn_anywhere,
22179 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
22180 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
22181 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
22182 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
22183 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
22184 Use accessor functions.
22185 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
22186 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
22187 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
22188 mem_expr_equal_p): Move here from rtl.h.
22189 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
22190 Move here from emit-rtl.c; make inline.
22191 * cfglayout.h: Include emit-rtl.h.
22192 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
22193 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
22194 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
22195 mem_expr_equal_p, get_insns, set_first-insn,
22196 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
22197 * reg-stack.c: Include emit-rtl.h.
22198 * dce.c: Likewise.
22199
22200 2010-06-01 Jan Hubicka <jh@suse.cz>
22201
22202 * cgraph.h (tree_function_versioning): Update prototype.
22203 (cgraph_function_versioning): Update prototype.
22204 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
22205 bitmap.
22206 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
22207 (cgraph_materialize_clone, save_inline_function_body): Update use of
22208 tree_function_versioning.
22209 * tree-inline.c (copy_bb): Look for previous copied block to link
22210 after; fix debug output.
22211 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
22212 (copy_body): Likewise.
22213 (expand_call_inline): Update use of copy_body.
22214 (tree_function_versioning): Update use of copy body; accept
22215 blocks_to_copy and new_entry.
22216
22217 2010-06-01 Jan Hubicka <jh@suse.cz>
22218
22219 * gegenrtl.c: Remove unnecesary prototypes.
22220 (gendecl): Remove.
22221 (gendef): Produce static inline.
22222 (gencode): Remove.
22223 (main): Do not decode parameters; generate header only.
22224 * Makefile.in (genrtl.c): Remove.
22225
22226 2010-06-01 Jan Hubicka <jh@suse.cz>
22227
22228 * tree-switch-conversion.c (build_one_array): Make it readonly.
22229
22230 2010-06-01 Richard Guenther <rguenther@suse.de>
22231
22232 * optabs.c (init_optabs): Guard all accesses to reinit.
22233 * ipa-pure-const.c (propagate): Fix another typo.
22234 * opts.c (common_handle_option): Split assignment to bool.
22235 * c-opts.c (c_common_handle_option): Likewise.
22236
22237 2010-06-01 Arnaud Charlet <charlet@adacore.com>
22238 Matthew Gingell <gingell@adacore.com>
22239
22240 * doc/invoke.texi: Mention -fdump-ada-spec.
22241 * tree-dump.c (dump_files): Add ada-spec.
22242 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
22243 * tree-pass.h (tree_dump_index): Add TDI_ada.
22244 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
22245 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
22246 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
22247 * c-decl.c: Include c-ada-spec.h.
22248 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
22249 functions.
22250 (c_write_global_declarations): Add handling of -fdump-ada-spec.
22251 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
22252 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
22253 * c-ada-spec.h, c-ada-spec.c: New files.
22254
22255 2010-06-01 Richard Guenther <rguenther@suse.de>
22256
22257 PR lto/43853
22258 * ipa-pure-const.c (get_function_state): Hand back varying state
22259 if we do not have one.
22260 (has_function_state): New function.
22261 (duplicate_node_data): Adjust.
22262 (remove_node_data): Likewise.
22263 (pure_const_write_summary): Likewise.
22264 (propagate): Likewise. Fix typo.
22265
22266 2010-06-01 Jan Hubicka <jh@suse.cz>
22267
22268 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
22269 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
22270 (execute_all_ipa_transforms): Do not play with the states.
22271
22272 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
22273
22274 * config/arm/t-linux-androideabi: New.
22275 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
22276
22277 2010-06-01 Jan Hubicka <jh@suse.cz>
22278
22279 * tree-inline.c (estimate_num_insns): For stdarg functions look
22280 into call statement to count cost of argument passing.
22281
22282 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
22283
22284 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
22285 argument for fprintf.
22286 (ix86_output_addr_diff_elt): Likewise.
22287 (x86_function_profiler): Likewise.
22288 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
22289 (LPREFIX): Likewise.
22290 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
22291
22292 2010-05-31 Jakub Jelinek <jakub@redhat.com>
22293
22294 PR target/44338
22295 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
22296 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
22297 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
22298 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
22299 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
22300 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
22301 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
22302 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
22303 TARGET_FUSED_MADD.
22304
22305 2010-05-31 Jan Hubicka <jh@suse.cz>
22306
22307 * tree.h (tree_range_check_failed): Declare noreturn.
22308
22309 2010-05-31 Jan Hubicka <jh@suse.cz>
22310
22311 * gimple.c (gimple_call_builtin_p): New function.
22312 * gimple.h (gimple_call_builtin_p): Declare.
22313 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
22314 to exit.
22315 (execute_warn_function_return): BUILT_IN_RETURN is return.
22316 (split_critical_edges): Return edges are not critical.
22317 (is_ctrl_altering_stmt): Builtin_in_return is altering.
22318 (gimple_verify_flow_info): Handle built_in_return.
22319 (execute_warn_function_return): Handle built_in_return.
22320 * ipa-pure-const.c (check_call): Ignore builtin_return.
22321
22322 2010-05-31 Jakub Jelinek <jakub@redhat.com>
22323
22324 PR middle-end/44337
22325 * expr.c (expand_assignment): Don't store anything for out-of-bounds
22326 array accesses with non-MEM.
22327
22328 PR tree-optimization/44182
22329 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
22330 newly needs to end a bb is followed by debug stmts, instead return
22331 true from the function at the end.
22332 (maybe_move_debug_stmts_to_successors): New function.
22333 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
22334
22335 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
22336
22337 PR target/44161
22338 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
22339
22340 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
22341
22342 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
22343 for nested functions in non-optimized compilation.
22344
22345 2010-05-31 Richard Guenther <rguenther@suse.de>
22346
22347 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
22348
22349 2010-05-30 Jan Hubicka <jh@suse.cz>
22350
22351 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
22352
22353 2010-05-30 Richard Guenther <rguenther@suse.de>
22354
22355 PR lto/42975
22356 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
22357 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
22358 no longer needed.
22359
22360 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
22361
22362 * config/darwin.c (output_objc_section_asm_op): Add comment.
22363 (name_needs_quotes): Add '_' to list of valid comment chars.
22364 (machopic_output_function_base_name): Remove unneeded quotes.
22365 (darwin_encode_section_info): Adjust asm whitespace.
22366 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
22367 (ASM_OUTPUT_LOCAL): Ditto.
22368 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
22369 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
22370 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
22371
22372 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
22373
22374 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
22375 RS6000_OUTPUT_BASENAME unconditionally.
22376 (rs6000_output_function_epilogue): Likewise.
22377
22378 2010-05-30 Jan Hubicka <jh@suse.cz>
22379
22380 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
22381 nodes.
22382
22383 2010-05-30 Richard Guenther <rguenther@suse.de>
22384
22385 * tree-cfg.c (verify_gimple_assign_single): Implement
22386 verification for COND_EXPR rhs.
22387
22388 2010-05-30 Jan Hubicka <jh@suse.cz>
22389
22390 * cgraph.h (cgraph_dump_file): Declare.
22391 * cgraphunit.c (cgraph_dump_file): Export.
22392 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
22393
22394 2010-05-30 Jan Hubicka <jh@suse.cz>
22395
22396 * dwarf2out.c (reference_to_unused,
22397 premark_types_used_by_global_vars_helper): Avoid creation of new
22398 varpool nodes.
22399
22400 2010-05-30 Jan Hubicka <jh@suse.cz>
22401
22402 * cgraph.h (cgraph_node_cannot_return,
22403 cgraph_edge_cannot_lead_to_return): New functions.
22404 * cgraph.c (cgraph_node_cannot_return,
22405 cgraph_edge_cannot_lead_to_return): Use them.
22406 * ipa-pure-const.c (pure_const_names): New static var.
22407 (check_call): Handle calls not leading to return.
22408 (pure_const_read_summary): Dump info read.
22409 (propagate): Dump info about propagation process; ignore side effects
22410 of functions not leading to exit; fix handling of pure functions.
22411
22412 2010-05-30 Jan Hubicka <jh@suse.cz>
22413
22414 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
22415 for tail call epilogues.
22416
22417 2010-05-30 Jan Hubicka <jh@suse.cz>
22418
22419 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
22420 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
22421 dump files.
22422
22423 2010-05-29 Jan Hubicka <jh@suse.cz>
22424
22425 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
22426 node; remove references in node we no longer keep in cgrpah but need
22427 body of.
22428
22429 2010-05-29 Jan Hubicka <jh@suse.cz>
22430
22431 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
22432
22433 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22434
22435 PR target/44165
22436 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
22437
22438 2010-05-29 Jan Hubicka <jh@suse.cz>
22439
22440 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
22441 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
22442 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
22443 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
22444 debug_names_replaced_by, debug_update_ssa): Likewise.
22445 * sbitmap.c (debug_sbitmap): Likewise.
22446 * genrecog.c (debug_decision, debug_decision_list): Likewise.
22447 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
22448 debug_tree_chain): Likewise.
22449 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
22450 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
22451 * optabs.c (debug_optab_libfuncs): Likewise.
22452 (verify_loop_closed_ssa): Likewise.
22453 * value-prof.c (verify_histograms): Likewise.
22454 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
22455 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
22456 * cfghooks.c (verify_flow_info): Likewise.
22457 * fold-const.c (debug_fold_checksum): Likewise.
22458 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
22459 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
22460 Likewise.
22461 * omega.c (debug_omega_problem): Likewise.
22462 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
22463 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
22464 * dominance.c (verify_dominators, debug_dominance_info,
22465 debug_dominance_tree): Likewise.
22466 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
22467 * df_regno_debug, df_ref_debug,
22468 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
22469 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
22470 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
22471 * sel-sched.c (debug_state): Likewise.
22472 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
22473 Likewise.
22474 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
22475 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
22476 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
22477 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
22478 Likewise.
22479 * c-pretty-print.c (debug_c_tree): Likewise.
22480 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
22481 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
22482 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
22483 * ebitmap.c (debug_ebitmap): Likewise.
22484 * function.c (debug_find_var_in_block_tree): Likewise.
22485 * print-rtl.c (debug_rtx): Likewise.
22486 (debug_rtx_count): Likewise.
22487 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
22488 * stor-layout.c (debug_rli): Likewise.
22489 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
22490 * tree-data-ref.c (debug_data_references,
22491 debug_data_dependence_relations, debug_data_reference,
22492 debug_data_dependence_relation, debug_rdg_vertex,
22493 debug_rdg_component, debug_rdg): Likewise.
22494 * tree-affine.c (debug_aff): Likewise.
22495 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
22496 Likewise.
22497 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
22498 * emit-rtl.c (verify_rtl_sharing): Likewise.
22499 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
22500 debug_value_expressions): Likewise.
22501 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
22502 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
22503 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
22504 * cfglayout.c (verify_insn_chain): Likewise.
22505 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
22506 debug_clast_stmt, debug_generated_program): Likewise.
22507 * ggc-page.c (debug_print_page_list): Likewise.
22508 * tree-ssa-ter.c (debug_ter): Likewise.
22509 * graphite-dependences.c (debug_pddr): Likewise.
22510 * sched-deps.c (debug_ds): Likewise.
22511 * tree-ssa.c (verify_ssa): Likewise.
22512 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
22513 debug_scattering_functions, debug_iteration_domains, debug_pdr,
22514 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
22515 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
22516 * tree-inline.c (debug_find_tree): Likewise.
22517 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
22518 debug_ppl_powerset_matrix): Likewise.
22519 * var-tracking.c (debug_dv): Likewise.
22520 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
22521 * cfgloop.c (verify_loop_structure): Likewise.
22522 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
22523 * c-common.c (verify_sequence_points): Likewise.
22524 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
22525 debug_candidates, debug_rgn_dependencies): Likewise.
22526 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
22527 * debug_constraint_graph, debug_solution_for_var,
22528 debug_sa_points_to_info): Likewise.
22529 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
22530 Likewie.
22531 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
22532 debug_loops, debug_loop, debug_loop_num): Likewise.
22533 * passes.c (debug_pass): Likewise.
22534 (dump_properties): Likewise; add cfglayout property.
22535 (debug_properties): Likewise.
22536 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
22537 * varpool.c (debug_varpool): Likewise.
22538 * regcprop.c (debug_value_data): Likewise.
22539 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
22540 debug_immediate_uses_for): Likewise.
22541
22542 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
22543
22544 PR bootstrap/44315
22545 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
22546 Filter out insn-flags.h.
22547
22548 2010-05-29 Jan Hubicka <jh@suse.cz>
22549
22550 * cgraph.h (struct varpool_node_set_def,
22551 struct cgraph_node_set_def): Remove unused AUX pointer.
22552 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
22553 VEC_empty macro.
22554
22555 2010-05-29 Jan Hubicka <jh@suse.cz>
22556
22557 PR middle-end/44324
22558 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
22559
22560 2010-05-29 Richard Guenther <rguenther@suse.de>
22561
22562 * lto-streamer.c (cached_bp): New global variable.
22563 (bitpack_create): Return the cached bitpack, if available.
22564 (bitpack_delete): Clear and cache the bitpack, if appropriate.
22565 (bp_pack_value): Remove redundant asserts.
22566
22567 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
22568
22569 PR middle-end/44306
22570 * tree-if-conv.c (is_true_predicate): New.
22571 (is_predicated): Use is_true_predicate.
22572 (add_to_predicate_list): Same. Do not use unshare_expr.
22573 (add_to_dst_predicate_list): Same.
22574
22575 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
22576
22577 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
22578 field on edges.
22579 (predicate_bbs): Same.
22580 (clean_predicate_lists): Same.
22581 (find_phi_replacement_condition): Do not AND the predicate from
22582 edge->aux.
22583
22584 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
22585
22586 PR bootstrap/44315
22587 * Makefile.in (build/gencondmd.o): Add a missing `\'.
22588
22589 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22590
22591 PR target/44261
22592 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
22593 (negdf2): Adjust expander pattern and use negdf2_slow.
22594 (negsf2): Likewise.
22595
22596 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
22597
22598 * basic-block.h (struct control_flow_graph): Move last_label_uid field
22599 up.
22600 * df.h (struct df_base_ref): Move regno field up.
22601 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
22602 * expr.h (struct separate_ops): Move location field up.
22603 * optabs.h (struct optab_d): Move libcall_basename field down.
22604 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
22605 * config/i386/i386.h (struct machine_function): Convert call_abi field
22606 into a bitfield. Move cfa field to the end of the structure.
22607
22608 2010-05-29 Jan Hubicka <jh@suse.cz>
22609
22610 * varpool.c (varpool_get_node): Fix lookup.
22611
22612 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22613
22614 * config/spu/spu-protos.h: Do not include rtl.h. Protect
22615 RTL specific prototypes with #ifdef RTX_CODE.
22616 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
22617 * config/spu/t-spu-elf: Fix dependencies.
22618
22619 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
22620
22621 2010-05-29 Mike Stump <mikestump@comcast.net>
22622
22623 PR bootstrap/44315
22624 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
22625 TM_H when building to avoid dependency loops.
22626
22627 2010-05-29 Jan Hubicka <jh@suse.cz>
22628
22629 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
22630 refs and body; not the whole node for masters of materialized clones.
22631
22632 2010-05-29 Mike Stump <mikestump@comcast.net>
22633
22634 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
22635
22636 2010-05-29 Jan Hubicka <jh@suse.cz>
22637
22638 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
22639 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
22640 use of clone_function_name.
22641 * cgraph.h (cgraph_create_virtual_clone,
22642 cgraph_function_versioning): update prototypes.
22643 (clone_function_name): Declare.
22644 * ipa-cp.c (ipcp_insert_stage): Update call of
22645 cgraph_create_virtual_clone.
22646 * omp-low.c (create_omp_child_function_name): Use
22647 cgraph_create_virtual_clone.
22648 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
22649 (cgraph_function_versioning): Take SUFFIX argument; produce new name
22650 and make decl local.
22651
22652 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22653
22654 * vec.h: Include statistics.h
22655 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
22656 with VEC_H.
22657
22658 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22659
22660 * c-lex.c: Do not include c-tree.h.
22661 * c-pretty-print.c: Likewise.
22662 * c-opts.c: Likewise.
22663 * c-gimplify.c: Likewise.
22664 * c-common.c: Likewise.
22665 * c-dump.c: Likewise. Include c-common.h.
22666
22667 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22668
22669 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
22670 before including diagnostic-core.h.
22671 (c_cpp_error): New prototype moved from c-tree.h.
22672 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
22673 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
22674 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
22675 (c_cpp_error): Prototype moved to c-common.h.
22676 * Makefile.in: Update dependency for C_COMMON_H.
22677
22678 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22679
22680 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
22681 * c-common.c (c_register_addr_space): Remove here.
22682 * c-decl.c (c_register_addr_space): Re-add here.
22683
22684 2010-05-28 Mike Stump <mikestump@comcast.net>
22685
22686 * config/darwin-c.c: Remove c-tree.h include.
22687
22688 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22689
22690 * gcc.c: Include diagnostic.h.
22691 (error_count): Remove. All users changed to use errorcount.
22692 (programname): Remove. All users changed to use progname.
22693 (fancy_abort, internal_error, fatal_error, error, warning, inform,
22694 fnotice): Remove.
22695 (execute): Don't include "Internal error" and bug reporting
22696 information in argument of internal_error call.
22697 (process_command): Don't increment error_count after calling
22698 perror_with_name.
22699 (input_filename): Rename to gcc_input_filename. All users
22700 changed.
22701 (main): Call diagnostic_initialize. Register delete_temp_files
22702 with atexit. Use seen_error to test for errors.
22703 * gcc.h: Include diagnostic-core.h.
22704 (fatal_error, error, warning): Remove.
22705 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
22706 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
22707 (gcc.o): Update dependencies.
22708
22709 2010-05-28 Jeff Law <law@redhat.com>
22710
22711 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
22712 functions.
22713 * ira.h (ira_bad_reload_regno): Declare
22714 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
22715
22716 * ira-color.c (update_curr_costs): Free updated hard reg costs.
22717 (ira_reassign_conflict_allocnos): Remove bogus asserts.
22718 (allocno_reload_assign): Likewise.
22719
22720 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
22721
22722 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
22723 build1_stat.
22724
22725 2010-05-28 Richard Guenther <rguenther@suse.de>
22726
22727 PR lto/44312
22728 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
22729 Stream fixed-point constants mode.
22730 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
22731 and TYPE_PRECISION.
22732 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
22733 Stream fixed-point constants mode.
22734 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
22735 and TYPE_PRECISION.
22736
22737 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22738
22739 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
22740 only place it was called from.
22741 (number_of_latch_executions): Do not return chrec_dont_know when the
22742 may_be_zero is a runtime condition: instead, return a COND_EXPR
22743 including the may_be_zero condition.
22744 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
22745 of nb_iterations.
22746 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
22747 COND_EXPRs.
22748
22749 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22750
22751 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
22752 generate COND_EXPRs for degenerate_phi_result.
22753
22754 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22755
22756 PR middle-end/44293
22757 * tree-if-conv.c (if_convertible_loop_p): Check the
22758 if-convertibility of phi nodes in non predicated BBs.
22759
22760 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22761
22762 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
22763
22764 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22765
22766 PR driver/15303
22767 * gcc.c (inform, warning, inform): New functions.
22768 (fatal_ice): Rename to internal_error; change cmsgid parameter to
22769 gmsgid. All callers changed.
22770 (notice): Rename to fnotice; add parameter fp. All callers changed.
22771 (fatal_error): Rename to fatal_signal. All users changed.
22772 (fatal): Rename to fatal_error; change cmsgid parameter to
22773 gmsgid. All callers changed.
22774 (process_command): Use warning instead of error for warnings.
22775 (end_going_arg): Don't use _() around argument of error.
22776 (do_spec_1): Use inform for message from %n specs. Use warning
22777 instead of error for warnings.
22778 (main): Use inform for comparison messages. Use warning for
22779 message about unused linker input.
22780 (error): Increment error_count. Print "error: ".
22781 * gcc.h (fatal): Change to fatal_error.
22782 (warning): Declare.
22783 * config/darwin-driver.c (darwin_default_min_version): Use warning
22784 instead of fprintf for warnings.
22785 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
22786
22787 2010-05-28 Julian Brown <julian@codesourcery.com>
22788
22789 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
22790 (*thumb2_addsi3_compare0_scratch): New.
22791 * config/arm/constraints.md (Pv): New.
22792 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
22793 for ARM mode only.
22794 (*addsi3_compare0_scratch): Likewise.
22795
22796 2010-05-28 Jan Hubicka <jh@suse.cz>
22797
22798 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
22799 check.
22800 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
22801 only on local statics.
22802
22803 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
22804
22805 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
22806
22807 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
22808
22809 PR bootstrap/44314
22810 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
22811 (OPTION_GLIBC): Define.
22812
22813 2010-05-28 Jakub Jelinek <jakub@redhat.com>
22814
22815 PR debug/41048
22816 * dwarf2out.c (double_int_type_size_in_bits): New function.
22817 (round_up_to_align): Change first argument and return value to
22818 double_int.
22819 (field_byte_offset): Work internally on double_ints.
22820
22821 PR target/43636
22822 * builtins.c (expand_movstr): Use a temporary pseudo instead
22823 of target even when target is not NULL and not const0_rtx, but
22824 fails movstr predicate.
22825 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
22826
22827 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22828
22829 * final.c (rest_of_clean_state): Use %m in errors instead of
22830 strerror (errno).
22831 * gengtype.c (read_input_list, close_output_files): Use xstrerror
22832 instead of strerror.
22833 * toplev.c (process_options): Use %m in errors instead of strerror
22834 (errno).
22835 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
22836 (errno).
22837
22838 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
22839
22840 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
22841 (ix86_canonical_va_list_type): Make static. Add declaration.
22842 (ix86_enum_va_list): Make static. Reindent.
22843 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
22844 (ix86_canonical_va_list_type): Ditto.
22845 (ix86_enum_va_list): Ditto.
22846
22847 2010-05-28 Richard Guenther <rguenther@suse.de>
22848
22849 * lto-wrapper.c (run_gcc): With -save-temps generate a
22850 user-visible ltrans filename. Fixup ltrans unit numbering.
22851
22852 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
22853
22854 * c-common.c (c_common_nodes_and_builtins): Replace use
22855 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
22856 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
22857 to ix86_enum_va_list.
22858 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
22859 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
22860 (TARGET_ENUM_VA_LIST_P): Add hook description.
22861 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
22862 * target.h (gcc_target): Add enum_va_list hook.
22863
22864 PR bootstrap/44299
22865 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
22866 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
22867 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
22868
22869 2010-05-28 Alan Modra <amodra@gmail.com>
22870
22871 PR target/44266
22872 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
22873 emit_library_call machinery to set up __tls_get_addr calls.
22874
22875 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22876
22877 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
22878
22879 2010-05-28 Dodji Seketeli <dodji@redhat.com>
22880
22881 Revert fix for PR c++/44188
22882 * c-common.c (is_typedef_decl): Revert the moving of this
22883 definition ...
22884 * tree.c (is_typedef_decl): ... here.
22885 (typdef_variant_p): Revert the moving of this definition
22886 here from cp/tree.c.
22887 * c-common.h (is_typedef_decl): Revert the moving of this
22888 declaration ...
22889 * tree.h (is_typedef_decl): ... here.
22890 (typedef_variant_p): Revert the moving of this declaration here
22891 from cp/cp-tree.h
22892 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
22893 (gen_tagged_type_die): Revert the splitting out of ...
22894 (gen_type_die_with_usage): ... this function. Revert the anonymous
22895 tagged type handling.
22896 (gen_typedef_die): Revert emitting DW_TAG_typedef for
22897 typedefs naming anonymous tagged types.
22898
22899 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
22900
22901 * config/rs6000/rs6000-modes.def (PSImode): Delete.
22902
22903 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
22904
22905 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
22906 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
22907 throughout.
22908 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
22909 "xer" to "ca".
22910 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
22911 XER_REGS to CA_REGS throughout.
22912 * config/rs6000/rs6000.h: Same.
22913 (ADDITIONAL_REGISTER_NAMES): Add "xer".
22914 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
22915 that mode_iterator "P" is the size for arithmetic carries as well.
22916 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
22917
22918 2010-05-28 Jakub Jelinek <jakub@redhat.com>
22919
22920 PR bootstrap/44255
22921 * combine.c (struct rtx_subst_pair): Define unconditionally.
22922 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
22923 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
22924 Call make_compound_operation on pair->to.
22925 (propagate_for_debug): Don't call make_compound_operation here.
22926 Always use simplify_replace_fn_rtx.
22927
22928 2010-05-27 Sterling Augustine <sterling@tensilica.com>
22929
22930 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
22931 * config/xtensa/xtensa.c (override_options): Check
22932 TARGET_FORCE_NO_PIC and set flag_pic.
22933 * config/xtensa/xtensa.opt: Document -mforce-no-pic
22934
22935 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22936
22937 PR bootstrap/44299
22938 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
22939 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
22940
22941 2010-05-27 Joseph Myers <joseph@codesourcery.com>
22942
22943 * diagnostic-core.h: New. Contents moved from diagnostic.h and
22944 toplev.h.
22945 * diagnostic.c: Don't include toplev.h.
22946 (progname): Define. Moved from toplev.c.
22947 (seen_error): New function.
22948 * diagnostic.h: Include diagnostic-core.h.
22949 (diagnostic_t, emit_diagnostic): Don't declare here.
22950 * toplev.c (progname): Move to toplev.c.
22951 (emit_debug_global_declarations, compile_file, finalize,
22952 do_compile, toplev_main): Use seen_error.
22953 * toplev.h: Include diagnostic-core.h.
22954 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
22955 internal_error, warning, warning_at, error, error_n, error_at,
22956 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
22957 verbatim, fnotice, progname): Move to diagnostic-core.h.
22958 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
22959 (expand_builtin_expect): Use seen_error.
22960 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
22961 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
22962 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
22963 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
22964 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
22965 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
22966 errorcount for errors.
22967 * c-opts.c (c_common_finish): Use seen_error.
22968 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22969 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
22970 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
22971 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
22972 (get_coverage_counts): Use seen_error.
22973 * dwarf2out.c (dwarf2out_finish): Use seen_error.
22974 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
22975 gimplify_body): Use seen_error.
22976 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
22977 * ipa-pure-const.c (gate_pure_const): Use seen_error.
22978 * ipa-reference.c (gate_reference): Use seen_error.
22979 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
22980 * lambda-code.c: Include diagnostic-core.h instead of
22981 diagnostic.h.
22982 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22983 * lto-compress.c: Include diagnostic-core.h instead of
22984 diagnostic.h.
22985 * lto-section-in.c: Include diagnostic-core.h instead of
22986 diagnostic.h.
22987 * lto-streamer-out.c: Include diagnostic-core.h instead of
22988 diagnostic.h.
22989 * lto-streamer.c: Include diagnostic-core.h instead of
22990 diagnostic.h.
22991 (gate_lto_out): Use seen_error.
22992 * matrix-reorg.c: Include diagnostic-core.h instead of
22993 diagnostic.h.
22994 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
22995 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
22996 (gate_expand_omp, lower_omp_1): Use seen_error.
22997 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
22998 (rest_of_decl_compilation, rest_of_type_compilation,
22999 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
23000 * tree-cfg.c (label_to_block_fn): Use seen_error.
23001 * tree-inline.c (optimize_inline_calls): Use seen_error.
23002 * tree-mudflap.c (mudflap_finish_file): Use
23003 seen_error.
23004 * tree-optimize.c (gate_all_optimizations,
23005 gate_all_early_local_passes, gate_all_early_optimizations): Use
23006 seen_error.
23007 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
23008 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
23009 (varpool_remove_unreferenced_decls,
23010 varpool_assemble_pending_decls): Use seen_error.
23011 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
23012 (TOPLEV_H, DIAGNOSTIC_H): Update.
23013 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
23014 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
23015 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
23016 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
23017 coverage.o, lambda-code.o): Update dependencies.
23018
23019 2010-05-25 Dodji Seketeli <dodji@redhat.com>
23020
23021 PR c++/44188
23022 * c-common.c (is_typedef_decl): Move this definition ...
23023 * tree.c (is_typedef_decl): ... here.
23024 (typdef_variant_p): Move definition here from cp/tree.c.
23025 * c-common.h (is_typedef_decl): Move this declaration ...
23026 * tree.h (is_typedef_decl): ... here.
23027 (typedef_variant_p): Move declaration here from cp/cp-tree.h
23028 * dwarf2out.c (is_naming_typedef_decl): New function.
23029 (gen_tagged_type_die): Split out of ...
23030 (gen_type_die_with_usage): ... this function. When an anonymous
23031 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
23032 is emitted for the typedef.
23033 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
23034 anonymous tagged types.
23035
23036 2010-05-27 Jason Merrill <jason@redhat.com>
23037
23038 * print-tree.c (debug_vec_tree): New fn.
23039 (print_vec_tree): New fn.
23040 * tree.h: Declare them.
23041 * gdbinit.in (pvt): New command.
23042
23043 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
23044
23045 * gdbinit.in (pdd): New command.
23046
23047 2010-05-27 Jan Hubicka <jh@suse.cz>
23048
23049 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
23050 (update_caller_keys): Return early if there are no callers;
23051 only update fibheap when decresing the key.
23052 (update_callee_keys): Avoid recursion.
23053 (decide_inlining_of_small_functions): When badness does not match;
23054 re-insert into fibheap.
23055
23056 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
23057
23058 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
23059 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
23060 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
23061 (ALL_HOST_OBJS): Now a union of the above two.
23062 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
23063 all files in ALL_HOST_FRONTEND_OBJS.
23064 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
23065
23066 * c-common.c: Pretend to be a backend file by undefining
23067 IN_GCC_FRONTEND (still need rtl.h here).
23068
23069 2010-05-27 Jan Hubicka <jh@suse.cz>
23070
23071 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
23072 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
23073
23074 2010-05-27 Jan Hubicka <jh@suse.cz>
23075
23076 * sched-ebb.c: Rename struct deps to struct deps_desc.
23077 * ddg.c: Likewise.
23078 * sel-sched-ir.c: Likewise.
23079 * sched-deps.c: Likewise.
23080 * sched-int.h: Likewise.
23081 * sched-rgn.c: Likewise.
23082
23083 2010-05-27 Jon Beniston <jon@beniston.com>
23084
23085 PR 43726
23086 * config/lm32/lm32.h: Remove definition of
23087 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
23088
23089 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
23090
23091 PR lto/44230
23092 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
23093
23094 2010-05-27 Richard Guenther <rguenther@suse.de>
23095
23096 PR tree-optimization/44284
23097 * tree-vect-stmts.c (vectorizable_assignment): Handle
23098 sign-changing conversions as simple copy.
23099
23100 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
23101
23102 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
23103 Bionic C library.
23104 (__gthread_active_p): Check for pthread_create if compiling against
23105 Bionic C library.
23106
23107 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
23108
23109 Support compilation for Android platform. Reimplement -mandroid.
23110
23111 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
23112 (*android*): Set ANDROID_DEFAULT.
23113 (arm*-*-linux*): Include linux-android.h.
23114 (arm*-*-eabi*): Don't include previous -mandroid implementation.
23115 * config/arm/eabi.h: Remove, move Android-specific parts ...
23116 * config/linux-android.h: ... here. New file.
23117 * config/arm/eabi.opt: Rename to ...
23118 * config/linux-android.opt: ... this.
23119 (mandroid): Allow -mno-android option. Initialize based on
23120 ANDROID_DEFAULT.
23121 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
23122 Move logic to corresponding LINUX_TARGET_* macros.
23123 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
23124 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
23125 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
23126 Android definitions.
23127 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
23128 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
23129 Document.
23130
23131 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
23132
23133 Add support for Bionic C library
23134
23135 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
23136 macro.
23137 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
23138 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
23139
23140 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
23141 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
23142 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
23143 to support multiple C libraries. Handle Bionic.
23144 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
23145 (BIONIC_DYNAMIC_LINKER64): Define.
23146 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
23147 Update.
23148 (TARGET_HAS_SINCOS): Enable for Bionic.
23149
23150 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
23151 the last option specified on command line take effect.
23152 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
23153 (mbionic): New.
23154 (mglibc, muclibc): Update.
23155
23156 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
23157 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
23158 DEFAULT_LIBC.
23159
23160 * doc/invoke.texi (-mglibc, -muclibc): Update.
23161 (-mbionic): Document.
23162
23163 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23164
23165 * c-common.h (c_register_addr_space): Add prototype.
23166 (ADDR_SPACE_KEYWORD): Remove.
23167 * c-common.c (c_register_addr_space): New function.
23168 (c_addr_space_name): Reimplement.
23169 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
23170
23171 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
23172 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
23173
23174 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
23175 Remove TARGET_ADDR_SPACE_KEYWORDS.
23176
23177 2010-05-27 Joseph Myers <joseph@codesourcery.com>
23178
23179 * input.c: New file.
23180 * input.h (main_input_filename): Move declaration to toplev.h.
23181 * toplev.c (input_location, line_table): Move to input.c
23182 * toplev.h (main_input_filename): Move declaration from input.h.
23183 * tree.c (expand_location): Move to input.c.
23184 * Makefile.in (OBJS-common): Add input.o.
23185 (input.o): Add dependencies.
23186
23187 2010-05-27 Richard Guenther <rguenther@suse.de>
23188
23189 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
23190 for non-existant files.
23191 (fork_execute): Mark args_name file as deleted.
23192
23193 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
23194
23195 PR bootstrp/44287
23196 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
23197 (narrow_signed_type): Likewise.
23198
23199 2010-05-26 Jan Hubicka <jh@suse.cz>
23200
23201 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
23202 edge only when checking is enabled; check using former_clone_of;
23203 check inline clones too.
23204 (cgraph_materialize_clone): Record former_clone_of pointer.
23205 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
23206 combining redirections; dump args_to_skip bitmap
23207 (cgraph_materialize_all_clones): Do no redirection here.
23208 * ipa-inline.c (inline_transform): Do redirection here.
23209 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
23210 cheking only).
23211
23212 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
23213
23214 * config/avr/avr-c.c: Do not include regs.h.
23215 Include cpplib.h for cpp_define and tree.h for c-common.h.
23216 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
23217 * config/avr/t-avr: Fix dependencies for avr-c.o.
23218
23219 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
23220
23221 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
23222 string instead of SYMBOL_REF rtx.
23223 * rtl.h (set_stack_check_libfunc): Move prototype from here...
23224 * libfuncs.h: ...to here. Adjust for explow.c change.
23225
23226 2010-05-26 Joseph Myers <joseph@codesourcery.com>
23227
23228 * pretty-print.c: Don't include ggc.h.
23229 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
23230 (identifier_to_locale): Use them for allocation.
23231 * pretty-print.h (identifier_to_locale_alloc,
23232 identifier_to_locale_free): Declare.
23233 * toplev.c (alloc_for_identifier_to_locale): New.
23234 (general_init): Set identifier_to_locale_alloc and
23235 identifier_to_locale_free.
23236 * Makefile.in (pretty-print.o): Update dependencies.
23237
23238 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
23239
23240 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
23241 pointer types if they have different alignment or mode.
23242
23243 2010-05-26 Anatoly Sokolov <aesok@post.ru>
23244
23245 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23246 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23247 * config/sparc/sparc-protos.h (function_value): Remove declaration.
23248 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
23249 sparc_function_value_regno_p): New functions.
23250 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23251 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23252 (function_value): Rename to...
23253 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
23254 argument to 'outgoing'.
23255 (function_arg_record_value, function_arg_union_value,
23256 function_arg_vector_value): Update comment.
23257
23258 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
23259
23260 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
23261 (fde_needed_for_eh_p): New predicate.
23262 (output_call_frame_info): Use it throughout to decide whether FDEs
23263 are needed for EH purpose.
23264 (dwarf2out_begin_prologue): Reorder assignments.
23265
23266 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
23267
23268 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
23269 special case loop->header.
23270 (is_predicated): New.
23271 (if_convertible_loop_p): Call it.
23272
23273 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
23274
23275 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
23276 iterator in parameter. Do not generate code during the analysis.
23277 (tree_if_convert_cond_stmt): Removed.
23278 (tree_if_convert_stmt): Removed.
23279 (predicate_bbs): New.
23280 (if_convertible_loop_p): Call predicate_bbs.
23281 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
23282 now contains all the analysis part.
23283
23284 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
23285
23286 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
23287 statements in the analysis part.
23288 (tree_if_convert_stmt): Update comment.
23289 (remove_conditions_and_labels): New.
23290 (combine_blocks): Call remove_conditions_and_labels.
23291 (tree_if_conversion): Update comment.
23292
23293 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
23294
23295 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
23296 than 2 predecessors or more than 2 successors.
23297
23298 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
23299
23300 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
23301 of loops in which the data dependence analysis fails.
23302
23303 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
23304
23305 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
23306 CDI_POST_DOMINATORS.
23307 (tree_if_conversion): Same.
23308
23309 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
23310
23311 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
23312
23313 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
23314
23315 * tree-if-conv.c: Update copyright years. Fix comments.
23316 Fix indentation.
23317
23318 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
23319
23320 * builtin-types.def (BT_INT128): New primitive type.
23321 (BT_UINT128): Likewise.
23322 * c-common.c (c_common_r): Add __int128 keyword.
23323 (c_common_type_for_size): Handle __int128.
23324 (c_common_type_for_mode): Likewise.
23325 (c_common_signed_or_unsigned_type): Likewise.
23326 (c_common_nodes_and_builtins): Add builtin type
23327 if target supports 128-bit integer scalar.
23328 * c-common.h (enum rid): Add RID_INT128.
23329 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
23330 if target supports 128-bit integer scalar.
23331 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
23332 (finish_declspecs): Likewise.
23333 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
23334 (c_token_starts_declspecs): Likewise.
23335 (c_parser_declspecs): Likewise.
23336 (c_parser_attributes): Likewise.
23337 (c_parser_objc_selector): Likewise.
23338 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
23339 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
23340 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
23341 * tree.c (make_or_reuse_type): Likewise.
23342 (make_unsigned_type): Likewise.
23343 (build_common_tree_nodes_2): Likewise.
23344 * tree.h (enum integer_type_kind): Add itk_int128 and
23345 itk_unsigned_int128.
23346 (int128_integer_type_node): New define.
23347 (int128_unsigned_type_node): New define.
23348 * doc/extend.texi: Add documentation about __int128 type.
23349
23350 2010-05-26 Richard Guenther <rguenther@suse.de>
23351
23352 * tree-ssa-sccvn.c (copy_nary): Adjust.
23353 (copy_phis): Rename to ...
23354 (copy_phi): ... this. Adjust.
23355 (copy_references): Rename to ...
23356 (copy_reference): ... this. Adjust.
23357 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
23358 result into the valid table.
23359
23360 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
23361
23362 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
23363 insn-config.h, insn-codes.h, recog.h, and optabs.h.
23364
23365 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23366
23367 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
23368
23369 2010-05-26 Richard Guenther <rguenther@suse.de>
23370
23371 * opts.c (common_handle_option): Handle OPT_Ofast.
23372
23373 2010-05-26 Joseph Myers <joseph@codesourcery.com>
23374
23375 * diagnostic.c: Don't include opts.h.
23376 (permissive_error_option): Define.
23377 (diagnostic_initialize): Take n_opts parameter. Allocate memory
23378 for classify_diagnostic. Don't use memset for
23379 classify_diagnostic. Initialize new and recently added fields.
23380 (diagnostic_classify_diagnostic): Use context->n_opts instead of
23381 N_OPTS.
23382 (diagnostic_report_diagnostic): Pass context parameter to
23383 diagnostic_report_warnings_p. Use option_enabled and option_name
23384 hooks from context.
23385 (emit_diagnostic): Use permissive_error_option.
23386 (permerror): Likewise.
23387 * diagnostic.h: Don't include options.h.
23388 (struct diagnostic_context): Add n_opts, opt_permissive,
23389 inhibit_warnings, warn_system_headers, option_enabled and
23390 option_name fields. Change classify_diagnostic to a pointer.
23391 * opts-diagnostic.h: New file.
23392 * opts.c: Include opts-diagnostic.h.
23393 (common_handle_option): Set global_dc fields for -Wfatal-errors,
23394 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
23395 (option_name): New function.
23396 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
23397 (c_common_handle_option): Set global_dc->permissive for
23398 -fpermissive.
23399 * c-common.c (c_cpp_error): Save and restore
23400 global_dc->warn_system_headers, not variable warn_system_headers.
23401 * toplev.c: Include opts-diagnostic.h.
23402 (general_init): Update call to diagnostic_initialize. Set
23403 global_dc->show_column, global_dc->option_enabled and
23404 global_dc->option_name.
23405 (process_options): Don't set global_dc fields here.
23406 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
23407 (diagnostic.o, opts.o, toplev.o): Update dependencies.
23408
23409 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
23410
23411 * config/picochip/picochip.md (movsi): Split a movsi from a
23412 const after reload.
23413
23414 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23415
23416 * ggc-zone.c: Update copyright year.
23417 (poison_region): Mark memory for Valgrind as undefined before
23418 memset () call and inaccessible afterwards.
23419 (ggc_pch_total_size): Change type of i to int.
23420
23421 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23422
23423 * ggc-common.c (ggc_free_overhead): Allow empty slot.
23424
23425 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23426
23427 * ggc-common.c: Update copyright year.
23428 (ggc_rlimit_bound): Remove prototype. Compile only if
23429 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
23430 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
23431 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
23432 (ggc_min_heapsize_heuristic): Likewise.
23433
23434 2010-05-26 Richard Guenther <rguenther@suse.de>
23435
23436 PR rtl-optimization/44164
23437 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
23438 no-common access-path disambiguation.
23439 (indirect_ref_may_alias_decl_p): Adjust.
23440 (indirect_refs_may_alias_p): Likewise.
23441 (refs_may_alias_p_1): Likewise.
23442
23443 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
23444
23445 * c-typeck.c: Do not include expr.h.
23446
23447 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
23448
23449 * rtl.h (decl_default_tls_model): Move prototype from here...
23450 * output.h: ...to here.
23451 * c-decl.c: Do not include rtl.h.
23452 * c-pragma.c: Likewise.
23453 * c-parser.c: Likewise.
23454 * c-gimplify.c: Likewise. And also not hard-reg-set.
23455 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
23456 FIXME note for it. Add a FIXME note for expr.h.
23457 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
23458 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
23459 defined.
23460
23461 2010-05-26 Jakub Jelinek <jakub@redhat.com>
23462
23463 PR target/44199
23464 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
23465 or total_size is larger than red zone size for non-V4 ABI, emit a
23466 stack_tie resp. frame_tie insn before stack pointer restore.
23467 * config/rs6000/rs6000.md (frame_tie): New insn.
23468
23469 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
23470
23471 * function.h (struct function): Add can_throw_non_call_exceptions bit.
23472 * lto-streamer-in.c (input_function): Stream it in.
23473 * lto-streamer-out.c (output_function): Stream it out.
23474 * function.c (allocate_struct_function): Set it.
23475 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
23476 for flag_non_call_exceptions.
23477 * cfgbuild.c (control_flow_insn_p): Likewise.
23478 (make_edges): Likewise.
23479 * cfgexpand.c (expand_stack_alignment): Likewise.
23480 * combine.c (distribute_notes): Likewise.
23481 * cse.c (cse_extended_basic_block): Likewise.
23482 * except.c (insn_could_throw_p): Likewise.
23483 * gcse.c (simple_mem): Likewise.
23484 * ipa-pure-const.c (check_call): Likewise.
23485 (check_stmt ): Likewise.
23486 * lower-subreg.c (lower-subreg.c): Likewise.
23487 * optabs.c (emit_libcall_block): Likewise.
23488 (prepare_cmp_insn): Likewise.
23489 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
23490 * postreload.c (rest_of_handle_postreload): Likewise.
23491 * reload1.c (reload_as_needed): Likewise.
23492 (emit_input_reload_insns): Likewise.
23493 (emit_output_reload_insns): Likewise.
23494 (fixup_abnormal_edges): Likewise.
23495 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
23496 * store-motion.c (find_moveable_store): Likewise.
23497 * tree-eh.c (stmt_could_throw_p): Likewise.
23498 (tree_could_throw_p): Likewise.
23499 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23500 * config/arm/arm.c (arm_expand_prologue): Likewise.
23501 (thumb1_expand_prologue): Likewise.
23502 * config/rx/rx.md (cbranchsf4): Likewise.
23503 (cmpsf): Likewise.
23504 * config/s390/s390.c (s390_emit_prologue): Likewise.
23505 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
23506 (inline_forbidden_into_p): New predicate.
23507 (expand_call_inline): Use it to forbid inlining.
23508 (tree_can_inline_p): Likewise.
23509
23510 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
23511
23512 * config/i386/i386-c.c: Do not include rtl.h.
23513 * config/i386/t-i386: Update dependencies.
23514
23515 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
23516
23517 * attribs.c: Do not include rtl.h.
23518 * Makefile.in: Update dependencies.
23519
23520 2010-05-25 Anatoly Sokolov <aesok@post.ru>
23521
23522 * double-int.h (double_int_and): New.
23523 * combine.c (try_combine): Clean up, use double_int_* and
23524 immed_double_int_const functions.
23525
23526 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23527
23528 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
23529 stderr to /dev/null instead of grep -q.
23530 * configure: Regenerate.
23531
23532 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
23533
23534 * Makefile.in (EXCEPT_H): Fix typo.
23535
23536 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
23537
23538 * ira-build.c (update_conflict_hard_reg_costs): New.
23539 (ira_build): Call update_conflict_hard_reg_costs.
23540
23541 2010-05-25 Jakub Jelinek <jakub@redhat.com>
23542
23543 PR debug/41371
23544 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
23545 ENABLE_CHECKING.
23546 (intersect_loc_chains): Walk the s2var's loc_chain together
23547 with s1node chain as long as the locations are equal, don't
23548 call find_loc_in_1pdv in that case.
23549
23550 PR debug/42801
23551 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
23552 (copy_bind_expr): ... instead of here.
23553 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
23554 if the block hasn't been remapped.
23555 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
23556 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
23557
23558 2010-05-25 Richard Guenther <rguenther@suse.de>
23559
23560 PR middle-end/44069
23561 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
23562 out-of-bounds array accesses.
23563
23564 2010-05-25 Richard Guenther <rguenther@suse.de>
23565
23566 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
23567 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
23568 (run_gcc): Re-organize to make cleanup easier.
23569
23570 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23571
23572 * config/s390/s390.c (optimization_options): Fix and move the
23573 flag_prefetch_loop_arrays override ...
23574 (override_options): ... here.
23575
23576 2010-05-25 Joseph Myers <joseph@codesourcery.com>
23577
23578 * diagnostic.c: Don't include plugin.h.
23579 (diagnostic_report_diagnostic): Don't handle plugins specially
23580 here. Pass context to internal_error callback.
23581 * diagnostic.h (struct diagnostic_context): Add context parameter
23582 to internal_error callback.
23583 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
23584 * plugin.h (struct diagnostic_context): Declare.
23585 (warn_if_plugins, plugins_internal_error_function): Declare.
23586 * toplev.c (general_init): Set global_dc->internal_error.
23587 * Makefile.in (diagnostic.o): Update dependencies.
23588
23589 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
23590
23591 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
23592 * config/rs6000/t-darwin64: New.
23593 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
23594 build crt2.
23595
23596 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
23597
23598 PR 44203
23599 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
23600 match the original (and intended) behaviour before r159557. This
23601 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
23602 in two ways.
23603
23604 2010-05-25 Richard Guenther <rguenther@suse.de>
23605
23606 * doc/invoke.texi: Document -Ofast.
23607 * target.h (struct gcc_target): Add handle_ofast.
23608 * target-def.h (TARGET_HANDLE_OFAST): Add.
23609 (TARGET_INITIALIZER): Adjust.
23610 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
23611 * common.opt (Ofast): Add.
23612
23613 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
23614
23615 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
23616 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
23617
23618 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
23619
23620 PR target/43610
23621 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
23622 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
23623 false_rtx. Use false_rtx to compute the correct *ptest for reversed
23624 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
23625
23626 2010-05-25 Jakub Jelinek <jakub@redhat.com>
23627
23628 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
23629 DW_OP_minus with negated offset instead of DW_OP_plus.
23630 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
23631
23632 2010-05-25 Wei Guozhi <carrot@google.com>
23633
23634 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
23635 tst instruction and a new alternative.
23636 * config/arm/constraints.md (Pu): New constraint.
23637
23638 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
23639
23640 * function.c (assign_stack_local_1): Initialize variable
23641 to avoid warning when bootstrapping at -O3.
23642
23643 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
23644
23645 * configure.ac (all_lang_makefiles): Remove everything related to it.
23646 * configure: Regenerate.
23647 * Makefile.in: Fix reference to ada Make-lang.in.
23648 Remove support for LANG_MAKEFILES.
23649
23650 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
23651 Sandra Loosemore <sandra@codesourcery.com>
23652
23653 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
23654 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
23655 description. Add arm_neon_fp16_ok.
23656 (Add Options): Add arm_neon and arm_neon_fp16.
23657
23658 2010-05-24 Joseph Myers <joseph@codesourcery.com>
23659
23660 * diagnostic.c: Don't include flags.h.
23661 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
23662 context parameters. Check flags in the context passed as a parameter.
23663 (diagnostic_build_prefix): Add context parameter. Check
23664 show_column flag in context.
23665 (diagnostic_action_after_output): Check fatal_errors flag in context.
23666 (diagnostic_report_current_module): Check show_column flag in context.
23667 (default_diagnostic_starter): Update call to
23668 diagnostic_build_prefix.
23669 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
23670 (emit_diagnostic): Pass context to permissive_error_kind.
23671 (permerror): Pass context to permissive_error_kind.
23672 * diagnostic.h (struct diagnostic_context): Add show_column,
23673 pedantic_errors, permissive and fatal_errors fields.
23674 (diagnostic_build_prefix): Update prototype.
23675 * langhooks.c
23676 * toplev.c (process_options): Set flags in global_dc from
23677 flag_show_column, flag_pedantic_errors, flag_permissive,
23678 flag_fatal_errors.
23679 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
23680 to diagnostic_build_prefix.
23681 * Makefile.in (diagnostic.o): Update dependencies.
23682
23683 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
23684
23685 * config/i386/ia32intrin.h (__crc32q): Define only if
23686 __SSE4_2__ is defined.
23687
23688 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
23689
23690 PR target/44132
23691 PR middle-end/43602
23692 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
23693 DECL_VISIBILITY_SPECIFIED.
23694 (emutls_decl): Set DECL_PRESERVE_P and copy
23695 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
23696 (emutls_finalize_control_var): New callback.
23697 (emutls_finish): Finalize emutls control variables.
23698 * toplev.c (compile_file): Move the call to emutls_finish ()
23699 before varpool_assemble_pending_decls ().
23700
23701 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
23702
23703 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
23704 added to the preprocessor condition.
23705
23706 2010-05-24 Paul Brook <paul@codesourcery.com>
23707
23708 * gengtype-lex.l: Add HARD_REG_SET.
23709 * expr.c (expand_expr_real_1): Record writes to hard registers.
23710 * function.c (rtl_data): Add asm_clobbers.
23711 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
23712 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
23713 Use crtl->asm_clobbers.
23714
23715 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23716
23717 * doc/makefile.texi (Makefile): Mention stages 'profile'
23718 and 'feedback' for profiledbootstrap.
23719
23720 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
23721
23722 PR target/44245
23723 * config/i386/i386.c (def_builtin): Properly check
23724 OPTION_MASK_ISA_64BIT.
23725
23726 2010-05-23 Joseph Myers <joseph@codesourcery.com>
23727
23728 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
23729 typedefs with different but compatible types. Allow duplicate
23730 typedefs with the same type except for pedantic non-C1X, but give
23731 warning for variably modified types.
23732 * c-typeck.c (tagged_types_tu_compatible_p,
23733 function_types_compatible_p, type_lists_compatible_p,
23734 comptypes_internal): Add parameter different_types_p; set
23735 *different_types_p for different but compatible types. All
23736 callers changed.
23737 (comptypes_check_different_types): New.
23738 * c-tree.h (comptypes_check_different_types): Declare.
23739
23740 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
23741
23742 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
23743 * jump.c: Include basic-block.h.
23744 * profile.c: Likewise.
23745 * tree-profile.c: Likewise.
23746 * coverage.c: Likewise.
23747 * basic-block.h (optimize_function_for_size_p): Move to function.h.
23748 (optimize_function_for_speed_p): Likewise.
23749 * function.h (optimize_function_for_size_p,
23750 optimize_function_for_speed_p): Moved here from basic-block.h.
23751 * Makefile.in: Update dependencies.
23752
23753 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23754
23755 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
23756 before calling make; allow override through $MAKE.
23757 * doc/invoke.texi (Optimize Options): Document override.
23758
23759 2010-05-23 Anatoly Sokolov <aesok@post.ru>
23760
23761 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
23762 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23763 (rs6000_mode_dependent_address_ptr): Make static.
23764 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23765 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
23766 Remove.
23767
23768 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
23769
23770 PR target/43869
23771 * config/i386/i386.c: Make sure that the correct regparm is passed.
23772
23773 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
23774
23775 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
23776 * sbitmap.c: ...to here to internalize sbitmap element access.
23777 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
23778 Explain why basic-block.h is included.
23779 * function.h: Include tm.h for CUMULATIVE_ARGS.
23780 * Makefile.in: Update dependencies.
23781
23782 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
23783
23784 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
23785 New core types.
23786 * sbitmap.h (struct sbitmap_def): Do not typedef here.
23787 * sbitmap.c: Include sbitmap.h.
23788 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
23789 hard-reg-set.h. Split everything related to regsets out from here...
23790 * regset.h: ...to here. New file.
23791 * df.h: Include regset.h and sbitmap.h.
23792 * tree-flow.h: Likewise.
23793 * cfgloop.h: Likewise.
23794 * except.h: Do not include sbitmap.h. Include hashtab.h.
23795 * cgraph.h: Include vec.h and function.h.
23796 * reload.h (struct insn_chain): Change types of live_throughout
23797 and dead_or_set from regset_head to bitmap_head.
23798 (compute_use_by_pseudos): Be defined also if regset.h is not included.
23799 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
23800 spilled_regs from regset_head to bitmap_head to avoid dependency
23801 in regset.h.
23802 * sel-sched-ir.h: Include regset.h.
23803 * reload.c: Include df.h before reload.h.
23804 * caller-save.c: Likewise.
23805 * reload1.c: Likewise.
23806 * ira.c: Likewise.
23807 (mark_elimination): Update type of r to bitmap, consistent with
23808 DF_LR_IN.
23809 * dominance.c: Include bitmap.h.
23810 * modulo-sched.c: Include df.h.
23811 * cfganal.c: Include bitmap.h and sbitmap.h.
23812 * cfgbuild.c: Include sbitmap.h.
23813 * lcm.c: Include sbitmap.h.
23814 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
23815 * domwalk.c: Include sbitmap.h, exclude ggc.h.
23816 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
23817 * cselib.c: Include bitmap.h.
23818 * tree-optimize.c: Include regset.h.
23819 * stmt.c: Include bitmap.h.
23820 * Makefile.in: Update dependencies.
23821
23822 2010-05-22 Jan Hubicka <jh@suse.cz>
23823
23824 * cgraph.h (struct varpool_node): Add same_comdat_group.
23825 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
23826 pointer.
23827 (output_varpool): Update call of lto_output_varpool_node.
23828 (input_varpool): Read same_comdat_group pointer.
23829 (input_varpool_1): Fixup same_comdat_group pointer.
23830 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
23831 group is needed, all are.
23832 * varpool.c (varpool_remove_node): Remove node from same comdat group
23833 linklist too.
23834 (varpool_analyze_pending_decls): Walk same comdat groups.
23835
23836 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
23837
23838 * rtl.h (union rtunion_def): Remove rt_bit member.
23839 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
23840 * print-rtl (print_rtx): Do not print the member.
23841 * gengtype.c (adjust_field_rtx_def): Do not handle it.
23842 * gengenrtl.c (type_from_format): Likewise.
23843 (accessor_from_format): Likewise.
23844
23845 2010-05-22 Joseph Myers <joseph@codesourcery.com>
23846
23847 * dbgcnt.c: Include toplev.h instead of errors.h.
23848 * ira-emit.c: Don't include errors.h.
23849 * ira.c: Include toplev.h instead of errors.h.
23850 * lto-compress.c: Include toplev.h instead of errors.h.
23851 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
23852 ira.o, dbgcnt.o): Update dependencies.
23853
23854 2010-05-22 Richard Guenther <rguenther@suse.de>
23855
23856 * gimple.c (gimple_types_compatible_p): Check type qualifications
23857 before merging pointer to complete and pointer to incomplete type.
23858 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
23859 we use our own resolution algorithm. The gold linker plugin
23860 doesn't do the job we want it to do here.
23861
23862 2010-05-22 Anatoly Sokolov <aesok@post.ru>
23863
23864 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23865 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23866 (sparc_mode_dependent_address_p): New function.
23867
23868 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23869
23870 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
23871
23872 * timevar.c: Do not include any core headers.
23873 (timevar_print): De-i18n-ize.
23874 (print_time): Likewise.
23875 * timevar.h (timevar_push, timevar_pop): Make inline functions.
23876
23877 2010-05-21 Joseph Myers <joseph@codesourcery.com>
23878
23879 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
23880 langhooks-def.h.
23881 (diagnostic_initialize): Initialize x_data not last_function.
23882 (diagnostic_report_current_function): Move to tree-diagnostic.c.
23883 (default_diagnostic_starter): Call
23884 diagnostic_report_current_module not
23885 diagnostic_report_current_function.
23886 (diagnostic_report_diagnostic): Initialize x_data not
23887 abstract_origin.
23888 (verbatim): Likewise.
23889 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
23890 x_data.
23891 (struct diagnostic_context): Change last_function to x_data.
23892 (diagnostic_auxiliary_data): Replace with
23893 diagnostic_context_auxiliary_data and
23894 diagnostic_info_auxiliary_data.
23895 (diagnostic_last_function_changed, diagnostic_set_last_function,
23896 diagnostic_report_current_function): Move to tree-diagnostic.h.
23897 (print_declaration, dump_generic_node, print_generic_stmt,
23898 print_generic_stmt_indented, print_generic_expr,
23899 print_generic_decl, debug_c_tree, dump_omp_clauses,
23900 print_call_name, debug_generic_expr, debug_generic_stmt,
23901 debug_tree_chain, default_tree_printer): Move to
23902 tree-pretty-print.h.
23903 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
23904 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
23905 gimple-pretty-print.h.
23906 * pretty-print.c: Don't include tree.h
23907 (pp_base_format): Don't handle %K here.
23908 (pp_base_tree_identifier): Move to tree-pretty-print.c.
23909 * pretty-print.h (text_info): Change abstract_origin to x_data.
23910 (pp_tree_identifier, pp_unsupported_tree,
23911 pp_base_tree_identifier): Move to tree-pretty-print.h.
23912 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
23913 tree-pretty-print.h: New files.
23914 * tree-pretty-print.c: Include tree-pretty-print.h.
23915 (percent_K_format): New. Moved from pretty-print.c.
23916 (pp_base_tree_identifier): Move from pretty-print.c.
23917 * c-objc-common.c: Include tree-pretty-print.h.
23918 (c_tree_printer): Handle %K here.
23919 * langhooks.c: Include tree-diagnostic.h.
23920 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
23921 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
23922 (default_tree_printer): Handle %K using percent_K_format.
23923 (general_init): Use default_tree_diagnostic_starter.
23924 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
23925 (free_lang_data): Use default_tree_diagnostic_starter.
23926 * c-pretty-print.c: Include tree-pretty-print.h.
23927 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23928 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23929 * dwarf2out.c: Include tree-pretty-print.h.
23930 * except.c: Include tree-pretty-print.h.
23931 * gimple-pretty-print.c: Include tree-pretty-print.h and
23932 gimple-pretty-print.h.
23933 * gimplify.c: Include tree-pretty-print.h.
23934 * graphite-poly.c: Include tree-pretty-print.h and
23935 gimple-pretty-print.h.
23936 * ipa-cp.c: Include tree-pretty-print.h.
23937 * ipa-inline.c: Include gimple-pretty-print.h.
23938 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23939 * ipa-pure-const.c: Include gimple-pretty-print.h.
23940 * ipa-struct-reorg.c: Include tree-pretty-print.h and
23941 gimple-pretty-print.h.
23942 * ipa-type-escape.c: Include tree-pretty-print.h.
23943 * print-rtl.c: Include tree-pretty-print.h.
23944 * print-tree.c: Include gimple-pretty-print.h.
23945 * sese.c: Include tree-pretty-print.h.
23946 * tree-affine.c: Include tree-pretty-print.h.
23947 * tree-browser.c: Include tree-pretty-print.h.
23948 * tree-call-cdce.c: Include gimple-pretty-print.h.
23949 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23950 * tree-chrec.c: Include tree-pretty-print.h.
23951 * tree-data-ref.c: Include tree-pretty-print.h and
23952 gimple-pretty-print.h.
23953 * tree-dfa.c: Include tree-pretty-print.h.
23954 * tree-if-conv.c: Include tree-pretty-print.h and
23955 gimple-pretty-print.h.
23956 * tree-inline.c: Include tree-pretty-print.h.
23957 * tree-into-ssa.c: Include tree-pretty-print.h and
23958 gimple-pretty-print.h.
23959 * tree-nrv.c: Include tree-pretty-print.h.
23960 * tree-object-size.c: Include tree-pretty-print.h and
23961 gimple-pretty-print.h.
23962 * tree-outof-ssa.c: Include tree-pretty-print.h and
23963 gimple-pretty-print.h.
23964 * tree-parloops.c: Include tree-pretty-print.h and
23965 gimple-pretty-print.h.
23966 * tree-predcom.c: Include tree-pretty-print.h and
23967 gimple-pretty-print.h.
23968 * tree-scalar-evolution.c: Include tree-pretty-print.h and
23969 gimple-pretty-print.h.
23970 * tree-sra.c: Include tree-pretty-print.h.
23971 * tree-ssa-address.c: Include tree-pretty-print.h.
23972 * tree-ssa-alias.c: Include tree-pretty-print.h.
23973 * tree-ssa-ccp.c: Include tree-pretty-print.h and
23974 gimple-pretty-print.h.
23975 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
23976 * tree-ssa-copy.c: Include tree-pretty-print.h and
23977 gimple-pretty-print.h.
23978 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
23979 * tree-ssa-dce.c: Include tree-pretty-print.h and
23980 gimple-pretty-print.h.
23981 * tree-ssa-dom.c: Include tree-pretty-print.h and
23982 gimple-pretty-print.h.
23983 * tree-ssa-dse.c: Include gimple-pretty-print.h.
23984 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
23985 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
23986 * tree-ssa-live.c: Include tree-pretty-print.h and
23987 gimple-pretty-print.h.
23988 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
23989 gimple-pretty-print.h.
23990 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
23991 gimple-pretty-print.h.
23992 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
23993 gimple-pretty-print.h.
23994 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
23995 gimple-pretty-print.h.
23996 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
23997 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
23998 * tree-ssa-operands.c: Include tree-pretty-print.h and
23999 gimple-pretty-print.h.
24000 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
24001 gimple-pretty-print.h.
24002 * tree-ssa-pre.c: Include tree-pretty-print.h and
24003 gimple-pretty-print.h.
24004 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
24005 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
24006 gimple-pretty-print.h.
24007 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
24008 gimple-pretty-print.h.
24009 * tree-ssa-sink.c: Include gimple-pretty-print.h.
24010 * tree-ssa-ter.c: Include tree-pretty-print.h and
24011 gimple-pretty-print.h.
24012 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
24013 * tree-ssa.c: Include tree-pretty-print.h and
24014 gimple-pretty-print.h.
24015 * tree-stdarg.c: Include gimple-pretty-print.h.
24016 * tree-switch-conversion.c: Include gimple-pretty-print.h.
24017 * tree-tailcall.c: Include tree-pretty-print.h and
24018 gimple-pretty-print.h.
24019 * tree-vect-data-refs.c: Include tree-pretty-print.h and
24020 gimple-pretty-print.h.
24021 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
24022 gimple-pretty-print.h.
24023 * tree-vect-loop.c: Include tree-pretty-print.h and
24024 gimple-pretty-print.h.
24025 * tree-vect-patterns.c: Include gimple-pretty-print.h.
24026 * tree-vect-slp.c: Include tree-pretty-print.h and
24027 gimple-pretty-print.h.
24028 * tree-vect-stmts.c: Include tree-pretty-print.h and
24029 gimple-pretty-print.h.
24030 * tree-vectorizer.c: Include tree-pretty-print.h.
24031 * tree-vrp.c: Include tree-pretty-print.h and
24032 gimple-pretty-print.h.
24033 * value-prof.c: Include tree-pretty-print.h and
24034 gimple-pretty-print.h.
24035 * var-tracking.c: Include tree-pretty-print.h.
24036 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
24037 (tree-diagnostic.o): New dependencies.
24038 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
24039 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
24040 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
24041 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
24042 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
24043 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
24044 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
24045 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
24046 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
24047 tree-ssa-address.o, tree-ssa-loop-niter.o,
24048 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
24049 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
24050 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
24051 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
24052 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
24053 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
24054 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
24055 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
24056 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
24057 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
24058 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
24059 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
24060 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
24061 tree-switch-conversion.o, var-tracking.o, value-prof.o,
24062 cfgexpand.o, pretty-print.o): Update dependencies.
24063
24064 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
24065
24066 * tree-ssa-structalias.c: Remove tm_p.h from include.
24067
24068 2010-05-21 Jeff Law <law@redhat.com>
24069
24070 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
24071
24072 2010-05-21 Jason Merrill <jason@redhat.com>
24073
24074 * tree-eh.c (cleanup_is_dead_in): New.
24075 (lower_try_finally): Don't generate a dead cleanup region.
24076 (lower_cleanup): Likewise.
24077
24078 2010-05-21 Jakub Jelinek <jakub@redhat.com>
24079
24080 PR debug/44223
24081 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
24082 unchain each use from the cyclic next_regno_use chain first.
24083
24084 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
24085
24086 * real: Do not include gmp.h, mpfr.h, and mpc.h.
24087 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
24088 (real_value_negate, real_value_abs): New prototypes.
24089 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
24090 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
24091 new include file for interface between MPFR and REAL_VALUE_TYPE.
24092 * real.c: Include realmpfr.h.
24093 (real_arithmetic2): Remove legacy function.
24094 (real_value_negate): New.
24095 (real_value_abs): New.
24096 (mfpr_from_real, real_from_mpfr): Move from here...
24097 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
24098 * builtins.c: Include realmpfr.h.
24099 * fold-const.c: Include realmpfr.h.
24100 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
24101 (fold_negate_const): Likewise.
24102 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
24103 * toplev.c: Include realmpfr.h.
24104 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
24105 and real_value_negate.
24106 * fixed-value.c (check_real_for_fixed_mode): Likewise.
24107 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
24108 (vfp3_const_double_index): Likewise.
24109 (arm_print_operand): Likewise.
24110 * Makefile.in: Update dependencies.
24111
24112 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24113
24114 * config/s390/s390.c (override_options): Increase the default
24115 of max-completely-peel-times.
24116
24117 2010-05-21 Julian Brown <julian@codesourcery.com>
24118 Mark Mitchell <mark@codesourcery.com>
24119
24120 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
24121 sibling calls for Thumb-1.
24122 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
24123 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
24124 Thumb-2.
24125 (*call_insn, *call_value_insn): Don't use for Thumb-2.
24126 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
24127 for Thumb-2.
24128 (return): New expander.
24129 (*arm_return): New name for ARM return insn.
24130 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
24131
24132 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
24133
24134 * config.gcc (sparc64-*-rtems*): New target.
24135
24136 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
24137
24138 * tree.c (build_function_decl_skip_args): Fix grammar.
24139 (build_function_type_list_1): Fix typos, adjust formatting.
24140
24141 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
24142
24143 * tree.h: Include real.h and fixed-value.h as basic datatypes.
24144 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
24145 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
24146 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
24147 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
24148 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
24149 tree-pretty-print.c, tree-loop-distribution.c,
24150 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
24151 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
24152 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
24153 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
24154 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
24155 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
24156 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
24157 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
24158 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
24159 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
24160 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
24161 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
24162 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
24163 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
24164 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
24165 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
24166 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
24167 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
24168 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
24169 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
24170 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
24171 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
24172 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
24173 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
24174 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
24175 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
24176 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
24177 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
24178 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
24179 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
24180 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
24181 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
24182 config/score/score7.c, config/score/score.c, config/arm/arm.c,
24183 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
24184 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
24185 config/bfin/bfin.c: Clean up redundant includes.
24186 * Makefile.in: Update accordingly.
24187
24188 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
24189
24190 PR middle-end/44204
24191 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
24192 statement has no arguments.
24193
24194 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
24195
24196 PR/44139
24197 * varasm.c (emutls_decl): Merge attributes to new decl.
24198
24199 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
24200
24201 PR middle-end/44101
24202 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
24203 around the uniquized constructor if its type requires a conversion.
24204
24205 2010-05-21 Jakub Jelinek <jakub@redhat.com>
24206
24207 PR debug/44205
24208 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
24209 at -O0 goto_locus of any of the incoming edges differs from
24210 goto_locus of outgoing edge, or gimple_location of any of the
24211 labels differs.
24212
24213 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
24214
24215 * ira.c (ira_non_ordered_class_hard_regs): Define.
24216 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
24217 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
24218 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
24219 cost of unaligned hard regs when allocating multi-reg pseudos.
24220
24221 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
24222
24223 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
24224 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
24225 for TARGET_NO_FLOAT.
24226 * config/mips/mips.c (mips_file_start): Expand conditional expression
24227 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
24228 (mips_override_options): Move -mno-float override -msoft-float and
24229 -mhard-float.
24230 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
24231 Condition(TARGET_SUPPORTS_NO_FLOAT).
24232 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
24233 __mips_no_float here.
24234 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
24235 (TARGET_SUPPORTS_NO_FLOAT): Define.
24236 * config/mips/sdemtk.opt: Delete.
24237
24238 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
24239
24240 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
24241
24242 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
24243
24244 PR target/43733
24245 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
24246 * configure: Regenerate.
24247 * config.in: Regenerate.
24248 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
24249 instead of sahf only for 64bit targets.
24250
24251 2010-05-20 Jakub Jelinek <jakub@redhat.com>
24252
24253 PR debug/44178
24254 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
24255 setup_ref_regs for DEBUG_INSNs.
24256
24257 2010-05-20 Jan Hubicka <jh@suse.cz>
24258
24259 PR middle-end/44197
24260 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
24261
24262 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
24263
24264 PR bootstrap/43870
24265 * df-scan.c (df_ref_compare): Stabilize sort.
24266
24267 2010-05-20 Jakub Jelinek <jakub@redhat.com>
24268
24269 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
24270 argument. Don't use DW_OP_piece if offset is non-zero,
24271 put offset into second DW_OP_bit_piece argument.
24272 (dw_sra_loc_expr): Adjust callers. For memory expressions
24273 compute offset.
24274
24275 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
24276
24277 PR target/44202
24278 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
24279 settings for 16-bit-constant "addo" alternative.
24280
24281 2010-05-19 James E. Wilson <wilson@codesourcery.com>
24282
24283 * config/mips/mips-dsp.md (add<DSPV:mode>3,
24284 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
24285
24286 PR target/43764
24287 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
24288 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
24289 Use it.
24290
24291 2010-05-19 Joseph Myers <joseph@codesourcery.com>
24292
24293 * diagnostic.c (FLOAT, FFS): Don't undefine.
24294 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
24295 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
24296 include ordering.
24297
24298 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24299
24300 * combine.c (propagate_for_debug): Call make_compound_operation
24301 on the source value.
24302 (try_combine): When implementing a split chosen by find_split_point,
24303 either copy i2src or set it to null. Assert that i2src is not null
24304 before substituting into CALL_INSN_FUNCTION_USAGE.
24305
24306 2010-05-19 Anatoly Sokolov <aesok@post.ru>
24307
24308 * double-int.h (double_int_ior): New function.
24309 * tree.h (build_int_cst_wide_type): Remove.
24310 * tree.c (build_int_cst_wide_type): Remove.
24311 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
24312 of build_int_cst_wide_type.
24313 * stor-layout.c (set_sizetype): (Ditto.).
24314 * dojump.c (do_jump): Use build_int_cstu instead of
24315 build_int_cst_wide_type.
24316
24317 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
24318
24319 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
24320 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
24321 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
24322 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
24323 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
24324 propagate the 'data' argument to copy_tree_r.
24325 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
24326 Propagate 'data' argument to walk_tree.
24327 (copy_if_shared): New function.
24328 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
24329 (unmark_visited): New function.
24330 (unshare_body): Call copy_if_shared instead of doing it manually.
24331 (unvisit_body): Call unmark_visited instead of doing it manually.
24332
24333 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
24334
24335 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
24336 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
24337 * hooks.c: Likewise.
24338 * target-def.h (TARGET_FOLD_BUILTIN): Define to
24339 hook_tree_tree_int_treep_bool_null.
24340 * target.h (struct gcc_target): Update signature of fold_builtin
24341 field.
24342 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
24343 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
24344 instead of the call expression.
24345 (fold_builtin_call_array): Pass n and argarray directly.
24346 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
24347 consing a list.
24348 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
24349 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
24350 `i' and use it in place of `arity'.
24351 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
24352 Dereference `args' directly.
24353 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
24354
24355 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24356
24357 * doc/sourcebuild.texi (Effective-Target Keywords): Document
24358 3dnow, sse3, sse2.
24359 (Directives): Document optional dg-require-effective-target
24360 selector.
24361
24362 2010-05-19 Richard Guenther <rguenther@suse.de>
24363
24364 PR lto/44196
24365 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
24366
24367 2010-05-19 Richard Guenther <rguenther@suse.de>
24368
24369 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
24370 * common.opt (fwhopr=): New.
24371 * opts.c (common_handle_option): Handle OPT_fwhopr.
24372 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
24373 * collect2.c (main): Match -fwhopr*.
24374 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
24375 Execute ltrans stage in parallel when jobs is bigger than 1.
24376
24377 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24378
24379 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
24380 pentiumpro on Solaris 8/x86 with Sun as.
24381 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
24382 hidden alias bug.
24383 (gcc_cv_as_ix86_quad): Check for .quad directive.
24384 * configure: Regenerate.
24385 * config.in: Regenerate.
24386 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
24387
24388 2010-05-19 Martin Jambor <mjambor@suse.cz>
24389
24390 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
24391 also for indirect edges. Actual printing moved...
24392 (ipa_print_node_jump_functions_for_edge): ...here.
24393 (ipa_compute_jump_functions): Renamed to
24394 ipa_compute_jump_functions_for_edge and made static.
24395 (ipa_compute_jump_functions): New function.
24396 (make_edge_direct_to_target): Check if the number of arguments on
24397 the newly direct edge is the same as the number of parametrs of
24398 the callee.
24399 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
24400 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
24401 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
24402 analysis functions unconditionally, call the new
24403 ipa_analyze_params_uses on the node instead of every edge.
24404
24405 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
24406
24407 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
24408 to tree.
24409 (dump_mem_ref): Adopt debug code to handle a tree as step. This
24410 also checks for a constant int vs. non-constant but
24411 loop-invariant steps.
24412 (find_or_create_group): Change the sort algorithm to only consider
24413 steps that are constant ints.
24414 (idx_analyze_ref): Adopt code to handle a tree instead of a
24415 HOST_WIDE_INT for step.
24416 (gather_memory_references_ref): Handle tree instead of int and be
24417 prepared to see a NULL_TREE.
24418 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
24419 prefetches if the step cannot be calculated at compile time.
24420 (issue_prefetch_ref): Issue prefetches for non-constant but
24421 loop-invariant steps.
24422
24423 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
24424
24425 Revert:
24426 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
24427
24428 * tree.h (build_call_list): Remove.
24429 * tree.c (build_call_list): Remove.
24430
24431 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
24432
24433 * tree.h (build_call_list): Remove.
24434 * tree.c (build_call_list): Remove.
24435
24436 2010-05-18 Jan Hubicka <jh@suse.cz>
24437
24438 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
24439
24440 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
24441
24442 PR rtl-optimization/43332
24443 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
24444
24445 2010-05-18 Anatoly Sokolov <aesok@post.ru>
24446
24447 * tree.h (build_int_cstu): Implement as static inline.
24448 * tree.c (build_int_cstu): Remove function.
24449 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
24450 sign extended.
24451
24452 2010-05-18 Richard Guenther <rguenther@suse.de>
24453
24454 PR lto/44143
24455 * lto-wrapper.c (verbose): New variable. Initialize from -v.
24456 (debug): Initialize from -save-temps.
24457 (collect_execute): Print command-line when verbose.
24458 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
24459 for ltrans invocation. Produce -dumpbase flag again.
24460 (process_args): Remove.
24461 (main): Simplify.
24462 * collect2.c (maybe_run_lto_and_relink): Only pass object
24463 files to lto-wrapper.
24464 * gcc.c (LINK_COMMAND_SPEC): Likewise.
24465
24466 2010-05-18 Jan Hubicka <jh@suse.cz>
24467
24468 * opts.c (decode_options): Do not disable whopr at ipa_cp.
24469 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
24470
24471 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
24472
24473 PR lto/44184
24474 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
24475 in a GIMPLE_ASM.
24476 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
24477 in a GIMPLE_ASM.
24478
24479 2010-05-18 Jakub Jelinek <jakub@redhat.com>
24480
24481 PR debug/41371
24482 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
24483 rtx_equal_p inline.
24484
24485 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
24486
24487 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
24488 lto-macho as lto_binary_reader.
24489
24490 * darwin.c (darwin_asm_named_section): Do not add assembler comment
24491 after .section directive; just print it before the directive instead.
24492
24493 2010-05-17 Jan Hubicka <jh@suse.cz>
24494
24495 * cgraph.c (cgraph_create_virtual_clone): Only check
24496 versionable_function_p when not in wpa and checking is enabled.
24497 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
24498 there are no more functions to materialize.
24499
24500 2010-05-17 Jan Hubicka <jh@suse.cz>
24501
24502 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
24503 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
24504 New functions.
24505 (output_cgraph): Call output_cgraph_opt_summary.
24506 (input_cgrpah): Call input_cgraph_opt_summary.
24507 (output_cgraph_opt_summary_p, output_node_opt_summary,
24508 input_node_opt_summary, input_cgraph_opt_section): New functions.
24509 * lto-section-in.c (lto_section_name): Add cgraphopt.
24510 * tree-inline.c (tree_function_versioning): Handle parm_num.
24511 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
24512 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
24513
24514 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
24515
24516 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
24517 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
24518 the insn to prefetch ratio heuristic to loops with known trip count.
24519
24520 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
24521
24522 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
24523 (schedule_prefetches): Do not generate a prefetch if the unroll factor
24524 is far from what is required by the prefetch.
24525
24526 2010-05-17 Jan Hubicka <jh@suse.cz>
24527
24528 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
24529 (ipcp_estimate_growth): Likewise.
24530 (ipcp_const_param_count): Likewise.
24531 (ipcp_insert_stage): Likewise.
24532 * ipa-prop.c (visit_load_for_mod_analysis): New function.
24533 (visit_store_addr_for_mod_analysis): Set used flag.
24534 (ipa_detect_param_modifications): Set used flag for SSE params;
24535 update use of walk_stmt_load_store_addr_ops.
24536 (ipa_print_node_params): Print used flag.
24537 (ipa_write_node_info): Stream used flag.
24538 (ipa_read_node_info): Likewise.
24539 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
24540 (ipa_is_param_used): New function.
24541 (lto_ipa_fixup_call_notes): Remove unused declaration.
24542
24543 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24544
24545 PR target/44074
24546 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
24547 * configure: Regenerate.
24548 * config.in: Regenerate.
24549 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
24550 !HAVE_AS_IX86_REP_LOCK_PREFIX.
24551 Don't emit whitespace.
24552 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
24553 (*rep_movsi): Likewise.
24554 (*rep_movsi_rex64): Likewise.
24555 (*rep_movqi): Likewise.
24556 (*rep_movqi_rex64): Likewise.
24557 (*rep_stosdi_rex64): Likewise.
24558 (*rep_stossi): Likewise.
24559 (*rep_stossi_rex64): Likewise.
24560 (*rep_stosqi): Likewise.
24561 (*rep_stosqi_rex64): Likewise.
24562 (*cmpstrnqi_nz_1): Use {%;} after repz.
24563 (*cmpstrnqi_nz_rex_1): Likewise.
24564 (*cmpstrnqi_1): Likewise.
24565 (*cmpstrnqi_rex_1): Likewise.
24566 (*strlenqi_1): Use {%;} after repnz.
24567 (*strlenqi_rex_1): Likewise.
24568 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
24569 (*sync_compare_and_swap<mode>): Likewise.
24570 (sync_double_compare_and_swap<mode>): Likewise.
24571 (*sync_double_compare_and_swapdi_pic): Likewise.
24572 (sync_old_add<mode>): Likewise.
24573 (sync_add<mode>): Likewise.
24574 (sync_sub<mode>): Likewise.
24575 (sync_<code><mode>): Likewise.
24576
24577 2010-05-17 Martin Jambor <mjambor@suse.cz>
24578
24579 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
24580 otr_token and polymorphic.
24581 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
24582 (cgraph_clone_edge): Copy the above fields.
24583 * tree.c (get_binfo_at_offset): New function.
24584 * tree.h (get_binfo_at_offset): Declare.
24585 * ipa-prop.h (enum jump_func_type): Added known_type jump function
24586 type, reordered items, updated comments.
24587 (union jump_func_value): Added base_type field, reordered fields.
24588 (enum ipa_lattice_type): Moved down in the file.
24589 (struct ipa_param_descriptor): New field polymorphic.
24590 (ipa_is_param_polymorphic): New function.
24591 * ipa-prop.c: Include gimple.h and gimple-fold.h.
24592 (ipa_print_node_jump_functions): Print known type jump functions.
24593 (compute_complex_pass_through): Renamed to...
24594 (compute_complex_assign_jump_func): this.
24595 (compute_complex_ancestor_jump_func): New function.
24596 (compute_known_type_jump_func): Likewise.
24597 (compute_scalar_jump_functions): Create known type and complex ancestor
24598 jump functions.
24599 (ipa_note_param_call): New parameter polymorphic, set the corresponding
24600 flag in the call note accordingly.
24601 (ipa_analyze_call_uses): Renamed to...
24602 (ipa_analyze_indirect_call_uses): this. New parameter target, define
24603 variable var only in the block where it is used.
24604 (ipa_analyze_virtual_call_uses): New function.
24605 (ipa_analyze_call_uses): Likewise.
24606 (combine_known_type_and_ancestor_jfs): Likewise.
24607 (update_jump_functions_after_inlining): Implemented handling of a
24608 number of new jump function types combination.
24609 (print_edge_addition_message): Removed.
24610 (make_edge_direct_to_target): New function.
24611 (try_make_edge_direct_simple_call): Likewise.
24612 (try_make_edge_direct_virtual_call): Likewise.
24613 (update_call_notes_after_inlining): Renamed to...
24614 (update_indirect_edges_after_inlining): this. Moved edge creation for
24615 indirect calls to try_make_edge_direct_simple_call, also calls
24616 try_make_edge_direct_virtual_call for virtual calls.
24617 (ipa_print_node_params): Changed the header message.
24618 (ipa_write_jump_function): Stream also known type jump functions.
24619 (ipa_read_jump_function): Likewise.
24620 (ipa_write_indirect_edge_info): Stream new fields in
24621 cgraph_indirect_call_info.
24622 (ipa_read_indirect_edge_info): Likewise.
24623 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
24624 GIMPLE_FOLD_H.
24625
24626 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24627
24628 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
24629
24630 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
24631
24632 * tree.h (CALL_EXPR_ARGS): Delete.
24633 (call_expr_arglist): Delete.
24634 * tree.c (call_expr_arglist): Delete.
24635 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
24636 targetm.fold_builtin.
24637 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
24638 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
24639 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
24640 arglist parameter. Use CALL_EXPR_ARG.
24641 (picochip_expand_builtin_3op): Likewise.
24642 (picochip_expand_builtin_2opvoid): Likewise.
24643 (picochip_expand_array_get): Likewise.
24644 (picochip_expand_array_put): Likewise.
24645 (picochip_expand_array_testport): Likewise.
24646 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
24647 rather than arglist.
24648 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
24649 CALL_EXPR_ARGS.
24650 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
24651 than TREE_VALUE and TREE_CHAIN.
24652 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
24653 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
24654 the arglist.
24655
24656 2010-05-17 Jakub Jelinek <jakub@redhat.com>
24657
24658 PR bootstrap/42347
24659 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
24660 to have no fallthru edge.
24661
24662 PR middle-end/44102
24663 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
24664 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
24665 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
24666 add BARRIER after previous bb if needed.
24667
24668 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
24669
24670 * tree.c (build_function_type_list_1): Remove bogus assert condition.
24671
24672 2010-05-17 Alan Modra <amodra@gmail.com>
24673
24674 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
24675 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
24676 with copy_reg rtx param.
24677 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
24678 Correct cases where code for ABI_V4 did not initialise the reg
24679 used to access frame. Also leave frame_reg_rtx as sp for large
24680 frames that save no regs.
24681
24682 2010-05-17 Martin Jambor <mjambor@suse.cz>
24683
24684 PR middle-end/44133
24685 * tree-sra.c (create_access_replacement): New parameter rename, mark
24686 the replaement for renaming only when it is true.
24687 (get_access_replacement): Pass true in the rename parameter of
24688 create_access_replacement.
24689 (get_unrenamed_access_replacement): New function.
24690 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
24691 replacement declaration from it.
24692
24693 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
24694
24695 * function.c (try_fit_stack_local, add_frame_space): New static
24696 functions.
24697 (assign_stack_local_1): Use them. Look for opportunities to use
24698 space previously wasted on alignment.
24699 * function.h (struct frame_space): New.
24700 (struct rtl_data): Add FRAME_SPACE_LIST member.
24701 * reload1.c (something_was_spilled): New static variable.
24702 (alter_reg): Set it.
24703 (reload): Test it in addition to testing if the frame size changed.
24704
24705 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
24706
24707 * config/s390/s390.c: Define sane prefetch settings and activate
24708 flag_prefetch_loop_arrays on -O3.
24709 * config/s390/s390.h: Declare that read can use write prefetch.
24710
24711 2010-05-17 Jakub Jelinek <jakub@redhat.com>
24712
24713 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
24714 build.
24715
24716 2010-05-16 Jan Hubicka <jh@suse.cz>
24717
24718 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
24719 function body; do not check stdarg field of struct function.
24720
24721 2010-05-16 Jan Hubicka <jh@suse.cz>
24722
24723 * cgraph.c (dump_cgraph_node): Dump versionable flag.
24724 * cgraph.h (cgraph_local_info): Add versionable flag.
24725 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
24726 (ipcp_versionable_function_p): Use it.
24727 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
24728 versionable flag.
24729
24730 2010-05-16 Jan Hubicka <jh@suse.cz>
24731
24732 * cgraph.c (cgraph_clone_node): Take decl argument and insert
24733 clone into hash when it is different from orig.
24734 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
24735 * cgraph.h (cgraph_clone_node): Update prototype.
24736 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
24737 (lto_cgraph_encoder_delete): Delete body map.
24738 (lto_cgraph_encoder_size): Move to header.
24739 (lto_cgraph_encoder_encode_body_p,
24740 lto_set_cgraph_encoder_encode_body): New.
24741 (lto_output_node): Do not take written_decls argument; output clone_of
24742 pointer.
24743 (add_node_to): Add include_body_argument; call
24744 lto_set_cgraph_encoder_encode_body on master of the clone.
24745 (add_references): Update use of add_node_to.
24746 (compute_ltrans_boundary): Likewise.
24747 (output_cgraph): Do not create written_decls bitmap.
24748 (input_node): Take nodes argument; stream in clone_of correctly.
24749 (input_cgraph_1): Update use of input_node.
24750 * lto-streamer-out.c (lto_output): Use encoder info to decide
24751 what bodies to output.
24752 * ipa-inline.c (cgraph_clone_inlined_nodes,
24753 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
24754 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
24755 (lto_cgraph_encoder_size): Define here.
24756 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
24757 Declare.
24758
24759 2010-05-16 Richard Guenther <rguenther@suse.de>
24760
24761 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
24762 -fipa-type-escape.
24763 * ipa-type-escape.c (gate_type_escape_vars): Run when
24764 -fipa-struct-reorg runs.
24765 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
24766 * common.opt (fipa-type-escape): Remove.
24767
24768 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
24769
24770 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
24771 (decode_options): Likewise.
24772 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
24773
24774 2010-05-16 Jan Hubicka <jh@suse.cz>
24775
24776 * ipa.c (function_and_variable_visibility): Also bring local all
24777 aliases.
24778
24779 2010-05-16 Richard Guenther <rguenther@suse.de>
24780
24781 * alias.c (nonoverlapping_memrefs_p): Remove use of
24782 IPA type-escape information.
24783
24784 2010-05-16 Joseph Myers <joseph@codesourcery.com>
24785
24786 * c-common.c (c_common_reswords): Add _Static_assert for C.
24787 * c-parser.c (c_token_starts_declaration,
24788 c_parser_next_token_starts_declaration,
24789 c_parser_static_assert_declaration_no_semi,
24790 c_parser_static_assert_declaration): New.
24791 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
24792 Handle static assertions if static_assert_ok.
24793 (c_parser_external_declaration, c_parser_declaration_or_fndef,
24794 c_parser_compound_statement_nostart, c_parser_label,
24795 c_parser_for_statement, c_parser_objc_methodprotolist,
24796 c_parser_omp_for_loop): All callers of
24797 c_parser_declaration_or_fndef changed.
24798 (c_parser_struct_declaration): Handle static assertions.
24799 (c_parser_compound_statement_nostart): Use
24800 c_parser_next_token_starts_declaration and
24801 c_token_starts_declaration to detect start of declarations.
24802 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
24803 Likewise.
24804
24805 2010-05-16 Anatoly Sokolov <aesok@post.ru>
24806
24807 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24808 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24809 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24810 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24811 (mmix_function_outgoing_value): Rename to...
24812 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
24813 (mmix_function_value_regno_p): Make static.
24814 (mmix_libcall_value): New function.
24815 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
24816 mmix_function_value_regno_p): Remove declaration.
24817
24818 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
24819
24820 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
24821 BUILT_IN_ALLOCA if stack checking is enabled.
24822
24823 2010-05-16 Richard Guenther <rguenther@suse.de>
24824
24825 * var-tracking.c (vars_copy_1): Inline ...
24826 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
24827 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
24828 (variable_merge_over_cur): Adjust. Merge asserts.
24829 (variable_merge_over_src): Likewise.
24830 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
24831 (variable_post_merge_new_vals): Merge asserts.
24832 (variable_post_merge_perm_vals): Likewise.
24833 (find_mem_expr_in_1pdv): Likewise.
24834 (dataflow_set_different_value): Remove.
24835 (onepart_variable_different_p): Merge asserts.
24836 (variable_different_p): Likewise.
24837 (dataflow_set_different_1): Inline ...
24838 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
24839 (emit_notes_for_differences_1): Merge asserts.
24840
24841 2010-05-16 Richard Guenther <rguenther@suse.de>
24842
24843 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
24844 * optabs.c (libfunc_decl_hash): Likewise.
24845 * varasm.c (emutls_decl): Likewise.
24846
24847 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
24848
24849 * c-decl.c: Don't include gimple.h.
24850 (merge_decls): Do not copy gimple_body.
24851
24852 2010-05-15 Jason Merrill <jason@redhat.com>
24853
24854 * c.opt: Add -fnothrow-opt.
24855
24856 2010-05-15 Jan Hubicka <jh@suse.cz>
24857
24858 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
24859 analyzed.
24860 * passes.c (ipa_write_summaries): Write all analyzed nodes.
24861
24862 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
24863
24864 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
24865 * Makefile.in: Add it.
24866 Fix all other Makefile dependencies for changes below.
24867 * tree.h: Include it instead of defining VEC primitives here.
24868 * gimple.h: Likewise.
24869 * rtl.h: Likewise.
24870 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
24871 * except.h: Include vecir.h, break dependence on tree.h.
24872
24873 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
24874 Move from here...
24875 * tree-iterator.c: ...to here.
24876 * tree-iterator.h: Fix file introduction comment. Add extern markers.
24877
24878 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
24879 tm_p.h.
24880 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
24881 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
24882 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
24883 tree-mudflap.h, and target.h.
24884 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
24885 predict.h, tree-inline.h, gimple.h, and langhooks.h.
24886 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
24887 Add FIXME for why gimple.h is still included (should be unnecessary
24888 since GCC 4.5 gimplification unit-at-a-time).
24889 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
24890 * c-pragma.c: Add FIXME for why function.h needs to be included just
24891 for cfun, at front-end level.
24892 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
24893 Do not include ggc.h, but include vecprim.h for VEC(char).
24894 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
24895 Explain why target.h is included.
24896 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
24897 Explain why gimple.h is included.
24898 * c-ppoutput.c: Do not include tm.h.
24899 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
24900 * c-parses.c: Explain why rtl.h is included, and that this (and only
24901 this) is also why tm.h must be included.
24902 Do not include except.h.
24903 * c-lang.c: Do not include ggc.h.
24904
24905 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
24906
24907 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
24908
24909 2010-05-15 Joseph Myers <joseph@codesourcery.com>
24910
24911 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
24912 unions by default if those structs and unions have no tags. Do
24913 not condition anonymous struct and unions handling on flag_iso.
24914 Allow anonymous structs and unions for C1X.
24915 (finish_struct): Do not diagnose lack of named fields when
24916 anonymous structs and unions present for C1X. Accept flexible
24917 array members in structure with anonymous structs or unions but no
24918 directly named fields.
24919 * doc/extend.texi (Unnamed Fields): Update.
24920
24921 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
24922
24923 * gimple.h (compare_field_offset): Rename into...
24924 (gimple_compare_field_offset): ...this.
24925 * gimple.c (compare_field_offset): Rename into...
24926 (gimple_compare_field_offset): ...this. Compare the full access if
24927 the offset is self-referential.
24928 (gimple_types_compatible_p): Adjust for above renaming.
24929 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
24930 DECL_NONADDRESSABLE_P flag of fields before merging them.
24931
24932 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
24933
24934 * tree.h (ctor_to_list): Delete.
24935 * tree.c (ctor_to_list): Delete.
24936
24937 2010-05-15 Jan Hubicka <jh@suse.cz>
24938
24939 * ipa-reference.c: Include toplev.h
24940 (is_proper_for_analysis): Only add to all_module_statics
24941 if it is allocated.
24942 (write_node_summary_p, stream_out_bitmap,
24943 ipa_reference_write_optimization_summary,
24944 ipa_reference_read_optimization_summary): New.
24945 (struct ipa_opt_pass_d pass_ipa_reference): Add
24946 optimization summary streaming.
24947 * lto-cgraph.c (referenced_from_this_partition_p,
24948 reachable_from_this_partition_p): New functions.
24949 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
24950 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
24951 * opts.c (decode_options): Enable ipa_reference.
24952 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
24953 * lto-streamer.h (referenced_from_this_partition_p,
24954 reachable_from_this_partition_p): Declare.
24955
24956 2010-05-15 Richard Guenther <rguenther@suse.de>
24957
24958 PR tree-optimization/44038
24959 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
24960 taking the address of a V_C_E of a constant.
24961
24962 2010-05-14 Jan Hubicka <jh@suse.cz>
24963
24964 * tree.h (memory_identifier_string): Remove.
24965 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
24966 (ipa_reference_global_vars_info_d): Remove statics_not_read and
24967 statics_not_written.
24968 (ipa_reference_optimization_summary_d): New structure.
24969 (ipa_reference_optimization_summary_t): New type and vector.
24970 (ipa_reference_vars_info_d): Embedd structures instead of using
24971 pointers.
24972 (reference_vars_to_consider): Remove out of GGC space.
24973 (module_statics_escape): Remove.
24974 (global_info_obstack): Rename to ...
24975 (optimization_summary_obstack): ... this one.
24976 (initialization_status_t): Remove.
24977 (memory_identifier_string): Remove.
24978 (get_reference_vars_info): Fix indenting.
24979 (set_reference_vars_info): Likewise.
24980 (get_reference_optimization_summary): New.
24981 (set_reference_optimization_summary): New.
24982 (get_global_reference_vars_info): Remove.
24983 (ipa_reference_get_read_global): Remove.
24984 (ipa_reference_get_written_global): Remove.
24985 (ipa_reference_get_not_read_global): Update.
24986 (ipa_reference_get_not_written_global): Update.
24987 (is_proper_for_analysis): Outlaw addressable.
24988 (propagate_bits): Update for new datastructures.
24989 (analyze_variable): Remove.
24990 (init_function_info): Update for new datastructures.
24991 (clean_function_local_data): Remove.
24992 (clean_function): Remove.
24993 (copy_global_bitmap): Use optimizations_summary_obstack.
24994 (duplicate_node_data): Duplicate optimization summary only.
24995 (remove_node_data): Remove optimization summary only.
24996 (generate_summary): Do not analyze variables; do not compute
24997 module_statics_escape; do not prune solutions by it.
24998 (read_write_all_from_decl): Fix typos in comments.
24999 (propagate): Doscover readonly and nonaddressable first;
25000 update for new datastructures; share global bitmaps.
25001 * ipa-reference.h (ipa_reference_get_read_global,
25002 ipa_reference_get_written_global): Remove.
25003 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
25004 * Makefile.in: Remove ipa-refereference from GT files.
25005
25006 2010-05-14 Jakub Jelinek <jakub@redhat.com>
25007
25008 PR debug/44112
25009 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
25010 for all SYMBOL_REF_DECLs.
25011
25012 2010-05-14 Jan Hubicka <jh@suse.cz>
25013
25014 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
25015 (varpool_all_refs_explicit_p): New inline function.
25016 * ipa-reference.c: Update comment.
25017 (module_statics_written): Remove.
25018 (get_static_decl): Remove.
25019 (ipa_init): Do not initialize module_statics_written.
25020 (analyze_function): Likewise.
25021 (generate_summary): Likewise; do not compute module_statics_readonly
25022 and do not update variable flags.
25023 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
25024 * ipa.c: Inlucde flags.h
25025 (cgraph_local_node_p): New.
25026 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
25027 promote functions to local.
25028 (ipa_discover_readonly_nonaddressable_vars): New function.
25029 (function_and_variable_visibility): Use cgraph_local_node_p.
25030 * varpool.c (varpool_finalize_decl): Set force_output for
25031 DECL_PRESERVE_P vars.
25032
25033 2010-05-14 Jan Hubicka <jh@suse.cz>
25034
25035 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
25036
25037 2010-05-14 Richard Guenther <rguenther@suse.de>
25038
25039 PR tree-optimization/44119
25040 * tree-ssa-pre.c (eliminate): Properly mark replacement of
25041 a PHI node necessary.
25042
25043 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
25044
25045 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
25046
25047 2010-05-14 Jason Merrill <jason@redhat.com>
25048
25049 PR c++/44127
25050 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
25051 (gimple_call_set_nothrow): New.
25052 * gimple.c (gimple_build_call_from_tree): Call it.
25053 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
25054
25055 PR c++/44127
25056 * gimplify.c (gimplify_seq_add_stmt): No longer static.
25057 * gimple.h: Declare it.
25058 * gimple.c (gimple_build_eh_filter): No ops.
25059
25060 2010-05-14 Jan Hubicka <jh@suse.cz>
25061
25062 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
25063 nodes already in queue.
25064 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
25065 re-enqueueing node.
25066
25067 2010-05-14 Jakub Jelinek <jakub@redhat.com>
25068
25069 PR debug/44136
25070 * cfgexpand.c (expand_debug_expr): If non-memory op0
25071 has BLKmode, return NULL.
25072
25073 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
25074
25075 * config.gcc: Add support for --with-cpu option for bdver1.
25076 * config/i386/i386.h (TARGET_BDVER1): New macro.
25077 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
25078 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
25079 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
25080 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
25081 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
25082 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
25083 (processor_type): Add PROCESSOR_BDVER1.
25084 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
25085 processor_type in config/i386/i386.h.
25086 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
25087 movaps <reg, reg> instead of movapd <reg, reg> when replacing
25088 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
25089 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
25090 to emit packed xor instead of packed double/packed integer
25091 xor for SSE and AVX when moving a zero value.
25092 * config/i386/sse.md: Add check for
25093 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
25094 movapd/movdqa for SSE and AVX.
25095 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
25096 single logical operations i.e and, or and xor instead of packed double
25097 logical operations for SSE and AVX.
25098 * config/i386/i386-c.c (ix86_target_macros_internal):
25099 Add PROCESSOR_BDVER1.
25100 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
25101 (has_fma4, has_xop): New.
25102 * config/i386/i386.c (bdver1_cost): New variable.
25103 (m_BDVER1): New macro.
25104 (m_AMD_MULTIPLE): Add m_BDVER1.
25105 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
25106 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
25107 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
25108 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
25109 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
25110 x86_tune_sse_partial_reg_dependency,
25111 x86_tune_sse_unaligned_load_optimal,
25112 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
25113 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
25114 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
25115 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
25116 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
25117 Enable/disable for bdver1.
25118 (processor_target_table): Add bdver1_cost.
25119 (cpu_names): Add bdver1.
25120 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
25121 processor_alias_table.
25122 (ix86_expand_vector_move_misalign): Change.
25123 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
25124 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
25125 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
25126 of movupd/movdqu for SSE and AVX.
25127 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
25128 (ix86_tune_adjust_cost): Add code for bdver1.
25129 (standard_sse_constant_opcode): Add check for
25130 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
25131 of packed double xor for SSE and AVX.
25132
25133 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
25134
25135 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
25136 result to unsigned.
25137
25138 2010-05-14 Tristan Gingold <gingold@adacore.com>
25139
25140 * toplev.c (default_debug_hooks): Remove this variable.
25141 (process_options): Remove assignments to default_debug_hooks.
25142
25143 2010-05-14 Martin Jambor <mjambor@suse.cz>
25144
25145 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
25146 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
25147 * langhooks.h (struct lang_hooks_for_decls): Removed field
25148 fold_obj_type_ref.
25149 * tree.c (free_lang_data): Remove assignment to
25150 lang_hooks.fold_obj_type_ref.
25151 * tree.def (OBJ_TYPE_REF): Update comment.
25152
25153 2010-05-14 Richard Guenther <rguenther@suse.de>
25154
25155 PR tree-optimization/44124
25156 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
25157
25158 2010-05-14 Alan Modra <amodra@gmail.com>
25159
25160 PR target/44075
25161 * config/rs6000/rs6000.c (struct machine_function): Reorder
25162 fields for better packing. Add lr_save_state.
25163 (rs6000_ra_ever_killed): Return lr_save_state if set.
25164 (rs6000_emit_eh_reg_restore): Set lr_save_state.
25165
25166 2010-05-13 Jan Hubicka <jh@suse.cz>
25167
25168 * varpool.c (decide_is_variable_needed): Drop code checking
25169 TREE_SYMBOL_REFERENCED.
25170
25171 2010-05-13 Jan Hubicka <jh@suse.cz>
25172
25173 * final.c (output_addr_const): Do not call mark_decl_referenced.
25174 * cgraphunit.c (process_function_and_variable_attributes): Use
25175 mark_needed_node dirrectly.
25176 (assemble_thunk): Do not call mark_decl_referenced.
25177
25178 2010-05-13 Anatoly Sokolov <aesok@post.ru>
25179
25180 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
25181
25182 2010-05-13 Jeff Law <law@redhat.com>
25183
25184 * ira-conflicts.c (print_allocno_conflicts): New function broken out
25185 from...
25186 (print_conflicts): Call print_allocno_conflicts.
25187
25188 2010-05-13 Jakub Jelinek <jakub@redhat.com>
25189
25190 PR debug/44104
25191 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
25192 if it is NULL.
25193
25194 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
25195
25196 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
25197 t-mingw-w64 or t-mingw-w32 for multilib configuration.
25198 * config/i386/t-mingw-w32: New.
25199 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
25200
25201 2010-05-13 Martin Jambor <mjambor@suse.cz>
25202
25203 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
25204 gimple-fold.c).
25205 * gimple-fold.c (get_base_binfo_for_type): New function.
25206 (gimple_get_relevant_ref_binfo): Likewise.
25207 (gimple_fold_obj_type_ref_known_binfo): Likewise.
25208 (gimple_fold_obj_type_ref): Likewise.
25209 (fold_gimple_call): Simplify condition for folding virtual calls
25210 and call gimple_fold_obj_type_ref.
25211 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
25212 (gimple_fold_obj_type_ref_known_binfo): Likewise.
25213
25214 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
25215
25216 * config/rs6000/rs6000-protos.h
25217 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
25218 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
25219 (rs6000_debug_mode_dependent_address)
25220 (rs6000_mode_dependent_address_ptr): Likewise.
25221
25222 2010-05-13 Jakub Jelinek <jakub@redhat.com>
25223
25224 PR debug/43983
25225 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
25226 by SRA.
25227 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
25228 * tree-sra.c (create_access_replacement): Call unshare_expr before
25229 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
25230 * dwarf2out.c: Include tree-flow.h.
25231 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
25232 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
25233 Handle DW_OP_bit_piece.
25234 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
25235 construct_piece_list, adjust_piece_list): New functions.
25236 (add_var_loc_to_decl): Handle SRA optimized variables.
25237 Adjust for var_loc_note to loc field renaming.
25238 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
25239 in VAR_LOCATION note.
25240 (new_loc_descr_op_bit_piece): New function.
25241 (dw_sra_loc_expr): New function.
25242 (dw_loc_list): Use it. Don't handle the last range after the
25243 loop, handle it inside of the loop. Adjust for var_loc_note
25244 to loc field renaming.
25245 (add_location_or_const_value_attribute): Only special case
25246 single entry loc lists if loc is NOTE_P. Adjust for
25247 var_loc_note to loc field renaming.
25248 (dwarf2out_var_location): Don't set newloc->var_loc_note
25249 and newloc->next here.
25250
25251 2010-05-12 Jan Hubicka <jh@suse.cz>
25252
25253 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
25254 flag.
25255 * cgraph.h (cgraph_only_called_directly_p,
25256 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
25257 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
25258 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
25259 (assemble
25260 * ipa.c (cgraph_remove_unreachable_nodes): Use
25261 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
25262 flags.
25263 * tree-inline.c (copy_bb): Check address_taken flag.
25264 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
25265 externally_visible flag.
25266
25267 2010-05-12 Jason Merrill <jason@redhat.com>
25268
25269 PR bootstrap/44048
25270 PR target/44099
25271 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
25272 * sdbout.c (plain_type_1): Likewise.
25273 * dwarf2out.c (is_base_type): Likewise.
25274 (gen_type_die_with_usage): Likewise. Generate
25275 DW_TAG_unspecified_type for any LANG_TYPE.
25276
25277 2010-05-12 Jan Hubicka <jh@suse.cz>
25278
25279 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
25280 indrect edges too.
25281 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
25282 (cgraph_clone_edge): Update.
25283 (cgraph_node_remove_callees): Remove indirect calls too.
25284 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
25285 (cgraph_create_indirect_edge): Update prototype.
25286 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
25287 is_proper_for_analysis.
25288 (add_new_function, visited_nodes, function_insertion_hook_holder,
25289 get_local_reference_vars_info, mark_address_taken, mark_address,
25290 mark_load, mark_store, check_asm_memory_clobber, check_call,
25291 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
25292 (ipa_init): Do not initialize visited_nodes;
25293 function_insertion_hook_holder.
25294 (analyze_variable): Rewrite.
25295 (analyze_function): Rewrite.
25296 (copy_local_bitmap): Remove.
25297 (duplicate_node_dat): Do not duplicate local info.
25298 (generate_summary): Simplify to only walk cgraph.
25299 (write_node_summary_p, ipa_reference_write_summary,
25300 ipa_reference_read_summary): Remove.
25301 (propagate): Do not remove function insertion;
25302 generate summary.
25303 (pass_ipa_reference): NULLify summary handling fields.
25304 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
25305 (input_edge): Input ecf_flags.
25306 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
25307 (update_indirect_edges_after_inlining): Ignore edges with unknown
25308 param.
25309
25310 2010-05-12 Sriraman Tallam <tmsriram@google.com>
25311
25312 * implicit-zee.c: New file.
25313 * tree-pass.h (pass_implicit_zee): Declare.
25314 * passes.c (init_optimization_passes): Add zee pass.
25315 * common.opt (fzee): New flag.
25316 * timevar.def (TV_ZEE): Define.
25317 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
25318 and beyond.
25319 * Makefile.in (implicit-zee.o): Add new build file.
25320
25321 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
25322 Nathan Froyd <froydnj@codesourcery.com>
25323
25324 * c-common.c (sync_resolve_params): Remove write-only variable.
25325
25326 2010-05-12 Anatoly Sokolov <aesok@post.ru>
25327
25328 * target.h (struct gcc_target): Add mode_dependent_address_p field.
25329 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
25330 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
25331 * targhooks.c (default_mode_dependent_address_p): New function.
25332 * targhooks.h (default_mode_dependent_address_p): Declare function.
25333 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
25334 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
25335 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
25336 target hook. Change return type to bool.
25337 * recog.h (mode_dependent_address_p): Change return type to bool.
25338
25339 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
25340 Nathan Froyd <froydnj@codesourcery.com>
25341
25342 * tree-mudflap.c (build_function_type_0, build_function_type_1,
25343 build_function_type_2, build_function_type_3): Remove.
25344 (mudflap_init): Use build_function_type_list.
25345
25346 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
25347 Nathan Froyd <froydnj@codesourcery.com>
25348
25349 * coverage.c (build_fn_info_value): Call build_constructor instead of
25350 build_constructor_from_list.
25351 (build_ctr_info_value): Likewise.
25352 (build_gcov_info): Likewise.
25353
25354 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
25355
25356 * tree.c (build_constructor): Compute TREE_CONSTANT for the
25357 resultant constructor.
25358 (build_constructor_single): Don't set TREE_CONSTANT.
25359 (build_constructor_from_list): Don't compute TREE_CONSTANT.
25360
25361 2010-05-12 Jan Hubicka <jh@suse.cz>
25362
25363 * cgraph.h (struct varpool_node): Add aux.
25364 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
25365 * varpool.c (varpool_remove_node): Do not remove initializer.
25366 (varpool_reset_queue): Export.
25367 (varpool_finalize_decl): Volatile vars are forced to be output.
25368 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
25369 replaced decl.
25370 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
25371 process_references, varpool_can_remove_if_no_refs): New functions.
25372 (cgraph_remove_unreachable_nodes): Handle variables too.
25373
25374 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
25375
25376 PR target/44088
25377 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
25378
25379 2010-05-12 Jakub Jelinek <jakub@redhat.com>
25380
25381 PR middle-end/44085
25382 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
25383 change value of ORT_TASK.
25384 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
25385 (omp_notice_threadprivate_variable): New function.
25386 (omp_notice_variable): Call it for threadprivate variables.
25387 If enclosing ctx is a task, print enclosing task rather than
25388 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
25389 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
25390 if task has untied clause.
25391
25392 PR debug/42278
25393 * dwarf2out.c (base_type_die): Don't add name attribute here.
25394 (modified_type_die): Instead of sizetype use
25395 its underlying original type. If a DW_TAG_base_type doesn't
25396 have name added, add __unknown__.
25397 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
25398 always call force_type_die instead.
25399
25400 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
25401
25402 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
25403 for __stack_chk_guard.
25404
25405 2010-05-11 Jakub Jelinek <jakub@redhat.com>
25406
25407 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
25408 don't call start_source_file debug hook here...
25409 (finish_options): ... but here, after outputting predefined and
25410 command line defines and undefs.
25411
25412 PR middle-end/44071
25413 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
25414 no fallthru edge.
25415 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
25416 optimizing away empty bb with no successors, move over its
25417 footer chain to fallthru predecessor.
25418 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
25419 (rtl_split_edge): For asm goto call patch_jump_insn even if
25420 splitting fallthru edge.
25421
25422 PR c++/44059
25423 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
25424 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
25425 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
25426 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
25427 on DW.ref.* decls.
25428
25429 PR c++/44062
25430 * c-parser.c (c_parser_expression): Mark LHS of a comma
25431 expression as read if it is a decl, handled component or
25432 COMPOUND_EXPR with that on the RHS.
25433 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
25434 if it is a decl or handled component.
25435
25436 2010-05-11 Jan Hubicka <jh@suse.cz>
25437
25438 * lto-symtab.c (lto_symtab_free): New function.
25439 * lto-streamer.h (lto_symtab_free): Declare.
25440
25441 2010-05-11 Jan Hubicka <jh@suse.cz>
25442
25443 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
25444 that if function is needed it is reachable.
25445 (lto_output_node): See if it the function is reachable or referenced.
25446 (output_cgraph): Update call of lto_output_node.
25447 * lto-streamer.h (reachable_from_other_partition_p): Declare.
25448
25449 2010-05-11 Jan Hubicka <jh@suse.cz>
25450
25451 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
25452 Mark as used.
25453
25454 2010-05-11 Jan Hubicka <jh@suse.cz>
25455
25456 PR tree-optimize/44063
25457 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
25458 queue.
25459 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
25460 limits.
25461 (estimate_function_body_sizes): Compute sizes even when disregarding.
25462
25463 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
25464
25465 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
25466
25467 2010-05-11 Jan Hubicka <jh@suse.cz>
25468
25469 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
25470 into every boundary.
25471
25472 2010-05-11 Jan Hubicka <jh@suse.cz>
25473
25474 * matrix-reorg.c (matrix_reorg): Rebuild edges.
25475
25476 2010-05-11 Jan Hubicka <jh@suse.cz>
25477
25478 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
25479 lto_streamer_cache_delete): Put nodes into heap.
25480 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
25481 heap.
25482
25483 2010-05-11 Jan Hubicka <jh@suse.cz>
25484
25485 * cgraphbuild.c (cgraph_rebuild_references): New.
25486 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
25487 out extern inlines.
25488 * cgraph.h (cgraph_rebuild_references): Declare.
25489 * tree-inline.c (tree_function_versioning): Use it.
25490 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
25491
25492 2010-05-11 Jan Hubicka <jh@suse.cz>
25493
25494 * cgraph.c: Include ipa-utils.h
25495 (cgraph_create_virtual_clone): Update references.
25496 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
25497
25498 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
25499
25500 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
25501 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
25502 cache size.
25503
25504 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
25505
25506 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
25507
25508 2010-05-11 Jakub Jelinek <jakub@redhat.com>
25509
25510 * gcc.c (execute): For -### don't quote arguments that
25511 contain just alphanumerics and _/-. characters.
25512 * doc/invoke.texi: Document that change for -###.
25513
25514 PR debug/44023
25515 * df-problems.c (struct dead_debug): Add to_rescan field.
25516 (dead_debug_init): Clear to_rescan field.
25517 (dead_debug_finish): Rescan all debug insns in to_rescan
25518 bitmap and free the bitmap.
25519 (dead_debug_insert_before): Instead of rescanning debug insns
25520 immediately queue their rescanning until dead_debug_finish.
25521 (df_note_bb_compute): After dead_debug_add do continue instead
25522 of break.
25523
25524 2010-05-10 Jakub Jelinek <jakub@redhat.com>
25525
25526 PR debug/44028
25527 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
25528 clear also INSN_REG_USE_LIST.
25529
25530 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25531
25532 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
25533
25534 2010-05-10 Jan Hubicka <jh@suse.cz>
25535
25536 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
25537 commited change.
25538
25539 2010-05-10 Jan Hubicka <jh@suse.cz>
25540
25541 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
25542 Allocate encoders.
25543 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
25544 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
25545 (lto_streamer_cache_create): Init alloc pool.
25546 (lto_streamer_cache_delete): Free alloc pool.
25547 * lto-streamer.h: Include alloc pool.
25548 (lto_streamer_cache_d): Use alloc pool.
25549 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
25550
25551 2010-05-10 Jan Hubicka <jh@suse.cz>
25552
25553 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
25554 * cgraphbuild.c: Include except.h
25555 (record_type_list, record_eh_tables): New function.
25556 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
25557
25558 2010-05-10 Jan Hubicka <jh@suse.cz>
25559
25560 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
25561 __frame_dummy_init_array_entry, force_to_data): Attribute as used
25562 rather than unused.
25563
25564 2010-05-10 Michael Matz <matz@suse.de>
25565
25566 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
25567 (can_reassociate_p): Use FLOAT_TYPE_P.
25568 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
25569 (vect_force_simple_reduction): ... this.
25570 * tree-parloops.c (gather_scalar_reductions): Use
25571 vect_force_simple_reduction.
25572 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
25573 vect_is_simple_reduction, add modify argument, if true rewrite
25574 "a-b" into "a+(-b)".
25575 (vect_is_simple_reduction, vect_force_simple_reduction): New
25576 functions.
25577 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
25578
25579 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
25580 Vladimir Makarov <vmakarov@redhat.com>
25581
25582 PR rtl-optimization/44012
25583 * ira-build.c (remove_unnecessary_allocnos): Nullify
25584 regno_allocno_map of the removed allocno.
25585
25586 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25587
25588 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
25589 to /dev/null.
25590 * configure: Regenerate.
25591
25592 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25593
25594 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
25595 unused.
25596 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
25597 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
25598 support in Sun ld.
25599 * configure: Regenerate.
25600
25601 2010-05-10 Richard Guenther <rguenther@suse.de>
25602
25603 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
25604 marked if the entry identifier is marked.
25605
25606 2010-05-10 Richard Guenther <rguenther@suse.de>
25607
25608 * c-common.c (struct c_common_attributes): Add fnspec attribute.
25609 (handle_fnspec_attribute): New function.
25610 * gimple.h (gimple_call_return_flags): Declare.
25611 (gimple_call_arg_flags): Likewise.
25612 * gimple.c (gimple_call_arg_flags): New function.
25613 (gimple_call_return_flags): Likewise.
25614 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
25615 New argument flags.
25616 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
25617 return value flags.
25618 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
25619 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
25620 main work to ...
25621 (make_heapvar_for): ... this new function.
25622 (handle_rhs_call): Handle fnspec attribute argument specifiers.
25623 (handle_lhs_call): Likewise.
25624 (find_func_aliases): Adjust.
25625
25626 2010-05-10 Richard Guenther <rguenther@suse.de>
25627
25628 PR tree-optimization/44050
25629 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
25630
25631 2010-05-10 Wei Guozhi <carrot@google.com>
25632
25633 PR target/42879
25634 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
25635
25636 2010-05-09 Joseph Myers <joseph@codesourcery.com>
25637
25638 PR c/10676
25639 * c-typeck.c (lookup_field): Take a type directly. Update
25640 recursive calls.
25641 (build_component_ref): Update call to lookup_field.
25642 (set_init_label): Use lookup_field to find initialized field.
25643 Handle returned list of fields like a sequence of designators.
25644
25645 2010-05-09 Richard Guenther <rguenther@suse.de>
25646
25647 PR middle-end/44024
25648 * fold-const.c (tree_single_nonzero_warnv_p): Properly
25649 handle &FUNCTION_DECL.
25650
25651 2010-05-09 Joseph Myers <joseph@codesourcery.com>
25652
25653 PR c/4784
25654 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
25655 structures and unions recursively.
25656 (detect_field_duplicates): Move duplicate detection with a hash to
25657 detect_field_duplicates_hash. Always use a hash if anonymous
25658 structures or unions are present.
25659 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
25660 give errors.
25661
25662 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
25663
25664 PR target/44046
25665 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
25666 detect Atom, Core 2 and Core i7.
25667
25668 2010-05-09 Richard Guenther <rguenther@suse.de>
25669
25670 * gcc.c (store_arg): Handle temporary file deletion for
25671 joined arguments.
25672
25673 2010-05-09 Richard Guenther <rguenther@suse.de>
25674
25675 PR middle-end/44043
25676 * ipa-inline.c (estimate_function_body_sizes): Return after
25677 disregarding inline limits.
25678
25679 2010-05-09 Richard Guenther <rguenther@suse.de>
25680
25681 * gcc.c (store_arg): Revert last change.
25682
25683 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
25684
25685 PR middle-end/28685
25686 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
25687 (optimize_ops_list): Call it.
25688
25689 2010-05-08 Richard Guenther <rguenther@suse.de>
25690
25691 PR tree-optimization/44030
25692 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
25693 NECESSARY flag if we propagate from a inserted expression.
25694
25695 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
25696
25697 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
25698 domain types as equal if they are both PLACEHOLDER_EXPRs.
25699
25700 2010-05-08 Richard Guenther <rguenther@suse.de>
25701
25702 * lto-wrapper.c (run_gcc): Remove linker output from
25703 command line for LTRANS invocation.
25704
25705 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
25706
25707 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
25708 lto-macho as lto_binary_reader.
25709 * target.h (struct gcc_target): New hooks lto_start and lto_end.
25710 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
25711 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
25712 in lto_start and lto_end calls.
25713 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
25714 magic numbers.
25715 (scan_prog_file): Update is_elf_or_coff call.
25716 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
25717
25718 * collect2.c (main): Fix enum comparison.
25719
25720 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
25721 Add prototypes.
25722 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
25723 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
25724 and TARGET_ASM_LTO_END.
25725 * darwin.c: Include obstack.h and lto-streamer.h.
25726 (lto_section_names_offset, lto_section_names_obstack,
25727 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
25728 global variables.
25729 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
25730 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
25731 to a temporary file.
25732 (darwin_asm_lto_end): New function. Restore asm_out_file.
25733 (darwin_asm_named_section): For LTO sections, replace the name with
25734 the offset of the section name in a string table, and build this
25735 table.
25736 (darwin_file_start): Initialize global vars for LTO support.
25737 (darwin_file_end): If output to asm_out_file was redirected, append it
25738 to the proper asm_out_file here. Add the section names section.
25739
25740 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
25741
25742 * c-pragma.c (pending_weak_d, pending_weak): New.
25743 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
25744 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
25745 handle_pragma_weak): Update the uses of pending_weaks.
25746
25747 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25748
25749 PR documentation/44016
25750 * doc/standards.texi (Standards): Link to unversioned
25751 cxx0x_status.html page.
25752
25753 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
25754
25755 PR target/43708
25756 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
25757 in addition to TREE_USED, to avoid "set but unused" warnings.
25758
25759 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25760
25761 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
25762 (is_loop_prefetching_profitable): Do not insert prefetches
25763 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
25764 times the prefetch ahead distance.
25765
25766 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25767
25768 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
25769 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
25770 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
25771 the unroll_factor.
25772
25773 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25774
25775 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
25776 a diagnostic info when the insn-to-mem ratio is too small.
25777
25778 2010-05-07 Richard Guenther <rguenther@suse.de>
25779
25780 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
25781 the linker plugin.
25782 (store_arg): Queue temp_filename for deletion instead of
25783 the whole argument.
25784
25785 2010-05-07 Richard Guenther <rguenther@suse.de>
25786
25787 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
25788 (run_gcc): Handle LTRANS phase invocation.
25789 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
25790
25791 2010-05-07 Jakub Jelinek <jakub@redhat.com>
25792
25793 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
25794 this is also meaningful on PARM_DECLs and RESULT_DECLs.
25795
25796 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25797
25798 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
25799
25800 2010-05-07 Richard Guenther <rguenther@suse.de>
25801
25802 PR tree-optimization/44020
25803 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
25804 code when PRE is not yet initialized.
25805
25806 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25807
25808 * config/mips/dbxmdebug.h: Remove.
25809 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
25810
25811 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
25812
25813 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
25814 with null pointer and also warn about ordered comparison of zero with
25815 pointer if -Wextra.
25816
25817 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
25818
25819 * graphite-blocking.c
25820 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
25821 * graphite-clast-to-gimple.c
25822 (clast_to_gcc_expression): Same.
25823 (precision_for_value): Same.
25824 (precision_for_interval): Same.
25825 (gcc_type_for_interval): Same.
25826 (graphite_create_new_guard): Same.
25827 (compute_bounds_for_level): Same.
25828 (graphite_create_new_loop_guard): Same.
25829 * graphite-interchange.c
25830 (build_linearized_memory_access): Same.
25831 (pdr_stride_in_loop): Same.
25832 (memory_strides_in_loop_1): Same.
25833 (memory_strides_in_loop): Same.
25834 (extend_scattering): Same.
25835 (psct_scattering_dim_for_loop_depth): Same.
25836 (pbb_number_of_iterations): Same.
25837 * graphite-poly.h
25838 (debug_iteration_domains): Same.
25839 * graphite-ppl.c
25840 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
25841 (ppl_set_inhomogeneous_gmp): Same.
25842 (ppl_strip_loop): Same.
25843 (ppl_lexico_compare_linear_expressions): Same.
25844 (ppl_read_polyhedron_matrix): Same.
25845 (ppl_max_for_le_pointset): Same.
25846 * graphite-ppl.h
25847 (ppl_read_polyhedron_matrix): Same.
25848 (tree_int_to_gmp): Same.
25849 (gmp_cst_to_tree): Same.
25850 (ppl_set_inhomogeneous): Same.
25851 (ppl_set_inhomogeneous_tree): Same.
25852 (ppl_set_coef): Same.
25853 (ppl_set_coef_tree): Same.
25854 * graphite-sese-to-poly.c
25855 (build_pbb_scattering_polyhedrons): Same.
25856 (build_scop_scattering): Same.
25857 (scan_tree_for_params_right_scev): Same.
25858 (scan_tree_for_params): Same.
25859 (find_params_in_bb): Same.
25860 (find_scop_parameters): Same.
25861 (add_upper_bounds_from_estimated_nit): Same.
25862 (build_loop_iteration_domains): Same.
25863 (add_condition_to_domain): Same.
25864 (pdr_add_memory_accesses): Same.
25865
25866 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
25867
25868 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
25869 CLooG's value_* macros to their respective mpz_* counterparts.
25870 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
25871 (graphite_create_new_loop_guard): Same.
25872 * graphite-interchange.c (build_linearized_memory_access): Same.
25873 (pdr_stride_in_loop): Same.
25874 (memory_strides_in_loop_1): Same.
25875 (1st_interchange_profitable_p): Same.
25876 * graphite-poly.c (extend_scattering): Same.
25877 (psct_scattering_dim_for_loop_depth): Same.
25878 (pbb_number_of_iterations): Same.
25879 (pbb_number_of_iterations_at_time): Same.
25880 * graphite-poly.h (new_1st_loop): Same.
25881 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
25882 (oppose_constraint): Same.
25883 (insert_constraint_into_matrix): Same.
25884 (ppl_set_inhomogeneous_gmp): Same.
25885 (ppl_set_coef_gmp): Same.
25886 (ppl_strip_loop): Same.
25887 (ppl_lexico_compare_linear_expressions): Same.
25888 (ppl_max_for_le_pointset): Same.
25889 (ppl_min_for_le_pointset): Same.
25890 (ppl_build_realtion): Same.
25891 * graphite-ppl.h (gmp_cst_to_tree): Same.
25892 (ppl_set_inhomogeneous): Same.
25893 (ppl_set_inhomogeneous_tree): Same.
25894 (ppl_set_coef): Same.
25895 (ppl_set_coef_tree): Same.
25896 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25897 (build_scop_scattering): Same.
25898 (add_value_to_dim): Same.
25899 (scan_tree_for_params_right_scev): Same.
25900 (scan_tree_for_params_int): Same.
25901 (scan_tree_for_params): Same.
25902 (find_params_in_bb): Same.
25903 (find_scop_parameters): Same.
25904 (add_upper_bounds_from_estimated_nit): Same.
25905 (build_loop_iteration_domains): Same.
25906 (create_linear_expr_from_tree): Same.
25907 (add_condition_to_domain): Same.
25908 (pdr_add_memory_accesses): Same.
25909
25910 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
25911 Jason Merrill <jason@redhat.com>
25912
25913 * c-common.c (c_common_reswords): Add nullptr.
25914 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
25915 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
25916 (gen_type_die_with_usage): Likewise.
25917 * dbxout.c (dbxout_type): Likewise.
25918 * sdbout.c (plain_type_1): Likewise.
25919
25920 2010-05-06 Jason Merrill <jason@redhat.com>
25921
25922 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
25923 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
25924 ret appropriately.
25925 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
25926
25927 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
25928 stripping WITH_SIZE_EXPR.
25929 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
25930 change.
25931
25932 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25933
25934 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
25935 list of obsolete configurations.
25936 Disabled check for obsolete configurations.
25937 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
25938 Removed support for previous versions.
25939 * config/mips/iris.h: Removed.
25940 * config/mips/iris5.h: Removed.
25941 * config/mips/iris6.h: Merged old iris.h contents.
25942 (TARGET_IRIX): Removed.
25943 (DRIVER_SELF_SPECS): Removed mabi=32.
25944 (IDENT_ASM_OP): Removed undef.
25945 (STARTFILE_SPEC): Removed mabi=32.
25946 (ENDFILE_SPEC): Likewise.
25947 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
25948 (MACHINE_TYPE): Update for IRIX 6.5.
25949 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
25950 TARGET_IRIX by TARGET_IRIX6.
25951 (mips_file_start): Likewise.
25952 (mips_output_external): Remove IRIX 5/6 O32 support.
25953 (mips_output_function_prologue): Likewise.
25954 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
25955 TARGET_IRIX6.
25956 (TARGET_CPU_CPP_BUILTINS): Likewise.
25957 (TARGET_IRIX): Removed.
25958 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
25959 (MULTILIB_DIRNAMES): Removed 32.
25960 (MULTILIB_OSDIRNAMES): Removed ../lib.
25961 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
25962 (Specific, mips-sgi-irix5): Document removal.
25963 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
25964 Remove references to older IRIX 6 releases and the O32 ABI.
25965
25966 2010-05-06 Jakub Jelinek <jakub@redhat.com>
25967
25968 PR bootstrap/43994
25969 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
25970 instead of DF_REF_REAL_REG.
25971
25972 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
25973
25974 PR target/43888
25975 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
25976 handling to still return true for x64 targets.
25977
25978 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25979
25980 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
25981
25982 2010-05-06 Jan Hubicka <jh@suse.cz>
25983
25984 PR tree-optimization/43791
25985 * ipa-inline.c (update_caller_keys): Remove bogus
25986 disregard_inline_limits check.
25987
25988 2010-05-06 Michael Matz <matz@suse.de>
25989
25990 PR tree-optimization/43984
25991 * tree-ssa-pre.c (inserted_phi_names): Remove.
25992 (inserted_exprs): Change to bitmap.
25993 (create_expression_by_pieces): Set bits, don't append to vector.
25994 (insert_into_preds_of_block): Don't handle inserted_phi_names.
25995 (eliminate): Don't look at inserted_phi_names, remove deleted
25996 insns from inserted_exprs.
25997 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
25998 (init_pre, fini_pre): Allocate and free bitmaps.
25999 (execute_pre): Insert insns on edges before elimination.
26000
26001 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
26002
26003 * tree.c (initializer_zerop): Handle STRING_CST.
26004
26005 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
26006
26007 PR 40989
26008 * doc/invoke.texi (Wimplicit): Document as C only.
26009 * opts.c (common_handle_option): Add argument kind.
26010 (handle_option): Rename as read_cmdline_option. Factor out code to...
26011 (handle_option): ... here. New.
26012 (handle_options): Rename as read_cmdline_options.
26013 (decode_options): Update call.
26014 (set_option): Use option index instead of option pointer. Classify
26015 diagnostics correctly.
26016 (enable_warning_as_error): Call handle_option.
26017 * opts.h (set_option): Update declaration.
26018 (handle_option): Declare.
26019 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
26020 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
26021 * c-opts.c (set_Wimplicit): Delete.
26022 (c_family_lang_mask): New static constant.
26023 (c_common_handle_option): Add argument kind. Use handle_option
26024 instead of set_Wimplicit.
26025 (c_common_post_options): warn_implicit and warn_implicit_int
26026 are disabled by default.
26027 * c-common.c (warn_implicit): Do not define here.
26028 * c-common.h (warn_implicit): Do not declare here.
26029 (c_common_handle_option): Update declaration.
26030 * lto-opts.c (lto_reissue_options): Update call to set_option.
26031
26032 2010-05-06 Richard Guenther <rguenther@suse.de>
26033
26034 PR tree-optimization/43571
26035 * domwalk.c (walk_dominator_tree): Walk the dominator
26036 sons in more optimal order.
26037
26038 2010-05-06 Richard Guenther <rguenther@suse.de>
26039
26040 PR tree-optimization/43934
26041 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
26042 (stmt_cost): Likewise.
26043 (extract_true_false_args_from_phi): New helper.
26044 (determine_max_movement): For PHI nodes verify we can hoist them
26045 and compute their cost.
26046 (determine_invariantness_stmt): Handle PHI nodes.
26047 (move_computations_stmt): Likewise. Hoist PHI nodes in
26048 if-converted form using COND_EXPRs.
26049 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
26050 (tree_ssa_lim): Likewise.
26051 * tree-flow.h (tree_ssa_lim): Adjust prototype.
26052 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
26053
26054 2010-05-06 Richard Guenther <rguenther@suse.de>
26055
26056 PR tree-optimization/43987
26057 * tree-ssa-structalias.c (could_have_pointers): For possibly
26058 address-taken variables force pointers to be recorded.
26059 (create_variable_info_for_1): Likewise.
26060 (push_fields_onto_fieldstack): Pass in wheter all fields
26061 must have pointers.
26062 (find_func_aliases): Query types instead of vars whether
26063 they contain pointers where appropriate.
26064
26065 2010-05-06 Jan Hubicka <jh@suse.cz>
26066
26067 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
26068 (record_reference, mark_address, mark_load, mark_store): Record
26069 references.
26070 (record_references_in_initializer): Update call of record_references.
26071 (rebuild_cgraph_edges): Remove all references before rebuiding.
26072 * cgraph.c (cgraph_create_node): Clear ref list.
26073 (cgraph_remove_node): Remove references.
26074 (dump_cgraph_node): Dump references.
26075 (cgraph_clone_node): Clone references.
26076 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
26077 (struct cgraph_node, varpool_node): Add ref_lst.
26078 * ipa-ref.c: New file.
26079 * ipa-ref.h: New file.
26080 * ipa-ref-inline.h: New file.
26081 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
26082 (referenced_from_other_partition_p): New function.
26083 (lto_output_varpool_node): Take set arugment; call
26084 referenced_from_other_partition.
26085 (lto_output_ref): New.
26086 (add_references): New.
26087 (output_refs): New.
26088 (output_cgraph): Compute boundary based on references; output refs.
26089 (output_varpool): Accept cgraph_node_set argument.
26090 (input_ref): New.
26091 (input_refs): New.
26092 (input_cgraph): Call input_refs.
26093 * lto-section-in.c (lto_section_name): Add refs.
26094 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
26095 (ipa-ref.o): New file.
26096 * varpool.c (varpool_node): Clear ipa ref list.
26097 (varpool_remove_node): Remove references.
26098 (dump_varpool_node): Dump references.
26099 (varpool_assemble_decl): Only compile finalized ones.
26100 (varpool_extra_name_alias): Initialize ref list.
26101 * lto-streamer.c (lto-get_section_name): Add .refs section.
26102 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
26103 (referenced_from_other_partition_p): Declared.
26104
26105 2010-05-06 Ira Rosen <irar@il.ibm.com>
26106
26107 PR tree-optimization/43901
26108 * tree-vect-stmts.c (vectorizable_call): Assert that vector
26109 type is not NULL if it's transformation phase, and return
26110 FALSE if it's analysis.
26111 (vectorizable_conversion, vectorizable_operation,
26112 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
26113
26114 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
26115
26116 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
26117 Delete.
26118 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
26119 New define.
26120 * config/mips/mips-protos.h
26121 (mips_small_register_classes_for_mode_p): Delete prototype.
26122
26123 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
26124
26125 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
26126 * config/arm/arm.c (multiple_operation_profitable_p,
26127 compute_offset_order): New static functions.
26128 (load_multiple_sequence, store_multiple_sequence): Use them.
26129 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
26130 memory offsets, not register numbers.
26131 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
26132
26133 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
26134
26135 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
26136 (get_pending_sizes, put_pending_size, put_pending_sizes):
26137 Update the uses of pending_sizes.
26138 * c-decl.c (store_parm_decls): Likewise.
26139 * c-tree.h (struct c_arg_info): Likewise.
26140 * tree.h: Update the prototype for get_pending_sizes and
26141 put_pending_sizes.
26142
26143 2010-05-05 Jason Merrill <jason@redhat.com>
26144
26145 PR debug/43370
26146 * c-common.c (handle_aligned_attribute): Respect
26147 ATTR_FLAG_TYPE_IN_PLACE.
26148
26149 PR testsuite/43758
26150 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
26151 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
26152 (TARGET_INITIALIZER): Use it.
26153 * c-common.c (attribute_takes_identifier_p): Call it.
26154 * c-common.h: Update prototype.
26155 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
26156 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
26157
26158 2010-05-05 Jakub Jelinek <jakub@redhat.com>
26159
26160 PR debug/43950
26161 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
26162 DW_ID_down_case for Fortran compilation units.
26163
26164 2010-05-05 Jan Hubicka <jh@suse.cz>
26165
26166 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
26167 handle aliases.
26168
26169 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
26170
26171 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
26172 a variable-sized RESULT_DECL.
26173
26174 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
26175
26176 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
26177
26178 2010-05-05 Jason Merrill <jason@redhat.com>
26179
26180 PR c++/43787
26181 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
26182 returns GS_OK.
26183 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
26184
26185 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
26186 Jakub Jelinek <jakub@redhat.com>
26187
26188 PR debug/43478
26189 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
26190 (dead_debug_init, dead_debug_finish): New functions.
26191 (dead_debug_add, dead_debug_insert_before): Likewise.
26192 (df_note_bb_compute): Initialize a dead_debug object, add dead
26193 debug uses to it, insert debug bind insns before death insns,
26194 reset debug insns that refer to pending uses at the end.
26195 * rtl.h (make_debug_expr_from_rtl): New prototype.
26196 * varasm.c (make_debug_expr_from_rtl): New function.
26197
26198 2010-05-05 Jan Hubicka <jh@suse.cz>
26199
26200 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
26201 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
26202 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
26203 lto_varpool_encoder_deref, lto_varpool_encoder_size,
26204 lto_varpool_encoder_encode_initializer_p,
26205 lto_set_varpool_encoder_encode_initializer): New functions.
26206 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
26207 call output_varpool.
26208 (input_varpool_node): Do not always set analyzed.
26209 (input_cgraph_1): Return vector of cgraph nodes.
26210 (input_varpool_1): Return vector of varpools.
26211 (input_cgraph): Free the vectors.
26212 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26213 output only initializers needed.
26214 (lto_output): Only call output_cgraph.
26215 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
26216 * lto-section-out.c (lto_new_out_decl_state): Initialize
26217 state->varpool_node_encoder.
26218 * lto-streamer.h (lto_varpool_encoder_d): New.
26219 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
26220 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
26221 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
26222 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
26223 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
26224 Declare.
26225 (output_varpool, input_varpool): Remove declarations.
26226
26227 2010-05-05 Jan Hubicka <jh@suse.cz>
26228
26229 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
26230 with body can prevail.
26231
26232 2010-05-05 Jan Hubicka <jh@suse.cz>
26233
26234 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
26235 size.
26236
26237 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26238
26239 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
26240
26241 * gengtype.h (erro_at_line): Constify pos argument.
26242
26243 * gengtype.c: Include hashtab.h.
26244 (enum gc_used): Document GC_MAYBE_POINTED_TO.
26245 (error_at_line): Constify pos argument.
26246 (do_typedef): Initialize p->opt field.
26247 (get_file_gtfilename): Fix comment typo.
26248 (struct walk_type_data): Constify line field.
26249 (get_output_file_for_structure): New function.
26250 (write_local_func_for_structure): Constify orig_s argument.
26251 Use get_output_file_for_structure.
26252 (write_func_for_structure): Use get_output_file_for_structure.
26253 (INDENT): New define.
26254 (dump_pair, dump_type, dump_type_list, dump_typekind)
26255 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
26256 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
26257 functions.
26258 (seen_types): New variable.
26259 (main): New variable do_dump. Process "-d" command line option.
26260 Call dump_everything if dump requested.
26261
26262 2010-05-05 Jakub Jelinek <jakub@redhat.com>
26263
26264 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
26265 in a temporary instead of invoking the macro multiple times.
26266 (track_expr_p): Likewise.
26267
26268 2010-05-04 Neil Vachharajani <nvachhar@google.com>
26269
26270 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
26271 per new semantics.
26272 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
26273 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
26274 conditions for printing notes.
26275 * common.opt (-Wcoverage-mismatch): Allow negative, default to
26276 true, update documentation.
26277 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
26278
26279 2010-05-04 Jakub Jelinek <jakub@redhat.com>
26280
26281 PR c/43981
26282 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
26283 on dimen.
26284
26285 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
26286
26287 PR target/43799
26288 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
26289 (*sse_prologue_save_insn1): Likewise.
26290 (SSE prologue save splitter): Likewise.
26291
26292 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
26293
26294 * tree.c (free_lang_data_in_one_sizepos): New inline function.
26295 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
26296 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
26297 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
26298 all decls. Call it on DECL_FIELD_OFFSET of fields.
26299 (find_decls_types_r): Follow DECL_VALUE_EXPR.
26300 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
26301
26302 2010-05-04 Martin Jambor <mjambor@suse.cz>
26303
26304 * tree-sra.c (build_access_from_expr_1): The first parameter type
26305 changed to simple tree.
26306 (build_access_from_expr): Likewise, gsi parameter was eliminated.
26307 (scan_assign_result): Renamed to assignment_mod_result, enum elements
26308 renamed as well.
26309 (build_accesses_from_assign): Removed all parameters except for a
26310 simple gimple statement. Now returns a simple bool.
26311 (scan_function): All non-analysis parts moved to separate functions
26312 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
26313 parameters and updated both callers.
26314 (sra_modify_expr): Removed parameter data.
26315 (sra_modify_function_body): New function.
26316 (perform_intra_sra): Call sra_modify_function_body to modify the
26317 function body.
26318 (replace_removed_params_ssa_names): Parameter data changed into
26319 adjustments vector.
26320 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
26321 changed the parameter dont_convert to convert with the opposite
26322 meaning.
26323 (sra_ipa_modify_assign): Parameter data changed into adjustments
26324 vector, return value changed to bool.
26325 (ipa_sra_modify_function_body): New function.
26326 (sra_ipa_reset_debug_stmts): Updated a comment.
26327 (modify_function): Use ipa_sra_modify_function_body to modify function
26328 body.
26329
26330 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
26331
26332 PR middle-end/43671
26333 * alias.c (true_dependence): Handle the same VALUE in x and mem.
26334 (canon_true_dependence): Likewise.
26335 (write_dependence_p): Likewise.
26336
26337 2010-05-04 Jan Hubicka <jh@suse.cz>
26338
26339 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
26340 * cgraphbuild.c: Include ipa-utils.h
26341 (record_reference_ctx): New struct.
26342 (record_reference): Simplify to work on initializers; not statements.
26343 (mark_address, mark_load, mark_store): New.
26344 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
26345 walk PHI nodes too.
26346 (record_references_in_initializer): Update use of record_reference.
26347 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
26348 walk PHI nodes too.
26349
26350 2010-05-04 Jan Hubicka <jh@suse.cz>
26351
26352 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
26353 node will be removed anyway.
26354 (lto_varpool_replace_node): Allow also unanalyzed nodes;
26355 relink aliases of node into prevailing node.
26356 * varpool.c (varpool_remove_node): Remove aliases properly;
26357 when removing node, remove all its aliases too; remove DECL_INITIAL
26358 of removed node; ggc_free the varpool node.
26359
26360 2010-05-04 Richard Guenther <rguenther@suse.de>
26361
26362 PR tree-optimization/43879
26363 * tree-ssa-structalias.c (alias_get_name): Use
26364 DECL_ASSEMBLER_NAME if available.
26365 (create_function_info_for): Return the varinfo node.
26366 (ipa_pta_execute): Associate same-body aliases and extra names
26367 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
26368
26369 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
26370
26371 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
26372
26373 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
26374
26375 PR bootstrap/43964
26376 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
26377 only if HONOR_REG_ALLOC_ORDER is not defined.
26378
26379 2010-05-04 Richard Guenther <rguenther@suse.de>
26380
26381 PR tree-optimization/43949
26382 * tree-vrp.c (extract_range_from_binary_expr): Only handle
26383 TRUNC_MOD_EXPR.
26384
26385 2010-04-26 Jason Merrill <jason@redhat.com>
26386
26387 * c.opt (-fstrict-enums): New.
26388 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
26389
26390 2010-05-03 David Ung <davidu@mips.com>
26391 James E. Wilson <wilson@codesourcery.com>
26392
26393 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
26394 emit the trap instruction before the divide for TUNE_74K.
26395
26396 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
26397
26398 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
26399 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
26400 based on the above, for new target hook.
26401
26402 * hooks.c (hook_bool_mode_true): New generic hook.
26403 * hooks.h (hook_bool_mode_true): Add prototype.
26404
26405 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
26406 target hook.
26407 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
26408 target hook, set to hook_bool_mode_false.
26409 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
26410 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
26411 with targetm.small_register_classes_for_mode_p.
26412 (find_reusable_reload): Likewise.
26413 (combine_reloads): Likewise.
26414 * reload1.c (reload_as_needed): Likewise.
26415 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
26416 * ifcvt.c (noce_process_if_block, check_cond_move_block,
26417 dead_or_predicable): Likewise.
26418 * regmove.c (optimize_reg_copy_1): Likewise.
26419 * calls.c (prepare_call_address): Likewise.
26420 (precompute_register_parameters): Likewise.
26421
26422 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
26423 hook definition.
26424 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
26425 implementation of the hook that considers all register classes
26426 small except for SH64.
26427 (sh_override_options): Use the new hook.
26428 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
26429 Add prototype.
26430
26431 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
26432 hook definition.
26433 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
26434 implementation of the hook that considers all register classes
26435 small for THUMB1.
26436 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
26437 Add prototype.
26438
26439 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
26440 hook definition.
26441 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
26442 implementation of the hook that considers all register classes
26443 small for MIPS16.
26444 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
26445 Add prototype.
26446
26447 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
26448 hook definition.
26449 * config/m32c/m32c.h: Likewise.
26450 * config/pdp11/pdp11.h: Likewise.
26451 * config/avr/avr.h: Likewise.
26452 * config/xtensa/xtensa.h: Likewise.
26453 * config/m68hc11/m68hc11.h: Likewise.
26454 * config/mn10300/mn10300.h: Likewise.
26455 * config/mcore/mcore.h: Likewise.
26456 * config/h8300/h8300.h: Likewise.
26457 * config/bfin/bfin.h: Likewise.
26458
26459 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
26460 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
26461
26462 2010-05-03 Anatoly Sokolov <aesok@post.ru>
26463
26464 * double-int.h (tree_to_double_int): Remove macro.
26465 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
26466 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26467 (tree_to_double_int): New function.
26468 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
26469 Move ...
26470 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26471
26472 2010-05-03 Richard Guenther <rguenther@suse.de>
26473
26474 PR tree-optimization/43971
26475 * tree-ssa-structalias.c (get_constraint_for_1): Fix
26476 constraints in the !flag_delete_null_pointer_checks case.
26477
26478 2010-05-03 Jakub Jelinek <jakub@redhat.com>
26479
26480 PR debug/43972
26481 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
26482 result mode matches original rtl mode.
26483
26484 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
26485
26486 PR target/43888
26487 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
26488
26489 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26490
26491 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
26492 when processing flag options.
26493
26494 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26495
26496 * gcov-iov.c (main): Change format string placeholder
26497 from %#08x to 0x%08x.
26498 * genchecksum.c (dosum): Change format string placeholder
26499 from %#02x to 0x%02x.
26500
26501 2010-05-02 Richard Guenther <rguenther@suse.de>
26502
26503 PR tree-optimization/43879
26504 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
26505
26506 2010-05-02 Bruno Haible <bruno@clisp.org>
26507
26508 * doc/extend.texi (Function Attributes): Fix a typo.
26509
26510 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26511
26512 Revert:
26513 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
26514 placeholder from 0x%x to %#x.
26515 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26516 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26517 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26518 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26519 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26520 * config/i386/i386.c (ix86_target_string): Ditto.
26521 * config/i386/i386.c (output_pic_addr_const): Ditto.
26522 (print_operand): Ditto.
26523
26524 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26525
26526 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
26527 placeholder from 0x%x to %#x.
26528 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
26529 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
26530 (ASM_OUTPUT_DEBUG_DATA): Ditto.
26531 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
26532 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
26533 * optc-gen.awk: Ditto.
26534 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
26535 (HOST_WIDE_INT_PRINT_HEX): Ditto.
26536 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
26537 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26538
26539 2010-05-01 Anatoly Sokolov <aesok@post.ru>
26540
26541 * target.h (struct calls): Add function_value_regno_p field.
26542 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
26543 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
26544 * targhooks.c (default_function_value_regno_p): New function.
26545 * targhooks.h (default_function_value_regno_p): Declare function.
26546 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
26547 * builtins.c. (apply_result_size): (Ditto.).
26548 * combine.c. (likely_spilled_retval_p): (Ditto.).
26549 * mode-switching.c. Include 'target.h'.
26550 (create_pre_exit): Use function_value_regno_p hook.
26551 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
26552 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
26553 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
26554
26555 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
26556 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
26557 (ix86_function_value_regno_p): Declare as static, change argument
26558 type to const unsigned int.
26559 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
26560
26561 2010-05-01 Richard Guenther <rguenther@suse.de>
26562
26563 PR tree-optimization/43949
26564 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
26565 types.
26566 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
26567
26568 2010-05-01 Anatoly Sokolov <aesok@post.ru>
26569
26570 * rtl.h (CONST_DOUBLE_P): Define.
26571 (rtx_to_double_int): Declare.
26572 * emit-rtl.c (rtx_to_double_int): New function.
26573 * dwarf2out.c (insert_double): New function.
26574 (loc_descriptor, add_const_value_attribute): Clean up, use
26575 rtx_to_double_int and insert_double functions.
26576
26577 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
26578
26579 * doc/extend.texi (Inline): Add missing return keyword to examples.
26580 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
26581 "command-line".
26582
26583 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
26584
26585 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
26586 the variable part of the offset as well. Use highest_pow2_factor for
26587 all alignment checks.
26588
26589 2010-04-30 Richard Guenther <rguenther@suse.de>
26590
26591 PR tree-optimization/43879
26592 * tree-ssa-structalias.c (type_could_have_pointers): Functions
26593 can have pointers.
26594
26595 2010-04-30 Jan Hubicka <jh@suse.cz>
26596
26597 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
26598 varpool.
26599 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
26600
26601 2010-04-30 Jan Hubicka <jh@suse.cz>
26602
26603 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
26604 New.
26605 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
26606 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
26607 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
26608 cgraph_node_set_needs_ltrans_p): Remove.
26609
26610 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
26611
26612 * sdbout.c: Include vec.h, do not include varray.h.
26613 (deferred_global_decls, sdbout_global_decl,
26614 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
26615 * toplev.c: Do not include varray.h.
26616 (dump_memory_report): Do not dump VARRAY statistics.
26617 * gengtype.c (open_base_file): Ignore varray.h.
26618 * Makefile.in: Update for abovementioned changes.
26619 Remove all traces of varray.c and varray.h.
26620 * varray.c: Remove file.
26621 * varray.h: Remove file.
26622
26623 2010-04-30 Jan Hubicka <jh@suse.cz>
26624
26625 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
26626 references.
26627
26628 2010-04-30 Jan Hubicka <jh@suse.cz>
26629
26630 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
26631 needed.
26632
26633 2010-04-30 Richard Guenther <rguenther@suse.de>
26634
26635 * tree-ssa-structalias.c (get_constraint_for_1): Generate
26636 constraints for CONSTRUCTOR.
26637
26638 2010-04-30 Richard Guenther <rguenther@suse.de>
26639
26640 PR lto/43946
26641 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
26642 first after all lowering passes.
26643
26644 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
26645
26646 * toplev.c: Include varray.h for statistics dumping.
26647 * tree.h: Do not declare varray_head_tag.
26648 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
26649 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
26650 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
26651 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
26652 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
26653 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
26654 c-common.c, c-common.h, reg-stack.c, basic-block.h,
26655 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
26656 include varray.h.
26657 * Makefile.in: Update for abovementioned changes.
26658
26659 2010-04-30 Jakub Jelinek <jakub@redhat.com>
26660
26661 PR debug/43942
26662 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
26663
26664 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
26665
26666 * config/picochip/picochip.c (picochip_legitimize_address): Define.
26667 Use this function to do machine-specific conversion.
26668 (picochip_legitimize_reload_address): Likewise.
26669 (picochip_legitimate_address_p): Check valid base register only if
26670 strict.
26671 (picochip_check_conditional_copy): Check for modw only if opnd is
26672 register.
26673 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
26674 to call the function in c.
26675 * config/picochip/picochip-protos.h
26676 (picochip_legitimize_reload_address): Define.
26677 * config/picochip/picochip.md (supported_compare1): Define.
26678
26679 2010-04-30 Jan Hubicka <jh@suse.cz>
26680
26681 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
26682 (cgraph_global_info): Remove inlined.
26683 (LTO_cgraph_tag_names): Remove.
26684 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
26685 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
26686 simplify cgraph tags and document.
26687 (lto_output_node): Use only LTO_cgraph_unavail_node and
26688 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
26689 for_functions_valid, global info, process and output flags.
26690 (input_overwrite_node): Initialize estimated stack size and
26691 estimated growth. Do not read flags we no longer store.
26692 (input_node): Likewise do not read info no longer stored.
26693 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
26694 flag.
26695
26696 2010-04-30 Richard Guenther <rguenther@suse.de>
26697
26698 PR tree-optimization/43879
26699 * tree-ssa-structalias.c (get_constraint_for_1): Properly
26700 handle non-zero initializers.
26701
26702 2010-04-30 Richard Guenther <rguenther@suse.de>
26703
26704 * builtins.c (fold_builtin_1): Delete free (0).
26705
26706 2010-04-29 Jan Hubicka <jh@suse.cz>
26707
26708 * gengtype.c (open_base_files): Add lto-streamer.h
26709 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
26710 (pass_ipa_cp): GGC collect.
26711 * toplev. (compile_file): Do not output symbols.
26712 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
26713 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
26714 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
26715 * lto-section-in.c: Include ggc.h
26716 (lto_new_in_decl_state): Alloc in GGC.
26717 (lto_delete_in_decl_state): Likewise.
26718 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
26719 Collect.
26720
26721 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
26722
26723 PR target/42895
26724 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
26725 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
26726 (HONOR_REG_ALLOC_ORDER): Describe new macro.
26727 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
26728 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
26729 account only if HONOR_REG_ALLOC_ORDER is not defined.
26730 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
26731 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
26732
26733 2010-04-29 Jon Grant <04@jguk.org>
26734
26735 * collect2.c (vflag): Change type from int to bool.
26736 (debug): Likewise.
26737 (helpflag): New global bool.
26738 (main): Set vflag and debug with boolean, not integer truth values.
26739 Accept new "--help" option and output usage text if found.
26740 * collect2.h (vflag): Update prototype.
26741 (debug): Likewise.
26742
26743 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
26744
26745 PR bootstrap/43936
26746 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
26747
26748 2010-04-29 Richard Guenther <rguenther@suse.de>
26749
26750 PR bootstrap/43935
26751 * plugin.h (invoke_plugin_callbacks): Annotate arguments
26752 with ATTRIBUTE_UNUSED.
26753
26754 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
26755
26756 PR target/43921
26757 * config/i386/i386.c (get_some_local_dynamic_name): Replace
26758 INSN_P with NONDEBUG_INSN_P.
26759 (distance_non_agu_define): Likewise.
26760 (distance_agu_use): Likewise.
26761
26762 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
26763
26764 From Dominique d'Humieres <dominiq@lps.ens.fr>
26765 PR bootstrap/43858
26766 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
26767 test_set.
26768
26769 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
26770
26771 * plugin.h (invoke_plugin_callbacks): New inline function.
26772 * plugin.c (flag_plugin_added): New global flag.
26773 (add_new_plugin): Initialize above flag.
26774 (invoke_plugin_callbacks): Rename to ...
26775 (invoke_plugin_callbacks_full): ... this.
26776
26777 2010-04-28 Jan Hubicka <jh@suse.cz>
26778
26779 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
26780 (lto_varpool_replace_node): New.
26781 (lto_symtab_resolve_symbols): Resolve varpool nodes.
26782 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
26783 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
26784 * cgraph.h (varpool_node_ptr): New type.
26785 (varpool_node_ptr): New vector.
26786 (varpool_node_set_def): New structure.
26787 (varpool_node_set): New type.
26788 (varpool_node_set): New vector.
26789 (varpool_node_set_element_def): New structure.
26790 (varpool_node_set_element, const_varpool_node_set_element): New types.
26791 (varpool_node_set_iterator): New type.
26792 (varpool_node): Add prev pointers, add used_from_other_partition,
26793 in_other_partition.
26794 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
26795 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
26796 varpool_get_node, varpool_remove_node): Declare.
26797 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
26798 varpool_node_set_size): New inlines.
26799 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
26800 * tree-pass.h (varpool_node_set_def): Forward declare.
26801 (ipa_opt_pass_d): Summary writting takes vnode sets too.
26802 (ipa_write_optimization_summaries): Update prototype.
26803 * ipa-cp.c (ipcp_write_summary): Update.
26804 * ipa-reference.c (ipa_reference_write_summary): Update.
26805 * lto-cgraph.c (lto_output_varpool_node): New static function.
26806 (output_varpool): New function.
26807 (input_varpool_node): New static function.
26808 (input_varpool_1): New function.
26809 (input_cgraph): Input varpool.
26810 * ipa-pure-const.c (pure_const_write_summary): Update.
26811 * lto-streamer-out.c (lto_output): Update, output varpool too.
26812 (write_global_stream): Kill WPA hack.
26813 (produce_asm_for_decls): Update.
26814 (output_alias_pair_p): Handle variables.
26815 (output_unreferenced_globals): Output only needed partition of varpool.
26816 * ipa-inline.c (inline_write_summary): Update.
26817 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
26818 cgraph.
26819 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
26820 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
26821 varpool_node_set_new, varpool_node_set_add,
26822 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
26823 debug_varpool_node_set): New functions.
26824 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
26825 (execute_one_pass): Process new decls too.
26826 (ipa_write_summaries_2): Pass around vsets.
26827 (ipa_write_summaries_1): Likewise.
26828 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
26829 to add.
26830 (ipa_write_optimization_summaries_1): Pass around vsets.
26831 (ipa_write_optimization_summaries): Likewise.
26832 * varpool.c (varpool_get_node): New.
26833 (varpool_node): Update doubly linked lists.
26834 (varpool_remove_node): New.
26835 (dump_varpool_node): More dumping.
26836 (varpool_enqueue_needed_node): Update doubly linked lists.
26837 (decide_is_variable_needed): Kill ltrans hack.
26838 (varpool_finalize_decl): Kill lto hack.
26839 (varpool_assemble_decl): Skip decls in other partitions.
26840 (varpool_assemble_pending_decls): Update doubly linkes lists.
26841 (varpool_empty_needed_queue): Likewise.
26842 (varpool_extra_name_alias): Likewise.
26843 * lto-streamer.c (lto_get_section_name): Add vars section.
26844 * lto-streamer.h (lto_section_type): Update.
26845 (output_varpool, input_varpool): Declare.
26846
26847 2010-04-28 Mike Stump <mikestump@comcast.net>
26848
26849 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
26850
26851 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26852
26853 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
26854 record or union type with RECORD_OR_UNION_TYPE_P predicate.
26855 (lto_input_ts_type_tree_pointers): Likewise.
26856 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
26857 (lto_output_ts_type_tree_pointers): Likewise.
26858
26859 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26860
26861 Uniquization of constants at the Tree level
26862 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
26863 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
26864 bit to the end.
26865 (tree_output_constant_def): Declare.
26866 * gimplify.c (gimplify_init_constructor): When using block copy, first
26867 uniquize the constant constructor on the RHS.
26868 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
26869 DECL_IN_CONSTANT_POOL flag.
26870 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
26871 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
26872 constant pool.
26873 (assemble_variable): Deal with symbols belonging to the tree constant
26874 pool.
26875 (get_constant_section): Add ALIGN parameter and simplify.
26876 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
26877 (assemble_constant_contents): Use the expression of the VAR_DECL.
26878 (output_constant_def_contents): Use the alignment of the VAR_DECL.
26879 (tree_output_constant_def): New global function.
26880 (mark_constant): Use the expression of the VAR_DECL.
26881 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
26882 its expression.
26883 (output_object_block): Likewise and assemble the expression.
26884
26885 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26886
26887 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
26888 hash_tree, eq_tree): New tree hash table.
26889 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
26890 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
26891 lto_orig_address_remove): Reimplement.
26892
26893 2010-04-28 Xinliang David Li <davidxl@google.com>
26894
26895 PR c/42643
26896 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
26897 (compute_uninit_opnds_pos): New function.
26898 (is_non_loop_exit_postdominating): New function.
26899 (compute_control_dep_chain): New function.
26900 (find_pdom): New function.
26901 (convert_control_dep_chain_into_preds): New function.
26902 (find_predicates): New function.
26903 (find_control_equiv_block): New function.
26904 (collect_phi_def_edges): New function.
26905 (find_def_preds): New function.
26906 (find_dom): New function.
26907 (dump_predicates): New function.
26908 (get_cmp_code): New function.
26909 (is_value_included_in): New function.
26910 (find_matching_predicate_in_rest_chains): New function.
26911 (use_pred_not_overlap_with_undef_path_pred): New function.
26912 (is_use_properly_guarded): New function.
26913 (normalize_cond_1): New function.
26914 (is_and_or_or): New function.
26915 (normalize_cond): New function.
26916 (is_gcond_subset_of): New function.
26917 (is_subset_of_any): New function.
26918 (is_or_set_subset_of): New function.
26919 (is_and_set_subset_of): New function.
26920 (is_norm_cond_subset_of): New function.
26921 (is_pred_expr_subset_of): New function.
26922 (is_pred_chain_subset_of): New function.
26923 (is_included_in): New function.
26924 (is_superset_of): New function.
26925 (find_uninit_use): New function.
26926 (warn_uninitialized_phi): New function.
26927 (compute_possibly_undefined_names): New function.
26928 (ssa_undefined_value_p): New function.
26929 (execute_late_warn_uninitialized): New function.
26930 * tree-ssa.c (ssa_undefined_value_p): Removed.
26931 (warn_uninit): Changed to extern.
26932 (warn_uninitialized_phi): Removed.
26933 (warn_uninitialized_vars): Changed to extern.
26934 (execute_late_warn_uninitialized): Removed
26935 * tree-flow.h: Add new prototypes.
26936 * timevar.def: Add new time variable.
26937 * Makefile.in: Add new build file.
26938
26939 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
26940
26941 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
26942 type if available.
26943
26944 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26945
26946 PR target/22224
26947 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
26948
26949 2010-04-28 Martin Jambor <mjambor@suse.cz>
26950
26951 * cgraph.h (struct cgraph_node): New field indirect_calls.
26952 (struct cgraph_indirect_call_info): New type.
26953 (struct cgraph_edge): Removed field indirect_call. New fields
26954 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
26955 (cgraph_create_indirect_edge): Declare.
26956 (cgraph_make_edge_direct): Likewise.
26957 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
26958 * ipa-prop.h (struct ipa_param_call_note): Removed.
26959 (struct ipa_node_params): Removed field param_calls.
26960 (ipa_create_all_structures_for_iinln): Declare.
26961 * cgraph.c: Described indirect edges and uids in initial comment.
26962 (cgraph_add_edge_to_call_site_hash): New function.
26963 (cgraph_edge): Search also among the indirect edges, use
26964 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
26965 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
26966 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
26967 site hash.
26968 (initialize_inline_failed): Assign a reason to indirect edges.
26969 (cgraph_create_edge_1): New function.
26970 (cgraph_create_edge): Moved some functionality to
26971 cgraph_create_edge_1.
26972 (cgraph_create_indirect_edge): New function.
26973 (cgraph_edge_remove_callee): Add an assert checking for
26974 non-indirectness.
26975 (cgraph_edge_remove_caller): Special-case indirect edges.
26976 (cgraph_remove_edge): Likewise.
26977 (cgraph_set_edge_callee): New function.
26978 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
26979 (cgraph_make_edge_direct): New function.
26980 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
26981 the declaration of the call statement matches.
26982 (cgraph_node_remove_callees): Special-case indirect edges.
26983 (cgraph_clone_edge): Likewise.
26984 (cgraph_clone_node): Clone also the indirect edges.
26985 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
26986 indirect_call, dump count of indirect_calls edges.
26987 * ipa-prop.c (iinlining_processed_edges): New variable.
26988 (ipa_note_param_call): Create indirect edges instead of
26989 creating notes. New parameter node.
26990 (ipa_analyze_call_uses): New parameter node, pass it on to
26991 ipa_note_param_call.
26992 (ipa_analyze_stmt_uses): Likewise.
26993 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
26994 (print_edge_addition_message): Work on edges rather than on notes.
26995 (update_call_notes_after_inlining): Likewise, renamed to
26996 update_indirect_edges_after_inlining.
26997 (ipa_create_all_structures_for_iinln): New function.
26998 (ipa_free_node_params_substructures): Do not free notes.
26999 (ipa_edge_duplication_hook): Propagate bits within
27000 iinlining_processed_edges bitmap.
27001 (ipa_node_duplication_hook): Do not duplicate notes.
27002 (free_all_ipa_structures_after_ipa_cp): Renamed to
27003 ipa_free_all_structures_after_ipa_cp.
27004 (free_all_ipa_structures_after_iinln): Renamed to
27005 ipa_free_all_structures_after_iinln.
27006 (ipa_write_param_call_note): Removed.
27007 (ipa_read_param_call_note): Removed.
27008 (ipa_write_indirect_edge_info): New function.
27009 (ipa_read_indirect_edge_info): Likewise.
27010 (ipa_write_node_info): Do not stream notes, do stream information
27011 in indirect edges.
27012 (ipa_read_node_info): Likewise.
27013 (lto_ipa_fixup_call_notes): Removed.
27014 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
27015 * ipa-inline.c (pass_ipa_inline): Likewise.
27016 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
27017 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
27018 * tree-inline.c (copy_bb): Removed an unnecessary double check for
27019 is_gimple_call.
27020 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
27021 edges.
27022 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
27023 (output_cgraph): Stream also indirect edges.
27024 (lto_output_edge): Added capability to stream indirect edges.
27025 (input_edge): Likewise.
27026 (input_cgraph_1): Likewise.
27027 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
27028 of indirect edges.
27029
27030 2010-04-28 Richard Guenther <rguenther@suse.de>
27031
27032 PR tree-optimization/43879
27033 PR tree-optimization/43909
27034 * tree-ssa-structalias.c (struct variable_info): Add
27035 only_restrict_pointers flag.
27036 (new_var_info): Initialize it. Increment stats.total_vars here.
27037 (create_function_info_for): Do not increment stats.total_vars here.
27038 (get_function_part_constraint): Fix build with C++.
27039 (insert_into_field_list): Remove.
27040 (push_fields_onto_fieldstack): Properly merge fields.
27041 (create_variable_info_for): Split and simplify.
27042 (create_variable_info_for_1): New piece.
27043 (intra_create_variable_infos): Properly make restrict constraints
27044 from parameters.
27045
27046 2010-04-28 Richard Guenther <rguenther@suse.de>
27047
27048 PR c++/43880
27049 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
27050
27051 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
27052 Jan Hubicka <hubicka@ucw.cz>
27053
27054 * doc/invoke.texi (-Wsuggest-attribute=const,
27055 -Wsuggest-attribute=pure): Document.
27056 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
27057 (function_always_visible_to_compiler_p,
27058 suggest_attribute, warn_function_pure, warn_function_const):
27059 New functions.
27060 (check_call): Improve debug info.
27061 (analyze_function): Do not check availability.
27062 (add_new_function): Check availability.
27063 (propagate): Output warnings.
27064 (skip_function_for_local_pure_const): New function.
27065 (local_pure_const): Use it; output warnings.
27066 * common.opt (Wsuggest-attribute=const,
27067 Wsuggest-attribute=pure): New.
27068
27069 2010-04-27 Jakub Jelinek <jakub@redhat.com>
27070
27071 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
27072 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
27073 or DW_CFA_def_cfa_offset{,_sf}.
27074
27075 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
27076
27077 * tree.h: Fix truncated long macros.
27078
27079 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
27080
27081 * collect2.c (TARGET_64BIT): Redefine to target's default.
27082 * tlink.c: Likewise.
27083 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
27084 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
27085 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
27086 for underscoring __USER_LABEL_PREFIX__.
27087 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
27088 (SUB_LINK_ENTRY32): New.
27089 (SUB_LINK_ENTRY64): New.
27090 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
27091 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
27092 (SUB_LINK_ENTRY64): New.
27093 (SUB_LINK_ENTRY): New.
27094 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
27095 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
27096 x64 target is choosen.
27097 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
27098 * configure: Regenerated.
27099 * configure.ac (leading-mingw64-underscores): Option added.
27100
27101 2010-04-27 Jan Hubicka <jh@suse.cz>
27102
27103 * doc/invoke.texi (-fipa-profile): Document.
27104 * opts.c (decode_options): Enable ipa-profile at -O1.
27105 * timevar.def (TV_IPA_PROFILE): Define.
27106 * common.opt (fipa-profile): Add.
27107 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
27108 flag for clones.
27109 (cgraph_propagate_frequency): Handle only local ones.
27110 * tree-pass.h (pass_ipa_profile): Declare.
27111 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
27112 (pass_ipa_profile): Use TV_IPA_PROFILE.
27113 * ipa.c (ipa_profile): New function.
27114 (gate_ipa_profile): Likewise.
27115 (pass_ipa_profile): New global variable.
27116 * passes.c (pass_ipa_profile): New.
27117
27118 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
27119
27120 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
27121
27122 2010-04-27 Martin Jambor <mjambor@suse.cz>
27123
27124 PR middle-end/43812
27125 * ipa.c (dissolve_same_comdat_group_list): New function.
27126 (function_and_variable_visibility): Call
27127 dissolve_same_comdat_group_list when comdat group contains external or
27128 newly local nodes.
27129 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
27130 lists are circular and that they contain only DECL_ONE_ONLY nodes.
27131
27132 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
27133
27134 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
27135 (const_hash_1) <VECTOR_CST>: New case.
27136 (compare_constant) <VECTOR_CST>: Likewise.
27137 <ADDR_EXPR>: Deal with LABEL_REFs.
27138 (copy_constant) <VECTOR_CST>: New case.
27139
27140 2010-04-27 Jan Hubicka <jh@suse.cz>
27141
27142 * cgraph.c (cgraph_propagate_frequency): New function.
27143 * cgraph.h (cgraph_propagate_frequency): Declare.
27144 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
27145 cgraph_propagate_frequency.
27146
27147 2010-04-27 Jakub Jelinek <jakub@redhat.com>
27148
27149 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
27150
27151 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
27152
27153 PR target/40657
27154 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
27155 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
27156 here to determine which regs to push and how much stack to reserve.
27157
27158 2010-04-27 Jie Zhang <jie@codesourcery.com>
27159
27160 * doc/gimple.texi (gimple_statement_with_ops): Remove
27161 addresses_taken field.
27162 (gimple_statement_with_memory_ops): Likewise.
27163
27164 2010-04-27 Jan Hubicka <jh@suse.cz>
27165
27166 * tree-inline.c (eni_inlining_weights): Remove.
27167 (estimate_num_insns): Special case more builtins.
27168
27169 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
27170
27171 PR c/32207
27172 * c-typeck.c (build_binary_op): Move forward check for comparison
27173 pointer with null pointer constant and adjust the diagnostic message.
27174
27175 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
27176
27177 PR lto/42776
27178 * configure.ac (gcc_cv_as_section_has_align): Set if installed
27179 binutils supports extended .section directive needed by LTO, or
27180 warn if older binutils found.
27181 (LTO_BINARY_READER): New AC_SUBST'd variable.
27182 (LTO_USE_LIBELF): Likewise.
27183 * config.gcc (lto_binary_reader): New target-specific configure
27184 variable.
27185 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
27186 (LTO_USE_LIBELF): Likewise.
27187 * configure: Regenerate.
27188
27189 * collect2.c (is_elf): Rename from this ...
27190 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
27191 object files in addition to ELF-formatted ones.
27192 (scan_prog_file): Caller updated. Also allow for LTO info marker
27193 symbol to be prefixed or not by an extra underscore.
27194
27195 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
27196 * config/i386/winnt.c: Also #include lto-streamer.h
27197 (i386_pe_asm_named_section): Specify 1-byte section alignment for
27198 LTO named sections.
27199 (i386_pe_asm_output_aligned_decl_common): Add comment.
27200 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
27201
27202 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
27203
27204 PR target/43889
27205 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
27206 Add missing earlyclobber for second alternative.
27207
27208 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
27209
27210 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
27211 bits for artificial defs at the top of the block.
27212 * fwprop.c (single_def_use_enter_block): Don't call it.
27213
27214 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
27215
27216 PR 43715
27217 * configure.ac: Use "$gcc_cv_nm -g" on darwin
27218 instead of "$gcc_cv_objdump -T".
27219 Use "-undefined dynamic_lookup" on darwin.
27220 * configure: Regenerate.
27221
27222 2010-04-26 Jakub Jelinek <jakub@redhat.com>
27223
27224 PR c/43893
27225 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
27226
27227 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
27228
27229 * c-parser.c (struct c_token): Move location field up.
27230 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
27231 (struct c_declspecs): Convert typespec_word, storage_class, and
27232 default_int_p into bitfields.
27233 (struct c_declarator): Move loc field up.
27234
27235 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
27236
27237 * cfgloop.h (struct loop): Move can_be_parallel field up.
27238 * ipa-prop.h (struct ip_node_params): Move bitfields up.
27239 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
27240 down.
27241 (struct iv_cand): Convert pos field into a bitfield.
27242 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
27243 field up.
27244 (struct _stmt_vec_info): Shuffle fields for better packing.
27245
27246 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
27247
27248 * varasm.c (IN_NAMED_SECTION): Remove guard.
27249 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
27250 (IN_NAMED_SECTION_P): ...this.
27251 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
27252 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
27253
27254 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
27255
27256 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
27257 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
27258 of shadowing it. Fix comments.
27259
27260 2010-04-26 Jan Hubicka <jh@suse.cz>
27261
27262 * cgraph.c (cgraph_create_node): Set node frequency to normal.
27263 (cgraph_clone_node): Copy function frequency.
27264 * cgraph.h (node_frequency): New enum
27265 (struct cgraph_node): Add.
27266 * final.c (rest_of_clean_state): Update.
27267 * lto-cgraph.c (lto_output_node): Output node frequency.
27268 (input_overwrite_node): Input node frequency.
27269 * tre-ssa-loop-ivopts (computation_cost): Update.
27270 * lto-streamer-out.c (output_function): Do not output function
27271 frequency.
27272 * predict.c (maybe_hot_frequency_p): Update and handle functions
27273 executed once.
27274 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
27275 attribute lookup.
27276 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
27277 (compute_function_frequency): Set noreturn functions to be executed
27278 once.
27279 (choose_function_section): Update.
27280 * lto-streamer-in.c (input_function): Do not input function frequency.
27281 * function.c (allocate_struct_function): Do not initialize function
27282 frequency.
27283 * function.h (function_frequency): Remove.
27284 (struct function): Remove function frequency.
27285 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
27286 (try_update): Update.
27287 * tree-inline.c (initialize_cfun): Do not update function frequency.
27288 * passes.c (pass_init_dump_file): Update.
27289 * i386.c (ix86_compute_frame_layout): Update.
27290 (ix86_pad_returns): Update.
27291
27292 2010-04-26 Jie Zhang <jie@codesourcery.com>
27293
27294 PR tree-optimization/43833
27295 * tree-vrp.c (range_int_cst_p): New.
27296 (range_int_cst_singleton_p): New.
27297 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
27298 when both operands are constants. Use range_int_cst_p in
27299 BIT_IOR_EXPR case.
27300
27301 2010-04-26 Jan Hubicka <jh@suse.cz>
27302
27303 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
27304
27305 2010-04-26 Richard Guenther <rguenther@suse.de>
27306
27307 PR lto/43080
27308 * gimple.c (gimple_decl_printable_name): Deal gracefully
27309 with a NULL DECL_NAME.
27310
27311 2010-04-26 Richard Guenther <rguenther@suse.de>
27312
27313 PR lto/42425
27314 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
27315 if emitting debug information and it is either a function
27316 or a namespace decl.
27317
27318 2010-04-26 Ira Rosen <irar@il.ibm.com>
27319
27320 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
27321 determine if the statement is vectorizable, and a macro to access it.
27322 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27323 Skip statements that can't be vectorized. If the analysis fails,
27324 mark the statement as unvectorizable if vectorizing basic block.
27325 (vect_compute_data_refs_alignment): Likewise.
27326 (vect_verify_datarefs_alignment): Skip statements marked as
27327 unvectorizable. Add print.
27328 (vect_analyze_group_access): Skip statements that can't be
27329 vectorized. If the analysis fails, mark the statement as
27330 unvectorizable if vectorizing basic block.
27331 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
27332 * tree-vect-stmts.c (vectorizable_store): Fix the number of
27333 generated stmts for SLP.
27334 (new_stmt_vec_info): Initialize the new field.
27335 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
27336 statements marked as unvectorizable.
27337
27338 2010-04-25 Joseph Myers <joseph@codesourcery.com>
27339
27340 * c-common.c (flag_isoc1x): New.
27341 (flag_isoc99): Update comment.
27342 * c-common.h (flag_isoc1x): New.
27343 (flag_isoc99): Update comment.
27344 * c-cppbuiltin.c (builtin_define_float_constants): Also define
27345 __<type>_DECIMAL_DIG__.
27346 * c-opts.c (set_std_c1x): New.
27347 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
27348 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
27349 * c.opt (-std=c1x, -std=gnu1x): New options.
27350 * doc/cpp.texi: Mention -std=c1x.
27351 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
27352 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
27353 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
27354 * doc/standards.texi: Mention C1X.
27355 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
27356 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
27357 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
27358 Define for C1X.
27359
27360 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
27361
27362 * config/i386/gmon-sol2.c (_mcleanup): Change format string
27363 placeholder from 0x%x to %#x.
27364 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
27365 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
27366 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
27367 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
27368 * config/i386/i386.c (ix86_target_string): Ditto.
27369 (output_pic_addr_const): Ditto.
27370 (print_operand): Ditto.
27371
27372 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
27373
27374 * combine.c (find_split_point): Add third argument. Use it
27375 to find nested multiply-accumulate instructions. Adjust calls.
27376 (try_combine): Adjust call to find_split_point.
27377
27378 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
27379
27380 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
27381
27382 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
27383
27384 PR tree-optimization/41442
27385 * fold-const.c (merge_truthop_with_opposite_arm): New function.
27386 (fold_binary_loc): Call it.
27387
27388 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
27389
27390 * toplev.c (general_init): Set default for fdiagnostics-show-option.
27391 * opts.c (common_handle_option): Allow disabling it.
27392 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
27393
27394 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
27395
27396 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
27397 between modes if both types are integral.
27398
27399 2010-04-23 Richard Guenther <rguenther@suse.de>
27400
27401 PR tree-optimization/43572
27402 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
27403
27404 2010-04-23 Richard Guenther <rguenther@suse.de>
27405
27406 PR lto/43455
27407 * tree-inline.c (tree_can_inline_p): Also check compatibility
27408 of return types.
27409
27410 2010-04-23 Martin Jambor <mjambor@suse.cz>
27411
27412 PR tree-optimization/43846
27413 * tree-sra.c (struct access): New flag grp_assignment_read.
27414 (build_accesses_from_assign): Set grp_assignment_read.
27415 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
27416 (enum mark_read_status): New type.
27417 (analyze_access_subtree): Propagate grp_assignment_read, create
27418 accesses also if both direct_read and root->grp_assignment_read.
27419
27420 2010-04-23 Martin Jambor <mjambor@suse.cz>
27421
27422 PR middle-end/43835
27423 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
27424 function does not have type attributes.
27425
27426 2010-04-23 Richard Guenther <rguenther@suse.de>
27427
27428 PR lto/42653
27429 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
27430 of FUNCTION_DECLs.
27431
27432 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
27433
27434 * sese.h (create_if_region_on_edge): Remove.
27435
27436 * sese.c (create_if_region_on_edge): Make static.
27437
27438 * tree-inline.c: Do not include ggc.h.
27439
27440 * expr.c: Do not include ggc.h.
27441
27442 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
27443 dependencies.
27444
27445 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
27446
27447 PR target/43744
27448 * config/sh/sh.c (find_barrier): Don't emit a constant pool
27449 in the middle of insns for casesi_worker_2.
27450
27451 2010-04-22 David Edelsohn <edelsohn@gnu.org>
27452
27453 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
27454
27455 2010-04-22 Ira Rosen <irar@il.ibm.com>
27456
27457 PR tree-optimization/43842
27458 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
27459 loop unrolling in update of exit phis. Fix comment.
27460 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
27461 least two reduction statements in the loop before starting SLP
27462 analysis.
27463
27464 2010-04-22 Nick Clifton <nickc@redhat.com>
27465
27466 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
27467
27468 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
27469
27470 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
27471 to simplify a + ~a.
27472
27473 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
27474
27475 * tree-parloops.c (loop_parallel_p): New argument
27476 parloop_obstack. Pass it down.
27477 (parallelize_loops): New variable parloop_obstack. Initialize it,
27478 pass it down, free it.
27479
27480 * tree-loop-linear.c (linear_transform_loops): Pass down
27481 lambda_obstack.
27482
27483 * tree-data-ref.h (lambda_compute_access_matrices): New argument
27484 of type struct obstack *.
27485
27486 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
27487 scratch_obstack. Initialize it, pass down, free it.
27488
27489 * lambda.h (lambda_loop_new): Remove.
27490 (lambda_matrix_new, lambda_matrix_inverse)
27491 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
27492 argument of type struct obstack *.
27493
27494 * lambda-trans.c (lambda_trans_matrix_new): New argument
27495 lambda_obstack. Pass it down, use obstack allocation for ret.
27496 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
27497 it down.
27498
27499 * lambda-mat.c (lambda_matrix_get_column)
27500 (lambda_matrix_project_to_null): Remove.
27501 (lambda_matrix_new): New argument lambda_obstack. Use obstack
27502 allocation for mat.
27503 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
27504 lambda_obstack.
27505
27506 * lambda-code.c (lambda_loop_new): New function.
27507 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
27508 (lambda_compute_auxillary_space, lambda_compute_target_space)
27509 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
27510 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
27511 (build_access_matrix): New argument lambda_obstack. Use obstack
27512 allocation for am.
27513 (lambda_compute_step_signs, lambda_compute_access_matrices): New
27514 argument lambda_obstack. Pass it down.
27515
27516 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
27517
27518 * optabs.h (expand_widening_mult): Declare.
27519
27520 2010-04-22 Richard Guenther <rguenther@suse.de>
27521
27522 PR tree-optimization/43845
27523 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
27524 lookup the CALL_EXPR function and arguments.
27525
27526 2010-04-22 Nick Clifton <nickc@redhat.com>
27527
27528 * config/stormy16/stormy16.c
27529 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
27530 * config/stormy16/stormy16.h: Tidy up formatting.
27531 (DONT_USE_BUILTIN_SETJMP): Remove definition.
27532 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
27533 (ineqbranchsi): Delete pattern.
27534 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
27535 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
27536 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
27537 stormy16-lib2-ucmpsi2.c.
27538
27539 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
27540
27541 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
27542 df_simulate_find_noclobber_defs as appropriate. Keep track of an
27543 extra set merge_set_noclobber, and use it to relax the final test
27544 slightly.
27545 * df.h (df_simulate_find_noclobber_defs): Declare.
27546 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
27547 conditional defs.
27548 (df_simulate_find_noclobber_defs): New function.
27549
27550 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
27551
27552 * config/i386/i386.md: Use {} around multi-line preparation statements.
27553
27554 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
27555
27556 * c-tree.h (push_init_level, pop_init_level, set_init_index)
27557 (process_init_element): New argument of type struct obstack *.
27558
27559 * c-typeck.c (push_init_level, pop_init_level, set_designator)
27560 (set_init_index, set_init_label, set_nonincremental_init)
27561 (set_nonincremental_init_from_string, find_init_member)
27562 (output_init_element, output_pending_init_elements)
27563 (process_init_element): New argument braced_init_obstack. Pass it
27564 down.
27565 (push_range_stack, add_pending_init): New argument
27566 braced_init_obstack. Use obstack allocation.
27567
27568 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
27569 braced_init_obstack. Pass it down.
27570 (c_parser_braced_init): New variables ret, braced_init_obstack.
27571 Initialize obstack, pass it down and finally free it.
27572
27573 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
27574
27575 PR middle-end/29274
27576 * tree-pass.h (pass_optimize_widening_mul): Declare.
27577 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
27578 gate_optimize_widening_mul): New static functions.
27579 (pass_optimize_widening_mul): New.
27580 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
27581 <case MULT_EXPR>: Remove support for widening multiplies.
27582 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
27583 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
27584 simplify_gen_unary rather than directly building extensions.
27585 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
27586 WIDEN_MULT_EXPR.
27587 * expmed.c (expand_widening_mult): New function.
27588 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
27589
27590 2010-04-21 Jan Hubicka <jh@suse.cz>
27591
27592 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
27593 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
27594 * lto-wpa-fixup.c: Remove.
27595 * Makefile.in (lto-wpa-fixup.o): Remove.
27596 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
27597 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
27598 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
27599
27600 2010-04-21 Jan Hubicka <jh@suse.cz>
27601
27602 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
27603 add write_optimization_summary, read_optimization_summary.
27604 (ipa_write_summaries_of_cgraph_node_set): Remove.
27605 (ipa_write_optimization_summaries): Declare.
27606 (ipa_read_optimization_summaries): Declare.
27607 * ipa-cp.c (pass_ipa_cp): Update.
27608 * ipa-reference.c (pass_ipa_reference): Update.
27609 * ipa-pure-const.c (pass_ipa_pure_const): Update.
27610 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
27611 Update.
27612 * ipa-inline.c (pass_ipa_inline): Update.
27613 * ipa.c (pass_ipa_whole_program): Update.
27614 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
27615 * passes.c (ipa_write_summaries_1): Do not test wpa.
27616 (ipa_write_optimization_summaries_1): New.
27617 (ipa_write_optimization_summaries): New.
27618 (ipa_read_summaries): Do not test ltrans.
27619 (ipa_read_optimization_summaries_1): New.
27620 (ipa_read_optimization_summaries): New.
27621
27622 2010-04-21 Jan Hubicka <jh@suse.cz>
27623
27624 * lto-cgraph.c (lto_output_node): Do not output comdat groups
27625 for boundary nodes.
27626 (output_cgraph): Do not arrange comdat groups for boundary nodes.
27627
27628 2010-04-21 Jakub Jelinek <jakub@redhat.com>
27629
27630 PR debug/40040
27631 * dwarf2out.c (add_name_and_src_coords_attributes): Add
27632 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
27633
27634 2010-04-21 Jan Hubicka <jh@suse.cz>
27635
27636 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
27637
27638 2010-04-21 Jan Hubicka <jh@suse.cz>
27639
27640 * varpool.c (decide_is_variable_needed): Variable is always needed
27641 during ltrans.
27642
27643 2010-04-21 Jan Hubicka <jh@suse.cz>
27644
27645 * opts.c (decode_options): Enable pure-const pass for whopr.
27646
27647 2010-04-21 Jan Hubicka <jh@suse.cz>
27648
27649 * cgraph.c (dump_cgraph_node): Dump also assembler name.
27650 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
27651 at WPA dumping.
27652 (cgraph_decide_inlining): Do not expect callee to be removed in all
27653 cases.
27654
27655 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
27656
27657 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
27658
27659 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
27660
27661 * config/i386/i386.md (x86_shrd): Add athlon_decode and
27662 amdfam10_decode attributes.
27663
27664 2010-04-21 Jakub Jelinek <jakub@redhat.com>
27665
27666 PR middle-end/43570
27667 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
27668 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
27669 (lower_copyprivate_clauses): Use private var in outer
27670 context instead of original var. Make sure the types
27671 are correct for VLAs.
27672
27673 2010-04-21 Richard Guenther <rguenther@suse.de>
27674
27675 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
27676 to non-pointer objects.
27677
27678 2010-04-21 Jakub Jelinek <jakub@redhat.com>
27679
27680 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
27681 last chain entry if it starts with the still current label.
27682 (add_location_or_const_value_attribute): Check that
27683 loc_list->first->next is NULL instead of comparing ->first with ->last.
27684 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
27685 to add_var_loc_to_decl.
27686
27687 * dwarf2out.c (output_call_frame_info): For dw_cie_version
27688 >= 4 add also address size and segment size fields into CIE header.
27689
27690 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
27691 long as address size is the same as sizeof (void *) and
27692 segment size is 0.
27693 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
27694 address size or segment size is unexpected, return DW_EH_PE_omit.
27695 (classify_object_over_fdes): If get_cie_encoding returned
27696 DW_EH_PE_omit, return -1.
27697 (init_object): If classify_object_over_fdes returned -1,
27698 pretend there were no FDEs at all.
27699
27700 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
27701
27702 * config/i386/i386.md (bswap<mode>2): Macroize expander from
27703 bswap{si,di}2 using SWI48 mode iterator.
27704 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
27705 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
27706 set modrm attribute of bswap insn to 0 and remove length attribute.
27707 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
27708 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
27709 set mode attribute to <MODE> and remove length attribute.
27710
27711 2010-04-20 James E. Wilson <wilson@codesourcery.com>
27712
27713 PR rtl-optimization/43520
27714 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
27715 zero available registers.
27716
27717 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27718
27719 * builtins.c (fold_builtin_cproj): Fold more cases.
27720
27721 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27722
27723 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
27724 (fold_builtin_1): Fold builtin cproj.
27725 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
27726 Use ATTR_CONST_NOTHROW_LIST.
27727
27728 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
27729
27730 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
27731 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
27732 ffsi2_no_cmove for !TARGET_CMOVE.
27733 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
27734 (ffssi2): Remove expander.
27735 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
27736 mode iterator.
27737 (ctz<mode>2): Ditto from ctz{si,di}2.
27738 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
27739 mode iterator.
27740 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
27741 mode iterator.
27742
27743 2010-04-20 Jakub Jelinek <jakub@redhat.com>
27744
27745 * dwarf2out.c (AT_linkage_name): Define.
27746 (clone_as_declaration): Handle DW_AT_linkage_name.
27747 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
27748 of DW_AT_MIPS_linkage_name.
27749 (move_linkage_attr): Likewise.
27750 (dwarf2out_finish): Likewise.
27751
27752 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
27753
27754 PR middle-end/41952
27755 * fold-const.c (fold_comparison): New folding rule.
27756
27757 2010-04-20 Anatoly Sokolov <aesok@post.ru>
27758
27759 * double-int.h (double_int_setbit): Declare.
27760 * double-int.c (double_int_setbit): New function.
27761 * rtl.h (immed_double_int_const): Declare.
27762 * emit-rtl.c (immed_double_int_const): New function.
27763 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
27764 and immed_double_int_const functions.
27765 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
27766 expand_copysign_bit): (Ditto.).
27767 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
27768 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
27769 * dojump.c (prefer_and_bit_test): (Ditto.).
27770 * expr.c (convert_modes, reduce_to_bit_field_precision,
27771 const_vector_from_tree): (Ditto.).
27772 * expmed.c (mask_rtx, lshift_value): (Ditto.).
27773
27774 2010-04-20 Jan Hubicka <jh@suse.cz>
27775
27776 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
27777 (dump_cgraph_node): Dump new flags.
27778 * cgraph.h (struct cgraph_node): Add flags
27779 reachable_from_other_partition and in_other_partition.
27780 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
27781 other partition can not be removed.
27782 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
27783 the other partition must be output; silence sanity checking on
27784 leaking functions bodies from other paritition.
27785 * lto-cgraph.c (reachable_from_other_partition_p): New function.
27786 (lto_output_node): Output new flags; do not sanity check that inline
27787 clones are output; drop lto_forced_extern_inline_p code; do not mock
27788 visibility flags at partition boundaries.
27789 (add_node_to): New function.
27790 (output_cgraph): Use it to sort functions so masters appear before
27791 clones.
27792 (input_overwrite_node): Input new flags.
27793 * passes.c (ipa_write_summaries): Do not call
27794 lto_new_extern_inline_states.
27795 * lto-section-out.c (forced_extern_inline,
27796 lto_new_extern_inline_states lto_delete_extern_inline_states,
27797 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
27798 * lto-streamer.h (lto_new_extern_inline_states,
27799 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
27800 lto_forced_extern_inline_p): Kill.
27801
27802 2010-04-20 Richard Guenther <rguenther@suse.de>
27803
27804 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
27805 from vars that can have pointers.
27806 (process_constraint): Dump useless constraints.
27807
27808 2010-04-20 Richard Guenther <rguenther@suse.de>
27809
27810 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
27811 (dump_sa_points_to_info): Remove asserts.
27812 (init_base_vars): nothing_id isn't an escape point nor does it
27813 have pointers.
27814
27815 2010-04-20 Jakub Jelinek <jakub@redhat.com>
27816
27817 * tree.h (TYPE_REF_IS_RVALUE): Define.
27818 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
27819 should_move_die_to_comdat, prune_unused_types_walk): Handle
27820 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
27821 (modified_type_die, gen_reference_type_die): Emit
27822 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
27823 if TYPE_REF_IS_RVALUE and -gdwarf-4.
27824
27825 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27826
27827 PR target/43635
27828 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
27829 calls for -fpic -m31 if they have been sibcall optimized.
27830
27831 2010-04-19 James E. Wilson <wilson@codesourcery.com>
27832
27833 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
27834 ar.lc fixed and call-used.
27835
27836 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
27837
27838 2010-04-19 Jan Hubicka <jh@suse.cz>
27839
27840 * opts.c (decode_options): Disable whpr incompatible passes.
27841 * lto/lto.c (lto_1_to_1_map): Skip clones.
27842 (read_cgraph_and_symbols): Do not mark everything as needed.
27843 (do_whole_program_analysis): Do map only after optimizing;
27844 set proper cgraph_state; use passmanager.
27845
27846 2010-04-19 DJ Delorie <dj@redhat.com>
27847
27848 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
27849 POINTER_PLUS_EXPR and fix them.
27850
27851 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
27852
27853 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
27854 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
27855 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
27856 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
27857 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
27858 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
27859 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
27860 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
27861 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
27862 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
27863 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
27864
27865 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
27866
27867 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
27868 (check_cond_move_block): Likewise.
27869 (cond_move_process_if_block): Likewise.
27870 (noce_find_if_block): Improve formatting.
27871 (find_if_header): Pass 0 to memset and tweak conditions.
27872 (cond_exec_find_if_block): Fix long lines and tweak conditions.
27873
27874 2010-04-19 Jakub Jelinek <jakub@redhat.com>
27875
27876 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
27877 for -gdwarf-4.
27878
27879 PR middle-end/43337
27880 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
27881 with non-local decl doesn't need chain.
27882
27883 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
27884
27885 * ira-color.c (allocno_reload_assign): Avoid accumulating
27886 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
27887
27888 2010-04-19 Martin Jambor <mjambor@suse.cz>
27889
27890 * gimple.h (create_tmp_reg): Declare.
27891 * gimplify.c (create_tmp_reg): New function.
27892 (gimplify_return_expr): Use create_tmp_reg.
27893 (gimplify_omp_atomic): Likewise.
27894 (gimple_regimplify_operands): Likewise.
27895 * tree-dfa.c (make_rename_temp): Likewise.
27896 * tree-predcom.c (predcom_tmp_var): Likewise.
27897 (reassociate_to_the_same_stmt): Likewise.
27898 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
27899 (get_replaced_param_substitute): Likewise.
27900 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
27901 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
27902 * tree-ssa-pre.c (get_representative_for): Likewise.
27903 (create_expression_by_pieces): Likewise.
27904 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
27905 (create_tailcall_accumulator): Likewise.
27906
27907 2010-04-19 Martin Jambor <mjambor@suse.cz>
27908
27909 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
27910 new_stmt.
27911 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
27912
27913 2010-04-19 Richard Guenther <rguenther@suse.de>
27914
27915 PR tree-optimization/43796
27916 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
27917 from SCEV in the lattice.
27918 (vrp_visit_phi_node): Dump change.
27919
27920 2010-04-19 Richard Guenther <rguenther@suse.de>
27921
27922 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
27923 * configure: Re-generated.
27924
27925 2010-04-19 Richard Guenther <rguenther@suse.de>
27926
27927 PR tree-optimization/43783
27928 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
27929 constant ARRAY_REF operands two and three if possible.
27930
27931 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
27932
27933 PR target/43766
27934 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
27935
27936 2010-04-19 Jie Zhang <jie@codesourcery.com>
27937
27938 PR target/43662
27939 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
27940
27941 2010-04-19 Ira Rosen <irar@il.ibm.com>
27942
27943 PR tree-optimization/37027
27944 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
27945 and macro to access it.
27946 (vectorizable_reduction): Add argument.
27947 (vect_get_slp_defs): Likewise.
27948 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
27949 statements for possible use in SLP.
27950 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
27951 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
27952 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
27953 add new argument.
27954 (vectorizable_reduction): Likewise.
27955 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
27956 vect_get_slp_defs.
27957 (vectorizable_type_demotion, vectorizable_type_promotion,
27958 vectorizable_store): Likewise.
27959 (vect_analyze_stmt): Update call to vectorizable_reduction.
27960 (vect_transform_stmt): Likewise.
27961 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
27962 (vect_build_slp_tree): Fix indentation. Check that there are no loads
27963 from different interleaving chains in same node.
27964 (vect_slp_rearrange_stmts): New function.
27965 (vect_supported_load_permutation_p): Allow load permutations for
27966 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
27967 inside SLP nodes if necessary.
27968 (vect_analyze_slp_instance): Handle reductions.
27969 (vect_analyze_slp): Try to build SLP instances originating from groups
27970 of reductions.
27971 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
27972 (vect_get_constant_vectors): Create initial vectors for reductions
27973 according to reduction code. Add new argument.
27974 (vect_get_slp_defs): Add new argument, pass it to
27975 vect_get_constant_vectors.
27976 (vect_schedule_slp_instance): Remove SLP tree root statements.
27977
27978 2010-04-19 Jakub Jelinek <jakub@redhat.com>
27979
27980 * tree.h (ENUM_IS_SCOPED): Define.
27981 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
27982 for ENUM_IS_SCOPED enums.
27983
27984 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
27985
27986 * fold-const.c (fold_comparison): Use ssizetype.
27987 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27988 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
27989 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
27990 * tree-object-size.c (compute_object_sizes): Use size_type_node.
27991
27992 * tree.h (initialize_sizetypes): Remove parameter.
27993 (build_common_tree_nodes): Remove second parameter.
27994 * stor-layout.c (initialize_sizetypes): Remove parameter.
27995 Always create an unsigned type.
27996 (set_sizetype): Assert that the passed type is unsigned and simplify.
27997 * tree.c (build_common_tree_nodes): Remove second parameter.
27998 Adjust call to initialize_sizetypes.
27999 * c-decl.c (c_init_decl_processing): Remove second argument in call to
28000 build_common_tree_nodes.
28001
28002 2010-04-18 Matthias Klose <doko@ubuntu.com>
28003
28004 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
28005
28006 2010-04-18 Ira Rosen <irar@il.ibm.com>
28007
28008 PR tree-optimization/43771
28009 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
28010 load permutation doesn't have gaps.
28011
28012 2010-04-18 Jan Hubicka <jh@suse.cz>
28013
28014 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
28015 (sse_prologue_save_insn expander): Use new pattern.
28016 (sse_prologue_save_insn1): New pattern and splitter.
28017 (sse_prologue_save_insn): Update to deal also with 64bit aligned
28018 blocks.
28019 * i386.c (setup_incoming_varargs_64): Do not compute jump
28020 destination here.
28021 (ix86_gimplify_va_arg): Update alignment needed.
28022 (ix86_local_alignment): Do not align all local arrays to 128bit.
28023
28024 2010-04-17 Jan Hubicka <jh@suse.cz>
28025
28026 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
28027
28028 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
28029
28030 * arm.md (negdi2): Remove redundant code to force values into a
28031 register.
28032
28033 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
28034
28035 * arm/bpabi.S: Add EABI alignment attributes to objects.
28036 * arm/bpabi-v6m.S: Likewise.
28037 * arm/crti.asm: Likewise.
28038 * arm/crtn.asm: Likewise.
28039 * arm/lib1funcs.asm: Likewise.
28040 * arm/libunwind.S: Likewise.
28041
28042 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
28043
28044 * arm-protos.h (tune_params): New structure.
28045 * arm.c (current_tune): New variable.
28046 (arm_constant_limit): Delete.
28047 (struct processors): Add pointer to the tune parameters.
28048 (arm_slowmul_tune): New tuning option.
28049 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
28050 (all_cores): Adjust to pick up the tuning model.
28051 (arm_constant_limit): New function.
28052 (arm_override_options): Select the appropriate tuning model. Delete
28053 initialization of arm_const_limit.
28054 (arm_split_constant): Use the new constant-limit model.
28055 (arm_rtx_costs): Pick up the current tuning model.
28056 * arm.md (is_strongarm, is_xscale): Delete.
28057 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
28058 for Xscale variant architectures.
28059 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
28060
28061 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28062
28063 * config/arm/arm.c (arm_gen_constant): Remove unused variable
28064 can_shift.
28065 (arm_rtx_costs_1): Remove unused variable extra_cost.
28066 (arm_unwind_emit_set): Use variable offset.
28067 (thumb1_output_casesi): Remove unused variable flags.
28068
28069 2010-04-16 Jeff Law <law@redhat.com>
28070
28071 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
28072 needing assignment rather than doing a two-phase assignment. Remove
28073 unused variable 'm'.
28074
28075 2010-04-16 Jakub Jelinek <jakub@redhat.com>
28076
28077 PR bootstrap/43767
28078 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
28079
28080 2010-04-16 Doug Kwan <dougkwan@google.com>
28081
28082 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
28083 (next_operand_entry_id): New static variable.
28084 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
28085 (add_to_ops_vec): Assigned unique ID to operand entry.
28086 (struct oecount_s): New field ID.
28087 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
28088 (undistribute_ops_list): Assign unique IDs to oecounts.
28089 (init_reassoc): reset next_operand_entry_id.
28090
28091 2010-04-16 Doug Kwan <dougkwan@google.com>
28092
28093 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
28094 missing left parenthesis.
28095
28096 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
28097
28098 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
28099 *btdi_rex64 using SWI48 mode iterator.
28100 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
28101 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
28102 *jcc_btdi_mask_rex64.
28103
28104 2010-04-16 Anatoly Sokolov <aesok@post.ru>
28105
28106 * double-int.h (tree_to_double_int): Convert to macro.
28107 * double-int.c (tree_to_double_int): Remove.
28108
28109 2010-04-16 Jakub Jelinek <jakub@redhat.com>
28110
28111 PR debug/43762
28112 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
28113 with want_address 2 and in case a single element list might be
28114 possible, call it again with want_address 0.
28115
28116 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28117
28118 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
28119 case 'W' print operands for HI mode.
28120 * config/h8300/h8300.h (Y0, Y2) : New constraints.
28121 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
28122 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
28123 * config/h8300/predicate.md (bit_register_indirect_operand): New.
28124
28125 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
28126
28127 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
28128 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
28129 #xx:3 and #xx:4 mode.
28130
28131 * config/h8300/h8300.md (inverted load with HImode dest): Add
28132 support for H8300SX.
28133
28134 * config/h8300/predicate.md (bit_operand): Allow immediate values that
28135 satisfy 'U' constraint.
28136
28137 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28138
28139 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
28140 * configure: Regenerate.
28141 * config.in: Regenerate.
28142 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
28143 works.
28144
28145 2010-04-16 Richard Guenther <rguenther@suse.de>
28146
28147 * tree.h (struct tree_decl_minimal): Move pt_uid ...
28148 (struct tree_decl_common): ... here.
28149 (DECL_PT_UID): Adjust.
28150 (SET_DECL_PT_UID): Likewise.
28151 (DECL_PT_UID_SET_P): Likewise.
28152
28153 2010-04-16 Richard Guenther <rguenther@suse.de>
28154
28155 PR tree-optimization/43572
28156 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
28157 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
28158 * tree-flow.h (is_call_clobbered): Remove.
28159 * tree-flow-inline.h (is_call_clobbered): Likewise.
28160 * tree-dfa.c (dump_variable): Do not dump call clobber state.
28161 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
28162 (execute_return_slot_opt): Adjust.
28163 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
28164 check for call clobbered vars here.
28165 (find_tail_calls): Move tailcall verification to the
28166 proper place.
28167
28168 2010-04-16 Diego Novillo <dnovillo@google.com>
28169
28170 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
28171
28172 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
28173
28174 PR target/40603
28175 * config/arm/arm.md (cbranchqi4): New pattern.
28176 * config/arm/predicates.md (const0_operand,
28177 cbranchqi4_comparison_operator): New predicates.
28178
28179 2010-04-16 Richard Guenther <rguenther@suse.de>
28180
28181 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
28182 (dump_gimple_stmt): Likewise.
28183
28184 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
28185
28186 * recog.h (struct recog_data): New field is_operator.
28187 (struct insn_operand_data): New field is_operator.
28188 * recog.c (extract_insn): Set recog_data.is_operator.
28189 * genoutput.c (output_operand_data): Emit code to set the
28190 is_operator field.
28191 * reload.c (find_reloads): Use it rather than testing for an
28192 empty constraint string.
28193
28194 PR target/41514
28195 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
28196 If the previous insn is a cbranchsi4_insn with the same arguments,
28197 omit the compare instruction.
28198
28199 * config/arm/arm.md (addsi3_cbranch): If destination is a high
28200 register, inputs must be low registers and we need a low register
28201 scratch. Handle alternative 2 like alternative 3.
28202
28203 2010-04-16 Jakub Jelinek <jakub@redhat.com>
28204
28205 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
28206 don't call get_addr on both. If one expression is a VALUE and
28207 the other a REG, check VALUE's locs if the REG isn't among them.
28208
28209 2010-04-16 Christian Bruel <christian.bruel@st.com>
28210
28211 * config/sh/sh.h (sh_frame_pointer_required): New function.
28212 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
28213 (flag_omit_frame_pointer) Set.
28214 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
28215 (rounded_frame_size): Adjust size with outgoing_args_size.
28216 (sh_set_return_address): Must return from stack pointer.
28217 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
28218 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
28219 (ACCUMULATE_OUTGOING_ARGS): Define.
28220 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
28221 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
28222
28223 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
28224
28225 PR target/43471
28226 * config/sh/sh.c (sh_legitimize_reload_address): Use
28227 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
28228 Remove a unneeded check for offset_base.
28229
28230 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
28231
28232 * configure: Regenerated.
28233
28234 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28235
28236 * config/s390/s390.c (s390_call_save_register_used): Switch back
28237 to HARD_REGNO_NREGS.
28238
28239 2010-04-15 Richard Guenther <rguenther@suse.de>
28240
28241 * alias.c (alias_set_subset_of): Handle alias-set zero
28242 child properly.
28243
28244 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
28245 Julian Brown <julian@codesourcery.com>
28246
28247 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
28248 alternatives according to use of high and low regs.
28249 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
28250 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
28251 optimizing for size on Thumb-2.
28252
28253 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
28254
28255 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
28256
28257 2010-04-15 Richard Guenther <rguenther@suse.de>
28258
28259 * tree-ssa-structalias.c (struct variable_info): Add
28260 is_fn_info flag.
28261 (new_var_info): Initialize it.
28262 (dump_constraints): Support printing last added constraints.
28263 (debug_constraints): Adjust.
28264 (dump_constraint_graph): Likewise.
28265 (make_heapvar_for): Check for NULL cfun.
28266 (get_function_part_constraint): New function.
28267 (get_fi_for_callee): Likewise.
28268 (find_func_aliases): Properly implement IPA PTA constraints.
28269 (process_ipa_clobber): New function.
28270 (find_func_clobbers): Likewise.
28271 (insert_into_field_list_sorted): Remove.
28272 (create_function_info_for): Properly allocate vars for IPA mode.
28273 Do not use insert_into_field_list_sorted.
28274 (create_variable_info_for): Properly generate constraints for
28275 global vars in IPA mode.
28276 (dump_solution_for_var): Always dump the solution.
28277 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
28278 (find_what_var_points_to): Adjust.
28279 (pt_solution_set): Change.
28280 (pt_solution_ior_into): New function.
28281 (pt_solution_empty_p): Export.
28282 (pt_solution_includes_global): Adjust.
28283 (pt_solution_includes_1): Likewise.
28284 (pt_solutions_intersect_1): Likewise.
28285 (dump_sa_points_to_info): Check some invariants.
28286 (solve_constraints): Move constraint dumping ...
28287 (compute_points_to_sets): ... here.
28288 (ipa_pta_execute): ... and here.
28289 (compute_may_aliases): Do not re-compute points-to info
28290 locally if IPA info is available.
28291 (ipa_escaped_pt): New global var.
28292 (ipa_pta_execute): Properly implement IPA PTA.
28293 * tree-into-ssa.c (dump_decl_set): Support dumping
28294 decls not in referenced-vars.
28295 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
28296 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
28297 (dump_points_to_solution): Likewise.
28298 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
28299 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
28300 (remap_gimple_stmt): Reset call clobber/use information if necessary.
28301 (copy_decl_to_var): Copy DECL_PT_UID.
28302 (copy_result_decl_to_var): Likewise.
28303 * tree.c (make_node_stat): Initialize DECL_PT_UID.
28304 (copy_node_stat): Copy it.
28305 * tree.h (DECL_PT_UID): New macro.
28306 (SET_DECL_PT_UID): Likewise.
28307 (DECL_PT_UID_SET_P): Likewise.
28308 (struct tree_decl_minimal): Add pt_uid member.
28309 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
28310 (pt_solution_empty_p): Declare.
28311 (pt_solution_set): Adjust.
28312 (ipa_escaped_pt): Declare.
28313 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
28314 * gimple-pretty-print.c (pp_points_to_solution): New function.
28315 (dump_gimple_call): Dump call clobber/use information.
28316 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
28317 * tree-pass.h (TDF_ALIAS): New dump option.
28318 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
28319 * doc/invoke.texi (-fipa-pta): Update documentation.
28320
28321 2010-04-15 Richard Guenther <rguenther@suse.de>
28322
28323 * Makefile.in (OBJS-common): Add gimple-fold.o.
28324 (gimple-fold.o): New rule.
28325 * tree.h (maybe_fold_offset_to_reference,
28326 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
28327 prototypes ...
28328 * gimple.h: ... here.
28329 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
28330 may_propagate_address_into_dereference): Move prototypes ...
28331 * gimple.h: ... here.
28332 * tree-ssa-ccp.c (get_symbol_constant_value,
28333 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
28334 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
28335 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
28336 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
28337 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
28338 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
28339 gimplify_and_update_call_from_tree): Move ...
28340 * gimple-fold.c: ... here. New file.
28341 (ccp_fold_builtin): Rename to ...
28342 (gimple_fold_builtin): ... this.
28343 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
28344
28345 2010-04-15 Richard Guenther <rguenther@suse.de>
28346
28347 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
28348 fit_double_type, force_fit_type_double, add_double_with_sign,
28349 neg_double, mul_double_with_sign, lshift_double, rshift_double,
28350 lrotate_double, rrotate_double, div_and_round_double): Move ...
28351 * double-int.c: ... here.
28352 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
28353 add_double, neg_double, mul_double_with_sign, mul_double,
28354 lshift_double, rshift_double, lrotate_double, rrotate_double,
28355 div_and_round_double): Move prototypes ...
28356 * double-int.h: ... here.
28357
28358 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
28359
28360 PR target/43742
28361 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
28362 matching constraints to ensure inputs match the output.
28363
28364 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
28365
28366 PR target/43742
28367 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
28368 in an input-only operand.
28369
28370 2010-04-15 Anatoly Sokolov <aesok@post.ru>
28371
28372 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
28373 (double_int_not, double_int_lshift, double_int_rshift): Declare.
28374 (double_int_negative_p): Convert to static inline function.
28375 * double-int.c (double_int_lshift, double_int_lshift): New functions.
28376 (double_int_negative_p): Remove.
28377 * tree.h (lshift_double, rshift_double):
28378 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
28379 * fold-const.c (fold_convert_const_int_from_real,
28380 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
28381 (lshift_double): Change type of arith argument to bool.
28382 (rshift_double): Change type of arith argument to bool. Correct
28383 comment.
28384 * expmed.c (mask_rtx, lshift_value): (Ditto.).
28385
28386 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
28387
28388 PR target/21803
28389 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
28390 at the start and end of the then/else blocks, and omit them from the
28391 conversion.
28392 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
28393 argument; all callers changed. Pass zero to old_insns_match_p instead.
28394 (flow_find_head_matching_sequence): New function.
28395 (old_insns_match_p): Check REG_EH_REGION notes for calls.
28396 * basic-block.h (flow_find_cross_jump,
28397 flow_find_head_matching_sequence): Declare functions.
28398
28399 2010-04-14 Jason Merrill <jason@redhat.com>
28400
28401 PR c++/36625
28402 * c-common.c (attribute_takes_identifier_p): New fn.
28403 * c-common.h: Declare it.
28404
28405 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28406
28407 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
28408 splitter condition.
28409 (*udivmod<mode>4): Ditto.
28410
28411 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28412
28413 * config/i386/i386.md (maxmin_int): Rename code attribute from
28414 maxminiprefix and update all users.
28415 (maxmin_float): Ditto from maxminfprefix.
28416 (logic): Ditto from logicprefix.
28417 (absneg_mnemonic): Ditto from absnegprefix.
28418 * config/i386/mmx.md: Update all users of maxminiprefix,
28419 maxminfprefix and logicprefix for rename.
28420 * config/i386/sse.md: Ditto.
28421 * config/i386/sync.md (sync_<code><mode>): Update for
28422 logicprefix rename.
28423
28424 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
28425
28426 PR 42966
28427 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
28428 warnings converted to errors.
28429
28430 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28431
28432 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
28433 used insn_type variable.
28434 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
28435 to avoid set-but-not-used warning.
28436
28437 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28438
28439 * df-core.c (df_ref_debug): Change format string placeholder
28440 from 0x%x to %#x.
28441 * dwarf2asm.c (dw2_asm_output_data_raw,
28442 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
28443 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
28444 * dwarf2out.c (output_cfi, output_cfi_directive,
28445 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
28446 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
28447 Ditto.
28448 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
28449 * print-rtl.c (print_rtx): Ditto.
28450
28451 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28452
28453 PR middle-end/42694
28454 * builtins.c (expand_builtin_pow_root): New function to expand pow
28455 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
28456 series of sqrt and cbrt calls under -ffast-math.
28457 (expand_builtin_pow): Call it.
28458
28459 2010-04-14 Michael Matz <matz@suse.de>
28460
28461 PR tree-optimization/42963
28462 * tree-cfg.c (touched_switch_bbs): New static variable.
28463 (group_case_labels_stmt): New function broken out from ...
28464 (group_case_labels): ... here, use the above.
28465 (start_recording_case_labels): Allocate touched_switch_bbs.
28466 (end_recording_case_labels): Deallocate it, call
28467 group_case_labels_stmt.
28468 (gimple_redirect_edge_and_branch): Remember index of affected BB.
28469
28470 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28471
28472 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
28473 from insn template.
28474
28475 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28476
28477 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
28478
28479 2010-04-13 Jan Hubicka <jh@suse.cz>
28480
28481 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
28482 of optimized out static functions.
28483 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
28484 cost computation. Also sanity check for overflows.
28485 (update_caller_keys): Update cgraph_edge_badness call; properly
28486 update fibheap and sanity check that it is up to date.
28487 (add_new_edges_to_heap): Update cgraph_edge_badness.
28488 (cgraph_decide_inlining_of_small_function): Likewise;
28489 add sanity checking that badness in heap is up to date;
28490 improve dumping of reason; Update badness of calls to the
28491 offline copy of function currently inlined; dump badness
28492 of functions not inlined because of unit growth limits.
28493
28494 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
28495
28496 PR middle-end/32628
28497 * c-common.c (pointer_int_sum): Disregard overflow that occured only
28498 because of sign-extension change when converting to sizetype here...
28499 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
28500
28501 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
28502 the folding to constants. Remove redundant final conversion.
28503 (fold_binary) <associate>: Do not associate if the re-association of
28504 constants alone overflows.
28505 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
28506 to the end of the list.
28507 (multiple_of_p) <COND_EXPR>: New case.
28508
28509 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
28510
28511 * opt-functions.awk (opt_sanitized_name): New.
28512 (opt_enum): New.
28513 * optc-gen.awk: Use it
28514 * opth-gen.awk: Use it.
28515
28516 2010-04-13 Martin Jambor <mjambor@suse.cz>
28517
28518 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
28519 (sra_modify_assign): Delete stmts loading dead data even if racc has no
28520 children. Call replace_uses_with_default_def_ssa_name to handle
28521 SSA_NAES on lhs.
28522
28523 2010-04-13 Michael Matz <matz@suse.de>
28524
28525 PR middle-end/43730
28526 * builtins.c (expand_builtin_interclass_mathfn): Also create
28527 a register if the predicate doesn't match.
28528
28529 2010-04-13 Diego Novillo <dnovillo@google.com>
28530
28531 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
28532 * c-pch.c: Include timevar.h.
28533 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
28534 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
28535 * ggc-common.c: Include timevar.h.
28536 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
28537 * timevar.def (TV_PCH_SAVE): Define.
28538 (TV_PCH_CPP_SAVE): Define.
28539 (TV_PCH_PTR_REALLOC): Define.
28540 (TV_PCH_PTR_SORT): Define.
28541 (TV_PCH_RESTORE): Define.
28542 (TV_PCH_CPP_RESTORE): Define.
28543
28544 2010-04-13 Michael Matz <matz@suse.de>
28545
28546 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
28547 into MINUS_EXPRs.
28548 (can_reassociate_p): New function.
28549 (break_up_subtract_bb, reassociate_bb): Use it.
28550
28551 2010-04-13 Richard Guenther <rguenther@suse.de>
28552
28553 PR bootstrap/43737
28554 * builtins.c (c_readstr): Fix assert.
28555
28556 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
28557
28558 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
28559 when generating cltd insn.
28560
28561 (*ashl<mode>3_1): Remove special handling for register operand 2.
28562 (*ashlsi3_1_zext): Ditto.
28563 (*ashlhi3_1): Ditto.
28564 (*ashlhi3_1_lea): Ditto.
28565 (*ashlqi3_1): Ditto.
28566 (*ashlqi3_1_lea): Ditto.
28567 (*<shiftrt_insn><mode>3_1): Ditto.
28568 (*<shiftrt_insn>si3_1_zext): Ditto.
28569 (*<shiftrt_insn>qi3_1_slp): Ditto.
28570 (*<rotate_insn><mode>3_1): Ditto.
28571 (*<rotate_insn>si3_1_zext): Ditto.
28572 (*<rotate_insn>qi3_1_slp): Ditto.
28573
28574 2010-04-13 Richard Guenther <rguenther@suse.de>
28575
28576 * tree-ssa-structalias.c (callused_id): Remove.
28577 (call_stmt_vars): New.
28578 (get_call_vi): Likewise.
28579 (lookup_call_use_vi): Likewise.
28580 (lookup_call_clobber_vi): Likewise.
28581 (get_call_use_vi): Likewise.
28582 (get_call_clobber_vi): Likewise.
28583 (make_transitive_closure_constraints): Likewise.
28584 (handle_const_call): Adjust to do per-call call-used handling.
28585 (handle_pure_call): Likewise.
28586 (find_what_var_points_to): Remove general callused handling.
28587 (init_base_vars): Likewise.
28588 (init_alias_vars): Initialize call_stmt_vars.
28589 (compute_points_to_sets): Process call-used and call-clobbered
28590 vars for call statements.
28591 (delete_points_to_sets): Free call_stmt_vars.
28592
28593 2010-04-13 Richard Guenther <rguenther@suse.de>
28594
28595 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28596 Only add RW dependence for dependence distance zero.
28597 Adjust maximal vectorization factor according to dependences.
28598 Move alignment handling ...
28599 (vect_find_same_alignment_drs): ... here. New function.
28600 (vect_analyze_data_ref_dependences): Adjust.
28601 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
28602 (vect_analyze_data_refs): Adjust minimal vectorization factor
28603 according to data references.
28604 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
28605 dependences before determining the vectorization factor.
28606 Analyze alignment after determining the vectorization factor.
28607 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
28608 dependences before alignment.
28609 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
28610 Adjust prototype.
28611 (vect_analyze_data_refs): Likewise.
28612 (MAX_VECTORIZATION_FACTOR): New define.
28613
28614 2010-04-13 Duncan Sands <baldrick@free.fr>
28615
28616 * except.h (lang_eh_type_covers): Remove.
28617 * except.c (lang_eh_type_covers): Likewise.
28618
28619 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28620 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28621
28622 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
28623 * config/s390/s390.c: Replace UNTIS_PER_WORD with
28624 UNITS_PER_LONG where it is ABI relevant.
28625 (s390_return_addr_rtx): Likewise.
28626 (s390_back_chain_rtx): Likewise.
28627 (s390_frame_area): Likewise.
28628 (s390_frame_info): Likewise.
28629 (s390_initial_elimination_offset): Likewise.
28630 (save_gprs): Likewise.
28631 (s390_emit_prologue): Likewise.
28632 (s390_emit_epilogue): Likewise.
28633 (s390_function_arg_advance): Likewise.
28634 (s390_function_arg): Likewise.
28635 (s390_va_start): Likewise.
28636 (s390_gimplify_va_arg): Likewise.
28637 (s390_function_profiler): Likewise.
28638 (s390_optimize_prologue): Likewise.
28639 (s390_rtx_costs): Likewise.
28640 (s390_secondary_reload): Likewise.
28641 (s390_promote_function_mode): Likewise.
28642 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
28643 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
28644 registers available.
28645 (s390_unwind_word_mode): New function.
28646 (s390_function_value): Split 64 bit values into register pair if
28647 used as return value.
28648 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
28649 function call parameters. Handle parallels.
28650 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
28651 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
28652 (DWARF_CIE_DATA_ALIGNMENT): New macro.
28653 (s390_expand_setmem): Remove unused variable src_addr.
28654 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
28655 deal with 64 bit registers.
28656 * config/s390/s390.h: Define __zarch__ predefined macro.
28657 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
28658 (UNITS_PER_LONG): New macro.
28659 * libjava/include/s390-signal.h: Define extended ucontext
28660 structure containing the upper halfs of the 64 bit registers.
28661
28662 2010-04-13 Simon Baldwin <simonb@google.com>
28663
28664 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
28665
28666 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
28667
28668 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
28669 rvalue on the RHS if the LHS is of a non-renamable type.
28670 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
28671
28672 2010-04-13 Matthias Klose <doko@ubuntu.com>
28673
28674 * gcc.c (cc1_options): Handle -iplugindir before processing
28675 the cc1 spec. Only add -iplugindir once.
28676 (cpp_unique_options): Add -iplugindir option if -fplugin* options
28677 found.
28678 * common.opt (iplugindir): Remove `Separate' property, initialize.
28679 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
28680 option.
28681 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
28682 (distclean): Remove plugin dir.
28683 * doc/invoke.texi: Document -iplugindir.
28684
28685 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
28686
28687 * doc/plugins.texi (Loading Plugins): Document short
28688 -fplugin=foo option.
28689 (Plugin API): Mention default_plugin_dir_name function.
28690
28691 * gcc.c (find_file_spec_function): Add new declaration.
28692 (static_spec_func): Use it for "find-file".
28693 (find_file_spec_function): Add new function.
28694 (cc1_options): Add -iplugindir option if -fplugin* options found.
28695
28696 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
28697
28698 * plugin.c (add_new_plugin): Updated comment, and handle short
28699 plugin name.
28700 (default_plugin_dir_name): Added new function.
28701
28702 * common.opt (iplugindir): New option to set the plugin directory.
28703
28704 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
28705
28706 * config/i386/i386.md (any_rotate): New code iterator.
28707 (rotate_insn): New code attribute.
28708 (rotate): Ditto.
28709 (SWIM124): New mode iterator.
28710 (<rotate_insn>ti3): New expander.
28711 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
28712 any_rotate code iterator.
28713 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
28714 using any_rotate code iterator and SWIM124 mode iterator.
28715 (ix86_rotlti3): New insn_and_split pattern.
28716 (ix86_rotrti3): Ditto.
28717 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
28718 ix86_rotl{di,ti}3 patterns.
28719 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
28720 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
28721 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
28722 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
28723 code iterator and SWI mode iterator.
28724 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
28725 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
28726 code iterator.
28727 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
28728 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
28729 (bswap rotatert splitter): Add splitter.
28730 (bswap splitter): Macroize splitter using any_rotate code iterator.
28731 Add insn predicate to split only for TARGET_USE_XCHGB or when
28732 optimizing function for size.
28733
28734 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28735
28736 * config/pa/pa.c (emit_move_sequence): Remove use of
28737 deleted variable flag_argument_noalias.
28738
28739 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28740
28741 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
28742 configurations.
28743 Add to unsupported targets list.
28744 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
28745 sparc*-sun-solaris2.[567]* from target lists.
28746 * configure: Regenerate.
28747 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
28748 removal.
28749 Remove Solaris 7 patch references.
28750 (Specific, sparc-sun-solaris2.7): Removed.
28751 (sparc-sun-solaris2*): Update Solaris 7 example.
28752 (sparc64-*-solaris2*): Likewise.
28753
28754 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28755
28756 * config.build (alpha*-dec-osf4*): Remove.
28757 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
28758 of obsolete configurations.
28759 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
28760 support.
28761 * config/alpha/t-osf4: Renamed to ...
28762 * config/alpha/t-osf5: ... this.
28763 * config/alpha/osf.h: Renamed to ...
28764 * config/alpha/osf5.h: ... this.
28765 Merged old osf5.h contents.
28766 Update comments.
28767 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
28768 (EXTRA_SPECS): Removed.
28769 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
28770 reflect removal of Tru64 UNIX V4.0/V5.0 support.
28771 Document that.
28772
28773 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28774
28775 * doc/contrib.texi (Contributors, Rainer Orth): Update.
28776
28777 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
28778
28779 PR/43702
28780 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
28781 __thiscall convention.
28782
28783 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28784
28785 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
28786 orig_base.
28787 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
28788
28789 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28790
28791 * function.c (assign_parms_initialize_all): Add unused attribute
28792 to fntype.
28793
28794 2010-04-12 Richard Guenther <rguenther@suse.de>
28795
28796 * gsstruct.def (GSS_CALL): New.
28797 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
28798 * gimple.h: Include tree-ssa-alias.h.
28799 (struct gimple_statement_call): New.
28800 (union gimple_statement_struct_d): Add gimple_call member.
28801 (gimple_call_reset_alias_info): Declare.
28802 (gimple_call_use_set): New function.
28803 (gimple_call_clobber_set): Likewise.
28804 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
28805 * gimple.c (gimple_call_reset_alias_info): New function.
28806 (gimple_build_call_1): Call it.
28807 * lto-streamer-in.c (input_gimple_stmt): Likewise.
28808 * tree-inline.c (remap_gimple_stmt): Likewise.
28809 (expand_call_inline): Remove callused handling.
28810 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
28811 * tree-dfa.c (dump_variable): Likewise.
28812 * tree-parloops.c (parallelize_loops): Likewise.
28813 * tree-ssa.c (init_tree_ssa): Likewise.
28814 (delete_tree_ssa): Likewise.
28815 * tree-flow-inline.h (is_call_used): Remove.
28816 * tree-flow.h (struct gimple_df): Remove callused member.
28817 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
28818 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
28819 (ref_maybe_used_by_call_p_1): Simplify.
28820 (call_may_clobber_ref_p_1): Likewise.
28821 * tree-ssa-structalias.c (compute_points_to_sets): Set
28822 the call stmt used and clobbered sets.
28823 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
28824 (find_tail_calls): Verify the tail call.
28825
28826 2010-04-12 Richard Guenther <rguenther@suse.de>
28827
28828 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
28829 single-iteration always-inline inlining.
28830 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
28831 (cgraph_decide_inlining): Do not handle always-inline specially.
28832 (try_inline): Remove always-inline cycle detection special case.
28833 Do not recurse on always-inlines.
28834 (cgraph_early_inlining): Do not iterate if not optimizing.
28835 (cgraph_gate_early_inlining): remove.
28836 (pass_early_inline): Run unconditionally.
28837 (gate_cgraph_decide_inlining): New function.
28838 (pass_ipa_inline): Use it. Do not run the IPA inliner if
28839 not inlining or optimizing.
28840 (cgraph_decide_inlining_of_small_functions): Also consider
28841 always-inline functions.
28842 (cgraph_default_inline_p): Return true for nodes which should
28843 disregard inline limits.
28844 (estimate_function_body_sizes): Assume zero size and time for
28845 nodes which are marked as disregarding inline limits.
28846 (cgraph_decide_recursive_inlining): Do not perform recursive
28847 inlining on always-inline nodes.
28848
28849 2010-04-12 Jakub Jelinek <jakub@redhat.com>
28850
28851 PR bootstrap/43699
28852 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
28853 for exprs satisfying handled_component_p.
28854
28855 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
28856
28857 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
28858 non-constant aggregate elements.
28859
28860 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
28861 is a real initialization.
28862
28863 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
28864
28865 PR c/36774
28866 * c-decl.c (start_function): Move forward check for nested function.
28867
28868 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
28869
28870 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
28871 * config/sh/sh.c: Include reload.h.
28872 (sh_legitimize_reload_address): New.
28873 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
28874 sh_legitimize_reload_address.
28875
28876 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28877
28878 * config/sh/sh.md (*movqi_pop): New insn pattern.
28879 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
28880
28881 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28882
28883 * config/i386/i386.md (any_shiftrt): New code iterator.
28884 (shiftrt_insn): New code attribute.
28885 (shiftrt): Ditto.
28886 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
28887 using any_shiftrt code iterator.
28888 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
28889 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
28890 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
28891 pattern from corresponding peephole2 patterns.
28892 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
28893 using any_shiftrt code iterator.
28894 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
28895 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
28896 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
28897 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
28898 *{ashr,lshr}<mode>3_cmp_zext.
28899 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
28900
28901 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28902
28903 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
28904 scratch register.
28905 (*lshr<mode>3_cconly): Ditto.
28906
28907 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28908
28909 * config/i386/i386.md (lshr<mode>3): Macroize expander from
28910 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28911 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
28912 pattern from *lshr{di,ti}3_1 and corresponding splitters using
28913 DWI mode iterator.
28914 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28915 from corresponding peephole2 patterns.
28916 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
28917 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
28918 and *lshrdi3_1_rex64 using SWI mode iterator.
28919 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
28920 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
28921 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
28922 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
28923 and *lshrdi3_cmp_rex64 using SWI mode iterator.
28924 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
28925 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
28926 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
28927 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
28928 SWI mode iterator.
28929
28930 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
28931
28932 * config/i386/i386.md (ashr<mode>3): Macroize expander from
28933 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28934 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
28935 pattern from *ashr{di,ti}3_1 and corresponding splitters using
28936 DWI mode iterator.
28937 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28938 from corresponding peephole2 patterns.
28939 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
28940 (ashrsi3_cvt): Rename from ashrsi3_31.
28941 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
28942 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
28943 and x86_64_shift_adj_3 using SWI48 mode iterator.
28944 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
28945 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
28946 and *ashrdi3_1_rex64 using SWI mode iterator.
28947 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
28948 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
28949 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
28950 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
28951 and *ashrdi3_cmp_rex64 using SWI mode iterator.
28952 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
28953 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
28954 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
28955 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
28956 SWI mode iterator.
28957 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
28958 * config/i386/i386.c (ix86_split_ashr): Update for renamed
28959 x86_shift<mode>_adj_3 expanders.
28960
28961 2010-04-10 Wei Guozhi <carrot@google.com>
28962
28963 PR target/42601
28964 * config/arm/arm.c (arm_pic_static_addr): New function.
28965 (legitimize_pic_address): Call arm_pic_static_addr when it detects
28966 a static symbol.
28967 (arm_output_addr_const_extra): Output expression for new pattern.
28968 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
28969
28970 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
28971
28972 * ira-costs.c (record_reg_classes): Ignore alternatives that are
28973 not enabled.
28974
28975 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
28976 * web.c: Include "insn-config.h" and "recog.h".
28977 (union_match_dups): New function.
28978 (web_main): Call it.
28979 (union_defs): Don't try to recognize match_dups.
28980
28981 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
28982 if doing so would replace the entire pattern.
28983
28984 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28985
28986 PR target/43707
28987 PR target/43709
28988 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
28989 and splitter pattern. Change splitter operand 1 predicate to
28990 nonmemory_operand.
28991
28992 2010-04-09 Martin Jambor <mjambor@suse.cz>
28993
28994 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
28995 lattices are addresses of CONST_DECLs with the same initial value.
28996 (ipcp_print_all_lattices): Print values of CONST_DECLs.
28997 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
28998
28999 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
29000 Bernd Schmidt <bernds@codesourcery.com>
29001
29002 * loop-invariant.c (replace_uses): New static function.
29003 (move_invariant_reg): Use it to ensure we can replace the uses.
29004
29005 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
29006
29007 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
29008 function template.
29009 (picochip_override_options): Enable section anchors only above -O1.
29010 (picochip_reorg): Fixed a couple of build warnings.
29011
29012 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29013
29014 * configure.ac (plugin -rdynamic test): Log result.
29015 * configure: Regenerate.
29016 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
29017 (RDYNAMIC_SPEC): Define.
29018 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
29019
29020 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29021
29022 * configure.ac: Determine Sun ld version numbers.
29023 (comdat_group): Restrict GNU ld version checks to gld.
29024 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
29025 (enable_comdat): Support --enable-comdat.
29026 * configure: Regenerate.
29027 * doc/install.texi (Configuration): Document --enable-comdat.
29028
29029 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29030
29031 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
29032 * config/sol2-gld.h: ... here.
29033 * config.gcc (sparc*-*-solaris2*): Reflect this.
29034 (i[34567]86-*-solaris2*): Use it.
29035
29036 2010-04-09 Steve Ellcey <sje@cup.hp.com>
29037
29038 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
29039 setup_clocks_p.
29040 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
29041
29042 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
29043
29044 PR 42965
29045 * diagnostic.c (diagnostic_initialize): Initialize
29046 some_warnings_are_errors.
29047 (diagnostic_finish): New.
29048 (diagnostic_action_after_output): Call it before exiting.
29049 (diagnostic_report_diagnostic): Do not print message here. Set
29050 some_warnings_are_errors.
29051 * diagnostic.h (diagnostic_context): Delete
29052 issue_warnings_are_errors_message. Add some_warnings_are_errors.
29053 (diagnostic_finish): Declare.
29054 * toplev.c (toplev_main): Call it before exit.
29055
29056 2010-04-09 Jason Merrill <jason@redhat.com>
29057
29058 PR c++/42623
29059 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
29060 for incomplete type.
29061
29062 PR c++/41788
29063 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
29064 based on a warning flag.
29065
29066 2010-04-09 Richard Guenther <rguenther@suse.de>
29067
29068 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
29069
29070 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
29071
29072 PR bootstrap/43684
29073 * varasm.c (default_assemble_visibility): Wrap vars that are
29074 set, but unused, by targets without GAS.
29075 * config/rs6000/rs6000.c (paired_emit_vector_compare):
29076 Remove set, but unused, vars.
29077 (rs6000_legitimize_tls_address): Likewise.
29078 (altivec_expand_dst_builtin): Likewise.
29079 * config/darwin.c (machopic_classify_symbol): Likewise.
29080 (machopic_indirection_name): Likewise.
29081
29082 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
29083
29084 * config/i386/i386.md (DWI): New mode iterator.
29085 (S): New mode attribute.
29086 (shift_operand): Ditto.
29087 (shift_immediate_operand): Ditto.
29088 (ashl_input_operand): Ditto.
29089 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
29090 using SDWIM mode iterator.
29091 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
29092 pattern from *ashl{di,ti}3_1 and corresponding splitters using
29093 DWI mode iterator.
29094 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
29095 from corresponding peephole2 patterns.
29096 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
29097 and x86_64_shift_adj_1 using SWI48 mode iterator.
29098 (x86_shift<mode>_adj_2): Ditto.
29099 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
29100 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
29101 using SWI48 mode iterator.
29102 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
29103 *ashldi3_cmp_rex64 using SWI mode iterator.
29104 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
29105 *ashldi3_cconly_rex64 using SWI mode iterator.
29106 * config/i386/i386.c (ix86_split_ashl): Update for renamed
29107 x86_shift<mode>_adj_{1,2}.
29108 (ix86_split_ashr): Ditto.
29109 (ix86_split_lshr): Ditto.
29110
29111 2010-04-09 Richard Guenther <rguenther@suse.de>
29112
29113 * target.h (builtin_conversion): Pass in input and output types.
29114 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
29115 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
29116 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
29117 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
29118
29119 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
29120 Handle AVX modes.
29121 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
29122
29123 2010-04-09 Richard Guenther <rguenther@suse.de>
29124
29125 PR target/43152
29126 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
29127
29128 2010-04-09 Richard Guenther <rguenther@suse.de>
29129
29130 * tree-vectorizer.h (struct _stmt_vec_info): Document
29131 that vectype is the type of the LHS.
29132 (supportable_widening_operation, supportable_narrowing_operation):
29133 Get both input and output vector types as arguments.
29134 (vect_is_simple_use_1): Declare.
29135 (get_same_sized_vectype): Likewise.
29136 * tree-vect-loop.c (vect_determine_vectorization_factor):
29137 Set STMT_VINFO_VECTYPE to the vector type of the def.
29138 (vectorizable_reduction): Adjust.
29139 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
29140 Adjust. Specify the output vector type.
29141 (vect_pattern_recog_1): Adjust.
29142 * tree-vect-stmts.c (get_same_sized_vectype): New function.
29143 (vectorizable_call): Adjust.
29144 (vectorizable_conversion): Likewise.
29145 (vectorizable_operation): Likewise.
29146 (vectorizable_type_demotion): Likewise.
29147 (vectorizable_type_promotion): Likewise.
29148 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
29149 the def.
29150 (vect_is_simple_use_1): New function.
29151 (supportable_widening_operation): Get both input and output
29152 vector types.
29153 (supportable_narrowing_operation): Likewise.
29154 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
29155
29156 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
29157
29158 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
29159 __thiscall and _thiscall as predefined macros.
29160 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
29161 thiscall attribute handling.
29162 (ix86_comp_type_attributes): Likewise.
29163 (ix86_function_regparm): Likewise.
29164 (ix86_return_pops_args): Likewise.
29165 (init_cumulative_args): Likewise.
29166 (find_drap_reg): Likewise.
29167 (ix86_static_chain): Likewise.
29168 (x86_this_parameter): Likewise.
29169 (x86_output_mi_thunk): Likewise.
29170 (ix86_attribute_table): Add description for thiscall attribute.
29171 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
29172 * doc/extend.texi: Add documentation for thiscall.
29173
29174 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
29175
29176 PR c++/28584
29177 * c.opt (Wint-to-pointer-cast): Available in C++.
29178 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
29179
29180 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
29181
29182 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
29183 * calls.c (expand_call): Pass the function type to aggregate_value_p.
29184 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
29185 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
29186 function type instead. Reorder and simplify checks.
29187
29188 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
29189
29190 2010-04-08 Jing Yu <jingyu@google.com>
29191 Zdenek Dvorak <ook@ucw.cz>
29192
29193 PR tree-optimization/42720
29194 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
29195 loop unswitch conditions here from ...
29196 (tree_unswitch_single_loop): ... here.
29197
29198 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
29199
29200 * tree-if-conv.c: Fix comments and simplify logic.
29201
29202 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
29203
29204 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
29205 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
29206 (main_tree_if_conversion): Update call to tree_if_conversion.
29207
29208 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
29209
29210 PR 42485
29211 * doc/invoke.texi (-b,-V): Delete.
29212 * doc/tm.texi: Do not mention -b.
29213 * gcc.c (display_help): Delete -b and -V.
29214 (process_command): Delete -b and -V.
29215 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
29216
29217 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
29218 Wolfgang Gellerich <gellerich@de.ibm.com>
29219
29220 Implement target hook for loop unrolling
29221 * target.h (loop_unroll_adjust): Add a new target hook function.
29222 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
29223 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
29224 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
29225 (s390_loop_unroll_adjust): Implement the new target hook for s390.
29226 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
29227 target hook.
29228 (decide_unroll_stupid): Likewise.
29229
29230 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29231
29232 PR target/43643
29233 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
29234
29235 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29236
29237 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
29238 (Specific, *-*-solaris2*): Likewise.
29239 Don't prefer Sun as over GNU as.
29240
29241 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
29242
29243 * config/s390/s390.c (override_options): Adjust the z10 defaults
29244 for max-unroll-times, max-completely-peeled-insns
29245 and max-completely-peel-times.
29246
29247 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29248
29249 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
29250 instructions for z10.
29251 (s390_expand_setmem): Likewise.
29252 (s390_expand_cmpmem): Likewise.
29253
29254 2010-04-08 Richard Guenther <rguenther@suse.de>
29255
29256 PR tree-optimization/43679
29257 * tree-ssa-pre.c (eliminate): Only propagate copies.
29258
29259 2010-04-08 Jakub Jelinek <jakub@redhat.com>
29260
29261 PR bootstrap/43681
29262 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
29263 set but not used variable warning.
29264
29265 2010-04-08 Wei Guozhi <carrot@google.com>
29266
29267 PR target/41653
29268 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
29269 (arm_size_rtx_costs): Call the new function when optimized for size.
29270
29271 2010-04-08 Jakub Jelinek <jakub@redhat.com>
29272
29273 PR debug/43670
29274 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
29275 op0 is not a MEM, just return NULL instead of assertion
29276 failure.
29277 (discover_nonconstant_array_refs): Don't walk debug stmts.
29278
29279 2010-04-08 Doug Kwan <dougkwan@google.com>
29280
29281 * configure.ac: Recognize gold and do not use its version number
29282 to test ld features.
29283 * configure: Regenerate.
29284
29285 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
29286
29287 PR middle-end/40815
29288 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
29289 (negate_value): Move code to push elements to broken_up_substracts ...
29290 (eliminate_plus_minus_pair): ... here. Push operands that have no
29291 negative pair to plus_negates.
29292 (repropagate_negates, init_reassoc, fini_reassoc): Update.
29293
29294 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29295
29296 * doc/install.texi (Configuration): Move description of
29297 --enable-lto, --with-libelf*, --enable-gold from Java section to
29298 general section.
29299
29300 * doc/generic.texi (Working with declarations)
29301 (Function Properties, C and C++ Trees): Fix typos.
29302 * doc/sourcebuild.texi (Top Level): Likewise.
29303
29304 2010-04-07 Jakub Jelinek <jakub@redhat.com>
29305
29306 PR c/18624
29307 * tree.h (DECL_READ_P): Define.
29308 (struct tree_decl_common): Add decl_read_flag.
29309 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
29310 a set but not used warning.
29311 (merge_decls): Merge DECL_READ_P flag.
29312 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
29313 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
29314 * c-common.c (handle_used_attribute, handle_unused_attribute):
29315 Likewise.
29316 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
29317 New prototypes.
29318 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
29319 New functions.
29320 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
29321 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
29322 c_parser_binary_expression, c_parser_cast_expression,
29323 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
29324 Call default_function_array_read_conversion instead of
29325 default_function_array_conversion where needed.
29326 (c_parser_unary_expression, c_parser_conditional_expression,
29327 c_parser_postfix_expression_after_primary, c_parser_initelt):
29328 Likewise. Call mark_exp_read where needed.
29329 (c_parser_statement_after_labels, c_parser_asm_operands,
29330 c_parser_typeof_specifier, c_parser_sizeof_expression,
29331 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
29332 where needed.
29333 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
29334 New.
29335 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
29336 (warn_unused_but_set_parameter): Default to warn_unused
29337 && extra_warnings.
29338 * doc/invoke.texi: Document -Wunused-but-set-variable and
29339 -Wunused-but-set-parameter.
29340
29341 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
29342 used count variable.
29343 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
29344 when operandN variables aren't used in the body of the expander
29345 or splitter.
29346 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
29347 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
29348 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
29349 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
29350 FOR_EACH_IMM_USE_ON_STMT): Likewise.
29351 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
29352 * tree.c (PROCESS_ARG): Likewise.
29353
29354 2010-04-07 Simon Baldwin <simonb@google.com>
29355
29356 * diagnostic.h (diagnostic_override_option_index): New macro to
29357 set a diagnostic's option_index.
29358 * c-tree.h (c_cpp_error): Add warning reason argument.
29359 * opts.c (_warning_as_error_callback): New.
29360 (register_warning_as_error_callback): Store callback for
29361 warnings enabled via enable_warning_as_error.
29362 (enable_warning_as_error): Call callback, minor code tidy.
29363 * opts.h (register_warning_as_error_callback): Declare.
29364 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
29365 response to -Werror=.
29366 (c_common_init_options): Register warning_as_error_callback in opts.c.
29367 * common.opt: Add -Wno-cpp option.
29368 * c-common.c (struct reason_option_codes_t): Map cpp warning
29369 reason codes to gcc option indexes.
29370 * (c_option_controlling_cpp_error): New function, lookup the gcc
29371 option index for a cpp warning reason code.
29372 * (c_cpp_error): Add warning reason argument, call
29373 c_option_controlling_cpp_error for diagnostic_override_option_index.
29374 * doc/invoke.texi: Document -Wno-cpp.
29375
29376 2010-04-07 Richard Guenther <rguenther@suse.de>
29377
29378 * ipa-reference.c (mark_load): Use get_base_address.
29379 (mark_store): Likewise.
29380
29381 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
29382 inserting GIMPLE_NOPs into the IL.
29383 * tree-ssa-structalias.c (get_constraint_for_component_ref):
29384 Explicitly strip handled components and indirect references.
29385
29386 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
29387 folding address expressions.
29388 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
29389 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
29390 operand_equal_p to compare decls.
29391 (ptr_deref_may_alias_decl_p): Likewise.
29392 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
29393 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
29394 Handle reversed comparison ops.
29395 * tree-sra.c (asm_visit_addr): Use get_base_address.
29396 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
29397 * ipa-reference.c (mark_address): Use get_base_address.
29398
29399 2010-04-07 Richard Guenther <rguenther@suse.de>
29400
29401 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
29402 Propagate constants everywhere.
29403
29404 2010-04-07 Jakub Jelinek <jakub@redhat.com>
29405
29406 PR debug/43516
29407 * tree.c (MAX_INT_CACHED_PREC): Define.
29408 (nonstandard_integer_type_cache): New array.
29409 (build_nonstandard_integer_type): Cache results for precision
29410 <= MAX_INT_CACHED_PREC.
29411
29412 2010-04-07 Richard Guenther <rguenther@suse.de>
29413
29414 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
29415 -fargument-noalias-global, -fargument-noalias-anything): Remove.
29416 * common.opt: Likewise.
29417 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
29418 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
29419 (nonoverlapping_memrefs_p): Likewise.
29420 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
29421 * opts.c (common_handle_option): Handle OPT_fargument_alias,
29422 OPT_fargument_noalias, OPT_fargument_noalias_anything and
29423 OPT_fargument_noalias_global for backward compatibility.
29424
29425 2010-04-07 Richard Guenther <rguenther@suse.de>
29426
29427 PR tree-optimization/43270
29428 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
29429 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
29430 * tree-ssa-pre.c (phi_translate_1): Adjust.
29431 (fully_constant_expression): Split out vn_reference handling to ...
29432 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
29433 Fold reads from constant strings.
29434 (vn_reference_lookup): Handle fully constant references.
29435 (vn_reference_lookup_pieces): Likewise.
29436 * Makefile.in (expmed.o-warn): Add -Wno-error.
29437
29438 2010-04-07 Martin Jambor <mjambor@suse.cz>
29439
29440 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
29441
29442 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
29443
29444 PR driver/41594
29445 * gcc.c: Add -static-libstdc++ to list of recognized options.
29446
29447 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29448
29449 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
29450
29451 2010-04-07 Richard Guenther <rguenther@suse.de>
29452
29453 PR middle-end/42617
29454 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
29455 bases build simple mem attributes to retain points-to information.
29456
29457 2010-04-07 Richard Guenther <rguenther@suse.de>
29458
29459 PR middle-end/42617
29460 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
29461 preserve points-to related information.
29462
29463 2010-04-07 Richard Guenther <rguenther@suse.de>
29464
29465 PR middle-end/42617
29466 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
29467 discard plain indirect references.
29468 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
29469 * tree.c (tree_nop_conversion): Likewise.
29470
29471 2010-04-07 Dodji Seketeli <dodji@redhat.com>
29472
29473 PR debug/43628
29474 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
29475
29476 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
29477
29478 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
29479 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
29480
29481 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
29482
29483 * tree-if-conv.c: Fix indentation and comments.
29484
29485 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
29486
29487 * tree-if-conv.c: Sort static functions in topological order.
29488
29489 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
29490
29491 * tree-if-conv.c: Fix indentation and comments.
29492
29493 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29494
29495 PR middle-end/43519
29496 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
29497 lang_hooks.types.type_for_size instead of
29498 build_nonstandard_integer_type.
29499 When converting an unsigned type to signed, double its precision.
29500 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
29501 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
29502 (graphite_create_new_loop_guard): When ub + 1 wraps around,
29503 use lb <= ub.
29504
29505 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29506
29507 PR middle-end/43519
29508 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
29509 POINTER_PLUS_EXPR for pointer types.
29510
29511 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29512
29513 PR middle-end/43519
29514 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
29515 * graphite-clast-to-gimple.c: Include langhooks.h.
29516 (max_signed_precision_type): New.
29517 (max_precision_type): Takes two types as arguments.
29518 (precision_for_value): New.
29519 (precision_for_interval): New.
29520 (gcc_type_for_interval): New.
29521 (gcc_type_for_value): New.
29522 (gcc_type_for_clast_term): New.
29523 (gcc_type_for_clast_red): New.
29524 (gcc_type_for_clast_bin): New.
29525 (gcc_type_for_clast_expr): Split up into several functions.
29526 (gcc_type_for_clast_eq): Rewritten.
29527 (compute_bounds_for_level): New.
29528 (compute_type_for_level_1): New.
29529 (compute_type_for_level): New.
29530 (gcc_type_for_cloog_iv): Removed.
29531 (gcc_type_for_iv_of_clast_loop): Rewritten.
29532 (graphite_create_new_loop): Compute the lower and upper bound types
29533 with gcc_type_for_clast_expr.
29534 (graphite_create_new_loop_guard): Same.
29535 (find_cloog_iv_in_expr): Removed.
29536 (compute_cloog_iv_types_1): Removed.
29537 (compute_cloog_iv_types): Removed.
29538 (gloog): Do not call compute_cloog_iv_types.
29539 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
29540 GBB_CLOOG_IV_TYPES.
29541 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
29542 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
29543 (GBB_CLOOG_IV_TYPES): Removed.
29544
29545 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29546
29547 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
29548 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
29549 (detect_commutative_reduction): Same.
29550
29551 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29552
29553 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
29554 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
29555 argument.
29556 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
29557 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
29558 (rewrite_commutative_reductions_out_of_ssa): Same.
29559 * passes.c (execute_function_todo): Call verify_ssa for every pass
29560 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
29561 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
29562 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
29563 with an extra argument.
29564 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
29565 verify_ssa only when the extra argument is true.
29566 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
29567 with an extra argument.
29568 (tree_transform_and_unroll_loop): Same.
29569
29570 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29571
29572 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
29573 for all the passes of the LNO having LOOP_CLOSED_SSA.
29574 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
29575 * tree-loop-distribution.c (pass_loop_distribution): Same.
29576 * tree-pass.h (TODO_verify_loops): Removed.
29577 * tree-ssa-loop.c (pass_tree_loop_init): Same.
29578 (pass_lim): Same.
29579 (pass_tree_unswitch): Same.
29580 (pass_predcom): Same.
29581 (pass_vectorize): Same.
29582 (pass_linear_transform): Same.
29583 (pass_graphite_transforms): Same.
29584 (pass_iv_canon): Same.
29585 (pass_complete_unroll): Same.
29586 (pass_complete_unrolli): Same.
29587 (pass_parallelize_loops): Same.
29588 (pass_loop_prefetch): Same.
29589 (pass_iv_optimize): Same.
29590
29591 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
29592
29593 PR middle-end/32824
29594 * passes.c (init_optimization_passes): Move pass_lim before
29595 pass_copy_prop and pass_dce_loop.
29596
29597 2010-04-06 Jakub Jelinek <jakub@redhat.com>
29598
29599 PR target/43667
29600 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
29601 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
29602 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
29603 MULTI_* defines for 4 argument vpermil2p* builtins.
29604
29605 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
29606
29607 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
29608 * config/i386/i386.c (x86_maybe_negate_const_int): New.
29609 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
29610 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
29611 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
29612 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
29613 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
29614 Use x86_maybe_negate_const_int to output insn mnemonic.
29615 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
29616 check from instruction predicate. Update comments.
29617 * config/i386/sync.md (sync_add<mode>): Use
29618 x86_maybe_negate_const_int to output insn mnemonic.
29619
29620 2010-04-06 Jan Hubicka <jh@suse.cz>
29621
29622 PR tree-optimization/42906
29623 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
29624 IGNORE_SELF argument. Set visited_control_parents for fully
29625 processed BBs.
29626 (find_obviously_necessary_stmts): Update call of
29627 mark_control_dependent_edges_necessary.
29628 (propagate_necessity): Likewise. Handle PHI edges more curefully.
29629
29630 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
29631
29632 * config/i386/i386.md: Remove comment about 'e' and 'E'
29633 operand modifier.
29634
29635 2010-04-06 Richard Guenther <rguenther@suse.de>
29636
29637 PR tree-optimization/43627
29638 * tree-vrp.c (extract_range_from_unary_expr): Widenings
29639 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
29640 not varying.
29641
29642 2010-04-06 Jakub Jelinek <jakub@redhat.com>
29643
29644 * BASE-VER: Change to 4.6.0.
29645
29646 PR target/43638
29647 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
29648 handling.
29649
29650 2010-04-06 Richard Guenther <rguenther@suse.de>
29651
29652 PR middle-end/43661
29653 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
29654
29655 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29656
29657 * doc/invoke.texi (Optimize Options): Document that LTO
29658 won't remove object access purely due to incompatible
29659 declarations.
29660
29661 2010-04-04 Matthias Klose <doko@ubuntu.com>
29662
29663 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
29664 Initialize variable.
29665
29666 2010-04-03 Richard Guenther <rguenther@suse.de>
29667
29668 PR middle-end/42509
29669 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
29670 require a non-NULL MEM_OFFSET.
29671
29672 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
29673
29674 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
29675 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
29676 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
29677 config/alpha/predicates.md, config/arm/arm.md,
29678 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
29679 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
29680 config/darwin9.h, config/darwin.c, config/darwin.h,
29681 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
29682 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
29683 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
29684 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
29685 config/mips/mips.md, config/mn10300/mn10300.c,
29686 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
29687 config/rs6000/aix.h, config/rs6000/dfp.md,
29688 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
29689 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
29690 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
29691 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
29692 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
29693 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
29694 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
29695 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
29696 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
29697 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
29698 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
29699 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
29700 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
29701 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
29702 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
29703 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
29704 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
29705 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
29706 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
29707 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
29708 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
29709 opt-functions.awk, opth-gen.awk, params.def, passes.c,
29710 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
29711 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
29712 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
29713 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
29714 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
29715 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
29716 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
29717 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
29718 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
29719 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
29720 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
29721 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
29722 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
29723 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
29724
29725 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29726
29727 PR other/43620
29728 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
29729 * aclocal.m4: Regenerate.
29730
29731 2010-04-02 Richard Guenther <rguenther@suse.de>
29732
29733 PR tree-optimization/43629
29734 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
29735 if we have seen a constant value.
29736
29737 2010-04-02 Joseph Myers <joseph@codesourcery.com>
29738
29739 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
29740
29741 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
29742
29743 PR target/43469
29744 * arm.c (legitimize_tls_address): Adjust call to
29745 gen_tls_load_dot_plus_four.
29746 (arm_note_pic_base): New function.
29747 (arm_cannot_copy_insn_p): Use it.
29748 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
29749 constraint.
29750
29751 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29752
29753 PR bootstrap/43531
29754
29755 Revert:
29756 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29757
29758 * Makefile.in ($(out_object_file)): Depend on
29759 gt-$(basename $(notdir $(out_file))).h.
29760
29761 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
29762
29763 * config.gcc (lm32-*-rtems*): Add t-lm32.
29764
29765 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
29766
29767 * config.gcc: Add lm32-*-rtems*.
29768 * config/lm32/rtems.h: New file.
29769
29770 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
29771
29772 PR target/42609
29773 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
29774
29775 2010-04-01 Jakub Jelinek <jakub@redhat.com>
29776
29777 * dwarf2out.c (output_compilation_unit_header): For
29778 -gdwarf-4 use version 4 instead of version 3.
29779 (output_line_info): For version 4 and above emit additional
29780 maximum ops per insn header field.
29781 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
29782
29783 * dwarf2out.c (is_c_family, is_java): Remove.
29784 (lower_bound_default): New function.
29785 (add_bound_info, gen_descr_array_type_die): Use it.
29786
29787 2010-04-01 Dodji Seketeli <dodji@redhat.com>
29788
29789 PR debug/43325
29790 * dwarf2out.c (gen_variable_die): Allow debug info for variable
29791 re-declaration when it happens in a function.
29792
29793 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
29794
29795 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
29796 (cgraph_remove_function_insertion_hook): Same.
29797 (cgraph_call_function_insertion_hooks): Same.
29798
29799 2010-04-01 Richard Guenther <rguenther@suse.de>
29800
29801 PR middle-end/43614
29802 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
29803 and TREE_THIS_VOLATILE.
29804 (copy_ref_info): Likewise.
29805 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
29806 * tree.c (build6_stat): Ignore side-effects of all but arg5
29807 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
29808 TARGET_MEM_REF.
29809
29810 2010-04-01 Richard Guenther <rguenther@suse.de>
29811
29812 PR tree-optimization/43607
29813 * ipa-type-escape.c (check_call): Do not access non-existing
29814 arguments.
29815
29816 2010-04-01 Richard Guenther <rguenther@suse.de>
29817
29818 PR middle-end/43602
29819 Revert
29820 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
29821 Jack Howarth <howarth@bromo.med.uc.edu>
29822
29823 * tree-profile.c (tree_init_ic_make_global_vars): Make static
29824 variables TLS.
29825
29826 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29827
29828 * doc/install.texi (Prerequisites): Document libelf usability on
29829 IRIX 5/6 and Solaris 2.
29830 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
29831 Update GNU as, GNU ld requirements.
29832 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
29833 Document Sun Studio compiler download.
29834 Update and simplify as, ld recommendations.
29835 (Specific, *-*-solaris2.7): Note obsoletion, removal.
29836
29837 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29838
29839 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
29840 with_tune_32 to pentium4.
29841
29842 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
29843
29844 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
29845
29846 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29847
29848 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
29849 obsoletion, removal.
29850 Update IDO URL.
29851 Document GNU as requirement.
29852 Update configure requirements.
29853 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
29854 Recomment IRIX 6.5.18+.
29855 Document IDF/IDL requirement.
29856 Document GNU as requirement.
29857 Document GNU ld bootstrap failure.
29858 Remove freeware.sgi.com reference.
29859
29860 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29861
29862 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
29863 UNIX V4.0, V5.0 obsoletion, removal.
29864 Remove --with-gc=simple reference.
29865 Update VM requirements during bootstrap.
29866 Remove -oldas bootstrap description.
29867 Update binutils reference.
29868 Remove comparison failure note.
29869
29870 2010-03-31 Richard Guenther <rguenther@suse.de>
29871 Zdenek Dvorak <ook@ucw.cz>
29872 Sebastian Pop <sebastian.pop@amd.com>
29873
29874 PR middle-end/43464
29875 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
29876 with multiple arguments.
29877 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
29878
29879 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29880
29881 * graphite-dependences.c (print_pddr): Call print_pdr with an
29882 extra argument.
29883 * graphite-poly.c (debug_pdr): Add an extra argument for the
29884 verbosity level.
29885 (print_pdr): Same.
29886 (print_pbb_domain): Same.
29887 (print_pbb): Same.
29888 (print_scop_context): Same.
29889 (print_scop): Same.
29890 (print_cloog): Same.
29891 (debug_pbb_domain): Same.
29892 (debug_pbb): Same.
29893 (print_pdrs): Same.
29894 (debug_pdrs): Same.
29895 (debug_scop_context): Same.
29896 (debug_scop): Same.
29897 (debug_cloog): Same.
29898 (print_scop_params): Same.
29899 (debug_scop_params): Same.
29900 (print_iteration_domain): Same.
29901 (print_iteration_domains): Same.
29902 (debug_iteration_domain): Same.
29903 (debug_iteration_domains): Same.
29904 (print_scattering_function): Same.
29905 (print_scattering_functions): Same.
29906 (debug_scattering_function): Same.
29907 (debug_scattering_functions): Same.
29908 * graphite-poly.h (debug_pdr): Update declaration.
29909 (print_pdr): Same.
29910 (print_pbb_domain): Same.
29911 (print_pbb): Same.
29912 (print_scop_context): Same.
29913 (print_scop): Same.
29914 (print_cloog): Same.
29915 (debug_pbb_domain): Same.
29916 (debug_pbb): Same.
29917 (print_pdrs): Same.
29918 (debug_pdrs): Same.
29919 (debug_scop_context): Same.
29920 (debug_scop): Same.
29921 (debug_cloog): Same.
29922 (print_scop_params): Same.
29923 (debug_scop_params): Same.
29924 (print_iteration_domain): Same.
29925 (print_iteration_domains): Same.
29926 (debug_iteration_domain): Same.
29927 (debug_iteration_domains): Same.
29928 (print_scattering_function): Same.
29929 (print_scattering_functions): Same.
29930 (debug_scattering_function): Same.
29931 (debug_scattering_functions): Same.
29932
29933 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29934
29935 * graphite-poly.c (print_scattering_function_1): New.
29936 (print_scattering_function): Call it.
29937 (print_scop_params): Remove spaces at the end of lines.
29938 (print_cloog): New.
29939 (debug_cloog): New.
29940 * graphite-poly.h (print_cloog): Declared.
29941 (debug_cloog): Declared.
29942
29943 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29944
29945 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
29946 in loop->header.
29947 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
29948 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
29949 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
29950 to switch between adding the IV bump in loop->latch or in loop->header.
29951
29952 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29953
29954 * graphite-poly.c (print_scattering_function): Pretty print following
29955 the scoplib format.
29956 (print_pdr): Same.
29957 (print_pbb_domain): Same.
29958 (dump_gbb_cases): Same.
29959 (dump_gbb_conditions): Same.
29960 (print_pdrs): Same.
29961 (print_pbb): Same.
29962 (print_scop_params): Same.
29963 (print_scop_context): Same.
29964 (print_scop): Same.
29965 (print_pbb_body): New.
29966 (lst_indent_to): New.
29967 (print_lst): Start new lines with a #.
29968 * graphite-poly.h (pbb_bb): New.
29969 (pbb_index): Use pbb_bb.
29970 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
29971 disjuncts.
29972 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
29973
29974 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29975
29976 * dwarf2out.c (size_of_die): For -gdwarf-4 use
29977 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
29978 and 0 instead of 1 for dw_val_class_flag.
29979 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
29980 dw_val_class_range_list, dw_val_class_loc_list,
29981 dw_val_class_lineptr and dw_val_class_macptr, use
29982 DW_FORM_flag_present for dw_val_class_flag and
29983 DW_FORM_exprloc for dw_val_class_loc.
29984 (output_die): For -gdwarf-4 print dw_val_class_loc
29985 size as uleb128 instead of 1 or 2 bytes and don't print
29986 anything for dw_val_class_flag.
29987
29988 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
29989 instead of cselib_lookup following by tweaking locs->setting_insn.
29990
29991 PR bootstrap/43596
29992 * cselib.c (cselib_process_insn): Clear cselib_current_insn
29993 even before returning from label, setjmp call or volatile asm
29994 handling.
29995
29996 2010-03-31 Richard Guenther <rguenther@suse.de>
29997
29998 PR middle-end/43600
29999 * cgraphunit.c (cgraph_output_in_order): Do not allocate
30000 temporary data on stack.
30001
30002 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30003
30004 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
30005 (PUSHSECTION_ASM_OP): Remove.
30006 (POPSECTION_ASM_OP): Remove.
30007 (PUSHSECTION_FORMAT): Remove.
30008 * config/sol2.h (PUSHSECTION_FORMAT): Define.
30009 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
30010 * config/sol2.c (solaris_output_init_fini): Use it.
30011
30012 2010-03-31 Jie Zhang <jie@codesourcery.com>
30013
30014 PR 43574
30015 * opt-functions.awk (var_type_struct): Use signed char type
30016 for simple variables.
30017
30018 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30019
30020 * config/sol2.c: Include output.h.
30021 (solaris_assemble_visibility): New function.
30022 * config/t-sol2 (sol2.o): Add output.h dependency.
30023 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
30024 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
30025 Redefine.
30026
30027 2010-03-31 Jakub Jelinek <jakub@redhat.com>
30028
30029 PR target/43580
30030 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
30031 V2SImode or XFmode on PRE_DEC.
30032
30033 PR debug/43557
30034 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
30035 BLKmode.
30036
30037 2010-03-31 Jie Zhang <jie@codesourcery.com>
30038
30039 PR 43562
30040 * reload.h (caller_save_initialized_p): Declare.
30041 * toplev.c (backend_init_target): Don't call
30042 init_caller_save but set caller_save_initialized_p to false.
30043 * caller-save.c (caller_save_initialized_p): Define.
30044 (init_caller_save): Check caller_save_initialized_p.
30045 * ira.c (ira): Call init_caller_save if flag_caller_saves.
30046
30047 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30048
30049 PR target/39048
30050 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
30051 and soft-fp/t-softfp to tmake_file.
30052 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
30053 (LIBGCC2_TF_CEXT): Define.
30054 (TF_SIZE): Define.
30055
30056 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
30057
30058 PR debug/42977
30059 * cselib.c (n_useless_values): Document handling of debug locs.
30060 (n_useless_debug_values, n_debug_values): New variables.
30061 (new_elt_loc_list): Don't add to debug values, keep count.
30062 (promote_debug_loc): New.
30063 (cselib_reset_table): Zero new variables.
30064 (entry_and_rtx_equal_p): Promote debug locs.
30065 (discard_useless_locs): Increment n_useless_debug_values for
30066 debug values.
30067 (remove_useless_values): Adjust n_useless_values and n_debug_values
30068 with n_useless_debug_values.
30069 (add_mem_for_addr): Promote debug locs.
30070 (cselib_lookup_mem): Likewise.
30071 (cselib_lookup_addr): Renamed to...
30072 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
30073 (cselib_log_lookup): ... this. Turn into...
30074 (cselib_lookup_addr): ... new wrapper.
30075 (cselib_lookup_from_insn): New.
30076 (cselib_invalidate_regno): Increment n_useless_debug_values for
30077 debug values.
30078 (cselib_invalidate_mem): Likewise.
30079 (cselib_process_insn): Take n_deleted and n_debug_values into
30080 account to guard remove_useless_value call.
30081 (cselib_finish): Zero n_useless_debug_values.
30082 * cselib.h (cselib_lookup_from_insn): Declare.
30083 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
30084 (sched_analyze_2): Likewise.
30085
30086 2010-03-30 Jakub Jelinek <jakub@redhat.com>
30087
30088 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
30089 functions.
30090 (adjust_mems): Replace narrowing SUBREG of expression containing
30091 just PLUS, MINUS, MULT and ASHIFT of registers and constants
30092 with operations in the narrower mode.
30093
30094 PR debug/43593
30095 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
30096 regs_invalidated_by_call instead all call_used_reg_set registers.
30097
30098 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
30099
30100 PR middle-end/43430
30101 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
30102 pointer comparisons with types_compatible_p.
30103 * tree-vect-stmts.c (vectorizable_call): Same.
30104 (vectorizable_condition): Same.
30105
30106 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30107
30108 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
30109 stack check if the mask would be zero.
30110
30111 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
30112 Jack Howarth <howarth@bromo.med.uc.edu>
30113
30114 * tree-profile.c (tree_init_ic_make_global_vars): Make static
30115 variables TLS.
30116
30117 2010-03-30 Joseph Myers <joseph@codesourcery.com>
30118
30119 PR other/25232
30120 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
30121 and __unordtf2.
30122 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
30123 Include ___unordxf2 and ___unordtf2.
30124 * config/i386/libgcc-glibc.ver: Do not define inheritance from
30125 GCC_4.4.0 here.
30126
30127 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
30128
30129 * config/lm32/t-lm32: New file.
30130 * config.gcc: Use the above file when targetting lm32.
30131
30132 2010-03-28 Duncan Sands <baldrick@free.fr>
30133
30134 * Makefile.in (PLUGIN_HEADERS): Add except.h.
30135
30136 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
30137
30138 PR middle-end/43431
30139 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
30140 Improve vectorization cost model diagnostic.
30141
30142 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
30143
30144 PR middle-end/43436
30145 * tree-vect-data-refs.c (vect_analyze_data_refs): When
30146 compute_data_dependences_for_loop returns false, early exit
30147 and output an extra diagnostic for the failed data reference
30148 analysis.
30149
30150 2010-03-29 Richard Guenther <rguenther@suse.de>
30151
30152 PR tree-optimization/43560
30153 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
30154 (can_sm_ref_p): Treat stores to readonly locations as trapping.
30155
30156 2010-03-29 Jie Zhang <jie@codesourcery.com>
30157
30158 PR 43564
30159 * toplev.c (process_options): Set optimization_default_node
30160 and optimization_current_node.
30161 * opts.c (decode_options): Don't set optimization_default_node
30162 and optimization_current_node.
30163
30164 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
30165
30166 * config/rtems.h: Abandon -qrtems_debug.
30167
30168 2010-03-28 Jan Hubicka <jh@suse.cz>
30169
30170 PR tree-optimization/43505
30171 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
30172 map should not be copied.
30173
30174 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30175
30176 PR middle-end/41674
30177 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
30178 cdtors, set DECL_PRESERVE_P.
30179 * ipa.c (cgraph_externally_visible_p): Return true if declaration
30180 should be preseved.
30181
30182 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
30183
30184 PR tree-optimization/43528
30185 * stor-layout.c (place_field): Check that constant fits into
30186 unsigned HWI when skipping calculation of MS bitfield layout.
30187
30188 2010-03-27 Jan Hubicka <jh@suse.cz>
30189
30190 PR middle-end/43391
30191 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
30192 notice_global_symbol work.
30193
30194 2010-03-27 Jakub Jelinek <jakub@redhat.com>
30195
30196 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
30197 instead of dwarf2out_decl.
30198 (struct var_loc_node): Remove section_label field.
30199 (dwarf2out_function_decl): New function.
30200 (dwarf2out_var_location): Don't set section_label field.
30201 (dwarf2out_begin_function): Don't empty decl_loc_table here.
30202
30203 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
30204
30205 PR tree-optimization/43544
30206 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
30207 First argument for builtin vectorized function hook is now a
30208 tree to be able to distinguish between machine specific and
30209 standard builtins.
30210 * targhooks.c (default_builtin_vectorized_function): Ditto.
30211 * targhooks.h (default_builtin_vectorized_function): Ditto.
30212 * target.h (struct gcc_target): Ditto.
30213 * tree-vect-stmts.c (vectorizable_function): Ditto.
30214 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
30215 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
30216 Ditto.
30217
30218 2010-03-26 Joseph Myers <joseph@codesourcery.com>
30219
30220 PR c/43381
30221 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
30222 nested binding iff it is a FUNCTION_DECL.
30223 (store_parm_decls_newstyle): Pass nested=true to bind for
30224 FUNCTION_DECLs amongst parameters.
30225
30226 2010-03-26 Jakub Jelinek <jakub@redhat.com>
30227
30228 * var-tracking.c (vt_expand_loc_callback): Don't run
30229 cselib_expand_value_rtx_cb in dummy mode if
30230 cselib_dummy_expand_value_rtx_cb returned false.
30231
30232 * var-tracking.c (emit_note_insn_var_location): For one part
30233 notes with offset 0, don't add EXPR_LIST around the location.
30234 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
30235 add_location_or_const_value_attribute): Adjust for that change.
30236
30237 PR debug/43540
30238 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
30239 into first operand and location into second.
30240 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
30241 dw_cfi_oprnd_loc for DW_CFA_expression.
30242 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
30243 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
30244 assume first argument is regnum and second argument is location.
30245
30246 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
30247
30248 PR target/42113
30249 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
30250 of scratch register to DImode. Split to DImode comparison operator.
30251 Use SImode subreg of scratch register in the multiplication.
30252 (*cmp_sadd_sidi): Ditto.
30253 (*cmp_ssub_si): Ditto.
30254 (*cmp_ssub_sidi): Ditto.
30255
30256 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
30257
30258 PR target/43524
30259 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
30260 Remove invalid assert and wrong comment.
30261
30262 2010-03-26 Jakub Jelinek <jakub@redhat.com>
30263
30264 PR debug/43516
30265 * flags.h (final_insns_dump_p): New extern.
30266 * final.c (final_insns_dump_p): New variable.
30267 (rest_of_clean_state): Set it before -fdump-final-insns=
30268 dumping, clear afterwards.
30269 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
30270 MEM_ALIAS_SET on MEMs.
30271
30272 2010-03-26 David S. Miller <davem@davemloft.net>
30273
30274 * configure.ac: Fix sparc GOTDATA_OP bug check.
30275 * configure: Rebuild.
30276
30277 2010-03-26 Alan Modra <amodra@gmail.com>
30278
30279 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
30280
30281 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30282
30283 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
30284 TLS_SECTION_ASM_FLAG.
30285
30286 2010-03-25 Jakub Jelinek <jakub@redhat.com>
30287
30288 PR bootstrap/43511
30289 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
30290 Clear first_function_block_is_cold.
30291
30292 PR c/43385
30293 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
30294 argument if the argument is truth_value_p.
30295
30296 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
30297
30298 * config/rs6000/constraints.md: Update copyright year for my changes.
30299
30300 PR target/43484
30301 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
30302 used in reg+reg addressing, swap registers.
30303
30304 2010-03-24 Jakub Jelinek <jakub@redhat.com>
30305
30306 PR debug/43293
30307 * target.h (struct gcc_target): Add code_end hook.
30308 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
30309 if not yet defined.
30310 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
30311 * toplev.c (compile_file): Call targetm.asm_out.code_end
30312 hook before unwind info/debug info output.
30313 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
30314 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
30315 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
30316 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
30317 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
30318 * config/i386/i386.c (ix86_file_end): Renamed to...
30319 (ix86_code_end): ... this. Make static. Don't call
30320 file_end_indicate_exec_stack. Emit unwind info using
30321 final_start_function/final_end_function.
30322 (darwin_x86_file_end): Remove.
30323 (TARGET_ASM_CODE_END): Define.
30324 * config/i386/i386.h (TARGET_ASM_FILE_END,
30325 NEED_INDICATE_EXEC_STACK): Don't define.
30326 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
30327 (TARGET_ASM_FILE_END): Define to darwin_file_end.
30328 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
30329 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
30330
30331 PR target/43498
30332 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
30333 at the beginning and final_end_function at the end.
30334 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
30335
30336 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30337
30338 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
30339 and Sun as TLS syntax.
30340 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
30341 * configure: Regenerate.
30342 * config.in: Regenerate.
30343 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
30344 (default_elf_asm_named_section): Use it.
30345 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
30346 (i386_output_dwarf_dtprel): Likewise.
30347 (output_addr_const_extra): Likewise.
30348 (output_pic_addr_const): Lowercase @GOTTPOFF.
30349 (output_addr_const_extra): Likewise.
30350 (output_pic_addr_const): Lowercase @GOTNTPOFF.
30351 (output_addr_const_extra): Likewise.
30352 (output_pic_addr_const): Lowercase @INDNTPOFF.
30353 (output_addr_const_extra): Likewise.
30354 (output_pic_addr_const): Lowercase @NTPOFF.
30355 (output_addr_const_extra): Likewise.
30356 (output_pic_addr_const): Lowercase @TPOFF.
30357 (output_addr_const_extra): Likewise.
30358 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
30359 (*tls_global_dynamic_64): Likewise.
30360 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
30361 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
30362
30363 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
30364 (ASM_OUTPUT_TLS_COMMON): Use it.
30365 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
30366
30367 PR target/38118
30368 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
30369 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
30370 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
30371 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
30372 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30373 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
30374
30375 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30376
30377 * config/i386/i386.c (override_options): Don't accept
30378 -mtls-dialect=sun any longer.
30379 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
30380 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
30381 (*tls_local_dynamic_base_32_sun): Likewise.
30382 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30383
30384 2010-03-24 Jakub Jelinek <jakub@redhat.com>
30385
30386 PR debug/43508
30387 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30388 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
30389
30390 PR debug/43479
30391 * ira.c (adjust_cleared_regs): New function.
30392 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
30393
30394 PR debug/19192
30395 PR debug/43479
30396 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
30397 from gimple_block.
30398 * expr.c (expand_expr_real): Restore previous
30399 curr_insn_source_location and curr_insn_block after
30400 expand_expr_real_1 call.
30401 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
30402 instead of expand_expr_real_1.
30403
30404 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
30405
30406 PR rtl-optimization/43413
30407 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
30408 hard regs too.
30409
30410 2010-03-22 James E. Wilson <wilson@codesourcery.com>
30411
30412 PR target/43348
30413 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
30414 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
30415
30416 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
30417
30418 * config/i386/i386.c (ix86_target_string): Add -mfma.
30419 Fix a typo in comment.
30420
30421 2010-03-22 Mike Stump <mikestump@comcast.net>
30422
30423 PR target/23071
30424 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
30425 Don't overly align based upon packed packed fields.
30426
30427 2010-03-22 Jason Merrill <jason@redhat.com>
30428
30429 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
30430 Use () rather than [], and move before the element type.
30431
30432 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30433
30434 * doc/configfiles.texi (Configuration Files): Removed
30435 fixinc/Makefile*, intl/Makefile.*.
30436 * doc/makefile.texi: Fixed markup. Abstract from version
30437 control system used.
30438 (Makefile): Removed obsolete java/parse.y example.
30439 * doc/sourcebuild.texi: Likewise.
30440 (Top Level): Added config, gnattools, libdecnumber, libgcc,
30441 libgomp, libssp. Removed fastjar.
30442 (Miscellaneous Docs): Clarify location.
30443 Added COPYING3, COPYING3.LIB.
30444 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
30445
30446 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30447
30448 PR target/38085
30449 * config/i386/i386.c (x86_function_profiler)
30450 [!NO_PROFILE_COUNTERS]: Fix typo.
30451 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
30452 instead of callq.
30453
30454 2010-03-22 Janis Johnson <janis187@us.ibm.com>
30455 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30456
30457 * doc/sourcebuild.texi (Test Directives): Split into six
30458 subsections, with most of the current text in new subsections
30459 Directives, Selectors, and Final Actions.
30460 (Directives): Split list of test directives into multiple
30461 subsubsections.
30462 (Selectors): Describe use and syntax of selectors.
30463 (Effective-Target Keywords): Describe all existing keywords.
30464 (Add Options): Describe features for dg-add-options.
30465 (Require Support): Describe variants of dg-require-support.
30466 (Final Actions): Describe commands to use in dg-final.
30467
30468 2010-03-22 Michael Matz <matz@suse.de>
30469
30470 PR middle-end/43475
30471 * recog.c (validate_replace_rtx_group): Replace also in
30472 REG_EQUAL and REG_EQUIV notes.
30473
30474 2010-03-22 Richard Guenther <rguenther@suse.de>
30475
30476 PR tree-optimization/43390
30477 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
30478 sure vector extracts are type correct.
30479
30480 2010-03-22 Richard Guenther <rguenther@suse.de>
30481
30482 PR middle-end/40106
30483 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
30484 x * sqrt (x) even when optimizing for size if the target
30485 has native support for sqrt.
30486
30487 2010-03-22 Jakub Jelinek <jakub@redhat.com>
30488
30489 * varasm.c (make_decl_rtl_for_debug): Also clear
30490 flag_mudflap for the duration of make_decl_rtl call.
30491
30492 PR debug/43443
30493 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
30494 locs from preserved VALUEs.
30495
30496 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30497
30498 PR middle-end/42718
30499 * pa.md (movmemsi): Set align to one if zero.
30500 (movmemdi): Likewise.
30501
30502 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
30503
30504 PR target/42321
30505 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
30506 with their corresponding prologue pushes.
30507
30508 2010-03-20 Andrew Pinski <pinskia@gmail.com>
30509
30510 PR target/43156
30511 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
30512 at the begining or end.
30513 (spu_expand_epilogue): Likewise.
30514
30515 2010-03-20 Richard Guenther <rguenther@suse.de>
30516
30517 PR rtl-optimization/43438
30518 * combine.c (make_extraction): Properly zero-/sign-extend an
30519 extraction of the low part of a CONST_INT. Also handle
30520 CONST_DOUBLE.
30521
30522 2010-03-19 Mike Stump <mikestump@comcast.net>
30523
30524 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
30525 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
30526 (override_options): Use SUBTARGET32_DEFAULT_CPU.
30527
30528 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
30529
30530 PR c/43211
30531 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
30532 an error.
30533
30534 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
30535
30536 PR rtl-optimization/42258
30537 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
30538 use that may match DEF.
30539
30540 PR target/40697
30541 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
30542 the cost of loading the constant rather than assuming
30543 COSTS_N_INSNS (1).
30544 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
30545 outer code is AND, do the same tests as the andsi3 expander and
30546 return COSTS_N_INSNS (1) if and is cheap.
30547
30548 * optabs.c (avoid_expensive_constant): Fix formatting.
30549
30550 2010-03-19 Michael Matz <matz@suse.de>
30551
30552 PR c++/43116
30553 * attribs.c (decl_attributes): When rebuilding a function pointer
30554 type use the same qualifiers as the original pointer type.
30555
30556 2010-03-19 Martin Jambor <mjambor@suse.cz>
30557
30558 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
30559 and is_gimple_ip_invariant_address.
30560
30561 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30562
30563 Revert
30564 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30565
30566 * config/arm/arm.c (arm_override_options): Turn off
30567 flag_dwarf2_cfi_asm for AAPCS variants.
30568
30569 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30570
30571 PR target/43399
30572 * config/arm/arm.c (emit_multi_reg_push): Update comments.
30573 Use PRE_MODIFY instead of PRE_DEC.
30574 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
30575 (vfp_emit_fstmd): Likewise.
30576
30577 2010-03-19 Michael Matz <matz@suse.de>
30578
30579 PR target/43305
30580 * builtins.c (expand_builtin_interclass_mathfn,
30581 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
30582 if that fails.
30583
30584 2010-03-19 Richard Guenther <rguenther@suse.de>
30585
30586 PR tree-optimization/43415
30587 * tree-ssa-pre.c (phi_translate): Split out worker to ...
30588 (phi_translate_1): ... this.
30589 (phi_translate): Move all caching here. Cache all NARY
30590 and REFERENCE translations.
30591
30592 2010-03-19 David S. Miller <davem@davemloft.net>
30593
30594 With help from Eric Botcazou.
30595 * config/sparc/sparc.c: Include dwarf2out.h.
30596 (emit_pic_helper): Delete.
30597 (pic_helper_symbol_name): Delete.
30598 (pic_helper_emitted_p): Delete.
30599 (pic_helper_needed): New.
30600 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
30601 (get_pc_thunk_name): New.
30602 (load_pic_register): Remove 'delay_pic_helper' arg. Use
30603 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
30604 Set pic_helper_needed to true. Don't call emit_pic_helper.
30605 (sparc_expand_prologue): Update load_pic_register call.
30606 (sparc_output_mi_thunk): Likewise.
30607 (sparc_file_end): Emit a hidden comdat symbol for the PIC
30608 thunk if possible. Output CFI information as needed.
30609
30610 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
30611 Jack Howarth <howarth@bromo.med.uc.edu>
30612
30613 PR target/36399
30614 * config/i386/i386.h: Fix ABI on darwin x86-32.
30615
30616 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
30617
30618 * tree.h: Declare make_decl_rtl_for_debug.
30619 * varasm.c (make_decl_rtl_for_debug): New.
30620 * dwarf2out.c (rtl_for_decl_location): Call it.
30621 * cfgexpand.c (expand_debug_expr): Call it.
30622
30623 2010-03-18 Jakub Jelinek <jakub@redhat.com>
30624
30625 PR bootstrap/43399
30626 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
30627 mem_mode.
30628
30629 PR bootstrap/43403
30630 * var-tracking.c (vt_init_cfa_base): Do nothing if
30631 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
30632
30633 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
30634
30635 PR debug/42873
30636 * var-tracking.c (canonicalize_vars_star): New.
30637 (dataflow_post_merge_adjust): Use it.
30638
30639 2010-03-18 Jakub Jelinek <jakub@redhat.com>
30640
30641 PR debug/43058
30642 * var-tracking.c (non_suitable_const): New function.
30643 (add_uses): For DEBUG_INSNs with constants, don't record any
30644 value, instead just the constant value itself.
30645 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
30646 is not VAR_LOC_UNKNOWN_P, set var to the constant.
30647 (emit_notes_in_bb): Likewise.
30648 (emit_note_insn_var_location): For onepart variables if
30649 cur_loc is a VOIDmode constant, use DECL_MODE.
30650
30651 2010-03-18 Martin Jambor <mjambor@suse.cz>
30652
30653 PR middle-end/42450
30654 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
30655 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
30656 all non-clones. Moved call redirection...
30657 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
30658 (cgraph_materialize_all_clones): Dispose of all
30659 combined_args_to_skip bitmaps.
30660 (verify_cgraph_node): Do not check for edges pointing to wrong
30661 nodes in inline clones.
30662 * tree-inline.c (copy_bb): Call
30663 cgraph_redirect_edge_call_stmt_to_callee.
30664 * ipa.c (cgraph_remove_unreachable_nodes): Call
30665 cgraph_node_remove_callees even when there are used clones.
30666
30667 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
30668
30669 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
30670
30671 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
30672
30673 PR target/43383
30674 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
30675 for 32bit.
30676
30677 2010-03-18 Michael Matz <matz@suse.de>
30678
30679 PR middle-end/43419
30680 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
30681 into sqrt(x) if we need to preserve signed zeros.
30682
30683 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
30684 Eric Botcazou <ebotcazou@adacore.com>
30685
30686 PR rtl-optimization/43360
30687 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
30688 note if we don't know its invariant status.
30689
30690 2010-03-18 Michael Matz <matz@suse.de>
30691
30692 PR tree-optimization/43402
30693 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
30694 PHI chains of ssa names registered for update.
30695
30696 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
30697
30698 PR target/42427
30699 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
30700 non-offsettable and pre_modify update addressing.
30701 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
30702 and "2" alternatives "#".
30703 (*movdd_softfloat32): Make all alternatives "#";
30704 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
30705 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
30706 (*movdf_softfloat32): Make all alternatives "#";
30707 (movdi): Use the new DIFD mode iterator to create a common splitter
30708 for movdi, movdf and movdd patterns.
30709
30710 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
30711
30712 * common.opt (dumpdir): Remove redundant tab.
30713
30714 2010-03-17 Martin Jambor <mjambor@suse.cz>
30715
30716 PR tree-optimization/43347
30717 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
30718 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
30719
30720 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
30721
30722 PR rtl-optimization/42216
30723 * regrename.c (create_new_chain): New function, broken out from...
30724 (scan_rtx_reg): ... here. Call it. Handle the case where we are
30725 appending a use to an empty chain.
30726 (build_def_use): Remove previous changes that convert OP_INOUT to
30727 OP_OUT operands; instead detect the case where an OP_INOUT operand
30728 uses a previously untracked register and create an empty chain for it.
30729
30730 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30731
30732 * doc/extend.texi (Function Attributes): Rewrite unfinished
30733 sentence in ms_abi documentation.
30734
30735 2010-03-17 Alan Modra <amodra@gmail.com>
30736
30737 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
30738 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
30739 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
30740 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
30741
30742 2010-03-16 Richard Henderson <rth@redhat.com>
30743
30744 PR middle-end/43365
30745 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
30746 (lower_try_finally): Save and restore eh_seq around the expansion
30747 of the try-finally.
30748
30749 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
30750
30751 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
30752 statements before splitting block.
30753
30754 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30755
30756 * doc/sourcebuild.texi (Testsuites): Fix markup.
30757 Use pathnames relative to gcc/testsuite.
30758 (Test Directives): Move description of how timeout is determined.
30759 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
30760 (C Tests): Correct gcc.misc-tests directory.
30761 Framework tests now live in gcc.test-framework.
30762
30763 2010-03-16 Richard Guenther <rguenther@suse.de>
30764
30765 PR middle-end/43379
30766 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
30767 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
30768
30769 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
30770 Alexandre Oliva <aoliva@redhat.com>
30771
30772 PR tree-optimization/42917
30773 * lambda-code.c (remove_iv): Skip debug statements.
30774 (lambda_loopnest_to_gcc_loopnest): Likewise.
30775 (not_interesting_stmt): Debug statements are not interesting.
30776
30777 2010-03-16 Jakub Jelinek <jakub@redhat.com>
30778
30779 PR debug/43051
30780 PR debug/43092
30781 * cselib.c (cselib_preserve_constants,
30782 cfa_base_preserved_val): New static variables.
30783 (preserve_only_constants): New function.
30784 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
30785 clear its REG_VALUES. If cselib_preserve_constants, don't
30786 empty the whole hash table, but preserve there VALUEs with constants,
30787 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
30788 (cselib_preserve_cfa_base_value): New function.
30789 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
30790 (cselib_init): Change argument to int bitfield. Set
30791 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
30792 is in it.
30793 (cselib_finish): Clear cselib_preserve_constants and
30794 cfa_base_preserved_val.
30795 * cselib.h (enum cselib_record_what): New enum.
30796 (cselib_init): Change argument to int.
30797 (cselib_preserve_cfa_base_value): New prototype.
30798 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
30799 * dse.c (dse_step1): Likewise.
30800 * cfgcleanup.c (thread_jump): Likewise.
30801 * sched-deps.c (sched_analyze): Likewise.
30802 * gcse.c (local_cprop_pass): Likewise.
30803 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
30804 If FN is non-NULL, call the callback always and whenever it returns
30805 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
30806 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
30807 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
30808 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
30809 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
30810 * var-tracking.c: Include recog.h.
30811 (bb_stack_adjust_offset): Remove.
30812 (vt_stack_adjustments): Don't call it, instead just gather the
30813 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
30814 (adjust_stack_reference): Remove.
30815 (compute_cfa_pointer): New function.
30816 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
30817 (struct adjust_mem_data): New type.
30818 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
30819 functions.
30820 (get_address_mode): New function.
30821 (replace_expr_with_values): Use it.
30822 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
30823 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
30824 (adjust_sets): Remove.
30825 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
30826 Use get_address_mode.
30827 (get_adjusted_src): Remove.
30828 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
30829 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
30830 (add_with_sets): Don't call adjust_sets.
30831 (fp_setter, vt_init_cfa_base): New functions.
30832 (vt_initialize): Change return type to bool. Move most of pool etc.
30833 initialization to the beginning of the function from end. Pass
30834 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
30835 If !frame_pointer_needed, call vt_stack_adjustment before mos
30836 vector is filled, call vt_init_cfa_base if argp/framep has been
30837 eliminated to sp. If frame_pointer_needed and argp/framep has
30838 been eliminated to hard frame pointer, set
30839 hard_frame_pointer_adjustment and call vt_init_cfa_base after
30840 encountering fp setter in the prologue. For MO_ADJUST, call
30841 log_op_type before pusing the op into mos vector, not afterwards.
30842 Call adjust_insn before cselib_process_insn/add_with_sets,
30843 call cancel_changes (0) afterwards.
30844 (variable_tracking_main_1): Adjust for vt_initialize calling
30845 vt_stack_adjustments and returning whether it succeeded or not.
30846
30847 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
30848
30849 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
30850 debug statements.
30851
30852 2010-03-15 Jakub Jelinek <jakub@redhat.com>
30853
30854 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
30855 has been set.
30856 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
30857 drap_reg has not been set.
30858
30859 2010-03-15 Michael Matz <matz@suse.de>
30860
30861 PR middle-end/43300
30862 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
30863 use it to expand block copies.
30864 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
30865 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
30866 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
30867
30868 2010-03-15 Richard Guenther <rguenther@suse.de>
30869
30870 PR tree-optimization/43367
30871 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
30872 elimination check.
30873
30874 2010-03-15 Richard Guenther <rguenther@suse.de>
30875
30876 PR tree-optimization/43317
30877 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
30878
30879 2010-03-15 Martin Jambor <mjambor@suse.cz>
30880
30881 PR tree-optimization/43141
30882 * tree-sra.c (create_abstract_origin): New function.
30883 (modify_function): Call create_abstract_origin.
30884
30885 2010-03-15 Chris Demetriou <cgd@google.com>
30886
30887 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
30888 wasn't copied.
30889
30890 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30891
30892 PR middle-end/43354
30893 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
30894 call insert_out_of_ssa_copy for default definitions.
30895
30896 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30897
30898 * graphite-clast-to-gimple.c (my_long_long): Defined.
30899 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
30900 * graphite-sese-to-poly.c (my_long_long): Defined.
30901 (scop_ivs_can_be_represented): Use it.
30902
30903 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30904
30905 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
30906 graphite-max-bbs-per-function, and loop-block-tile-size.
30907 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
30908 with "maximum".
30909 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
30910
30911 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30912
30913 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
30914 forward declaration.
30915 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
30916 (add_upper_bounds_from_estimated_nit): New.
30917 (build_loop_iteration_domains): Use it.
30918
30919 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30920
30921 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
30922
30923 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30924
30925 PR middle-end/43306
30926 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
30927 should be an INTEGER_CST. Also handle CASE_CONVERT.
30928
30929 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30930
30931 * graphite.c (graphite_initialize): To bound the number of bbs per
30932 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
30933 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
30934 * doc/invoke.texi: Document it.
30935
30936 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30937
30938 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
30939 * graphite-sese-to-poly.h (build_poly_scop): Same.
30940
30941 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30942
30943 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
30944 the number of parameters in the scop. Use as an upper bound
30945 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
30946 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
30947 * doc/invoke.texi: Document it.
30948
30949 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
30950
30951 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
30952 * doc/c-tree.texi: Remove.
30953 * doc/generic.texi: Merge c-tree.texi here.
30954 * doc/gccint.texi (Trees): Remove menu entry.
30955 (c-tree.texi): Remove @include.
30956 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
30957 * doc/languages.texi (Reading RTL): Ditto.
30958
30959 2010-03-12 Steve Ellcey <sje@cup.hp.com>
30960
30961 PR target/42869
30962 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
30963
30964 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30965
30966 PR middle-end/42431
30967 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
30968 code added to work around reload clobbering CONST insns.
30969
30970 2010-03-12 Jakub Jelinek <jakub@redhat.com>
30971
30972 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
30973 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
30974 (cselib_preserve_only_values): Remove retain argument, don't
30975 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
30976 * cselib.h (cselib_preserve_only_values): Remove retain argument.
30977 * var-tracking.c (micro_operation): Move insn field before union.
30978 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
30979 (struct variable_tracking_info_def): Remove n_mos field, change
30980 mos into a vector of micro_operations.
30981 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
30982 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
30983 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
30984 changing into a vector.
30985 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
30986 come before all other uops generated by add_stores.
30987 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
30988 argument removal.
30989 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
30990 a vector. Run just one pass over the bbs instead of separate counting
30991 and computation phase.
30992 (vt_finalize): Free VTI (bb)->mos vector instead of array.
30993
30994 PR debug/43329
30995 * tree-inline.c (remap_decls): Put old_var rather than origin_var
30996 into *nonlocalized_list vector.
30997 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
30998 even if origin is non-NULL.
30999 (gen_variable_die): Likewise.
31000 (process_scope_var): Don't change origin.
31001 (gen_decl_die): Likewise.
31002 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
31003 before adding new edges instead of after it, fix moving over
31004 debug stmts.
31005
31006 2010-03-11 David S. Miller <davem@davemloft.net>
31007
31008 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
31009 of four.
31010 * configure: Rebuild.
31011
31012 2010-03-11 Martin Jambor <mjambor@suse.cz>
31013
31014 PR tree-optimization/43257
31015 * tree.c (assign_assembler_name_if_neeeded): New function.
31016 (free_lang_data_in_cgraph): Assembler name assignment moved to the
31017 above new function.
31018 * tree.h (assign_assembler_name_if_neeeded): Declare.
31019 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
31020 the function if needed.
31021
31022 2010-03-11 Chris Demetriou <cgd@google.com>
31023
31024 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
31025 include/stdint-gcc.h, and include/stdint.h world-readable.
31026
31027 2010-03-11 Richard Guenther <rguenther@suse.de>
31028
31029 PR tree-optimization/43255
31030 * tree-vrp.c (process_assert_insertions_for): Do not insert
31031 asserts for trivial conditions.
31032
31033 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31034
31035 PR tree-optimization/43280
31036 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
31037 generation. Move calculation of size out of the if branch.
31038 (find_bswap): Modify compare number generation.
31039
31040 2010-03-11 Richard Guenther <rguenther@suse.de>
31041
31042 PR lto/43200
31043 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
31044 (input_gimple_stmt): Fixup handled component types during
31045 operand read. Also fix up decls in ADDR_EXPRs.
31046
31047 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
31048
31049 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
31050 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
31051
31052 2010-03-10 Jan Hubicka <jh@suse.cz>
31053
31054 PR c/43288
31055 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
31056 * varasm.c (get_variable_section): Don't do that here...
31057 (make_decl_rtl): ... and here.
31058 (do_assemble_alias): Produce decl RTL.
31059 (assemble_alias): Likewise.
31060
31061 2010-03-10 Jakub Jelinek <jakub@redhat.com>
31062
31063 PR debug/43290
31064 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
31065 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
31066 of fde->vdrap_reg.
31067 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
31068 (based_loc_descr): Only express drap or vdrap regno based expressions
31069 using DW_OP_fbreg when not optimizing.
31070 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
31071 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
31072 REG_CFA_SET_VDRAP note.
31073
31074 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
31075
31076 PR tree-optimization/43236
31077 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
31078 error in calculation of base address in reverse iteration case.
31079 (generate_builtin): Take number of latch executions if the statement
31080 is in the latch.
31081
31082 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
31083
31084 PR middle-end/42859
31085 * tree-eh.c: Include pointer-set.h.
31086 (lower_eh_dispatch): Filter out duplicate case labels and
31087 remove the unneeded edge when the label is unused. Return
31088 true when some edges are removed.
31089 (execute_lower_eh_dispatch): When any lowering resulted in
31090 removing an edge, also delete unreachable blocks.
31091
31092 2010-03-10 Jakub Jelinek <jakub@redhat.com>
31093
31094 PR bootstrap/43287
31095 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
31096 UNSPEC_MACHOPIC_OFFSET.
31097
31098 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
31099
31100 PR target/43294
31101 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
31102 (m68k_delegitimize_address): New function.
31103
31104 2010-03-09 Jakub Jelinek <jakub@redhat.com>
31105
31106 PR debug/43299
31107 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
31108
31109 PR debug/43299
31110 * var-tracking.c (adjust_sets): New function.
31111 (count_with_sets, add_with_sets): Use it.
31112 (get_adjusted_src): New inline function.
31113 (add_stores): Use it.
31114
31115 PR debug/43304
31116 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
31117 call cselib_dummy_expand_value_rtx_cb instead of
31118 cselib_expand_value_rtx_cb.
31119
31120 PR debug/43293
31121 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
31122 * config/i386/i386.c: Include debug.h and dwarf2out.h.
31123 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
31124 and .cfi_endproc around the pic thunks.
31125 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
31126 all queued unwind info register saves are saved before the call.
31127 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
31128 considered as sp-=4 for unwind info and the pop as sp+=4 which
31129 also clobbers dest, but doesn't actually restore it.
31130
31131 PR debug/43290
31132 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
31133 RTX_FRAME_RELATED_P.
31134
31135 2010-03-09 Jie Zhang <jie@codesourcery.com>
31136
31137 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
31138 whitespaces in output template.
31139
31140 2010-03-09 Jie Zhang <jie@codesourcery.com>
31141
31142 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
31143 out array boundary.
31144
31145 2010-03-08 Jakub Jelinek <jakub@redhat.com>
31146
31147 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
31148 builtins.exp in a separate job.
31149
31150 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
31151
31152 * graphite-sese-to-poly.c (add_param_constraints): Use
31153 lower_bound_in_type and upper_bound_in_type.
31154
31155 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
31156
31157 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
31158 instead of unsigned_type_node.
31159
31160 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
31161 Reza Yazdani <reza.yazdani@amd.com>
31162
31163 PR middle-end/43065
31164 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
31165 on pointer type parameters.
31166
31167 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
31168
31169 PR middle-end/42644
31170 PR middle-end/42130
31171 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
31172 handle conversions from pointer to integers.
31173 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
31174 induction variable, to be able to work with code generated by CLooG.
31175 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
31176 (build_poly_scop): Bail out if we cannot codegen a loop.
31177
31178 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
31179
31180 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
31181 code generation with gloog_error.
31182
31183 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
31184
31185 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
31186 Call fold_convert on all the returned values.
31187 (expand_scalar_variables_expr): Pass to
31188 expand_scalar_variables_ssa_name the type of the resulting expression.
31189
31190 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
31191
31192 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
31193 ppl_min_for_le_pointset.
31194 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
31195 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
31196
31197 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
31198
31199 * graphite-dependences.c (map_into_dep_poly): Removed.
31200 (dependence_polyhedron_1): Use combine_context_id_scat.
31201
31202 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
31203
31204 * graphite-poly.h (struct poly_scattering): Add layout documentation.
31205 (struct poly_bb): Same.
31206 (combine_context_id_scat): New.
31207
31208 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
31209
31210 PR middle-end/42326
31211 * sese.c (name_defined_in_loop_p): Return false for default
31212 definitions.
31213
31214 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
31215
31216 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
31217 and clean up the logic.
31218
31219 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
31220
31221 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
31222 early return.
31223
31224 2010-03-08 Jakub Jelinek <jakub@redhat.com>
31225
31226 * var-tracking.c (remove_cselib_value_chains): Define only for
31227 ENABLE_CHECKING.
31228 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
31229 delete_slot_part, emit_notes_for_differences_1): Don't call
31230 remove_cselib_value_chains here.
31231 (set_slot_part, emit_notes_for_differences_2): Don't call
31232 add_cselib_value_chains here.
31233 (preserved_values): New vector.
31234 (preserve_value): New function.
31235 (add_uses, add_stores, vt_add_function_parameters): Use it
31236 instead of cselib_preserve_value.
31237 (changed_values_stack): New vector.
31238 (check_changed_vars_0): New function.
31239 (check_changed_vars_1, check_changed_vars_2): Use it.
31240 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
31241 changed_values_stack VALUEs.
31242 (vt_emit_notes): For all preserved_values call
31243 add_cselib_value_chains. If ENABLE_CHECKING call
31244 remove_cselib_value_chains before verifying value_chains is empty.
31245 Initialize and free changed_values_stack.
31246 (vt_initialize): Initialize preserved_values.
31247 (vt_finalize): Free preserved_values.
31248
31249 2010-03-08 Richard Guenther <rguenther@suse.de>
31250
31251 PR tree-optimization/43269
31252 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
31253 region detection.
31254
31255 2010-03-08 Martin Jambor <mjambor@suse.cz>
31256
31257 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
31258 (ipa_is_param_called): Removed.
31259 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
31260 (ipa_print_node_params): Do not print the called flag.
31261 (ipa_write_node_info): Do not stream the called flag.
31262 (ipa_read_node_info): Likewise.
31263
31264 2010-03-07 Jakub Jelinek <jakub@redhat.com>
31265
31266 PR debug/43176
31267 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
31268 * cselib.c (struct expand_value_data): Add dummy field.
31269 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
31270 dummy to false.
31271 (cselib_dummy_expand_value_rtx_cb): New function.
31272 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
31273 any rtl.
31274 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
31275 * var-tracking.c: Include pointer-set.h.
31276 (variable): Change n_var_parts to char from int. Add
31277 cur_loc_changed and in_changed_variables fields.
31278 (variable_canonicalize): Remove.
31279 (shared_var_p): New inline function.
31280 (unshare_variable): Maintain cur_loc_changed and
31281 in_changed_variables fields. If var was in changed_variables,
31282 replace it there with new_var. Just copy cur_loc instead of
31283 resetting it to something else.
31284 (variable_union): Don't recompute cur_loc. Use shared_var_p.
31285 (dataflow_set_union): Don't call variable_canonicalize.
31286 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
31287 of their DEBUG_EXPR_TREE_DECLs.
31288 (canonicalize_loc_order_check): Verify that cur_loc is NULL
31289 and in_changed_variables and cur_loc_changed is false.
31290 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
31291 and cur_loc_changed. Don't update cur_loc here.
31292 (variable_merge_over_src): Don't call variable_canonicalize.
31293 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
31294 removing loc that is equal to cur_loc, clear cur_loc,
31295 set cur_loc_changed and ensure variable_was_changed is called.
31296 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
31297 compare pointers in cur_loc check, if it is equal to loc,
31298 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
31299 (variable_different_p): Remove compare_current_location argument,
31300 don't compare cur_loc.
31301 (dataflow_set_different_1): Adjust variable_different_p caller.
31302 (variable_was_changed): If dv had some var in changed_variables
31303 already, reset in_changed_variables flag for it and propagate
31304 cur_loc_changed over to the new variable. On empty var
31305 always set cur_loc_changed. Set in_changed_variables on whatever
31306 var is added to changed_variables.
31307 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
31308 Use shared_var_p. When removing loc that is equal to cur_loc,
31309 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
31310 end, don't set it to something else, just call variable_was_changed.
31311 (delete_slot_part): Use shared_var_p. When cur_loc equals to
31312 loc being removed, clear cur_loc and set cur_loc_changed.
31313 Set cur_loc_changed if all locations have been removed.
31314 (struct expand_loc_callback_data): New type.
31315 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
31316 allocated. Always create SUBREGs if simplify_subreg failed.
31317 Prefer to use cur_loc, when that fails and still in
31318 changed_variables (and seen first time) recompute it. Set
31319 cur_loc_changed of variables which had to change cur_loc and
31320 compute elcd->cur_loc_changed if any of the subexpressions used
31321 had to change cur_loc.
31322 (vt_expand_loc): Adjust to pass arguments in
31323 expand_loc_callback_data structure.
31324 (vt_expand_loc_dummy): New function.
31325 (emitted_notes): New variable.
31326 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
31327 that weren't used for any other decl in current
31328 emit_notes_for_changes call call vt_expand_loc_dummy to update
31329 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
31330 first loc_chain location if NULL before. Always use just
31331 cur_loc instead of first loc_chain location. When cur_loc_changed
31332 is false, when not --enable-checking=rtl just don't emit any note.
31333 When rtl checking, compute the note and assert it is the same
31334 as previous note. Clear cur_loc_changed and in_changed_variables
31335 at the end before removing from changed_variables.
31336 (check_changed_vars_3): New function.
31337 (emit_notes_for_changes): Traverse changed_vars to call
31338 check_changed_vars_3 on each changed var.
31339 (emit_notes_for_differences_1): Clear cur_loc_changed and
31340 in_changed_variables. Recompute cur_loc of new_var.
31341 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
31342 (vt_emit_notes): Initialize and destroy emitted_notes.
31343
31344 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
31345
31346 PR rtl-optimization/42220
31347 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
31348 Use verify_reg_tracked to determine if we should use OP_OUT rather
31349 than OP_INOUT.
31350 (build_def_use): If we see an in-out operand for a register that we
31351 know nothing about, treat is an output if possible, fail the block if
31352 not.
31353
31354 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
31355
31356 PR debug/42897
31357 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
31358 permanently.
31359
31360 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
31361
31362 PR debug/42897
31363 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
31364 uses of relevant DEFs that are dead outside the loop too.
31365
31366 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
31367
31368 * var-tracking.c (dataflow_set_merge): Swap src and src2.
31369 Reverted:
31370 2010-01-13 Jakub Jelinek <jakub@redhat.com>
31371 PR debug/41371
31372 * var-tracking.c (values_to_unmark): New variable.
31373 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
31374 values_to_unmark vector. Moved body to...
31375 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
31376 instead queue it into values_to_unmark vector.
31377 (vt_find_locations): Free values_to_unmark vector.
31378
31379 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
31380
31381 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
31382 (site.exp): Export them when plugins are enabled.
31383
31384 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
31385
31386 PR middle-end/42326
31387 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
31388 that contain scevs.
31389 (chrec_fold_multiply): Same.
31390
31391 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
31392
31393 PR c/43248
31394 * c-decl.c (build_compound_literal): Return early if init is
31395 an error_mark_node.
31396
31397 2010-03-04 Martin Jambor <mjambor@suse.cz>
31398
31399 PR tree-optimization/43164
31400 PR tree-optimization/43191
31401 * tree-sra.c (type_consists_of_records_p): Reject records with
31402 zero-size bit-fields at the end.
31403
31404 2010-03-04 Mike Stump <mikestump@comcast.net>
31405
31406 * Makefile.in (TAGS): Remove *.y.
31407
31408 2010-03-04 Richard Guenther <rguenther@suse.de>
31409
31410 PR tree-optimization/40761
31411 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
31412 in reverse order.
31413 (my_rev_post_order_compute): New function.
31414 (init_pre): Call it.
31415
31416 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
31417
31418 PR middle-end/43209
31419 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
31420 decrease the cost of an IV candidate when the cost is infinite.
31421
31422 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31423
31424 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
31425 Use '3DNow!' for the extension of that name, ensure normal space
31426 after the string.
31427 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
31428
31429 2010-03-03 Jeff Law <law@redhat.com>
31430
31431 * PR middle-end/32693
31432 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
31433 than gen_rtx_SUBREG.
31434 (extract_bit_field_1): Likewise.
31435
31436 2010-03-03 Janis Johnson <janis187@us.ibm.com>
31437
31438 * doc/sourcebuild.texi (Test directives): Document that arguments
31439 include-opts and exclude-opts are now optional for dg-skip-if,
31440 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
31441
31442 2010-03-03 Jason Merrill <jason@redhat.com>
31443
31444 PR c++/12909
31445 * cgraph.h (varpool_node): Add extra_name field.
31446 * varpool.c (varpool_extra_name_alias): New.
31447 (varpool_assemble_decl): Emit extra name aliases.
31448 (varpool_mark_needed_node): Look past an extra name alias.
31449 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
31450 * lto-streamer-in.c (lto_input_tree): Read it.
31451 * lto-streamer-out.c (output_unreferenced_globals): Write it.
31452
31453 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
31454
31455 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
31456 (sparc*-*-solaris2*): ...this.
31457
31458 2010-03-03 Jakub Jelinek <jakub@redhat.com>
31459
31460 PR debug/43229
31461 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
31462 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
31463 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
31464 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
31465
31466 PR debug/43237
31467 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
31468 fallthrough to default handling, just with want_address 0 instead of 2.
31469 For single element lists, add_AT_loc directly, otherwise create an
31470 artificial variable DIE and stick location list to it.
31471
31472 PR debug/43177
31473 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
31474 (VAL_EXPR_HAS_REVERSE): Define.
31475 (reverse_op): New function.
31476 (add_stores): For reversible operations add an extra MO_VAL_USE.
31477
31478 2010-03-02 Jason Merrill <jason@redhat.com>
31479
31480 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
31481
31482 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
31483
31484 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
31485 (sparc64-*-linux*): Likewise.
31486 (sparc64-*-solaris2*): Include assembler files before linker ones.
31487 (sparc-*-solaris2*): Simplify and reorder to match previous case.
31488 * config/sparc/gas.h: Delete.
31489 * config/sparc/sol2-64.h: Add copyright notice.
31490 * config/sparc/sol2-gas-bi.h: Likewise.
31491 * config/sparc/sol2-gld.h: Likewise.
31492 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
31493 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
31494 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
31495 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
31496 (sparc_elf_asm_named_section): Rename into...
31497 (sparc_solaris_elf_asm_named_section): ...this. Always define.
31498
31499 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
31500
31501 * config/alpha/alpha.c (override_options): Fix -mtune error message.
31502
31503 2010-03-02 Jeff Law <law@redhat.com>
31504
31505 PR middle-end/42431
31506 * reload1.c (rtx_p, substitute_stack): Declare.
31507 (substitute): Record addresses of changed rtxs.
31508 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
31509 Restore the original rtx when complete.
31510 (reload): Free subsitute_stack when complete.
31511
31512 2010-03-02 Janis Johnson <janis187@us.ibm.com>
31513
31514 * doc/gccint.texi (menu): Add Testsuites as a chapter.
31515 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
31516 new chapter.
31517 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
31518 LTO Testing, gcov Testing, profopt Testing, compat Testing,
31519 Torture Tests): Change from subsection to section.
31520
31521 2010-03-02 Jakub Jelinek <jakub@redhat.com>
31522 Steven Bosscher <steven@gcc.gnu.org>
31523
31524 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
31525 instead of bb.
31526
31527 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
31528
31529 PR middle-end/42640
31530 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
31531 the assignment from the new induction variable to the assignment
31532 of the value from the original loop PHI function.
31533
31534 2010-03-01 Janis Johnson <janis187@us.ibm.com>
31535 Daniel Jacobowitz <dan@codesourcery.com>
31536
31537 * doc/sourcebuild.texi (Test directives): Clarify options to
31538 dg-skip-if.
31539
31540 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31541
31542 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
31543 Disable cfi directives unless GCC and gas agree on using read-only
31544 .eh_frame sections for 64-bit.
31545 * configure: Regenerate.
31546
31547 2010-03-01 Richard Guenther <rguenther@suse.de>
31548
31549 PR tree-optimization/43220
31550 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
31551 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
31552
31553 2010-03-01 Richard Guenther <rguenther@suse.de>
31554 Martin Jambor <mjambor@suse.cz>
31555
31556 PR middle-end/41250
31557 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
31558 gimplified parameters.
31559
31560 2010-03-01 Christian Bruel <christian.bruel@st.com>
31561
31562 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
31563
31564 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
31565
31566 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
31567
31568 2010-03-01 Richard Guenther <rguenther@suse.de>
31569
31570 PR middle-end/43213
31571 * expr.c (expand_assignment): Use the alias-oracle to tell
31572 if the rhs aliases the result decl.
31573
31574 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31575
31576 PR pch/14940
31577 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
31578 to sol_gt_pch_get_address.
31579 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
31580 64-bit, SPARC and x86.
31581 (sol_gt_pch_get_address): New function.
31582
31583 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
31584
31585 * toplev.h (inform_n, error_n): Declare.
31586 * diagnostic.c (inform_n, error_n): New function.
31587
31588 2010-03-01 Jakub Jelinek <jakub@redhat.com>
31589
31590 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
31591 has no rtl yet when processing local_decls, queue it and recheck
31592 if deferred stack allocation hasn't assigned it rtl.
31593
31594 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
31595
31596 * config/sh/sh.c (unspec_bbr_uid): New.
31597 (gen_block_redirect): Use it instead of INSN_UID.
31598 (gen_far_branch): Likewise.
31599
31600 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
31601
31602 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
31603 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
31604
31605 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31606
31607 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
31608 (Warning Options): -Wno-conversion-null is valid for
31609 Objective-C++ as well.
31610 * doc/tm.texi (Named Address Spaces): Likewise.
31611 * doc/plugins.texi (Plugins): Replace TABs with spaces.
31612 * doc/tree-ssa.texi (Tree SSA): Likewise.
31613
31614 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
31615
31616 PR bootstrap/43202
31617 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
31618 by default. Don't set the default arch for
31619 i[34567]86-*-darwin*|x86_64-*-darwin*.
31620
31621 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
31622
31623 PR bootstrap/43202
31624 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
31625 default. Set the default 32bit/64bit archs with $with_arch
31626 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
31627
31628 2010-02-27 Richard Guenther <rguenther@suse.de>
31629
31630 PR tree-optimization/43186
31631 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
31632 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
31633 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
31634 unroller iterations.
31635
31636 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
31637
31638 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
31639 required and i[34567]86-*-* targets don't support 64bit ISA.
31640
31641 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
31642
31643 PR ada/43096
31644 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31645 the same alias set.
31646
31647 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
31648
31649 * config.gcc: Set the default arch at least to Prescott for
31650 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
31651 if SSE math is enabled.
31652
31653 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
31654
31655 * diagnostic.c (diagnostic_initialize): Update.
31656 (diagnostic_report_diagnostic): Test inhibit_notes_p for
31657 informative notes.
31658 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
31659 (diagnostic_inhibit_notes): New.
31660 * toplev.c (process_options): inhibit notes with -fcompare-debug.
31661
31662 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
31663
31664 PR c/20631
31665 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
31666 * doc/standards.texi: Likewise.
31667 * doc/extend.texi: Likewise.
31668 * doc/trouble.texi: Likewise.
31669 * doc/cppopts.texi: Likewise.
31670 * doc/install.texi: Likewise.
31671 * c.opt (std=c90,std=gnu90): New options.
31672 * c-opts.c (c_common_handle_option): Handle them.
31673
31674 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
31675
31676 PR c/24577
31677 * c-decl.c (undeclared_variable): Use an informative note.
31678
31679 2010-02-26 Richard Guenther <rguenther@suse.de>
31680
31681 PR tree-optimization/43186
31682 * gimple.h (gimple_fold): Remove.
31683 * gimple.c (gimple_fold): Remove. Inline into single user ...
31684 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
31685 Try harder for conditions.
31686
31687 2010-02-26 Jakub Jelinek <jakub@redhat.com>
31688
31689 PR debug/43190
31690 * function.c (used_types_insert): Don't skip through named pointer
31691 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
31692 and it is different from the main variant's type.
31693
31694 2010-02-26 Nick Clifton <nickc@redhat.com>
31695
31696 * config/rx/rx.md (sminsi3): Remove bogus alternative.
31697
31698 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
31699
31700 * config.gcc: Support --with-fpmath=sse for x86.
31701
31702 * config/i386/ssemath.h: New.
31703
31704 * doc/install.texi (--with-fpmath=sse): Documented.
31705
31706 2010-02-26 Richard Guenther <rguenther@suse.de>
31707
31708 PR tree-optimization/43188
31709 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
31710 vector types of over-aligned element type.
31711
31712 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
31713
31714 PR target/43175
31715 * config/i386/i386.c (expand_vec_perm_blend): Use correct
31716 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
31717
31718 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
31719
31720 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
31721
31722 2010-02-26 Jakub Jelinek <jakub@redhat.com>
31723
31724 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
31725 * var-tracking.c: Include diagnostic.h.
31726 (debug_dv): New function.
31727 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
31728
31729 PR debug/43160
31730 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
31731 (add_value_chain, add_value_chains, remove_value_chain,
31732 remove_value_chains): Handle DEBUG_EXPRs.
31733 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
31734
31735 PR debug/43161
31736 * regcprop.c (struct queued_debug_insn_change): New type.
31737 (struct value_data_entry): Add debug_insn_changes field.
31738 (struct value_data): Add n_debug_insn_changes field.
31739 (debug_insn_changes_pool): New variable.
31740 (free_debug_insn_changes, apply_debug_insn_changes,
31741 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
31742 (kill_value_one_regno): Call free_debug_insn_changes if needed.
31743 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
31744 fields.
31745 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
31746 changes for them.
31747 (copyprop_hardreg_forward_1): Don't call apply_change_group for
31748 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
31749 changes, call cprop_find_used_regs via note_stores.
31750 (copyprop_hardreg_forward): When copying vd from predecessor
31751 which has any queued DEBUG_INSN changes, make sure the pointers are
31752 cleared. At the end call df_analyze and then if there are any
31753 DEBUG_INSN changes queued at the end of some basic block for still
31754 live registers, apply them.
31755 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
31756
31757 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
31758
31759 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
31760 (arm*-*-*): Ditto.
31761
31762 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
31763
31764 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
31765 targets. Set the default with_cpu/with_arch from arch/cpu.
31766 Allow x86-64 and native for with_cpu/with_arch.
31767
31768 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
31769
31770 * ebitmap.c: Change calls to verify_popcount with calls to
31771 sbitmap_verify_popcount.
31772 (ebitmap_clear_bit): Fixed map->cacheindex test and
31773 map>cache update when bit clearing results in an empty
31774 element.
31775
31776 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
31777
31778 PR target/43154
31779 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
31780 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
31781 and support both V2DF and V2DI modes.
31782 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
31783 support both V2DF and V2DI modes.
31784 (general): Delete trailing whitespace from a few patterns.
31785
31786 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31787 V2DF/V2DI interleave high/low builtins.
31788
31789 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
31790 new VSX builtins.
31791
31792 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
31793 interleave high/low functions.
31794
31795 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
31796
31797 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
31798 #pragma extern_prefix.
31799
31800 2010-02-25 Jakub Jelinek <jakub@redhat.com>
31801
31802 PR debug/43166
31803 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
31804 BLKmode, assert op0 is a MEM and just adjust its mode.
31805
31806 PR debug/43165
31807 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
31808 if bitpos isn't multiple of mode's bitsize.
31809
31810 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
31811
31812 * c.opt (-ftemplate-depth=): New.
31813 (-ftemplate-depth-): Deprecate.
31814 * optc-gen.awk: Handle -ftemplate-depth=.
31815 * opth-gen.awk: Likewise.
31816 * c-opts.c (c_common_handle_option): Likewise.
31817 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
31818
31819 2010-02-24 Jason Merrill <jason@redhat.com>
31820
31821 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
31822
31823 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31824
31825 * cfg.c (alloc_aux_for_block): Remove inline.
31826 (alloc_aux_for_edge): Likewise.
31827
31828 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31829
31830 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
31831
31832 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31833
31834 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
31835 * config/i386/sol2-gas.h: New file.
31836 * config.gcc (i[34567]86-*-solaris2*): Use it.
31837
31838 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
31839
31840 PR c/43128
31841 * c-typeck.c (ep_convert_and_check): New.
31842 (build_conditional_expr): Use it.
31843 (build_binary_op): Likewise.
31844
31845 2010-02-24 Jakub Jelinek <jakub@redhat.com>
31846
31847 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
31848
31849 PR debug/43150
31850 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
31851 bounds even for -O+.
31852 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
31853 expr needs to have DECL_NAME set.
31854
31855 2010-02-24 Nick Clifton <nickc@redhat.com>
31856
31857 * config/mep/mep.c: Include gimple.h.
31858 (mep_function_uses_sp): Delete unused function.
31859 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
31860 parameters. Use unsigned integers to count args. Return a
31861 NULL_RTX instead of an error_mark_node. Toidy up formatting.
31862
31863 2010-02-23 Jakub Jelinek <jakub@redhat.com>
31864
31865 PR target/43107
31866 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
31867 greater or equal to nelt instead of 2 * nelt.
31868 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
31869 with nelt - 1.
31870
31871 2010-02-23 Jason Merrill <jason@redhat.com>
31872
31873 PR debug/42800
31874 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
31875 in cfun->local_decls even if they have register types.
31876
31877 PR c++/42837
31878 * stor-layout.c (place_field): Don't warn about unnecessary
31879 DECL_PACKED if the type is packed.
31880
31881 2010-02-23 Jakub Jelinek <jakub@redhat.com>
31882
31883 PR target/43139
31884 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
31885 GOTOFF relocs, even when the base reg isn't pic pointer.
31886
31887 2010-02-23 Michael Matz <matz@suse.de>
31888
31889 PR debug/43077
31890 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
31891 (expand_gimple_basic_block): Generate and use debug temps if there
31892 are debug uses left after the last real use of TERed ssa names.
31893 Unlink debug immediate uses when they are expanded.
31894
31895 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
31896
31897 PR 43123
31898 * config/i386/i386.c (override_options): Reorganise to provide
31899 better error messages.
31900
31901 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31902
31903 PR middle-end/43083
31904 * graphite-scop-detection.c (create_single_exit_edge): Move
31905 the call to find_single_exit_edge to....
31906 (create_sese_edges): ...here. Don't handle multiple edges
31907 exiting the function.
31908 (build_graphite_scops): Don't handle multiple edges
31909 exiting the function.
31910
31911 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31912
31913 PR middle-end/43097
31914 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
31915 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
31916
31917 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31918
31919 PR middle-end/43026
31920 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
31921
31922 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
31923
31924 PR c++/43126
31925 * c-typeck.c (convert_arguments): Print declaration location.
31926 * c-common.c (validate_nargs): Rename as
31927 builtin_function_validate_nargs.
31928 (check_builtin_function_arguments): Update.
31929
31930 2010-02-22 Richard Guenther <rguenther@suse.de>
31931
31932 PR lto/43045
31933 * tree-inline.c (declare_return_variable): Use the type of
31934 the call stmt lhs if available.
31935
31936 2010-02-22 Duncan Sands <baldrick@free.fr>
31937
31938 * passes.c (register_pass): Always consider all pass lists when
31939 ref_pass_instance_number is zero.
31940
31941 2010-02-22 Richard Guenther <rguenther@suse.de>
31942
31943 PR tree-optimization/42749
31944 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
31945 parameter. Do arithmetic in the original type.
31946 (update_accumulator_with_ops): Likewise.
31947 (adjust_accumulator_values): Adjust.
31948
31949 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31950
31951 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
31952 (QI to BLKmode splitter): New splitter.
31953
31954 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
31955
31956 * config/i386/i386.c (initial_ix86_tune_features): Turn on
31957 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
31958
31959 2010-02-22 Richard Guenther <rguenther@suse.de>
31960
31961 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
31962
31963 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
31964
31965 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
31966 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
31967 ($(T)crti.o, $(T)crtn.o): Remove rules.
31968
31969 2010-02-21 Tobias Burnus <burnus@net-b.de>
31970
31971 PR fortran/35259
31972 * doc/invoke.texi (-fassociative-math): Document that this
31973 option is automatically enabled for Fortran.
31974
31975 2010-02-20 David S. Miller <davem@davemloft.net>
31976
31977 * configure.ac: Test if linker and assembler properly support
31978 GOTDATA_OP relocations.
31979 * configure: Rebuild.
31980 * config.in: Likewise.
31981 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
31982 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
31983 (movsi_high_pic): Likewise.
31984 (movdi_lo_sum_pic): Likewise.
31985 (movdi_high_pic): Likewise.
31986 (movsi_pic_gotdata_op): New pattern.
31987 (movdi_pic_gotdata_op): Likewise.
31988 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
31989 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
31990
31991 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
31992
31993 PR target/43067
31994 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
31995 attribute to ssemul.
31996 (xop_mulv2div2di3_high): Ditto.
31997
31998 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31999
32000 PR c++/35669
32001 * c.opt (Wconversion-null): New option.
32002 * doc/invoke.texi (Wconversion-null): Document.
32003
32004 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
32005
32006 * common.opt (Wlarger-than-): Add Undocumented.
32007
32008 2010-02-19 Mike Stump <mikestump@comcast.net>
32009
32010 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
32011
32012 2010-02-19 Jason Merrill <jason@redhat.com>
32013
32014 PR target/40332
32015 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
32016 * configure: Likewise.
32017
32018 2010-02-20 Alan Modra <amodra@gmail.com>
32019
32020 PR middle-end/42344
32021 * cgraph.h (cgraph_make_decl_local): Declare.
32022 * cgraph.c (cgraph_make_decl_local): New function.
32023 (cgraph_make_node_local): Use it.
32024 * cgraphunit.c (cgraph_function_versioning): Likewise.
32025 * ipa.c (function_and_variable_visibility): Likewise.
32026
32027 2010-02-19 Jakub Jelinek <jakub@redhat.com>
32028
32029 PR bootstrap/43121
32030 * except.c (sjlj_emit_function_enter): Don't call
32031 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
32032 directly.
32033 * rtl.h (add_reg_br_prob_note): Remove prototype.
32034
32035 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
32036
32037 PR 41779
32038 * c-common.c (conversion_warning): Remove widening conversions
32039 before checking the conversion of integers to reals.
32040
32041 2010-02-19 Mike Stump <mikestump@comcast.net>
32042
32043 PR middle-end/43125
32044 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
32045
32046 PR objc/43061
32047 * cgraphunit.c (process_function_and_variable_attributes): Check
32048 DECL_PRESERVE_P instead of looking up attribute "used".
32049 * ipa-pure-const.c (check_decl): Likewise.
32050 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
32051 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
32052 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
32053 instead of attribute "used".
32054 * config/sol2-c.c (solaris_pragma_init): Likewise.
32055 (solaris_pragma_fini): Likewise.
32056
32057 2010-02-19 Jakub Jelinek <jakub@redhat.com>
32058
32059 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
32060 Use XCNEW instead of xcalloc.
32061 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
32062 XNEW instead of xmalloc.
32063 (get_fields): Use XNEWVEC instead of xmalloc.
32064
32065 PR debug/43084
32066 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
32067 populate vars array.
32068 (create_new_general_access): For debug stmts just reset value.
32069 (get_stmt_accesses): For accesses within debug stmts just record them
32070 using add_access_to_acc_sites instead of preventing the peeling or
32071 counting them as accesses.
32072
32073 PR middle-end/42233
32074 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
32075
32076 2010-02-19 Richard Guenther <rguenther@suse.de>
32077
32078 PR tree-optimization/42916
32079 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
32080 instructions.
32081
32082 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
32083
32084 * configure.ac: Replace all uses of changequote in macro arguments
32085 with proper quoting.
32086
32087 2010-02-19 Jakub Jelinek <jakub@redhat.com>
32088
32089 PR middle-end/42233
32090 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
32091
32092 2010-02-19 Richard Guenther <rguenther@suse.de>
32093
32094 PR tree-optimization/42944
32095 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
32096 test for aliasing with errno.
32097
32098 2010-02-19 Jakub Jelinek <jakub@redhat.com>
32099
32100 PR middle-end/42233
32101 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
32102 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
32103 * dojump.c: Include output.h.
32104 (inv): New inline function.
32105 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
32106 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
32107 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
32108 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
32109 argument, pass it down to other calls.
32110 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
32111 add REG_BR_PROB note to the conditional jump.
32112 * cfgexpand.c (add_reg_br_prob_note): Removed.
32113 (expand_gimple_cond): Don't call it, add the probability
32114 as last argument to jumpif_1/jumpifnot_1.
32115 * Makefile.in (dojump.o): Depend on output.h.
32116 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
32117 callers.
32118 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
32119 * stmt.c (do_jump_if_equal): Likewise.
32120 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
32121 * loop-unswitch.c (compare_and_jump_seq): Likewise.
32122 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
32123 Likewise.
32124 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
32125 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
32126 jumpifnot_1 callers.
32127 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
32128 callers.
32129 (store_expr): Adjust jumpifnot caller.
32130 (store_constructor): Adjust jumpif caller.
32131
32132 PR middle-end/42233
32133 * gimplify.c (gimple_boolify): For __builtin_expect call
32134 gimple_boolify also on its first argument.
32135
32136 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
32137
32138 * configure.ac (gnu-unique-object): Wrap regexps using [] in
32139 changequote block.
32140 (__stack_chk_fail): Ditto. Remove quadrigraphs.
32141 * configure: Regenerated.
32142
32143 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
32144
32145 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
32146 lang_hooks.types_compatible_p instead of comptypes.
32147
32148 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
32149
32150 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
32151 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
32152 if __prefer_thumb__ is defined.
32153
32154 2010-02-18 Martin Jambor <mjambor@suse.cz>
32155
32156 PR tree-optimization/43066
32157 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
32158 array with zero-sized element type.
32159
32160 2010-02-18 Jakub Jelinek <jakub@redhat.com>
32161
32162 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
32163 rtx, allocate struct var_loc_node here and return it to the
32164 caller, and only if it is actually needed.
32165 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
32166 move it earlier and return immediately if it returns NULL.
32167
32168 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
32169
32170 * config/sparc/gas.h: New file. Restore
32171 TARGET_ASM_NAMED_SECTION to its ELF default.
32172 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
32173 check !HAVE_GNU_AS.
32174 * config/sparc/sparc.c (sparc_elf_asm_named_section):
32175 Likewise. Add ATTRIBUTE_UNUSED to prototype.
32176 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
32177 after sparc/sysv4.h.
32178
32179 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
32180
32181 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
32182
32183 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
32184
32185 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
32186 patterns from predicated pattern.
32187
32188 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
32189
32190 PR target/43103
32191 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
32192 for insn mnemonic suffix.
32193
32194 2010-02-17 Richard Guenther <rguenther@suse.de>
32195
32196 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
32197 to loop PHI nodes.
32198
32199 2010-02-17 Jakub Jelinek <jakub@redhat.com>
32200
32201 PR debug/42918
32202 * caller-save.c (save_call_clobbered_regs): If BB ends with
32203 a DEBUG_INSN, move any notes in between last real insn and the last
32204 DEBUG_INSN after the last DEBUG_INSN.
32205
32206 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
32207
32208 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
32209 Fix return type. Fix argument type. Explain meaning of return value.
32210
32211 2010-02-16 Richard Guenther <rguenther@suse.de>
32212
32213 PR tree-optimization/41043
32214 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
32215 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
32216 statements ...
32217 (vrp_visit_phi_node): ... but only for loop PHI nodes.
32218
32219 2010-02-16 Ira Rosen <irar@il.ibm.com>
32220
32221 PR tree-optimization/43074
32222 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
32223 * tree-vect-loop.c (vect_analyze_loop_operations): Add
32224 vectorizable cycles in hybrid SLP check.
32225 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
32226
32227 2010-02-16 Richard Guenther <rguenther@suse.de>
32228
32229 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
32230 (true_dependence): If memrefs_conflict_p computes must-alias
32231 trust it. Move TBAA check after offset-based disambiguation.
32232 (canon_true_dependence): Likewise.
32233
32234 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
32235
32236 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
32237 * doc/invoke.texi: Document it.
32238 * var-tracking.c: Include toplev.h and params.h.
32239 (vt_find_locations): Return bool indicating success. Compute
32240 hash sizes unconditionally. Check new parameter, report.
32241 (variable_tracking_main_1): Check vt_find_locations results and
32242 retry. Renamed from...
32243 (variable_tracking_main): ... this. New wrapper to preserve
32244 flag_var_tracking_assignments.
32245 * Makefile.in (var-tracking.o): Adjust dependencies.
32246
32247 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
32248 Jakub Jelinek <jakub@redhat.com>
32249
32250 PR target/42854
32251 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
32252 if weak_import attribute is present.
32253 * config/darwin.c (machopic_select_section): Likewise.
32254
32255 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
32256
32257 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
32258 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
32259 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
32260 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
32261
32262 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
32263 types.
32264
32265 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
32266 Fix argument types.
32267
32268 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
32269 Rewrite text to refer to the names.
32270
32271 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
32272
32273 * config/i386/i386-builtin-types.def
32274 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
32275 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
32276 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
32277 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
32278 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
32279 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
32280 IX86_BUILTIN_VPERMIL2PS256.
32281 (MULTI_ARG_4_DF2_DI_I): Defined.
32282 (MULTI_ARG_4_DF2_DI_I1): Defined.
32283 (MULTI_ARG_4_SF2_SI_I): Defined.
32284 (MULTI_ARG_4_SF2_SI_I1): Defined.
32285 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
32286 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
32287 __builtin_ia32_vpermil2ps256.
32288 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
32289 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
32290 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
32291 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
32292 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
32293 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
32294 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
32295 CODE_FOR_xop_vpermil2v8sf3.
32296 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
32297 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
32298 * config/i386/xopintrin.h (_mm_permute2_pd): New.
32299 (_mm256_permute2_pd): New.
32300 (_mm_permute2_ps): New.
32301 (_mm256_permute2_ps): New.
32302
32303 2010-02-15 Nick Clifton <nickc@redhat.com>
32304
32305 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
32306 boolean parameters. Use emit_jump_insn when emitting a pop
32307 instruction containing a return insn.
32308 (push): Use 'true' rather than '1' as second parameter to F.
32309 (h8300_expand_prologue): Likewise.
32310 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
32311 (h8300_expand_epilogue): Likewise.
32312
32313 2010-02-15 Richard Guenther <rguenther@suse.de>
32314
32315 PR middle-end/43068
32316 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
32317 if that is zero.
32318
32319 2010-02-15 Nick Clifton <nickc@redhat.com>
32320
32321 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
32322 delta.
32323
32324 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
32325
32326 * intl.c (fake_ngettext): New function.
32327 * intl.h (fake_ngettext): Declare.
32328 (ngettext): Define macro.
32329 * collect2.c (notice_translated): New function.
32330 (main): Use notice_translated and ngettext.
32331 * collect2.h (notice_translated): Declare.
32332
32333 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
32334
32335 * reorg.c (delete_computation): Comment fixes.
32336 * caller-save.c (setup_save_areas): Idem.
32337 * sel-sched-dump.c (dump_lv_set): Idem.
32338 * rtl.def: Idem.
32339
32340 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32341
32342 * config/s390/s390.c (s390_sched_init): New function.
32343 (TARGET_SCHED_INIT): Target hook defined.
32344
32345 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
32346 Jack Howarth <howarth@bromo.med.uc.edu>
32347 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
32348
32349 PR target/42982
32350 Partial revert of unintended change in fix for PR41605.
32351 * config/darwin.h: Fix typo.
32352 * config/darwin9.h: Same.
32353
32354 2010-02-11 Jakub Jelinek <jakub@redhat.com>
32355
32356 * c-pch.c (pch_init): Clear v.
32357
32358 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
32359
32360 PR middle-end/42930
32361 * graphite-scop-detection.c (graphite_can_represent_scev): Call
32362 graphite_can_represent_init for MULT_EXPR.
32363
32364 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
32365
32366 PR middle-end/42914
32367 PR middle-end/42530
32368 * graphite-sese-to-poly.c (remove_phi): New.
32369 (translate_scalar_reduction_to_array): Call remove_phi.
32370
32371 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
32372
32373 PR middle-end/42771
32374 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
32375 * graphite-clast-to-gimple.h (gloog): Update declaration.
32376 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
32377 * graphite-poly.h (struct poly_bb): Add missing comments.
32378 (struct scop): Add poly_scop_p field.
32379 (POLY_SCOP_P): New.
32380 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
32381 * graphite.c (graphite_transform_loops): Build the polyhedral
32382 representation for each scop before code generation.
32383 * sese.c (rename_variables_in_operand): Removed.
32384 (rename_variables_in_expr): Return the renamed expression.
32385 (rename_sese_parameters): New.
32386 * sese.h (rename_sese_parameters): Declared.
32387
32388 2010-02-11 Richard Guenther <rguenther@suse.de>
32389
32390 PR tree-optimization/42998
32391 * tree-ssa-pre.c (create_expression_by_pieces): Treat
32392 POINTER_PLUS_EXPR properly.
32393
32394 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
32395 Changpeng Fang <changpeng.fang@amd.com>
32396
32397 PR middle-end/40886
32398 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
32399 the cost of an IV candidate when the IV is used in a test against zero.
32400
32401 * gcc.dg/tree-ssa/ivopts-3.c: New.
32402
32403 2010-02-11 Richard Guenther <rguenther@suse.de>
32404
32405 PR lto/41664
32406 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
32407 pointer-vs-decl case by swapping refs. Handle some cases
32408 of pointer-vs-decl disambiguations more conservatively.
32409 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
32410 to false after expanding.
32411
32412 2010-02-11 Richard Guenther <rguenther@suse.de>
32413
32414 PR driver/43021
32415 * gcc.c (process_command): Handle LTO file@offset case more
32416 appropriately.
32417
32418 2010-02-11 Jakub Jelinek <jakub@redhat.com>
32419
32420 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
32421 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
32422 of DEBUG_INSNs.
32423 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
32424
32425 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
32426 if MEM's mode size isn't DWARF2_ADDR_SIZE.
32427 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
32428 Optimize eq/ne comparisons when both arguments are known to be
32429 zero-extended.
32430 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
32431 Don't mask operands unnecessarily if they are known to be already
32432 zero-extended.
32433
32434 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
32435
32436 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
32437 instead of loop.
32438
32439 2010-02-10 Richard Guenther <rguenther@suse.de>
32440
32441 PR tree-optimization/43017
32442 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
32443 for wrapping signed arithmetic.
32444
32445 2010-02-10 Jakub Jelinek <jakub@redhat.com>
32446
32447 PR debug/43010
32448 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
32449 if no debug info should be emitted for it.
32450
32451 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
32452
32453 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
32454 note when flag_exceptions is set.
32455
32456 2010-02-10 Duncan Sands <baldrick@free.fr>
32457
32458 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
32459
32460 2010-02-10 Richard Guenther <rguenther@suse.de>
32461
32462 PR c/43007
32463 * tree.c (get_unwidened): Handle constants.
32464 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
32465
32466 2010-02-10 Martin Jambor <mjambor@suse.cz>
32467
32468 PR lto/42985
32469 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
32470 check for variable argument counts independently.
32471
32472 2010-02-10 Christian Bruel <christian.bruel@st.com>
32473
32474 PR target/42841
32475 * config/sh/sh.c (find_barrier): Increase length for non delayed
32476 conditional branches.
32477
32478 2010-02-10 Christian Bruel <christian.bruel@st.com>
32479
32480 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
32481
32482 2010-02-10 Jakub Jelinek <jakub@redhat.com>
32483
32484 * builtins.c (set_builtin_user_assembler_name): Also handle
32485 ffs if int is smaller than word.
32486
32487 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
32488
32489 PR middle-end/42973
32490 * ira-conflicts.c (get_dup): Remove.
32491 (process_reg_shuffles): Add new parameter. Use it as an
32492 additional guard for copy generation.
32493 (add_insn_allocno_copies): Rewrite.
32494
32495 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
32496
32497 * common.opt (fsched2-use-traces): Preserved for backward
32498 compatibility.
32499 * doc/invoke.texi: Remove the documentation about option
32500 -fsched2-use-traces.
32501 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
32502 flag_sched2_use_traces.
32503 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
32504 the backward compatibility flag section.
32505
32506 2010-02-09 Richard Guenther <rguenther@suse.de>
32507
32508 PR tree-optimization/43008
32509 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
32510 make HEAP variables initialized from global memory if they
32511 are not known builtin functions.
32512 (find_func_aliases): Adjust.
32513
32514 2010-02-09 Richard Guenther <rguenther@suse.de>
32515
32516 PR tree-optimization/43000
32517 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
32518 arithmetic manually.
32519
32520 2010-02-08 Jakub Jelinek <jakub@redhat.com>
32521
32522 PR tree-optimization/42931
32523 * tree-loop-linear.c (try_interchange_loops): Don't call
32524 double_int_mul if estimated_loop_iterations failed.
32525
32526 2010-02-08 Martin Jambor <mjambor@suse.cz>
32527
32528 PR middle-end/42898
32529 * tree-sra.c (build_accesses_from_assign): Do not mark in
32530 should_scalarize_away_bitmap if stmt has volatile ops.
32531 (sra_modify_assign): Do not process assigns piecemeal if if stmt
32532 has volatile ops.
32533
32534 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
32535
32536 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
32537
32538 2010-02-07 Adam Nemet <adambnmet@gmail.com>
32539
32540 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
32541 before the pattern.
32542
32543 2010-02-07 Andrew Pinski <pinskia@gmail.com>
32544
32545 PR middle-end/42946
32546 * df-core.c (df_finish_pass): Change type of saved_flags to int.
32547
32548 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
32549
32550 PR middle-end/42988
32551 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
32552 to unknown_dependence.
32553 (graphite_legal_transform_dr): Handle the unknown_dependence.
32554 (graphite_carried_dependence_level_k): Same.
32555
32556 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
32557
32558 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
32559
32560 2010-02-07 Richard Guenther <rguenther@suse.de>
32561
32562 PR middle-end/42991
32563 * expr.c (get_inner_reference): Always initialize *pbitsize.
32564
32565 2010-02-07 Richard Guenther <rguenther@suse.de>
32566
32567 PR middle-end/42956
32568 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
32569 new ARRAY_REFs on variable size element or minimal index arrays.
32570 Complete.
32571 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
32572 gimple_fold_indirect_ref.
32573
32574 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
32575
32576 PR target/42957
32577 * arm.c (arm_override_options): Just return if the user has specified
32578 an invalid fpu name.
32579
32580 2010-02-03 Jason Merrill <jason@redhat.com>
32581
32582 PR c++/42870
32583 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
32584 i386_pe_maybe_record_exported_symbol.
32585
32586 2010-02-05 Steve Ellcey <sje@cup.hp.com>
32587
32588 PR target/42924
32589 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32590 (pa_delegitimize_address): New function.
32591
32592 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
32593
32594 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
32595 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
32596
32597 2010-02-05 Richard Guenther <rguenther@suse.de>
32598
32599 PR lto/42762
32600 * lto-streamer-in.c (get_resolution): Deal with references
32601 to undefined functions.
32602
32603 2010-02-05 Richard Guenther <rguenther@suse.de>
32604
32605 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
32606 (fold_const_aggregate_ref): Likewise.
32607 (ccp_fold_stmt): Substitute loads.
32608 (maybe_fold_reference): Verify types before substituting.
32609 Unshare properly.
32610 (fold_gimple_assign): Unshare properly.
32611 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
32612
32613 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
32614
32615 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
32616 for rs6000_gen_cell_microcode.
32617
32618 2010-02-04 Richard Guenther <rguenther@suse.de>
32619
32620 PR rtl-optimization/42952
32621 * dse.c (const_or_frame_p): Remove MEM handling.
32622
32623 2010-02-04 Nick Clifton <nickc@redhat.com>
32624
32625 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
32626 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
32627 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
32628 (mn10300_asm_output_mi_thunk): New function.
32629 (mn10300_can_output_mu_thunk): New function.
32630 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
32631 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
32632 (FUNCTION_ARG): Delete incorrect comment.
32633
32634 2010-02-03 Jason Merrill <jason@redhat.com>
32635
32636 PR c++/40138
32637 * fold-const.c (operand_equal_p): Handle erroneous types.
32638
32639 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
32640
32641 * config/h8300/h8300.md (can_delay): Fix attibute condition.
32642
32643 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
32644
32645 PR rtl-optimization/42941
32646 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
32647 of xmalloc.
32648
32649 2010-02-03 Jason Merrill <jason@redhat.com>
32650
32651 PR c++/35652
32652 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
32653
32654 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
32655
32656 PR debug/42896
32657 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
32658 (cselib_reset_table): Renamed from...
32659 (cselib_reset_table_with_next_value): ... this.
32660 (cselib_get_next_uid): Renamed from...
32661 (cselib_get_next_unknown_value): ... this.
32662 * cselib.c (next_uid): Renamed from...
32663 (next_unknown_value): ... this.
32664 (cselib_clear_table): Adjust.
32665 (cselib_reset_table): Adjust. Renamed from...
32666 (cselib_reset_table_with_next_value): ... this.
32667 (cselib_get_next_uid): Adjust. Renamed from...
32668 (cselib_get_next_unknown_value): ... this.
32669 (get_value_hash): Use hash.
32670 (cselib_hash_rtx): Likewise.
32671 (new_cselib_val): Adjust. Set and dump uid.
32672 (cselib_lookup_mem): Pass next_uid as hash.
32673 (cselib_subst_to_values): Likewise.
32674 (cselib_log_lookup): Dump uid.
32675 (cselib_lookup): Pass next_uid as hash. Adjust.
32676 (cselib_process_insn): Adjust.
32677 (cselib_init): Initialize next_uid.
32678 (cselib_finish): Adjust.
32679 (dump_cselib_table): Likewise.
32680 * dse.c (canon_address): Dump value uid.
32681 * print-rtl.c (print_rtx): Print value uid.
32682 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
32683 (dvuid): New type.
32684 (dv_uid): New function, sort of renamed from...
32685 (dv_htab_hash): ... this, reimplemented in terms of it and...
32686 (dv_uid2hash): ... this. New.
32687 (variable_htab_eq): Drop excess assertions.
32688 (tie_break_pointers): Removed.
32689 (canon_value_cmp): Compare uids.
32690 (variable_post_merge_New_vals): Print uids.
32691 (vt_add_function_parameters): Adjust.
32692 (vt_initialize): Reset table. Adjust.
32693
32694 2010-02-03 Richard Guenther <rguenther@suse.de>
32695
32696 PR tree-optimization/42944
32697 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
32698 (call_may_clobber_ref_p_1): Likewise. Properly handle
32699 malloc and calloc clobbering errno.
32700
32701 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
32702
32703 * doc/invoke.texi: Fix name of sched1 dump.
32704
32705 * opts.c (decode_options): Set flag_tree_switch_conversion
32706 only conditionally on optimize >= 2.
32707
32708 * gcse.c: Assorted comment fixes in pass description.
32709
32710 2010-02-03 Anthony Green <green@moxielogic.com>
32711
32712 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
32713 nop padding in order to maintain alignment of storage location of
32714 target function address.
32715 (moxie_trampoline_init): Store target function address at newly
32716 aligned location.
32717 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
32718 to 32.
32719 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
32720
32721 2010-02-03 Richard Guenther <rguenther@suse.de>
32722
32723 PR middle-end/42927
32724 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
32725
32726 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32727
32728 * config.gcc: Reenable check for obsolete targets.
32729 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
32730 mips-sgi-irix6.[0-4]*.
32731
32732 2010-02-02 Nick Clifton <nickc@redhat.com>
32733
32734 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
32735 constant size of 4 as being the same as 0.
32736 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
32737 can take values in the range 0..4.
32738
32739 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
32740
32741 PR java/41991
32742 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
32743 as _darwin10_Unwind_FindEnclosingFunction().
32744 * libgcc-libsystem.ver: New.
32745
32746 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
32747
32748 PR target/41399
32749 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
32750 implicitly set registers.
32751
32752 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
32753
32754 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
32755 (arm_override_options): Allow automatic selection of the thread
32756 pointer register if thumb2.
32757 (legitimize_pic_address): Improve code sequences for Thumb2.
32758 (arm_call_tls_get_addr): Likewise.
32759 (legitimize_tls_address): Likewise.
32760 * arm.md (pic_load_addr_arm): Delete. Replace with ...
32761 (pic_load_addr_32bit): ... this. New named pattern.
32762 * thumb2.md (pic_load_addr_thumb2): Delete.
32763 (pic_load_dot_plus_four): Delete.
32764 (tls_load_dot_plus_four): New named pattern.
32765
32766 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32767
32768 PR libgomp/29986
32769 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
32770 Document fix for TLS bug.
32771
32772 2010-01-31 Richard Guenther <rguenther@suse.de>
32773
32774 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
32775 conservatively correct.
32776
32777 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32778
32779 PR target/42850
32780 Revert:
32781 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32782
32783 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
32784
32785 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32786
32787 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
32788
32789 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
32790
32791 * config.gcc: Adjust order of makefile fragments for mingw targets.
32792
32793 2010-01-31 Richard Guenther <rguenther@suse.de>
32794
32795 PR middle-end/42898
32796 * gimplify.c (gimplify_init_constructor): For volatile LHS
32797 initialize a temporary.
32798
32799 2010-01-31 Matthias Klose <doko@ubuntu.com>
32800
32801 * configure.ac: Fix __stack_chk_fail check for cross builds configured
32802 --with-headers
32803 * configure: Regenerate.
32804
32805 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
32806
32807 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
32808 the same alias set and their sizes different constantness.
32809 (aliasing_component_refs_p): Revert 2009-10-24 change.
32810
32811 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32812
32813 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
32814 unused.
32815
32816 2010-01-29 Richard Guenther <rguenther@suse.de>
32817
32818 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
32819 Assert we successfully updated the call.
32820
32821 2010-01-29 Jakub Jelinek <jakub@redhat.com>
32822
32823 PR rtl-optimization/42889
32824 * df.h (df_set_bb_dirty_nonlr): New prototype.
32825 * df-core.c (df_set_bb_dirty_nonlr): New function.
32826 * df-scan.c (df_insn_rescan): Call it instead of
32827 df_set_bb_dirty for DEBUG_INSNs.
32828
32829 2010-01-29 Richard Guenther <rguenther@suse.de>
32830
32831 PR middle-end/37448
32832 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
32833 quadratic behavior in most cases.
32834
32835 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
32836
32837 PR target/42891
32838 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
32839 in the call to gen_x86_movsicc_0_m1.
32840
32841 2010-01-28 Richard Guenther <rguenther@suse.de>
32842
32843 PR tree-optimization/42871
32844 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
32845
32846 2010-01-28 Richard Guenther <rguenther@suse.de>
32847
32848 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
32849 into call arguments.
32850
32851 2010-01-28 Richard Guenther <rguenther@suse.de>
32852
32853 PR middle-end/42883
32854 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
32855 the forwarder if the destination is an EH landing pad.
32856
32857 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
32858
32859 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
32860 block list passed to gimple_duplicate_sese_tail.
32861 (parallelize_loops): Avoid parallelization when the function
32862 has_nonlocal_label.
32863 Avoid parallelization when the preheader is IRREDUCIBLE.
32864 Try to optimize when estimated_loop_iterations_int is unresolved.
32865 Add the loop's location to the dump file.
32866 * tree-cfg.c (add_phi_args_after_redirect): Remove.
32867 (gimple_duplicate_sese_tail): Remove the check for the latch.
32868 Redirect nexits to the exit block.
32869 Remove handling of the incoming edges to the latch.
32870 Redirect the backedge from the copied latch to the exit bb.
32871
32872 2010-01-28 Michael Matz <matz@suse.de>
32873
32874 PR target/42881
32875 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
32876 Wrap force_reg into a sequence, emit it before user.
32877
32878 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
32879
32880 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
32881 (arm_rev): New.
32882 (arm_legacy_rev): Likewise.
32883 (thumb_legacy_rev): Likewise.
32884
32885 2010-01-27 Jakub Jelinek <jakub@redhat.com>
32886
32887 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
32888 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
32889 on MEM's address failed, try avoid_constant_pool_reference and
32890 recurse if it returned something different.
32891 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
32892 address, try avoid_constant_pool_reference and recurse if it
32893 returned something different.
32894 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
32895 address and avoid_constant_pool_reference returned something
32896 different, don't set have_address.
32897
32898 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
32899
32900 PR debug/42861
32901 * var-tracking.c (val_store): Add modified argument, obey it.
32902 Adjust callers.
32903 (count_uses): Move down logging of main.
32904 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
32905 don't need resolution.
32906 (emit_notes_in_bb): Likewise.
32907
32908 2010-01-27 Richard Guenther <rguenther@suse.de>
32909
32910 PR middle-end/42878
32911 * tree-inline.c (remap_decl): Delay remapping of SSA name
32912 default definitions until we need them.
32913
32914 2010-01-27 Jakub Jelinek <jakub@redhat.com>
32915
32916 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32917 (rs6000_delegitimize_address): New function.
32918
32919 * config/s390/s390.c (s390_delegitimize_address): Call
32920 delegitimize_mem_from_attrs.
32921
32922 PR middle-end/42874
32923 * tree-inline.c (cannot_copy_type_1): Removed.
32924 (copy_forbidden): Don't forbid copying of functions containing
32925 records/unions with variable length fields.
32926
32927 2010-01-27 Christian Bruel <christian.bruel@st.com>
32928
32929 Revert:
32930 PR target/42841
32931 * config/sh/sh.c (find_barrier): Increase length for non delayed
32932 conditional branches.
32933
32934 2010-01-27 Matthias Klose <doko@ubuntu.com>
32935
32936 * configure.ac (gnu-unique-object): Fix ldd version check.
32937 * configure: Regenerate.
32938
32939 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32940
32941 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
32942 HAVE_GNU_AS value.
32943 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
32944 Test for HAVE_GNU_AS value.
32945
32946 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32947
32948 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
32949 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
32950 INT64_TYPE): Define.
32951 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
32952 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
32953 INT_LEAST64_TYPE): Define.
32954 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
32955 UINT_LEAST64_TYPE): Define.
32956 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
32957 INT_FAST64_TYPE): Define.
32958 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
32959 UINT_FAST64_TYPE): Define.
32960 (INTMAX_TYPE, UINTMAX_TYPE): Define.
32961 (INTPTR_TYPE, UINTPTR_TYPE): Define.
32962 (SIG_ATOMIC_TYPE): Define.
32963
32964 2010-01-26 Richard Guenther <rguenther@suse.de>
32965
32966 * df-scan.c (df_scan_set_bb_info): Remove assert.
32967 (df_insn_rescan_debug_internal): Merge asserts.
32968 (df_install_ref): Likewise.
32969 (df_mark_reg): Use bitmap_set_range.
32970 (df_hard_reg_used_p): Remove assert.
32971 (df_hard_reg_used_count): Likewise.
32972
32973 2010-01-26 Richard Guenther <rguenther@suse.de>
32974
32975 PR rtl-optimization/42685
32976 * web.c (web_main): Ignore DEBUG_INSNs.
32977
32978 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
32979
32980 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
32981
32982 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
32983 Fix types of fndecl and arglist parameters.
32984
32985 2010-01-26 Richard Guenther <rguenther@suse.de>
32986
32987 PR middle-end/42806
32988 * tree-eh.c (unsplit_eh): Skip debug insns.
32989
32990 2010-01-26 Richard Guenther <rguenther@suse.de>
32991
32992 PR tree-optimization/42250
32993 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
32994
32995 2010-01-26 Jakub Jelinek <jakub@redhat.com>
32996
32997 PR fortran/42866
32998 * omp-low.c (expand_omp_sections): Only use single_pred if
32999 l2_bb is single_pred_p.
33000
33001 2010-01-25 Christian Bruel <christian.bruel@st.com>
33002
33003 PR target/42841
33004 * config/sh/sh.c (find_barrier): Increase length for non delayed
33005 conditional branches.
33006 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
33007
33008 2010-01-24 David S. Miller <davem@davemloft.net>
33009
33010 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
33011 define if not using GAS.
33012 * config/sparc/sparc.c (sparc_elf_asm_named_section):
33013 Likewise. Delete SECTION_MERGE code, which is only applicable
33014 when using GAS.
33015
33016 2010-01-24 Mark Mitchell <mark@codesourcery.com>
33017
33018 PR c++/42748
33019 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
33020 mangling of va_list in system headers.
33021
33022 2010-01-23 Toon Moene <toon@moene.org>
33023
33024 * tree-predcom.c (combine_chains): Return NULL, not false.
33025
33026 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
33027
33028 * tree-loop-distribution.c (distribute_loop): Fix declaration and
33029 initialization of variable res to agree with return type.
33030
33031 2010-01-22 Steve Ellcey <sje@cup.hp.com>
33032
33033 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
33034 * tree-sra.c: Add include of expr.h.
33035
33036 2010-01-22 Jakub Jelinek <jakub@redhat.com>
33037
33038 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
33039 insert the debug stmt on the single non-EH edge from the stmt.
33040
33041 2010-01-22 Richard Henderson <rth@redhat.com>
33042
33043 PR tree-opt/42833
33044 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
33045 the RHS until after generate_subtree_copies has insertted its
33046 code before the current statement.
33047
33048 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
33049
33050 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
33051
33052 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
33053
33054 2010-01-21 Martin Jambor <mjambor@suse.cz>
33055
33056 PR tree-optimization/42585
33057 * tree-sra.c (struct access): New field grp_total_scalarization.
33058 (dump_access): Dump the new field.
33059 (should_scalarize_away_bitmap): New variable.
33060 (cannot_scalarize_away_bitmap): Likewise.
33061 (sra_initialize): Allocate new bitmaps.
33062 (sra_deinitialize): Free new bitmaps.
33063 (create_access_1): New function.
33064 (create_access): Parts moved to create_access_1.
33065 (type_consists_of_records_p): New function.
33066 (completely_scalarize_record): Likewise.
33067 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
33068 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
33069 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
33070 access.
33071 (analyze_all_variable_accesses): Completely scalarize small eligible
33072 records.
33073
33074 2010-01-21 Martin Jambor <mjambor@suse.cz>
33075
33076 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
33077
33078 2010-01-21 Andrew Haley <aph@redhat.com>
33079
33080 * gcc.c (process_command): Move lang_specific_driver before
33081 setting cc_libexec_prefix.
33082
33083 2010-01-21 Richard Guenther <rguenther@suse.de>
33084
33085 PR middle-end/19988
33086 * fold-const.c (negate_expr_p): Pretend only negative
33087 real constants are easily negatable.
33088
33089 2010-01-20 Janis Johnson <janis187@us.ibm.com>
33090 Jason Merrill <jason@redhat.com>
33091
33092 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
33093 (TYPE_TRANSPARENT_AGGR): this, for union and record.
33094 * calls.c (initialize argument_information): Handle it.
33095 * c-common.c (handle_transparent_union_attribute): Use new name.
33096 * c-decl.c (finish_struct): Ditto.
33097 * c-typeck.c (type_lists_compatible_p): Ditto.
33098 (convert_for_assignment): Use new name and also handle record.
33099 * function.c (aggregate_value_p): Handle it.
33100 (pass_by_reference): Ditto.
33101 (assign_parm_data_types): Ditto.
33102 * print-tree.c (print_node): Ditto.
33103 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
33104 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
33105 * tree.c (first_field): New fn.
33106
33107 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
33108
33109 PR target/42818
33110 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
33111 even when linking statically, for now.
33112
33113 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
33114
33115 PR debug/42715
33116 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
33117 without a cselib val.
33118 (count_uses): Accept MO_VAL_SET with no val on stores.
33119 (add_stores): Likewise.
33120
33121 2010-01-20 Jakub Jelinek <jakub@redhat.com>
33122
33123 * var-tracking.c (check_value_val): Add a compile time assertion.
33124 (dv_is_decl_p): Simplify.
33125 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
33126 gcc_assert if ENABLE_CHECKING.
33127
33128 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
33129
33130 PR debug/42782
33131 * var-tracking.c: Include tree-flow.h.
33132 (mem_dies_at_call): New.
33133 (dataflow_set_preserve_mem_locs): Use it.
33134 (dataflow_set_remove_mem_locs): Likewise.
33135 (dump_var): Renamed from dump_variable. Adjust all callers.
33136 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
33137 * Makefile.in (var-tracking.o): Adjust deps.
33138
33139 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
33140
33141 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
33142
33143 2010-01-20 Richard Guenther <rguenther@suse.de>
33144
33145 PR tree-optimization/42717
33146 * tree-ssa-dce.c (get_live_post_dom): Remove.
33147 (forward_edge_to_pdom): Take an arbitrary edge to copy
33148 degenerate PHI args from.
33149 (remove_dead_stmt): Use the first post-dominator even if it
33150 does not contain live statements as redirection destination.
33151
33152 2010-01-20 Richard Guenther <rguenther@suse.de>
33153
33154 * tree-inline.c (estimate_num_insns): Handle EH builtins.
33155
33156 2010-01-20 Jakub Jelinek <jakub@redhat.com>
33157
33158 * sel-sched.c (create_speculation_check): Remove set but not used
33159 variable twin.
33160 (try_transformation_cache): Remove set but not used variable ds.
33161 (calculate_privileged_insns): Remove set but not used variables
33162 cur_insn and min_spec_insn.
33163 (find_best_expr): Remove set but not used variable avail_n.
33164 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
33165 variable e.
33166 * cgraphunit.c (assemble_thunk): Remove set but not used variable
33167 false_label.
33168 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
33169 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
33170 new_scop_exit_edge.
33171
33172 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
33173
33174 PR bootstrap/42786
33175 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
33176 cpu types. Add support for *-sse3 cpu types.
33177 (x86_64-*-*): Ditto.
33178
33179 2010-01-20 Jakub Jelinek <jakub@redhat.com>
33180
33181 PR middle-end/42803
33182 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
33183 argument, call initializer_constant_valid_p_1 instead of
33184 initializer_constant_valid_p, pass CACHE to it, return NULL
33185 immediately if first call returns NULL.
33186 (initializer_constant_valid_p_1): New function.
33187 (initializer_constant_valid_p): Use it.
33188
33189 2010-01-20 Thomas Quinot <quinot@adacore.com>
33190
33191 * tree.def (PLACEHOLDER_EXPR): Fix comment.
33192
33193 2010-01-20 Jakub Jelinek <jakub@redhat.com>
33194
33195 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
33196 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
33197 (loc_list_from_tree): Don't handle unsigned division. Handle
33198 signed modulo using DW_OP_{over,over,div,mul,minus}.
33199 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
33200 modulo instead of signed.
33201
33202 2010-01-20 DJ Delorie <dj@redhat.com>
33203
33204 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
33205 (Fpa): Pass it
33206 (h8300_emit_stack_adjustment): Propogate it.
33207 (push): Pass it.
33208 (h8300_expand_prologue): Likewise.
33209 (h8300_expand_epilogue): Likewise.
33210
33211 2010-01-19 Michael Matz <matz@suse.de>
33212
33213 PR tree-optimization/41783
33214 * tree-data-ref.c (toplevel): Include flags.h.
33215 (dump_data_dependence_relation): Also dump the inputs if the
33216 result will be unknown.
33217 (split_constant_offset_1): Look through some conversions.
33218 * tree-predcom.c (determine_roots_comp): Restart a new chain if
33219 the offset from last element is too large.
33220 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
33221 (reassociate_to_the_same_stmt): Handle vector registers.
33222 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
33223 (e.g. conversions).
33224 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
33225 wide_prolog_niters argument, emit widening instructions.
33226 (vect_do_peeling_for_alignment): Adjust caller, use widened
33227 variant of the iteration cound.
33228 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
33229
33230 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33231
33232 PR target/38697
33233 * config/arm/neon-testgen.m (emit_automatics): New parameter
33234 features. Adjust for Fixed_return_reg feature.
33235 (test_intrinsic): Call emit_automatics with new feature.
33236 * config/arm/neon.ml: Update copyright years.
33237 (features): New Fixed_return_reg feature.
33238 (ops): Update feature for Vget_low.
33239
33240 2010-01-19 Jakub Jelinek <jakub@redhat.com>
33241
33242 PR tree-optimization/42719
33243 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
33244 stmt uses.
33245
33246 PR debug/42728
33247 * fwprop.c (all_uses_available_at): Return false if def_set dest
33248 is a REG that is used in def_insn.
33249
33250 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
33251
33252 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
33253
33254 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
33255 Add argument names.
33256
33257 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
33258
33259 * target.h (struct gcc_target) <secondary_reload>: Change type
33260 of last argument to secondary_reload_info *.
33261
33262 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
33263
33264 PR target/42774
33265 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
33266 memory references with unaligned offsets. Remove CQImode handling.
33267 (unaligned_memory_operand): Return 1 for memory references with
33268 unaligned offsets. Remove CQImode handling.
33269
33270 2010-01-18 Richard Guenther <rguenther@suse.de>
33271
33272 PR middle-end/39954
33273 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
33274 builtin calls.
33275
33276 2010-01-18 Richard Guenther <rguenther@suse.de>
33277
33278 PR tree-optimization/42781
33279 * tree-ssa-structalias.c (find_what_var_points_to): Skip
33280 restrict processing only if the original variable was artificial.
33281
33282 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
33283
33284 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
33285 find number of popped argument bytes.
33286
33287 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
33288 Fix the text that describes the return value for invalid insns.
33289
33290 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
33291
33292 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
33293 Clarify what 'cost of the -dependence' is. Fix quoting.
33294
33295 * toplev.c (default_get_pch_validity): Rename argument to "sz".
33296 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
33297
33298 2010-01-17 Jakub Jelinek <jakub@redhat.com>
33299
33300 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
33301 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
33302
33303 2010-01-17 Richard Guenther <rguenther@suse.de>
33304
33305 PR middle-end/42248
33306 * function.c (split_complex_args): Take a VEC to modify.
33307 (assign_parms_augmented_arg_list): Build a VEC instead of
33308 a chain of PARM_DECLs.
33309 (assign_parms_unsplit_complex): Take a VEC of arguments.
33310 Do not fixup unmodified parms.
33311 (assign_parms): Deal with the VEC.
33312 (gimplify_parameters): Likewise.
33313
33314 2010-01-17 Richard Guenther <rguenther@suse.de>
33315
33316 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
33317 node existence check.
33318 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
33319 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
33320 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
33321 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
33322 (gimple_execute_on_growing_pred): Likewise.
33323
33324 2010-01-17 Richard Guenther <rguenther@suse.de>
33325
33326 PR tree-optimization/42773
33327 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
33328 (compute_antic_aux): Likewise.
33329 (compute_partial_antic_aux): Likewise.
33330
33331 2010-01-17 Jie Zhang <jie.zhang@analog.com>
33332
33333 PR debug/42767
33334 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
33335 and US_TRUNCATE.
33336
33337 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
33338
33339 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
33340 appearance.
33341
33342 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
33343 Fix markup for strict argument.
33344
33345 (TARGET_SCHED_REORDER2): Fix argument types.
33346
33347 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
33348 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
33349
33350 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
33351 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
33352
33353 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
33354 Add argument name.
33355
33356 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
33357 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
33358 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
33359 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
33360 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
33361
33362 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
33363
33364 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
33365
33366 (TARGET_ASM_RELOC_RW_MASK): Add return type.
33367 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
33368
33369 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
33370
33371 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
33372 Use prototype.
33373
33374 (TARGET_ASM_NAMED_SECTION): Fix argument list.
33375
33376 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
33377 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
33378
33379 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
33380
33381 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
33382
33383 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
33384 referring to it. Fix language.
33385
33386 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
33387
33388 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
33389
33390 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
33391
33392 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
33393
33394 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
33395 '@var{stream}. Remove stray 'and'.
33396
33397 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
33398
33399 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
33400
33401 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
33402
33403 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
33404 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
33405
33406 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
33407 Fix description of return value.
33408 Rename argument "sz" to "len."
33409
33410 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
33411 Clarify meaning of 'true' return value.
33412
33413 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
33414
33415 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
33416 rep_mode versus mode_rep.
33417
33418 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
33419
33420 (TARGET_BUILTIN_DECL): Fix name.
33421
33422 (TARGET_COMMUTATIVE_P): Fix type of first argument.
33423
33424 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
33425
33426 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
33427
33428 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
33429
33430 (TARGET_RELAXED_ORDERING): Use @deftypevr.
33431
33432 (TARGET_GET_DRAP_RTX): Note that this is a hook.
33433 Clarify language.
33434
33435 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
33436 Rename argument tm_fn to md_fn.
33437
33438 (TARGET_OPTION_PRINT): Fix argument list.
33439
33440 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
33441
33442 PR target/42664
33443 * config/i386/i386.c (ix86_fixup_binary_operands):
33444 Revert FMA4 fixup of operands.
33445
33446 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33447
33448 PR other/42525
33449 * Makefile.in (write_entries_to_file, install-plugin):
33450 Use \012 instead of \n with tr.
33451
33452 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
33453
33454 * configure.ac (HAVE_AS_REF): New C macro.
33455 * configure: Regenerate.
33456 * config.in: Likewise.
33457 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
33458 if HAVE_AS_REF.
33459 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
33460 if HAVE_AS_REF.
33461
33462 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
33463
33464 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
33465
33466 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
33467
33468 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
33469
33470 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
33471
33472 (TARGET_IN_SMALL_DATA_P): Fix argument type.
33473
33474 (TARGET_BINDS_LOCAL_P): Fix argument type.
33475
33476 (TARGET_ASM_FILE_END): Use prototype.
33477
33478 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
33479
33480 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
33481
33482 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
33483
33484 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
33485
33486 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
33487 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
33488
33489 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
33490 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
33491
33492 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
33493 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
33494 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
33495 (TARGET_ADDR_SPACE_CONVERT): Likewise.
33496
33497 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
33498
33499 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
33500
33501 (TARGET_INIT_BUILTINS): Use prototype.
33502
33503 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
33504 Put 'const char *' in braces. Fix parameter types.
33505 (TARGET_INVALID_CONVERSION): Fix parameter types.
33506 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
33507 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
33508
33509 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
33510 Fix argument type.
33511
33512 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
33513
33514 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
33515
33516 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
33517
33518 * doc/tm.texi (TARGET_HELP): Fix return type.
33519
33520 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
33521 in braces. Fix argument types.
33522
33523 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
33524
33525 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
33526
33527 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
33528
33529 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
33530 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
33531
33532 (TARGET_MANGLE_TYPE): Fix argument types.
33533
33534 (TARGET_IRA_COVER_CLASSES): Use prototype.
33535
33536 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
33537
33538 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
33539
33540 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
33541
33542 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
33543
33544 (TARGET_CALLEE_COPIES): Fix argument types.
33545
33546 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
33547
33548 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
33549
33550 (TARGET_FUNCTION_VALUE): Fix argument types.
33551
33552 (TARGET_RETURN_IN_MSB): Fix argument type.
33553
33554 (TARGET_RETURN_IN_MEMORY): Fix argument types.
33555
33556 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
33557
33558 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
33559
33560 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
33561 agree with return type.
33562
33563 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
33564
33565 2010-01-15 Jing Yu <jingyu@google.com>
33566
33567 PR rtl-optimization/42691
33568 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
33569 a pseudo to a constant and are merged, and adjust comments.
33570
33571 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
33572
33573 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
33574
33575 2010-01-15 Richard Guenther <rguenther@suse.de>
33576
33577 PR middle-end/42739
33578 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
33579 labels of computed or non-local gotos to the destination.
33580 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
33581 landing pad label is the first label.
33582
33583 2010-01-15 Richard Guenther <rguenther@suse.de>
33584
33585 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
33586
33587 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
33588
33589 PR target/42747
33590 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
33591 to allow generation of the xssqrtdp instruction on power7.
33592 (sqrtdf2_fpr): Ditto.
33593
33594 2010-01-14 Jakub Jelinek <jakub@redhat.com>
33595
33596 PR middle-end/42674
33597 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
33598 functions with noreturn attribute.
33599
33600 PR c++/42608
33601 * varasm.c (declare_weak): Add weak attribute to decl if it
33602 doesn't have one already.
33603 (assemble_external): Only add decls to weak_decls if they also
33604 have weak attribute.
33605
33606 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
33607
33608 * var-tracking.c (var_reg_delete): Don't delete the association
33609 between REGs and values or one-part variables if the register
33610 isn't clobbered.
33611
33612 2010-01-14 Jakub Jelinek <jakub@redhat.com>
33613
33614 PR debug/42657
33615 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
33616 because its first operand is a non-localized variable.
33617
33618 2010-01-14 Martin Jambor <mjambor@suse.cz>
33619
33620 PR tree-optimization/42706
33621 * tree-sra.c (encountered_recursive_call): New variable.
33622 (encountered_unchangable_recursive_call): Likewise.
33623 (sra_initialize): Initialize both new variables.
33624 (callsite_has_enough_arguments_p): New function.
33625 (scan_function): Call decl and flags check only for IPA-SRA, check
33626 whether there is a recursive call and whether it has enough arguments.
33627 (all_callers_have_enough_arguments_p): New function.
33628 (convert_callers): Look for recursive calls only when
33629 encountered_recursive_call is set.
33630 (ipa_early_sra): Bail out either if
33631 !all_callers_have_enough_arguments_p or
33632 encountered_unchangable_recursive_call.
33633
33634 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33635
33636 * sel-sched.c: Add 2010 to copyright years.
33637 * sel-sched-ir.c: Likewise.
33638 * sel-sched-ir.h: Likewise.
33639
33640 2010-01-14 Martin Jambor <mjambor@suse.cz>
33641
33642 PR tree-optimization/42714
33643 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
33644 constructors specially.
33645
33646 2010-01-14 Andi Kleen <ak@linux.intel.com>
33647
33648 * config/i386/drivers-i386.c (detect_caches_intel):
33649 Add l2sizekb parameter and fill in.
33650 (host_detect_local_cpu): Add l2sizekb, fill in.
33651 Add Atom small cache heuristic.
33652
33653 2010-01-14 Andi Kleen <ak@linux.intel.com>
33654
33655 * config/i386/drivers-i386.c (detect_caches_cpuid4):
33656 Add level3 parameter and fill in.
33657 (detect_caches_intel): Handle level3 cache.
33658
33659 2010-01-14 Andi Kleen <ak@linux.intel.com>
33660
33661 * config/i386/drivers-i386.c (host_detect_local_cpu):
33662 Fix core duo detection.
33663
33664 2010-01-14 Andi Kleen <ak@linux.intel.com>
33665
33666 * config/i386/drivers-i386.c (host_detect_local_cpu):
33667 Fix Atom detection.
33668
33669 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33670
33671 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
33672 (rs6000_variable_issue_1): this. Use...
33673 (rs6000_variable_issue): here. Reimplement. Print debug info.
33674
33675 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33676
33677 * sel-sched-ir.c (sel_restore_other_notes): Rename to
33678 sel_restore_notes. Update all callers. Call reemit_notes
33679 for all insns.
33680
33681 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33682
33683 PR rtl-optimization/42246
33684 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
33685 loops.
33686
33687 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33688
33689 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
33690 all successors is the same as number of successors in current region.
33691
33692 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33693
33694 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
33695 to rename is not separable. Otherwise check that its LHS is not NULL.
33696
33697 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33698
33699 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
33700
33701 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33702
33703 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
33704 available registers when failed to discover LHS register class.
33705 Fix indentation. Update comment.
33706
33707 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33708 Alexander Monakov <amonakov@ispras.ru>
33709
33710 PR rtl-optimization/42389
33711 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
33712 to can_issue_more.
33713 (advance_state_on_fence): Likewise.
33714 (sel_target_adjust_priority): Print debug output only when
33715 sched_verbose >= 4, not 2.
33716 (get_expr_cost): Do not issue all unique insns on the next cycle.
33717 (fill_insns): Initialize can_issue_more from the value saved
33718 with the fence.
33719 * sel-sched-ir.c (flist_add): New parameter issue_more.
33720 Init FENCE_ISSUE_MORE with it.
33721 (merge_fences): Likewise.
33722 (init_fences): Update call to flist_add.
33723 (add_to_fences, add_clean_fence_to_fences)
33724 (add_dirty_fence_to_fences): Likewise.
33725 (move_fence_to_fences): Update call to merge_fences.
33726 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
33727 sched groups.
33728 * sel-sched-ir.h (struct _fence): New field issue_more.
33729 (FENCE_ISSUE_MORE): New accessor macro.
33730
33731 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33732
33733 PR rtl-optimization/42388
33734 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
33735 that have no predecessors nor successors. Do not call move_bb_info
33736 for empty blocks outside of current region.
33737
33738 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33739
33740 PR rtl-optimization/42294
33741 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
33742 * sel-sched.c (move_exprs_to_boundary): Transitively add all
33743 originators' originators.
33744
33745 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33746
33747 PR rtl-optimization/39453
33748 PR rtl-optimization/42246
33749 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
33750 for pipelining_p.
33751 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
33752
33753 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33754 Alexander Monakov <amonakov@ispras.ru>
33755
33756 PR middle-end/42245
33757 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
33758 (maybe_tidy_empty_bb): ... here. Make static. Add new
33759 argument. Update all callers.
33760 (tidy_control_flow): ... and here. Recompute topological order
33761 of basic blocks in region if necessary.
33762 (sel_redirect_edge_and_branch): Change return type. Return true
33763 if topological order might have been invalidated.
33764 (purge_empty_blocks): Export and move from...
33765 * sel-sched.c (purge_empty_blocks): ... here.
33766 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
33767 (maybe_tidy_empty_bb): Delete prototype.
33768 (purge_empty_blocks): Declare.
33769
33770 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33771
33772 PR rtl-optimization/42249
33773 * sel-sched.c (try_replace_dest_reg): When chosen register
33774 and original register is the same, do not bail out early, but
33775 still check all original insns for validity of replacing destination
33776 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
33777 in this case.
33778
33779 2010-01-14 Jakub Jelinek <jakub@redhat.com>
33780
33781 PR c/42721
33782 Port from no-undefined-overflow branch:
33783 2009-03-09 Richard Guenther <rguenther@suse.de>
33784
33785 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
33786
33787 2010-01-14 Richard Guenther <rguenther@suse.de>
33788
33789 PR lto/42665
33790 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
33791
33792 2010-01-14 Ira Rosen <irar@il.ibm.com>
33793
33794 PR tree-optimization/42709
33795 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
33796 as scalar type in creation of constant vector operand.
33797
33798 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33799
33800 PR testsuite/42414
33801 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
33802 (check-parallel-%): Match `testsuite' directory component only
33803 at the end.
33804
33805 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
33806
33807 PR translation/39521
33808 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
33809 strings with _().
33810
33811 2010-01-13 Richard Guenther <rguenther@suse.de>
33812
33813 PR tree-optimization/42730
33814 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
33815 offset zero.
33816
33817 2010-01-13 Steve Ellcey <sje@cup.hp.com>
33818
33819 PR target/pr42542
33820 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
33821 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
33822 them signed.
33823
33824 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
33825
33826 * config/bfin/libgcc-bfin.ver: Regenerate based on current
33827 libgcc-std.ver. Add entries for ___smulsi3_highpart and
33828 ___umulsi3_highpart.
33829
33830 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
33831 rather than schedule_insns if the pass is enabled.
33832
33833 2010-01-13 Martin Jambor <mjambor@suse.cz>
33834
33835 PR tree-optimization/42704
33836 * tree-sra.c (sra_modify_assign): Do not delete assignments to
33837 SSA_NAMEs.
33838
33839 2010-01-13 Martin Jambor <mjambor@suse.cz>
33840
33841 PR tree-optimization/42703
33842 * tree-sra.c (analyze_access_subtree): Check that we can build a
33843 reference to the original data within the aggregate.
33844
33845 2010-01-13 Richard Guenther <rguenther@suse.de>
33846
33847 PR tree-optimization/42705
33848 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
33849
33850 2010-01-13 Richard Guenther <rguenther@suse.de>
33851
33852 PR middle-end/42716
33853 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
33854
33855 2010-01-13 Jakub Jelinek <jakub@redhat.com>
33856
33857 PR debug/41371
33858 * var-tracking.c (values_to_unmark): New variable.
33859 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
33860 values_to_unmark vector. Moved body to...
33861 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
33862 instead queue it into values_to_unmark vector.
33863 (vt_find_locations): Free values_to_unmark vector.
33864
33865 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
33866
33867 * config/s390/s390.c (override_options): Set
33868 default of max-pending-list-length to 256
33869
33870 2010-01-13 Richard Guenther <rguenther@suse.de>
33871
33872 PR lto/42678
33873 * tree-pass.h (PROP_gimple_lcx): New.
33874 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
33875 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
33876 before the final cleanup_eh.
33877 (dump_properties): Dump PROP_gimple_lcx.
33878 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
33879 (tree_lower_complex_O0): Remove.
33880 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
33881 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
33882 tree_lower_complex, schedule TODO_update_ssa.
33883 * lto-streamer-out.c (output_function): Stream the functions
33884 properties.
33885 * lto-streamer-in.c (input_function): Likewise.
33886 (lto_read_body): Do not override them here.
33887
33888 2010-01-12 Joseph Myers <joseph@codesourcery.com>
33889
33890 PR c/42708
33891 * c-typeck.c (build_c_cast): Fold value cast to union type before
33892 wrapping it in a CONSTRUCTOR.
33893
33894 2010-01-12 Jakub Jelinek <jakub@redhat.com>
33895
33896 PR rtl-optimization/42699
33897 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
33898 involved.
33899
33900 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33901
33902 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33903 SUBTARGET_WARN_UNUSED_SPEC): Move ...
33904 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33905 SUBTARGET_WARN_UNUSED_SPEC): ... here
33906 * config/mips/iris5.h (LIBGCC_SPEC): Define.
33907
33908 2010-01-12 Julian Brown <julian@codesourcery.com>
33909
33910 * config/arm/neon-schedgen.ml (Utils): Don't try to
33911 open missing module.
33912 (find_with_result): New.
33913
33914 2010-01-12 Jakub Jelinek <jakub@redhat.com>
33915
33916 PR debug/42662
33917 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
33918 sharing when canonicalizing ({lt,ge}u (plus a b) b).
33919
33920 PR tree-optimization/42645
33921 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
33922 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
33923 decl_map, set processing_debug_stmt to -1 and return name without
33924 any remapping.
33925
33926 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
33927
33928 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
33929 binutils version, and reword target configuration description.
33930
33931 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
33932
33933 * config/avr/avr.h (LINKER_NAME): Remove.
33934
33935 2010-01-11 Janis Johnson <janis187@us.ibm.com>
33936
33937 PR target/42416
33938 * config/rs6000/rs6000.c (rs6000_override_options): On targets
33939 that support VSX, warn for -mno-altivec if vsx is not disabled,
33940 and disable vsx.
33941
33942 2010-01-11 Joseph Myers <joseph@codesourcery.com>
33943 Shujing Zhao <pearly.zhao@oracle.com>
33944
33945 PR translation/42469
33946 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
33947 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
33948 character between option name and help text.
33949 * c.opt (imultilib): Likewise.
33950
33951 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
33952
33953 * lto-streamer-out.c (output_unreferenced_globals): Output static
33954 variables.
33955
33956 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
33957
33958 PR rtl-optimization/42621
33959 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
33960 optimizing for size.
33961 (duplicate_computed_gotos): Remove now-redundant check.
33962
33963 2010-01-10 Steve Ellcey <sje@cup.hp.com>
33964
33965 PR target/37454
33966 * configure.ac: Save and restore LDFLAGS and LIBS
33967 * configure: Regenerate.
33968
33969 2010-01-10 Richard Guenther <rguenther@suse.de>
33970
33971 PR middle-end/42667
33972 * builtins.c (fold_builtin_strlen): Add type argument and
33973 convert the resulting length to it.
33974 (fold_builtin_1): Adjust.
33975
33976 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33977
33978 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
33979 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
33980 1 insn.
33981 (num_insns_constant_wide): Adjust for that change.
33982
33983 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33984
33985 PR debug/42631
33986 * web.c (union_defs): Add used argument, to combine uses of
33987 uninitialized regs.
33988 (entry_register): Adjust type and tests of used argument.
33989 (web_main): Widen used for new use. Pass it to union_defs.
33990 * df.h (union_defs): Adjust prototype.
33991
33992 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33993
33994 PR debug/42630
33995 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
33996 uses in new incoming argument. Free body.
33997 (reset_debug_uses_in_loop): New.
33998 (analyze_insn_to_expand_var): Call the latter if the former found
33999 anything. Fix whitespace. Reject invalid dest overlaps before
34000 going through all insns in the loop.
34001
34002 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
34003
34004 PR debug/42629
34005 * haifa-sched.c (dying_use_p): Debug insns don't count.
34006
34007 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
34008
34009 PR middle-end/42363
34010 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
34011 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
34012 (verify_gimple_call): Reject LHS in noreturn calls.
34013
34014 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
34015
34016 PR debug/42604
34017 PR debug/42395
34018 * tree-vect-loop-manip.c (adjust_info): New type.
34019 (adjust_vec): New pointer to vector.
34020 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
34021 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
34022 (slpeel_update_phis_for_duplicate_loop): Use them.
34023 (slpeel_update_phi_nodes_for_guard1): Likewise.
34024 (slpeel_update_phi_nodes_for_guard2): Likewise.
34025 (slpeel_tree_peel_loop_to_edge): Likewise.
34026 (vect_update_ivs_after_vectorizer): Likewise.
34027
34028 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
34029
34030 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
34031 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
34032
34033 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
34034
34035 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
34036 bogus uninitialized warning.
34037
34038 2010-01-09 Richard Guenther <rguenther@suse.de>
34039
34040 PR middle-end/42512
34041 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
34042 the evolution is compatible with the initial condition.
34043
34044 2010-01-09 Jakub Jelinek <jakub@redhat.com>
34045
34046 * gcc.c (process_command): Update copyright notice dates.
34047 * gcov.c (print_version): Likewise.
34048 * gcov-dump.c (print_version): Likewise.
34049 * mips-tfile.c (main): Likewise.
34050 * mips-tdump.c (main): Likewise.
34051
34052 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
34053
34054 PR target/41885
34055 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
34056 (rotlhi3): Delete.
34057 (rotlhi3_8): Delete.
34058 (rotlsi3): Delete.
34059 (rotlsi3_8): Delete.
34060 (rotlsi3_16): Delete.
34061 (rotlsi3_24): Delete.
34062 (rotl<mode>3): New.
34063 (*rotw<mode>3): New.
34064 (*rotb<mode>3): New.
34065 * config/avr/avr.c (avr_rotate_bytes): New function.
34066 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
34067
34068 2010-01-08 Steve Ellcey <sje@cup.hp.com>
34069
34070 PR target/37454
34071 * configure.ac: Modify -rdynamic check.
34072 * configure: Regenerate.
34073
34074 2010-01-08 DJ Delorie <dj@redhat.com>
34075
34076 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
34077 register popping order.
34078
34079 2010-01-08 Richard Guenther <rguenther@suse.de>
34080
34081 PR lto/42528
34082 * c.opt (fsigned-char): Also let LTO handle this option.
34083 (funsigned-char): Likewise.
34084
34085 2010-01-07 Richard Guenther <rguenther@suse.de>
34086
34087 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
34088 (gimple_op): Likewise.
34089 (gimple_op_ptr): Likewise.
34090 (gimple_assign_set_lhs): Remove gcc_assert.
34091 (gimple_assign_set_rhs1): Likewise.
34092 (gimple_assign_set_rhs2): Likewise.
34093 (gimple_call_set_lhs): Likewise.
34094 (gimple_call_set_fn): Likewise.
34095 (gimple_call_set_fndecl): Likewise.
34096 (gimple_call_fndecl): Likewise.
34097 (gimple_call_return_type): Likewise.
34098 (gimple_call_set_chain): Likewise.
34099 (gimple_call_num_args): Likewise.
34100 (gimple_call_set_arg): Likewise.
34101 (gimple_cond_set_code): Likewise.
34102 (gimple_cond_set_lhs): Likewise.
34103 (gimple_cond_set_rhs): Likewise.
34104 (gimple_cond_set_true_label): Likewise.
34105 (gimple_cond_set_false_label): Likewise.
34106 (gimple_label_set_label): Likewise.
34107 (gimple_goto_set_dest): Likewise.
34108 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
34109 (gimple_debug_bind_get_value): Likewise.
34110 (gimple_debug_bind_get_value_ptr): Likewise.
34111 (gimple_debug_bind_set_var): Likewise.
34112 (gimple_debug_bind_set_value): Likewise.
34113 (gimple_debug_bind_reset_value): Likewise.
34114 (gimple_debug_bind_has_value_p): Likewise.
34115 (gimple_return_retval_ptr): Remove gcc_assert.
34116 (gimple_return_retval): Likewise.
34117 (gimple_return_set_retval): Likewise.
34118 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
34119 (safe_referenced_var_iterator): Remove.
34120 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
34121 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
34122 (fill_referenced_var_vec): Remove.
34123 (first_readonly_imm_use): Remove redundant gcc_assert.
34124 (phi_arg_index_from_use): Combine gcc_asserts.
34125 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
34126 (first_imm_use_stmt): Remove redundant gcc_assert.
34127 * tree-cfg.c (verify_gimple_call): Verify function and chain
34128 operands. Verify arguments.
34129 (verify_types_in_gimple_stmt): Verify condition code and labels.
34130
34131 2010-01-07 Richard Guenther <rguenther@suse.de>
34132
34133 PR tree-optimization/42641
34134 * sese.c (rename_map_elt_info): Use the SSA name version, do
34135 not hash pointers.
34136
34137 2010-01-07 Jakub Jelinek <jakub@redhat.com>
34138
34139 PR tree-optimization/42625
34140 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
34141 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
34142
34143 2010-01-07 Duncan Sands <baldrick@free.fr>
34144
34145 * Makefile.in (PLUGIN_HEADERS): Add version.h.
34146
34147 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
34148
34149 PR target/42511
34150 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
34151 note itself is not function_invariant_p.
34152
34153 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
34154
34155 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
34156 Do not add the DF_NOTE problem.
34157 * store-motion.c (execute_rtl_store_motion): Likewise.
34158
34159 2010-01-07 Martin Jambor <mjambor@suse.cz>
34160
34161 PR tree-optimization/42157
34162 * tree-sra.c (compare_access_positions): Stabilize sort if both
34163 accesses have integer types, return zero immediately if they are the
34164 same.
34165
34166 2010-01-06 Richard Henderson <rth@redhat.com>
34167
34168 PR middle-end/41883
34169 * haifa-sched.c (add_to_note_list): Merge into ...
34170 (concat_note_lists): ... here, and ...
34171 (unlink_other_notes, rm_other_notes): Merge into...
34172 (remove_notes): ... here. Create REG_SAVE_NOTEs for
34173 NOTE_INSN_EPILOGUE_BEG.
34174
34175 2010-01-06 Richard Guenther <rguenther@suse.de>
34176
34177 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
34178 not inline regular functions into always-inline functions.
34179
34180 2010-01-06 Nick Clifton <nickc@redhat.com>
34181
34182 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
34183 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
34184 used together.
34185 (OVERRIDE_OPTIONS): Delete.
34186 (OPTIMIZATION_OPTIONS): Define.
34187 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
34188 * config/rx/rx.c (rx_handle_option): Issue an error message if
34189 -mcpu=rx200 and -fpu are used together.
34190 (rx_set_optimization_options): New function. Issue an error
34191 message if an optimization attribute attempts to reset the FPU/
34192 math optimization pairing.
34193 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
34194 * config/rx/rx.opt: Set the default to 32-bit doubles.
34195 * config/rx/t-rx: Add multilibs for -nofpu option.
34196 * doc/invoke.texi: Update documentation of RX options.
34197
34198 2010-01-06 Richard Guenther <rguenther@suse.de>
34199
34200 * tree-ssa-pre.c (name_to_id): New global.
34201 (alloc_expression_id): Simplify SSA name handling.
34202 (lookup_expression_id): Likewise.
34203 (init_pre): Zero name_to_id.
34204 (fini_pre): Free it.
34205
34206 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
34207
34208 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
34209
34210 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
34211
34212 PR target/42542
34213 * config/i386/sse.md (smaxv2di3): New.
34214 (umaxv2di3): Likewise.
34215 (sminv2di3): Likewise.
34216 (uminv2di3): Likewise.
34217
34218 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
34219
34220 PR target/42564
34221 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
34222 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
34223 (legitimize_tls_address): Likewise.
34224 (sparc_tls_referenced_p): Likewise.
34225 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
34226 and adjust calls to legitimize_pic_address.
34227 (legitimate_constant_p) Use sparc_tls_referenced_p.
34228 (legitimate_pic_operand_p): Likewise.
34229 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
34230 (sparc_tls_symbol_ref_1): Delete.
34231 (sparc_tls_referenced_p): Make static, recognize specific patterns.
34232 (legitimize_tls_address): Make static, handle CONST patterns.
34233 (legitimize_pic_address): Make static, remove unused parameter and
34234 adjust recursive calls.
34235 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
34236 and adjust call to legitimize_pic_address.
34237 (sparc_output_mi_thunk): Likewise.
34238
34239 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
34240 H.J. Lu <hongjiu.lu@intel.com>
34241
34242 PR target/42542
34243 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
34244 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
34245 operands to make them signed.
34246
34247 Revert:
34248 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
34249
34250 PR target/42542
34251 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
34252 GTU to GT for V4SI and V2DI.
34253
34254 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
34255 (umin<mode>3): Removed.
34256 (uminv8hi3): New.
34257 (uminv4si3): Likewise.
34258
34259 2010-01-05 Martin Jambor <mjambor@suse.cz>
34260
34261 PR tree-optimization/42462
34262 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
34263 current_function_decl to helper functions and macros.
34264
34265 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34266
34267 PR bootstrap/41771
34268 * flags.h: Don't include real.h.
34269 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
34270 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
34271 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
34272 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
34273 * dominance.c: Update copyright.
34274 * gimple.c (walk_gimple_op): Remove inline.
34275 * tree-ssa-reassoc.c: Include real.h.
34276 * Makefile.in (FLAGS_H): Remove $(REAL_H).
34277 (tree-ssa-reassoc.o): Depend on $(REAL_H).
34278
34279 2010-01-05 Nick Clifton <nickc@redhat.com>
34280
34281 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
34282 register to push into the stack frame when the accumulator has to
34283 be saved during interrupts.
34284
34285 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
34286
34287 * doc/invoke.texi: Remove the documentation about option
34288 -Wunreachable-code.
34289 * common.opt (Wunreachable-code): Preserved for backward
34290 compatibility.
34291 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
34292 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
34293 the backward compatibility flag section.
34294
34295 2010-01-05 Richard Guenther <rguenther@suse.de>
34296
34297 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
34298
34299 2010-01-05 Jakub Jelinek <jakub@redhat.com>
34300
34301 PR other/42611
34302 * cfgexpand.c (expand_one_var): Diagnose too large variables.
34303
34304 PR tree-optimization/42508
34305 * tree-sra.c (convert_callers): Check for recursive call
34306 by comparing cgraph nodes instead of decls.
34307 (modify_function): Call ipa_modify_formal_parameters also
34308 on all same_body aliases.
34309
34310 * cgraphunit.c (cgraph_materialize_all_clones): Compare
34311 cgraph nodes when checking for same_body aliases.
34312
34313 2010-01-05 Richard Guenther <rguenther@suse.de>
34314
34315 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
34316 allocation and lookup.
34317 (get_or_alloc_expr_for_constant): Likewise.
34318 (phi_translate): Sink allocation.
34319
34320 2010-01-04 Richard Guenther <rguenther@suse.de>
34321
34322 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
34323 a new entry only if needed.
34324 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
34325 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
34326 hashtable lookup.
34327 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
34328 the result array.
34329 (phi_translate): Handle CONSTANTs early.
34330
34331 2010-01-04 Martin Jambor <mjambor@suse.cz>
34332
34333 PR tree-optimization/42398
34334 * tree-sra.c (struct access): Removed flag grp_different_types.
34335 (dump_access): Do not dump the removed flag.
34336 (sort_and_splice_var_accesses): Do not set the removed flag.
34337 (sra_modify_expr): Check for type compatibility directly.
34338
34339 2010-01-04 Martin Jambor <mjambor@suse.cz>
34340
34341 PR tree-optimization/42366
34342 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
34343 edges with variable number of parameters.
34344 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
34345 flag instead of asserting it.
34346 (ipa_read_node_info): Read uses_analysis_done flag.
34347
34348 2010-01-04 Richard Guenther <rguenther@suse.de>
34349
34350 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
34351 iterative_hash_* as intended.
34352 (vn_reference_compute_hash): Likewise. Simplify hashing
34353 SSA names.
34354 (vn_reference_lookup_2): Likewise.
34355 (vn_nary_op_compute_hash): Likewise.
34356 (vn_phi_compute_hash): Likewise.
34357 (expressions_equal_p): Remove strange code.
34358 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
34359 (pre_expr_hash): Likewise. Simplify hashing SSA names.
34360 (bitmap_insert_into_set_1): Take value-id as parameter.
34361 (add_to_value): Pass it.
34362 (bitmap_insert_into_set): Likewise.
34363 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
34364
34365 2010-01-04 Jakub Jelinek <jakub@redhat.com>
34366
34367 PR driver/42442
34368 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
34369 (do_self_spec): For switches with SWITCH_IGNORE set set also
34370 SWITCH_IGNORE_PERMANENTLY.
34371 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
34372 of SWITCH_IGNORE.
34373
34374 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
34375
34376 * lto-streamer-out.c (output_unreferenced_globals): Output the full
34377 tree of an unreferenced global var.
34378
34379 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
34380
34381 PR target/42542
34382 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
34383 GTU to GT for V4SI and V2DI.
34384
34385 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
34386 (umin<mode>3): Removed.
34387 (uminv8hi3): New.
34388 (uminv4si3): Likewise.
34389
34390 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
34391
34392 PR lto/42581
34393 * collect2.c (main): Turn on trace in collect2 if -v is passed
34394 to gcc with LTO.
34395
34396 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
34397
34398 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
34399 description of expression operand.
34400
34401 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
34402
34403 * configure.ac: Add install-html to target_list for Make-hooks.
34404 * configure: Regenerate.
34405 * fortran/Make-lang.in (F95_HTMLFILES): New.
34406 (fortran.html): Use it.
34407 (fortran.install-html): New.
34408 * Makefile.in (install-html): Add lang.install-html.
34409 * java/Make-lang.in (JAVA_HTMLFILES): New.
34410 (java.html): Use it.
34411 (java.install-html): New.
34412 * objc/Make-lang.in (objc.install-html): New.
34413 * objcp/Make-lang.in (obj-c++.install-html): New.
34414 * cp/Make-lang.in (c++.install-html): New.
34415 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
34416 * lto/Make-lang.in (lto.install-html): New.
34417
34418 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
34419
34420 PR lto/42520
34421 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
34422
34423 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
34424
34425 PR rtl-optimization/41862
34426 * store-motion.c (store_killed_in_insn, compute_store_table,
34427 remove_reachable_equiv_notes, replace_store_insn,
34428 build_store_vectors): Ignore all DEBUG_INSNs.
34429
34430 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
34431
34432 PR lto/41564
34433 * common.opt: Add dumpdir.
34434
34435 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
34436 isn't specified.
34437 (option_map): Add --dumpdir.
34438
34439 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
34440
34441 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
34442
34443 * opts.c (decode_options): Try dump_dir_name first if
34444 dump_base_name isn't an absolute path.
34445 (common_handle_option): Handle OPT_dumpdir.
34446
34447 * toplev.c (dump_dir_name): New.
34448 (print_switch_values): Also ignore -dumpdir.
34449
34450 * toplev.h (dump_dir_name): New.
34451
34452 2010-01-03 Richard Guenther <rguenther@suse.de>
34453
34454 PR tree-optimization/42589
34455 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
34456 double-word expansion of bswap32.
34457
34458 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
34459
34460 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
34461 with BLOCK_FOR_INSN.
34462 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
34463 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
34464 noce_process_if_block): Likewise.
34465 * gcse.c (compute_local_properties, insert_expr_in_table,
34466 insert_set_in_table, canon_list_insert, find_avail_set,
34467 pre_insert_copy_insn): Likewise.
34468
34469 * basic-block.h (BLOCK_NUM): Move from here...
34470 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
34471
34472 2010-01-03 Richard Guenther <rguenther@suse.de>
34473
34474 PR tree-optimization/42438
34475 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
34476 contains_may_not_return_call flag.
34477 (BB_MAY_NOTRETURN): New.
34478 (valid_in_sets): Trapping nary operations are not valid
34479 in blocks that may not return.
34480 (insert_into_preds_of_block): Remove check for trapping expressions.
34481 (compute_avail): Compute also BB_MAY_NOTRETURN.
34482
34483 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
34484
34485 * doc/invoke.texi: Add 2010 to copyright years.
34486
34487 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
34488
34489 * config/sparc/sparc.c: Fix formatting nits.
34490
34491 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
34492 Alexander Monakov <amonakov@ispras.ru>
34493
34494 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
34495
34496 2010-01-02 Richard Guenther <rguenther@suse.de>
34497
34498 PR middle-end/42577
34499 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
34500 (simplify_switch_using_ranges): Mark to be removed edges
34501 as non-executable.
34502
34503 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34504
34505 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
34506
34507 * collect2.c (scan_libraries): Add missing argument in call to
34508 scan_prog_file.
34509
34510 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
34511
34512 PR target/42448
34513 * config/alpha/predicates.md (aligned_memory_operand): Return false
34514 for CQImode.
34515 (unaligned_memory_operand): Return true for CQImode.
34516 * config/alpha/alpha.c (get_aligned_mem): Assert that location
34517 doesn not cross aligned SImode word boundary.
34518
34519 2010-01-02 Anatoly Sokolov <aesok@post.ru>
34520
34521 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
34522 Remove.
34523 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
34524 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
34525
34526 2010-01-02 Richard Guenther <rguenther@suse.de>
34527
34528 PR lto/41597
34529 * toplev.c (compile_file): Emit LTO marker properly. Change
34530 it to __gnu_lto_v1.
34531 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
34532
34533 2010-01-01 Richard Guenther <rguenther@suse.de>
34534
34535 PR debug/42455
34536 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
34537
34538 2010-01-01 Richard Guenther <rguenther@suse.de>
34539
34540 PR c/42570
34541 * c-decl.c (grokdeclarator): For zero-size arrays force
34542 structural equality checks as layout_type does.
34543
34544 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
34545
34546 * builtins.c: Update copyright to 2010.
34547
34548 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
34549
34550 PR lto/42531
34551 * lto-streamer-out.c (produce_asm): Revert the last change.
34552 (copy_function): Likewise.
34553
34554 * lto-streamer.c (lto_get_section_name): Skip any leading
34555 asterisk in name.
34556
34557 2010-01-01 Richard Guenther <rguenther@suse.de>
34558
34559 PR middle-end/42559
34560 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
34561 for LABEL_DECLs.
34562
34563 \f
34564 Copyright (C) 2010 Free Software Foundation, Inc.
34565
34566 Copying and distribution of this file, with or without modification,
34567 are permitted in any medium without royalty provided the copyright
34568 notice and this notice are preserved.