OSDN Git Service

Add PR marker to ChangeLog entry:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-11-10  Joern Rennecke  <amylaar@spamcop.net>
2
3         PR target/44760
4         * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
5         (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
6         GP_REG_OR_PSEUDO_STRICT_P.
7         * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
8         unexpected alternative.
9         (*movsf_internal): Likewise.
10         (indirect_jump): Replace call to non-existant function with call to
11         internal_error.
12         (tablejump): Likewise.
13         * config/iq2000/iq2000.c: Include df.h .
14         (iq2000_function_arg_advance): Use CONST_CAST2.
15         (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
16         (iq2000_can_eliminate): Call leaf_function_p instead of testing for
17         a non-zero function address.
18         (iq2000_initial_elimination_offset): Add gcc_unreachable for
19         unexpected value of FROM.
20         (symbolic_expression_p): Delete.
21         (iq2000_function_value): Constify func.
22         (expand_one_builtin): Use expand_normal.
23         (iq2000_print_operand): Don't print VALUE if calculating it failed.
24
25         PR rtl-optimization/44764
26         * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
27
28 2010-11-10  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
29
30         PR/46268
31         * doc/gty.texi (GTY Options): Clarify that variable_size produces
32         allocators taking size in bytes, compare with length option.  Add
33         size calculation example.
34         (Invoking the garbage collector): Ensure that sentences are
35         followed by two spaces.  Describe that pointer fields must be
36         initialized at ggc_collect call.
37         (Troubleshooting): New section.
38
39 2010-11-09   Jan Hubicka  <jh@suse.cz>
40
41         PR tree-optimization/40436
42         * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
43         * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
44         normal instructions; be sure bultin is not implemented in this file;
45         compute non-zero return cost.
46         (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
47         * tree-inline.h (eni_weights_d): Add return cost.
48
49 2010-11-09  Joseph Myers  <joseph@codesourcery.com>
50
51         * c-parser.c (c_parser_struct_declaration): Handle declaration
52         specifiers followed by CPP_CLOSE_BRACE.
53
54 2010-11-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
55
56         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
57         split occurs before reload, and we allocate memory at the time of
58         the split, not during expansion.  Add attributes.
59         (floatsi<mode>2_lfiwax_mem): Ditto.
60         (floatunssi<mode>2_lfiwzx): Ditto.
61         (floatunssi<mode>2_lfiwzx_mem): Ditto.
62         (floatsidf2): Ditto.
63         (floatunssisf2): Ditto.
64         (floatunssidf2): Ditto.
65         (fix_trunc<mode>si2): Ditto.
66         (fix_trunc<mode>si2_stfiwx): Ditto.
67         (fix_trunc<mode>si2_internal): Ditto.
68         (fix_trunc<mode>si2): Ditto.
69         (fix_trunc<mode>di2): Ditto.
70         (fixuns_trunc<mode>si2_stfiwx): Ditto.
71         (floatsisf2): Ditto.
72         (floatdidf2_mem): Ditto.
73         (floatunsdidf2_mem): Ditto.
74         (floatunsdidf2): Ditto.
75         (floatdisf2_internal1): Ditto.
76         (floatdisf2_mem): Ditto.
77         (floatunsdisf2_mem): Ditto.
78         (floatsi<mode>2_lfiwax_mem2): Delete.
79         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
80         (fix_trunc<mode>si2_mem): Ditto.
81         (fixuns_trunc<mode>si2_mem): Ditto.
82         (round32<mode>2_fprs): New combiner insn to combine (double)(int)
83         type operations to reduce copying the values to multiple memory
84         slots.
85         (roundu32<mode>2_fprs): Ditto.
86
87         * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
88         PRE_INC, PRE_DEC, PRE_MODIFY.
89         (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
90
91         * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
92         Delete prototype.
93
94 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
95
96         PR target/43808
97         * cfgexpand.c (partition_stack_vars): Call
98         update_alias_info_with_stack_vars unconditionally.
99         (update_alias_info_with_stack_vars): Allow unused
100         unreferenced vars when not optimizing.
101
102 2010-11-09  Sebastian Pop  <sebastian.pop@amd.com>
103
104         PR tree-optimization/46036
105         * tree-if-conv.c (predicate_bbs): Call unshare_expr before
106         add_to_dst_predicate_list.
107
108 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
109
110         PR debug/46171
111         * df-problems.c (struct dead_debug_use, struct dead_debug): Move
112         earlier.
113         (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
114         argument, call dead_debug_reset when adding REG_UNUSED note.
115         (dead_debug_reset): New function.
116         (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
117         df_create_unused_note callers.
118
119 2010-11-09  Anatoly Sokolov  <aesok@post.ru>
120
121         * config/fr30/fr30.c: Include "df.h".
122
123 2010-11-09  Richard Guenther  <rguenther@suse.de>
124
125         PR tree-optimization/46355
126         * tree-loop-distribution.c (tree_loop_distribution): Do not
127         distribute loops without a single exit.
128
129 2010-11-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
130
131         PR rtl-optimization/46237
132         * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
133         saved hard regs if they might get partially clobbered.
134
135 2010-11-09  Paul Koning  <ni1d@arrl.net>
136
137         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for
138         decrement. 
139
140 2010-11-09  Richard Guenther  <rguenther@suse.de>
141
142         PR tree-optimization/46177
143         * tree-loop-distribution.c (prop_phis): Remove.
144         (generate_builtin): Re-use the old loop exit edge to avoid
145         needing to update PHI nodes.
146
147 2010-11-09  Joern Rennecke  <amylaar@spamcop.net>
148
149         * ix86_expand_split_stack_prologue (args_size): Change type to
150         unsigned HOST_WIDE_INT.
151
152         PR target/44755
153         * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
154         * config/t-pnt16-warn: New file.
155         * config/picochip/picochip.c (picochip_emit_stack_allocate):
156         Use add_reg_note.
157         (picochip_emit_save_register): Likewise.
158         (picochip_emit_restore_register): Remove variable insn.
159         (picochip_legitimize_address): Don't use C++ style comments.
160         (picochip_legitimize_reload_address): Likewise.
161         (reorder_var_tracking_notes): Remove variable vliw_start.
162         (picochip_reorg): Cast first arguemnt to emit_note_after to
163         enum insn_note.
164         (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
165         (picochip_expand_builtin_3op): Likewise.
166         (picochip_expand_builtin_2opvoid): Likewise.
167         (picochip_expand_array_get, picochip_expand_array_put): Likewise.
168         (picochip_expand_array_testport): Likewise.
169         (picochip_init_builtins): Remove unused variables.
170         * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
171         to unsigned long, and output it as such.
172         (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
173         * config/picochip/picochip.md (movhicc): Remove nonsense statement.
174         (schedType): Cast result of picochip_schedule_type to
175         enum attr_schedType.
176
177         PR target/44759
178         * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
179         conditional to type of S.
180         (mn10300_function_arg): Remove unused variable align.
181         (mn10300_arg_partial_bytes): Likewise.
182         * config/mn10300/mn10300.md (attribute cpu): Cast value to
183         enum attr_cpu.
184
185 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
186
187         PR bootstrap/46392
188         * gengtype-parse.c (type): Call get_input_file_name to get
189         file name.
190
191 2010-11-09  Eric Botcazou  <ebotcazou@adacore.com>
192
193         * tree.h (contains_placeholder_p): Fix comment.
194         (type_contains_placeholder_p): Adjust comment.
195         * tree.c (contains_placeholder_p): Fix comment.
196         (type_contains_placeholder_1): Do not recurse on pointed-to types and
197         adjust comment.
198         (type_contains_placeholder_p): Add comment.
199
200 2010-11-09  Paul Koning  <ni1d@arrl.net>
201
202         * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
203         output of byte values.
204
205 2010-11-09  Jakub Jelinek  <jakub@redhat.com>
206
207         PR middle-end/46360
208         * tree-ssa-propagate.c (update_call_from_tree): Fix for use
209         not in SSA mode.
210
211 2010-11-09  Richard Guenther  <rguenther@suse.de>
212
213         PR middle-end/46221
214         * varasm.c (compute_visible_aliases): New function.
215         (remove_unreachable_alias_pairs): Aliases make a target available
216         even though we reclaimed the cgraph node.
217         (finish_aliases_1): Likewise.
218         * Makefile.in (varasm.o): Add pointer-set.h dependency.
219
220 2010-11-09  Nick Clifton  <nickc@redhat.com>
221
222         * config/mn10300/mn10300-modes.def: New file.
223
224 2010-11-09  Basile Starynkevitch  <basile@starynkevitch.net>
225             Jeremie Salvucci  <jeremie.salvucci@free.fr>
226
227         * gengtype.c (get_output_file_name): Declaration moved to
228         gengtype.h.
229         (plugin_files, get_file_basename, get_file_realbasename)
230         (get_file_langdir, error_at_line, gt_files, this_file)
231         (system_h_file, read_input_list, create_field_all)
232         (get_file_srcdir_relative_path, get_file_basename)
233         (get_file_langdir, get_file_gtfilename)
234         (get_output_file_with_visibility, get_output_file_name)
235         (struct flist, put_mangled_filename, walk_type)
236         (put_mangled_filename, finish_root_table, write_roots): Use
237         input_file-s.
238         (lang_dir_names, num_lang_dirs): Remove static.
239         (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
240         (main): Use input_file-s.
241
242         * gengtype.h: (struct input_file_st, input_file): New type.
243         (struct fileloc): Use it.
244         (gt_files, num_gt_files, this_file, system_h_file)
245         (input_file_by_name, get_file_srcdir_relative_path): Use
246         input_file.
247         (get_input_file_name): New function.
248         (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
249         use input_file.
250         (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
251         (get_output_file_name): Ditto.
252
253         * gengtype-lex.l (yybegin): Use input_file.
254
255         * gengtype-parse.c (parse_error): Use input_file.
256
257 2010-11-08  Xinliang David Li  <davidxl@google.com>
258
259         PR tree-optimization/46316
260         * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
261         * double-int.h (double_int_mul_with_sign): New function.
262         * double-int.c (double_int_mul_with_sign): New function.
263
264 2010-11-08  Paul Koning  <ni1d@arrl.net>
265
266         * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
267
268 2010-11-08  Paul Koning  <ni1d@arrl.net>
269
270         * config/pdp11/pdp11.md (negsi2): Fix wrong code.
271
272 2010-11-08  Paul Koning  <ni1d@arrl.net>
273
274         * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
275         to 8 bits.
276
277 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
278
279         PR target/46378
280         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
281         turn on ISA 2.04 rounding instructions for power5.
282
283         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
284         not ISA 2.02.
285
286         PR target/45585
287         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
288         in FPR registers.
289         (movdi_low_st): Ditto.
290
291 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
292             Richard Henderson  <rth@redhat.com>
293
294         PR target/44758
295         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
296         (attribute acc_group): Cast value to enum attr_acc_group.
297         (*movdi_nodouble+6): Use gen_int_mode.
298         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
299         if RTX_CODE is defined or not.
300         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
301         struct frv_io.
302         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
303         (frv_frame_access, frv_expand_prologue): Remove unused variables.
304         (frv_expand_block_clear): Likewise.
305         (frv_trampoline_init): Use LCT_NORMAL.
306         (struct frv_packet_group): New struct, broken out of type of
307         frv_packet.
308         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
309         use cast in loop counter increment.
310         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
311         assigning to io->type.
312         (bdesc_set): Use rtx_code UNKNOWN in initializer.
313         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
314         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
315         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
316         (frv_read_argument): Use expand_normal.
317
318         PR target/44757
319         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
320         lm32_legitimate_constant_p.
321         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
322         * config/lm32/lm32.c (gen_int_relational): Make new block for
323         LE / LT / LEU / LTU case.  Declare variables at start of block.
324         (lm32_block_move_inline): Use XALLOCAVEC.
325
326 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
327
328         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning
329         message.
330
331 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
332
333         * gengtype (get_output_file_for_structure): Ensure type is union
334         or struct.
335         (write_splay_tree_allocator_def): Use
336         get_output_file_with_visibility.
337
338 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
339
340         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
341         to defined values in case of an error.
342         (s390_option_override): Skip further processing if the -march
343         parameter wasn't recognized.
344
345 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
346
347         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
348         assert that REG is a hard register number before using it as an index.
349
350         PR bootstrap/46358
351         * config/i386/i386.c (ix86_expand_split_stack_prologue):
352         Avoid warnings when HOST_WIDE_INT is 32 bit.
353
354 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
355
356         PR target/46208
357         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
358         (sparc_promote_prototypes): Likewise.
359         (sparc_promote_function_mode): Promote in 32-bit mode as well.
360         (sparc_return_in_memory): Remove superfluous parentheses.
361         (sparc_struct_value_rtx): Fix long lines.
362         (sparc_function_value_1): Promote in 32-bit mode as well.
363
364 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
365
366         PR rtl-optimization/45352
367         * sel-sched.c (find_best_expr): Do not set pneed_stall when
368         the variable_issue hook is not implemented.
369         (fill_insns): Remove dead variable stall_iterations.
370         (init_seqno_1): Force EBB start for resetting sched cycles on any
371         successor blocks of the rescheduled region.
372         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
373         (reset_sched_cycles_in_current_ebb): Add debug printing.
374         New variable issued_insns.  Advance state when we have issued
375         issue_rate insns.
376
377 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
378
379         * gengtype (main): Get here's position using POS_HERE macro for
380         do*typedef calls.
381
382 2010-11-07  Ian Lance Taylor  <iant@google.com>
383
384         PR target/46089
385         * config/i386/i386.c (split_stack_fn_large): New static variable.
386         (ix86_expand_split_stack_prologue): Handle large model.
387
388 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
389
390         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
391         all possible addressing modes.
392
393 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
394
395         PR tree-optimization/46346
396         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
397
398 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
399
400         * config/mips/mips.c: Revert previous patch.
401         * config/mips/mips.md: Likewise.
402
403 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
404
405         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
406         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
407         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
408         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
409         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
410         to use FMA.
411         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
412         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
413         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
414         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
415
416 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
417
418         PR c/43384
419         * c-decl.c (lookup_label): Labels can only be referenced in a
420         function's scope.
421         (store_parm_decls_oldstyle): Skip erroneous parameters.
422
423 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
424
425         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
426         LIBCALL_VALUE): Remove macros.
427         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
428         TARGET_FUNCTION_VALUE_REGNO_P): Define.
429         (fr30_function_value_regno_p, fr30_function_value,
430         fr30_libcall_value): New functions.
431
432 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
433
434         PR middle-end/46314
435         * target.def (generate_internal_label): New asm_out hook.
436         * output.h (default_generate_internal_label): Declare.
437         * varasm.c (default_generate_internal_label): Define.
438
439 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
440
441         PR target/44981
442         * doc/extend.tex (format): Document NSString extension.
443         (format_arg): Likewise.
444         (Darwin Format Checks): New section.
445         * doc/tm.texi: Document string object hooks (generated).
446         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
447         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
448         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
449         * target.def (objc_construct_string_object): Rename, amend
450         documentation.
451         (string_object_ref_type_p): New hook.
452         (check_string_object_format_arg): New hook.
453         * c-parser.c (c_parser_attributes): Allow objective-c class names as
454         attribute identifiers.
455         * config/darwin-c.c (darwin_cfstring_ref_p): New.
456         (darwin_check_cfstring_format_arg): New.
457         (darwin_additional_format_types): New.
458         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
459         (darwin_check_cfstring_format_arg): New.
460         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
461         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
462         (TARGET_N_FORMAT_TYPES): New.
463         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
464
465 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
466             Pascal Obry  <obry@adacore.com>
467
468         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
469         in 64-bit mode and 17 otherwise.
470
471 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
472
473         PR debug/45939
474         * var-tracking.c (emit_note_insn_var_location): Make sure that
475         call related var location notes come before the normal ones.
476
477 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
478
479         PR target/46326
480         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
481         in the last change.
482
483 2010-11-05  Ian Lance Taylor  <iant@google.com>
484
485         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
486
487 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
488
489         PR c/44772
490         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
491         pointer_set_contains if DECL_NAME is NULL.
492
493 2010-11-05  Ian Lance Taylor  <iant@google.com>
494
495         PR target/46084
496         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
497         request enough additional space for alignment, and force alignment.
498
499 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
500
501         * config/i386/i386.c (legitimate_pic_address_disp_p):
502         Handle UNSPEC_PCREL.
503         (ix86_legitimate_address_p): Likewise.
504         (legitimize_pic_address): Likewise.
505         (output_pic_addr_const): Likewise.
506         (ix86_delegitimize_address): Likewise.
507         (ix86_find_base_term): Likewise.
508         (memory_address_length): Likewise.
509         (x86_output_mi_thunk): Handle special case x64
510         for non local binding.
511         * config/i386/i386.md (UNSPEC_PCREL): New.
512         * config/i386/winnt.c (i386_pe_binds_local_p):
513         Allow weak symbol for x64 windows with non-local binding.
514
515 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
516
517         PR target/45670
518         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
519         instead of EXPAND_NORMAL for base expansion.
520
521 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
522
523         * config.gcc: Support --with-fpmath=avx for x86.
524         * config/i386/avxmath.h: New.
525         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
526
527 2010-11-05  Ian Lance Taylor  <iant@google.com>
528
529         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
530         * gengtype.c (walk_type): Don't recognize descbits option.
531
532 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
533
534         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
535         WORD_SWITCH_TAKES_ARG): Remove.
536         * doc/options.texi (Args): Document.
537         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
538         * doc/tm.texi: Regenerate.
539         * opt-functions.awk (switch_flags): Handle Args.
540         * opts-common.c: Update comment on tm.h include.
541         (decode_cmdline_option): Handle options with multiple arguments.
542         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
543         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
544         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
545         CL_COMMON): Update values.
546         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
547         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
548         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
549         sectobjectsymbols, sectorder, segcreate, segprot): New.
550
551 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
552             Uros Bizjak  <ubizjak@gmail.com>
553
554         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
555         256bit AVX register is used.
556         (ix86_expand_vector_move_misalign): Likewise.
557         (ix86_expand_vector_move): Replace use_avx256_p with
558         VALID_AVX256_REG_MODE.
559
560 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
561
562          PR target/44750
563         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
564         change.  Set $@-warn.o to -Wno-error.
565
566         PR bootstrap/44756
567         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
568         comparing it to a signed value.
569
570         PR middle-end/44766
571         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
572         PR bootstrap/44756
573         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
574         to i.
575
576         PR target/44754
577         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
578         (m32c_function_arg).  Add comma between arguments two and three.
579         (m32c_promote_prototypes): Remove declaration.
580         (current_function_special_page_vector): Likewise.
581         (m32c_regno_reg_class): Change return type to enum reg_class.
582         (m32c_pushm_popm): Use add_reg_note.
583         (m32c_push_rounding): Change return type to unsigned int.
584         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
585         enum reload_type.
586         (m32c_insert_attributes): Constify variable name.
587         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
588         (m32c_prepare_shift): Remove variable lref.
589         (m32c_expand_movcc): Remove variable cmp.
590         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
591         (m32c_compare_redundant): Remove variable op2.
592         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
593         (m32c_pragma_memregs): Assign the number to target_memregs.
594         (m32c_pragma_address): Remove variable var_str.
595         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
596         enum reg_class.
597         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
598         * config/m32c/bitops.md (andsi3): Add default case to switch.
599         (iorsi3, xorsi3): Likewise.
600         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
601         * config/m32c/jump.md (call, call_value): Likewise.
602         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
603         (m32c_regno_reg_class): Likewise.
604         (current_function_special_page_vector): Declare.
605
606 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
607
608         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
609
610         PR tree-optimization/46099
611         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
612         if it is NULL and uid wasn't found in the hash table.  Just fold the
613         result if it is NULL otherwise.  Insert other potentially needed
614         stmts right before current stmt instead of on the entry edge.
615         (struct elv_data): Add gsi and reset fields.
616         (eliminate_local_variables_1): Adjust caller.  If take_address_of
617         failed for debug stmt, set dta->reset and return.
618         (eliminate_local_variables_stmt): Change STMT argument for GSI,
619         pass GSI through to the callback, handle resetting of debug stmts.
620         (eliminate_local_variables): Adjust caller.  Process debug stmts
621         in second phase.
622
623         PR middle-end/43690
624         * gimplify.c (gimplify_asm_expr): If a "m" input is a
625         {pre,post}{in,de}crement, fail.
626
627         PR debug/46307
628         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
629         * tree-pretty-print.c (dump_generic_node): Likewise.
630         (op_code_prio): Likewise.
631         * cfgexpand.c (expand_debug_expr): Likewise.
632
633 2010-11-04  Paul Koning  <ni1d@arrl.net>
634
635         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
636         constraints.
637
638 2010-11-04  Chao-ying Fu  <fu@mips.com>
639
640         * configure.ac: Test assembler support for DSP Rev1 mult.
641         * configure: Regenerate.
642         * config.in: Regenerate.
643         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
644         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
645         (CODE_FOR_mips_multu): New define.
646         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
647         dspr2_32 to dsp_32.
648         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
649         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
650         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
651         New define_expand patterns.
652         * config/mips/constraints.md (ka): Update the constraint to test
653         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
654         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
655         mips_multu): Delete.
656         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
657         Change target constraint to "ka".
658         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
659         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
660         Emit the accumulator destination when ISA_HAS_DSP_MULT.
661         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
662         Emit the accumulator destination when ISA_HAS_DSP_MULT.
663         (<u>maddsidi4): Likewise.
664         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
665         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
666
667 2010-11-04  Paul Koning  <ni1d@arrl.net>
668
669         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
670
671 2010-11-04  Paul Koning  <ni1d@arrl.net>
672
673         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
674
675 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
676
677         Fixed using the Objective-C 2.0 dot-syntax with class names.
678         * c-parser.c (c_parser_next_token_starts_declspecs): In
679         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
680         (c_parser_next_token_starts_declaration): Same.
681         (c_parser_postfix_expression): Parse the Objective-C 2.0
682         dot-syntax with a class name.
683
684 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
685
686         * final.c (compute_alignments): Compute/free loop info all the time.
687         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
688         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
689         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
690         * config/rs6000/rs6000.c (cfgloop.h): Include.
691         (can_override_loop_align): New.
692         (rs6000_option_override_internal): Set it.
693         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
694         (rs6000_loop_align): New function.
695         (rs6000_loop_align_max_skip): Likewise.
696
697 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
698
699         PR driver/45703
700         * collect2.c (main): Print --help output to stdout.  Do not
701         exit right away, so ld --help is appended.  Add empty lines
702         to separate output suitably.
703
704 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
705
706         PR tree-optimization/46233
707         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
708         after calling analyze_function, not before.
709
710         PR target/46234
711         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
712         instead of build_va_arg_indirect_ref.
713         * config/spu/spu.c (spu_va_start): Likewise.
714         * config/s390/s390.c (s390_va_start): Likewise.
715
716 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
717
718         PR middle-end/46292
719         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
720         if the innermode is not vector mode, determine the mode of a subreg
721         by using mode_for_size of inner_size.
722
723 2010-11-04  Richard Guenther  <rguenther@suse.de>
724
725         PR rtl-optimization/46183
726         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
727         (execute_rtl_pre): Likewise.
728         (execute_rtl_hoist): Likewise.
729
730 2010-11-04  Richard Guenther  <rguenther@suse.de>
731
732         PR tree-optimization/46068
733         * ipa-split.c (consider_split): Remove gcc_unreachable.
734
735 2010-11-04  Richard Guenther  <rguenther@suse.de>
736
737         * tree-nested.c (build_addr): Use build_fold_addr_expr.
738
739 2010-11-04  Richard Guenther  <rguenther@suse.de>
740
741         PR tree-optimization/45991
742         * gimplify.c (force_gimple_operand_1): Use the provded test
743         function in the initial test.
744
745 2010-11-04  Jeff Law  <law@redhat.com>
746
747         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
748         of readonly memory equivalances for const/pure calls.
749
750 2010-11-04  Richard Guenther  <rguenther@suse.de>
751
752         PR tree-optimization/45733
753         * tree-vect-stmts.c (reverse_vec_elements): Honor the
754         permute builtins function return type.
755
756 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
757
758         PR middle-end/44765
759         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
760         as an index, check it is not INVALID_REGNUM.
761
762         PR bootstrap/44756
763         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
764         unsignedp.
765         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
766
767         PR bootstrap/44756
768         * function.c (thread_prologue_and_epilogue_insns): Add
769         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
770
771         PR bootstrap/44756
772         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
773
774         PR target/44750
775         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
776         (pdp11_preferred_reload_class): Rename class to rclass.
777         (pdp11_preferred_output_reload_class): Likewise.
778         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
779         ALL_COMPILERFLAGS .
780         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
781
782         PR bootstrap/44756
783         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
784         iteration variables to enum machine_mode.
785
786         PR target/44751
787         * config/h8300/h8300.c: Include df.h.
788         (push, pop): Use add_reg_note.
789         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
790         (compute_a_shift_cc): Likewise.
791         (expand_a_shift): Argument code has type enum rtx_code.
792         (struct shift_insn): Member cc_valid has type enum attr_cc.
793         (struct shift_info) <cc_inline, cc_special>: Likewise.
794         enum attr_cc.
795         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
796         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
797
798 2010-11-04  Ira Rosen  <irar@il.ibm.com>
799
800         PR tree-optimization/46213
801         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
802         MINUS_EXPR only if the first operand is reduction operand.
803
804 2010-11-04  Richard Guenther  <rguenther@suse.de>
805             Richard Henderson  <rth@redhat.com>
806
807         * tree.def (FMA_EXPR): New tree code.
808         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
809         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
810         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
811         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
812         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
813         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
814         (execute_optimize_widening_mul): Call it.  Reorganize to allow
815         dead stmt removal.  Move TODO flags ...
816         (pass_optimize_widening_mul): ... here.
817         * flag-types.h (enum fp_contract_mode): New enum.
818         * common.opt (flag_fp_contract_mode): New variable.
819         (-ffp-contract): New option.
820         * opts.c (common_handle_option): Handle it.
821         * doc/invoke.texi (-ffp-contract): Document.
822         * tree.h (fold_fma): Declare.
823         * builtins.c (fold_fma): New function.
824         (fold_builtin_fma): Likewise.
825         (fold_builtin_3): Call it for fma.
826         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
827         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
828         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
829         New expanders.
830         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
831         named patterns.
832         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
833         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
834         (fms_optab, fnma_optab, fnms_optab): New defines.
835         * gimplify.c (gimplify_expr): Handle binary truth expressions
836         explicitly.  Handle FMA_EXPR.
837         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
838         operations.
839
840 2010-11-04  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
841             Richard Guenther  <rguenther@suse.de>
842
843         * passes.c (init_optimization_passes): Move veclower after SSA.
844         * tree-vect-generic.c (uniform_vector_p): New function.
845         (expand_vector_operations_1): Handle conversion.
846         (pass_lower_vector): Update SSA form.
847
848 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
849
850         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
851         plugin capabilities.
852         * configure: Regenerate.
853
854 2010-11-03  Xinliang David Li  <davidxl@google.com>
855
856         PR target/46200
857         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
858         Adjust cbase if the use stmt is after iv update.
859
860 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
861
862         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
863
864 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
865
866         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
867         comment.  Pass true to the last argument of output_stack_adjust.
868
869 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
870
871         PR target/46295
872         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
873         if 256bit AVX register is used.
874
875 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
876
877         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
878         xsmindp/xsmaxdp on VSX for single precision min/max.
879         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
880         (vsx_sminsf3): Ditto.
881
882 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
883
884         * combine.c (try_combine): Fix formatting issues, improve comments and
885         fix a pasto.
886
887 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
888
889         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
890         of the result before building binary expressions.
891
892 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
893
894         PR rtl-optimization/45865
895         * Makefile.in (df-problems.o): Revert revision 164552.
896         * basic-block.h (enum bb_flags): Likewise.
897         * cfgcleanup.c (block_was_dirty): Likewise.
898         (try_forward_edges): Likewise.
899         (try_crossjump_bb): Likewise.
900         (try_head_merge_bb): Likewise.
901         (try_optimize_cfg): Likewise.
902         (cleanup_cfg): Likewise.
903         * df-core.c (df_set_bb_dirty): Likewise.
904         * df-problems.c: Likewise.
905         (df_simulate_find_uses): Likewise.
906         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
907         (find_memory, find_memory_store): Likewise.
908         (can_move_insns_across): Likewise.
909         * df.h (can_move_insns_across): Likewise.
910         * ifcvt.c (find_memory): Likewise.
911         (dead_or_predicable): Likewise.
912
913 2010-11-03  Richard Guenther  <rguenther@suse.de>
914
915         PR middle-end/46288
916         * predict.c (strip_predict_hints): Simply DCE builtin expect if
917         the result is unused.
918
919 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
920
921         PR tree-optimization/46009
922         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
923         cond_if_else_store_replacement if bb1 and bb2 have the same
924         single successor.
925         (cond_store_replacement): Use gimple_assign_single_p, don't
926         check if rhs is SSA_NAME or invariant.  Call release_defs for
927         assign.
928         (cond_if_else_store_replacement): New function.
929
930 2010-11-03  Richard Guenther  <rguenther@suse.de>
931
932         * opts.c (finish_options): Properly check for all WHOPR
933         flags before complaining about -flto-partition.
934
935 2010-11-04  Alan Modra  <amodra@gmail.com>
936
937         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
938         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
939         TARGET_SECURE_PLT.
940         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
941         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
942         on input, "r" on output.
943
944 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
945
946         Implemented -fobjc-std=objc1 flag.
947         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
948         option.
949         * doc/standards.texi (Standards): Updated the section on
950         Objective-C; mention support for Objective-C 2.0 features and the
951         new -fstd-objc=objc1 flag to disable them.
952
953 2010-11-03  Richard Guenther  <rguenther@suse.de>
954
955         PR middle-end/46241
956         * dwarf2out.c (scope_die_for): Properly detect global scope.
957
958 2010-11-03  Richard Guenther  <rguenther@suse.de>
959
960         PR tree-optimization/46190
961         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
962         Properly compute peel iterations.
963
964 2010-11-03  Richard Guenther  <rguenther@suse.de>
965
966         PR tree-optimization/46286
967         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
968         re-allocated vector data.
969
970 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
971
972         PR target/46285
973         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
974         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
975         is completed.
976
977 2010-11-03  Richard Guenther  <rguenther@suse.de>
978
979         PR tree-optimization/46217
980         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
981         flag matches.
982         (execute_update_addresses_taken): Likewise.
983
984 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
985
986         PR bootstrap/44335
987         * targhooks.c (targhook_words_big_endian): New function.
988         (targhook_float_words_big_endian): Likewise.
989         * targhooks.h (targhook_words_big_endian): Declare.
990         (targhook_float_words_big_endian): Likewise.
991         * target.def (words_big_endian, float_words_big_endian): New hooks.
992
993 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
994
995         PR tree-optimization/46165
996         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
997         a normal call into noreturn call.
998
999 2010-11-03  Richard Guenther  <rguenther@suse.de>
1000
1001         PR middle-end/46251
1002         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
1003         not INDIRECT_REFs.
1004
1005 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
1006
1007         PR tree-optimization/46107
1008         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
1009         if cfg_hook_duplicate_loop_to_header_edge failed.
1010
1011 2010-11-03  Ian Lance Taylor  <iant@google.com>
1012
1013         PR lto/46273
1014         * config.gcc: Don't set lto_binary_reader.
1015         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
1016         (Configuration): Mention --disable-lto.  Remove --with-libelf
1017         paragraph.
1018
1019 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
1020
1021         PR debug/46252
1022         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
1023         prev_real_insn.
1024         * gcse.c (insert_insn_end_basic_block): Likewise.
1025
1026         PR rtl-optimization/46034
1027         PR rtl-optimization/46212
1028         PR rtl-optimization/46248
1029         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
1030         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
1031         before i0dest -> i0src substitution and pass 1 instead of 0 as last
1032         argument to subst on i2pat.
1033
1034 2010-11-02  Ian Lance Taylor  <iant@google.com>
1035
1036         * configure.ac: Use AC_SYS_LARGEFILE.
1037         * configure: Rebuild.
1038         * config.in: Rebuild.
1039
1040 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
1041
1042         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
1043         fold_convert.
1044         * c-typeck.c (build_function_call_vec): Likewise.
1045         * cfgexpand.c (expand_debug_expr): Likewise.
1046         * cgraphunit.c (assemble_thunk): Likewise.
1047         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
1048         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
1049         (fold_binary_loc, fold_ternary_loc): Likewise.
1050         * gimple-fold.c (get_symbol_constant_value): Likewise.
1051         * gimple-low.c (lower_builtin_setjmp): Likewise.
1052         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
1053         * gimplify.c (gimplify_init_constructor): Likewise.
1054         * lambda.h (build_linear_expr): Likewise.
1055         * omp-low.c (omp_reduction_init): Likewise.
1056         * tree-inline.c (remap_ssa_name): Likewise.
1057         * tree-object-size.c (compute_object_sizes): Likewise.
1058         * tree-sra.c (init_subtree_with_zero): Likewise.
1059         (sra_ipa_modify_assign): Likewise.
1060         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
1061         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
1062         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
1063         (undistribute_ops_list): Likewise.
1064         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
1065         * tree-vect-stmts.c (vectorizable_call): Likewise.
1066         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
1067         (build_zero_cst): Handle more cases directly.  Update comment.
1068
1069 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1070
1071         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
1072         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
1073
1074         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
1075         and call ix86_split_call_vzeroupper instead of
1076         ix86_split_call_pop_vzeroupper.
1077         (*call_pop_1_vzeroupper): Likewise.
1078         (*sibcall_pop_1_vzeroupper): Likewise.
1079         (*call_value_pop_0_vzeroupper): Likewise.
1080         (*call_value_pop_1_vzeroupper): Likewise.
1081         (*sibcall_value_pop_1_vzeroupper): Likewise.
1082
1083 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1084
1085         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
1086
1087 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
1088
1089         * basic-block.h (insert_insn_end_bb_new): Delete.
1090         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
1091
1092 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
1093             H.J. Lu  <hongjiu.lu@intel.com>
1094
1095         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
1096         (ix86_split_call_pop_vzeroupper): Likewise.
1097
1098         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
1099         (ix86_expand_call): Conditionally decorate calls with
1100         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
1101         (ix86_split_call_vzeroupper): New.
1102         (ix86_split_call_pop_vzeroupper): Likewise.
1103
1104         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
1105         (*call_pop_0_vzeroupper): New insn_and_split pattern.
1106         (*call_pop_1_vzeroupper): Likewise.
1107         (*sibcall_pop_1_vzeroupper): Likewise.
1108         (*call_0_vzeroupper): Likewise.
1109         (*call_1_vzeroupper): Likewise.
1110         (*sibcall_1_vzeroupper): Likewise.
1111         (*call_1_rex64_vzeroupper): Likewise.
1112         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
1113         (*call_1_rex64_large_vzeroupper): Likewise.
1114         (*sibcall_1_rex64_vzeroupper): Likewise.
1115         (*call_value_pop_0_vzeroupper): Likewise.
1116         (*call_value_pop_1_vzeroupper): Likewise.
1117         (*sibcall_value_pop_1_vzeroupper): Likewise.
1118         (*call_value_0_vzeroupper): Likewise.
1119         (*call_value_0_rex64_vzeroupper): Likewise.
1120         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
1121         (*call_value_1_vzeroupper): Likewise.
1122         (*sibcall_value_1_vzeroupper): Likewise.
1123         (*call_value_1_rex64_vzeroupper): Likewise.
1124         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
1125         (*call_value_1_rex64_large_vzeroupper): Likewise.
1126         (*sibcall_value_1_rex64_vzeroupper): Likewise.
1127
1128 2010-11-02  Ian Lance Taylor  <iant@google.com>
1129
1130         PR lto/46273
1131         * config.gcc: Revert last patch: set lto_binary_reader.
1132
1133 2010-11-02  Richard Guenther  <rguenther@suse.de>
1134
1135         PR tree-optimization/46149
1136         * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
1137         non-indirect MEM_REF variants.
1138
1139 2010-11-02  Richard Guenther  <rguenther@suse.de>
1140
1141         PR tree-optimization/46216
1142         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
1143         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
1144
1145 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1146
1147         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
1148         (*-*-osf*): Likewise.
1149         * configure: Regenerate.
1150
1151 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
1152
1153         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
1154         for Intel Core 2 and Core i7.
1155
1156 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
1157
1158         Model decoder of Core 2/i7 for multipass scheduling.
1159
1160         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
1161         New type to hold target-specific data for multipass scheduling.
1162         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
1163         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
1164         Core 2/i7.
1165         (core2i7_secondary_decoder_max_insn_size,)
1166         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
1167         New static variables.
1168         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
1169         ([_]ix86_first_cycle_multipass_data): New static variable.
1170         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
1171         Implement targetm.sched hooks.
1172         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
1173         of ...
1174         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
1175         Implement new targetm.sched hooks.
1176         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
1177         targetm.sched hook to install multipass scheduling hooks on demand.
1178
1179         * doc/tm.texi.in: Document new targetm.sched hooks.
1180         * doc/tm.texi: Regenerate.
1181
1182         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
1183         (first_cycle_multipass_data_t): New typedef.
1184         (struct choice_entry: target_data): New field.
1185         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
1186         to allow target model restrictions not represented in DFA.
1187         (choose_ready, schedule_block): Update.
1188         (sched_extend_ready_list, sched_finish_ready_list): Call new target
1189         hooks to initialize target-specific data for multipass scheduling.
1190         * sched-int.h (max_issue): Update declaration.
1191         * sel-sched.c (choose_best_insn): Update.
1192         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
1193         (first_cycle_multipass_{init, fini}): Define and document new
1194         targetm.sched hooks.
1195
1196 2010-11-02  Richard Guenther  <rguenther@suse.de>
1197
1198         PR tree-optimization/46184
1199         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
1200         input vector type from the reduction operand as well.
1201
1202 2010-11-02  Richard Guenther  <rguenther@suse.de>
1203
1204         PR tree-optimization/46177
1205         * tree-loop-distribution.c (prop_phis): Use
1206         mark_virtual_phi_result_for_renaming.
1207
1208 2010-11-02  Martin Jambor  <mjambor@suse.cz>
1209
1210         PR middle-end/46120
1211         * tree.c (get_binfo_at_offset): Bail out on artificial
1212         fields.  Identify primary bases according to their offsets.
1213
1214 2010-11-02  Martin Jambor  <mjambor@suse.cz>
1215
1216         PR tree-optimization/45875
1217         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
1218         (gimple_get_relevant_ref_binfo): Detect primary bases according to
1219         their field offset.
1220
1221 2010-11-02  Ian Lance Taylor  <iant@google.com>
1222
1223         * doc/install.texi (Configuration): Note in two places that Java
1224         is not enabled by default.
1225
1226 2010-11-02  Ian Lance Taylor  <iant@google.com>
1227
1228         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
1229         (Configuration): Mention --disable-lto.  Remove --with-libelf
1230         paragraph.
1231
1232 2010-11-02  Ian Lance Taylor  <iant@google.com>
1233
1234         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
1235         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
1236         LIBELFINC.  Remove HAVE_libelf.
1237         * config.gcc: Don't set lto_binary_reader.
1238         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
1239         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
1240         (LIBS): Remove $(LIBELFLIBS).
1241         (INCLUDES): Remove $(LIBELFINC).
1242         * configure: Rebuild.
1243         * config.in: Rebuild.
1244
1245 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
1246
1247         * config/microblaze/microblaze-protos.h (function_arg): Delete.
1248         (function_arg_advance): Delete.
1249         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
1250         (FUNCTION_ARG): Delete.
1251         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
1252         (microblaze_function_arg_advance): ...this.  Make static.  Take a
1253         const_tree and a bool.
1254         (function-arg): Rename to...
1255         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
1256         and a bool.
1257         (microblaze_expand_prologue): Call targetm.calls.function_arg and
1258         targetm.calls.function_arg_advance.
1259         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1260
1261 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
1262
1263         Merge from FSF "apple/trunk" branch.
1264
1265         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
1266         * config/darwin.opt: .. to here.
1267         (matt-stubs): New option.
1268         * config/i386/darwin.opt: Delete.
1269         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
1270         (MACHO_DYNAMIC_NO_PIC_P): New.
1271         (MACHOPIC_INDIRECT): New.
1272         (MACHOPIC_PURE): New.
1273         * config/i386/darwin.h (DARWIN_X86) Define to 1.
1274         (MACHOPIC_ATT_STUB): New.
1275         (CC1_SPEC): Do not remove mdynamic-no-pic.
1276         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
1277         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
1278         (FUNCTION_PROFILER): Correct over-length line.
1279         (SUBTARGET_OVERRIDE_OPTIONS): New.
1280         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
1281         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
1282         (legitimate_constant_p): Handle mdynamic-no-pic.
1283         (ix86_legitimate_address_p): Likewise.
1284         (ix86_legitimize_address): Likewise.
1285         (ix86_expand_move): Likewise.
1286         (machopic_output_stub): Update for ATT-style stubs and
1287         mdynamic-no-pic.
1288         * config/darwin-protos.h (machopic_symbol_defined_p): New.
1289         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
1290         TARGET_DYNAMIC_NO_PIC: Remove.
1291         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
1292         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
1293         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
1294         Remove handling of mdynamic-no-pic.
1295         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
1296         Define if required.
1297         (machopic_symbol_defined_p): Do not try to use current_function_decl
1298         when generating _get_pc thunks within stubs.
1299         (machopic_indirect_data_reference): Rework for direct conditionals
1300         rather than #ifdefs, add x86 mdynamic-no-pic
1301         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
1302         defined value.
1303         (darwin_override_options): Handle mdynamic-no-pic here.
1304         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
1305         (machopic_lazy_symbol_ptr3_section): New.
1306         (machopic_picsymbol_stub2_section): New.
1307         (machopic_picsymbol_stub3_section): New.
1308         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
1309         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
1310         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
1311         Moved common definition from x86 and rs6000.
1312         (MACHO_DYNAMIC_NO_PIC_P): Override value.
1313         (MACHOPIC_INDIRECT): Likewise.
1314         (MACHOPIC_PURE): Likewise.
1315         * config.gcc (x86-darwin-*): Remove darwin.opt.
1316
1317 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
1318
1319         PR debug/46255
1320         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
1321         instead of gsi_last_bb.
1322
1323 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
1324             Maxim Kuvyrkov  <maxim@codesourcery.com>
1325
1326         * config/i386/i386.c (cpu_names): Add "corei7".
1327         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
1328
1329 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
1330             Maxim Kuvyrkov  <maxim@codesourcery.com>
1331
1332         Tune alignment for Intel Core i7
1333
1334         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
1335         (enum processor_type): Update comment.  Add entries for Core i7.
1336         * config/i386-c.c (ix86_target_macros_internal): Update.
1337         * config/i386.c (m_COREI7{_32,_64}): New macros.
1338         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
1339         (processor_target_table): Tune alignment for Core i7.
1340         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
1341
1342         * doc/invoke.texi: Document "corei7" option value.
1343
1344 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
1345             Maxim Kuvyrkov  <maxim@codesourcery.com>
1346             H.J. Lu  <hjl.tools@gmail.com>
1347
1348         Basic support for Intel Core i7
1349
1350         * i386.c (ix86_option_override_internal): Add entry for corei7, use
1351         generic tuning.  Use generic32 when compiling for 32-bit ABI.
1352
1353 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
1354
1355         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
1356         sections and call darwin_asm_dwarf_section() to handle them.
1357         (darwin_asm_dwarf_section): New.
1358         (darwin_file_start): Remove code emitting dwarf section symbols.
1359
1360 2010-11-02  Chung-Lin Tang  <cltang@codesourcery.com>
1361
1362         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
1363         explicitly disable stack protection when building libgcc.
1364         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
1365
1366 2010-11-01  Jason Merrill  <jason@redhat.com>
1367
1368         * fold-const.c (fold_indirect_ref_1): Handle folding
1369         POINTER_PLUS_EXPR to ARRAY_REF.
1370
1371 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
1372
1373         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
1374         (sh_delegitimize_address): New function.
1375
1376 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
1377
1378         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
1379         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
1380         (CC1_SPEC): Don't handle -target.
1381         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
1382         options.
1383         * config/darwin.opt (Zallowable_client, Zbundle_loader,
1384         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
1385         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
1386         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
1387         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
1388         Zweak_reference_mismatches, client_name, compatibility_version,
1389         current_version, dylinker_install_name, pagezero_size,
1390         read_only_relocs, seg1addr, segs_read_only_addr,
1391         segs_read_write_addr, sub_library, sub_umbrella): New.
1392         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
1393         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
1394         * config/freebsd.opt: New.
1395         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
1396         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
1397         * config/rpath.opt: New.
1398         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
1399         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
1400         Use rpath.opt.
1401
1402 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
1403
1404         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
1405         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
1406         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
1407         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
1408         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
1409         Document that options in .opt files do not need to be included.
1410         * doc/tm.texi: Regenerate.
1411         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
1412         * opts-common.c: Update comment on tm.h include.
1413         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
1414         * system.h (SWITCH_TAKES_ARG): Poison.
1415         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
1416         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
1417         in darwin.opt.
1418         (LINK_COMMAND_SPEC_A): Don't include %{x}.
1419         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1420         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
1421         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
1422         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1423         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
1424         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
1425         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
1426         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
1427         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1428         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
1429         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
1430         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
1431         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
1432         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
1433         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
1434         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
1435         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
1436         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
1437         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
1438         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
1439         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
1440         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
1441         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1442
1443 2010-11-01  Paul Koning  <ni1d@arrl.net>
1444
1445         * config/pdp11/pdp11.md: Use iterators.
1446         (addqi3, subqi3, iorsi3, xorsi3): Delete.
1447
1448 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
1449
1450         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
1451         GCC_INSN_FLAGS_H.
1452         * libgcov.c (__gcov_indirect_call_profiler): Set
1453         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
1454         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
1455
1456 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
1457
1458         PR tree-optimization/46259
1459
1460         Revert:
1461         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1462         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1463         build_vector_from_val.
1464
1465 2010-11-01  DJ Delorie  <dj@redhat.com>
1466
1467         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
1468         as well as an assertion.
1469
1470 2010-11-01  Paul Koning  <ni1d@arrl.net>
1471
1472         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
1473         complex modes in memory.
1474
1475 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
1476
1477         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
1478
1479 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
1480
1481         PR target/45250
1482         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
1483         (cfa_base_offset): New variable.
1484         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
1485         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
1486         is NULL.
1487         (vt_init_cfa_base): Initialize cfa_base_offset.
1488
1489 2010-11-01  Alan Modra  <amodra@gmail.com>
1490
1491         PR target/46030
1492         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
1493         and savres_strategy.
1494         (stack_info): New file scope var.
1495         (rs6000_init_machine_status): Init stack_info.
1496         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
1497         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1498         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
1499         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
1500         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
1501         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
1502         (rs6000_savres_strategy): Rewrite.
1503         (rs6000_stack_info): Use "stack_info" in place of local "info".
1504         Return cached stack info when reload_completed unless ENABLE_CHECKING
1505         in which case confirm newly calculated stack info matches old info.
1506         Delay calculation of lr_save_p, set it for out of line gp save/restore
1507         as well as fp.  Call rs6000_savres_strategy from here..
1508         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
1509         (rs6000_output_function_prologue): Use info->savres_strategy to
1510         determine whether fp save/restore externs need to be emitted.
1511
1512 2010-10-31  Jason Merrill  <jason@redhat.com>
1513
1514         * tree.h (EXPR_LOC_OR_HERE): New macro.
1515         * builtins.c (c_strlen): Use it.
1516         * c-decl.c (build_enumerator): Likewise.
1517         * gimplify.c (internal_get_tmp_var): Likewise.
1518         (shortcut_cond_expr): Likewise.
1519         (gimplify_one_sizepos): Likewise.
1520
1521 2010-10-31  Richard Henderson  <rth@redhat.com>
1522
1523         * config/i386/cygming.h (TARGET_SEH): New.
1524         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
1525         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
1526         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
1527         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
1528         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
1529         (ASM_DECLARE_FUNCTION_SIZE): New.
1530         * config/i386/i386-protos.h: Update.
1531         * config/i386/i386.c (ix86_option_override_internal): Enable
1532         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
1533         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
1534         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
1535         (ix86_compute_frame_layout): For SEH, disable
1536         use_fast_prologue_epilogue, move frame pointer to the end of
1537         the frame.  Initialize hfp_save_offset.
1538         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
1539         at end of prologue for SEH.
1540         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
1541         emit blockage at beginning of epilogue.
1542         (ix86_expand_binary_operator): After reload, emit LEA if needed.
1543         (ix86_output_call_insn): New.
1544         * config/i386/i386.h (TARGET_SEH): New.
1545         (struct machine_function): Add member seh.
1546         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
1547         * config/i386/winnt.c (struct seh_frame_state): New.
1548         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
1549         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
1550         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
1551         i386_pe_start_function, i386_pe_end_function): New.
1552
1553         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
1554         as CFA_STORE in rules 12 and 13.
1555
1556 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
1557
1558         PR tree-optimization/46142
1559         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
1560         accommodate third function argument.
1561
1562 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1563
1564         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
1565
1566 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1567
1568         * fold-const.c (build_zero_vector): Use build_vector_from_val.
1569         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1570         (get_initial_def_for_reduction): Likewise.
1571         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1572         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1573         * tree.c (build_one_cst): Likewise.
1574         (build_vector_from_val): Use types_compatible_p for assert.
1575
1576 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1577
1578         * emit-rtl.c (mark_used_flags): New function.
1579         (set_used_flags, reset_used_flags): Call it.
1580
1581 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
1582
1583         PR middle-end/44569
1584         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
1585         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
1586
1587 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1588
1589         PR target/46195
1590         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
1591         (ix86_compat_aligned_value_p): This.
1592         (ix86_old_function_arg_boundary): Renamed to ...
1593         (ix86_compat_function_arg_boundary): This.  Updated.
1594         (ix86_contains_aligned_value_p): New.
1595         (ix86_function_arg_boundary): Align long double parameters on
1596         stack to 4byte in 32bit.
1597
1598 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1599
1600         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1601         * c-parser.c (c_parser_objc_at_property_declaration): Removed
1602         parsing of RID_COPIES and RID_IVAR.  Updated call to
1603         objc_add_property_declaration.
1604         * c-typecheck.c (build_component_ref): Call
1605         objc_maybe_build_component_ref instead of objc_build_setter_call.
1606         Use objc_is_property_ref to improve Objective-C checks.
1607         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
1608         of objc_build_getter_call.
1609
1610 2010-10-29  Paul Koning  <ni1d@arrl.net>
1611
1612         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
1613         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
1614         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
1615         (REG_OK_STRICT): Move description.
1616
1617 2010-10-29  Paul Koning  <ni1d@arrl.net>
1618
1619         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
1620
1621 2010-10-29  Paul Koning  <ni1d@arrl.net>
1622
1623         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
1624
1625 2010-10-29  Paul Koning  <ni1d@arrl.net>
1626
1627         PR/41822
1628         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
1629
1630 2010-10-29  Richard Henderson  <rth@redhat.com>
1631
1632         PR rtl-opt/46226
1633         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
1634         for asm goto.
1635
1636 2010-10-29  Paul Koning  <ni1d@arrl.net>
1637
1638         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
1639         register to register move.
1640
1641 2010-10-29  Paul Koning  <ni1d@arrl.net>
1642
1643         * config/pdp11/pdp11.c (print_operand_address): Correct handling
1644         of integer constant addresses, delete vax-only logic.
1645
1646 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
1647
1648         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
1649         a conditional expression.
1650
1651 2010-10-29  Paul Koning  <ni1d@arrl.net>
1652
1653         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
1654         instruction encoding.
1655
1656 2010-10-29  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
1657             Andrew Pinski  <pinskia@gmail.com>
1658
1659         * tree.h (build_vector_from_val): Declare.
1660         * tree.c (build_vector_from_val): New function.
1661         * c-typeck.c (build_binary_op): Handle vector shifting.
1662         * doc/extend.texi: Description of the vector shifting operation.
1663
1664 2010-10-29  Paul Koning  <pkoning@equallogic.com>
1665
1666         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
1667         pdp11_secondary_memory_needed): Declare.
1668         * config/pdp11/predicates.md (float_operand): New predicate.
1669         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
1670         (cbranchdf4, movdf): Change predicate.
1671         (movsf): Handle FPU register case.
1672         (truncdfsf2, extendsfdf2): Add FPU register case.
1673         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
1674         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
1675         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1676         (pdp11_register_move_cost): Update cost matrix.
1677         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
1678         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
1679         pdp11_secondary_memory_needed): New function.
1680         (pdp11_return_in_memory): Add other float types.
1681         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
1682         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
1683         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
1684         REGISTER_MOVE_COST): Delete.
1685         (BASE_RETURN_VALUE_REG): Add other float types.
1686
1687 2010-10-29  Nick Clifton  <nickc@redhat.com>
1688
1689         * doc/invoke.texi: Document -mam34 and -mtune options.
1690         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
1691         (mn10300_tune_cpu): New variable.
1692         (mn10300_handle_option): Handle -mam34 and -mtune options.
1693         (mn10300_option_override): Convert tune string into tune cpu variable.
1694         (mn10300_legitimate_constant_p): Delete unused local variable.
1695         (is_load_insn): New function.
1696         (is_store_insn): New function.
1697         (mn10300_adjust_schedule_cost): New function.
1698         (TARGET_SCHED_ADJUST_COST): Define.
1699         * config/mn10300/mn10300.opt (mam34): New option.
1700         (mtune): New option.
1701         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
1702         (enum processor_type): Add AM34.
1703         (TARGET_AM34): Define.
1704         * config/mn10300/mn10300.md (attr cpu): Add am34.
1705         Add pipeline description.
1706         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
1707         Remove unneeded alternatives.  Add timing attribute.
1708         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
1709         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
1710         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
1711         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
1712         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
1713         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
1714         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
1715         float_conditional_branch, jump, indirect_jump, tablejump,
1716         call_internal, call_value_internal, zero_extendqisi2_am33,
1717         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
1718         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
1719         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
1720         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
1721         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
1722         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
1723         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
1724         return_internal_regs, store_movm, return, call_next_insn):
1725         Add timing attribute.
1726         (am33_subsi3): Add missing clobber of CC_REG.
1727         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
1728         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
1729         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
1730         extendqisi2): Fix predicates.
1731         (call_internal, call_internal_value): Separate alternatives.
1732         * config/mn10300/t-mn10300: Add AM34 multilib.
1733
1734 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
1735
1736         * config/sh/sh.c (sh_promote_function_mode): Use
1737         default_promote_function_mode if !sh_promote_prototypes.
1738
1739 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
1740
1741         * recog.c (split_all_insns): Remove dead code.
1742
1743 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1744
1745         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1746
1747 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1748
1749         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1750         (FUNCTION_ARG_ADVANCE): Delete.
1751         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
1752         functions.
1753         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
1754         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1755         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1756
1757 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1758
1759         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
1760         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1761         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
1762         Take a const_tree and a bool.
1763         (mcore_function_arg_advance): New function.
1764         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1765
1766 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1767
1768         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
1769         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1770         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
1771         Take a const_tree and a bool.
1772         (mcore_function_arg_advance): New function.
1773         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1774
1775 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1776
1777         * config/h8300/h8300-protos.h (function_arg): Delete.
1778         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1779         * config/h8300/h8300.c (function_arg): Rename to...
1780         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
1781         a bool.
1782         (h8300_function_arg_advance): New function.
1783         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1784
1785 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1786
1787         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
1788         to...
1789         * config/arc/arc.c (arc_function_arg): ...here and...
1790         (arc_function_arg_advance): ...here.  New functions.
1791         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1792
1793 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1794
1795         * config/crx/crx-protos.h (crx_function_arg): Delete.
1796         (crx_function_arg_advance): Delete.
1797         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1798         * config/crx/crx.c (crx_function_arg): Make static.  Take a
1799         const_tree and a bool.
1800         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
1801         (enough_regs_for_param): Take a const_tree.
1802         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1803
1804 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1805
1806         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
1807         (m68hc11_function_arg_advance): Delete.
1808         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
1809         (FUNCTION_ARG_ADVANCE): Delete.
1810         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
1811         Take a const_tree and a bool.
1812         (m68hc11_function_arg_advance): Likewise.
1813         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1814
1815 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1816
1817         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
1818         (xstormy16_function_arg_advance): Delete.
1819         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
1820         (FUNCTION_ARG_ADVANCE): Delete.
1821         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
1822         Take a const_tree and a bool.
1823         (xstormy16_function_arg_advance): Likewise.  Return void, updating
1824         the CUM parameter instead.
1825         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1826
1827 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1828
1829         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
1830         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1831         (MOXIE_FUNCTION_ARG_SIZE): Move to...
1832         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
1833         (moxie_function_arg): Make static.  Take a const_tree and a bool.
1834         (moxie_function_arg_advance): New function.
1835         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1836
1837 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1838
1839         * config/mn10300/mn10300-protos.h (function_arg): Delete.
1840         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
1841         (FUNCTION_ARG_ADVANCE): Delete.
1842         * config/mn10300/mn10300.c (function_arg): Rename to...
1843         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
1844         and a bool.
1845         (mn10300_function_arg_advance): New function.
1846         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1847
1848 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1849
1850         * config/iq2000/iq2000-protos.h (function_arg): Delete.
1851         (function_arg_advance): Delete.
1852         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1853         * config/iq2000/iq2000.c (function_arg): Rename to...
1854         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
1855         a bool.
1856         (function_arg_advance): Rename to...
1857         (iq2000_function_arg_advance): ...this.  Make static.  Take a
1858         const_tree and a bool.
1859         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
1860         iq2000_function_arg.
1861         (iq2000_pass_by_reference): Call iq2000_function_arg).
1862         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1863
1864 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1865
1866         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
1867         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1868         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
1869         const_tree.
1870         (fr30_function_arg): New function.
1871         (fr30_function_arg_advance): New function.
1872         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1873
1874 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1875
1876         * config/frv/frv-protos.h (frv_function_arg): Delete.
1877         (frv_function_arg_advance): Delete.
1878         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1879         * config/frv/frv.c (frv_function_arg): Rename to...
1880         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
1881         (frv_function_arg, frv_function_incoming_arg): New functions.
1882         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
1883         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1884         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1885
1886 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
1887
1888         PR target/46153
1889         * config/i386/sse.md (sse_movhlps_exp): Use destination
1890         returned from ix86_fixup_binary_operands to expand insn.
1891         (sse_movlhps_exp): Ditto.
1892         (sse_loadhps_exp): Ditto.
1893         (sse_loadlps_exp): Ditto.
1894         (sse2_loadhpd_exp): Ditto.
1895         (sse2_loadlpd_exp): Ditto.
1896
1897 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
1898
1899         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
1900         constants in thumb2.
1901
1902 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
1903
1904         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
1905         arithmetics in masking operations.
1906         (contains_muldiv): Likewise.
1907         (try_combine): Likewise.
1908         (find_split_point): Likewise.
1909         (combine_simplify_rtx): Likewise.
1910         (simplify_if_then_else): Likewise.
1911         (simplify_set): Likewise.
1912         (expand_compound_operation): Likewise.
1913         (expand_field_assignment): Likewise.
1914         (make_extraction): Likewise.
1915         (extract_left_shift): Likewise.
1916         (make_compound_operation): Likewise.
1917         (force_to_mode): Likewise.
1918         (make_field_assignment): Likewise.
1919         (reg_nonzero_bits_for_combine): Likewise.
1920         (simplify_shift_const_1): Likewise.
1921         (simplify_comparison): Likewise.
1922
1923 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
1924
1925         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
1926         (ia64_function_arg_advance): Delete.
1927         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1928         (FUNCTION_ARG_ADVANCE): Delete.
1929         * config/ia64/ia64.c (ia64_function_arg): Rename to...
1930         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
1931         bool arguments.
1932         (ia64_function_arg, ia64_function_incoming_arg): New functions.
1933         (ia64_function_arg_advance): Make static.  Take a const_tree and
1934         a bool.
1935         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1936         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1937
1938 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
1939
1940         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
1941         (TARGET_GET_RAW_ARG_MODE): New.
1942         * doc/tm.texi: Regenerate.
1943         * target.def (get_raw_result_mode): New.
1944         (get_raw_arg_mode): New.
1945         * targhooks.c (default_get_reg_raw_mode): New.
1946         * targhooks.h (default_get_reg_raw_mode): New.
1947         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
1948         (apply_result_size): Ditto.
1949         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
1950         (TARGET_GET_RAW_RESULT_MODE): Define.
1951         (TARGET_GET_RAW_ARG_MODE): Ditto.
1952
1953 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1954
1955         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
1956         for newer Solaris 10 release.
1957         (sparc_fallback_frame_state): Likewise.
1958
1959 2010-10-27  Jason Merrill  <jason@redhat.com>
1960
1961         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
1962         variables sooner.
1963
1964 2010-10-27  Jie Zhang  <jie@codesourcery.com>
1965             Maxim Kuvyrkov  <maxim@codesourcery.com>
1966
1967         * haifa-sched.c (ISSUE_POINTS): Remove.
1968         (max_issue): Don't issue more than issue_rate instructions.
1969
1970 2010-10-27  Ian Lance Taylor  <iant@google.com>
1971
1972         PR target/46197
1973         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
1974         (split_stack_return): Replace UNSPEC_STACK_CHECK with
1975         UNSPECV_SPLIT_STACK_RETURN.
1976
1977 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1978
1979         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
1980
1981         * config/i386/i386.c (block_info): New.
1982         (BLOCK_INFO): Likewise.
1983         (call_avx256_state): Likewise.
1984         (check_avx256_stores): Likewise.
1985         (move_or_delete_vzeroupper_2): Likewise.
1986         (move_or_delete_vzeroupper_1): Likewise.
1987         (move_or_delete_vzeroupper): Likewise.
1988         (use_avx256_p): Likewise.
1989         (function_pass_avx256_p): Likewise.
1990         (flag_opts): Add -mvzeroupper.
1991         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
1992         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
1993         is disabled.
1994         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
1995         generate vzeroupper.
1996         (init_cumulative_args): Add an int to indicate caller.  Set
1997         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
1998         based on return type.
1999         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
2000         caller_pass_avx256_p based on argument type.
2001         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
2002         is used, but not returned by caller.
2003         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
2004         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
2005         is used.
2006         (ix86_minimum_alignment): Likewise.
2007         (ix86_expand_special_args_builtin): Set target to
2008         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
2009         (ix86_reorg): Run the vzeroupper optimization if needed.
2010
2011         * config/i386/i386.h (ix86_args): Add caller.
2012         (INIT_CUMULATIVE_ARGS): Updated.
2013         (machine_function): Add use_vzeroupper_p, use_avx256_p,
2014         caller_pass_avx256_p, caller_return_avx256_p,
2015         callee_pass_avx256_p and callee_return_avx256_p.
2016
2017         * config/i386/i386.opt (-mvzeroupper): New.
2018
2019         * config/i386/predicates.md (vzeroupper_operation): Removed.
2020
2021         * config/i386/sse.md (avx_vzeroupper): Removed.
2022         (*avx_vzeroupper): Removed.
2023         (avx_vzeroupper): New.
2024
2025         * doc/invoke.texi: Document -mvzeroupper.
2026
2027 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
2028
2029         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
2030         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
2031         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
2032
2033 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
2034             Olivier Hainque  <hainque@adacore.com>
2035
2036         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
2037         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
2038         fs->signal_frame instead.
2039
2040 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2041
2042         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
2043         parsing of RID_COPIES and RID_IVAR.
2044
2045 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2046
2047         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
2048         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
2049         Do not use objc_set_property_attr, but use local variables
2050         instead.  Detect repeated usage of setter, getter and ivar
2051         attributes.  Improved error processing when a setter name does not
2052         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
2053         that the token is a keyword.  Updated call to
2054         objc_add_property_declaration.
2055
2056 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
2057
2058         * c-parser.c (c_parser_objc_at_property): Renamed to
2059         c_parser_objc_at_property_declaration.  Updated calls to
2060         objc_add_property_variable, now objc_add_property_declaration.
2061         Code rewritten to be much more robust in recovering from syntax
2062         errors.  Added comments.
2063         (c_parser_objc_property_attrlist): Removed.
2064         (c_parser_external_declaration): Updated calls to
2065         c_parser_objc_at_property, now
2066         c_parser_objc_at_property_declaration.
2067         (c_parser_objc_methodprotolist): Same change.
2068
2069 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
2070
2071         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
2072
2073 2010-10-26  Jan Hubicka  <jh@suse.cz>
2074
2075         * ipa.c (process_references): Enqueue all referenced nodes;
2076         mark as reachable only non-external nodes.
2077         (cgraph_remove_unreachable_nodes): All referenced nodes should
2078         be enqueued; remove bogues node->needed check.
2079
2080 2010-10-26  Jan Hubicka  <jh@suse.cz>
2081
2082         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
2083         to represent OMP.
2084
2085 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
2086
2087         * config/i386/i386.md (split_stack_return): Replace
2088         unspec_volatile with unspec.
2089
2090 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
2091
2092         * doc/install.texi: Fix typo in --with-sysroot description.
2093
2094 2010-10-26  Jan Hubicka  <jh@suse.cz>
2095
2096         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
2097         Use info provided by linker plugin.
2098
2099 2010-10-26  Jason Merrill  <jason@redhat.com>
2100
2101         * varasm.c (constructor_static_from_elts_p): Don't require a
2102         CONSTRUCTOR to have elements to be suitable for static
2103         initialization.  Allow ARRAY_TYPE as well.
2104
2105 2010-10-26  Jan Hubicka  <jh@suse.cz>
2106
2107         PR middle-end/45736
2108         * cgraph.c (cgraph_set_readonly_flag): Rename to...
2109         (cgraph_set_const_flags) ... this one; get also looping argument;
2110         clear constructor/destructor flags.
2111         (cgraph_set_pure_flag): Likewise.
2112         (cgraph_set_looping_const_or_pure_flag): Remove.
2113         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
2114         to optimize away static ctors/dtors; it does not work on inline clones;
2115         external functions can always be rmeoved.
2116         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
2117         inline clones; in LTO external functions always can go.
2118         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
2119         (cgraph_mark_address_taken_node): Assert that we are not taking
2120         address of inline clone.
2121         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
2122         external functions.
2123         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
2124         address taken.
2125         (ipcp_initialize_node_lattices): Only local functions can be
2126         handled without cloning.
2127         * cgraph.h (cgraph_set_readonly_flag,
2128         cgraph_set_looping_const_or_pure_flag): Remove.
2129         (cgraph_set_const_flag): Declare.
2130         (cgraph_set_pure_flag): Update.
2131         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
2132         flags setting code.
2133         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
2134         look at inline clones; fix handling of external definitions.
2135         (cgraph_postorder): Do not look at inline clones in the first pass.
2136         (function_and_variable_visibility): Drop constructors/destructor
2137         flags at pure and const functions.
2138         * tree-profile.c (tree_profiling): Update.
2139         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
2140         address taken; external functions do not account to whole program size.
2141         (cgraph_decide_inlining): Likewise; do not try to inline
2142         functions already inlined.
2143
2144 2010-10-26  Jie Zhang  <jie@codesourcery.com>
2145
2146         * doc/invoke.texi: Improve documentation of
2147         -fstrict-volatile-bitfields.
2148
2149 2010-10-26  Ira Rosen  <irar@il.ibm.com>
2150
2151         PR tree-optimization/46167
2152         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
2153         is basic block for the statement.
2154
2155 2010-10-26  Paul Koning  <ni1d@arrl.net>
2156
2157         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
2158         current definition of struct_real_format.
2159
2160 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
2161
2162         PR target/44948
2163         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
2164         (ix86_function_arg_boundary): Always align parameters on stack
2165         in 64bit and align parameters with alignment >= 16byte on stack
2166         in 32bit.  Warn alignment change.
2167
2168 2010-10-26  Ian Lance Taylor  <iant@google.com>
2169
2170         PR middle-end/45687
2171         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
2172         offset.
2173
2174 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
2175
2176         Implement opaque-enum-specifiesr for C++0x
2177         * tree.h (ENUM_IS_OPAQUE): New.
2178         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
2179
2180 2010-10-26  Jie Zhang  <jie@codesourcery.com>
2181
2182         * stor-layout.c (layout_decl): Use the field's type to
2183         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
2184         * config/arm/arm.c (arm_override_options): Default to
2185         -fstrict-volatile-bitfields.
2186
2187 2010-10-25  Paul Koning  <ni1d@arrl.net>
2188
2189         * config/pdp11/pdp11.md: Add define_constants for register
2190         numbers, branch offset limits.
2191         * config/pdp11/pdp11.c: Use named constants instead of numbers.
2192         * config/pdp11.pdp11.h: Ditto.
2193
2194 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
2195
2196         * configure.ac: Use $cpu_type instead of $target to define the nop.
2197         * configure: Regenerate.
2198
2199 2010-10-25  Jie Zhang  <jie@codesourcery.com>
2200
2201         * combine.c (try_combine): If insns need to be kept around, check that
2202         they can be copied in the merged instruction.
2203
2204 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
2205
2206         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
2207         has been modified.
2208         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
2209         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
2210         it has been modified.
2211
2212 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
2213
2214         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
2215
2216 2010-10-24  Paul Koning  <ni1d@arrl.net>
2217
2218         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
2219         * config/pdp11/pdp11.c (output_jump): Ditto.
2220
2221 2010-10-24  Ian Lance Taylor  <iant@google.com>
2222
2223         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
2224
2225 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
2226
2227         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
2228         least one insn with a locus corresponding to an edge's goto_locus,
2229         disregard non-fallthru edges to the exit block and merge the blocks
2230         created for the same goto_locus.
2231
2232 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
2233
2234         * gcc.c (n_switches_alloc_debug_check): New.
2235         (set_option_handlers): New.
2236         (process_command): Use set_option_handlers.
2237         (do_self_spec): Pass spec-generated options through option handlers.
2238         (main): Also save and restore n_switches_alloc when swapping
2239         switch arrays.
2240
2241 2010-10-23  Richard Henderson  <rth@redhat.com>
2242
2243         PR target/46144
2244         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
2245         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
2246         Honor matching operands when splitting to XOR.
2247
2248 2010-10-23  Ian Lance Taylor  <iant@google.com>
2249
2250         * tree-vrp.c (extract_range_from_binary_expr): If
2251         flag_non_call_exceptions don't eliminate division by zero.
2252         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2253
2254 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
2255
2256         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
2257         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
2258         __ORDER_PDP_ENDIAN__.
2259         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2260         (struct DWstruct): Define based on __BYTE_ORDER__.
2261         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2262         (struct INTstruct): Define based on __BYTE_ORDER__.
2263         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2264         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
2265         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
2266         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2267         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2268         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2269         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2270         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2271         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2272         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2273         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2274         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2275         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2276         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2277         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2278         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2279         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2280         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2281         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2282         * doc/tm.texi: Regenerate.
2283         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
2284         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
2285
2286 2010-10-23  Jie Zhang  <jie@codesourcery.com>
2287
2288         PR rtl-optimization/37360
2289         * config/mips/mips.c (cached_can_issue_more): New local variable.
2290         (mips_sched_reorder_1): New.
2291         (mips_sched_reorder): Use mips_sched_reorder_1.
2292         (mips_sched_reorder2): New.
2293         (mips_variable_issue): Set cached_can_issue_more.
2294         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
2295         instead of mips_sched_reorder.
2296
2297         Revert:
2298         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
2299         PR rtl-optimization/37360
2300         * haifa-sched.c (max_issue): Do not assert that we never issue more
2301         insns than issue_rate.  Add comment.
2302
2303 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
2304
2305         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
2306         location info of the expression.
2307
2308 2010-10-22  DJ Delorie  <dj@redhat.com>
2309
2310         * doc/extend.texi (Named Address Spaces): Document the M32C named
2311         address space.
2312
2313         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
2314         __far address space.
2315         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
2316         "__far" address space for R8C and M16C processor variants.
2317         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
2318         (far_addr_space_p): New.
2319         (encode_pattern_1): Add sign and zero extend support.
2320         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
2321         (m32c_extra_constraint_p2): Add SF constraint.
2322         (m32c_legitimate_address_p): Support __far addresses.
2323         (m32c_addr_space_pointer_mode): New.
2324         (m32c_addr_space_address_mode): New.
2325         (m32c_addr_space_legitimate_address_p): New.
2326         (m32c_addr_space_legitimize_address): New.
2327         (m32c_addr_space_subset_p): New.
2328         (m32c_addr_space_convert): New.
2329         (conversions): Add __far operand patterns.
2330         (m32c_prepare_move): Force constants into registers for __far moves.
2331         (m32c_split_move): __far moves are always split.
2332         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
2333         * config/m32c/mov.md (mov<mode>_far_op1): New.
2334         (mov<mode>_far_op2): New.
2335         (movqi_op): Add __far (SF) support.
2336         (movhi_op): Likewise.
2337         (movsi_splittable): Split A1A0 also.
2338
2339 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
2340             Andrew Pinski  <pinskia@gmail.com>
2341
2342         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
2343         * doc/extend.texi: New paragraph
2344
2345 2010-10-22  Paul Koning  <ni1d@arrl.net>
2346
2347         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
2348
2349 2010-10-22  DJ Delorie  <dj@redhat.com>
2350
2351         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
2352
2353 2010-10-22  Paul Koning  <ni1d@arrl.net>
2354
2355         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
2356
2357 2010-10-22  Richard Henderson  <rth@redhat.com>
2358
2359         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
2360         cases for __builtin_fma and __builtin_fmaf.
2361
2362 2010-10-22  Richard Henderson  <rth@redhat.com>
2363
2364         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
2365         NEG+USE for vectors as well.
2366         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
2367         and splitter.
2368
2369 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
2370
2371         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
2372         SWITCH_CURTAILS_COMPILATION): Remove.
2373         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
2374         * doc/tm.texi: Regenerate.
2375         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
2376
2377 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
2378
2379         * config/i386/bdver1.md: New file.
2380         * config/i386/i386.md (include "bdver1.md"): Invoke the
2381         pipeline description for bdver1.
2382         (x86_sahf_1): Add "bdver1_decode" attribute.
2383         (*cmpfp_i_mixed): Likewise.
2384         (*cmpfp_i_sse): Likewise.
2385         (*cmpfp_i_i387): Likewise.
2386         (*cmpfp_iu_mixed): Likewise.
2387         (*cmpfp_iu_sse): Likewise.
2388         (*cmpfp_iu_387): Likewise.
2389         (*swap<mode>,*swap<mode>_1): Likewise.
2390         (fixuns_trunc<mode>hi2): Likewise.
2391         (fix_trunc<mode>si_sse): Likewise.
2392         (x86_fnstcw_1): Likewise.
2393         (x86_fldcw_1): Likewise.
2394         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
2395         (*floatsi<mode>2_vector_mixed): Likewise.
2396         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
2397         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
2398         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
2399         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
2400         (*floatsi<mode>2_vector_sse): Likewise.
2401         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
2402         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
2403         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
2404         (*mul<mode>3_1): Likewise.
2405         (*mulsi3_1_zext): Likewise.
2406         (*mulhi3_1): Likewise.
2407         (*mulqi3_1): Likewise.
2408         (*<u>mul<mode><dwi>3_1): Likewise.
2409         (*<u>mulqihi3_1): Likewise.
2410         (*<s>muldi3_highpart_1): Likewise.
2411         (*<s>mulsi3_highpart_1): Likewise.
2412         (*<s>mulsi3_highpart_zext): Likewise.
2413         (x86_64_shld): Likewise.
2414         (x86_shld): Likewise.
2415         (x86_64_shrd): Likewise.
2416         (x86_shrd): Likewise.
2417         (sqrtxf2): Likewise.
2418         (sqrt_extend<mode>xf2_i387): Likewise.
2419         (*sqrt<mode>2_sse): Likewise.
2420         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
2421         (sse_cvtsi2ssq): Likewise.
2422         (sse_cvtss2si): Likewise.
2423         (sse_cvtss2si_2): Likewise.
2424         (sse_cvtss2siq): Likewise.
2425         (sse_cvtss2siq_2): Likewise.
2426         (sse_cvttss2si): Likewise.
2427         (sse_cvttss2siq): Likewise.
2428         (sse2_cvtpi2pd): Likewise.
2429         (sse2_cvttpd2pi): Likewise.
2430         (sse2_cvtsi2sd): Likewise.
2431         (sse2_cvtsi2sdq): Likewise.
2432         (sse2_cvtsd2si): Likewise.
2433         (sse2_cvtsd2si_2): Likewise.
2434         (sse2_cvtsd2siq): Likewise.
2435         (sse2_cvtsd2siq_2): Likewise.
2436         (sse2_cvttsd2si): Likewise.
2437         (sse2_cvttsd2siq): Likewise.
2438         (*sse2_cvtpd2dq): Likewise.
2439         (*sse2_cvttpd2dq): Likewise.
2440         (sse2_cvtsd2ss): Likewise.
2441         (sse2_cvtss2sd): Likewise.
2442         (*sse2_cvtpd2ps): Likewise.
2443         (sse2_cvtps2pd): Likewise.
2444
2445 2010-10-22  Richard Guenther  <rguenther@suse.de>
2446
2447         PR middle-end/46137
2448         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
2449         remove the virtual operands if they are not needed.
2450
2451 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
2452
2453         * config/i386/i386.c (processor_costs bdver1_cost): Update
2454         insn costs and architectural parameters for bdver1.
2455
2456 2010-10-22  Richard Guenther  <rguenther@suse.de>
2457
2458         * gimple.h (gimple_register_canonical_type): Declare.
2459         * gimple.c (gimple_canonical_types): New global hashtable.
2460         (struct gimple_type_leader_entry_s): New type.
2461         (gimple_type_leader): New global cache.
2462         (gimple_lookup_type_leader): New function.
2463         (gtc_visit): Query the proper cache.
2464         (gimple_types_compatible_p): Likewise.
2465         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
2466         (gimple_canonical_type_eq): New function.
2467         (gimple_register_canonical_type): Likewise.
2468         (print_gimple_types_stats): Adjust for gimple_canonical_types.
2469         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
2470         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
2471         gimple_types_compatible_p for LTO.
2472
2473 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
2474
2475         PR target/46098
2476         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
2477         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
2478         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
2479         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
2480         (<sse>_movu<ssemodesuffix>): New expander.
2481         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
2482         (avx_movdqu<avxmodesuffix>): New expander.
2483         (*sse2_movdqu): Rename from sse2_movdqu.
2484         (sse2_movdqu): New expander.
2485
2486 2010-10-22  Richard Guenther  <rguenther@suse.de>
2487
2488         PR tree-optimization/45720
2489         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2490         Handle negative step.
2491         (vect_enhance_data_refs_alignment): Likewise.
2492         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
2493         (vect_create_cond_for_align_checks): Likewise.
2494         (vect_create_cond_for_alias_checks): Likewise.
2495
2496 2010-10-22  Ira Rosen  <irar@il.ibm.com>
2497
2498         PR tree-optimization/46126
2499         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
2500         vectorizable_shift in case of basic block vectorization.
2501
2502 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
2503
2504         * target.h (enum opt_levels, struct default_options): New.
2505         * target.def (handle_ofast): Remove hook.
2506         (target_option.optimization): Change to
2507         target_option.optimization_table.
2508         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
2509         TARGET_OPTION_OPTIMIZATION_TABLE.
2510         (CAN_DEBUG_WITHOUT_FP): Remove.
2511         * doc/tm.texi: Regenerate.
2512         * opts.c (maybe_default_option, maybe_default_options,
2513         default_options_table): New.
2514         (default_options_optimization): Take extra parameters.  Don't
2515         assert that global_options and global_options_set are in use.  Use
2516         maybe_default_options.
2517         (decode_options): Pass extra parameters to
2518         default_options_optimization.
2519         * common.opt (falign-loops): Use value 0 with Var.
2520         (frerun-cse-after-loop, ftree-ter): Remove Init.
2521         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
2522         TARGET_OPTION_OPTIMIZATION): Remove.
2523         * targhooks.c (empty_optimization_table): New.
2524         * targhooks.h (empty_optimization_table): Declare.
2525         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
2526         * config/alpha/alpha.c (alpha_option_optimization_table,
2527         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2528         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
2529         * config/arm/arm.c (arm_option_optimization: Change to
2530         arm_option_optimization_table.
2531         (TARGET_OPTION_OPTIMIZATION): Change to
2532         TARGET_OPTION_OPTIMIZATION_TABLE.
2533         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
2534         * config/avr/avr.c (avr_option_optimization_table,
2535         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2536         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
2537         * config/cris/cris.c (cris_option_optimization): Change to
2538         cris_option_optimization_table.
2539         (TARGET_OPTION_OPTIMIZATION): Change to
2540         TARGET_OPTION_OPTIMIZATION_TABLE.
2541         * config/crx/crx.c (crx_option_optimization): Change to
2542         crx_option_optimization_table.
2543         (TARGET_OPTION_OPTIMIZATION): Change to
2544         TARGET_OPTION_OPTIMIZATION_TABLE.
2545         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2546         * config/fr30/fr30.c (fr30_option_optimization_table,
2547         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2548         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
2549         * config/frv/frv.c (frv_option_optimization_table,
2550         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2551         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
2552         * config/h8300/h8300.c (h8300_option_optimization): Change to
2553         h8300_option_optimization_table.
2554         (TARGET_OPTION_OPTIMIZATION): Change to
2555         TARGET_OPTION_OPTIMIZATION_TABLE.
2556         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2557         * config/i386/i386.c (ix86_option_optimization): Change to
2558         ix86_option_optimization_table.
2559         (TARGET_OPTION_OPTIMIZATION): Change to
2560         TARGET_OPTION_OPTIMIZATION_TABLE.
2561         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2562         as initializer.
2563         * config/ia64/ia64.c (ia64_option_optimization): Change to
2564         ia64_option_optimization_table.
2565         (TARGET_OPTION_OPTIMIZATION): Change to
2566         TARGET_OPTION_OPTIMIZATION_TABLE.
2567         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
2568         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
2569         initializer.
2570         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2571         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2572         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2573         * config/lm32/lm32.c (lm32_option_optimization_table,
2574         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2575         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
2576         * config/m32r/m32r.c (m32r_option_optimization): Change to
2577         m32r_option_optimization_table.
2578         (TARGET_OPTION_OPTIMIZATION): Change to
2579         TARGET_OPTION_OPTIMIZATION_TABLE.
2580         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
2581         CAN_DEBUG_WITHOUT_FP): Remove.
2582         * config/mcore/mcore.c (mcore_option_optimization): Change to
2583         mcore_option_optimization_table.
2584         (TARGET_OPTION_OPTIMIZATION): Change to
2585         TARGET_OPTION_OPTIMIZATION_TABLE.
2586         * config/mep/mep.c (mep_option_optimization): Change to
2587         mep_option_optimization_table.
2588         (TARGET_OPTION_OPTIMIZATION): Change to
2589         TARGET_OPTION_OPTIMIZATION_TABLE.
2590         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
2591         * config/microblaze/microblaze.c
2592         (microblaze_option_optimization_table,
2593         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2594         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
2595         * config/mips/mips.c (mips_option_optimization_table,
2596         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2597         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
2598         * config/mmix/mmix.c (mmix_option_optimization): Change to
2599         mmix_option_optimization_table.
2600         (TARGET_OPTION_OPTIMIZATION): Change to
2601         TARGET_OPTION_OPTIMIZATION_TABLE.
2602         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
2603         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2604         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2605         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2606         * config/pa/pa.c (pa_option_optimization_table,
2607         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2608         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2609         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
2610         pdp11_option_optimization_table.
2611         (TARGET_OPTION_OPTIMIZATION): Change to
2612         TARGET_OPTION_OPTIMIZATION_TABLE.
2613         * config/picochip/picochip.c (picochip_option_optimization_table,
2614         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2615         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
2616         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
2617         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2618         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2619         * config/rx/rx.c (rx_option_optimization_table,
2620         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2621         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2622         * config/s390/s390.c (s390_option_optimization): Change to
2623         s390_option_optimization_table.
2624         (s390_option_override): Update comment.
2625         (TARGET_OPTION_OPTIMIZATION): Change to
2626         TARGET_OPTION_OPTIMIZATION_TABLE.
2627         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
2628         * config/score/score.c (score_option_optimization_table,
2629         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2630         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
2631         * config/sh/sh.c (sh_option_optimization): Change to
2632         sh_option_optimization_table.
2633         (TARGET_OPTION_OPTIMIZATION): Change to
2634         TARGET_OPTION_OPTIMIZATION_TABLE.
2635         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
2636         (sh_option_override, expand_block_move, multcosts, find_barrier,
2637         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
2638         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
2639         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
2640         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
2641         instead of TARGET_SMALLCODE.
2642         * config/sh/sh.opt (mspace): Make into an alias for -Os.
2643         * config/sparc/sparc.c (sparc_option_optimization_table,
2644         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2645         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
2646         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2647         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2648         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
2649         * config/v850/v850.c (v850_option_optimization): Change to
2650         v850_option_optimization_table.
2651         (TARGET_OPTION_OPTIMIZATION): Change to
2652         TARGET_OPTION_OPTIMIZATION_TABLE.
2653         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
2654         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
2655         xtensa_option_optimization_table.
2656         (TARGET_OPTION_OPTIMIZATION): Change to
2657         TARGET_OPTION_OPTIMIZATION_TABLE.
2658         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2659
2660 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
2661
2662         Based on the CFString implementation in FSF apple/trunk branch.
2663
2664         * target.def (objc_construct_string): New Hook.
2665         * doc/tm.texi (objc_construct_string): Document.
2666         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
2667         * config/t-darwin: Amend build rules for darwin.o.
2668         * config/darwin.opt: Add cfstrings flags.
2669         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
2670         (darwin_objc_construct_string): New.
2671         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
2672         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
2673         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
2674         (darwin_fold_builtin): Likewise.
2675         (darwin_build_constant_cfstring): Likewise.
2676         (darwin_objc_construct_string): Likewise.
2677         (darwin_cfstring_p): Likewise.
2678         (darwin_enter_string_into_cfstring_table): Likewise.
2679         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
2680         * config/darwin.c (darwin_running_cxx): New var.
2681         (machopic_select_section): Return cfstring_constant_object_section.
2682         (darwin_override_options): Set darwin_running_cxx.
2683         (add_builtin_field_decl): New.
2684         (darwin_init_cfstring_builtins): New.
2685         (darwin_build_constant_cfstring): New.
2686         (darwin_fold_builtin): New.
2687         (cfstring_hash): New.
2688         (cfstring_eq): New.
2689         (darwin_enter_string_into_cfstring_table): New.
2690         * config/darwin-sections.def (cfstring_constant_object_section): New.
2691         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
2692         (TARGET_OBJC_CONSTRUCT_STRING): Define.
2693
2694 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2695
2696         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
2697         TYPE_STUB_DECL instead of TREE_CHAIN.
2698         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
2699         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
2700         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
2701         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
2702         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
2703         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
2704         Likewise.
2705         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
2706
2707 2010-10-22  Jie Zhang  <jie@codesourcery.com>
2708
2709         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
2710         (copy_blkmode_from_reg): Likewise.
2711         (read_complex_part): Likewise.
2712         (expand_expr_real_1): Calculate packedp and pass it to
2713         extract_bit_field.
2714         * expr.h (extract_bit_field): Update declaration.
2715         * calls.c (store_unaligned_arguments_into_pseudos): Update call
2716         to extract_bit_field.
2717         * expmed.c (extract_fixed_bit_field): Update calls to
2718         extract_fixed_bit_field.
2719         (store_split_bit_field): Likewise.
2720         (extract_bit_field_1): Add new argument packedp.
2721         (extract_bit_field): Add new argument packedp.
2722         (extract_fixed_bit_field): Add new argument packedp and let
2723         packed attribute override volatile.
2724         * stmt.c (expand_return): Update call to extract_bit_field.
2725
2726 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2727
2728         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
2729
2730 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2731
2732         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
2733         of gcc_checking_assert.
2734         * sel-sched.c (code_motion_process_successors): Likewise.
2735
2736 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
2737
2738         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
2739         when stopping because of a different locus on edge or insn.
2740         (try_optimize_cfg): Add comment.
2741         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
2742         block is a forwarder block, propagate locus on the edge.
2743         (cfg_layout_merge_blocks): Likewise.
2744
2745 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
2746
2747         PR target/45946
2748         * config/i386/i386.md (*pushti2): New insn pattern.
2749         (pushti2 splitter): New insn splitter.
2750         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
2751         DWI mode iterator.
2752
2753 2010-10-21  Paul Koning  <ni1d@arrl.net>
2754
2755         * config/pdp11/pdp11-protos.md (arith_operand,
2756         const_immediate_operand, expand_shift_operand,
2757         immediate15_operand): Delete
2758         * config/pdp11/pdp11.c: Ditto.
2759         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
2760         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2761         EXTRA_CONSTRAINT): Delete.
2762         * config/pdp11/pdp11.md (various): Use standard constraints
2763         instead of removed ones.
2764         * config/pdp11/constraints.md: New file.
2765         * config/pdp11/predicates.md: New file.
2766
2767 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
2768
2769         PR c/45834
2770         * alias.c (true_dependence_1): Remove obsolete check for QImode.
2771         (may_alias_p): Ditto.
2772
2773 2010-10-21  Martin Jambor  <mjambor@suse.cz>
2774
2775         PR tree-optimization/45875
2776         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
2777
2778 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2779
2780         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
2781         variables.
2782         (create_new_def_for): Likewise.
2783
2784 2010-10-21  Nick Clifton  <nickc@redhat.com>
2785
2786         * config/mn10300/mn10300.c: Fold code to 80-character width.
2787         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
2788         MEM, CONST_INT and CONST_DOUBLE.
2789         (targetm): Move initialization to end of file.
2790         (print_operand): Rename to mn10300_print_operand.
2791         (print_operand_address): Rename to mn10300_print_operand_address.
2792         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
2793         (expand_prologue): Rename to mn10300_expand_prologue.
2794         (expand_epilogue): Rename to mn10300_expand_epilogue.
2795         (initial_offset): Rename to mn10300_initial_offset.
2796         (function_arg): Rename to mn10300_function_arg.
2797         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
2798         (symbolic_operand): Rename to mn10300_symbolic_operand.
2799         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
2800         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
2801         * config/mn10300/mn10300-protos.h: Update prototypes.
2802         * config/mn10300/mn10300.h: Fold code to 80-character width.
2803         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
2804         MEM, CONST_INT and CONST_DOUBLE.
2805         (CPP_SPEC): Move to...
2806         (TARGET_CPU_CPP_BUILTINS): ... here.
2807         * config/mn10300/mn10300.md: Fold code to 80-character width.
2808         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
2809         MEM, CONST_INT and CONST_DOUBLE.
2810
2811 2010-10-21  Ira Rosen  <irar@il.ibm.com>
2812
2813         PR tree-optimization/46049
2814         PR tree-optimization/46052
2815         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
2816         (vect_get_slp_defs): Add arguments.
2817         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
2818         operands to vect_get_slp_defs.
2819         (vectorizable_reduction): Fix comment, pass scalar operands to
2820         vect_get_slp_defs.
2821         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
2822         type to determine number of units in the created vector.
2823         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
2824         (vectorizable_conversion): Fix comment.
2825         (vectorizable_shift): New function.
2826         (vectorizable_operation): Move code that handles shifts to
2827         vectorizable_shift.
2828         (vectorizable_type_demotion): Fix comment, pass scalar operands to
2829         vect_get_slp_defs.
2830         (vectorizable_type_promotion, vectorizable_store): Likewise.
2831         (vectorizable_condition): Fix comment.
2832         (vect_analyze_stmt): Call vectorizable_shift.
2833         (vect_transform_stmt): Likewise.
2834         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
2835         Use it as the operand to create vectors for, except reduction
2836         initial definition and store.  Use operands type.
2837         (vect_get_slp_defs): Add new arguments.  Pass them to
2838          vect_get_constant_vectors.
2839
2840 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2841
2842         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
2843         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
2844         * cfghooks.c (fixup_reorder_chain): Likewise.
2845         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
2846         * cgraph.c (cgraph_add_thunk): Likewise.
2847         (cgraph_create_edge_1): Likewise.
2848         (cgraph_create_virtual_clone): Likewise.
2849         * ddg.c (add_cross_iteration_register_deps): Likewise.
2850         * dwarf2out.c (modified_type_die): Likewise.
2851         * emit-rtl.c (set_mem_alias_set): Likewise.
2852         * ggc-zone.c (zone_allocate_marks): Likewise.
2853         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
2854         * gimple.c (iterative_hash_gimple_type): Likewise.
2855         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
2856         (create_single_exit_edge): Likewise.
2857         * haifa-sched.c (choose_ready): Likewise.
2858         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2859         * passes.c (execute_todo): Likewise.
2860         * sched-ebb.c (begin_schedule_ready): Likewise.
2861         * sel-sched.c (code_motion_process_successors): Likewise.
2862         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
2863         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
2864         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
2865         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
2866         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
2867         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
2868         (ssa_conflicts_add): Likewise.
2869         * tree-ssa-copy.c (replace_exp): Likewise.
2870         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
2871         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
2872         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2873         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
2874         (compute_antic): Likewise.
2875         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
2876         (add_dependence): Likewise.
2877         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
2878         * tree-vrp.c (supports_overflow_infinity): Likewise.
2879         (make_overflow_infinity, negative_overflow_infinity): Likewise.
2880         (avoid_overflow_infinity, register_new_assert_for): Likewise.
2881         (process_assert_insertions_for): Likewise.
2882         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
2883         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
2884         (intersect_loc_chains, variable_merge_over_cur): Likewise.
2885
2886 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2887
2888         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
2889         * reload1.c (has_nonexceptional_receiver): Likewise.
2890         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
2891         (create_new_def_for): Likewise.
2892         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
2893         (merge_phi_nodes): Likewise.
2894         (has_abnormal_incoming_edge_p): Delete.
2895
2896 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
2897
2898         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
2899
2900 2010-10-21  Richard Guenther  <rguenther@suse.de>
2901             Michael Matz  <matz@suse.de>
2902
2903         PR tree-optimization/45764
2904         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2905         Adjust initial misalignment for negative DR_STEP.
2906         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
2907         do not have the same alignment over the whole iteration domain.
2908
2909 2010-10-21  Richard Guenther  <rguenther@suse.de>
2910
2911         PR tree-optimization/46111
2912         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
2913
2914 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2915
2916         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
2917
2918 2010-10-21  Tristan Gingold  <gingold@adacore.com>
2919
2920         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
2921         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
2922
2923 2010-10-21  Tristan Gingold  <gingold@adacore.com>
2924
2925         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
2926         signal_frame.
2927         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
2928
2929 2010-10-21  Tristan Gingold  <gingold@adacore.com>
2930
2931         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
2932         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
2933
2934 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
2935
2936         * basic-block.h (find_fallthru_edge): Define.
2937         * cfgcleanup.c (merge_blocks_move): Use it.
2938         (try_crossjump_bb): Likewise.
2939         * cfglayout.c (fixup_reorder_chains): Likewise.
2940         (fixup_fallthru_exit_predecessor): Likewise.
2941         * cfgrtl.c (rtl_split_edge): Likewise.
2942         (rtl_verify_flow_info): Likewise.
2943         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2944         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
2945         * ifcvt.c (block_fallthru): Likewise.
2946         * reload1.c (fixup_abnormal_edges): Likewise.
2947         * sched-ebb.c (being_schedule_ready): Likewise.
2948         (schedule_ebb): Likwise.
2949         * sched-rgn.c (find_single_block_region): Likewise.
2950         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
2951         * tree-complex.c (expand_complex_move): Likewise.
2952         * sched-int.h (find_fallthru_edge): Rename to...
2953         (find_fallthru_edge_from): ...this.
2954         * haifa-sched.c (find_fallthru_edge): Rename to...
2955         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
2956         (init_before_recovery): Call find_fallthru_edge_from.
2957         * sel-sched-ir.c (merge_fences): Likewise.
2958         * sel-sched.c (in_fallthru_bb_p): Likewise.
2959         (move_cond_jump): Likewise.
2960
2961 2010-10-20  Paul Koning  <ni1d@arrl.net>
2962
2963         * config/pdp11/pdp11.md (various): Fix conditions on a number of
2964         insn to check for target 11/40 or higher.
2965
2966 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2967
2968         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
2969         bool instead of a tree.
2970         (c_parser_objc_method_decl): Added bool argument.  Updated call to
2971         objc_build_method_signature.
2972         (c_parser_objc_method_definition): Do not call
2973         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
2974         c_parser_objc_method_decl and objc_start_method_definition.
2975         (c_parser_objc_methodproto): Do not call objc_set_method_type.
2976         Updated calls to c_parser_objc_method_type,
2977         c_parser_objc_method_decl and objc_add_method_declaration.
2978
2979 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
2980
2981         PR tree-optimization/45919
2982         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
2983         array members.
2984
2985         PR tree-optimization/46066
2986         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
2987         instead of gsi_last_bb.
2988
2989 2010-10-20  DJ Delorie  <dj@redhat.com>
2990
2991         * config/m32c/m32c.c (m32c_option_override): Always disable
2992         function-cse in 16-bit mode.  Indirect calls are always worse than
2993         direct calls as there is no 16-bit indirect call opcode.
2994         (m32c_override_options_after_change): New, likewise.
2995
2996 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
2997
2998         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
2999         emitting the conditional move in the inner mode of the SUBREG.
3000
3001 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
3002
3003         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
3004         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
3005         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
3006         (ia64_preferred_reload_class): Make static.  Change rclass argument
3007         and result types from enum reg_class to reg_class_t.
3008
3009 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
3010
3011         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
3012         call for single operand expression.
3013
3014 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
3015
3016         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
3017         if there is a call statement to pure or const function in the block.
3018
3019 2010-10-20  Paul Koning  <pkoning@equallogic.com>
3020
3021         Fix several build errors for pdp11 target.
3022         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
3023         (cbranchdf4): Conditional on TARGET_FPU.
3024         (movdf): Ditto; correct alternatives check.
3025         (movmemhi): Fix predicate and constraint.
3026         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
3027
3028 2010-10-20  Richard Guenther  <rguenther@suse.de>
3029
3030         PR lto/45667
3031         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
3032         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
3033         (verify_gimple_assign_single): Disable ADDR_EXPR type check
3034         when in LTO.
3035
3036 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
3037
3038         PR fortran/42169
3039         * ira-emit.c (store_can_be_removed_p): Return false instead of
3040         gcc_unreachable.
3041
3042 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
3043
3044         * fold-const.c (fold_binary_loc): New transformation.
3045
3046 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
3047
3048         PR target/46085
3049         * config/i386/sse.md (reduc_splus_v8sf): Updated.
3050         (reduc_splus_v4df): Likewise.
3051
3052 2010-10-20  Richard Guenther  <rguenther@suse.de>
3053
3054         PR tree-optimization/45860
3055         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
3056         conditional store replacement for non-register type stores.
3057
3058 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
3059
3060         * stor-layout.c (skip_simple_constant_arithmetic): New function.
3061         (self_referential_size): Use it instead of skip_simple_arithmetic.
3062
3063 2010-10-20  Olivier Hainque  <hainque@adacore.com>
3064
3065         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
3066         If the current function calls eh_return, claim live all registers
3067         that we need to check for liveness otherwise.
3068
3069 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
3070
3071         * c-decl.c (c_write_global_declarations): Call
3072         objc_write_global_declarations when compiling Objective-C.
3073         * c-lang.c (finish_file): Removed.
3074
3075 2010-10-19  DJ Delorie  <dj@redhat.com>
3076
3077         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
3078         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
3079         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
3080         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
3081         * doc/tm.texi: Regenerate.
3082         * targhooks.h (default_label_align_after_barrier_max_skip,
3083         default_loop_align_max_skip, default_label_align_max_skip,
3084         default_jump_align_max_skip): Declare.
3085         * target.def (label_align_after_barrier_max_skip): New.
3086         (loop_align_max_skip): New.
3087         (label_align_max_skip): New.
3088         (jump_align_max_skip): New.
3089         * system.h (poison): Add those macros to the list.
3090         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
3091         (LOOP_ALIGN_MAX_SKIP): Remove.
3092         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
3093         (JUMP_ALIGN_MAX_SKIP): Remove.
3094         (default_label_align_after_barrier_max_skip): New.
3095         (default_loop_align_max_skip): New.
3096         (default_label_align_max_skip): New.
3097         (default_jump_align_max_skip): New.
3098         (compute_alignments): Use the new hooks.
3099         (shorten_branches): Likewise.
3100
3101 2010-10-19  Richard Henderson  <rth@redhat.com>
3102
3103         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
3104         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
3105         (fma4i_fmadd_<mode>): New.
3106         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
3107         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
3108         standard fma patterns.
3109         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
3110         enable for FMA.
3111         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
3112         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
3113         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
3114
3115 2010-10-19  Paul Koning  <pkoning@equallogic.com>
3116
3117         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
3118         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
3119
3120 2010-10-19  Richard Henderson  <rth@redhat.com>
3121
3122         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
3123         (fmadf4, *fmsdf4, *nfmadf4): New.
3124         (fmaxf4, *fmsxf4, *nfmaxf4): New.
3125
3126 2010-10-19  Michael Eager  <eager@eagercon.com>
3127
3128         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
3129         Use sjlj unwind info for exceptions.
3130
3131 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
3132
3133         PR fortran/43414
3134         * dwarf2out.c (add_calling_convention_attribute): Flag main
3135         Fortran subroutine with DW_AT_main_subprogram.
3136
3137 2010-10-19  Nick Clifton  <nickc@redhat.com>
3138
3139         * config/rx/rx.c (rx_function_value): Small integer types are
3140         promoted to SImode.
3141         (rx_promote_function_mode): New function.
3142         (TARGET_PROMOTE_FUNCTION_MODE): Define.
3143
3144 2010-10-19  Nick Clifton  <nickc@redhat.com>
3145
3146         * config/mep/mep.c (mep_print_operand): Use
3147         targetm.strip_name_encoding.
3148         (mep_output_aligned_common): Likewise.
3149
3150 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
3151
3152         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
3153
3154 2010-10-18  Richard Henderson  <rth@redhat.com>
3155
3156         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
3157         (fma (neg a) (neg b) c) and (fma a (neg b) c).
3158
3159 2010-10-18  Richard Henderson  <rth@redhat.com>
3160
3161         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
3162         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
3163         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
3164         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
3165         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
3166         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
3167         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
3168         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
3169         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
3170         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
3171         (bdesc_multi_arg): Remove the corresponding builtins.
3172         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
3173         (UNSPEC_FMA4_FMSUBADD): Remove.
3174         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
3175         * config/i386/sse.md (FMA4MODEF4): Remove.
3176         (FMAMODE): Add.
3177         (fma<mode>4): New expander.
3178         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
3179         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
3180         (*fma4i_fmsub_<mode>): Similarly.
3181         (*fma4i_fnmadd_<mode>): Similarly.
3182         (*fma4i_fnmsub_<mode>): Similarly.
3183         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
3184         with the first operand.
3185         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
3186         of explicit arithmetic.  Macroize with AVXMODEF2P.
3187         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
3188         (xop_frcz<mode>2): Macroize with FMAMODE.
3189         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
3190         the first operand.
3191         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
3192         extra negations.
3193         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
3194         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
3195         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
3196         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
3197         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
3198         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
3199         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
3200         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
3201
3202 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
3203
3204         PR rtl-optimization/45966
3205         * combine.c (try_combine): If added_sets_2, deal with the case
3206         where i0 feeds i1 and i1 feeds i2.
3207
3208 2010-10-18  Jan Hubicka  <jh@suse.cz>
3209
3210         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
3211         preserve flags before trying to guess on visibility.
3212         (varpool_externally_visible_p): New function.
3213         (function_and_variable_visibility): Use it.
3214
3215 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3216
3217         Implemented parsing @synthesize and @dynamic for Objective-C.
3218         * c-parser.c (c_parser_external_declaration): Recognize
3219         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
3220         (c_parser_objc_at_synthesize_declaration): New.
3221         (c_parser_objc_at_dynamic_declaration): New.
3222
3223 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3224
3225         * c-parser.c (c_parser_objc_class_declaration): After finding an
3226         error, parse the whole declaration then reset parser->error.
3227
3228 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
3229
3230         PR target/46041
3231         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
3232         * builtins.c (mode_has_fma): Ditto.
3233
3234 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
3235
3236         PR target/36898
3237         PR middle-end/43760
3238         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
3239
3240 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
3241
3242         * config/i386/i386.c (ix86_option_override_internal): Define and
3243         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
3244         default.
3245         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
3246         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
3247
3248 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3249
3250         Merge from 'apple/trunk' branch on FSF servers.
3251         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
3252         following Objective-C change:
3253
3254         2005-10-10  Fariborz Jahanian  <fjahanian@apple.com>
3255
3256         Radar 4301047
3257         * c-parse.in (objc_quals): Build objc qualifier list same way
3258         as gcc-3.3
3259
3260 2010-10-18  Jan Hubicka  <jh@suse.cz>
3261
3262         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
3263         function_and_variable_visibility): Revert accidental commit.
3264
3265 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
3266
3267         Merge from 'apple/trunk' branch on FSF servers.
3268         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
3269         the following Objective-C change:
3270
3271         2005-10-07  Fariborz Jahanian  <fjahanian@apple.com>
3272
3273         Radar 4204796
3274         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
3275         'volatilized' type used in a typeof operator.
3276
3277 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
3278
3279         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
3280         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
3281         rewrite modelled on gimple_purge_dead_eh_edges.
3282         (gimple_purge_all_dead_abnormal_call_edges): New function.
3283         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
3284         directly instead of through gimple_purge_dead_abnormal_call_edges.
3285         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
3286         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
3287         removed AB side-effects from one of its statements.
3288         (init_pre): Initialize need_ab_cleanup.
3289         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
3290         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
3291
3292 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
3293
3294         PR c/46015
3295         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
3296         on computed goto argument.
3297
3298 2010-10-18  Richard Guenther  <rguenther@suse.de>
3299
3300         PR tree-optimization/45967
3301         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
3302         (could_have_pointers): Likewise.
3303         (handle_rhs_call, handle_const_call, handle_pure_call,
3304         find_func_aliases, intra_create_variable_infos): Remove calls to them.
3305         (struct fieldoff): Add must_have_pointers field.
3306         (type_must_have_pointers): New function.
3307         (field_must_have_pointers): Likewise.
3308         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
3309         Adjust field merging.
3310         (create_function_info_for): May-have-pointers of varinfo is
3311         almost always true.
3312         (create_variable_info_for_1): Likewise.
3313
3314 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
3315
3316         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
3317         of operands to vec_concat.
3318
3319 2010-10-18  Richard Guenther  <rguenther@suse.de>
3320
3321         PR lto/44950
3322         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
3323         also clear references to entries of it.
3324
3325 2010-10-18  Andi Kleen  <ak@linux.intel.com>
3326
3327         PR other/43448
3328         * gccbug.in: Remove.
3329         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
3330         (doc, distclean, install-common): Remove reference to gccbug.
3331         * configure: Regenerate.
3332         * configure.ac (all_outputs): Remove gccbug.
3333         * doc/configfiles.texi: Remove references to gccbug.
3334         * doc/sourcebuild.texi: Dito.
3335
3336 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
3337
3338         PR middle-end/46019
3339         * fold-const.c (fold_binary_loc): If integer_pow2p has
3340         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
3341
3342 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
3343             Jeremie Salvucci  <jeremie.salvucci@free.fr>
3344
3345         * gengtype.c (verbosity_level): Add variable.
3346         (set_gc_used): Count variables for verbosity.
3347         (close_output_files): Backing up files, counting written ones
3348         verbosily.
3349         (write_types): Count emitted functions for verbosity. Added
3350         debug messages.
3351         (write_enum_defn): Count structures for verbosity. Added debug
3352         messages.
3353         (gengtype_long_options): Add "verbose" & "backupdir".
3354         (print_usage): Ditto.
3355         (main): Verbose display of parsed files.
3356
3357         * gengtype.h (verbosity_level): Add declaration.
3358
3359 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
3360
3361         * gengtype.c (parse_program_options): Add allocation of
3362         plugin_files, and correct test on nb_plugin_files.
3363
3364 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3365
3366         Merge from 'apple/trunk' branch on FSF servers.
3367
3368         2006-03-27 Fariborz Jahanian  <fjahanian@apple.com>
3369
3370         Radar 4133425
3371         * c-decl.c (undeclared_variable): Issue diagnostic on
3372         private 'ivar' access.
3373
3374 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
3375
3376         PR target/46051
3377         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
3378         generated sequence to match *avx_vperm2f128<mode>_nozero.
3379         (vec_interleave_lowv4df): Ditto.
3380         (vec_interleave_highv8sf): Ditto.
3381         (vec_interleave_lowv8sf): Ditto.
3382
3383 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
3384
3385         * libgcov.c (create_file_directory): Enable it for win32 case.
3386         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
3387         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
3388         (GCOV_PREFIX_SKIP): Likewise.
3389
3390 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3391
3392         * doc/objc.texi (GNU Objective-C runtime API): New section.
3393         (Modern GNU Objective-C runtime API): New section.
3394         (Traditional GNU Objective-C runtime API): New section.
3395         (Executing code before main): Mention that this section is
3396         specific to the GNU Objective-C runtime.
3397         (Garbage Collection): Same.
3398
3399 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
3400
3401         * c-parser.c (c_parser_for_statement): Move initialization of
3402         cond and incr before if.
3403
3404 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
3405
3406         * target.def (preferred_output_reload_class): New hook.
3407         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
3408         * doc/tm.texi: Regenerate.
3409         * targhooks.c (default_preferred_output_reload_class): New function.
3410         * targhooks.h (default_preferred_output_reload_class): Declare.
3411         * reload.c (find_dummy_reload): Change rclass argument type from
3412         enum reg_class to reg_class_t. Change this_alternative array type
3413         from enum reg_class to reg_class_t.
3414         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
3415         (push_reload): Change preferred_class variable type to reg_class_t.
3416         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
3417         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
3418         argument type from enum reg_class to reg_class_t. Use
3419         HARD_REGISTER_NUM_P predicate.
3420         * recog.h (reg_fits_class_p): Update prototype.
3421
3422         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3423         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
3424         Remove.
3425         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
3426         static. Change regclass argument and result types from enum reg_class
3427         to reg_class_t.
3428         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3429
3430 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
3431
3432         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
3433         visibility enum, and handle @package.
3434
3435 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3436
3437         * doc/objc.texi (What you can and what you cannot do in +load):
3438         Document that sending messages to constant string objects in +load
3439         is not guaranteed to work.
3440
3441 2010-10-16  Jan Hubicka  <jh@suse.cz>
3442
3443         PR middle-end/44206
3444         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
3445         existence of refrences before removing the function.
3446
3447 2010-10-16  Jan Hubicka  <jh@suse.cz>
3448
3449         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
3450         only_called_at_startup and only_called_at_exit.
3451         (cgraph_propagate_frequency): Compute only_called_at_startup and
3452         only_called_at_exit.
3453         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
3454         only_called_at_exit.
3455         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
3456         flags.
3457         * predict.c (compute_function_frequency): Initialize the new flags.
3458
3459 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3460
3461         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
3462         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
3463         on the bounds of its domain.
3464         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
3465
3466 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
3467
3468         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
3469         * config/avr/avr-protos.h (preferred_reload_class): Remove.
3470         * config/avr/avr.c (preferred_reload_class): Remove.
3471         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
3472         * config/pa/pa.c (emit_move_sequence): Update comment
3473         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
3474         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
3475         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
3476         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
3477         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
3478         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
3479         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
3480         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
3481         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
3482         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
3483         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
3484         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
3485         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
3486
3487 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
3488
3489         * opts.c (set_fast_math_flags,
3490         set_unsafe_math_optimizations_flags): Make static.
3491         * toplev.h (set_fast_math_flags,
3492         set_unsafe_math_optimizations_flags): Remove prototypes.
3493
3494 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
3495
3496         * config/arm/arm.c (arm_option_optimization): Set
3497         flag_section_anchors to 1 not 2.
3498         * config/i386/i386.c (ix86_option_override_internal): Check
3499         global_options_set.x_flag_zee and
3500         global_options_set.x_flag_omit_frame_pointer.
3501         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
3502         flag_zee to 2.
3503         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
3504         global_options_set.x_flag_omit_frame_pointer.
3505         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
3506         opts->x_flag_section_anchors to 1 not 2.
3507         * config/sh/sh.c (sh_option_optimization): Don't set
3508         flag_schedule_insns to 2.
3509         (sh_option_override): Check
3510         global_options_set.x_flag_schedule_insns.
3511         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
3512
3513 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
3514
3515         * configure.ac: Make sure inhibit_libc remains false for mingw targets
3516         as cross.
3517         * configure: Regenerated.
3518
3519 2010-10-15  Xinliang David Li  <davidxl@google.com>
3520
3521         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
3522         function.
3523         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
3524         into a recursive function.
3525
3526 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
3527
3528         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
3529         (*movdfcc_1): ditto.
3530
3531 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3532
3533         * target.def (target_option.init_struct): New hook.
3534         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
3535         * doc/tm.texi: Regenerate.
3536         * hooks.c (hook_void_gcc_optionsp): New.
3537         * hooks.h (hook_void_gcc_optionsp): Declare.
3538         * langhooks-def.h (lhd_init_options_struct): Remove.
3539         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
3540         * langhooks.c (lhd_init_options_struct): Remove.
3541         * opts.c (init_options_struct): Also call
3542         targetm.target_option.init_struct.
3543         * config/i386/i386.c (ix86_option_init_struct,
3544         TARGET_OPTION_INIT_STRUCT): New.
3545         (ix86_option_optimization): Move some settings to
3546         ix86_option_init_struct.
3547         * config/pdp11/pdp11.c (pdp11_option_init_struct,
3548         TARGET_OPTION_INIT_STRUCT): New.
3549         (pdp11_option_optimization): Move some settings to
3550         pdp11_option_init_struct.
3551         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
3552         rs6000_option_init_struct.  Use options structure pointer.
3553         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3554         * config/s390/s390.c (s390_option_init_struct,
3555         TARGET_OPTION_INIT_STRUCT): New.
3556         (s390_option_optimization): Don't set
3557         flag_asynchronous_unwind_tables here.
3558         * config/sh/sh.c (sh_option_init_struct,
3559         TARGET_OPTION_INIT_STRUCT): New.
3560         (sh_option_optimization): Don't set flag_finite_math_only here.
3561         * config/spu/spu.c (spu_option_optimization): Replace by
3562         spu_option_optimization.  Use options structure pointer.
3563         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3564
3565 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3566
3567         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
3568
3569         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
3570         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
3571         (Standard names): Document fma.
3572
3573         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
3574         __FP_FAST_FMAF, __FP_FAST_FMAL.
3575
3576         * builitns.c (expand_builtin_mathfn_ternary): New function for
3577         expanding ternary math functions, like fma.
3578         (expand_builtin): Call it for the fma builtins.
3579
3580         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
3581         ops at present.
3582
3583         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
3584         vectorizable functions to support vectorizing fma.
3585
3586         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
3587         Handle fma builtins.
3588
3589         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
3590         (UNSPEC_VSX_MSUB): Ditto.
3591         (UNSPEC_VSX_NMADD): Ditto.
3592         (UNSPEC_VSX_NMSUB): Ditto.
3593         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
3594         of UNSPEC. Renumber combiner patterns.
3595         (vsx_fmsub<mode>4*): Ditto.
3596         (vsx_fnmadd<mode>4*): Ditto.
3597         (vsx_fnmsub<mode>4*): Ditto.
3598
3599         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
3600         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
3601         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
3602         (altivec_vmaddfp_1): Ditto.
3603         (altivec_vmaddfp_2): Ditto.
3604         (atlivec_mulv4sf3): Ditto.
3605         (altivec_vnmsubfp): Ditto.
3606         (altivec_vnmsubfp_1): Ditto.
3607         (altivec_vnmsubfp_2): Ditto.
3608         (altivec_vnmsubfp_3): Delete.
3609
3610         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
3611         (fmasf4_fpr): Ditto.
3612         (fmssf4_fpr): Ditto.
3613         (fnmasf4_fpr): Ditto.
3614         (fnmssf4_fpr): Ditto.
3615         (fmadf4): Ditto.
3616         (fmadf4_fpr): Ditto.
3617         (fmsdf4_fpr): Ditto.
3618         (fnmadf4_fpr): Ditto.
3619         (fnmsdf4_fpr): Ditto.
3620
3621         * optabs.h (OTI_fma): Add fma optab.
3622         (fma_optab): Ditto.
3623
3624         * genopinit.c (optabs): Set fma optab.
3625
3626         * rtl.def (FMA): Add FMA rtl.
3627
3628         * tree.h (mode_has_fma): New function to return if MODE supports a
3629         fast multiply and add instruction.
3630         * builtins.c (mode_has_fma): Ditto.
3631
3632 2010-10-15  Jan Hubicka  <jh@suse.cz>
3633
3634         * lto-streamer-out.c (write_symbol): Use pointer set of seen
3635         objects instead of bitmap.
3636         (produce_symtab): Likewise; output defined symbols first.
3637
3638 2010-10-15  Jie Zhang  <jie@codesourcery.com>
3639
3640         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
3641         Option Summary and Index.
3642
3643 2010-10-15  Richard Guenther  <rguenther@suse.de>
3644
3645         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
3646         for automatic variables again.
3647
3648 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3649
3650         * doc/extend.texi (Variable Length): Don't refer to VLAs not
3651         conforming to C99.
3652
3653 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3654
3655         * config/rx/rx.c (rx_option_optimization): Change to
3656         rx_override_options_after_change.  Don't change
3657         flag_lto_compression_level.  Don't check for changes to whether
3658         FPU instructions can be used.  Check and set only
3659         flag_finite_math_only, not other fast-math flags.
3660         (rx_option_override): Call rx_override_options_after_change.
3661         (TARGET_OPTION_OPTIMIZATION): Remove.
3662         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3663
3664 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3665
3666         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
3667         disable section anchors for lang_hooks.name[4] != 'O'.
3668
3669 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3670
3671         * config/frv/frv.c (frv_option_optimization,
3672         TARGET_OPTION_OPTIMIZATION): Remove.
3673         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
3674
3675 2010-10-15  Michael Matz  <matz@suse.de>
3676
3677         * cgraphunit.c (clone_of_p): Define unconditionally.
3678
3679 2010-10-15  Richard Guenther  <rguenther@suse.de>
3680
3681         PR lto/45957
3682         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
3683
3684 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
3685
3686         * ifcvt.c (find_active_insn_before): New function.
3687         (find_active_insn_after): New function.
3688         (cond_exec_process_if_block): Use new functions to replace
3689         prev_active_insn() and next_active_insn().
3690
3691 2010-10-14  Yao Qi  <yao@codesourcery.com>
3692
3693         PR target/45447
3694         * config/arm/arm.c (arm_build_builtin_va_list): Assign
3695         va_list_name to TYPE_STUB_DECL (va_list_type).
3696
3697 2010-10-14  Jan Hubicka  <jh@suse.cz>
3698
3699         PR middle-end/45621
3700         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
3701         redirected to clone, be happy.
3702         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
3703         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
3704         former_clone_of unconditionally.
3705
3706 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3707
3708         Merge from FSF apple 'trunk' branch.
3709         2006 Fariborz Jahanian  <fjahanian@apple.com>
3710
3711         Radars 4436866, 4505126, 4506903, 4517826
3712         * c-parser.c (c_parser, objc_property_attr_context) New flag.
3713         (c_lex_one_token): Handle property attributes.
3714         (c_parser_external_declaration): Handle @property.
3715         (c_parser_declaration_or_fndef): Warn on invalid attributes before
3716         @alias, @class, @end and @property objc keywords.
3717         (c_parser_objc_methodprotolist): Handle @property.
3718         (c_parser_objc_property_attrlist): New.
3719         (c_parser_objc_at_property): New.
3720         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
3721         (build_modify_expr): Likewise.
3722
3723 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
3724
3725         PR tree-optimization/46008
3726         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
3727
3728 2010-10-14  Richard Guenther  <rguenther@suse.de>
3729
3730         PR tree-optimization/44913
3731         * tree-data-ref.c (disjoint_objects_p): Remove.
3732         (dr_may_alias_p): Simplify.  Only hand the base object to
3733         the alias-oracle.
3734         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3735         some more trees, bail out instead of asserting.
3736         (ptr_derefs_may_alias_p): Likewise.  Export.
3737         (refs_may_alias_p_1): Handle STRING_CSTs.
3738         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
3739
3740 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
3741
3742         PR c/45969
3743         * c-typeck.c (build_binary_op): Don't try to compute a semantic
3744         type with excess precision for boolean operations.
3745
3746 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
3747             Basile Starynkevitch  <basile@starynkevitch.net>
3748
3749         * gengtype.c:  Include getopt.h and version.h.
3750
3751         (lang_bitmap, struct outf, outf_p)
3752         (get_output_file_with_visibility, oprintf): Definitions moved to
3753         gengtype.h
3754         (output_files, header_file, srcdir, srcdir_len, this_file)
3755         (do_dump): No more static variables.
3756         (do_debug): New.
3757         (dbgprint_count_type_at): Added new function.
3758         (gengtype_long_options): New.
3759         (print_usage, print_version, parse_program_options): New.
3760         (main): Call parse_program_options, and removed old option
3761         handling code.  Added some debug output.
3762
3763         * gengtype.h:  Updated copyright year.
3764         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
3765         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
3766         Moved from gengtype.c to here.
3767         (do_debug, read_state_filename, write_state_filename): New variables.
3768         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
3769
3770         * Makefile.in:
3771         (REVISION): Always defined.
3772         (version.o): Removed ifdef REVISION_c.
3773         (s-gtype): Pass arguments to build/gengtype program.
3774         (build/version.o): Added building rule.
3775         (build/gengtype$(build_exeext)): Added build/version.o.
3776
3777 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3778
3779         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
3780         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
3781         __strong macros.
3782
3783 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
3784
3785         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
3786         may_trap_or_fault_p instead of may_trap_p predicate.
3787         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
3788         (substitute_placeholder_in_expr): Likewise.
3789         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
3790         flag on MEM_REF nodes.
3791         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
3792         flags on INDIRECT_REF nodes.
3793
3794 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
3795
3796         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
3797         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
3798         (arm*-*-eabi*) <tm_file>: Likewise.
3799         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
3800         (frv-*-*linux*) <tm_file>: Likewise.
3801         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
3802         and associated helper macros.
3803         * config/frv/frv-abi.h: Delete.
3804
3805 2010-10-14  Richard Guenther  <rguenther@suse.de>
3806
3807         PR lto/44561
3808         * tree.def (NULLPTR_TYPE): New tree code.
3809         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
3810         * dwarf2out.c (is_base_type): Likewise.
3811         (gen_type_die_with_usage): Likewise.
3812         * sdbout.c (plain_type_1): Likewise.
3813         * tree.c (build_int_cst_wide): Likewise.
3814         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
3815
3816 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
3817
3818         * params.c (params_finished): New.
3819         (add_params): Assert !params_finished.
3820         (finish_params): New.
3821         (set_param_value_internal): Take params and params_set
3822         parameters.  Assert params_finished.
3823         (set_param_value, maybe_set_param_value): Take params and
3824         params_set parameters.  Update calls to set_param_value_internal.
3825         (set_default_param_value): Assert !params_finished.  Don't use
3826         set_param_value_internal.
3827         (default_param_value, init_param_values): New.
3828         * params.h (struct param_info): Change value to default_value.
3829         Remove set.
3830         (set_param_value, maybe_set_param_value): Add params and
3831         params_set parameters.
3832         (PARAM_VALUE): Get parameters from global_options.
3833         (PARAM_SET_P): Remove.
3834         (finish_params, default_param_value, init_param_values): New.
3835         * common.opt (param_values): New Variable.
3836         * config/arm/arm.c (arm_option_override): Pass extra arguments to
3837         maybe_set_param_value.
3838         * config/i386/i386.c (ix86_option_override_internal): Pass extra
3839         arguments to maybe_set_param_value.
3840         * config/picochip/picochip.c (picochip_option_override): Pass
3841         extra arguments to maybe_set_param_value.
3842         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
3843         extra arguments to maybe_set_param_value.
3844         * config/s390/s390.c (s390_option_override): Use
3845         maybe_set_param_value instead of set_param_value.  Pass extra
3846         arguments to maybe_set_param_value.
3847         * config/sparc/sparc.c (sparc_option_override): Pass extra
3848         arguments to maybe_set_param_value.
3849         * config/spu/spu.c (spu_option_override): Pass extra arguments to
3850         maybe_set_param_value.
3851         * opts.c (handle_param): Take opts and opts_set parameters.
3852         Update call to set_param_value.
3853         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
3854         initial_loop_invariant_max_bbs_in_loop): Remove.
3855         (init_options_once): Don't set them.
3856         (init_options_struct): Initialize parameters structures.
3857         (default_options_optimization): Use default_param_value when
3858         restoring defaults.  Update calls to maybe_set_param_value.
3859         (finish_options): Update calls to maybe_set_param_value.
3860         (common_handle_option): Update calls to handle_param and
3861         set_param_value.
3862         * toplev.c (DEFPARAM): Update definition for changes to param_info.
3863         (general_init): Call finish_params.
3864
3865 2010-10-14  Nick Clifton  <nickc@redhat.com>
3866
3867         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
3868         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
3869         (FIRST_PSEUDO_REGISTER): Increase by one.
3870         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
3871         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
3872         (MODES_TIEABLE): Call mn10300_modes_tieable.
3873         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
3874         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
3875         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
3876         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
3877         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
3878         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3879         (mn10300_cc_status_mdep): Delete.
3880         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
3881         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
3882         the combine-stack-adjust pass.
3883         (print_operand): Use the mode of the comparison operation to
3884         select the comparison suffix.
3885         (notice_update_cc): Delete.
3886         (mn10300_secondary_reload_class): Remove test for stack pointer
3887         based arithmetic.
3888         (output_tst): Rename to mn10300_output_cmp.
3889         (impossible_plus_operand): Move into predicates.md.
3890         (mn10300_legitimize_address): Make static.
3891         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
3892         constant pic operands.
3893         (mn10300_legitimate_constant_p): New function.
3894         (mn10300_case_values_threshold): Make static.
3895         (mn10300_hard_regno_mode_ok): New function.
3896         (mn10300_modes_tieable): New function.
3897         (mn10300_select_cc_mode): New function.
3898         * config/mn10300/predicates.md (impossible_plus_operand): Define.
3899         * config/mn10300/mn10300-protos.h: Tidy.
3900         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
3901         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
3902         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
3903         with clobbers or sets of CC_REG.
3904         (CC_REG): Define.
3905         (mov*): Remove use of CLR instruction.
3906         (cbranch_si4_<code>): New pattern/split.
3907         (integer_conditional_branch): New pattern.
3908         (cbranch_sf4_<code>): New pattern/split.
3909         (float_conditional_branch): New pattern.
3910         (casesi): Use addsi3 pattern instead of movsi pattern to add and
3911         move a value at the same time.
3912         (cc0 peepholes): Remove.
3913
3914 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
3915
3916         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
3917         on RTX_FRAME_RELATED_P insns and the insn to which
3918         NOTE_INSN_EPILOGUE_BEG is attached.
3919         * sched-vis.c (print_value): Allow NULL value.
3920
3921 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
3922
3923         PR rtl-optimization/45570
3924         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
3925         assert that we are pipelining outer loops.  Allow returning
3926         zero predecessors.
3927
3928 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
3929
3930         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
3931         (tidy_control_flow): Tidy vertical space.
3932         (sel_remove_bb): New variable idx.  Use it to remember the basic
3933         block index before deleting the block.
3934         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
3935         (sel_merge_blocks): ... here.
3936         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
3937
3938 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
3939
3940         * cse.c (is_dead_reg): Change into inline function that is not
3941         called through for_each_rtx.
3942         (set_live_p): Adjust caller.
3943         (insn_live_p): Don't reset DEBUG_INSNs here.
3944         (struct dead_debug_insn_data): New data.
3945         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
3946         (delete_trivially_dead_insns): If there is just one setter for the
3947         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
3948         and add DEBUG_INSN for it right before the removed setter and
3949         use the DEBUG_EXPR instead of the dead pseudo.
3950
3951 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
3952
3953         * et-forest.c (et_nca): Return NULL immediately when
3954         the dominance forest has disjoint components.
3955
3956 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
3957
3958         * ira.c (setup_class_hard_regs): Fix typo in indexing
3959         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
3960
3961 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
3962
3963         * graph.c (inbb): New variable.
3964         (start_bb): Set inbb to 1 if output is inside of a building block.
3965         (end_bb): Check if output is inside of a building block.
3966
3967 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
3968
3969         PR rtl-optimization/45912
3970         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
3971         regno of registers instead of their index to compute the alignment.
3972
3973 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
3974
3975         * config/i386/i386.c (ix86_build_const_vector): Check vector
3976         mode instead of scalar mode.
3977         (ix86_build_signbit_mask): Likewise.
3978         (ix86_expand_fp_absneg_operator): Updated.
3979         (ix86_expand_copysign): Likewise.
3980         (ix86_expand_int_vcond): Likewise.
3981         (ix86_emit_swdivsf): Likewise.
3982         (ix86_sse_copysign_to_positive): Likewise.
3983         (ix86_expand_sse_fabs): Likewise.
3984         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
3985         * config/i386/sse.md (copysign<mode>3): Likewise.
3986         (sse2_cvtudq2ps): Likewise.
3987         (vec_unpacku_float_hi_v4si): Likewise.
3988         (vec_unpacku_float_lo_v4si): Likewise.
3989
3990         * config/i386/i386.c (ix86_builtins): Add
3991         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
3992         (bdesc_args): Likewise.
3993         (ix86_builtin_vectorized_function): Support
3994         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
3995         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
3996         and IX86_BUILTIN_CVTPS2DQ256.
3997         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
3998
3999         * config/i386/sse.md (STORENT_MODE): New.
4000         (VEC_FLOAT_MODE): Likewise.
4001         (VEC_EXTRACT_MODE): Likewise.
4002         (*avx_cvtdq2pd256_2): Likewise.
4003         (vec_pack_trunc_v4df): Likewise.
4004         (vec_interleave_highv8sf): Likewise.
4005         (vec_interleave_lowv8sf): Likewise.
4006         (storent<mode>): Macroized.
4007         (<code><mode>2: absneg): Likewise.
4008         (copysign<mode>3): Likewise.
4009         (vec_extract<mode>): Likewise.
4010
4011         PR target/44180
4012         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
4013         for V8SFmode.
4014
4015 2010-10-13  Richard Guenther  <rguenther@suse.de>
4016             H.J. Lu  <hongjiu.lu@intel.com>
4017
4018         * config/i386/sse.md (reduc_splus_v8sf): Add.
4019         (reduc_splus_v4df): Likewise.
4020         (vec_unpacks_hi_v8sf): Likewise.
4021         (vec_unpacks_lo_v8sf): Likewise.
4022         (*avx_cvtps2pd256_2): Likewise.
4023         (vec_unpacks_float_hi_v8si): Likewise.
4024         (vec_unpacks_float_lo_v8si): Likewise.
4025         (vec_interleave_highv4df): Likewise.
4026         (vec_interleave_lowv4df): Likewise.
4027
4028 2010-10-13  Richard Guenther  <rguenther@suse.de>
4029
4030         PR objc/45878
4031         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
4032         alone if there are no virtual methods.
4033
4034 2010-10-13  Richard Henderson  <rth@redhat.com>
4035
4036         * expr.c (build_personality_function): Take parameter LANG instead
4037         of parameter NAME.  Build the name based on the lang prefix and the
4038         unwind method in use.
4039         * tree.c (lhd_gcc_personality): Update call to
4040         build_personality_function.
4041
4042 2010-10-13  Richard Guenther  <rguenther@suse.de>
4043
4044         PR objc/45878
4045         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
4046
4047 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
4048
4049         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
4050         Canonicalize input operands of ASM_OPERANDS insns.
4051
4052 2010-10-13  Richard Guenther  <rguenther@suse.de>
4053
4054         PR tree-optimization/45788
4055         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
4056         EH update until fixup-cfg.
4057
4058 2010-10-13  Julian Brown  <julian@codesourcery.com>
4059
4060         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
4061         from CORE_REGS and GENERAL_REGS classes.
4062         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
4063         final constraint for register preferencing.
4064
4065 2010-10-13  Richard Guenther  <rguenther@suse.de>
4066
4067         PR tree-optimization/45970
4068         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
4069         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
4070         (stmt_kills_ref_p): Likewise.
4071         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
4072
4073 2010-10-13  Richard Guenther  <rguenther@suse.de>
4074
4075         PR tree-optimization/45982
4076         * tree-ssa-structalias.c (make_constraints_to): New function.
4077         (make_constraint_to): Implement in terms of make_constraints_to.
4078         (find_func_aliases): Properly make return values of pure/const
4079         functions escape if they assign to sth that is not a pointer.
4080
4081 2010-10-13  Richard Guenther  <rguenther@suse.de>
4082
4083         PR middle-end/45874
4084         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
4085         Fixup the CFG when EH was fixed up.
4086
4087 2010-10-13  Ira Rosen  <irar@il.ibm.com>
4088
4089         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
4090         Use operand's type for POINTER_PLUS_EXPR.
4091
4092 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
4093
4094         * c-parser.c (c_parser_for_statement): Initialize incr.
4095
4096 2010-10-12  Xinliang David Li  <davidxl@google.com>
4097
4098         PR tree-optimization/45972
4099         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
4100         with too many arguments.
4101
4102 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
4103
4104         PR fortran/45636
4105         * tree-ssa-forwprop.c: Include expr.h.
4106         (constant_pointer_difference, simplify_builtin_call): New functions.
4107         (tree_ssa_forward_propagate_single_use_vars): Call
4108         simplify_builtin_call on builtin calls.
4109
4110 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
4111
4112         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
4113         (*adddi3_extend_sp32): Likewise.
4114         (*subdi3_insn_sp32): Likewise.
4115         (*subdi3_extend_sp32): Likewise.
4116         (*negdi2_sp32): Use negative test for consistency.
4117
4118 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
4119
4120         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
4121         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
4122         * config/fixed-bit.h: Likewise.
4123         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
4124         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
4125         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
4126         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
4127         (DF_SIZE): Likewise.
4128         * doc/tm.texi: Regenerate.
4129
4130 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
4131
4132         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
4133         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
4134         (*isel_reversed_unsigned_<mode>): New.
4135         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
4136         as valid comparisons and adjust operands and output appropriately.
4137         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
4138
4139 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
4140
4141         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
4142         DATA_ALIGNMENT and add COND parameter. Update comments above.
4143         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
4144         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
4145
4146 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
4147
4148         PR bootstrap/45958
4149         * exec-tool.in: Support '-plugin' as the second option to the linker.
4150
4151 2010-10-12  Richard Henderson  <rth@redhat.com>
4152
4153         PR middle-end/45962
4154         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
4155         (expand_stack_vars): Assert large base allocated when used.
4156
4157 2010-10-12  Richard Guenther  <rguenther@suse.de>
4158
4159         * tree-ssa-structalias.c (get_constraint_for_1): Constants
4160         only point to nonlocal, not anything.
4161
4162 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
4163
4164         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
4165         unwind info for exceptions.
4166
4167 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4168
4169         PR testsuite/45851
4170         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
4171         Document optional target selector.
4172
4173 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
4174
4175         * flag-types.h: New.
4176         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
4177         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
4178         options.h.
4179         (OPTIONS_H): Define.
4180         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
4181         of options.h.
4182         * configure.ac (tm_include_list): Include options.h not flags.h.
4183         * configure: Regenerate.
4184         * flags.h: Include flag-types.h.  Include options.h at top of file
4185         again.
4186         (enum debug_info_type, enum debug_info_level, enum
4187         debug_info_usage, enum symbol_visibility, struct visibility_flags,
4188         enum ira_algorithm, enum ira_region, enum excess_precision, enum
4189         graph_dump_types, enum stack_check_type,
4190         enum warn_strict_overflow_code): Move to flag-types.h
4191         * opth-gen.awk: Include flag-types.h in options.h.
4192
4193 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
4194
4195         * expr.c (store_expr): Share code for STRING_CST and
4196         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
4197         check if target is a MEM.
4198
4199         * rtl.h: Include hashtab.h.
4200         (iterative_hash_rtx): New prototype.
4201         * rtl.c (iterative_hash_rtx): New function.
4202         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
4203         (output_loc_list): Return immediately if emitted is set, set it.
4204         (hash_loc_operands, hash_locs, hash_loc_list,
4205         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
4206         optimize_location_lists_1, optimize_location_lists): New function.
4207         (dwarf2out_finish): Call optimize_location_lists.
4208         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
4209
4210 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4211
4212         PR testsuite/45974
4213         Revert:
4214         * Makefile.in ($(lang_checks_parallel))
4215         ($(lang_checks_parallelized)): Use single quotes for
4216         $(RUNTESTFLAGS), to allow passing quoted content.
4217
4218 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4219
4220         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
4221         actual_oldval.  Use __builtin_expect.
4222         (SUBWORD_VAL_CAS): Likewise.
4223
4224 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
4225
4226         * recog.c (nonmemory_operand): Call immediate_operand for
4227         CONSTANT_P operands.
4228
4229 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
4230
4231         * config/i386/i386.md (movmem<mode>): Macroize expander from
4232         movmem{si,di} using SWI48 mode iterator.
4233         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
4234         *strmovsi_rex_1 using P mode iterator.
4235         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
4236         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
4237         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
4238         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
4239         (setmem<mode>): Macroize expander from setmem{si,di} using
4240         SWI48 mode iterator.
4241         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
4242         *strsetsi_rex_1 using P mode iterator.
4243         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
4244         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
4245         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
4246         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
4247         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
4248         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
4249         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
4250         mode iterator.
4251         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
4252         *strlenqi_rex_1 using P mode iterator.
4253
4254 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
4255
4256         PR bootstrap/45445
4257         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
4258         static functions.
4259         (mark_ref_live, mark_ref_dead): Use them.
4260         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
4261         Save the original reg, and use the new functions.
4262         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
4263         changed.
4264         (check_and_make_def_conflict): Save the original reg.
4265
4266 2010-10-11  Martin Jambor  <mjambor@suse.cz>
4267
4268         PR middle-end/45699
4269         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
4270         thunks.
4271
4272 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4273
4274         * Makefile.in ($(lang_checks_parallel))
4275         ($(lang_checks_parallelized)): Use single quotes for
4276         $(RUNTESTFLAGS), to allow passing quoted content.
4277
4278         PR bootstrap/35855
4279         * opt-functions.awk (BEGIN): New section.
4280         (lower, upper, digit, alnum): New variables.
4281         (static_var, opt_sanitized_name): Use alnum instead of character
4282         classes, for non-C locale.
4283         * optc-gen.awk: Likewise.
4284         * opth-gen.awk: Likewise.
4285
4286 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
4287
4288         * target.def (preferred_reload_class): New hook.
4289         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
4290         * doc/tm.texi: Regenerate.
4291         * targhooks.c (default_preferred_reload_class): New function.
4292         * targhooks.h (default_preferred_reload_class): Declare.
4293         * reload.c (find_dummy_reload): Change preferred_class variable type
4294         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
4295         target hook.
4296         (find_reloads): Change goal_alternative array type from int to
4297         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
4298         (push_reload, find_reloads_address_part): Use
4299         TARGET_PREFERRED_RELOAD_CLASS target hook.
4300         * reload1.c (emit_input_reload_insns): Ditto.
4301         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
4302         hook. Change rclass argument and secondary_class variable types from
4303         'enum reg_class' to reg_class_t.
4304
4305         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
4306         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
4307         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
4308         Change regclass argument and result types from enum reg_class to
4309         reg_class_t.
4310         (TARGET_PREFERRED_RELOAD_CLASS): Define.
4311
4312 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
4313
4314         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
4315         in masking operations.
4316         (simplify_const_unary_operation): Likewise.
4317         (simplify_binary_operation_1): Likewise.
4318         (simplify_const_binary_operation): Likewise.
4319         (simplify_const_relational_operation): Likewise.
4320         (simplify_ternary_operation): Likewise.
4321         (simplify_immed_subreg): Likewise.
4322
4323 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4324
4325         PR middle-end/45862
4326         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
4327         (TARGET_SUPPORTS_WEAK): New.
4328         * doc/tm.texi: Regenerate.
4329         * defaults.h (SUPPORTS_WEAK): Update comment.
4330         (TARGET_SUPPORTS_WEAK): New.
4331         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
4332         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
4333         SUPPORTS_WEAK.
4334         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
4335         make_decl_one_only): Likewise.
4336         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
4337         TARGET_SUPPORTS_WEAK.
4338         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
4339         instead of SUPPORTS_WEAK.
4340
4341 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4342
4343         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
4344
4345 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
4346
4347         * vec.h (VEC_qsort): Define.
4348         * dbxout.c (output_used_types): Use it.
4349         * df-scan.c (df_sort_and_compress_refs): Likewise.
4350         (df_sort_and_compress_mws): Likewise.
4351         * genautomata.c (uniq_sort_alt_states): Likewise.
4352         (evaluate_equiv_classes): Likewise.
4353         (output_trans_table): Likewise.
4354         (output_state): Likewise.
4355         * gimplify.c (compare_case_labels): Likewise.
4356         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
4357         * ipa.c (build_cdtor_fns): Likewise.
4358         * lto.c (lto_wpa_write_files): Likewise.
4359         * sel-sched.c (fill_vec_av_set): Likewise.
4360         * tree-predcom.c (determine_roots_comp): Likewise.
4361         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
4362         (splice_param_accesses): Likewise.
4363         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
4364         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
4365         (reassociate_bb): Likewise.
4366         * tree-ssa-sccvn.c (sort_scc): Likewise.
4367         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
4368
4369 2010-10-11  Ian Lance Taylor  <iant@google.com>
4370
4371         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
4372         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
4373         TREE_THIS_NOTRAP when appropriate.
4374         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
4375         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
4376         newly created MEM_REF.
4377
4378 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
4379
4380         Nathan Froyds patch to hooks FUNCTION_ARG etc.
4381         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
4382         (picochip_incoming_function_arg): Delete.
4383         (picochip_arg_advance): Delete.
4384         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
4385         (FUNCTION_INCOMING_ARG): Delete.
4386         (FUNCTION_ARG_ADVANCE): Delete.
4387         * config/picochip/picochip.c (picochip_function_arg): Take a
4388         const_tree and a bool.
4389         (picochip_incoming_function_arg): Likewise.
4390         (picochip_arg_advance): Likewise.
4391         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4392         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4393
4394 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4395
4396         PR middle-end/45955
4397         * ipa.c (build_cdtor): Delete endless loop.
4398
4399 2010-10-07  Andi Kleen  <ak@linux.intel.com>
4400
4401         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
4402         checksum-options.
4403         (checksum-options): Add.
4404         (cc1-dummy): Remove.
4405         (cc1-checksum): Change to run checksum over object files
4406         and options only.
4407         * dummy-checksum.c: Remove.
4408         * genchecksum.c: Update copyright.
4409         (usage): Allow multiple arguments.
4410         (BLOCKSIZE): Add.
4411         (dosum): Change for incremental checksum. Remove C output.
4412         (main): Iterate over all argument files. Add C output.
4413
4414 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
4415
4416         * params.c (set_param_value_internal): New.
4417         (set_param_value): Use set_param_value_internal.
4418         (maybe_set_param_value, set_default_param_value): New.
4419         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
4420         (maybe_set_param_value, set_default_param_value): Declare.
4421         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
4422         * config/i386/i386.c (ix86_option_override_internal): Use
4423         maybe_set_param_value.
4424         * config/ia64/ia64.c (ia64_option_default_params,
4425         TARGET_OPTION_DEFAULT_PARAMS): New.
4426         (ia64_option_optimization): Move some code to
4427         ia64_option_default_params.
4428         * config/picochip/picochip.c (picochip_option_override): Use
4429         maybe_set_param_value.
4430         * config/rs6000/rs6000.c (rs6000_option_default_params,
4431         TARGET_OPTION_DEFAULT_PARAMS): New.
4432         (rs6000_option_override_internal): Use maybe_set_param_value.
4433         (rs6000_option_optimization): Move some code to
4434         rs6000_option_default_params.
4435         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
4436         * config/sh/sh.c (sh_option_default_params,
4437         TARGET_OPTION_DEFAULT_PARAMS): New.
4438         (sh_option_optimization): Move some code to sh_option_default_params.
4439         * config/sparc/sparc.c (sparc_option_override): Use
4440         maybe_set_param_value.
4441         * config/spu/spu.c (spu_option_default_params,
4442         TARGET_OPTION_DEFAULT_PARAMS): New.
4443         (spu_option_optimization): Move some code to spu_option_default_params.
4444         (spu_option_override): Use maybe_set_param_value.
4445         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
4446         * doc/tm.texi: Regenerate.
4447         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
4448         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
4449         compiler_params.
4450         (default_options_optimization): Use maybe_set_param_value.
4451         (finish_options): Use maybe_set_param_value.
4452         * target.def (target_option.default_params): New hook.
4453         * toplev.c (general_init): Call targetm.target_option.default_params.
4454
4455 2010-10-11  Ira Rosen  <irar@il.ibm.com>
4456
4457         PR tree-optimization/45902
4458         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
4459         vector type for constants, unless it's a pointer.
4460
4461 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4462
4463         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
4464
4465 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
4466
4467         PR target/45870
4468         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
4469         (ix86_delegitimize_address): Use it.
4470
4471 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
4472
4473         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
4474
4475 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
4476
4477         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
4478         to cum struct in the call to function_arg_advance.
4479         (alpha_function_arg_advance): Mark named as unused.
4480
4481 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
4482
4483         * config/mips/mips.c (mips_handle_option): Make "value" with
4484         ATTRIBUTE_UNUSED.
4485
4486 2010-10-09  Richard Henderson  <rth@redhat.com>
4487
4488         PR rtl-opt/33721
4489         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
4490         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
4491         required_align, tidy the code a bit.  Emit split_stack code in the
4492         right place.  Mark the return value with the alignment properly.
4493         * expr.h (allocate_dynamic_stack_space): Update decl.
4494         * builtins.c (expand_builtin_apply): Update call to
4495         allocate_dynamic_stack_space.
4496         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
4497         * calls.c (initialize_argument_information): Update call to
4498         allocate_dynamic_stack_space.
4499         (expand_call): Likewise.
4500
4501         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
4502         Don't update_stack_alignment here.
4503         (alloc_stack_frame_space): Make ALIGN unsigned.
4504         (stack_var_cmp): Sort by alignment too.
4505         (partition_stack_vars): Don't merge large and small alignment vars.
4506         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
4507         Take care when BASE is not virtual_stack_vars_rtx.
4508         (expand_stack_vars): Allocate dynamic stack space for large
4509         alignment variables.
4510         (expand_one_stack_var): Update all to expand_one_stack_var_at.
4511         (defer_stack_allocation): True for large alignment vars.
4512         (update_stack_alignment): Merge into ...
4513         (expand_one_var): ... here.
4514         (gimple_expand_cfg): Place code from expand_stack_vars.
4515
4516 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4517
4518         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4519         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
4520         (pdp11_function_arg_advance): New function.
4521         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4522
4523 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4524
4525         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
4526         * libgcc2.c: Likewise.
4527
4528 2010-10-09  Richard Guenther  <rguenther@suse.de>
4529
4530         PR lto/45956
4531         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
4532         Properly check if a decl is an automatic var.
4533
4534 2010-10-09  Richard Guenther  <rguenther@suse.de>
4535
4536         PR lto/45947
4537         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
4538
4539 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4540
4541         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
4542         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4543         * config/mmix/mmix.c (mmix_function_arg): Rename to...
4544         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
4545         bool arguments.
4546         (mmix_function_arg): New function.
4547         (mmix_function_incoming_arg): New function.
4548         (mmix_function_arg_advance): New function.
4549         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4550         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4551
4552 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4553
4554         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4555         * config/vax/vax.c (vax_function_arg): New function.
4556         (vax_function_arg_advance): New function.
4557         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4558
4559 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4560
4561         * config/pa/pa-protos.h (function_arg): Delete.
4562         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4563         * config/pa/pa.c (function_arg): Rename to...
4564         (pa_function_arg): ...this.  Make static.  Take a const_tree and
4565         a bool.
4566         (pa_function_arg_advance): New function.
4567         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4568
4569 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4570
4571         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4572         * config/m68k/m68k.c (m68k_function_arg): New function.
4573         (m68k_function_arg_advance): New function.
4574         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4575
4576 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4577
4578         * config/avr/avr-protos.h (function_arg): Delete.
4579         (function_arg_advance): Delete.
4580         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4581         * config/avr/avr.c (function_arg): Rename to...
4582         (avr_function_arg): ...this.  Make static.  Take a const_tree and
4583         a bool.
4584         (function_arg_advance): Rename to...
4585         (avr_function_arg_advance): ...this.  Make static.  Take a
4586         const_tree and a bool.
4587         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4588
4589 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4590
4591         * config/alpha/alpha-protos.h (function_arg): Delete.
4592         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4593         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
4594         * config/alpha/alpha.c (function_arg): Rename to...
4595         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
4596         a bool.  Delete TARGET_ABI_UNICOSMK code.
4597         (alpha_function_arg_advance): New function.
4598         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4599
4600 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4601
4602         * config/mep/mep-protos.h (mep_function_arg): Delete.
4603         (mep_function_arg_advance): Delete.
4604         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4605         * config/mep/mep.c (mep_function_arg): Make static.  Take a
4606         const_tree and a bool.
4607         (mep_function_arg_advance): Likewise.
4608         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4609
4610 2010-10-09  Richard Guenther  <rguenther@suse.de>
4611
4612         PR tree-optimization/45945
4613         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
4614
4615 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
4616
4617         PR tree-optimization/45612
4618         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
4619         Test LABEL_DECLs as well.  Fix formatting issues.
4620         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
4621         whose label is present in NON_SSA_VARS.
4622         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
4623         as well.  Fix formatting issues.
4624         (visit_bb): Fix typos and formatting issue.
4625
4626 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4627
4628         PR tree-optimization/45950
4629         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
4630         before initializing vno->op.
4631
4632 2010-10-09  Ralf Corsépius  <ralf.corsepius@rtems.org>
4633
4634         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
4635         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
4636
4637 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
4638
4639         PR target/45913
4640         * config/i386/i386.c (ix86_binary_operator_ok): Support
4641         "andhi/andsi/anddi" as a zero-extending move.
4642
4643 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4644
4645         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
4646         into a temporary array.
4647
4648 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
4649
4650         PR tree-optimization/45903
4651         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
4652         of {A,L}SHIFTRT of MEM.
4653
4654 2010-10-08  Richard Guenther  <rguenther@suse.de>
4655
4656         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4657         Re-construct BLOCK_VARS.
4658         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
4659         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4660         * tree.c (free_lang_data_in_block): Remove.
4661         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
4662         Do not touch the BLOCK tree.
4663         * expr.c (expand_expr_real_1): Allow externals.
4664
4665 2010-10-08  Richard Guenther  <rguenther@suse.de>
4666
4667         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
4668         Do not output BLOCK_SUBBLOCKS.
4669         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
4670         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
4671         Re-construct BLOCK_SUBBLOCKS of parent block.
4672         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
4673         for BINFO_BASE_ACCESSES.
4674
4675 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4676
4677         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
4678         (TREE_H): Include $(FLAGS_H) instead of options.h.
4679         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
4680         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4681         * common.opt (flag_complex_method, flag_evaluation_order,
4682         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
4683         Variable declarations.
4684         * configure.ac (tm_include_list): Include flags.h instead of options.h.
4685         * configure: Regenerate.
4686         * flags.h: Condition out contents for target libraries.  Include
4687         options.h at end of file.
4688         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
4689         flag_evaluation_order, flag_warn_unused_result): Remove.
4690         * gcc.c (main): Intialize global_options with global_options_init.
4691         * langhooks-def.h (lhd_init_options_struct): Declare.
4692         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4693         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
4694         * langhooks.c (lhd_init_options_struct): New.
4695         * langhooks.h (struct lang_hooks): Add init_options_struct.
4696         Update comment on init_options.
4697         * optc-gen.awk: Generate initializer for global_options_init, not
4698         global_options.
4699         * opth-gen.awk: Condition out structure declarations for target
4700         libraries.  Declare global_options_init.
4701         * opts-common.c: Include flags.h instead of options.h.
4702         * opts.c (flag_warn_unused_result): Remove.
4703         (read_cmdline_options): Take gcc_options parameters.  Pass them to
4704         read_cmdline_option.
4705         (initial_lang_mask, initial_min_crossjump_insns,
4706         initial_max_fields_for_field_sensitive,
4707         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
4708         (init_options_once): New.  Split out of decode_options.
4709         (init_options_struct): New.  Split out of decode_options.
4710         (decode_cmdline_options_to_array_default_mask): New.
4711         (default_options_optimization): New.  Split out of decode_options.
4712         (decode_options): Move most code to other functions.  Update call
4713         to read_cmdline_options.
4714         (finish_options): New.  Split out of decode_options.
4715         * opts.h (decode_options): Add gcc_options parameters.
4716         (init_options_once, init_options_struct,
4717         decode_cmdline_options_to_array_default_mask): New.
4718         * toplev.c (flag_complex_method, flag_ira_algorithm,
4719         flag_ira_region, flag_evaluation_order): Remove.
4720         (general_init): Use global_options_init for initial flag values
4721         for global_dc.
4722         (toplev_main): Call init_options_once, init_options_struct,
4723         lang_hooks.init_options_struct,
4724         decode_cmdline_options_to_array_default_mask and
4725         lang_hooks.init_option before decode_options.  Update arguments to
4726         decode_options.
4727         * tree.h: Include flags.h instead of options.h.
4728
4729 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4730
4731         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4732
4733 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4734
4735         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
4736         Delete.
4737         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4738         (FUNCTION_INCOMING_ARG): Delete.
4739         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
4740         (function_arg_slotno): Likewise.  Take bool arguments.
4741         (sparc_arg_partial_bytes): Update call to it.
4742         (function_arg): Rename to...
4743         (sparc_function_arg_1): ...this.  Take bool arguments.
4744         (sparc_function_arg, sparc_function_incoming_arg): New functions.
4745         (function_arg_advance): Rename to...
4746         (sparc_function_arg_advance): ...this.  Take bool argument.
4747         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
4748         (TARGET_FUNCTION_INCOMING_ARG): Define.
4749
4750 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4751
4752         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
4753         Delete.
4754         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4755         * config/bfin/bfin.c (function_arg_advance): Rename to...
4756         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
4757         and bool arguments.
4758         (function_arg): Rename to...
4759         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
4760         arguments.
4761         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4762
4763 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4764
4765         * config/score/score-protos.h (score_function_arg): Delete.
4766         (score_function_arg_advance): Delete.
4767         * config/score/score3.h (score3_function_arg_advance): Take a
4768         const_tree and a bool.
4769         (score3_function_arg): Likewise.
4770         * config/score/score7.h (score7_function_arg_advance): Likewise.
4771         (score7_function_arg): Likewise.
4772         * config/score/score3.c (score3_classify_arg): Likewise.
4773         (score3_function_arg_advance, score3_function_arg): Likewise.
4774         * config/score/score7.c (score7_classify_arg): Likewise.
4775         (score7_function_arg_advance, score7_function_arg): Likewise.
4776         * config/score/score.c (score_function_arg_advance): Likewise.
4777         (score_function_arg): Likewise.  De-const-ify `cum' argument.
4778         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4779
4780 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4781
4782         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
4783         (s390_function_arg): Delete.
4784         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4785         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
4786         (s390_function_arg_integer): Likewise.
4787         (s390_function_arg_advance): Make static.  Take a const_tree and
4788         a bool.
4789         (s390_function_arg): Likewise.
4790         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4791
4792 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4793
4794         * config/spu/spu-protos.h (spu_function_arg): Delete.
4795         * config/spu/spu.h (FUNCTION_ARG): Delete.
4796         (FUNCTION_ARG_ADVANCE): Move code to ...
4797         * config/spu/spu.c (spu_function_arg_advance): New function.
4798         (spu_function_arg): Make static.  Take a const_tree and a bool.
4799         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
4800         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4801
4802 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4803
4804         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4805
4806 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4807
4808         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
4809         (init_vn_nary_op_from_op): New function.
4810         (init_vn_nary_op_from_stmt): New function.
4811         (vn_nary_op_lookup_1): New function.
4812         (sizeof_vn_nary_op): New function.
4813         (alloc_vn_nary_op_noinit): New function.
4814         (alloc_vn_nary_op): New function.
4815         (vn_nary_op_insert_into): New function.
4816         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
4817         (vn_nary_op_lookup): Likewise.
4818         (vn_nary_op_lookup_stmt): Likewise.
4819         (vn_nary_op_insert_pieces): Likewise.
4820         (vn_nary_op_insert): Likewise.
4821         (vn_nary_op_insert_stmt): Likewise.
4822         (copy_nary): Likewise.
4823         (set_value_id_for_result): New function.
4824         (set_hashtable_value_ids): Call it.
4825
4826 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4827
4828         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4829         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
4830
4831 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4832
4833         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
4834         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4835
4836 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
4837
4838         PR debug/45656
4839         * cse.c (cse_extended_basic_block): Preserve cc0 info across
4840         debug isnsn.  Skip them when searching for cc0 setter.
4841         (set_live_p): Skip debug insns when searching for cc0 user.
4842
4843 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
4844
4845         PR debug/45673
4846         PR debug/45604
4847         PR debug/45419
4848         PR debug/45408
4849         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
4850         type of MEM_REFs to INTEGER_CSTs.
4851
4852 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
4853
4854         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
4855         m68hc11_print_operand_address.
4856
4857 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
4858
4859         * builtins.c (rewrite_call_expr): Move code to...
4860         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
4861         (rewrite_call_expr_array): New function.
4862         (fold_builtin_sprintf_chk_1): New function.
4863         (fold_builtin_sprintf_chk): Call it.
4864         (gimple_fold_builtin_sprintf_chk): Likewise.
4865         (fold_builtin_snprintf_chk_1): New function.
4866         (fold_builtin_snprintf_chk): Call it.
4867         (gimple_fold_builtin_snprintf_chk): Likewise.
4868         (gimple_rewrite_call_expr): Delete.
4869
4870 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
4871
4872         * config.host: Update copyright year.
4873
4874 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
4875
4876         * config.host (host_lto_plugin_soname): New shell variable.
4877         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
4878         * config.in: Regenerate.
4879         * configure: Regenerate.
4880         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
4881         LTO plugin shared library.
4882
4883 2010-10-07  Richard Henderson  <rth@redhat.com>
4884
4885         * target.h (enum unwind_info_type): Move ...
4886         * coretypes.h: ... here.
4887
4888 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
4889
4890         * doc/objc.texi (Fast enumeration protocol): Mention that
4891         'unsigned int' can also be used instead of 'unsigned long' in
4892         countByEnumeratingWithState:objects:count:.
4893
4894 2010-10-07  Martin Jambor  <mjambor@suse.cz>
4895
4896         * tree-sra.c (struct access): New field grp_assignment_write.
4897         (dump_access): Dump grp_assignment_write.
4898         (build_accesses_from_assign): Set grp_assignment_write.
4899         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
4900         (mark_read_status): Renamed to mark_rw_status, individual values
4901         renamed too.
4902         (analyze_access_subtree): Changed type of mark_write to
4903         mark_read_status.  Fixed propagating of mark_read and
4904         mark_write.  Changed benefit estimate.  Updated comment.
4905
4906 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
4907
4908         PR Tree-Vect/45847
4909         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
4910         check for vectype_out returned by get_vectype_for_scalar_type().
4911
4912 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
4913
4914         PR target/45805
4915         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
4916         constraint, add register specifier in instruction template.
4917         (neon_vec_pack_trunc_<mode>): Likewise.
4918         (neon_vec_<US>mult_<mode>): Add register specifier to
4919         instruction template.
4920
4921 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
4922
4923         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
4924         cygwin2.o.
4925         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
4926         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
4927         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
4928         (cygwin2.o): Likewise.
4929         * config/i386/cygwin1.c: Delete file.
4930         * config/i386/cygwin2.c: Likewise.
4931         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
4932         make all {%!mno-cygwin} ones unconditional.
4933         (STARTFILE_SPEC): Likewise.
4934         (REAL_LIBGCC_SPEC): Likewise.
4935         (LIB_SPEC): Likewise.
4936         (CXX_WRAP_SPEC): Likewise.
4937         (LINK_SPEC): Likewise.
4938         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
4939         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
4940         (cygwin_gplusplus_include_dir): Delete now-unused array.
4941         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
4942         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
4943         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
4944         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
4945         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
4946         (cygwin_local_include_dir): Delete now-unused array.
4947         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
4948         (cygwin_cross_include_dir): Delete now-unused array.
4949         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
4950         (cygwin_tool_include_dir): Delete now-unused array.
4951         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
4952         (cygwin_standard_include_dir): Delete now-unused array.
4953         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
4954         (GEN_CVT_ARRAY): Delete now-unused macro definition.
4955         (cvt_to_mingw): Delete now-unused array.
4956         (mingw_scan): Remove prototype of deleted function.
4957         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
4958         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
4959         * doc/invoke.texi (-mcygwin): Don't document removed option.
4960         (-mno-cygwin): Likewise.
4961
4962 2010-10-07  Richard Guenther  <rguenther@suse.de>
4963
4964         * machmode.h (mode_for_vector): Declare.
4965         * stor-layout.c (mode_for_vector): New function, split out from ...
4966         (layout_type): ... here.
4967         * tree-vectorizer.h (current_vector_size): Declare.
4968         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
4969         mask vector type is available.
4970         (get_vectype_for_scalar_type): Rename to ...
4971         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
4972         size argument.
4973         (get_vectype_for_scalar_type): New wrapper around
4974         get_vectype_for_scalar_type_and_size using current_vector_size.
4975         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
4976         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
4977         of vect_analyze_loop here.
4978         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
4979         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
4980         to autodetect.
4981         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
4982         V8SF to V8SI conversion builtin.
4983
4984 2010-10-07  Richard Guenther  <rguenther@suse.de>
4985
4986         * target.def (autovectorize_vector_sizes): New target hook.
4987         * targhooks.c (default_autovectorize_vector_sizes): New function.
4988         * targhooks.h (default_autovectorize_vector_sizes): Declare.
4989         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
4990         Document.
4991         * doc/tm.texi: Update.
4992         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
4993         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4994
4995 2010-10-07  Richard Guenther  <rguenther@suse.de>
4996
4997         * target.def (units_per_simd_word): Rename to ...
4998         (preferred_simd_mode): ... this.  Return mode instead of size.
4999         * targhooks.c (default_units_per_simd_word): Rename to ...
5000         (default_preferred_simd_mode): ... this.  Return word_mode.
5001         * targhooks.h (default_preferred_simd_mode): Declare.
5002         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
5003         (arm_preferred_simd_mode): ... this.  Re-implement.
5004         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
5005         (ix86_preferred_simd_mode): ... this.  Re-implement.
5006         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
5007         (sparc_preferred_simd_mode): ... this.  Re-implement.
5008         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
5009         (mips_preferred_simd_mode): ... this.  Re-implement.
5010         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
5011         (rs6000_preferred_simd_mode): ... this.  Re-implement.
5012         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
5013         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
5014         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
5015         * doc/tm.texi: Update.
5016
5017 2010-10-07  Richard Guenther  <rguenther@suse.de>
5018
5019         PR middle-end/45869
5020         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
5021         of pointers.
5022
5023 2010-10-07  Alan Modra  <amodra@gmail.com>
5024
5025         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
5026         rather than sign extension by hand.
5027
5028 2010-10-07  Jan Hubicka  <jh@suse.cz>
5029
5030         PR middle-end/45926
5031         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
5032
5033 2010-10-07  Richard Guenther  <rguenther@suse.de>
5034
5035         PR bootstrap/45914
5036         * configure.ac: Fix typo.
5037         * configure: Regenerated.
5038
5039 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5040
5041         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
5042         define_builtin_std where it's unnecessary.
5043         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
5044
5045 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
5046
5047         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
5048         * doc/tm.texi.in: Regenerate.
5049         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
5050         * targhooks.c (default_class_likely_spilled_p): Don't use the
5051         CLASS_LIKELY_SPILLED_P macro.
5052
5053         * config/arm/arm.md: Update comment.
5054
5055 2010-10-06  Jan Hubicka  <jh@suse.cz>
5056
5057         * ipa.c (cgraph_remove_unreachable_nodes): External references can
5058         always be removed.
5059         (cgraph_externally_visible_p): We can not bring local comdats that
5060         are known to linker; fix handling of internal visibility.
5061         (function_and_variable_visibility): Likewise.
5062
5063 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
5064
5065         PR rtl-optimization/45394
5066         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
5067         (struct rtx_subst_pair): Remove AFTER field.
5068         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
5069         (propagate_for_debug): Remove MOVE parameter and adjust.
5070         (try_combine): In the special case where I2 is a PARALLEL, combine only
5071         destinations of SETs and set I2SRC to the I2 source.
5072         Adjust calls to propagate_for_debug throughout.
5073         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
5074         insns.
5075
5076 2010-10-06  Olivier Hainque  <hainque@adacore.com>
5077
5078         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
5079         switch on insn codes as sequence of ifs.
5080
5081 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
5082
5083         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
5084         be UI_NONE for picochip.
5085         (picochip_option_override): Do not disable exception flags.
5086         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
5087         Declare.
5088
5089 2010-10-06  Richard Guenther  <rguenther@suse.de>
5090
5091         * Makefile.in (regmove.o): Depend on $(TARGET_H).
5092
5093 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
5094
5095         Implemented fast enumeration for Objective-C.
5096         * c-parser.c (objc_could_be_foreach_context): New.
5097         (c_lex_one_token): Recognize RID_IN keyword in a potential
5098         Objective-C foreach context.
5099         (c_parser_declaration_or_fndef): Added parameter.  Accept
5100         Objective-C RID_IN keyword as terminating a declaration; in that
5101         case, return the declaration in the new parameter.
5102         (c_parser_extenral_declaration): Updated calls to
5103         c_parser_declaration_or_fndef.
5104         (c_parser_declaration_or_fndef): Same change.
5105         (c_parser_compound_statement_nostart): Same change.
5106         (c_parser_label): Same change.
5107         (c_parser_objc_methodprotolist): Same change.
5108         (c_parser_omp_for_loop): Same change.
5109         (c_parser_for_statement): Detect and parse Objective-C foreach
5110         statements.
5111         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
5112         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
5113         fast enumeration parsing code to turn off the c99 error but still
5114         perform checks on the loop declarations.
5115         * c-tree.h (check_for_loop_decls): Updated declaration.
5116         * doc/objc.texi: Document fast enumeration.
5117
5118 2010-10-06  Nick Clifton  <nickc@redhat.com>
5119
5120         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
5121         (MDR_REGNUM): Define.
5122         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
5123         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
5124         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
5125         (REGISTER_NAMES): Add MDR.
5126         (DWARF2_DEBUGGING_INFO): Define to 1.
5127         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
5128         (F): New function.  Sets RTX_FRAME_RELATED_P.
5129         (mn10300_gen_multiple_store): Use F.
5130         (expand_prologue): Use F.  Use gen_movsf() to push floating
5131         point registers.
5132         (expand_epilogue): Use gen_movsf() to pop floating point registers.
5133         (mn10300_option_override): Disable combine stack adjust pass.
5134
5135 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
5136
5137         PR target/45901
5138         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
5139         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
5140
5141 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
5142
5143         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
5144         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
5145         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
5146         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
5147         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
5148         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
5149         BUILT_IN_TOUPPER): Mark as leaf.
5150
5151         PR middle-end/45838
5152         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
5153         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
5154         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
5155         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
5156         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
5157         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
5158         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
5159
5160 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
5161
5162         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
5163         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5164         (m68hc11_class_likely_spilled_p): New function.
5165
5166 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
5167
5168         * c-parser.c (c_parser_objc_method_definition): Updated comment.
5169
5170 2010-10-05  Jan Hubicka  <jh@suse.cz>
5171
5172         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
5173         Document.
5174         * opts.c (decode_options): Handle lto partitions.
5175         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
5176         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
5177
5178 2010-10-05  Jan Hubicka  <jh@suse.cz>
5179
5180         * cgraphunit.c (assemble_function): Output thunks and aliases before
5181         the function itself.
5182
5183 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
5184
5185         * config/picochip/picochip.c (picochip_option_override): Disable
5186         exception flags for picochip.
5187
5188 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
5189
5190         * opts-common.c (handle_option, handle_generated_option,
5191         read_cmdline_option, set_option): Add diagnostic_context
5192         parameter.  Update calls among these functions.
5193         (set_option): Don't use global_dc.
5194         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
5195         (decode_options): Pass global_dc to enable_warning_as_error.
5196         (common_handle_option): Pass global_dc to enable_warning_as_error.
5197         (enable_warning_as_error): Add diagnostic_context parameter.
5198         Document parameters.  Don't use global_dc.  Pass
5199         diagnostic_context parameter to handle_generated_option.
5200         * opts.h (set_option, handle_option, handle_generated_option,
5201         read_cmdline_option, enable_warning_as_error): Add
5202         diagnostic_context parameter.
5203         * Makefile.in (lto-opts.o): Update dependencies.
5204         * coretypes.h (struct diagnostic_context, diagnostic_context):
5205         Declare here.
5206         * diagnostic.h (diagnostic_context): Don't declare typedef here.
5207         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
5208         * langhooks-def.h (struct diagnostic_context): Don't declare here.
5209         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
5210         using diagnostic_context typedef.
5211         * langhooks.c (lhd_initialize_diagnostics): Declare using
5212         diagnostic_context typedef.
5213         * langhooks.h (struct diagnostic_context): Don't declare here.
5214         (initialize_diagnostics, print_error_function): Declare using
5215         diagnostic_context typedef.
5216         * lto-opts.c: Include diagnostic.h.
5217         (lto_reissue_options): Pass global_dc to set_option.  Pass
5218         DK_UNSPECIFIED not 0.
5219         * plugin.c (plugins_internal_error_function): Declare using
5220         diagnostic_context typedef.
5221         * plugin.h (struct diagnostic_context): Don't declare here.
5222         (plugins_internal_error_function): Declare using
5223         diagnostic_context typedef.
5224
5225 2010-10-05  Olivier Hainque  <hainque@adacore.com>
5226             Nicolas Roche  <roche@adacore.com>
5227
5228         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
5229         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
5230
5231 2010-10-05  Ira Rosen  <irar@il.ibm.com>
5232
5233         PR tree-optimization/45752
5234         * tree-vect-slp.c (vect_get_mask_element): Remove static
5235         variables, make them function arguments.
5236         (vect_transform_slp_perm_load): Pass new arguments to
5237         vect_get_mask_element.
5238
5239 2010-10-05  Richard Guenther  <rguenther@suse.de>
5240
5241         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
5242         (gimple_mod_pow2): Likewise.
5243         (gimple_mod_subtract): Likewise.
5244         (gimple_ic): Likewise.
5245         (gimple_stringop_fixed_value): Likewise.
5246         * tree-profile.c (tree_init_edge_profiler): Mark profile
5247         functions nothrow and leaf.
5248         (add_abnormal_goto_call_edges): Remove.
5249         (tree_gen_edge_profiler): Work on SSA form.
5250         (tree_gen_ic_profiler): Likewise.  Simplify.
5251         (do_tree_profiling): Update SSA form.
5252         (pass_tree_profile): Remove.
5253         (do_tree_profiling): Likewise.
5254         (gate_tree_profile_ipa): New function.
5255         (pass_ipa_tree_profile): New.
5256         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
5257         state of instrumented functions.
5258         * passes.c (init_optimization_passes): Remove early non-SSA
5259         inlining.  Move profiling after early optimizations.
5260         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
5261         (pass_ipa_early_inline): Likewise.
5262         * tree-pass.h (pass_ipa_early_inline): Remove.
5263         (pass_tree_profile): Likewise.
5264         (pass_ipa_tree_profile): Declare.
5265
5266 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5267             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
5268
5269         * config/s390/s390.c (z196_cost): New.
5270         (s390_handle_arch_option): Add -march=z196.
5271         (s390_option_override): Use the new cost function and use the z10
5272         defaults also for z196.
5273         (legitimate_reload_constant_p): Adjust comment.
5274         (legitimate_reload_fp_constant_p): New function.
5275         (s390_preferred_reload_class): Distingiush between FP and Int constants.
5276         (preferred_la_operand_p): Avoid la with index on z196.
5277         (s390_adjust_priority): Trigger also for z196.
5278         (s390_issue_rate): Issue rate for z196 is 3.
5279         (s390_z10_fix_long_loop_prediction): Rename to ...
5280         (s390_fix_long_loop_prediction): ... this.
5281         (s390_reorg): Apply the z10 adjustments also for z196.
5282         (s390_loop_unroll_adjust): Do this also for z196.
5283         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
5284         (enum processor_flags): Add PF_Z196.
5285         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
5286         (TARGET_CPU_Z196, TARGET_Z196): New macros.
5287         * config.gcc: Enable z196 for --with-arch.
5288         * config/s390/2817.md: New file.
5289         * config/s390/2084.md: New type for multiply and add.
5290         * config/s390/2097.md: Likewise.
5291         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
5292         (UNSPECV_ATOMIC_OP): New constants.
5293         (fmadddf, fmaddsf): New values for type attribute.
5294         (z196prop): New insn attribute.
5295         (cpu, cpu_facility): Add z196.
5296         (ATOMIC_Z196): New code iterator.
5297         (noxa): New code attribute.
5298         (gk): New mode attribute.
5299         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
5300         Support load zero for fp constants.
5301         (fixuns_truncdddi2, fixuns_trunctddi2)
5302         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
5303         for z196.
5304         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
5305         (popcounthi2, popcountqi2): New expander.
5306         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
5307         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
5308         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
5309         insn definition.
5310         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
5311         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
5312         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
5313         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
5314         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
5315         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
5316         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
5317         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
5318         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
5319         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
5320         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
5321         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
5322         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
5323         Support new z196 instructions.
5324
5325 2010-10-05  Richard Guenther  <rguenther@suse.de>
5326
5327         PR middle-end/45877
5328         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
5329         case where gimplification optimizes away the stmt.
5330
5331 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
5332
5333         PR debug/45849
5334         * var-tracking.c (strip_pointer_flags): New function.
5335         (emit_note_insn_var_location): If rtx_equal_p check failed,
5336         retry on locations simplified with simplify_replace_fn_rtx
5337         and strip_pointer_flags as its callback.
5338
5339 2010-10-04  Jan Hubicka  <jh@suse.cz>
5340
5341         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
5342         (can_refer_decl_in_current_unit_p): ... this one; reverse return
5343         value; handle comdats too.
5344         (canonicalize_constructor_val): Use it; handle function_decls
5345         correctly.
5346         (gimple_fold_obj_type_ref_known_binfo): Likewise.
5347         * gimple.c (get_base_address): Accept all kinds of decls.
5348
5349 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5350
5351         * flags.h (g_switch_value, g_switch_set): Remove.
5352         * opts.c (g_switch_value, g_switch_set): Remove.
5353         * config/g.opt (G): Add Var(g_switch_value).
5354         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
5355         (alpha_option_override): Check global_options_set.x_g_switch_value
5356         instead of g_switch_set.
5357         (alpha_in_small_data_p): Remove cast in comparison with
5358         g_switch_value.
5359         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
5360         g_switch_value to unsigned HOST_WIDE_INT.
5361         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
5362         with g_switch_value.
5363         (frv_handle_option): Don't handle -G here.
5364         (frv_option_override): Check global_options_set.x_g_switch_value
5365         instead of g_switch_set.  Don't modify g_switch_set.
5366         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
5367         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
5368         g_switch_value to unsigned HOST_WIDE_INT.
5369         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
5370         (ia64_option_override): Check global_options_set.x_g_switch_value
5371         instead of g_switch_set.
5372         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
5373         Remove.
5374         (lm32_in_small_data_p): Remove cast in comparison with
5375         g_switch_value.
5376         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
5377         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
5378         HOST_WIDE_INT.
5379         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
5380         (m32r_init): Check global_options_set.x_g_switch_value instead of
5381         g_switch_set.
5382         (m32r_in_small_data_p): Remove cast in comparison with
5383         g_switch_value.
5384         (m32r_file_start): Format g_switch_value with %d.
5385         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
5386         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
5387         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
5388         handle -G here.
5389         (microblaze_option_override): Check
5390         global_options_set.x_g_switch_value instead of g_switch_set.
5391         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
5392         (mips_option_override): Check global_options_set.x_g_switch_value
5393         instead of g_switch_set.
5394         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
5395         (rs6000_file_start): Format g_switch_value with %d.
5396         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
5397         comparisons with g_switch_value.
5398         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
5399         global_options_set.x_g_switch_value instead of g_switch_set.
5400         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5401         global_options_set.x_g_switch_value instead of g_switch_set.
5402         * config/score/score.c (score_handle_option): Don't handle -G here.
5403         * config/score/score3.c (score3_option_override): Check
5404         global_options_set.x_g_switch_value instead of g_switch_set.
5405         * config/score/score7.c (score7_option_override): Check
5406         global_options_set.x_g_switch_value instead of g_switch_set.
5407
5408 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
5409
5410         * common.opt (fira-coalesce): Remove.
5411
5412         * doc/invoke.texi (flag_ira_coalesce): Remove.
5413
5414         * ira-color.c (allocno_coalesced_p): Move before
5415         copy_freq_compare_func.
5416         processed_coalesced_allocno_bitmap): Ditto.
5417         (update_conflict_hard_regno_costs): Don't use
5418         ALLOCNO_FIRST_COALESCED_ALLOCNO.
5419         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
5420         (assign_hard_reg): Assume no coalesced allocnos.
5421         (get_coalesced_allocnos_attributes): Remove.
5422         (bucket_allocno_compare_func): Assume no coalesced allocnos.
5423         (push_allocno_to_stack): Ditto.
5424         (remove_allocno_from_bucket_and_push): Use
5425         ira_print_expanded_allocno instead of print_coalesced_allocno.
5426         (push_allocnos_to_stack): Assume uncoalesced allocnos.
5427         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
5428         all_conflicting_hard_regs.
5429         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
5430         (setup_allocno_left_conflicts_size): Ditto.
5431         (put_allocno_into_bucket): Ditto.
5432         (copy_freq_compare_func): Remove.
5433         (copy_freq_compare_func, merge_allocnos): Move before
5434         coalesced_pseudo_reg_freq_compare.
5435         coalesced_allocno_conflict_p): Ditto.
5436         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
5437         parameter.  Assume it true.
5438         (color_allocnos): Assume uncoalesced allocnos.  Use
5439         ira_print_expanded_allocno instead of print_coalesced_allocno.
5440         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
5441         parameter.
5442
5443         * ira.c: Remove comment about coalescing.
5444
5445 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5446
5447         * config/mips/mips.h (target_flags_explicit): Declare for
5448         GENERATOR_FILE.
5449
5450 2010-10-04  Andi Kleen  <ak@linux.intel.com>
5451
5452         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
5453         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
5454
5455 2010-10-04  Matthias Klose  <doko@ubuntu.com>
5456
5457         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
5458         multilib osdirname if it exists.
5459         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
5460
5461 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
5462
5463         PR middle-end/45876
5464         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
5465         arg0's type or its unsigned counterpart as utype.  Convert
5466         arg1 to utype unconditionally.
5467
5468 2010-10-04  Julian Brown  <julian@codesourcery.com>
5469
5470         * expr.c (expand_assignment): Add assertion to prevent emitting
5471         null rtx for movmisalign pattern.
5472         (expand_expr_real_1): Likewise.
5473         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
5474         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
5475         (arm_vector_alignment_reachable): New.
5476         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
5477         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
5478         (arm_print_operand): Include alignment qualifier in %A.
5479         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
5480         (movmisalign<mode>): New expander.
5481         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
5482         insn patterns.
5483
5484 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5485
5486         * optc-gen.awk: Define global_options_set.  Don't define
5487         target_flags_explicit.
5488         * opth-gen.awk: Declare global_options_set.  Define
5489         target_flags_explicit as macro.
5490         * opts-common.c (handle_option): Take opts_set and generated_p
5491         parameters.
5492         (handle_generated_option, read_cmdline_option, set_option): Take
5493         opts_set parameter.
5494         (set_option): Use opts_set instead of hardcoding target_flags and
5495         target_flags_explicit.
5496         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
5497         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
5498         flag_value_profile_transformations_set, flag_peel_loops_set,
5499         flag_branch_probabilities_set, flag_inline_functions_set,
5500         flag_ipa_cp_set, flag_ipa_cp_clone_set,
5501         flag_predictive_commoning_set, flag_unswitch_loops_set,
5502         flag_gcse_after_reload_set): Remove.
5503         (common_handle_option, lang_handle_option, target_handle_option):
5504         Take opts_set parameter.  Assert that it is &global_options_set.
5505         (common_handle_option): Don't set _set variables.  Check opts_set
5506         instead of such variables.
5507         (enable_warning_as_error): Pass &global_options_set to
5508         handle_generated_option.
5509         * opts.h (cl_option_handler_func.handler, set_option,
5510         handle_option, handle_generated_option, read_cmdline_option): Add
5511         opts_set parameters.
5512         (handle_option): Add generated_p parameter.
5513         * config/i386/i386.c (ix86_function_specific_save,
5514         ix86_function_specific_restore): Updat for renaming of
5515         target_flags_explicit field.
5516         * config/i386/i386.opt (target_flags_explicit): Rename to
5517         ix86_target_flags_explicit.
5518         * config/ia64/ia64.c (ia64_override_options_after_change): Check
5519         global_options_set.x_flag_selective_scheduling and
5520         global_options_set.x_flag_selective_scheduling2, not
5521         sel_sched_switch_set.
5522         * flags.h (sel_sched_switch_set,
5523         flag_speculative_prefetching_set): Remove.
5524         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
5525         that it is &global_options_set.
5526         (process_command): Pass &global_options_set to read_cmdline_option.
5527         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
5528         set_option.
5529         * toplev.c (target_flags_explicit): Remove.
5530
5531 2010-10-04  Jan Hubicka  <jh@suse.cz>
5532
5533         PR middle-end/45871
5534         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
5535         use get_ref_base_and_offset to handle references.
5536         (fold_const_aggregate_ref): Update.
5537
5538 2010-10-04  Martin Jambor  <mjambor@suse.cz>
5539
5540         PR tree-optimization/45572
5541         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
5542         ipa_check_create_node_params.
5543         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
5544
5545 2010-10-04  Yao Qi  <yao@codesourcery.com>
5546
5547         * doc/passes.texi: Clean up.
5548
5549 2010-10-03  Ian Lance Taylor  <iant@google.com>
5550
5551         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
5552         referring to a field using a typedef name.
5553         (find_anonymous_field_with_type): New static function.
5554         (convert_to_anonymous_field): New static function.
5555         (convert_for_assignment): If -fplan9-extensions, permit converting
5556         pointer to struct to pointer to anonymous field.
5557         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
5558         (is_duplicate_field): New static function.
5559         (detect_field_duplicates_hash): If -fplan9-extensions, check for
5560         typedef names duplicating field names.
5561         (detect_field_duplicates): Likewise.
5562         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
5563         (C Dialect Options): Document -fplan9-extensions.
5564         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
5565
5566 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
5567
5568         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
5569         revision 164914.
5570         (vect_create_data_ref_ptr): Likewise.
5571         * tree-vect-stmts.c (vectorizable_store): Likewise.
5572         (perm_mask_for_reverse): Likewise.
5573         (reverse_vec_elements): Likewise.
5574         (vectorizable_load): Likewise.
5575
5576 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5577
5578         * cppbuiltin.c: New file.
5579         * cppbuiltin.h: New file.
5580         * Makefile.in: Take into account cppbuiltin.{h,c}.
5581
5582 2010-10-03  Andi Kleen  <ak@linux.intel.com>
5583
5584         * lto-cgraph.c (input_cgraph): Check for missing sections.
5585
5586 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
5587
5588         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
5589         to nonimmediate_operand.  Force operand 2 to register when allowed.
5590         (*<shiftrt_insn><mode>3_mask): Ditto.
5591         (*<rotate_insn><mode>3_mask): Ditto.
5592
5593 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
5594
5595         PR tree-optimization/45720
5596         PR tree-optimization/45764
5597         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5598         Don't accept backwards consecutive accesses.
5599         (vect_create_data_ref_ptr): Disallow negative steps.
5600
5601         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
5602         (perm_mask_for_reverse): Removed.
5603         (reverse_vec_elements): Likewise.
5604         (vectorizable_load): Don't handle negative steps.
5605
5606 2010-10-02  Jan Hubicka  <jh@suse.cz>
5607
5608         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
5609         call destination is known.
5610
5611 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5612
5613         PR target/45820
5614         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
5615         earlier.
5616
5617 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5618
5619         * doc/install.texi (Configuration): Document build_configargs,
5620         host_configargs, target_configargs.
5621
5622 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
5623
5624         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
5625         (*<shiftrt_insn><mode>3_mask): Ditto.
5626         (*<rotate_insn><mode>3_mask): Ditto.
5627
5628 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
5629
5630         PR tree-optimization/44716
5631         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
5632         (HOT_TEXT_SECTION_NAME): Define.
5633
5634 2010-10-01  Nick Clifton  <nickc@redhat.com>
5635
5636         * common.opt: Add -fcombine-stack-adjustments.
5637         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
5638         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
5639         flag_combine_stack_adjustments.
5640         * doc/invoke.texi: Document the new option.
5641
5642 2010-10-01  Richard Guenther  <rguenther@suse.de>
5643
5644         PR tree-optimization/45854
5645         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
5646
5647 2010-10-01  Anthony Green  <green@moxielogic.com>
5648
5649         * config.gcc: Fix moxie-*-rtems* configuration.
5650
5651 2010-10-01  Richard Guenther  <rguenther@suse.de>
5652
5653         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
5654         (gen_decl_die): Likewise.
5655
5656 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5657
5658         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
5659         to the function code for SPU MD builtins.
5660         (spu_expand_builtin): Update.
5661         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
5662
5663 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5664
5665         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
5666         sjlj_except_unwind_info.
5667
5668 2010-10-01  Tristan Gingold  <gingold@adacore.com>
5669
5670         * configure.ac: Define the nop insn for avr*-*-*
5671         * configure: Regenerate.
5672
5673 2010-10-01  Alan Modra  <amodra@gmail.com>
5674
5675         PR target/45807
5676         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
5677         extend toc_restore_insn.
5678
5679 2010-09-30  Richard Guenther  <rguenther@suse.de>
5680
5681         PR tree-optimization/43959
5682         * function.c (gimplify_parameters): Use create_tmp_reg instead of
5683         create_tmp_var.
5684
5685 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5686
5687         * config/sh/sh.c (sh_expand_prologue): Set
5688         current_function_static_stack_size.
5689
5690 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5691
5692         * configure.ac: Check for Solaris 8 ld with .hidden support.
5693         * configure: Regenerate.
5694
5695 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5696
5697         PR middle-end/45758
5698         * graphite.c (graphite_initialize): Call scev_reset.
5699
5700 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5701
5702         * sese.h (scev_analyzable_p): Return false for real or floating
5703         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
5704
5705 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5706
5707         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
5708         and ps.
5709         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
5710         domain.
5711         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
5712         Do not allocate ub_expr, it is passed in initialized.
5713
5714 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5715
5716         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
5717         (build_cloog_prog): Dump CLooG input file when
5718         flag_graphite_dump_cloog is set.  This is disabled on trunk.
5719         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
5720
5721 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5722
5723         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
5724         verify_dominators for CDI_POST_DOMINATORS.
5725         * sese.h: Remove comment about CDI_POST_DOMINATORS.
5726         (recompute_all_dominators): Remove call to free_dominance_info
5727         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
5728         for CDI_POST_DOMINATORS.
5729
5730 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5731
5732         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
5733         over pbb_dim_iter_domain.
5734
5735 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5736
5737         * graphite-flattening.c: Fix comments.
5738
5739 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5740
5741         * Makefile.in (OBJS-common): Add graphite-flattening.o.
5742         (graphite-flattening.o): New rule.
5743         * common.opt (floop-flatten): New flag.
5744         * doc/invoke.texi (-floop-flatten): Documented.
5745         * graphite-flattening.c: New.
5746         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
5747         * graphite-poly.h (flatten_all_loops): Declared.
5748         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
5749         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
5750         is set, also set flag_graphite.
5751
5752 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5753
5754         * graphite-poly.c (cloog_checksum): New.
5755         * graphite-poly.h (cloog_checksum): Declared.
5756
5757 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5758
5759         * graphite-poly.c (pbb_number_of_iterations): Removed.
5760         (pbb_number_of_iterations_at_time): Correctly compute the number
5761         of iterations in the transformed loop.
5762         * graphite-poly.h (pbb_number_of_iterations): Removed.
5763
5764 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5765
5766         * graphite-poly.h (lst_update_scattering_seq): Removed.
5767         (lst_update_scattering): Correctly handle outermost loop dewey
5768         renumbering.
5769
5770 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5771
5772         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
5773         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
5774         * graphite-poly.h (lst_niter_for_loop): New.
5775
5776 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5777
5778         * graphite-poly.c (apply_poly_transforms): Do not abort when the
5779         transform read from disk is not legal.  Call fatal_error instead.
5780
5781 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5782
5783         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
5784         (print_scop_header): Removed.  Inlined in the only call place...
5785         (print_scop): ... here.
5786
5787 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5788
5789         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
5790
5791 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5792
5793         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
5794
5795 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5796
5797         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
5798         (dot_deps_stmt): Same.
5799         * graphite-poly.c (dot_lst): Same.
5800
5801 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5802
5803         * graphite-blocking.c (scop_do_strip_mine): Do not call
5804         graphite_legal_transform.
5805         (scop_do_block): Same.
5806
5807 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
5808
5809         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
5810         description.
5811
5812 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5813
5814         * tree-scalar-evolution.c (instantiate_array_ref): New.
5815         (instantiate_scev_r): Also handle ARRAY_REFs.
5816
5817 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5818
5819         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5820         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
5821         RESULT_DECL, and FIELD_DECL.  Return false for an
5822         SSA_NAME_IS_DEFAULT_DEF.
5823         (compute_scalar_evolution_in_loop): Do not further analyze the
5824         scalar evolution when no_evolution_in_loop_p returns true.
5825
5826 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5827
5828         * tree-chrec.h (evolution_function_is_affine_p): Do not check
5829         whether CHREC_LEFT is invariant.  A function is affine when
5830         CHREC_RIGHT is invariant.
5831
5832 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5833
5834         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
5835         is_gimple_reg.
5836         (rewrite_degenerate_phi): Same.
5837         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
5838
5839 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
5840
5841         * graphite-scop-detection.c (graphite_can_represent_scev,
5842         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
5843         graphite_can_represent_loop): Remove outermost_loop.
5844
5845 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5846
5847         PR middle-end/45229
5848         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
5849         handle GIMPLE_CALLs with no LHS.
5850
5851 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
5852
5853         * graphite-poly.c (init_graphite_out_file): New.
5854         (init_graphite_in_file): New.
5855         (apply_poly_transforms): Updated to enable reading and writing of
5856         multiple scop files.
5857
5858 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
5859
5860         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
5861         redundant checks.
5862
5863 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5864
5865         * graphite-clast-to-gimple.c (precision_for_value): Adjust
5866         computation of precision by 1.
5867
5868 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
5869
5870         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
5871         (openscop_read_polyhedron_matrix): New.
5872         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
5873         (openscop_read_N_int): Same.
5874         * graphite-poly.c (openscop_read_N_int): New.
5875         (openscop_read_one_int): New.
5876         (openscop_read_N_string): New.
5877         (openscop_read_one_string): New.
5878         (openscop_read_powerset_matrix): New.
5879         (graphite_read_transforms): Remove.
5880         (graphite_read_scatt): New.
5881         (graphite_read_scop_file): New.
5882         (apply_poly_transforms): Updated to call graphite_read_scop_file.
5883
5884 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5885
5886         * graphite-poly.c: Change include order.
5887
5888 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5889
5890         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
5891         (cloog_matrix_nrows): New.
5892
5893 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
5894
5895         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
5896         from matrix lines.
5897         * graphite-poly.c (openscop_print_scattering_function_1): Same.
5898         (print_scattering_function_1): Same.
5899         (openscop_print_pbb_domain): Same.
5900         (openscop_print_scop_context): Same.
5901         (print_scop_context): Same.
5902
5903 2010-09-30  Riyadh Baghdad  <baghdadi.mr@gmail.com>
5904
5905         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
5906         (openscop_print_pdr_polyhedron): Print pph.
5907
5908 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5909
5910         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
5911         priority signed types.
5912
5913 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5914
5915         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
5916         the call to lang_hooks.types.type_for_size.  Call
5917         build_nonstandard_integer_type.
5918
5919 2010-09-30  Riyadh Baghdadi  <baghdadi.mr@gmail.com>
5920
5921         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
5922         (openscop_print_polyhedron_matrix): New.
5923         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
5924         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
5925         (openscop_print_pdr_powerset): New.
5926         (openscop_print_powerset_matrix): New.
5927         (openscop_print_scattering_function_1): New.
5928         (print_scattering_function): Add support for scattering names and
5929         OpenScop format.
5930         (graphite_write_transforms): Remove.
5931         (print_pdr_access_layout): Updated to support OpenScop format.
5932         (print_pdr): Same.
5933         (openscop_print_pbb_domain): New.
5934         (print_pbb_body): Added a parameter to allow indicating that pbb_body
5935         is not provided.
5936         (print_pbb): Updated to call the new print_pbb_body.
5937         (openscop_print_scop_context): New.
5938         (print_scop_header): New.
5939         (print_scop): Updated to call print_scop_header.
5940         * graphite-poly.h: Document OpenScop format.
5941
5942 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
5943
5944         * config/cris/m32c.c (cris_memory_move_cost): New.
5945         (cris_register_move_cost): Make static. Change arguments type from
5946         enum reg_class to reg_class_t.
5947         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5948         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5949         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
5950
5951 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
5952
5953         PR target/45843
5954         * config/i386/i386.c (ix86_gimplify_va_arg): Use
5955         INTVAL (XEXP (slot, 1)) as prev_size.
5956
5957 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5958
5959         PR target/45837
5960         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
5961         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
5962         defined.
5963         * config/rs6000/option-defaults.h (toplevel): Change #if
5964         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
5965         global option changes.
5966
5967 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
5968
5969         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
5970
5971         PR tree-optimization/31261
5972         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
5973         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
5974
5975 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5976
5977         PR bootstrap/45796
5978         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
5979         special-casing for generators and turn into ...
5980         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
5981         rule, for better error messages in case of toplevel dependency errors.
5982         (genprog): Add hooks, rename to ...
5983         (genprogerr): ... this, and let genprog also contain check,
5984         checksum, condmd.
5985         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
5986         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
5987         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
5988
5989 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
5990             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5991
5992         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
5993         for GMP, MPFR and MPC.
5994
5995 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5996
5997         * config/sparc/sparc.opt (mimpure-text): Move ...
5998         * config/sol2.opt: ... here.  Correct description.
5999         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
6000         * doc/invoke.texi (Option Summary, SPARC Options): Move
6001         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
6002         (Option Summary, Solaris 2 Options): ... here.
6003         (Submodel Options, Solaris 2 Options): New menu entry.
6004         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
6005         (Solaris 2 Options): ... here.
6006
6007 2010-09-30  Michael Eager  <eager@eagercon.com>
6008
6009         * extend.texi (interrupt_handler): Add MicroBlaze to list.
6010         (save_volatiles): Describe option for MicroBlaze.
6011         * invoke.texi: Add MicroBlaze Options.
6012         * contrib.texi: Add acknowledgment.
6013         * md.texi: Add MicroBlaze d and z constraints.
6014         * install.texi: Add microblaze-*-elf.
6015         * configure.ac: Add microblaze-*-* to target list.
6016         * configure: Regenerate.
6017         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
6018         * config/microblaze/microblaze-protos.h: New.
6019         * config/microblaze/crti.s: New.
6020         * config/microblaze/predicates.md: New.
6021         * config/microblaze/linux.h: New.
6022         * config/microblaze/microblaze.md: New.
6023         * config/microblaze/constraints.md: New.
6024         * config/microblaze/crtn.s: New.
6025         * config/microblaze/microblaze.opt: New.
6026         * config/microblaze/microblaze-c.c: New.
6027         * config/microblaze/t-microblaze: New.
6028         * config/microblaze/microblaze.c: New.
6029         * config/microblaze/microblaze.h: New.
6030
6031 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
6032
6033         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
6034         parse @optional/@required and set the flags as appropriate.
6035
6036 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
6037
6038         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
6039
6040 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
6041
6042         * opt-functions.awk (static_var): Update comment.
6043         (var_ref): Return offsetof expression or -1, not variable address.
6044         * optc-gen.awk: Generate structure field initializers instead of
6045         static variables.  Expect -1 for missing variables instead of null
6046         pointer.  Add gcc_options parameters to generated functions.
6047         * opth-gen.awk: Generate structure fields for static variables.
6048         Add gcc_options parameters to generated functions.
6049         * common.opt (optimize, optimize_size): Add variables.
6050         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
6051         &global_options to cl_target_option_restore.
6052         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
6053         &global_options to cl_optimization_restore, cl_target_option_save
6054         and cl_target_option_restore.
6055         (ix86_set_current_function): Pass &global_options to
6056         cl_target_option_restore.
6057         * config/pdp11/pdp11.h (optimize): Remove.
6058         * config/rs6000/rs6000.h (optimize): Remove.
6059         * config/sh/sh.h (optimize): Remove.
6060         * config/xtensa/xtensa.h (optimize): Remove.
6061         * coretypes.h (struct gcc_options): Declare.
6062         * diagnostic.c (diagnostic_initialize): Initialize
6063         context->option_state.
6064         (diagnostic_report_diagnostic): Pass option_state to
6065         option_enabled hook.
6066         * diagnostic.h (diagnostic_context.option_enabled): Add void *
6067         parameter.
6068         (diagnostic_context.option_state): New field.
6069         * final.c (final_start_function, final, final_scan_insn): Rename
6070         optimize parameter to optimize_p.
6071         * flags.h (optimize, optimize_size): Remove.
6072         * function.c (invoke_set_current_function_hook): Pass
6073         &global_options to cl_optimization_restore.
6074         * gcc.c (driver_handle_option): Take gcc_options parameter.
6075         Assert that it is &global_options.
6076         (process_command): Pass &global_options to read_cmdline_option.
6077         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
6078         option_enabled.
6079         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
6080         &global_options to set_option.
6081         * opts-common.c (handle_option, handle_generated_option,
6082         read_cmdline_option, set_option): Take explicit gcc_options
6083         parameters.  Use option_flag_var.
6084         (option_flag_var): New.
6085         * opts.c (common_handle_option, lang_handle_option,
6086         target_handle_option): Take gcc_options parameter.  Assert that it
6087         is &global_options.
6088         (read_cmdline_options): Pass &global_options to read_cmdline_option.
6089         (print_filtered_help): Use option_flag_var.  Pass &global_options
6090         to option_enabled.
6091         (common_handle_option): Use option_flag_var.
6092         (option_enabled): Take opts parameter.  Use option_flag_var.
6093         (get_option_state): Take gcc_options parameter.  Use
6094         option_flag_var.  Pass gcc_options parameter to option_enabled.
6095         (enable_warning_as_error): Pass &global_options to
6096         handle_generated_option.
6097         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
6098         (cl_option_handler_func.handler): Take gcc_options parameter.
6099         (option_enabled, get_option_state, set_option, handle_option,
6100         handle_generated_option, read_cmdline_option): Take gcc_options
6101         parameters.
6102         * toplev.c (optimize, optimize_size): Remove.
6103         (print_switch_values): Pass &global_options to option_enabled.
6104         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
6105         to get_option_state.
6106         (general_init): Initialize global_dc->option_state.
6107         * tree.c (build_optimization_node): Pass &global_options to
6108         cl_optimization_save.
6109         (build_target_option_node): Pass &global_options to
6110         cl_target_option_save.
6111
6112 2010-09-30  Martin Jambor  <mjambor@suse.cz>
6113
6114         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
6115         zero sized bit-fields.
6116
6117 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
6118
6119         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
6120         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
6121         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
6122         (c_parser_objc_class_declaration): Same change.
6123         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
6124         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
6125         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
6126         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
6127         and RID_AT_PUBLIC instead of RID_PUBLIC.
6128         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
6129         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
6130
6131 2010-09-30  Tom G. Christensen  <tgc@jupiterrise.com>
6132
6133         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
6134         Add links to current providers of packages for Solaris and IRIX.
6135
6136 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
6137
6138         Merge from 'apple/trunk' branch on FSF servers.
6139         * c-parser.c: Applied change originally in c-parse.in.
6140
6141         2005-10-04  Fariborz Jahanian  <fjahanian@apple.com>
6142
6143         Radar 4281748
6144         * c-decl.c (start_decl): Check for redeclaration of class name.
6145         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
6146
6147 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
6148
6149         * config/ia64/ia64.c (ia64_builtin_decl): New.
6150         (TARGET_BUILTIN_DECL): Define.
6151         (ia64_builtins): New.
6152         (ia64_init_builtins): Save decls in ia64_builtins.
6153
6154 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
6155
6156         PR target/40457
6157         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
6158         (move2add_use_add3_insn): Likewise.
6159         (reload_cse_move2add): Likewise.
6160         * rtlanal.c (get_full_rtx_cost): New function.
6161         * rtl.h (struct full_rtx_costs): New.
6162         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
6163         costs_add_n_insns): New inline functions.
6164         (get_full_rtx_cost): Declare.
6165
6166         PR c/45054
6167         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
6168         invariants.  Check for reg_equiv_invariant.
6169         (reload): Assert that spilled_pseudos is empty when returning.
6170
6171 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
6172
6173         * config/i386/mingw32.h (TARGET_64BIT): replaced by
6174         TARGET_64BIT_DEFAULT in #if check.
6175
6176 2010-09-29  Jack Howarth  <howarth@bromo.med.uc.edu>
6177
6178         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
6179
6180 2010-09-29  Mike Stump  <mikestump@comcast.net>
6181
6182         * config/darwin.h (flag_mkernel): Remove.
6183         (flag_apple_kext): Likewise.
6184
6185 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
6186             Jack Howarth  <howarth@bromo.med.uc.edu>
6187
6188         * config/darwin.opt (undefined): Add.
6189
6190 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
6191
6192         PR testsuite/45664
6193         * configure.ac: Add --enable-indirect-function option.
6194         * config.gcc: Add default_gnu_indirect_function.
6195         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
6196         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
6197         * varasm.c (do_assemble_alias): Adjust for macro name change.
6198         * configure: Rebuilt.
6199         * doc/install.texi: Document --enable-indirect-function.
6200
6201 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
6202
6203         * doc/options.texi (Variable, Var, Init): Update documentation
6204         without reference to VarExists.
6205         (VarExists): Remove.
6206         * common.opt, config/i386/i386.opt, config/linux.opt,
6207         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
6208         Don't use VarExists.
6209
6210 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
6211
6212         * optc-gen.awk: Generate global_options initializer instead of
6213         individual variables.  Add x_ prefix to names of structure members.
6214         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
6215         names of structure members.
6216         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6217         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
6218         * doc/tm.texi: Regenerate.
6219         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6220         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
6221         * c-parser.c (disable_extension_diagnostics,
6222         restore_extension_diagnostics): Update names of cpp_options members.
6223         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6224         * common.opt (fcompare-debug-second): Don't use Var.
6225         * config/alpha/alpha.h (target_flags): Remove.
6226         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6227         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
6228         * config/bfin/bfin.h (target_flags): Remove.
6229         * config/cris/cris.h (target_flags): Remove.
6230         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
6231         cl_target_option members.
6232         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
6233         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
6234         ix86_can_inline_p): Update names of cl_target_option members.
6235         * config/i386/i386.h (ix86_isa_flags): Remove.
6236         * config/lm32/lm32.h (target_flags): Remove.
6237         * config/mcore/mcore.h (mcore_stack_increment): Remove.
6238         * config/mcore/mcore.md (addsi3): Remove extern declaration of
6239         flag_omit_frame_pointer.
6240         * config/mep/mep.h (target_flags): Remove.
6241         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6242         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
6243         * config/mmix/mmix.h (target_flags): Remove.
6244         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
6245         flag_expensive_optimizations): Remove.
6246         * config/s390/s390.h (flag_pic): Remove.
6247         * config/score/score-conv.h (target_flags): Remove.
6248         * config/sh/sh.h (sh_fixed_range_str): Remove.
6249         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
6250         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
6251         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6252         * diagnostic.c (diagnostic_initialize): Update names of
6253         diagnostic_context members.
6254         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
6255         warn_system_headers.
6256         (diagnostic_report_warnings_p): Update for new names.
6257         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
6258         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
6259         HARD_FRAME_POINTER_IS_ARG_POINTER.
6260         * flags.h (flag_compare_debug): Declare.
6261         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6262         * opts.c (flag_compare_debug): Define.
6263         (common_handle_option): Update names of diagnostic_context
6264         members.  Handle -fcompare-debug-second.
6265         (fast_math_flags_struct_set_p): Update names of cl_optimization
6266         members.
6267         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6268         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6269         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6270         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6271         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
6272         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
6273         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
6274         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
6275         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
6276
6277 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
6278
6279         * config/picochip/picochip.c (picochip_output_internal_label):
6280         This function can now be called for debug CFI labels, which can come
6281         in the middle of a vliw instruction.  Postpone until end of vliw.
6282
6283 2010-09-29  Richard Guenther  <rguenther@suse.de>
6284
6285         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
6286         (DECL_FILE_SCOPE_P): Use it.
6287         (TYPE_FILE_SCOPE_P): New macro.
6288
6289 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
6290
6291         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
6292         a CPP_NAME which is a reserved word, clearly separate cases for
6293         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
6294
6295 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
6296
6297         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
6298         token->value with the canonical spelling.  Do exactly like C and
6299         C++ and leave it as it is.
6300
6301 2010-09-28  Richard Henderson  <rth@redhat.com>
6302
6303         * config/alpha/alpha.c (alpha_builtins): New.
6304         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
6305         (alpha_builtin_function): New.
6306         (alpha_add_builtins, alpha_init_builtins): Use it.
6307
6308 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
6309
6310         * doc/standards.texi (Standards): Expanded the section on
6311         Objective-C and Objective-C++.
6312
6313 2010-09-28  DJ Delorie  <dj@redhat.com>
6314
6315         PR target/45800
6316         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
6317         volatile MEMs.
6318
6319 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
6320
6321         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
6322         attributes on methods.
6323          (c_parser_objc_method_definition): Handle attributes.
6324         (c_parser_objc_methodproto): Likewise.
6325         (c_parser_objc_maybe_method_attributes): New.
6326         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
6327         missing definition, similar to that in ObjC++.
6328
6329 2010-09-28  Richard Henderson  <rth@redhat.com>
6330
6331         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
6332         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
6333         (CONFIG_SJLJ_EXCEPTIONS): Remove.
6334         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
6335         (STACK_CHECK_PROTECT): Likewise.
6336         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
6337         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
6338         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
6339         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
6340         (dwarf2out_assembly_start): Likewise.
6341         * except.c (init_eh): Use targetm.except_unwind_info.
6342         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
6343         (output_one_function_exception_table): Likewise.
6344         * final.c: Unconditionally include dwarf2out.h.
6345         (final_start_function): Unconditionally call dwarf2out routines.
6346         (final_end_function, final_scan_insn): Likewise.
6347         * function.c (expand_function_end): Use targetm.except_unwind_info.
6348         * opts.c (decode_options): Use targetm.except_unwind_info.
6349         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
6350         * target.def (debug_unwind_info, except_unwind_info): New.
6351         * target.h (enum unwind_info_type): New.
6352         * targhooks.c (default_debug_unwind_info): New.
6353         (default_except_unwind_info): New.
6354         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
6355         * targhooks.h: Declare them.
6356         * tree-tailcall.c: Include "target.h"
6357         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
6358         * Makefile.in (tree-tailcall.o): Update.
6359         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
6360         (lhd_gcc_personality): Likewise.
6361
6362         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
6363         (TARGET_EXCEPT_UNWIND_INFO): New.
6364         (DWARF2_UNWIND_INFO): Update.
6365         (TARGET_DEBUG_UNWIND_INFO): New.
6366         * doc/tm.texi: Rebuild.
6367
6368         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
6369         targetm.except_unwind_info.
6370
6371         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
6372         (arm_except_unwind_info): New.
6373         (arm_compute_func_type): Use it.
6374         (arm_expand_prologue, thumb_pushpop): Likewise.
6375         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
6376         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
6377         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
6378         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
6379         (DWARF2_UNWIND_INFO): Remove.
6380         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
6381         (ARM_EABI_UNWIND_TABLES): Remove.
6382
6383         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
6384         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
6385         (ia64_except_unwind_info): New.
6386         (ia64_output_function_prologue): Use it.
6387         (ia64_add_bundle_selector_before): Likewise.
6388         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
6389         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
6390         (TARGET_UNWIND_INFO): Remove.
6391
6392         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
6393
6394 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
6395
6396         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
6397         (c_parser_objc_protocol_definition): Likewise.
6398         (c_parser_external_declaration): Provide dummy attribute arguments.
6399         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
6400         (c_parser_objc_class_definition): Handle attributes.
6401         (c_parser_objc_protocol_definition): Likewise.
6402
6403 2010-09-28  Tobias Burnus  <burnus@net-b.de>
6404
6405         PR fortran/40569
6406         PR fortran/40568
6407         * toplev.h (save_decoded_options, save_decoded_options_count):
6408         New global variables.
6409         * toplev.c (save_decoded_options, save_decoded_options_count):
6410         Export variables.
6411
6412 2010-09-28  Ian Lance Taylor  <iant@google.com>
6413
6414         * config/i386/i386.c (ix86_supports_split_stack): Test
6415         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
6416
6417 2010-09-28  Ian Lance Taylor  <iant@google.com>
6418
6419         PR target/45815
6420         * opts.c (decode_options): Don't test whether the target supports
6421         split stack if flag_split_stack == 0.
6422
6423 2010-09-28  Jan Hubicka  <jh@suse.cz>
6424
6425         * builtin-attrs.def (ATTR_LEAF): New attribute.
6426         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
6427         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
6428         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
6429         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
6430         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
6431         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
6432         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
6433         * sync-builtins.def: Annotate all builtins by leaf.
6434         * omp-builtins.def: Annotate all builtins by leaf.
6435         * builtins.def: Annotate relevant builtins with leaf attribute.
6436         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
6437         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
6438         leaf.
6439
6440 2010-09-28  Jan Hubicka  <jh@suse.cz>
6441
6442         * tree-ssa-ccp.c (fold_ctor_reference): New function.
6443         (fold_const_aggregate_ref): Use it.
6444         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
6445         into external static.
6446
6447 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6448
6449         PR target/44452
6450         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
6451         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
6452         (ix86_solaris_return_in_memory): Remove.
6453         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
6454         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
6455         (TARGET_SUBTARGET_DEFAULT): Redefine.
6456         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
6457         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
6458         (TARGET_SUBTARGET_DEFAULT): Redefine.
6459         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
6460         -mvect8-ret-in-mem.
6461         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
6462
6463 2010-09-29  Alan Modra  <amodra@gmail.com>
6464
6465         PR target/45807
6466         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
6467         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
6468         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
6469         Delete.
6470         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
6471         (rs6000_emit_prologue): Don't just create frame save info for r2,
6472         actually save r2.
6473
6474 2010-09-28  Richard Henderson  <rth@redhat.com>
6475
6476         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
6477         when 8 bytes are requested.
6478
6479 2010-09-28  Tristan Gingold  <gingold@adacore.com>
6480
6481         * config/avr/avr.c (expand_prologue): Set
6482         current_function_static_stack_size.
6483
6484 2010-09-28  Tristan Gingold  <gingold@adacore.com>
6485
6486         * config/alpha/alpha.md: Change the initial condition of the
6487         probing loop.
6488
6489 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
6490
6491         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
6492         Split from *avx_<maxmin:code><mode>3.
6493         (*avx_<smaxmin:code><mode>3): Ditto.
6494         * config/i386/i386.md (maxmin): Remove code iterator.
6495
6496 2010-09-27  Ian Lance Taylor  <iant@google.com>
6497
6498         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
6499         requires assembler support for CFI directives.
6500
6501 2010-09-27  Richard Henderson  <rth@redhat.com>
6502
6503         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
6504
6505 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
6506
6507         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
6508         that AFTER is not in the range FROM..TO, inclusive.
6509
6510 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
6511             Bernd Schmidt  <bernds@codesourcery.com>
6512
6513         PR rtl-optimization/45792
6514         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
6515         If not all insns are to be merged, for each edge, stash the
6516         next candidate after the to-be-merged insns before doing the
6517         merge, and use them for the retry at the new insertion point.
6518         Handle CC0 targets when retrying.
6519
6520 2010-09-27  Ian Lance Taylor  <iant@google.com>
6521
6522         * common.opt (fsplit-stack): New option.
6523         * opts.c (decode_options): Set flag_split_stack to final value.
6524         * target.def (supports_split_stack): New hook.
6525         * gcc.c (STACK_SPLIT_SPEC): Define.
6526         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
6527         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
6528         (Code Gen Options): Document -fsplit-stack.
6529         * doc/extend.texi (Function Attributes): Mention no_split_stack.
6530         (Function Attributes): Document no_split_stack.
6531         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
6532         TARGET_SUPPORTS_SPLIT_STACK.
6533         * doc/tm.texi: Rebuild.
6534         * function.c (thread_prologue_and_epilogue_insns): If
6535         flag_split_stack, add split stack prologue.
6536         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
6537         * varasm.c (saw_no_split_stack): New static variable.
6538         (assemble_start_function): Set saw_no_split_stack if the function
6539         has the no_split_stack attribute.
6540         (file_end_indicate_split_stack): New function.
6541         * output.h (file_end_indicate_split_stack): Declare.
6542         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
6543         and function.
6544         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
6545         routines.
6546         * config/i386/i386.c (ix86_option_override_internal): Don't set
6547         expand_builtin_va_start to NULL if -fsplit-stack.
6548         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
6549         -fsplit-stack.
6550         (ix86_va_start): If -fsplit-stack, get overflow pointer from
6551         scratch register set by prologue.
6552         (ix86_code_end): If -fsplit-stack, call
6553         file_end_indicate_split_stack.
6554         (ix86_supports_split_stack): New static function.
6555         (SPLIT_STACK_AVAILABLE): Define.
6556         (split_stack_prologue_scratch_regno): New static function.
6557         (split_stack_fn): New static variable.
6558         (ix86_expand_split_stack_prologue): New function.
6559         (ix86_live_on_entry): New static function.
6560         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
6561         (output_pic_addr_const): Likewise.
6562         (i386_asm_output_addr_const_extra): Likewise.
6563         (ix86_expand_call): Change return type to rtx.  Return the new
6564         call instruction.
6565         (TARGET_SUPPORTS_SPLIT_STACK): Define.
6566         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6567         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
6568         (split_stack_prologue, split_stack_return): New insns.
6569         (split_stack_space_check): New insn.
6570         * config/i386/i386.h (struct machine_function): Add
6571         split_stack_varargs_pointer field.
6572         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
6573         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6574         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
6575         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6576         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
6577         Declare.
6578         (ix86_expand_call): Update declaration.
6579
6580 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6581
6582         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
6583         code.  Added byref, which was missing in the list of codes.
6584         Explain that enumeration values are encoded as the integer type
6585         that the compiler uses to store them.  Explain and make examples
6586         of how 'const' interacts with pointers, and the complication of
6587         the encoding of 'const char *'.
6588         (Legacy type encoding): New subsection, explaining that GCC emits
6589         incorrect type encodings for the NeXT runtime for compatibility
6590         reasons.
6591         (@@encode): New subsection, explaining @encode and particularly
6592         that protocol qualifiers are not recognized inside an @encode()
6593         expression.
6594         (Method signatures): New subsection, explaining how method
6595         signatures are encoded.
6596
6597 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6598
6599         Merge from 'apple/trunk' branch on FSF servers.  Removed small
6600         change in build_conditional_expr that had been added when fixing
6601         PR objc/27377 and which did the same check in a less complete way.
6602
6603         2005-12-15  Fariborz Jahanian  <fjahanian@apple.com>
6604
6605         Radar 4229905
6606         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
6607         looking for objective-c common pointer types.
6608
6609         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
6610
6611         Radar 4154928
6612         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
6613         use their ObjC common type.
6614
6615 2010-09-27  Richard Guenther  <rguenther@suse.de>
6616
6617         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
6618
6619 2010-09-27  Jie Zhang  <jie@codesourcery.com>
6620
6621         * print-tree.c (print_node): Print in-constant-pool.
6622
6623 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
6624
6625         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
6626         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
6627         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
6628         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
6629
6630 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
6631
6632         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
6633         from pro_epilogue_adjust_stack_<mode>_{1,2}.
6634         (pro_epilogue_adjust_stack_<mode>_add): Rename from
6635         pro_epilogue_adjust_stack_<mode>_3.
6636         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
6637         renamed pro_epilogue_adjust_stack_{si,di}_add.
6638         (ix86_expand_prologue): Use indirect functions.  Update for renamed
6639         pro_epilogue_adjust_stack_{si,di}_sub.
6640
6641 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
6642
6643         * config/i386/i386.md (movmsk_df): New insn.
6644         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
6645         sequence for TARGET_SSE_MATH.
6646
6647 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
6648
6649         * config/mips/mips.c (mips_builtin_decls): Declare.
6650         (mips_init_builtins): Store function declarations in
6651         mips_builtin_decls.
6652         (mips_builtin_decl): New function.
6653         (TARGET_BUILTIN_DECL): Define.
6654
6655 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
6656             Richard Henderson  <rth@redhat.com>
6657
6658         * config/i386/cygwin.asm: Include auto-host.h.
6659         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
6660         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
6661         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
6662         alignment code from the 64-bit path.  Use gas local labels.
6663         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
6664         from _di_2.  Remove the useless constant integer argument.
6665         (pro_epilogue_adjust_stack_<mode>_3): New.
6666         (allocate_stack_worker_probe_<mode>): Macroize from
6667         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
6668         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
6669         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
6670         (__chkstk_ms): New function.
6671         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
6672         * config/i386/t-interix: Likewise.
6673         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
6674         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
6675         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
6676         * configure, config.in: Rebuild.
6677
6678 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
6679
6680         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
6681         statements because of the return slot optimization.
6682
6683 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
6684
6685         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
6686         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
6687         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6688         (class_likely_spilled_p): Rename to...
6689         (avr_class_likely_spilled_p): ...this. Make static. Change argument
6690         type to reg_class_t.
6691
6692 2010-09-24  Jan Hubicka  <jh@suse.cz>
6693
6694         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
6695         (lto_symtab_resolve_symbols): Set it.
6696         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
6697         store resolution field in cgraph/varpool.
6698         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
6699         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
6700         (cgraph_dump_node): Drop used_from_object_file.
6701         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
6702         (cgraph_function_body_availability): Use decl_replaceable_p.
6703         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
6704         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
6705         cgraph_used_from_object_file_p.
6706         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
6707         cgraph_used_from_object_file_p.
6708         (resolution_used_from_other_file_p): New functoin.
6709         (cgraph_used_from_object_file_p): New predicate.
6710         * cgraph.h: Include plugin-api.h
6711         (struct cgraph_local_info): Remove used_from_object_file.
6712         (struct cgraph_node): Add resolution field.
6713         (struct varpool_node): Likewise; remove used_from_object_file;
6714         reove const_value_known.
6715         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
6716         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
6717         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
6718         varpool_used_from_object_file_p): Declare.
6719         (varpool_get_node, varpool_extra_name_alias): Update prototype.
6720         * tree.h (DECL_REPLACEABLE_P): Remove.
6721         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
6722         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
6723         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6724         input_overwrite_node, input_node, input_varpool_node): Stream
6725         resolution.
6726         * expr.c (expand_expr_real_1): Use const_value_known_p
6727         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
6728         const_value_known.
6729         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
6730         (function_and_variable_visibility): Set resolution for local vars
6731         and functions; use varpool_used_from_object_file_p.
6732         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
6733         static functions.
6734         (default_binds_local_p_1): Use resolutoin info.
6735         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
6736         * varpool.c (varpool_get_node): Constify.
6737         (const_value_known_p): Do not use vnode->const_value_known;
6738         use decl_replaceable_p.
6739         (varpool_finalize_decl): Do not set const_value_known.
6740         (cgraph_variable_initializer_availability): Use decl_replaceable_p
6741         (varpool_extra_name_alias): Return new node.
6742         (varpool_used_from_object_file_p): New function.
6743
6744 2010-09-24  Richard Henderson  <rth@redhat.com>
6745
6746         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
6747         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
6748         (do_spill): Use REG_CFA_OFFSET.
6749         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
6750         as appropriate.
6751         (ia64_expand_epilogue): Likewise.
6752         (process_set): Split into ...
6753         (process_cfa_adjust_cfa): this,
6754         (process_cfa_register): this,
6755         (process_cfa_offset): and this new function.
6756         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
6757         instead of REG_FRAME_RELATED_EXPR.
6758
6759 2010-09-24  Olivier Hainque  <hainque@adacore.com>
6760
6761         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
6762
6763 2010-09-24  Jan Hubicka  <jh@suse.cz>
6764
6765         * doc/extend.texi: (attribute leaf): Document.
6766         * tree.c (local_define_builtin): Handle ECF_LEAF.
6767         (build_common_builtin_nodes): Set ECF_LEAF where needed.
6768         * tree.h (ECF_LEAF): New.
6769         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
6770         overwrittable and unavailable functions.
6771         (ipa_init): Put all_module_statics into optimization_summary_obstack.
6772         (copy_global_bitmap): Do not copy all_module_statics.
6773         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
6774         (propagate): Handle overwritable and unavailable leaf functions;
6775         initialize global info for overwritable and unavailable leaf functions;
6776         do not free all module statics.
6777         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
6778         local statics.
6779         * calls.c (flags_from_decl_or_type): Handle leaf.
6780         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
6781         abnormal gotos.
6782
6783 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
6784
6785         * gengtype.c: Reindented.
6786         * gengtype.h: Reindented.
6787         * gengtype-parse.c: Reindented.
6788
6789 2010-09-24  Jan Hubicka  <jh@suse.cz>
6790
6791         PR tree-optimization/45738
6792         PR tree-optimization/45741
6793         * expr.c (string_constant): Allow CONST_DECL too;
6794         check that DECL_INITIAL is set.
6795         * varpool.c (const_value_known_p): Only look into VAR_DECL
6796         and CONST_DECL.
6797
6798 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
6799
6800         * common.opt (undef): New.
6801
6802 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
6803
6804         PR middle-end/45234
6805         * rtl.h (enum global_rtl_index): Add
6806         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
6807         (LAST_VIRTUAL_POINTER_REGISTER): Define.
6808         (virtual_preferred_stack_boundary_rtx,
6809         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
6810         (LAST_VIRTUAL_REGISTER): Increase by one.
6811         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
6812         instead of LAST_VIRTUAL_REGISTER.
6813         * function.c (instantiate_new_reg): Handle
6814         virtual_preferred_stack_boundary_rtx.
6815         * emit-rtl.c (init_virtual_regs): Handle
6816         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6817         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
6818         * explow.c (round_push): If crtl->preferred_stack_boundary
6819         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
6820         virtual_preferred_stack_boundary_rtx alignment instead of
6821         crtl->preferred_stack_boundary alignment.
6822         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
6823         macros.  Never decrease crtl->preferred_stack_boundary,
6824         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
6825         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
6826         stack_pointer_delta in dynamic allocation, even when size
6827         is constant.
6828         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
6829         macro.
6830         * print-rtl.c (print_rtx): Handle
6831         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6832         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
6833         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
6834         * config/frv/frv.c (frv_emit_movsi): Likewise.
6835         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
6836         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
6837         Likewise.
6838
6839         Revert:
6840         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
6841
6842         PR middle-end/45234
6843         * calls.c (expand_call): Make sure that all variable sized
6844         adjustments are multiple of preferred stack boundary after
6845         stack alignment.
6846
6847 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
6848             Dominique Dhumieres  <dominiq@lps.ens.fr>
6849
6850         PR bootstrap/45751
6851         * config/darwin-driver.c (darwin_default_min_version):
6852         Adjust size passed to memcpy in two places.
6853
6854 2010-09-24  Richard Guenther  <rguenther@suse.de>
6855
6856         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
6857         Make sure to not call set_type_context with error_mark_node.
6858         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
6859
6860 2010-09-24  Richard Guenther  <rguenther@suse.de>
6861
6862         * Makefile.in (OBJS-onestep): Remove.
6863         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
6864         (libbackend.a): Remove onestep support.
6865         (libbackend.o): Remove.
6866         * configure.ac (--enable-intermodule): Remove.
6867         * configure: Regenerate.
6868
6869 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
6870
6871         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
6872         reaching the end of a block if it occurs at a DEBUG_INSN.
6873
6874 2010-09-09  Tristan Gingold  <gingold@adacore.com>
6875
6876         PR target/44242
6877         * config/vms/vms-crt0-64.c: Removed.
6878         * config/vms/vms-crt0.c: Removed.
6879         * config/vms/vms-psxcrt0-64.c: Removed.
6880         * config/vms/vms-psxcrt0.c: Removed.
6881         * config/vms/vms-ucrt0.c: New file.
6882         * config/vms/t-vms64: Removed.
6883         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
6884         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
6885         * config.gcc (alpha-dec-vms): Use t-vms.
6886
6887 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
6888
6889         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
6890         underfull hbox in DVI output.
6891         (-fobjc-class-cxx-cdtors): Same change.
6892         (-fobjc-exceptions): Tidied up documentation.  Explain what the
6893         option does, but moved the (lenghty) description of the exception
6894         syntax into objc.texi.
6895         (-fobjc-gc): Explain that the option is not useful with the GNU
6896         runtime.
6897         (-fzero-link): Explain that the GNU runtime always works in
6898         "zero-link" mode.
6899         * doc/objc.texi: All sections: simplified @node declarations
6900         removing specification of next, previous, up node.
6901         (Objective-C): Updated introduction.
6902         (Garbage Collection): Updated.  The bohem-gc library is now
6903         included in gcc itself.  Mention that this section only applies to
6904         the GNU Objective-C runtime.
6905         (compatibility_alias): Small tidy up.
6906         (Exceptions): New section mostly containing text previously in the
6907         description of the -fobjc-exception command-line option.
6908         (Synchronization): Same.
6909
6910 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
6911
6912         * config/i386/i386.md (ix86_code_end): Move the initialization of
6913         xops array near the consumer.  Use AX_REG and SP_REG instead of
6914         numerical constants.
6915
6916 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
6917
6918         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
6919         method [methodname]' for an Objective-C method instead of the less
6920         satisfactory 'too many arguments to function' (with no method name).
6921
6922 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
6923
6924         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
6925         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
6926         (execute_update_addresses_taken): Remove parameter.  Execute the
6927         optimization unconditionally.
6928         * passes.c (execute_function_todo): Call execute_update_addresses_taken
6929         unconditionally if TODO_rebuild_alias is set, else only when optimizing
6930         if TODO_update_address_taken is set.
6931
6932 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
6933
6934         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6935         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
6936         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6937         (arm_output_addr_const_extra): Make static.
6938
6939 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
6940
6941         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
6942         define as unspec_volatile.
6943         ("nops"): Define as unspec_volatile. Use fputs to write to
6944         asm_out_file directly.  Output NOPs on separate lines using while loop.
6945         * config/i386/i386.c (ix86_code_end): Use fputs to write to
6946         asm_out_file directly.  Output NOPs on separate lines using while loop.
6947
6948 2010-09-23  Richard Guenther  <rguenther@suse.de>
6949
6950         PR tree-optimization/45565
6951         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
6952         Make sure to adjust the fndecl before replacing the stmt.
6953
6954 2010-09-23  Richard Guenther  <rguenther@suse.de>
6955
6956         PR middle-end/45750
6957         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
6958         gimplifying MEM_REF.
6959
6960 2010-09-23  Alan Modra  <amodra@gmail.com>
6961
6962         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
6963         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
6964
6965 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
6966
6967         PR rtl-optimization/44374
6968         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
6969         * df-core.c (df_set_bb_dirty): Set it.
6970         * ifcvt.c (find_memory): Remove function.
6971         (dead_or_predicable): Use can_move_insns_across.
6972         * df.h (can_move_insns_across): Declare function.
6973         * cfgcleanup.c (block_was_dirty): New static variable.
6974         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
6975         than df_get_bb_dirty.
6976         (try_head_merge_bb): New static function.
6977         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
6978         is set.
6979         * df-problems.c: Include "target.h"
6980         (df_simulate_find_uses): New static function.
6981         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
6982         (find_memory, find_memory_store): New static functions.
6983         (can_move_insns_across): New function.
6984         * Makefile.in (df-problems.o): Update dependencies.
6985
6986 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
6987
6988         PR java/44095
6989         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
6990         is specified and the suffix of the file isn't ".c".
6991         * config/sparc/linux64.h (ASM_SPEC): Likewise.
6992
6993 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6994
6995         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
6996         * doc/cppopts.texi: Fix markup of index entry.
6997         * doc/extend.texi (Constructing Calls): Fix markup of
6998         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
6999         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
7000         (Vague Linkage, C++ Attributes): Fix markup of index entries and
7001         keywords.
7002         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
7003         avoid long lines.
7004         (C Dialect Options, C++ Dialect Options, Warning Options)
7005         (Debugging Options, Spec Files, Darwin Options)
7006         (i386 and x86-64 Options, MIPS Options)
7007         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
7008         index entries, avoid abbreviations, allow URLs to wrap, avoid
7009         long lines, avoid overlong pages from long @itemx lists.
7010         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
7011         * doc/standards.texi (Standards): Likewise.
7012         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
7013
7014 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
7015
7016         * opts-common.c (prune_options): Make static.  Work with decoded
7017         options.
7018         (decode_cmdline_options_to_array): Call prune_options.  Don't
7019         resize option array here.
7020         * opts.h (prune_options): Remove prototype.
7021         * gcc.c (process_command): Take decoded options; don't call
7022         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
7023         (main): Call decode_cmdline_options_to_array here instead of
7024         prune_options.  Update call to process_command.
7025         * config/darwin-driver.c: Include opts.h.
7026         (darwin_default_min_version): Work with decoded options.  Don't
7027         handle -b or -V here.
7028         * config/darwin.h (darwin_default_min_version): Update prototype.
7029         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
7030         darwin_default_min_version.
7031         * config/i386/cygwin.h (mingw_scan): Update prototype.
7032         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
7033         * config/i386/cygwin1.c: Include opts.h.
7034         (mingw_scan): Work with decoded options.
7035         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
7036         * config/t-darwin (darwin-driver.o): Update dependencies.
7037
7038 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
7039
7040         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
7041         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
7042         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
7043         -force-link, -force-link=, -language, -language=,
7044         -library-directory, -library-directory=, -no-canonical-prefixes,
7045         -no-standard-libraries, -no-warnings, -optimize, -output,
7046         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
7047         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
7048         -print-file-name=, -print-libgcc-file-name,
7049         -print-multi-directory, -print-multi-lib,
7050         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
7051         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
7052         -profile, -save-temps, -shared, -specs, -specs=, -static,
7053         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
7054         symbolic): New.
7055         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
7056         * gcc.c (A Short Introduction to Adding a Command-Line Option):
7057         Remove comment.
7058         (cc1_options): Correct specs for passing down --help,
7059         --target-help and --help=*.  Add spec for passing down --version.
7060         (struct option_map, option_map, target_option_translations,
7061         translate_options): Remove.
7062         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
7063         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
7064         OPT_fhelp_ and OPT_ftarget_help.
7065         (process_command): Don't call translate_options.  Call
7066         decode_cmdline_options_to_array before checking for
7067         -no-canonical-prefixes using decoded options.
7068         * opts-common.c (tm.h): Update comment on #include.
7069         (find_opt): Allow abbreviations of long options.
7070         (struct option_map, option_map): New.
7071         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
7072         and -mno handling.
7073         (target_option_translations): New.
7074         (decode_cmdline_options_to_array): Handle
7075         TARGET_OPTION_TRANSLATE_TABLE in driver.
7076         * opts.c (common_handle_option): Don't handle OPT_fhelp,
7077         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
7078
7079 2010-09-22  Richard Guenther  <rguenther@suse.de>
7080
7081         * tree-inline.c (optimize_inline_calls): Schedule cleanups
7082         only if we inlined something.  Block compaction and conditional
7083         folding are done by cfg cleanup.  Schedule update-address-taken.
7084         (tree_function_versioning): Remove redundant call to number_blocks.
7085         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
7086         folding is done by cfg cleanup.
7087         * passes.c (init_optimization_passes): Remove update-address-taken
7088         pass after IPA inlining.
7089
7090 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
7091
7092         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
7093         to update conditions. Fix reg_mode[] check.
7094
7095 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
7096
7097         * config/picochip/picochip.md (movhicc): Use expand to check whether
7098         movhicc is available and split it after reload.
7099
7100 2010-09-22  Richard Guenther  <rguenther@suse.de>
7101
7102         * tree-ssanames.c (release_dead_ssa_names): Do not remove
7103         callee edges here.
7104         * passes.c (init_optimization_passes): Remove early CFG cleanup.
7105         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
7106         (pass_cleanup_cfg): Likewise.
7107         (execute_fixup_cfg): Cleanup.
7108         * tree-pass.h (pass_cleanup_cfg): Remove.
7109
7110 2010-09-22  Martin Jambor  <mjambor@suse.cz>
7111
7112         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
7113         builtins if it is true.
7114         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
7115         parameter.
7116
7117 2010-09-22  Martin Jambor  <mjambor@suse.cz>
7118
7119         * tree-sra.c (struct access): New field grp_no_warning.
7120         (create_access_replacement): Set TREE_NO_WARNING according to
7121          grp_no_warning.
7122         (create_artificial_child_access): Use build_ref_for_model and set
7123         grp_no_warning if build_user_friendly_ref_for_offset fails.
7124         (propagate_subaccesses_across_link): Likewise.
7125
7126 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
7127
7128         PR target/35664
7129         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
7130         ('f'): Likewise.
7131
7132 2010-09-22  Tristan Gingold  <gingold@adacore.com>
7133
7134         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
7135
7136 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
7137
7138         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
7139         * config/i386/i386.c (decide_alg): Update for rename.
7140
7141 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
7142
7143         PR rtl-optimization/45739
7144         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
7145         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
7146
7147 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
7148
7149         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
7150         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
7151         Remove.
7152         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
7153         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
7154
7155 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
7156
7157         PR objc/23710
7158         * c-parser.c (c_parser_objc_method_definition): Check the return
7159         value of objc_start_method_definition and if false is returned,
7160         parse the method definition but emit no code.
7161
7162 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
7163
7164         PR objc/25965
7165         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
7166         call objc_get_interface_ivars ().
7167
7168 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
7169
7170         PR target/45694
7171         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
7172         static chain-register is used for 64-bit.
7173
7174 2010-09-21  Richard Guenther  <rguenther@suse.de>
7175
7176         * dwarf2out.c (is_cu_die): New function.
7177         (add_pubtype): Use it.
7178         (gen_subprogram_die): Likewise.
7179         (gen_struct_or_union_type_die): Likewise.
7180         (dwarf2out_finish): Likewise.
7181         (comp_unit_die): Rename to ...
7182         (single_comp_unit_die): ... this.
7183         (comp_unit_die): New function lazily constructing and
7184         returning single_comp_unit_die.
7185         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
7186         base_type_die, subrange_type_die, modified_type_die,
7187         lower_bound_default, add_bound_info, add_prototyped_attribute,
7188         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
7189         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
7190         force_decl_die, gen_namespace_die, dwarf2out_decl,
7191         dwarf2out_start_source_file, dwarf2out_end_source_file,
7192         prune_unused_types, dwarf2out_finish): Use it.
7193         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
7194         the global list of translation-unit decls.
7195         (dwarf2out_init): Do not create single_comp_unit_die here.
7196         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
7197
7198 2010-09-21  Richard Guenther  <rguenther@suse.de>
7199
7200         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
7201         for bool for C++.
7202
7203 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
7204
7205         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
7206         (qhs_extenddi_cstr): Likewise.
7207         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
7208         them for the source operand.
7209
7210 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
7211
7212         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
7213         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
7214         (ix86_split_ashr): Ditto.
7215         (ix86_split_lshr): Ditto.
7216
7217 2010-09-21  Richard Guenther  <rguenther@suse.de>
7218
7219         PR tree-optimization/45580
7220         * tree-ssa-propagate.c (substitute_and_fold): Always replace
7221         regular uses.
7222         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
7223         virtuals fold the call into a regular indirect one.
7224
7225 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
7226
7227         PR rtl-optimization/42775
7228         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
7229         scheduling is enabled.
7230
7231 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
7232
7233         PR rtl-optimization/45728
7234         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
7235         gen_lowpart_common first and if that fails, force_reg first
7236         before calling gen_lowpart.
7237
7238         PR middle-end/45678
7239         * cfgexpand.c (expand_one_stack_var_at): Use
7240         crtl->max_used_stack_slot_alignment as max_align, instead
7241         of maximum of that and PREFERRED_STACK_BOUNDARY.
7242         Don't call update_stack_alignment.
7243
7244 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
7245
7246         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
7247         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
7248         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
7249         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
7250         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
7251         (build_nonstandard_integer_type): Likewise.
7252         (build_range_type_1): New function, built from...
7253         (build_range_type): ...this.  Call build_range_type_1.
7254         (build_nonshared_range_type): New function.
7255         (build_array_type_1): New function, built from...
7256         (build_array_type: ...this.  Call build_array_type_1.
7257         (build_nonshared_array_type): New function.
7258         * tree.h (build_nonshared_range_type): Declare.
7259         (build_nonshared_array_type): Likewise.
7260
7261 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
7262
7263         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
7264         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7265         (arm_class_likely_spilled_p): New function.
7266
7267 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
7268
7269         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
7270         indirect functions.
7271         (ix86_split_ashl): Ditto.
7272         (ix86_split_ashr): Ditto.
7273         (ix86_split_lshr): Ditto.
7274         (ix86_adjust_counter): Ditto.
7275
7276 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7277
7278         * c-family/c-common.h (constant_string_class): Documented with
7279         comment identical to the one already in c-common.c.
7280
7281 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
7282
7283         * dwarf2out.c (any_cfis_emitted): New static variable.
7284         (add_fde_cfi): Set it.
7285         (dwarf2out_frame_debug): Clear it before processing,
7286         if it is set afterwards, flush any queued reg saves.
7287
7288         PR debug/45124
7289         * dwarf2out.c (add_accessibility_attribute): Assume
7290         DW_ACCESS_private as the default for dwarf_version > 2
7291         and DW_TAG_class_type parent.
7292         (gen_inheritance_die): Assume DW_ACCESS_public as the default
7293         for dwarf_version > 2 and parent other than DW_TAG_class_type.
7294
7295 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
7296
7297         PR target/45726
7298         * arm.md (arm_movt): Only enable on machines with MOVT.
7299
7300 2010-09-20  Jie Zhang  <jie@codesourcery.com>
7301
7302         * config/arm/arm.c (arm_address_offset_is_imm): New.
7303         (arm_early_store_addr_dep): New.
7304         (arm_early_load_addr_dep): New.
7305         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
7306         (arm_early_load_addr_dep): Declare.
7307         (arm_address_offset_is_imm): Declare.
7308         * config/arm/cortex-m4.md: New file.
7309         * config/arm/cortex-m4-fpu.md: New file.
7310         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
7311         (attr generic_sched): Exclude cortexm4.
7312         (attr generic_vfp): Exclude cortexm4.
7313
7314 2010-09-20  Richard Guenther  <rguenther@suse.de>
7315
7316         PR middle-end/45704
7317         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
7318
7319 2010-09-20  Jan Hubicka  <jh@suse.cz>
7320
7321         PR tree-optimize/45605
7322         * cgraph.h (const_value_known_p): Declare.
7323         (varpool_decide_const_value_known): Remove.
7324         * tree-ssa-ccp.c (get_base_constructor): Use it.
7325         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
7326         * expr.c (string_constant): Likewise.
7327         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
7328         * ipa.c (ipa_discover_readonly_nonaddressable_var,
7329         function_and_variable_visibility): Likewise.
7330         * gimplify.c (gimplify_call_expr): Likewise.
7331         * gimple-fold.c (get_symbol_constant_value): Likewise.
7332         * varpool.c (varpool_decide_const_value_known): Replace by...
7333         (const_value_known_p): ... this one; handle other kinds of DECLs
7334         too and work for automatic vars.
7335         (varpool_finalize_decl): Use const_value_known_p.
7336
7337 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
7338
7339         PR target/45726
7340         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
7341
7342 2010-09-20  Richard Guenther  <rguenther@suse.de>
7343
7344         PR tree-optimization/45705
7345         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
7346
7347 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
7348
7349         PR rtl-optimization/45695
7350         * combine.c (try_combine): When splitting a two set pattern,
7351         make sure the pattern which will be put into i2 doesn't use REGs
7352         or MEMs set by insns in between i2 and i3.
7353
7354 2010-09-19  Jan Hubicka  <jh@suse.cz>
7355
7356         PR lto/44246
7357         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
7358         processing same node twice.
7359
7360 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
7361
7362         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
7363         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7364         (bfin_class_likely_spilled_p): New function
7365
7366 2010-09-19  Ira Rosen  <irar@il.ibm.com>
7367
7368         PR tree-optimization/45714
7369         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
7370         created in vectorizable_call instead of the original statement in
7371         def stmt updates.
7372
7373 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
7374
7375         * config/i386/i386-protos.h (split_double_mode): New prototype.
7376         (split_di, split_ti): Remove prototypes.
7377         * config/i386/i386.c (split_double_mode): New function.
7378         (split_di, split_ti): Remove.
7379         (ix86_expand_branch): Use split_double_mode.
7380         (ix86_split_to_parts): Ditto.
7381         (ix86_split_ashl): Ditto.
7382         (ix86_split_ashr): Ditto.
7383         (ix86_split_lshr): Ditto.
7384         (ix86_force_to_memory): Ditto.
7385         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
7386
7387 2010-09-18  Jan Hubicka  <jh@suse.cz>
7388
7389         PR tree-optimization/45453
7390         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
7391         virtual functions are reachable.
7392         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
7393         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
7394         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
7395         when modifying function.
7396
7397 2010-09-18  Jan Hubicka  <jh@suse.cz>
7398
7399         PR tree-optimization/45605
7400         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
7401         * gimple-fold.c (static_object_in_other_unit_p): New function.
7402         (canonicalize_constructor_val): Use it.
7403         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
7404         returning NULL.
7405         (gimple_fold_obj_type_ref_known_binfo): Use
7406         static_object_in_other_unit_p.
7407
7408 2010-09-18  Richard Guenther  <rguenther@suse.de>
7409
7410         PR tree-optimization/45709
7411         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
7412         insertions until after all PHI nodes of the block are processed.
7413
7414 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
7415
7416         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
7417
7418 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
7419
7420         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
7421
7422 2010-09-18  Richard Guenther  <rguenther@suse.de>
7423
7424         PR tree-optimization/45709
7425         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
7426
7427 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
7428
7429         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
7430         (dot_deps_stmt): Same.
7431         * graphite-poly.c (dot_lst): Same.
7432         * graphite-scop-detection.c (dot_all_scops): Same.
7433         (dot_scop): Same.
7434
7435 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
7436
7437         Revert:
7438         2009-12-16  Ben Elliston  <bje@au.ibm.com>
7439
7440         * tree-data-ref.c (dot_rdg_1): Added back.
7441         (dot_rdg): Same.  Added "#if 0" around system call.
7442
7443 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7444             Richard Henderson  <rth@redhat.com>
7445
7446         * config/i386/i386.c (initial_ix86_tune_features): Add
7447         X86_TUNE_PAD_SHORT_FUNCTION.
7448         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
7449         (ix86_count_insn): New.
7450         (ix86_pad_short_function): Likewise.
7451         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
7452
7453         * config/i386/i386.h (ix86_tune_indices): Add
7454         X86_TUNE_PAD_SHORT_FUNCTION.
7455         (TARGET_PAD_SHORT_FUNCTION): New.
7456
7457         * config/i386/i386.md (UNSPEC_NOPS): New.
7458         (nops): Likewise.
7459
7460 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7461
7462         PR middle-end/45234
7463         * calls.c (expand_call): Make sure that all variable sized
7464         adjustments are multiple of preferred stack boundary after
7465         stack alignment.
7466
7467 2010-09-17  DJ Delorie  <dj@redhat.com>
7468
7469         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
7470         passed an invalid value, print an error instead of ICEing.
7471         (valid_psw_flag): New.
7472         (rx_expand_builtin): Call it for setpsw/clrpsw.
7473         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
7474
7475         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
7476         (bitclr_in_memory): Likewise.
7477         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
7478
7479 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7480
7481         PR middle-end/45678
7482         * cfgexpand.c (update_stack_alignment): New.
7483         (get_decl_align_unit): Use it.
7484         (expand_one_stack_var_at): Call update_stack_alignment.
7485
7486 2010-09-17  Richard Guenther  <rguenther@suse.de>
7487
7488         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
7489         Properly copy the read string.
7490
7491 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
7492
7493         * doc/options.texi (Variable): Document.
7494         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
7495         generate target_flags declarations explicitly.  Don't define
7496         VarExists variables for the driver.
7497         * common.opt (target_flags): New Variable record.
7498         (flag_dump_unnumbered, flag_dump_unnumbered_links,
7499         flag_var_tracking, flag_var_tracking_assignments,
7500         flag_var_tracking_assignments_toggle): Don't mark variables with
7501         VarExists.
7502         * config/i386/i386.c (ix86_isa_flags): Don't define here.
7503         * config/i386/i386.opt (ix86_isa_flags): Define here.
7504         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
7505         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
7506         VarExists.
7507         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
7508         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
7509         Only define for generator programs.
7510         * rtlanal.c (target_flags): Remove.
7511         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
7512         flag_var_tracking_assignments_toggle): Remove.
7513
7514 2010-09-17  Michael Matz  <matz@suse.de>
7515
7516         PR tree-optimization/43432
7517         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7518         Accept backwards consecutive accesses.
7519         (vect_create_data_ref_ptr): If step is negative generate
7520         decreasing IVs.
7521         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
7522         (perm_mask_for_reverse, reverse_vec_elements): New functions.
7523         (vectorizable_load): Handle loads with negative steps when easily
7524         possible.
7525
7526 2010-09-03  Jan Hubicka  <jh@suse.cz>
7527
7528         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
7529
7530 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
7531
7532         * config/v850/v850.c (v850_function_value_regno_p): Make static.
7533         Adjust comments. Declare.
7534         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
7535         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
7536
7537 2010-09-17  Richard Guenther  <rguenther@suse.de>
7538
7539         * common.opt (combine): Remove.
7540         * gcc.c (default_compilers): Remove specs testing combine.
7541         The C compilers no longer can combine.
7542         (option_map): Remove -combine.
7543         (display_help): Remove -combine.
7544         (driver_handle_option): Remove OPT_combine handling.
7545         (compile_input_file_p): Remove.
7546         (do_spec): Remove code concerning combine.
7547         (main): Likewise.
7548         * doc/invoke.texi: Remove traces of -combine.
7549         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
7550
7551 2010-09-17  Richard Guenther  <rguenther@suse.de>
7552
7553         PR middle-end/45678
7554         * builtins.c (fold_builtin_memory_op): Always properly adjust
7555         alignment of memory accesses.
7556
7557 2010-09-16  Jan Hubicka  <jh@suse.cz>
7558
7559         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
7560         processing clone.
7561
7562 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
7563
7564         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
7565
7566         * config/i386/i386.c (predict_jump): Add prototype.
7567         (flag_opts): Add -m8bit-idiv.
7568         (ix86_split_idivmod): New.
7569
7570         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
7571         Add 2 splitters for SI/DI mode divide.
7572         (divmod<mode>4_1): New pattern.
7573         (udivmod<mode>4_1): Likewise.
7574         (testdi_ccno_1): Likewise.
7575
7576         * config/i386/i386.opt (m8bit-idiv): New.
7577
7578         * doc/invoke.texi: Document -m8bit-idiv.
7579
7580 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
7581
7582         PR bootstrap/45680
7583         * config/i386/i386.c (min_insn_size): Moved out of the
7584         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
7585
7586 2010-09-16  Jan Hubicka  <jh@suse.cz>
7587
7588         * lto-cgraph.c (lto_output_node): Fix handling of clones.
7589         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
7590         unreachable clones with reachable clones.
7591         * tree-inline.c (copy_bb): Fix sanity checking when producing
7592         unreachable clone.
7593
7594 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
7595
7596         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
7597         (TARGET_MEMORY_MOVE_COST): Define.
7598         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
7599
7600 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
7601
7602         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
7603         maybe_tidy_empty_bb.
7604
7605         Revert:
7606         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
7607         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7608
7609 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
7610
7611         * target.def (target_option.optimization): New hook.
7612         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
7613         TARGET_OPTION_OPTIMIZATION hook.
7614         * doc/tm.texi: Regenerate.
7615         * hooks.c (hook_void_int_int): New.
7616         * hooks.h (hook_void_int_int): Declare.
7617         * opts.c: Don't include tm_p.h.
7618         (decode_options): Use targetm.target_option.optimization instead
7619         of OPTIMIZATION_OPTIONS.
7620         * system.h (OPTIMIZATION_OPTIONS): Poison.
7621         * config/arm/arm-protos.h (arm_optimization_options): Remove.
7622         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
7623         (arm_optimization_options): Rename to arm_option_optimization.
7624         Make static.
7625         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
7626         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
7627         (cris_option_optimization): New.
7628         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
7629         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
7630         (crx_option_optimization): New.
7631         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
7632         * config/frv/frv-protos.h (frv_optimization_options): Remove.
7633         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
7634         (frv_optimization_options): Rename to frv_option_optimization.
7635         Make static.
7636         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
7637         * config/h8300/h8300.c (h8300_option_optimization): New.
7638         (TARGET_OPTION_OPTIMIZATION): Define.
7639         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
7640         * config/i386/i386-protos.h (optimization_options): Remove.
7641         * config/i386/i386.c (optimization_options): Rename to
7642         ix86_option_optimization.  Make static.
7643         (TARGET_OPTION_OPTIMIZATION): Define.
7644         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
7645         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
7646         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
7647         (ia64_optimization_options): Rename to ia64_option_optimization.
7648         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
7649         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
7650         commented-out definition.
7651         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
7652         instead of OPTIMIZATION_OPTIONS.
7653         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
7654         (m32r_option_optimization): New.
7655         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
7656         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
7657         Remove.
7658         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
7659         (mcore_option_optimization): New.
7660         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
7661         * config/mep/mep-protos.h (mep_optimization_options): Remove.
7662         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
7663         (mep_optimization_options): Rename to mep_option_optimization.
7664         Make static.  Take unused level and size parameters.
7665         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
7666         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
7667         (mmix_option_optimization): New.
7668         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
7669         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
7670         (pdp11_option_optimization): New.
7671         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
7672         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
7673         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
7674         (optimization_options): Rename to rs6000_option_optimization.
7675         Make static.
7676         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
7677         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
7678         * config/rx/rx.c (rx_set_optimization_options): Rename to
7679         rx_option_optimization.  Make static.  Take unused level and size
7680         parameters.
7681         (TARGET_OPTION_OPTIMIZATION): Define.
7682         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
7683         * config/s390/s390-protos.h (optimization_options): Remove.
7684         * config/s390/s390.c (optimization_options): Rename to
7685         s390_option_optimization.  Make static.  Don't mark size parameter
7686         unused.
7687         (TARGET_OPTION_OPTIMIZATION): Define.
7688         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
7689         * config/sh/sh-protos.h (sh_optimization_options): Remove.
7690         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
7691         (sh_optimization_options): Rename to sh_option_optimization.  Make
7692         static.  Don't mark parameters unused.
7693         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
7694         * config/spu/spu-protos.h (spu_optimization_options): Remove.
7695         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
7696         (spu_optimization_options): Rename to spu_option_optimization.
7697         Make static.
7698         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
7699         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
7700         (v850_option_optimization): New.
7701         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
7702         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
7703         (xtensa_option_optimization): New.
7704         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
7705
7706 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
7707
7708         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
7709         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
7710         * doc/tm.texi: Regenerate.
7711         * system.h (OVERRIDE_OPTIONS): Poison.
7712         * target.def (override): Default to hook_void_void.
7713         * targhooks.c (default_target_option_override): Remove.
7714         * genmodes.c, machmode.def: Update comments mentioning
7715         OVERRIDE_OPTIONS.
7716         * config/alpha/alpha-modes.def: Update comment mentioning
7717         alpha_override_options.
7718         * config/alpha/alpha-protos.h (override_options): Remove.
7719         * config/alpha/alpha.c (override_options): Rename to
7720         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
7721         (TARGET_OPTION_OVERRIDE): Define.
7722         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
7723         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
7724         of OVERRIDE_OPTIONS.
7725         * config/arc/arc-protos.h (arc_init): Remove.
7726         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
7727         (arc_init): Rename to arc_option_override.  Make static.
7728         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
7729         (OVERRIDE_OPTIONS): Remove.
7730         * config/arm/arm-protos.h (arm_override_options): Remove.
7731         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
7732         (arm_override_options): Rename to arm_option_override.  Make
7733         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
7734         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
7735         * config/arm/arm.md: Update comment referring to arm_override_options.
7736         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7737         instead of OVERRIDE_OPTIONS.
7738         * config/avr/avr-protos.h (avr_override_options): Remove.
7739         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
7740         (avr_override_options): Rename to avr_option_override.  Make static.
7741         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
7742         * config/bfin/bfin-protos.h (override_options): Remove (twice).
7743         * config/bfin/bfin.c (override_options): Rename to
7744         bfin_option_override.  Make static.
7745         (TARGET_OPTION_OVERRIDE): Define.
7746         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
7747         * config/cris/cris-protos.h (cris_override_options): Remove.
7748         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
7749         (cris_override_options): Rename to cris_option_override.  Make static.
7750         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
7751         * config/frv/frv-protos.h (frv_override_options): Remove.
7752         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
7753         (frv_override_options): Rename to frv_option_override.  Make static.
7754         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
7755         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
7756         * config/h8300/h8300.c (h8300_init_once): Rename to
7757         h8300_option_override.  Make static.
7758         (TARGET_OPTION_OVERRIDE): Define.
7759         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
7760         * config/i386/i386-protos.h (override_options): Remove.
7761         * config/i386/i386.c (override_options): Rename to
7762         ix86_option_override_internal.  Make static.  Comments referring
7763         to this function and callers changed.
7764         (ix86_option_override): New.
7765         (TARGET_OPTION_OVERRIDE): Define.
7766         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
7767         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
7768         * config/ia64/ia64.c (ia64_file_start): Update comment referring
7769         to ia64_override_options.
7770         * config/iq2000/iq2000-protos.h (override_options): Remove.
7771         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
7772         (override_options): Rename to iq2000_option_override.  Make static.
7773         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
7774         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
7775         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
7776         (lm32_override_options): Rename to lm32_option_override.  Make static.
7777         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
7778         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
7779         (m32r_option_override): New.
7780         (m32r_init): Update comment.
7781         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
7782         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
7783         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
7784         (m68hc11_override_options): Rename to m68hc11_option_override.
7785         Make static.  Return void.
7786         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
7787         * config/m68k/m68k-protos.h (override_options): Remove.
7788         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
7789         (override_options): Rename to m68k_option_override.  Make static.
7790         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
7791         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
7792         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
7793         (mcore_override_options): Rename to mcore_option_override.  Make
7794         static.
7795         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
7796         * config/mep/mep-protos.h (mep_override_options): Remove.
7797         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
7798         (mep_override_options): Rename to mep_option_override.  Make static.
7799         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
7800         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
7801         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
7802         (mmix_override_options): Rename to mmix_option_override.  Make static.
7803         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
7804         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
7805         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
7806         (mn10300_override_options): Rename to mn10300_option_override.
7807         Make static.
7808         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
7809         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
7810         * config/moxie/moxie.c (moxie_override_options): Rename to
7811         moxie_option_override.  Make static.
7812         (TARGET_OPTION_OVERRIDE): Define.
7813         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
7814         * config/picochip/picochip-protos.h (picochip_override_options):
7815         Remove.  Update comment referring to picochip_override_options.
7816         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
7817         (picochip_override_options): Rename to picochip_option_override.
7818         Make static.  Update comment and definition of
7819         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
7820         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
7821         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7822         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7823         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7824         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7825         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7826         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
7827         instead of OVERRIDE_OPTIONS.
7828         * config/rs6000/rs6000-modes.def: Update comment referring to
7829         rs6000_override_options.
7830         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
7831         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
7832         (rs6000_override_options): Rename to
7833         rs6000_option_override_internal.  Make static.  Commented
7834         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
7835         (rs6000_option_override): New.
7836         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
7837         instead of OVERRIDE_OPTIONS.
7838         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7839         * config/s390/s390-protos.h (override_options): Remove.
7840         * config/s390/s390.c (override_options): Rename to
7841         s390_option_override.  Make static.
7842         (TARGET_OPTION_OVERRIDE): Define.
7843         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
7844         * config/score/score-protos.h (score_override_options): Remove.
7845         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
7846         (score_override_options): Rename to score_option_override.  Make
7847         static.
7848         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
7849         Update comment referring to override_options.
7850         * config/score/score3.c (score3_override_options): Rename to
7851         score3_option_override.
7852         * config/score/score3.h (score3_override_options): Rename to
7853         score3_option_override.
7854         * config/score/score7.c (score7_override_options): Rename to
7855         score7_option_override.
7856         * config/score/score7.h (score7_override_options): Rename to
7857         score7_option_override.
7858         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
7859         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
7860         (sparc_override_options): Rename to sparc_option_override.  Make
7861         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
7862         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
7863         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7864         instead of OVERRIDE_OPTIONS.
7865         * config/spu/spu-protos.h (spu_override_options): Remove.
7866         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
7867         (spu_override_options): Rename to spu_option_override.  Make
7868         static.
7869         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
7870         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
7871         OVERRIDE_OPTIONS.
7872         * config/vax/vax-protos.h (override_options): Remove.
7873         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
7874         (override_options): Rename to vax_option_override.  Make static.
7875         Call SUBTARGET_OVERRIDE_OPTIONS.
7876         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
7877         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
7878         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
7879         * config/xtensa/xtensa-protos.h (override_options): Remove.
7880         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
7881         (override_options): Rename to xtensa_option_override.  Make static.
7882         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
7883
7884 2010-09-16  Richard Guenther  <rguenther@suse.de>
7885
7886         PR tree-optimization/45623
7887         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
7888         (get_constraint_for_component_ref): If computing a constraint
7889         for the rhs handle type punning through unions.
7890         (get_constraint_for_address_of): Adjust.
7891         (get_constraint_for_1): Likewise.
7892         (get_constraint_for): Likewise.
7893         (get_constraint_for_rhs): New function.
7894         (do_structure_copy): Adjust.
7895         (make_constraint_to): Likewise.
7896         (handle_const_call): Likewise.
7897         (find_func_aliases): Likewise.
7898         (process_ipa_clobber): Likewise.
7899         (create_variable_info_for): Likewise.
7900
7901 2010-09-16  Ira Rosen  <irar@il.ibm.com>
7902
7903         * tree-vectorizer.c: Fix documentation.
7904         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
7905         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
7906         is_pattern_stmt_p, is_loop_header_bb_p,
7907         stmt_vinfo_set_inside_of_loop_cost,
7908         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
7909         known_alignment_for_access_p): Likewise.
7910         * tree-vect-loop.c: Fix documentation.
7911         (vect_get_cost): Start function name from new line.
7912         * tree-vect-data-refs.c: Fix documentation.
7913         * tree-vect_stmts.c: Likewise.
7914         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
7915         (vectorizable_store): Free vec_oprnds if allocated.
7916         (vectorizable_condition): Initialize several variables to avoid
7917         warnings.
7918         * tree-vect-slp.c: Fix documentation.
7919
7920 2010-09-16  Richard Guenther  <rguenther@suse.de>
7921
7922         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
7923         is TS_TRANSLATION_UNIT_DECL.
7924         (initialize_tree_contains_struct): Adjust.
7925         (all_translation_units): New global vector.
7926         (build_translation_unit_decl): New function.
7927         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
7928         (struct tree_translation_unit_decl): New.
7929         (all_translation_units): Declare.
7930         (union tree_node): Add translation_unit_decl member.
7931         (build_translation_unit_decl): Declare.
7932         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
7933         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
7934         New function.
7935         (pack_value_fields): Call it.
7936         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
7937         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
7938         (lto_output_tree_pointers): Call it.
7939         * lto-streamer-in.c (lto_input_tree_ref): Handle references
7940         to TRANSLATION_UNIT_DECL.
7941         (unpack_ts_translation_unit_decl_value_fields): New function.
7942         (unpack_value_fields): Call it.
7943         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
7944         (lto_input_tree_pointers): Call it.
7945         * lto-streamer.c (check_handled_ts_structures): Adjust.
7946         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
7947         * c-decl.c (all_translation_units): Remove.
7948         (pop_scope): Use build_translation_unit_decl.
7949         (collect_all_refs): Adjust.
7950         (for_each_global_decl): Likewise.
7951         (c_write_global_declarations): Likewise.
7952
7953 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
7954
7955         PR bootstrap/45686
7956         * fold-const.c (fold_checksum_tree): Change slot from const void **
7957         to void **, use CONST_CAST_TREE to store into *slot.
7958
7959 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
7960
7961         * config/i386/i386.md: Remove unneeded empty conditions and
7962         preparation statements from expanders.
7963         * config/i386/mmx.md: Ditto.
7964         * config/i386/sse.md: Ditto.
7965
7966 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
7967
7968         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
7969
7970 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7971
7972         PR rtl-optimization/45593
7973         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
7974         insns that were in delay slots as stand-alone insns.
7975
7976 2010-09-15  Ian Lance Taylor  <iant@google.com>
7977
7978         * incpath.c (remove_duplicates): If name is not a directory, issue
7979         a warning rather than an error.
7980
7981 2010-09-15  Martin Jambor  <mjambor@suse.cz>
7982
7983         PR middle-end/45644
7984         * tree-sra.c (create_access): Check for bit-fields directly.
7985
7986 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
7987
7988         PR tree-optimization/45633
7989         * tree-cfg.c (verify_gimple_assign_binary): Allow
7990         MINUS_EXPR with lhs and rhs1 pointer vector and
7991         rhs2 sizetype vector.
7992         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
7993         or vector pointer use TER to optimize pointer subtraction.
7994
7995 2010-09-15  Jie Zhang  <jie@codesourcery.com>
7996
7997         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
7998         fcmpd to fcmps.
7999
8000 2010-09-15  Ian Lance Taylor  <iant@google.com>
8001
8002         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
8003
8004 2010-09-15  Ian Lance Taylor  <iant@google.com>
8005
8006         * function.c (get_arg_pointer_save_area): Set
8007         arg_pointer_save_area_init to true.
8008
8009 2010-09-15  Martin Jambor  <mjambor@suse.cz>
8010
8011         * tree-sra.c (generate_subtree_copies): Updated comment.
8012         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
8013         obtained from the statement iterator instead.
8014         (load_assign_lhs_subreplacements): Removed parameters lhs and
8015         right_offset, which is obtained from top_racc instead.  Parameter lacc
8016         is now expected to be the root of the processed tree rather than root's
8017         first child.  Updated all callers.
8018
8019 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
8020
8021         * config/pdp11/pdp11.c (register_move_cost): Rename to
8022         pdp11_register_move_cost.
8023         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
8024         pdp11_register_move_cost.
8025         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
8026         pdp11_register_move_cost instead of register_move_cost.
8027
8028 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
8029
8030         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
8031         pattern for vmovn. Expansion in case of non
8032         -mvectorize-with-neon-quad.
8033         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
8034         non- -mvectorize-with-neon-quad case.
8035         (move_lo_quad_<mode>): New expansion to vmov into low part.
8036         (move_hi_quad_<mode>): New expansion to vmov into high part.
8037         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
8038         (move_lo_quad_v4sf): Likewise.
8039         (move_lo_quad_v8hi): Likewise.
8040         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
8041         low part.
8042         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
8043         high part.
8044         * config/arm/iterators.md (ANY128): New mode iterator.
8045         (V_narrow_pack): New mode attribute.
8046         (V_HALF): Add attribute.
8047         (V_DOUBLE): Add attribute.
8048         (V_mode_nunits): Add attribute.
8049
8050 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
8051
8052         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
8053         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
8054
8055 2010-09-15  Olivier Hainque  <hainque@adacore.com>
8056             Jose Ruiz  <ruiz@adacore.com>
8057
8058         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
8059         * config/alpha/osf5-unwind.h: New file.
8060
8061 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8062
8063         PR bootstrap/45672
8064         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
8065         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
8066         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
8067
8068 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8069
8070         * c-lang.h (struct lang_type): Add variable_size GTY option.
8071
8072 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8073
8074         PR bootstrap/45672
8075         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
8076
8077 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8078
8079         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
8080         result isn't used in memory address.
8081
8082 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8083
8084         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
8085         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
8086         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
8087         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
8088         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
8089         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
8090
8091         * target.def: Add units_per_simd_word to vectorize.
8092
8093         * targhooks.c (default_units_per_simd_word): New.
8094         * targhooks.h (default_units_per_simd_word): Likewise.
8095         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
8096         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
8097         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
8098         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
8099         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
8100         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
8101         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
8102         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
8103
8104         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
8105         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
8106
8107         * tree-vect-stmts.c: Don't include "tm_p.h".
8108         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
8109         with targetm.vectorize.units_per_simd_word.
8110
8111         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
8112
8113         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
8114
8115         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
8116         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
8117
8118         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
8119         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
8120
8121         * doc/tm.texi: Regenerated.
8122
8123 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
8124
8125         * tree-vect-stmts.c: Include "tm_p.h".
8126
8127         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
8128         out of RTX_CODE.
8129
8130 2010-09-14  Martin Jambor  <mjambor@suse.cz>
8131
8132         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
8133         location of generated statement.  Changed all callers.
8134         (build_ref_for_model): New parameter loc which used to set location of
8135         all generated expressions.  Changed all callers.
8136         (generate_subtree_copies): Likewise.
8137         (init_subtree_with_zero): Likewise.
8138         (sra_modify_expr): Set locations of all generated statements and
8139         expressions to the location the original statement.
8140         (handle_unscalarized_data_in_subtree): Likewise.
8141         (load_assign_lhs_subreplacements): Likewise.
8142         (sra_modify_constructor_assign): Likewise.
8143         (sra_modify_assign): Likewise.
8144
8145 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
8146
8147         PR target/45277
8148         PR target/45363
8149         PR target/45407
8150         * doc/install.texi (sparc*-*-*): New section.
8151         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
8152
8153 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
8154
8155         PR middle-end/45567
8156         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
8157         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
8158         (expand_builtin): Adjust caller.
8159         (expand_builtin_unop): Only use subtarget if it has the right mode.
8160
8161 2010-09-14  Tristan Gingold  <gingold@adacore.com>
8162
8163         * configure.ac (plugins): Fix typos.
8164         * configure: Regenerate.
8165
8166 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
8167
8168         PR debug/45660
8169         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
8170         gen_type_die for function/method return type.
8171
8172 2010-09-14  Ira Rosen  <irar@il.ibm.com>
8173
8174         PR tree-optimization/45470
8175         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
8176         can throw an exception.
8177         * tree-vect-stmts.c (vectorizable_call): Likewise.
8178
8179 2010-09-14  DJ Delorie  <dj@redhat.com>
8180
8181         PR target/44749
8182         * config/mep/mep-protos.h (mep_save_register_info,
8183         mep_reinit_regs, mep_init_regs): Declare.
8184
8185         * config/mep/mep.c: Move all target definitions to the end of the
8186         file to avoid the need for duplicate declarations.
8187         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
8188         (mep_reorg_erepeat): Remove unused variables.
8189         (mep_expand_builtin): Likewise.
8190
8191         * config/mep/mep-pragma.c: Don't include rtl.h.
8192         (INVALID_REGNUM): New.
8193         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
8194         functions.
8195         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
8196         Avoid enum/integer math.
8197
8198 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
8199
8200         PR target/44749
8201         * config/mep/t-mep (GTM_H): Add insn-constants.h.
8202         * config/mep/mep.c (mep_conditional_register_usage): Take no
8203         parameters.
8204         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
8205         prototype.
8206         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
8207         call to mep_conditional_register_usage.
8208
8209 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
8210
8211         PR debug/43937
8212         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
8213         the DECL as well.
8214
8215 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
8216
8217         PR rtl-optimization/45617
8218         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
8219         even if low N bits of X aren't known to be zero.
8220
8221 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
8222
8223         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
8224
8225         * config/i386/i386.c (initial_ix86_tune_features): Add
8226         X86_TUNE_VECTORIZE_DOUBLE.
8227         (ix86_units_per_simd_word): New.
8228
8229         * config/i386/i386.h (ix86_tune_indices): Add
8230         X86_TUNE_VECTORIZE_DOUBLE.
8231         (TARGET_VECTORIZE_DOUBLE): New.
8232         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
8233
8234 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
8235
8236         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
8237         (new_temp_expr_table): Allocate call_cnt vector.
8238         (free_temp_expr_table): Free it.
8239         (process_replaceable): Add call_cnt parm and set in vector.
8240         (find_replaceable_in_bb): Skip replacement if def/use span a call.
8241         (debug_ter): Dump call_cnt value, remove stderr uses.
8242
8243 2010-09-13  Jan Hubicka  <jh@suse.cz>
8244
8245         * tree.c (build_zero_cst): New.
8246         * tree.h (build_zero_cst): Declare.
8247         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
8248         (get_base_constructor): Break out from ...
8249         (fold_const_aggregate_ref): Here; handle empty constructors.
8250
8251 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
8252
8253         * config/arm/arm.md: (define_attr "conds"): Update comment.
8254         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
8255         conds attribute to clob.
8256         (arm_sync_compare_and_swapsi): Likewise.
8257         (arm_sync_compare_and_swap<mode>): Likewise.
8258         (arm_sync_lock_test_and_setsi): Likewise.
8259         (arm_sync_lock_test_and_set<mode>): Likewise.
8260         (arm_sync_new_<sync_optab>si): Likewise.
8261         (arm_sync_new_nandsi): Likewise.
8262         (arm_sync_new_<sync_optab><mode>): Likewise.
8263         (arm_sync_new_nand<mode>): Likewise.
8264         (arm_sync_old_<sync_optab>si): Likewise.
8265         (arm_sync_old_nandsi): Likewise.
8266         (arm_sync_old_<sync_optab><mode>): Likewise.
8267         (arm_sync_old_nand<mode>): Likewise.
8268
8269 2010-09-13  Olivier Hainque  <hainque@adacore.com>
8270
8271         * fwprop.c (forward_propagate_and_simplify): Only attach a
8272         REG_EQUAL note to an insn if the destination is a register.
8273         * gcse.c (try_replace_reg): Likewise.
8274
8275 2010-09-13  Richard Guenther  <rguenther@suse.de>
8276
8277         PR tree-optimization/45611
8278         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
8279         (copy_ref_info): Likewise.
8280
8281 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
8282
8283         PR debug/45604
8284         PR debug/45419
8285         PR debug/45408
8286         * tree-pretty-print.c (dump_generic_node): Disregard top-level
8287         types of MEM_REF pointer types to the same type.
8288
8289 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
8290
8291         PR rtl-optimization/41087
8292         * ifcvt.c (noce_get_condition): Don't allow conditions with
8293         side-effects.
8294
8295 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
8296
8297         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8298         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
8299         * config/frv/frv.c (frv_register_move_cost): Make static. Change
8300         arguments type to reg_class_t. Add mode argument.
8301         (frv_memory_move_cost): New.
8302         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
8303
8304 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
8305
8306         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
8307         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
8308
8309 2010-09-10  Jan Hubicka  <jh@suse.cz>
8310
8311         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
8312
8313 2010-09-10  Richard Guenther  <rguenther@suse.de>
8314
8315         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
8316         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
8317         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
8318         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
8319         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
8320
8321 2010-09-10  Richard Guenther  <rguenther@suse.de>
8322
8323         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
8324         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
8325         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
8326         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
8327
8328 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
8329
8330         PR middle-end/45634
8331         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
8332         of string folding is of integral type.
8333
8334 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
8335
8336         * doc/invoke.texi (-x): Fix typo.
8337
8338 2010-09-10  Richard Guenther  <rguenther@suse.de>
8339
8340         PR debug/44115
8341         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
8342         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8343         Output DECL_DEBUG_EXPR.
8344         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8345         Input DECL_DEBUG_EXPR.
8346
8347 2010-09-10  Richard Guenther  <rguenther@suse.de>
8348
8349         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
8350         (build_index_type): Implement in terms of build_range_type.
8351         (build_range_type): Do not allow NULL_TREE type, improve
8352         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
8353         if we didn't hash.
8354         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
8355         create a distinct copy of the type.
8356
8357 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
8358
8359         * configure: Regenerated.
8360         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
8361
8362 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8363
8364         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
8365         * config/arm/cortex-a9-neon.md: New and partially generated.
8366         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
8367
8368 2010-09-10  Richard Guenther  <rguenther@suse.de>
8369
8370         * tree.h (build_index_2_type): Remove.
8371         * tree.c (build_index_2_type): Remove.
8372
8373 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
8374
8375         PR bootstrap/45630
8376         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
8377         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
8378         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
8379
8380 2010-09-10  Martin Jambor  <mjambor@suse.cz>
8381
8382         PR tree-optimization/44972
8383         * tree-sra.c: Include toplev.h.
8384         (build_ref_for_offset): Entirely reimplemented.
8385         (build_ref_for_model): New function.
8386         (build_user_friendly_ref_for_offset): New function.
8387         (analyze_access_subtree): Removed build_ref_for_offset check.
8388         (propagate_subaccesses_across_link): Likewise.
8389         (create_artificial_child_access): Use
8390         build_user_friendly_ref_for_offset.
8391         (propagate_subaccesses_across_link): Likewise.
8392         (ref_expr_for_all_replacements_p): Removed.
8393         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
8394         (sra_modify_expr): Use build_ref_for_model.
8395         (load_assign_lhs_subreplacements): Likewise.
8396         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
8397         checks for return values of build_ref_for_offset.
8398         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
8399         build_ref_for_offset.
8400         * ipa-prop.h: Include gimple.h
8401         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
8402         (ipa_analyze_indirect_call_uses): Update comment.
8403         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
8404         (IPA_PROP_H): Likewise.
8405
8406 2010-09-10  Martin Jambor  <mjambor@suse.cz>
8407
8408         PR tree-optimization/44972
8409         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
8410         calling build_ref_for_offset.
8411
8412 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8413
8414         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
8415         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
8416         * config/arm/arm-tune.md: Regenerate.
8417         * doc/invoke.texi (ARM Options): Document it.
8418
8419 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
8420
8421         * config/i386/i386.c: Include sched-int.h.
8422         (TARGET_SCHED_DISPATCH): Defined.
8423         (TARGET_SCHED_DISPATCH_DO): Defined.
8424         (DISPATCH_WINDOW_SIZE): Defined.
8425         (MAX_DISPATCH_WINDOWS): Defined.
8426         (MAX_INSN): Defined.
8427         (MAX_IMM): Defined.
8428         (MAX_IMM_SIZE): Defined.
8429         (MAX_IMM_32): Defined.
8430         (MAX_IMM_64): Defined.
8431         (MAX_LOAD): Defined.
8432         (MAX_STORE): Defined.
8433         (BIG): Defined.
8434         (dispatch_group): New.
8435         (num_allowable_groups): New.
8436         (group_name): New.
8437         (sched_insn_info_s): New.
8438         (dispatch_windows_s): New.
8439         (imm_info_s): New.
8440         (dispatch_window_list): New.
8441         (dispatch_window_list1): New.
8442         (get_mem_group): New.
8443         (is_cmp): New.
8444         (dispatch_violation): New.
8445         (is_branch): New.
8446         (is_prefetch): New.
8447         (init_window): New.
8448         (allocate_window): New.
8449         (init_dispatch_sched): New.
8450         (is_end_basic_block): New.
8451         (process_end_window): New.
8452         (allocate_next_window): New.
8453         (find_constant_1): New.
8454         (find_constant): New.
8455         (get_num_immediates): New.
8456         (has_immediate): New.
8457         (get_insn_path): New.
8458         (get_insn_group): New.
8459         (count_num_restricted): New.
8460         (fits_dispatch_window): New.
8461         (add_insn_window): New.
8462         (add_to_dispatch_window): New.
8463         (debug_dispatch_window_file): New.
8464         (debug_dispatch_window): New.
8465         (debug_insn_dispatch_info_file): New.
8466         (debug_ready_dispatch): New.
8467         (do_dispatch): New.
8468         (has_dispatch): New.
8469         * config/i386/i386.h (debug_ready_dispatch): Declared.
8470         (debug_dispatch_window): Declared.
8471         * config/i386/i386.opt (mdispatch-scheduler): New flag.
8472         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
8473         (TARGET_SCHED_DISPATCH_DO): New.
8474         * doc/tm.texi: Regererated.
8475         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
8476         ready_remove_first_dispatch
8477         (schedule_block): Call targetm.sched.dispatch and
8478         targetm.sched.dispatch_do.
8479         (sched_init): Call targetm.sched.dispatch and
8480         targetm.sched.dispatch_do.
8481         (ready_remove_first_dispatch): New.
8482         (number_in_ready): New.
8483         (get_ready_element): New.
8484         * hooks.c (hook_bool_rtx_int_false): New.
8485         (hook_void_rtx_int): New.
8486         * hooks.h (hook_bool_rtx_int_false): Declared.
8487         (hook_void_rtx_int): Declared.
8488         * sched-int.h (IS_DISPATCH_ON): Defined.
8489         (IS_CMP): Defined.
8490         (DISPATCH_VIOLATION): Defined.
8491         (FITS_DISPATCH_WINDOW): Defined.
8492         (DISPATCH_INIT): Defined.
8493         (ADD_TO_DISPATCH_WINDOW): Defined.
8494         (get_ready_element): Declared.
8495         (number_in_ready): Declared.
8496         * target.def (dispatch): Defined.
8497         (dispatch_do): Defined.
8498
8499 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8500
8501         PR middle-end/45312
8502         * reload1.c (merge_assigned_reloads): Remove.
8503         (reload_as_needed): Don't call it.
8504
8505 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
8506
8507         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
8508         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8509         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8510
8511 2010-09-09  Matthias Klose  <doko@ubuntu.com>
8512
8513         PR bootstrap/43847
8514         * configure.ac (--enable-plugin): Enhance for cross builds.
8515         * configure: Regenerate.
8516
8517 2010-09-09  Jan Hubicka  <jh@suse.cz>
8518
8519         PR tree-optimization/45598
8520         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
8521         string folding is of integral type.
8522
8523 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8524
8525         * configure.ac (gnu_indirect_function): New test.
8526         * configure: Rebuilt.
8527         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
8528         * defaults.h (IFUNC_ASM_TYPE): Provide default.
8529
8530         * doc/extend.texi (Function Attributes): Document ifunc.
8531         * varasm.c (do_assemble_alias): Deal with ifuncs too.
8532
8533 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
8534
8535         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
8536         epilogue instruction move.
8537
8538 2010-09-09  Jan Hubicka  <jh@suse.cz>
8539
8540         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
8541         command line to allow more partitions than input files.
8542
8543 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8544
8545         PR middle-end/44554
8546         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
8547
8548 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8549
8550         PR middle-end/40386
8551         * ira.c (pseudo_for_reload_consideration_p): Don't use
8552         flag_ira_share_spill_slots.
8553
8554 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8555
8556         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
8557         point zero operands that fit into a single GPR.
8558         (s390_preferred_reload_class): Ensure we only return general-purpose
8559         register classes.
8560         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
8561         floating-point zero operands into GPRs.
8562         ("*mov<mode>_64"): Likewise.
8563         ("mov<mode>"): Likewise using lhi.
8564
8565 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8566
8567         * config/s390/s390.c (s390_symref_operand_p): Return false for
8568         literal pool references.
8569         (s390_check_qrst_address): Update caller.
8570
8571 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
8572
8573         * config/i386/predicates.md (ext_register_operand): Check that
8574         SUBREG_REG is really a register before looking for REGNO.
8575         (reg_not_xmm0_operand): Handle SUBREGs correctly.
8576         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
8577
8578 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
8579
8580         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
8581         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
8582         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
8583         * print-rtl.c (print_rtx): Likewise.
8584         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8585         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
8586         for ADDR_EXPR with non-addressable object.
8587         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
8588         (struct dw_val_struct): Add v.val_decl_ref.
8589         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
8590         Handle DW_OP_GNU_implicit_pointer.
8591         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
8592         (get_ref_die_offset_label): New function.
8593         (implicit_ptr_descriptor): New function.
8594         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
8595         (loc_descriptor): Likewise.
8596         (gen_variable_die): Put even definitions into decl_die_table.
8597         (resolve_addr_in_expr): Resolve still unresolved
8598         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
8599         return false.
8600         (dwarf2out_finish): Call output_location_lists after outputting
8601         .debug_info and .debug_abbrev instead of before.
8602
8603 2010-09-09  Roland McGrath  <roland@redhat.com>
8604
8605         * dwarf2out.c (DWARF_REF_SIZE): Define.
8606         (size_of_loc_descr): Use it for DW_OP_call_ref.
8607
8608 2010-09-09  Alan Modra  <amodra@gmail.com>
8609
8610         * doc/invoke.text: Reinstate mcmodel=medium.
8611         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8612         CMODEL_MEDIUM as default.
8613         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
8614         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
8615         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
8616         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
8617
8618 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8619
8620         PR target/45250
8621         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
8622         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
8623         (builtin_longjmp): Likewise.
8624         (allocate_stack): Use hard_frame_pointer_rtx instead of
8625         frame_pointer_rtx.
8626         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
8627         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
8628         (pa_can_eliminate): Likewise.
8629         (TARGET_INTERNAL_ARG_POINTER): Define.
8630         (TARGET_CAN_ELIMINATE): Define.
8631         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
8632         pointer.
8633         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
8634         (pa_internal_arg_pointer, pa_can_eliminate,
8635         pa_initial_elimination_offset): New.
8636         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
8637         (HARD_FRAME_POINTER_REGNUM): Set to register three.
8638         (INITIAL_FRAME_POINTER_OFFSET): Delete.
8639         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
8640         Define.
8641         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
8642         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
8643         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
8644         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
8645         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
8646         new soft frame pointer.
8647         * config/pa/pa64-regs.h: Likewise.
8648
8649 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
8650
8651         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
8652         numerical constant.
8653         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
8654
8655 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
8656
8657         PR debug/45531
8658         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
8659
8660 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
8661
8662         PR debug/45419
8663         PR debug/45408
8664         * tree-pretty-print.c (dump_generic_node): Disregard top-level
8665         qualifiers in otherwise equal MEM_REF pointer types.
8666         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
8667         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
8668
8669 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8670
8671         PR target/44392
8672         * config/arm/arm.md (bswapsi2): Handle condition correctly
8673         for armv6 and optimize_size.
8674
8675 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8676
8677         PR other/18555
8678         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
8679
8680 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
8681
8682         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
8683         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
8684         ix86_expand_strlen, legitimate_pic_address_disp_p,
8685         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
8686         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
8687         ix86_check_movabs, ix86_secondary_memory_needed): Change function
8688         prototype to bool.
8689         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
8690         return_in_memory_ms_64, ix86_check_movabs,
8691         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
8692         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
8693         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
8694         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
8695         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
8696         ix86_secondary_memory_needed): Change to bool.  Return
8697         "true" and "false" values.
8698         * config/i386/i386.md: Return "true" and "false" values.
8699
8700 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8701
8702         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8703         run_expensive_tests.
8704
8705 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8706
8707         * toplev.c (output_stack_usage): Use lbasename instead of basename.
8708
8709 2010-09-08  Martin Jambor  <mjambor@suse.cz>
8710
8711         PR other/45443
8712         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
8713         at -O3.
8714
8715 2010-09-08  Richard Guenther  <rguenther@suse.de>
8716
8717         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
8718         (visit): Adjust.
8719         (iterative_hash_gimple_type): Likewise.
8720         (gimple_type_hash): Likewise.
8721         (gimple_register_type): Likewise.
8722         (print_gimple_types_stats): Likewise.
8723         (free_gimple_type_tables): Likewise.
8724
8725 2010-09-08  Michael Matz  <matz@suse.de>
8726
8727         PR tree-optimization/43430
8728         * tree-vect-stmts.c (vectorizable_condition): Support multiple
8729         copies for conditional statements if it's not part of a reduction.
8730
8731 2010-09-08  Michael Matz  <matz@suse.de>
8732
8733         PR tree-optimization/33244
8734         * tree-ssa-sink.c (statement_sink_location): Don't sink into
8735         empty loop latches.
8736
8737 2010-09-08  Richard Guenther  <rguenther@suse.de>
8738
8739         PR tree-optimization/45578
8740         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
8741         Be more careful when transfering alignment information to
8742         the new induction variable.
8743         (copy_ref_info): Likewise.
8744
8745 2010-09-08  Richard Guenther  <rguenther@suse.de>
8746
8747         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
8748         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
8749
8750 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
8751
8752         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
8753         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
8754
8755 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
8756
8757         PR doc/45587
8758         * doc/md.texi: Fixed modes on several standard pattern names.
8759
8760 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
8761
8762         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
8763         (ashl<mode>3): ...this.
8764         (loongson_psra<V_suffix>): Rename to...
8765         (ashr<mode>3): ...this.
8766         (loongson_psrl<V_suffix>): Rename to...
8767         (lshr<mode>3): ...this.
8768         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
8769         (CODE_FOR_loongson_psllw): Define.
8770         (CODE_FOR_loongson_psrlh): Define.
8771         (CODE_FOR_loongson_psrlw): Define.
8772         (CODE_FOR_loongson_psrah): Define.
8773         (CODE_FOR_loongson_psraw): Define.
8774
8775 2010-09-07  Richard Henderson  <rth@redhat.com>
8776
8777         * tree-vect-data-refs.c: Include tm_p.h.
8778         * Makefile.in (tree-vect-data-refs.o): Update deps.
8779         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
8780         Move delarations outside #ifdef RTX_CODE.
8781
8782 2010-09-07  Richard Henderson  <rth@redhat.com>
8783
8784         * final.c (rest_of_handle_final): Unconditionally do
8785         output_function_exception_table before assemble_end_function.
8786
8787 2010-09-07  Jan Hubicka  <jh@suse.cz>
8788
8789         * tree-inline.c (tree_inlinable_function_p): Do not test
8790         DECL_REPLACEABLE_P.
8791         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
8792         update_callee_keys, cgraph_decide_inlining): Test function availability.
8793         * cif-code.def (OVERWRITABLE): New code.
8794
8795 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
8796             Jack Howarth  <howarth@bromo.med.uc.edu>
8797
8798         PR target/36502
8799         PR target/42313
8800         PR target/44651
8801         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
8802         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
8803         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
8804         MAX macro.
8805
8806 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8807
8808         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
8809         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
8810
8811 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8812
8813         * config.gcc: Don't append t-android for Android targets.
8814
8815         * config/t-android: Removed.
8816
8817 2010-09-07  Richard Henderson  <rth@redhat.com>
8818
8819         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
8820         * doc/tm.texi.in: Add doc marker.
8821         * doc/tm.texi: Rebuild.
8822         * except.c (switch_to_exception_section): Always build.
8823         (output_one_function_exception_table): Move section switch,
8824         personality output, and label output ...
8825         (output_function_exception_table): ... here.  Use the new
8826         personality hook.
8827
8828         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
8829         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
8830         TARGET_ASM_INIT_SECTIONS): New.
8831         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
8832         make static.
8833         (TARGET_ASM_UNWIND_EMIT): Update to match.
8834         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
8835
8836         * config/arm/arm.c (arm_asm_emit_except_personality): New.
8837         (arm_asm_init_sections): New.
8838         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
8839
8840 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8841
8842         * config/arm/arm.md: Remove unused variable.
8843
8844 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
8845
8846         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8847         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
8848         (m32r_memory_move_cost): New function.
8849
8850 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8851
8852         * config.gcc: Append t-android for Android targets.
8853
8854         * config/t-android: New.
8855
8856 2010-09-07  Richard Henderson  <rth@redhat.com>
8857
8858         * target.def (unwind_emit_before_insn): New hook.
8859         * doc/tm.texi.in: Add @hook marker for it.
8860         * doc/tm.texi: Rebuild.
8861         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
8862
8863 2010-09-07  Martin Jambor  <mjambor@suse.cz>
8864
8865         PR fortran/43665
8866         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
8867         are any type attributes.
8868
8869 2010-09-07  Jan Hubicka  <jh@suse.cz>
8870
8871         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
8872         array_ref_low_bound in string access folding.
8873
8874 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
8875
8876         PR target/45206
8877         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
8878         eh_return fixup sequence.
8879
8880 2010-09-07  Jan Hubicka  <jh@suse.cz>
8881
8882         * gimple-fold.c (maybe_fold_reference): Verify that operand is
8883         gimple_min_invariant.
8884
8885 2010-09-07  Richard Guenther  <rguenther@suse.de>
8886
8887         PR middle-end/45569
8888         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
8889         nor CONSTRUCTOR can trap.
8890         * tree-complex.c (update_complex_assignment): Update EH info.
8891
8892 2010-09-07  Richard Guenther  <rguenther@suse.de>
8893
8894         PR middle-end/45569
8895         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
8896         * passes.c (execute_function_todo): Do not verify anything if
8897         we saw errors.
8898
8899 2010-09-07  Richard Guenther  <rguenther@suse.de>
8900
8901         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
8902
8903 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
8904
8905         PR target/43137
8906         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
8907         New define_mode_attrs.
8908         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
8909         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
8910         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
8911         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
8912         Remove pool_range attribute.
8913         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
8914         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
8915         pool_range and neg_pool_range attributes.
8916         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
8917         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
8918         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
8919
8920 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8921
8922         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
8923         check glibc.
8924
8925 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
8926
8927         PR target/22152
8928         * config/i386/mmx.md (*mov<mode>_internal_rex64,
8929         *mov<mode>_internal_avx, *mov<mode>_internal,
8930         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
8931         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
8932
8933 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
8934
8935         * c-typeck.c (do_warn_double_promotion): Remove.
8936         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
8937         Objective-C++ too.
8938
8939 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
8940
8941         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
8942         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
8943         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
8944         argument type to reg_class_t. Change result type to bool.
8945         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8946
8947 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
8948
8949         PR libobjc/19850
8950         * gthr-posix.h (__gthread_objc_thread_detach): Use
8951         _objc_thread_attribs when detaching a thread.
8952         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
8953
8954 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8955
8956         PR target/45524
8957         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
8958         * configure: Regenerated.
8959
8960 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8961
8962         * combine.c (try_combine): Set subst_low_luid to i0.
8963
8964 2010-09-06  Richard Guenther  <rguenther@suse.de>
8965
8966         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
8967         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
8968         (build_aligned_type): Declare.
8969         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
8970         (check_aligned_type): New function.
8971         (build_aligned_type): Likewise.
8972         * expr.c (expand_assignment): Handle misaligned stores via
8973         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
8974         (expand_expr_real_1): Likewise.
8975         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
8976         * tree-vect-stmts.c (vectorizable_store): Do not build
8977         MISALIGNED_INDIRECT_REF but initialize alignment information.
8978         (vectorizable_load): Likewise.
8979         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
8980         handling.
8981         * cfgexpand.c (expand_debug_expr): Likewise.
8982         * dwarf2out.c (loc_list_from_tree): Likewise.
8983         * fold-const.c (maybe_lvalue_p): Likewise.
8984         (operand_equal_p): Likewise.
8985         (build_fold_addr_expr_with_type_loc): Likewise.
8986         * gimplify.c (gimplify_addr_expr): Likewise.
8987         (gimplify_expr): Likewise.
8988         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8989         (verify_gimple_assign_single): Likewise.
8990         * tree-dump.c (dequeue_and_dump): Likewise.
8991         (tree_could_trap_p): Likewise.
8992         * tree-predcom.c (ref_at_iteration): Likewise.
8993         * tree-pretty-print.c (dump_generic_node): Likewise.
8994         (op_code_prio): Likewise.
8995         (op_symbol_code): Likewise.
8996         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8997         * tree-ssa-loop-im.c (for_each_index): Likewise.
8998         (gen_lsm_tmp_name): Likewise.
8999         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
9000         (find_interesting_uses_address): Likewise.
9001         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
9002         * tree-ssa-operands.c (get_expr_operands): Likewise.
9003         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
9004         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
9005         (ao_ref_init_from_vn_reference): Likewise.
9006         * tree.c (staticp): Likewise.
9007         (build1_stat): Likewise.
9008         (reference_alias_ptr_type): Likewise.
9009         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
9010         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
9011         MISALIGNED_INDIRECT_REF handling.
9012
9013 2010-09-06  Richard Guenther  <rguenther@suse.de>
9014
9015         PR tree-optimization/45534
9016         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
9017         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
9018         on the target.
9019         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
9020         valid on the target.
9021
9022 2010-09-06  Andreas Schwab  <schwab@redhat.com>
9023
9024         * configure.ac: Quote argument of AC_MSG_WARN.
9025         * configure: Regenerate.
9026
9027 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
9028
9029         * sel-sched.c (move_cond_jump): Correct arguments to
9030         maybe_tidy_empty_bb.
9031         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
9032
9033 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
9034
9035         PR rtl-optimization/44919
9036         * sel-sched.c (move_cond_jump): Remove assert, check that
9037         the several blocks case can only happen with mutually exclusive
9038         insns instead.  Rewrite the movement code to support moving through
9039         several basic blocks.
9040
9041 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
9042
9043         * config/i386/i386.md (iptrsize): New mode attribute.
9044         (tp_seg): Ditto.
9045         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
9046         mode iterator.
9047         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
9048         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
9049         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
9050         (stack_tls_protect_set_<mode>): Ditto from
9051         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
9052         of thread base pointer load.
9053         (stack_tls_protect_test_<mode>): Ditto from
9054         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
9055         of thread base pointer load.
9056         (stack_protect_set): Rewrite using indirect functions.
9057         (stack_protect_test): Ditto.
9058         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
9059         (ix86_print_operand): Handle '@'.
9060
9061 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
9062
9063         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
9064         MINUS_EXPR.
9065
9066 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
9067
9068         * doc/invoke.texi: Document -Wdouble-promotion.
9069         * c-typeck.c (convert_arguments): Check for implicit conversions
9070         from float to double.
9071         (do_warn_double_promotion): New function.
9072         (build_conditional_expr): Use it.
9073         (build_binary_op): Likewise.
9074
9075 2010-09-05  Richard Guenther  <rguenther@suse.de>
9076
9077         PR tree-optimization/45535
9078         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
9079         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
9080         dereferencing it.
9081         (indirect_refs_may_alias_p): Likewise.
9082
9083 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
9084
9085         * config/sh/sh.c (sh_option_override): Make static.
9086         Adjust comments.  Declare.
9087         (sh_function_value_regno_p): Likewise.
9088         (sh_register_move_cost): Modify the arguments, make static.
9089         Adjust comments.  Declare.
9090         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
9091         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9092         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
9093         REGISTER_MOVE_COST): Delete.
9094         * config/sh/sh-protos.h (sh_override_options): Delete.
9095         (sh_register_move_cost): Delete.
9096         (sh_function_value_regno_p): Delete.
9097
9098 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
9099
9100         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
9101         m32r_function_value_regno_p): New functions.
9102         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9103         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
9104         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
9105         FUNCTION_VALUE_REGNO_P): Remove.
9106
9107 2010-09-04  Jan Hubicka  <jh@suse.cz>
9108
9109         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
9110         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
9111         fold_read_from_constant_string.
9112
9113         * gimple.h (canonicalize_constructor_val): Declare.
9114         * gimple-fold.c (canonicalize_constructor_val): New function.
9115         (get_symbol_constant_value):Use it.
9116         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
9117
9118 2010-09-04  Jan Hubicka  <jh@suse.cz>
9119
9120         * tree-switch-conversion.c (build_one_array): Set constructor to be
9121         static.
9122         * varpool.c (varpool_finalize_decl): Compute const_value_known.
9123
9124 2010-09-04  Richard Guenther  <rguenther@suse.de>
9125
9126         PR bootstrap/45519
9127         * tree-flow.h (force_gimple_operand_1): Declare.
9128         (force_gimple_operand_gsi_1): Likewise.
9129         * gimplify.c (force_gimple_operand_1): New worker taking a
9130         gimple predicate for ...
9131         (force_gimple_operand): ... which now wraps it.
9132         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
9133         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
9134         last change.
9135         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
9136         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
9137         (create_mem_ref): Likewise.
9138
9139 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
9140
9141         * config/i386/predicates.md (sse_reg_operand): New predicate.
9142         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
9143         predicate for operand 1.
9144         (XFmode push splitter): Use fp_register_operand predicate
9145         for operand 1.
9146         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
9147         (SF-DF float_extend push splitter): Add reload_completed insn
9148         predicate.
9149         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
9150         MODEF mode macro.  Add reload_completed insn predicate.
9151
9152 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
9153
9154         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
9155         (struct df_extract_ref): Remove.
9156         (union df_ref_d): Remove extract_ref member.
9157         (df_ref_create): Remove last three arguments.
9158         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
9159         * df-scan.c (df_ref_record): Remove last three arguments, do not
9160         pass them to df_ref_create_structure.
9161         (df_uses_record): Remove first and last three arguments.  Replace
9162         first argument with DF_REF_REGULAR, adjust calls to remove the
9163         width, offset and mode.  Always call recursively on the second
9164         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
9165         (df_ref_create_structure): Remove first argument.
9166         (struct df_scan_problem_data): Remove ref_extract_pool.
9167         (df_scan_free_internal): Do not free it.
9168         (df_scan_alloc): Do not allocate it.
9169         (df_ref_create): Remove last three arguments, do not pass them to
9170         df_ref_create_structure.
9171         (df_free_ref): Remove DF_REF_EXTRACT case.
9172         (df_notes_rescan): Adjust call to df_uses_record.
9173         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
9174         Remove DF_REF_EXTRACT case.
9175         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
9176         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
9177         and SUBREG definitions.
9178         (df_get_conditional_uses): Remove references to width/offset/mode,
9179         adjust call to df_ref_create_structure.
9180         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
9181         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
9182         calls to df_uses_record and df_ref_record.
9183         * fwprop.c (update_df): Remove references to width/offset/mode,
9184         adjust call to df_ref_create.
9185
9186 2010-09-03  Jan Hubicka  <jh@suse.cz>
9187
9188         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
9189         (build_cdtor_fns): Update use of build_cdtor.
9190
9191 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
9192
9193         * doc/options.texi (SeparateAlias): Document.
9194         * opt-functions.awk (switch_flags): Handle SeparateAlias.
9195         * opth-gen.awk: Generate enumeration names for options marked
9196         SeparateAlias, but not for those marked Ignore.
9197         * opts-common.c (generate_canonical_option): Don't output separate
9198         argument for options marked CL_SEPARATE_ALIAS.
9199         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
9200         * opts.h (CL_SEPARATE_ALIAS): New.
9201         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
9202         CL_COMMON): Adjust definitions.
9203         * config/i386/darwin.opt, config/mips/sde.opt: New.
9204         * common.opt (fdump-final-insns): New.
9205         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9206         i386/darwin.opt.
9207         (mips*-sde-elf*): Add mips/sde.opt.
9208         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
9209         -mno-data-in-code and -mcode-xonly here.
9210         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
9211         * gcc.c (option_map): Add "j" to --dump entry.
9212         (translate_options): Don't translate -d to -foutput-class-dir= here.
9213
9214 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
9215
9216         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
9217         DR_IS_WRITE.
9218         (compute_all_dependences): Same.
9219         (create_rdg_edge_for_ddr): Same.
9220         * tree-data-ref.h (DR_IS_WRITE): New.
9221         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
9222         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
9223         (write_memrefs_written_at_least_once): Same.
9224         * tree-predcom.c (suitable_component_p): Same.
9225         (determine_roots_comp): Same.
9226         (execute_load_motion): Same.
9227         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
9228         (vect_enhance_data_refs_alignment): Same.
9229         (vect_analyze_group_access): Same.
9230
9231 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
9232
9233         PR testsuite/42843
9234         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
9235         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
9236
9237 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
9238
9239         * dwarf2out.c (file scope): Remove #if0'd code.
9240         (gen_subprogram_die): Same.
9241
9242 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
9243
9244         PR middle-end/45484
9245         * dwarf2out.c (flush_queued_reg_saves): Rename to...
9246         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
9247         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
9248         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
9249         * config/i386/i386.c (output_set_got): Call it.
9250
9251 2010-09-03  Michael Matz  <matz@suse.de>
9252
9253         PR middle-end/45415
9254         * tree-sra.c (sra_modify_assign): If we modify the statement,
9255         say so.
9256
9257         * tree-ssa.c (verify_ssa): Check number of operands and links
9258         per statement to agree.
9259
9260 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
9261             Iain Sandoe  <iains@gcc.gnu.org>
9262
9263         PR target/45476
9264         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
9265         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
9266         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
9267
9268 2010-09-03  Richard Guenther  <rguenther@suse.de>
9269
9270         * lto-streamer-out.c (output_function): Output function
9271         start and end loci.
9272         * lto-streamer-in.c (input_function): Input function start
9273         and end loci.
9274
9275 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9276
9277         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
9278         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
9279         * configure: Regenerate.
9280         * aclocal.m4: Regenerate.
9281
9282 2010-09-03  Jan Hubicka  <jh@suse.cz>
9283
9284         PR lto/44812
9285         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
9286         on functions/variables in other partition.
9287
9288 2010-09-03  Jan Hubicka  <jh@suse.cz>
9289
9290         * cgraph.h (struct varpool_node): Add const_value_known.
9291         (varpool_decide_const_value_known): Declare.
9292         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
9293         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
9294         (input_varpool_node): Restore const_value_known.
9295         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
9296         initializer folding.
9297         * ipa.c (ipa_discover_readonly_nonaddressable_var,
9298         function_and_variable_visibility): Compute const_value_known.
9299         * gimple-fold.c (get_symbol_constant_value): Use varpool for
9300         initializer folding.
9301         * varpool.c (varpool_decide_const_value_known): New function.
9302
9303 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
9304
9305         * config/i386/i386.md: Remove empty preparation statements
9306         from splitters.
9307
9308 2010-09-03  Jan Hubicka  <jh@suse.cz>
9309
9310         * passes.c (rest_of_decl_compilation): Do not add local vars into
9311         varpool.
9312         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
9313         static or extern vars are in varpool.
9314         (varpool_finalize_decl): Sanity check that only static vars are
9315         finalized.
9316
9317 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
9318
9319         PR debug/45500
9320         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
9321         not just generic vectors with BLKmode.
9322
9323 2010-09-03  Richard Guenther  <rguenther@suse.de>
9324
9325         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
9326         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
9327         * tree.h (TMR_SYMBOL): Remove.
9328         (TMR_BASE, TMR_OFFSET): Adjust.
9329         (TMR_INDEX2): New.
9330         * alias.c (ao_ref_from_mem): Use TMR_BASE.
9331         * builtins.c (get_object_alignment): Merge TMR_BASE and
9332         TMR_SYMBOL handling.
9333         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
9334         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
9335         handling.  Also allow TARGET_MEM_REF as base address.
9336         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
9337         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
9338         base.  Gimplify TMR_INDEX2.
9339         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
9340         * tree-dfa.c (get_ref_base_and_extent): Likewise.
9341         (get_addr_base_and_unit_offset): Likewise.
9342         * tree-eh.c (tree_could_trap_p): Likewise.
9343         * tree-pretty-print.c (dump_generic_node): Likewise.
9344         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
9345         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
9346         base to index2.
9347         (get_address_description): Reconstruct addres description
9348         from merged TMR_BASE and TMR_INDEX2.
9349         (maybe_fold_tmr): Fold propagated addresses.
9350         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
9351         MEM_REF and TARGET_MEM_REF paths.
9352         (indirect_refs_may_alias_p): Likewise.
9353         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
9354         instead of TMR_SYMBOL.
9355         * tree-ssa-operands.c (get_tmr_operands): Simplify.
9356         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
9357         according to changes ...
9358         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
9359         Split TARGET_MEM_REF into two fields plus the base.
9360         * tree.c (mem_ref_offset): Simplify.
9361         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
9362         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
9363         Strip NOPs when folding MEM_REF addresses.
9364         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
9365         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
9366         (fold_gimple_assign): ... not here.
9367
9368 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
9369
9370         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
9371         * config/mips/mips.c (mips_shift_truncation_mask): New function.
9372         (TARGET_SHIFT_TRUNCATION_MASK): Define.
9373
9374 2010-09-02  Richard Henderson  <rth@redhat.com>
9375
9376         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
9377         instead of readelf in the test.
9378         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
9379         in the .debug_frame section for coff targets.
9380         * configure: Rebuild.
9381
9382 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
9383
9384         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
9385         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
9386         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9387         (m32c_class_likely_spilled_p): Make static. Change argument type to
9388         reg_class_t. Change result type to bool.
9389
9390 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9391
9392         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
9393         to convert (double)(long) into a single FRIZ instruction or not
9394         when -ffast-math is used.
9395
9396         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
9397         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
9398         or FRIZ instruction if -ffast-math.
9399         * config/rs6000/rs6000.md (friz): Ditto.
9400
9401         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
9402
9403 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9404
9405         * opth-gen.awk (quote, comma): Remove unused variables.
9406
9407 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
9408
9409         * arm.c (arm_override_options): Correct fall-back code to use
9410         SUBTARGET_CPU_DEFAULT.
9411
9412 2010-09-02  Julian Brown  <julian@codesourcery.com>
9413
9414         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
9415         unspecs.
9416         (vcond<mode>, vcondu<mode>): New expanders.
9417         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
9418         comparisons with zero.
9419         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
9420         * config/arm/constraints.md (Dz): New constraint.
9421
9422 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
9423
9424         * target.def (class_likely_spilled_p): New hook.
9425         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
9426         * doc/tm.texi: Regenerate.
9427         * targhooks.c (default_class_likely_spilled_p): New function.
9428         * targhooks.h (default_class_likely_spilled_p): Declare.
9429         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
9430         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
9431         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
9432         Use fixed_reg_set instead of fixed_regs.
9433         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
9434         * calls.c (avoid_likely_spilled_reg): Ditto.
9435         * ira-conflicts.c (ira_build_conflicts): Ditto.
9436         * ira.c (update_equiv_regs): Ditto.
9437         * mode-switching.c (create_pre_exit): Ditto.
9438         * regmove.c (find_matches): Ditto.
9439         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
9440         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
9441         (small_register_class_p): New inline function.
9442         (push_secondary_reload, find_reusable_reload, find_reloads): Use
9443         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
9444
9445         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
9446         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
9447         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9448
9449 2010-09-02  Richard Guenther  <rguenther@suse.de>
9450
9451         PR tree-optimization/44937
9452         PR tree-optimization/45412
9453         * ipa-split.c (split_function): Properly remove PHI nodes.
9454
9455 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9456
9457         * opts.h (struct cl_option): Add warn_message field.
9458         (struct cl_decoded_option): Add warn_message field.
9459         * doc/options.texi (Ignore, Warn): Document.
9460         * opt-functions.awk (needs_state_p): Don't consider aliases or
9461         ignored options to need state saved.
9462         * optc-gen.awk: Handle Warn and Ignore.
9463         * opth-gen.awk: Output OPT_SPECIAL_ignore.
9464         * opts-common.c (decode_cmdline_option): Set warn_message field.
9465         Handle ignored options.
9466         (decode_cmdline_options_to_array, generate_option,
9467         generate_option_input_file): Set warn_message field.
9468         (read_cmdline_option): Generate warnings from warn_message field.
9469         Handle ignored options.
9470         * common.opt (Wunreachable-code, fargument-alias,
9471         fargument-noalias, fargument-noalias-global,
9472         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
9473         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
9474         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
9475         ftree-salias): Mark Ignore.
9476         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
9477         -mintel-syntax and -mno-intel-syntax here.
9478         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
9479         using Warn.
9480         * opts.c (common_handle_option): Don't handle options marked as
9481         ignored.
9482         (enable_warning_as_error): Handle ignored options.
9483
9484 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9485
9486         PR driver/44076
9487         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
9488         alias_target fields.
9489         * opt-functions.awk (opt_sanitized_name): Don't handle
9490         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
9491         * optc-gen.awk: Generate alias fields.
9492         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
9493         Don't generate such constants for aliases.
9494         * opts-common.c (generate_canonical_option): New.
9495         (decode_cmdline_option): Handle aliases.  Use
9496         generate_canonical_option for known options instead of copying the
9497         input option text.
9498         * doc/options.texi (Alias): Document.
9499         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
9500         fstack-check, specs): Mark as aliases.
9501         * gcc.c (driver_handle_option): Canonicalize -L options to joined
9502         arguments.
9503         (driver_handle_option): Don't handle OPT_specs.
9504         * opts.c (common_handle_option): Don't handle options marked as
9505         aliases.
9506         (enable_warning_as_error): Handle aliases.
9507         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
9508         OPT_Wlarger_than_eq.
9509         * tree-optimize.c (tree_rest_of_compilation): Use
9510         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
9511
9512 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
9513
9514         * config/i386/i386.md (nonmemory_operand): New mode attribute.
9515         (push memory peephole2): Macroize peepholes using SWI mode iterator.
9516         (move immediate to memory peephole2): Macroize peepholes using
9517         SWI124 mode iterator.
9518         (non-pairable NOT peephole2): Macroize peepholes using SWI124
9519         mode iterator.
9520         (simple lea add peephole2): Macroize peepholes using SWI48
9521         mode iterator.
9522         (simple lea mult peephole2): Ditto.
9523         (imul by 3,5,9 to lea peephole2): Ditto.
9524         (mov $-1, reg peephole2): Macroize peepholes using SWI248
9525         mode iterator.
9526         (imul $32bit_imm,mem,reg peephole2): Ditto.
9527         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
9528
9529 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
9530
9531         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
9532
9533 2010-09-02  Olivier Hainque  <hainque@adacore.com>
9534
9535         PR middle-end/44763
9536         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
9537         (allocno_priority_compare_func): Use it instead of a straight
9538         difference computation over priorities.
9539
9540 2010-09-02  Andi Kleen  <ak@linux.intel.com>
9541
9542         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
9543
9544 2010-09-02  Ira Rosen  <irar@il.ibm.com>
9545
9546         * tree-vectorizer.h (get_later_stmt): New function.
9547         (vect_analyze_data_ref_dependences): Add argument.
9548         * tree-vect-loop.c (vect_analyze_loop): Update call to
9549         vect_analyze_data_ref_dependences.
9550         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
9551         New function.
9552         (vect_analyze_data_ref_dependence): Add argument for basic block
9553         dependencies. Check dependencies in basic block vectorization.
9554         (vect_analyze_data_ref_dependences): Add argument and update call to
9555         vect_analyze_data_ref_dependences.
9556         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
9557         (vect_bb_vectorizable_with_dependencies): New.
9558         (vect_slp_analyze_bb): Check dependencies in basic block.
9559         (vect_schedule_slp_instance): Insert stores before the last store in
9560         SLP instance.
9561
9562 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
9563
9564         PR target/45476
9565         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
9566         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
9567
9568 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
9569
9570         PR middle-end/45458
9571         * bb-reorder.c (add_labels_and_missing_jumps): Treat
9572         bbs ending with throwing insns like blocks ending with a call.
9573         (fix_up_fall_thru_edges): Likewise.
9574
9575 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
9576
9577         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
9578         (m32c_function_arg_advance): Delete.
9579         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9580         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
9581         comments.  Take a const_tree and a bool.  Declare.
9582         (m32c_function_arg_advance): Likewise.
9583         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9584
9585 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
9586
9587         PR target/45476
9588         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
9589         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
9590         * config/i386/mingw32.h: ... here.
9591
9592 2010-09-01  Andi Kleen  <ak@linux.intel.com>
9593
9594         PR lto/45475
9595         * lto-streamer-in.c (lto_input_ts_target_option): Add.
9596         (lto_input_tree_pointers): Call lto_input_ts_target_option.
9597         * lto-streamer-out (lto_output_ts_target_option): Add.
9598         (lto_output_tree_pointers): Call lto_output_ts_target_option.
9599
9600 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
9601
9602         PR/target 45452
9603         * config/i386/cygwin.h: Change order of specified import libraries.
9604         * config/i386/mingw32.h: Likewise.
9605         * config/i386/t-cygwin: Likewise.
9606         * config/i386/t-mingw32: Likewise.
9607         * config/i386/t-mingw-w32: Likewise.
9608         * config/i386/t-mingw-w64: Likewise.
9609
9610 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9611
9612         * config/arm/neon-schedgen.ml (core): New type.
9613         (allCores): List of supported cores.
9614         (availability_table): Add supported cores.
9615         (collate_bypasses): Accept core as a parameter.
9616         (worst_case_latencies_and_bypasses): Accept core as a parameter.
9617         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
9618         and coreStr to get tune attribute and prefix for functional units.
9619         (emit_bypasses): Accept core name and use it.
9620         (calculate_per_core_availability_table): New.
9621         (filter_core): New.
9622         (calculate_core_availability_table): New.
9623         (main): Use calculate_core_availablity_table.
9624         * config/arm/cortex-a8-neon.md: Update copyright year.
9625         Regenerated from ml file and merged in.
9626         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
9627         cortex_a8_neon_mrc.
9628
9629 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
9630
9631         * Makefile.in (tree-switch-conversion.o): Update dependencies.
9632
9633 2010-09-01  Richard Guenther  <rguenther@suse.de>
9634
9635         * alias.c (ao_ref_from_mem): Adjust.
9636         * builtins.c (get_object_alignment): Likewise.
9637         * cfgexpand.c (expand_debug_expr): Likewise.
9638         * gimple.c (get_base_address): Likewise.
9639         * tree-dfa.c (get_ref_base_and_extent): Likewise.
9640         (get_addr_base_and_unit_offset): Likewise.  Fix for
9641         both TMR_SYMBOL and TMR_BASE being set.
9642         * tree-eh.c (tree_could_trap_p): Likewise.
9643         * gimplify.c (gimplify_expr): Do not attempt to gimplify
9644         TMR_SYMBOL.  Always gimplify TMR_BASE.
9645         * tree-cfg.c (verify_types_in_gimple_reference): Verify
9646         TMR_BASE if there is a TMR_SYMBOL.
9647         * tree-pretty-print.c (dump_generic_node): Adjust.
9648         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
9649         (tree_mem_ref_addr): Likewise.
9650         (create_mem_ref_raw): Likewise.
9651         (move_fixed_address_to_symbol): Likewise.
9652         (create_mem_ref): Likewise.
9653         (dump_mem_address): Likewise.
9654         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
9655         Fix for both TMR_SYMBOL and TMR_BASE being set.
9656         (indirect_refs_may_alias_p): Likewise.
9657         * tree-ssa-operands.c (get_tmr_operands): Adjust.
9658         * tree.def (TARGET_MEM_REF): Adjust documentation.
9659
9660 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
9661
9662         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
9663         Rename from X86_TUNE_ADD_ESP_4.
9664         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
9665         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
9666         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
9667         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
9668         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
9669         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
9670         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
9671         * config/i386/i386.c (initial_ix86_tune_features)
9672         <X86_TUNE_SINGLE_POP>: Invert members.
9673         <X86_TUNE_DOUBLE_POP>: Ditto.
9674         <X86_TUNE_SINGLE_PUSH>: Ditto.
9675         <X86_TUNE_DOUBLE_PUSH>: Ditto.
9676         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
9677         No longer exported.
9678         (push peephole2 patterns): Macroize peepholes using P mode iterator.
9679         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
9680         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
9681         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
9682
9683 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
9684
9685         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
9686         a volatile LHS if the constructor has only one element.
9687
9688 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
9689
9690         PR bootstrap/45321
9691         * tree.c (stdarg_p): Make fntype parameter const.
9692         * tree.h (stdarg_p): Likewise.
9693         (function_args_iterator): Remove unused fntype field.
9694         (function_args_iter_init): Do not initialize fntype
9695         field.  Make fntype parameter const.
9696
9697 2010-09-01  Richard Guenther  <rguenther@suse.de>
9698
9699         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
9700         estimate.
9701         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
9702         (execute_vrp): Compute number of iteration estimates.
9703         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
9704         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9705         * tree-data-ref.c (estimated_loop_iterations): Adjust.
9706         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9707         Infer loop bounds from undefined behavior based on a new parameter.
9708         (estimate_numbers_of_iterations): Likewise.
9709         (scev_probably_wraps_p): Adjust.
9710         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9711
9712 2010-09-01  Nick Clifton  <nickc@redhat.com>
9713
9714         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
9715         where appropriate.
9716         (xstormy16_legitimate_address_p): Use true and false instead of 1
9717         and 0.
9718         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
9719         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
9720         magic constant 2.
9721         (xstormy16_expand_call): Fix comment at start of function.
9722
9723 2010-09-01  Nick Clifton  <nickc@redhat.com>
9724
9725         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
9726         when pushing accumulator register.
9727         (rx_get_stack_layout): Always save call clobbered registers inside
9728         interrupt handlers.
9729         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
9730
9731 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
9732
9733         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
9734         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
9735
9736         * libgcc-std.ver (GCC_4.6.0): Define version.
9737
9738 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
9739
9740         * tree-nested.c (convert_all_function_calls): Iterate until after the
9741         sum of static chains in the nest doesn't change.
9742
9743 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
9744
9745         * config/m32c/m32c.c (classes_intersect): Remove.
9746         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
9747         reg_classes_intersect_p instead of classes_intersect.
9748         (class_can_hold_mode): Change arguments type from enum reg_class to
9749         reg_class_t.  Use reg_class_contents instead of class_contents.
9750         (m32c_register_move_cost): Make static. Change arguments type from
9751         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
9752         classes_intersect. Use reg_class_contents instead of class_contents.
9753         (m32c_memory_move_cost): Make static. Change arguments type from
9754         enum reg_class to reg_class_t.
9755         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9756         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9757         * config/m32c/m32c-protos.h (m32c_register_move_cost,
9758         m32c_memory_move_cost): Remove.
9759
9760 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9761
9762         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
9763         (arm_function_arg): Delete.
9764         (arm_needs_doubleword_align): Take a const_tree.
9765         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9766         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
9767         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
9768         (arm_function_arg): Make static.  Take a const_tree and a bool.
9769         (arm_function_arg_advance): Likewise.
9770         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9771
9772 2010-08-31  Andi Kleen  <ak@linux.intel.com>
9773
9774         * common.opt (fwhopr=): Update for -fwhopr=jobserver
9775         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
9776         * lto-wrapper.c (run_gcc): Add jobserver mode.
9777         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
9778         argument.
9779
9780 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
9781
9782         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
9783         (popsi1): Ditto.
9784         (*popdi1_epilogue): Ditto.
9785         (*popsi1_epilogue): Ditto.
9786         (popsi, popdi peephole2 patterns): Update peepholes for changed
9787         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
9788
9789         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
9790         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
9791
9792         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
9793         (override_options): Do not initialize removed ix86_gen_pop1.
9794         (gen_pop): New static function.
9795         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
9796         (release_scratch_register_on_entry): Ditto.
9797         (ix86_restore_reg_using_pop): Ditto.
9798         (ix86_expand_epilogue): Ditto.
9799
9800 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
9801
9802         PR middle-end/45461
9803         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
9804
9805 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9806
9807         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
9808         semicolons.
9809
9810 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9811
9812         * doc/extend.texi: Fix documentation of the return value of
9813         __builtin_choose_expr.
9814
9815 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9816
9817         * config/v850/v850-protos.h (function_arg): Delete.
9818         * config/v850/v850.h (FUNCTION_ARG): Delete.
9819         (FUNCTION_ARG_ADVANCE): Move code to...
9820         * config/v850/v850.c (v850_function_arg_advance): ...here.
9821         (v850_function_arg): Make static.  Take a const_tree and a bool.
9822         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9823
9824 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9825
9826         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
9827         these...
9828         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9829         ...and these...
9830         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
9831         ..to here..
9832         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9833         ...and here.
9834         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9835
9836 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9837
9838         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
9839         Delete.
9840         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9841         * config/rx/rx.c (rx_function_arg_size): Make static.
9842         (rx_function_arg): Likewise.
9843         (rx_function_arg_advance): New function.
9844         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9845
9846 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
9847
9848         * config/arm/arm.c (arm_override_options): Remove superfluous test.
9849         Fix indentation.
9850
9851 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
9852
9853         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
9854         (dwarf2out_decl) <CONST_DECL>: Likewise.
9855
9856 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
9857
9858         Stack usage support
9859         * common.opt (-fstack-usage): New option.
9860         * doc/invoke.texi (Debugging options): Document it.
9861         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
9862         allocate_dynamic_stack_space.
9863         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
9864         and propagate it to allocate_dynamic_stack_space.
9865         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
9866         * calls.c (initialize_argument_information): Pass TRUE as 4th
9867         argument to allocate_dynamic_stack_space.
9868         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
9869         to 1 when pushing a variable-sized argument onto the stack.  Pass
9870         TRUE as 4th argument to allocate_dynamic_stack_space.
9871         Update current_function_pushed_stack_size.
9872         (emit_library_call_value_1): Likewise.
9873         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
9874         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
9875         attempt to find an upper bound.  Remove redundant code for the
9876         SETJMP_VIA_SAVE_AREA case.
9877         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
9878         * function.h (struct stack_usage): New structure.
9879         (current_function_static_stack_size): New macro.
9880         (current_function_dynamic_stack_size): Likewise.
9881         (current_function_pushed_stack_size): Likewise.
9882         (current_function_dynamic_alloc_count): Likewise.
9883         (current_function_has_unbounded_dynamic_stack_size): Likewise.
9884         (current_function_allocates_dynamic_stack_space): Likewise.
9885         (struct function): Add new field 'su'.
9886         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
9887         add the value of the dynamic offset to the dynamic stack usage.
9888         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
9889         for variable-sized objects.
9890         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
9891         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
9892         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
9893         BUILT_IN_ALLOCA for variable-sized objects.
9894         * output.h (output_stack_usage): Declare.
9895         * toplev.c (stack_usage_file): New file pointer.
9896         (output_stack_usage): New function.
9897         (open_auxiliary_file): Likewise.
9898         (lang_dependent_init): Open file if flag_stack_usage is set.
9899         (finalize): Close file if stack_usage_file is not null.
9900         * tree.h (ALLOCA_FOR_VAR_P): New macro.
9901         * config/alpha/alpha.c (compute_frame_size): New function.
9902         (alpha_expand_prologue): Use it.
9903         (alpha_start_function): Likewise.
9904         (alpha_expand_epilogue): Likewise.  Set stack usage info.
9905         * config/i386/i386.c (ix86_expand_prologue): Likewise.
9906         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9907         * config/mips/mips.c (mips_expand_prologue): Likewise.
9908         * config/pa/pa.c (hppa_expand_prologue): Likewise.
9909         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9910         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9911
9912 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
9913
9914         PR tree-optimization/45427
9915         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
9916         Handle the case that the exit is never taken correctly.
9917         (number_of_iterations_ne): Pass exit_must_be_taken to
9918         number_of_iterations_ne_max.
9919
9920 2010-08-30  Catherine Moore  <clm@codesourcery.com>
9921
9922         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
9923         Infer -mdspr2 for the the 74K.
9924
9925 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
9926
9927         PR debug/45419
9928         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
9929
9930         PR middle-end/45423
9931         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
9932         and TRUTH_{AND,OR,XOR}_EXPR.
9933         * c-parser.c (c_parser_omp_atomic): Handle boolean
9934         {PRE,POST}_{INC,DEC}REMENT.
9935
9936 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
9937
9938         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
9939         (function_arg): Delete.
9940         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9941         (FUNCTION_INCOMING_ARG): Delete.
9942         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
9943         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
9944         and a bool.
9945         (function_arg): Rename to...
9946         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
9947         a bool.
9948         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
9949         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9950         (TARGET_FUNCTION_INCOMING_ARG): Define.
9951
9952 2010-08-30  Richard Guenther  <rguenther@suse.de>
9953
9954         PR tree-optimization/21602
9955         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
9956         using points-to information.
9957
9958 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
9959
9960         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
9961
9962 2010-08-30  Richard Guenther  <rguenther@suse.de>
9963
9964         PR tree-optimization/45449
9965         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
9966         variables.
9967
9968 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
9969
9970         * opts.h (CL_ERR_NEGATIVE): Define.
9971         * opts.c (unknown_option_callback): Don't postpone warnings for
9972         options marked with CL_ERR_NEGATIVE.
9973         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
9974         for negative versions of CL_REJECT_NEGATIVE options.
9975
9976 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
9977
9978         * config/i386/i386.md (zero_extendsidi2_1): Rename from
9979         zero_extendsidi2_32.
9980         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
9981         using SWI12 mode iterator.
9982         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
9983         to define_insn_and_split pattern.
9984         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
9985         using SWI24 mode iterator.
9986         (*zero_extendqi<mode>2_and): Macroize insn from
9987         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
9988         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
9989         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
9990         SWI24 mode iterator.
9991         (*zero_extendqi<mode>2_movzbl): Ditto from
9992         *zero_extendqi{hi,si}2_movzbl.
9993         (extendsidi2_1): Rename from extendsidi2_32.
9994         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
9995         SWI12 mode iterator.
9996
9997 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
9998
9999         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
10000         general purpose registers.
10001         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
10002         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
10003         with general purpose registers and memory operands.  Add associated
10004         CCImode post-reload splitter.
10005         * config/ia64/div.md: Change BImode to CCImode throughout.
10006
10007 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
10008
10009         * config/ia64/ia64.md (cstorebi4): Fix thinko.
10010
10011 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
10012
10013         * config/picochip/picochip.c (reorder_var_tracking_notes): This
10014         function was dropping debug insns which caused PR45299.
10015
10016 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
10017
10018         * config/i386/sse.md (extsuffix): New code attribute.
10019         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
10020         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
10021         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
10022         and sse4_1_zero_extendv4qiv4si2.
10023         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
10024         and sse4_1_zero_extendv2qiv2di2.
10025         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
10026         and sse4_1_zero_extendv4hiv4si2.
10027         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
10028         and sse4_1_zero_extendv2hiv2di2.
10029         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
10030         and sse4_1_zero_extendv2siv2di2
10031
10032         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
10033         using any_extend code iterator.
10034         (*avx_<s>mulv8hi3_highpart): Macroize insn from
10035         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
10036         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
10037
10038         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
10039         gen_sse4_1_sign_extend* functions.
10040         (struct builtin_description bdesc_args): Ditto.
10041
10042 2010-08-27  Xinliang David Li  <davidxl@google.com>
10043
10044         PR/45422
10045         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
10046         (iv_ca_set_no_cp): Update used inv expr count.
10047         (iv_ca_set_cp): Ditto.
10048         (iv_ca_new): Initialize new member.
10049         (iv_ca_free): Free memory.
10050
10051 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
10052
10053         * config/sh/sh-protos.h (sh_function_arg): Delete.
10054         (sh_function_arg_advance): Delete.
10055         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10056         (PASS_IN_REG_P): Eliminate cast.
10057         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
10058         const_tree and a bool.
10059         (sh_function_arg): Likewise.
10060         (sh_output_mi_thunk): Call sh_function_arg_advance) and
10061         sh_function_arg.
10062         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10063
10064 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
10065             Kaz Kojima  <kkojima@gcc.gnu.org>
10066
10067         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
10068         when possible.
10069         (sh_expand_epilogue): Likewise.
10070         * config/sh/sh.md (movml_push_banked): New insn.
10071         (movml_pop_banked): Likewise.
10072
10073 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
10074
10075         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
10076         gen_regexp_oneof, gen_regexp_sequence): Use the string found
10077         in vector element 0 rather than the original string when there's
10078         only one element.
10079         (gen_regexp): Remove extra semicolon.
10080
10081         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
10082         thumb2_movsf_vfp): Set attribute "insn".
10083         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
10084         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
10085         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
10086         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
10087         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
10088         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
10089         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
10090         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
10091         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
10092         if_not_arith, if_arith_not, cond_move_not): Likewise.
10093
10094 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10095
10096         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
10097         New declaration.
10098         (rs6000_allocate_stack_temp): Ditto.
10099         (rs6000_expand_convert_si_to_sfdf): Ditto.
10100
10101         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
10102         line.  Update the options set if power6 or power7 server/embedded
10103         type options are used.  If we give a warning for no vsx under
10104         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
10105         (rs6000_allocate_stack_temp): New function to allocate a stack
10106         tempoary and adjust the address so it meets either REG+OFFSET or
10107         REG+REG addressing requirements.
10108         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
10109         that they can be used with the LFIWAX/LFIWZX instrucitons.
10110         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
10111         converting signed/unsigned SImode to either SFmode/DFmode.
10112
10113         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
10114         whether certain instructions can be generated.
10115         (TARGET_FCTIDZ): Ditto.
10116         (TARGET_STFIWX): Ditto.
10117         (TARGET_LFIWAX): Ditto.
10118         (TARGET_LFIWZX): Ditto.
10119         (TARGET_FCFIDS): Ditto.
10120         (TARGET_FCFIDU): Ditto.
10121         (TARGET_FCFIDUS): Ditto.
10122         (TARGET_FCTIDUZ): Ditto.
10123         (TARGET_FCTIWUZ): Ditto.
10124
10125         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
10126         (UNSPEC_FCTID): Ditto.
10127         (UNSPEC_LFIWAX): Ditto.
10128         (UNSPEC_LFIWZX): Ditto.
10129         (UNSPEC_FCTIWUZ): Ditto.
10130         (rreg): Use correct constraints.
10131         (SI_CONVERT_FP): New mode attribute for floating point conversion
10132         tests.
10133         (E500_CONVERT): Ditto.
10134         (lfiwax): New insns for converting from integer to floating point
10135         utilizing newer instructions.  Attempt to optimize conversions
10136         that come from memory so that we don't load the value into a GPR,
10137         spill it to the stack and reload it into a FPR.
10138         (floatsi<mode>2_lfiwax): Ditto.
10139         (floatsi<mode>2_lfiwax_mem): Ditto.
10140         (floatsi<mode>2_lfiwax_mem2): Ditto.
10141         (lfiwzx): Ditto.
10142         (floatunssi<mode>2_lfiwzx): Ditto.
10143         (floatunssi<mode>2_lfiwzx_mem): Ditto.
10144         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
10145         (floatdidf2_mem): Ditto.
10146         (floatunsdidf2_fcfidu): Ditto.
10147         (floatunsdidf2_mem): Ditto.
10148         (floatunsdisf2): Ditto.
10149         (floatunsdisf2_fcfidus): Ditto.
10150         (floatunsdisf2_mem): Ditto.
10151         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
10152         Use FCFID on 32-bit hosts that support it.
10153         (floatsidf2_internal): Ditto.
10154         (floatunssisf2): Ditto.
10155         (floatunssidf2): Ditto.
10156         (floatunssidf2_internal): Ditto.
10157         (floatsisf2): Ditto.
10158         (floatdidf2): Ditto.
10159         (floatdidf2_fpr): Ditto.
10160         (floatunsdidf2): Ditto.
10161         (floatdisf2): Ditto.
10162         (floatdisf2_fcfids): Ditto.
10163         (floatdisf2_internal1): Ditto.
10164         (fixuns_truncsfsi2): Delete, merge into common pattern for both
10165         SF/DF.  Add power7 support.
10166         (fix_truncsfsi2): Ditto.
10167         (fixuns_truncdfsi2): Ditto.
10168         (fixuns_truncdfdi2): Ditto.
10169         (fix_truncdfsi2): Ditto.
10170         (fix_truncdfsi2_internal): Ditto.
10171         (fix_truncdfsi2_internal_gfxopt): Ditto.
10172         (fix_truncdfsi2_mfpgpr): Ditto.
10173         (fctiwz): Ditto.
10174         (btruncdf2): Ditto.
10175         (btruncdf2_fpr): Ditto.
10176         (btructsf2): Ditto.
10177         (ceildf2): Ditto.
10178         (ceildf2_fpr): Ditto.
10179         (ceilsf2): Ditto.
10180         (floordf2): Ditto.
10181         (floordf2_fpr): Ditto.
10182         (floorsf2): Ditto.
10183         (rounddf2): Ditto.
10184         (rounddf2_fpr): Ditto.
10185         (roundsf2): Ditto.
10186         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
10187         (fix_trunc<mode>di2): Ditto.
10188         (fixuns_trunc<mode>si2): Ditto.
10189         (fixuns_trunc<mode>di2): Ditto.
10190         (fctiwz_<mode>): Ditto.
10191         (btrunc<mode>2): Ditto.
10192         (btrunc<mode>2_fpr): Ditto.
10193         (ceil<mode>2): Ditto.
10194         (ceil<mode>2_fpr): Ditto.
10195         (floor<mode>2): Ditto.
10196         (float<mode>2_fpr): Ditto.
10197         (round<mode>2): Ditto.
10198         (round<mode>2_fpr): Ditto.
10199         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
10200         (fixuns_trunc<mode>si2_stfiwx): Ditto.
10201         (fix_truncdfsi2_internal): Ditto.
10202         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
10203         converted value on stack, loaded into GPR, and then stored into
10204         the final destination.
10205         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
10206         FCTIDZ.
10207         (lrint<mode>di2): New insn, provide the lrint builtin functions.
10208         (ftruncdf2): Delete, unused.
10209         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
10210
10211         * config/rs6000/vsx.md (toplevel): Update copyright year.
10212         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
10213         (VSr3): Ditto.
10214
10215 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
10216             Jeremie Salvucci  <jeremie.salvucci@free.fr>
10217
10218         * gengtype.c (output_type_enum): Test the right union member.
10219
10220 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
10221
10222         PR target/41484
10223         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
10224         operands for operand 1.
10225         (sse4_1_extendv4qiv4si2): Ditto.
10226         (sse4_1_extendv2qiv2di2): Ditto.
10227         (sse4_1_extendv4hiv4si2): Ditto.
10228         (sse4_1_extendv2hiv2di2): Ditto.
10229         (sse4_1_extendv2siv2di2): Ditto.
10230         (sse4_1_zero_extendv8qiv8hi2): Ditto.
10231         (sse4_1_zero_extendv4qiv4si2): Ditto.
10232         (sse4_1_zero_extendv2qiv2di2): Ditto.
10233         (sse4_1_zero_extendv4hiv4si2): Ditto.
10234         (sse4_1_zero_extendv2hiv2di2): Ditto.
10235         (sse4_1_zero_extendv2siv2di2): Ditto.
10236         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
10237         (*sse4_1_extendv4qiv4si2): Ditto.
10238         (*sse4_1_extendv2qiv2di2): Ditto.
10239         (*sse4_1_extendv4hiv4si2): Ditto.
10240         (*sse4_1_extendv2hiv2di2): Ditto.
10241         (*sse4_1_extendv2siv2di2): Ditto.
10242         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
10243         (*sse4_1_zero_extendv4qiv4si2): Ditto.
10244         (*sse4_1_zero_extendv2qiv2di2): Ditto.
10245         (*sse4_1_zero_extendv4hiv4si2): Ditto.
10246         (*sse4_1_zero_extendv2hiv2di2): Ditto.
10247         (*sse4_1_zero_extendv2siv2di2): Ditto.
10248
10249 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
10250
10251         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
10252         (mips_function_arg): Delete.
10253         (mips_function_arg_boundary): Take a const_tree.
10254         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
10255         (mips_arg_info): Likewise.
10256         (mips_setup_incoming_varargs): Call mips_function_arg_advance
10257         instead of FUNCTION_ARG_ADVANCE.
10258         (mips_function_arg_advance): Adjust prototype.  Make static.
10259         (mips_function_arg): Likewise.
10260         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10261         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
10262
10263 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
10264
10265         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
10266         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
10267         (function_arg): Delete.
10268         (function_arg_boundary): Take a const_tree.
10269         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
10270         (rs6000_spe_function_arg): Likewise.
10271         (rs6000_parm_start): Likewise.
10272         (rs6000_arg_size): Likewise.
10273         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
10274         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
10275         (rs6000_mixed_function_arg): Likewise.
10276         (function_arg): Rename to...
10277         (rs6000_function_arg): ...this.
10278         (function_arg_advance): Rename to...
10279         (rs6000_function_arg_advance_1): ...this
10280         (rs6000_function_arg_advance): New function.  Call it.
10281         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
10282         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
10283         (rs6000_function_value): Likewise.
10284         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10285
10286 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10287
10288         * config/arm/arm.md (enabled): Test the value of arch_enabled
10289         rather than just using it.
10290
10291 2010-08-27  Olivier Hainque  <hainque@adacore.com>
10292             Eric Botcazou  <ebotcazou@adacore.com>
10293
10294         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
10295         cover all the possible offsets from this base.
10296         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
10297
10298 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
10299
10300         PR tree-optimization/44485
10301         * calls.c (flags_from_decl_or_type): For const or pure
10302         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
10303         together with ECF_CONST resp. ECF_PURE.
10304         * builtins.c (expand_builtin): Use flags_from_decl_or_type
10305         instead of querying flags directly.
10306         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
10307         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
10308
10309 2010-08-26  Richard Guenther  <rguenther@suse.de>
10310
10311         PR tree-optimization/45255
10312         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
10313         and externals are also invariant.
10314
10315 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
10316
10317         PR rtl-optimization/44858
10318         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
10319         newi2pat, make sure they don't affect newpat.
10320
10321         PR rtl-optimization/45400
10322         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
10323         SUBREG_REG if both modes are of MODE_INT class.
10324
10325 2010-08-25  Julian Brown  <julian@codesourcery.com>
10326
10327         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
10328         * config/arm/arm.md (generic_sched): No for Cortex-A5.
10329         (generic_vfp): Likewise.
10330         (cortex-a5.md): Include.
10331         * config/arm/cortex-a5.md: New.
10332
10333 2010-08-25  Richard Guenther  <rguenther@suse.de>
10334
10335         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
10336         * gimple.c (gimple_get_alias_set): Remove special handling
10337         for pointers.
10338
10339 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10340
10341         PR middle-end/45355
10342         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
10343         dead_or_set_p when computing i0_feeds_i2_n.
10344
10345         * combine.c (find_split_point): Undo canonicalization of multiply-add
10346         to (minus x (mult)) when it seems likely that this will increase the
10347         chances of a split.
10348
10349 2010-08-25  Richard Guenther  <rguenther@suse.de>
10350
10351         PR lto/44562
10352         * lto-streamer.c (lto_record_common_node): Do not mess with
10353         TYPE_CANONICAL when not in lto.
10354         * gimple.c (gimple_register_type): Likewise.
10355
10356 2010-08-25  Richard Guenther  <rguenther@suse.de>
10357
10358         PR tree-optimization/45316
10359         * tree-ssa-pre.c (eliminate): Properly clean EH info.
10360
10361 2010-08-25  Richard Guenther  <rguenther@suse.de>
10362
10363         PR tree-optimization/45393
10364         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
10365         and clean EH info.  Avoid SSA update.
10366         (execute_cse_sincos): Cleanup the CFG if it has changed.
10367
10368 2010-08-25  Richard Guenther  <rguenther@suse.de>
10369
10370         PR middle-end/45379
10371         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
10372         TARGET_MEM_REF in alignment computation.
10373
10374 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
10375
10376         PR tree-optimization/45059
10377         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
10378         type conversions from newop{1,2}.  Assert t is a comparison and
10379         newop{1,2} after the stripping are gimple vals.
10380
10381 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
10382
10383         * config/arm/iterators.md (VU, SE, V_widen_l): New.
10384         (V_unpack, US): New.
10385         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
10386         (vec_unpack<US>_lo_<mode>): Likewise.
10387         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
10388         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10389         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
10390         (vec_widen_<US>mult_hi_<mode>): Likewise.
10391         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
10392         (neon_vec_<US>mult_hi_<mode>"): Likewise.
10393         (neon_unpack<US>_<mode>): Widening move intermediate step for
10394         vectorizing without -mvectorize-with-neon-quad.
10395         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
10396         for vectorizing without -mvectorize-with-neon-quad.
10397         * config/arm/predicates.md (vect_par_constant_high): Check for
10398         high-half lanes of a vector.
10399         (vect_par_constant_low): Check for low-half lanes of a vector.
10400
10401 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
10402
10403         * tree-if-conv.c (struct ifc_dr): New.
10404         (IFC_DR): New.
10405         (DR_WRITTEN_AT_LEAST_ONCE): New.
10406         (DR_RW_UNCONDITIONALLY): New.
10407         (memref_read_or_written_unconditionally): Use the cached values
10408         when possible.
10409         (write_memref_written_at_least_once): Same.
10410         (if_convertible_loop_p): Initialize and free DR->aux fields.
10411
10412 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
10413
10414         * gimple.c (gimple_could_trap_p_1): Not static anymore.
10415         Pass an extra bool parameter include_mem.
10416         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
10417         (gimple_assign_rhs_could_trap_p): Same.
10418         * gimple.h (gimple_could_trap_p_1): Declared.
10419         * tree-data-ref.h (same_data_refs_base_objects): New.
10420         (same_data_refs): New.
10421         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
10422         (write_memrefs_written_at_least_once): New.
10423         (ifcvt_memrefs_wont_trap): New.
10424         (operations_could_trap): New.
10425         (ifcvt_could_trap_p): New.
10426         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
10427         Gets a vector of data refs.
10428         (if_convertible_stmt_p): Same.
10429         (if_convertible_loop_p_1): New.
10430         (if_convertible_loop_p): Call if_convertible_loop_p_1.
10431
10432 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
10433
10434         * common.opt (ftree-loop-if-convert-stores): New flag.
10435         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
10436         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
10437         the created statement before GSI.
10438         (if_convertible_phi_p): Allow virtual phi nodes when
10439         flag_loop_if_convert_stores is set.
10440         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
10441         Do not handle types that do not match is_gimple_reg_type.
10442         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
10443         when flag_loop_if_convert_stores is set, as LHS can contain
10444         memory refs.
10445         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
10446         to if_convertible_gimple_assign_stmt_p.
10447         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
10448         (replace_phi_with_cond_gimple_assign_stmt): Renamed
10449         predicate_scalar_phi.  Do not handle virtual phi nodes.
10450         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
10451         Call predicate_scalar_phi.
10452         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
10453         just after the labels for flag_loop_if_convert_stores, otherwise
10454         insert the predicate in the end of the BB.
10455         (predicate_mem_writes): New.
10456         (combine_blocks): Call predicate_all_scalar_phis.  When
10457         flag_loop_if_convert_stores is set, call predicate_mem_writes.
10458         (tree_if_conversion): Call mark_sym_for_renaming when
10459         flag_loop_if_convert_stores is set.
10460         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
10461         flag_loop_if_convert_stores is set.
10462
10463 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
10464
10465         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
10466         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
10467         (pa_function_value): Make static.
10468         (override_options): Rename to...
10469         (pa_option_override): ...this. Make static.
10470         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
10471         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
10472         TARGET_OPTION_OVERRIDE): Define.
10473         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
10474         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
10475         Remove.
10476         * config/pa/pa-protos.h (override_options): Remove.
10477
10478 2010-08-24  Richard Guenther  <rguenther@suse.de>
10479
10480         PR middle-end/45379
10481         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
10482         if addr->index is NULL or zero.
10483         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
10484         TARGET_MEM_REF more properly.
10485         (indirect_ref_may_alias_decl_p): Likewise.
10486         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
10487         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
10488
10489 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
10490
10491         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
10492         (m32c_override_options): Rename to...
10493         (m32c_option_override): ...this. Make static.
10494         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
10495         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
10496         Remove.
10497         * config/m32c/m32c-protos.h (m32c_override_options,
10498         m32c_function_value_regno_p): Remove.
10499
10500 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
10501
10502         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
10503         Fix a typo in a previous commit.
10504
10505 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
10506
10507         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
10508         Pre-initialize innerloop_iters to one.
10509
10510 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
10511
10512         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
10513         existing static function global.
10514
10515         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
10516         is changed to global.
10517
10518         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
10519         may_be_nonaddressable_p on base, and don't collect this reference
10520         if the address of the base could not be taken.
10521
10522 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10523
10524         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
10525         enable the compiler to autovectorize mathmetical functions for
10526         power7 using the Mathematical Acceleration Subsystem library.
10527
10528         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
10529         handle which vector math library we have.
10530         (rs6000_override_options): Add -mveclibabi=mass support.
10531         (rs6000_builtin_vectorized_libmass): New function to handle auto
10532         vectorizing math functions that are in the MASS library.
10533         (rs6000_builtin_vectorized_function): Call it.
10534
10535         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10536         -mveclibabi=mass.
10537
10538 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10539
10540         PR boehm-gc/34544
10541         * gthr-posix.h (__gthread_active_init): Delete.
10542         (__gthread_active_p): Do activity check here.
10543         Don't include errno.h on hppa-hpux.  Update comment.
10544         * gthr-posix95.h (__gthread_active_init): Delete.
10545         (__gthread_active_p): Do activity check here.
10546         Don't include errno.h on hppa-hpux.  Update comment.
10547         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
10548         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
10549         add -lpthread when -mt or -pthread is specified.
10550         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
10551         (LINK_GCC_C_SEQUENCE_SPEC): Define.
10552         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
10553         (stublib.c, pthread_default_stacksize_np-stub.o,
10554         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
10555         $(T)libgcc_stub.a): Add methods.
10556         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
10557         (stublib.c, pthread_default_stacksize_np-stub.o,
10558         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
10559         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10560         pthread_mutex_unlock): New stubs.
10561
10562 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
10563
10564         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
10565         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
10566         options.
10567         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
10568         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
10569         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
10570         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
10571         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
10572         "-l".
10573         * cppspec.c: Include opts.h.
10574         (lang_specific_driver): Use cl_decoded_option structures.
10575         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
10576         * doc/tm.texi: Regenerate.
10577         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
10578         (driver_handle_option): Allow driver options needing no special
10579         processing.
10580         (process_command): Decode options before call to
10581         lang_specific_driver.  Pass decoded options to
10582         lang_specific_driver.
10583         * gcc.h (lang_specific_driver): Update prototype.
10584         * gccspec.c: Include opts.h.
10585         (lang_specific_driver): Use cl_decoded_option structures.
10586         * opts-common.c (option_ok_for_language, generate_option,
10587         generate_option_input_file): New.
10588         (decode_cmdline_option): Use option_ok_for_language.
10589         (decode_cmdline_options_to_array): Use generate_option_input_file.
10590         (handle_generated_option): Use generate_option.
10591         * opts.h (generate_option, generate_option_input_file): Declare.
10592
10593 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
10594
10595         * config/mips/mips.c (mips_override_options): Rename to...
10596         (mips_option_override): ...this. Make static.
10597         (TARGET_OPTION_OVERRIDE): Define.
10598         (mips_in_small_data_p): Update comment.
10599         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
10600         (FIXED_REGISTERS): Update comment.
10601         * config/mips/mips-protos.h (mips_override_options): Remove.
10602
10603 2010-08-21  Olivier Hainque  <hainque@adacore.com>
10604
10605         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
10606
10607 2010-08-21  Olivier Hainque  <hainque@adacore.com>
10608
10609         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
10610         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
10611
10612 2010-08-20  Jan Hubicka  <jh@suse.cz>
10613
10614         * tree-pass.h (pass_ipa_cdtor_merge): New function.
10615         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
10616         heap allocated.
10617         (record_cdtor_fn): Move to ipa.c; do not test for
10618         have_ctors_dtors.
10619         (build_cdtor): Move to ipa.c; add code avoiding construction
10620         when target have ctors/dtors and there is only one ctor/dtor at given
10621         priority.
10622         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
10623         sort; reverse order of constructors.
10624         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
10625         (cgraph_finalize_function): Do not call record_cdtor_fn.
10626         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
10627         (cgraph_build_static_cdtor): Move to ipa.c.
10628         * ipa.c: Include target.h and tree-iterator.h.
10629         (cgraph_build_static_cdtor, static_ctors, static_dtors,
10630         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
10631         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
10632         pass_ipa_cdtor_merge): New.
10633         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
10634         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
10635         bounds access.
10636
10637 2010-08-20  Jan Hubicka  <jh@suse.cz>
10638
10639         PR c++/45307
10640         PR c++/17736
10641         * cgraph.h (cgraph_only_called_directly_p,
10642         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
10643         static cdtors.
10644         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
10645         are not needed.
10646         (cgraph_finalize_function): Static cdtors are reachable.
10647         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
10648
10649 2010-08-20  Jan Hubicka  <jh@suse.cz>
10650
10651         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
10652         flag_wpa.
10653         * lto-streamer-out.c (lto_output): Likewise.
10654         * passes.c (ipa_write_optimization_summaries): Initialize statement
10655         uids.
10656
10657 2010-08-20  Olivier Hainque  <hainque@adacore.com>
10658
10659         * tree.h (alias_diag_flags): New enum.
10660         (alias_pair): Add an 'emitted_diags' field.
10661         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
10662         (assemble_alias): Initialize emitted_diags of new pairs.
10663
10664 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
10665
10666         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10667         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10668         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10669         (STACK_CHECK_PROTECT): Define.
10670         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
10671         (output_probe_stack_range): Likewise.
10672         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
10673         builtin stack checking is enabled.
10674         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
10675         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10676         (probe_stack_range): New insn.
10677
10678 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
10679
10680         PR target/45336
10681         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
10682         short first.
10683
10684         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
10685         char first.
10686
10687 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10688
10689         PR target/45336
10690         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
10691         to cover zero extension into 64-bit register.
10692         (*sse2_pextrw): Likewise.
10693         (*sse4_1_pextrd_zext): New insn.
10694
10695 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
10696
10697         revert r163410, partially revert r163267.
10698         * config/rs6000/darwin.h (LIB_SPEC): Remove.
10699         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
10700         Darwin versions.
10701
10702 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10703
10704         PR middle-end/44974
10705         * builtins.c (expand_builtin): Don't optimize away
10706         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
10707
10708 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
10709
10710         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
10711         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
10712         alternative 1 of operand 2.
10713
10714 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10715             Paolo Bonzini  <bonzini@gnu.org>
10716
10717         * simplify-rtx.c (simplify_unary_operation_1): Optimize
10718         (sign_extend (zero_extend (...)) and
10719         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
10720
10721 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10722
10723         PR rtl-optimization/45353
10724         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
10725         after bb_note is a BARRIER.
10726
10727 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
10728
10729         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
10730         linking libgcc.a.
10731
10732 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10733             Michael Matz  <matz@suse.de>
10734
10735         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
10736
10737 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
10738
10739         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
10740         (ggc_mark_roots): ...here.
10741
10742 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
10743
10744         * vec.h (FOR_EACH_VEC_ELT): Define.
10745         * c-decl.c: Use it.
10746         * cfgloop.c: Likewise.
10747         * cfgloopmanip.c: Likewise.
10748         * cgraph.c: Likewise.
10749         * cgraphunit.c: Likewise.
10750         * combine.c: Likewise.
10751         * config/bfin/bfin.c: Likewise.
10752         * config/mips/mips.c: Likewise.
10753         * config/rs6000/rs6000.c: Likewise.
10754         * dbxout.c: Likewise.
10755         * df-scan.c: Likewise.
10756         * dominance.c: Likewise.
10757         * dse.c: Likewise.
10758         * dwarf2out.c: Likewise.
10759         * except.c: Likewise.
10760         * expr.c: Likewise.
10761         * function.c: Likewise.
10762         * gcse.c: Likewise.
10763         * genattr.c: Likewise.
10764         * ggc-common.c: Likewise.
10765         * gimplify.c: Likewise.
10766         * graphite-blocking.c: Likewise.
10767         * graphite-clast-to-gimple.c: Likewise.
10768         * graphite-dependences.c: Likewise.
10769         * graphite-interchange.c: Likewise.
10770         * graphite-poly.c: Likewise.
10771         * graphite-scop-detection.c: Likewise.
10772         * graphite-sese-to-poly.c: Likewise.
10773         * graphite.c: Likewise.
10774         * haifa-sched.c: Likewise.
10775         * ifcvt.c: Likewise.
10776         * implicit-zee.c: Likewise.
10777         * ipa-prop.c: Likewise.
10778         * ipa-struct-reorg.c: Likewise.
10779         * ipa.c: Likewise.
10780         * ira-build.c: Likewise.
10781         * ira-color.c: Likewise.
10782         * ira-emit.c: Likewise.
10783         * lambda-code.c: Likewise.
10784         * loop-invariant.c: Likewise.
10785         * loop-unroll.c: Likewise.
10786         * lower-subreg.c: Likewise.
10787         * lto-cgraph.c: Likewise.
10788         * lto-opts.c: Likewise.
10789         * lto-streamer-in.c: Likewise.
10790         * lto-streamer-out.c: Likewise.
10791         * lto-streamer.c: Likewise.
10792         * lto-symtab.c: Likewise.
10793         * matrix-reorg.c: Likewise.
10794         * opts.c: Likewise.
10795         * predict.c: Likewise.
10796         * print-tree.c: Likewise.
10797         * sdbout.c: Likewise.
10798         * sel-sched-dump.c: Likewise.
10799         * sel-sched-ir.c: Likewise.
10800         * sel-sched.c: Likewise.
10801         * sese.c: Likewise.
10802         * stor-layout.c: Likewise.
10803         * tree-cfg.c: Likewise.
10804         * tree-cfgcleanup.c: Likewise.
10805         * tree-chrec.c: Likewise.
10806         * tree-data-ref.c: Likewise.
10807         * tree-emutls.c: Likewise.
10808         * tree-inline.c: Likewise.
10809         * tree-into-ssa.c: Likewise.
10810         * tree-loop-distribution.c: Likewise.
10811         * tree-loop-linear.c: Likewise.
10812         * tree-mudflap.c: Likewise.
10813         * tree-outof-ssa.c: Likewise.
10814         * tree-parloops.c: Likewise.
10815         * tree-predcom.c: Likewise.
10816         * tree-pretty-print.c: Likewise.
10817         * tree-scalar-evolution.c: Likewise.
10818         * tree-ssa-live.c: Likewise.
10819         * tree-ssa-loop-im.c: Likewise.
10820         * tree-ssa-loop-ivcanon.c: Likewise.
10821         * tree-ssa-loop-ivopts.c: Likewise.
10822         * tree-ssa-loop-manip.c: Likewise.
10823         * tree-ssa-loop-niter.c: Likewise.
10824         * tree-ssa-loop-prefetch.c: Likewise.
10825         * tree-ssa-phiprop.c: Likewise.
10826         * tree-ssa-pre.c: Likewise.
10827         * tree-ssa-reassoc.c: Likewise.
10828         * tree-ssa-sccvn.c: Likewise.
10829         * tree-ssa-structalias.c: Likewise.
10830         * tree-ssa.c: Likewise.
10831         * tree-vect-data-refs.c: Likewise.
10832         * tree-vect-loop-manip.c: Likewise.
10833         * tree-vect-loop.c: Likewise.
10834         * tree-vect-patterns.c: Likewise.
10835         * tree-vect-slp.c: Likewise.
10836         * tree-vect-stmts.c: Likewise.
10837         * tree-vrp.c: Likewise.
10838         * tree.c: Likewise.
10839         * value-prof.c: Likewise.
10840         * var-tracking.c: Likewise.
10841         * varasm.c: Likewise.
10842         * vmsdbgout.c: Likewise.
10843
10844 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
10845             Richard Guenther  <richard.guenther@gmail.com>
10846
10847         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
10848         copy the src value and return a copy.
10849         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
10850         (C++ Volatiles): Adjust to describe C++ semantics only.
10851
10852 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
10853
10854         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
10855         be zero or nonzero.
10856         * doc/tm.texi: Regenerate.
10857         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
10858         * df-scan.c (df_get_exit_block_use_set), reginfo.c
10859         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
10860         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
10861         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
10862         to 1.
10863
10864 2010-08-20  Olivier Hainque  <hainque@adacore.com>
10865
10866         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
10867         an extra nop past a sibling call at the very end.
10868
10869 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
10870
10871         PR bootstrap/45350
10872         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
10873         a comment.
10874
10875 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
10876
10877         * target.def (function_arg, function_incoming_arg): Remove const
10878         qualifier on CUMULATIVE_ARGS parameter.
10879         * targhooks.h (default_function_arg, default_function_incoming_arg):
10880         Likewise.
10881         * targhooks.c (default_function_arg, default_function_incoming_arg):
10882         Likewise.
10883         * config/i386/i386.c (ix86_function_arg): Likewise.
10884
10885 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
10886
10887         PR target/45336
10888         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
10889         SIGN_EXTENDs or ZERO_EXTENDs.
10890
10891 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
10892
10893         PR target/42172
10894         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
10895         Take its cost into account if nonnull.
10896         (insn_a_feeds_b): New static function.
10897         (combine_instructions): Look for four-insn combinations.
10898         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
10899         them into account when computing all_adjacent and looking for other
10900         uses.
10901         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
10902         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
10903         (try_combine): New arg I0.  Handle four-insn combinations.
10904         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
10905         like ELIM_I1.
10906
10907 2010-08-19  Jason Merrill  <jason@redhat.com>
10908
10909         PR c++/45307
10910         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
10911         if ctor is empty.
10912         (gimplify_modify_expr_rhs): Adjust.
10913
10914 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
10915
10916         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
10917         bitmap_bit_p.
10918         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
10919         * dominance.c (iterate_fix_dominators): Likewise.
10920         * dse.c (set_usage_bits): Likewise.
10921         (set_position_unneeded, record_store): Likewise.
10922         * gimple-fold.c (get_maxval_strlen): Likewise.
10923         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
10924         * ipa-inline.c (update_caller_keys): Likewise.
10925         * ipa-split.c (verify_non_ssa_vars): Likewise.
10926         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
10927         (close_type_exposed_parameter, close_type_full_escape): Likewise.
10928         (close_addressof_down): Likewise.
10929         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
10930         (setup_allocno_left_conflicts_size): Likewise.
10931         (ira_reassign_conflict_allocnos): Likewise.
10932         (ira_reassign_pseudos): Likewise.
10933         * ira-emit.c (change_loop): Likewise.
10934         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
10935         * lto-streamer-out.c (write_symbol): Likewise.
10936         * predict.c (expr_expected_value_1): Likewise.
10937         * regstat.c (regstat_bb_compute_ri): Likewise.
10938         * sel-sched.c (create_block_for_bookkeeping): Likewise.
10939         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
10940         * stmt.c (expand_case): Likewise.
10941         * tree-eh.c (emit_eh_dispatch): Likewise.
10942         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
10943         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
10944         Likewise.
10945         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
10946         (rdg_build_components): Likewise.
10947         * tree-object-size.c (collect_object_sizes_for): Likewise.
10948         * tree-sra.c (convert_callers): Likewise.
10949         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
10950         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
10951         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
10952
10953 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
10954
10955         * config/i386/i386.md (*lea_1): Use P mode iterator.
10956         (lea add splitter): Also handle DImode operands.
10957         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
10958         predicate.  Do not use ix86_lea_for_add_ok.
10959         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
10960         (lea ashift splitter): Also handle DImode operands.
10961         (DImode lea ashift splitter): Remove splitter.
10962
10963 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
10964
10965         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
10966         ix86_binary_operator_ok.
10967
10968 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
10969
10970         PR rtl-optimization/44691
10971         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
10972         is not a register.
10973
10974 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
10975
10976         PR target/45070
10977         * config/arm/arm.c (arm_output_epilogue): Ensure that return
10978          value of size 1-3 is handled correctly.
10979
10980 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
10981
10982         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
10983         type for the conditional has wide enough range.
10984
10985 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
10986
10987         PR target/45327
10988         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
10989         ix86_binary_operator_ok.
10990
10991 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
10992
10993         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
10994         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
10995         code to output insn mnemonic.  Fix comment.
10996         (*addsi_1_zext): Add r-r-0 alternative 1.
10997         <TYPE_LEA>: Split insn to lea.
10998         <default>: Handle alternative 1.
10999         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
11000         multi-level if_then_else RTX to set "type" attribute.
11001         <default>: Handle alternative 2.
11002         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
11003         Use cond RTX instead of multi-level if_then_else RTX to set
11004         "type" attribute.
11005         <default>: Handle alternatives 2 and 4.
11006         (lea splitters): Update calls to ix86_lea_for_add_ok.
11007
11008         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
11009         argument.
11010         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
11011
11012 2010-08-18  Richard Guenther  <rguenther@suse.de>
11013
11014         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
11015         use operand helpers.
11016
11017 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
11018
11019         PR middle-end/45292
11020         * optabs.c (expand_bool_compare_and_swap): Expand pending
11021         pops before trying the optab.
11022
11023 2010-08-18  Yao Qi  <yao@codesourcery.com>
11024
11025         PR target/45094
11026         * config/arm/arm.c (output_move_double): Fix typo generating
11027         instructions ('ldr'->'str').
11028
11029 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
11030
11031         PR rtl-optimization/42575
11032         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
11033         live ranges.
11034
11035 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
11036
11037         * config/arm/arm-protos.h (arm_expand_sync): New.
11038         (arm_output_memory_barrier, arm_output_sync_insn): New.
11039         (arm_sync_loop_insns): New.
11040         * config/arm/arm.c (FL_ARCH7): New.
11041         (FL_FOR_ARCH7): Include FL_ARCH7.
11042         (arm_arch7): New.
11043         (arm_print_operand): Support %C markup.
11044         (arm_legitimize_sync_memory): New.
11045         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
11046         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
11047         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
11048         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
11049         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
11050         (arm_process_output_sync_insn, arm_output_sync_insn): New.
11051         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
11052         * config/arm/arm.h (struct arm_sync_generator): New.
11053         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
11054         (TARGET_HAVE_MEMORY_BARRIER): New.
11055         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
11056         * config/arm/arm.md: Include sync.md.
11057         (UNSPEC_MEMORY_BARRIER): New.
11058         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
11059         (VUNSPEC_SYNC_OP):New.
11060         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
11061         (sync_result, sync_memory, sync_required_value): New attributes.
11062         (sync_new_value, sync_t1, sync_t2): Likewise.
11063         (sync_release_barrier, sync_op): Likewise.
11064         (length): Add logic to length attribute defintion to call
11065         arm_sync_loop_insns when appropriate.
11066         * config/arm/sync.md: New file.
11067
11068 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
11069
11070         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
11071         ENABLE_TREE_CHECKING.
11072         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
11073         and GCC >= 4.3.
11074
11075 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
11076
11077         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
11078         or optimizing for size, always avoid lea if possible.
11079
11080         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
11081
11082 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
11083
11084         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
11085         Dunmmy function with NULL return unless the target is
11086         OSX >= 10.6 (Darwin10).
11087
11088 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
11089
11090         * gcc.c (spec_function): Add remove-outfile.
11091         (remove_outfile_spec_function): New function.
11092         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
11093         * invoke.texi (replace-outfile): Document.
11094
11095 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
11096
11097         PR target/45296
11098         * reginfo.c (globalize_reg): Reject stack registers.
11099
11100 2010-08-17  Richard Guenther  <rguenther@suse.de>
11101
11102         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
11103         list of conditional equivalences.
11104         (free_all_edge_infos): Adjust.
11105         (record_equivalences_from_incoming_edge): Likewise.
11106         (record_cond): Likewise.
11107         (build_and_record_new_cond): Likewise.
11108         (record_conditions): Likewise.
11109         (dom_opt_leave_block): Likewise.
11110
11111 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
11112
11113         * doc/invoke.texi (ms-extension): Add documentation.
11114
11115 2010-08-17  Richard Guenther  <rguenther@suse.de>
11116
11117         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
11118
11119 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
11120
11121         PR c/40563
11122         * c-decl.c (diagnose_uninitialized_cst_member): New function.
11123         (finish_decl): Use it to issue a -Wc++-compat warning about
11124         uninitialized const field in struct or union.
11125
11126         (finish_struct): Use strip_array_types.
11127
11128 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
11129
11130         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
11131         functions.
11132         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
11133         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
11134         call block_nreverse here.
11135         (blocks_nreverse): Rename decl temporary to block.
11136
11137 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
11138
11139         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
11140         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
11141         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
11142         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
11143         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
11144         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
11145         thumb2_iorsi3): Delete.
11146         (orsi_notsi_si): No longer a named pattern.
11147         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
11148         * config/arm/predicates.md (shift_amount_operand): New.
11149         (mult_operator): New.
11150         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
11151         attr enabled): New.
11152         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
11153         arch matches t2.
11154         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
11155         (not_shiftsi_compare0): Likewise, renamed from
11156         arm_notsi_shiftsi_compare0.
11157         (not_shiftsi_compare0_scratch): Likweise, renamed from
11158         arm_notsi_shiftsi_compare0_scratch.
11159         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
11160         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
11161         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
11162         so that the register alternative is disabled when the shift_operator
11163         is MULT.  Use "M" as the constraint for constants.
11164         (arith_shiftsi splitter): Enable for TARGET_32BIT.
11165         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
11166         constraint for constants.
11167         (arith_shiftsi_compare0_scratch): Likewise.
11168         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
11169         Handle Thumb2 alternative.
11170
11171 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
11172
11173         * doc/options.texi (NoDriverArg): Document.
11174         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
11175         -MDX and -MMDX.
11176         * opt-functions.awk (switch_flags): Handle NoDriverArg.
11177         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
11178         marking for CL_NO_DRIVER_ARG options when in the driver.
11179         * opts.h (CL_NO_DRIVER_ARG): Define.
11180         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
11181         CL_COMMON): Update values.
11182
11183 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
11184
11185         * common.opt: Add driver options.
11186         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
11187         * doc/options.texi (Driver, RejectDriver): Document.
11188         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
11189         print_prog_name, print_multi_directory, print_sysroot,
11190         print_multi_os_directory, print_multi_lib,
11191         print_sysroot_headers_suffix, report_times, combine_flag,
11192         use_pipes, wrapper_string): Remove.
11193         (save_switch, driver_unknown_option_callback,
11194         driver_wrong_lang_callback, driver_post_handling_callback,
11195         driver_handle_option): New.
11196         (spec_lang, last_language_n_infiles): Make file-scope static
11197         instead of local to process_command.
11198         (process_command): Use decode_cmdline_options_to_array and
11199         read_cmdline_option for option processing.  Compute have_c in
11200         prescan of decoded options.
11201         * opt-functions.awk (switch_flags): Handle Driver and
11202         RejectDriver.
11203         (var_type, var_type_struct): Handle Separate options as generating
11204         const char * variables.
11205         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
11206         CL_TARGET to be passed by caller if required.
11207         (decode_cmdline_options_to_array): Update comment.
11208         * opts.c (complain_wrong_lang): Handle options only valid for the
11209         driver.
11210         (decode_options): Update call to decode_cmdline_options_to_array.
11211         (print_filtered_help): Ignore driver-only options.
11212         (print_specific_help): Ignore CL_DRIVER.
11213         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
11214         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
11215         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
11216         Update values.
11217
11218 2010-08-16  Richard Guenther  <rguenther@suse.de>
11219
11220         * tree-cfg.c (verify_types_in_gimple_reference): Verify
11221         TARGET_MEM_REF a bit.
11222         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
11223         (create_mem_ref_raw): Always create TMR_OFFSET, store the
11224         alias pointer type via it.
11225         (copy_mem_ref_info): Adjust.
11226         (maybe_fold_tmr): Likewise.
11227         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
11228         (reference_alias_ptr_type): Likewise.
11229         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
11230         adjust documentation of TMR_OFFSET operand.
11231         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
11232         use the alias pointer type.
11233         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
11234         initialize mem attrs but the TMR itself.
11235         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
11236         similar to MEM_REF.
11237         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
11238         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
11239         (unshare_and_remove_ssa_names): Likewise.
11240         (copy_ref_info): Adjust.
11241         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
11242         TARGET_MEM_REF case.
11243         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
11244         at TMR_ORIGINAL.
11245         * tree.h (TMR_ORIGINAL): Remove.
11246         * gimple.c (get_base_address): For TARGET_MEM_REF with a
11247         symbol return that.
11248         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
11249         with a symbol.
11250         (get_addr_base_and_unit_offset): Likewise.
11251         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
11252         TARGET_MEM_REFs.
11253         (indirect_ref_may_alias_decl_p): Likewise.
11254         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
11255
11256 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
11257
11258         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
11259         with GCC version 4.6, the default setting (when not optimizing
11260         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
11261         been changed to -fomit-frame-pointer.
11262
11263 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
11264
11265         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
11266         Darwin10.  Do not link libgcc.a for Darwin >= 9.
11267
11268 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
11269
11270         * doc/invoke.texi (Warning Options): Fix terminology and markup
11271         in the description of how unknown warning options are handled.
11272
11273 2010-08-15  Ira Rosen  <irar@il.ibm.com>
11274
11275         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
11276         in basic blocks.
11277         (vect_supportable_dr_alignment): Check alignment for basic blocks.
11278         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
11279         data references.
11280         (vect_bb_vectorization_profitable_p): New function.
11281         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
11282         check if it's worthwhile to vectorize the basic block.
11283
11284 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
11285
11286         * reload.h (register_move_cost, memory_move_secondary_cost,
11287         secondary_reload_class): Adjust prototype.
11288         * rtl.h (reg_class_subset_p): Adjust prototype.
11289         * reload.c (secondary_reload_class): Change arguments type from
11290         enum reg_class to reg_class_t. Change result type to reg_class_t.
11291         * reginfo.c (register_move_cost, reg_class_subset_p): Change
11292         arguments type from enum reg_class to reg_class_t.
11293         (memory_move_secondary_cost): Change arguments type from
11294         enum reg_class to reg_class_t. Change type of saved_flags to
11295         reg_class_t.
11296
11297         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11298         Remove macros.
11299         (mips_cost): Remove.
11300         (struct mips_rtx_cost_data): Moved to mips.c.
11301         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
11302         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
11303         (mips_cost): Make static.
11304         (mips_canonicalize_move_class): Change argument type to reg_class_t.
11305         Change result type to reg_class_t.
11306         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
11307         type from enum reg_class to reg_class_t.
11308         (mips_register_move_cost): Make static. Change arguments
11309         type from enum reg_class to reg_class_t.
11310         (mips_memory_move_cost): New function.
11311         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11312
11313 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
11314
11315         PR rtl-optimization/43358
11316         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
11317         of a single hard register, using simplify_subreg_regno to decide
11318         what that register should be.
11319
11320 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
11321
11322         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
11323         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
11324         (loongson_pmull<V_suffix>): Rename to...
11325         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
11326
11327 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
11328
11329         * configure.ac: Enable -fomit-frame-pointer on darwin
11330         which support dwarf2.
11331         * config/i386/i386.c (override_options): Same.
11332
11333 2010-08-13  Jie Zhang  <jie@codesourcery.com>
11334
11335         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
11336
11337 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
11338
11339         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
11340         -MMD.
11341
11342 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
11343
11344         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
11345         up dot_prod pattern searching if a stmt is outside the loop.
11346
11347 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11348             Uros Bizjak  <ubizjak@gmail.com>
11349
11350         * config.gcc: Handle --enable-frame-pointer.
11351
11352         * configure.ac: Add --enable-frame-pointer.
11353         * configure: Regenerated.
11354
11355         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
11356         (override_options): If not configured with --enable-frame-pointer,
11357         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
11358         optimizing for size), -fasynchronous-unwind-tables and
11359         -maccumulate-outgoing-args by default.
11360
11361 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
11362
11363         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
11364
11365         PR middle-end/45262
11366         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
11367         -a overflows.  Normalize the range.
11368
11369 2010-08-12  Richard Guenther  <rguenther@suse.de>
11370
11371         PR tree-optimization/45232
11372         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
11373         for types with undefined overflow.
11374         (reassociate_bb): Allow re-associating of bit and min/max
11375         operations for types with undefined overflow.
11376         * tree-ssa-forwprop.c (associate_plusminus): New function.
11377         (tree_ssa_forward_propagate_single_use_vars): Call it.
11378
11379 2010-08-12  Richard Guenther  <rguenther@suse.de>
11380
11381         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
11382         * tree-ssa-alias.c (get_ptr_info): Move ...
11383         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
11384         align and misalign fields conservatively.
11385         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
11386         derive alignment information.
11387         (evaluate_stmt): Derive alignment information from memory
11388         allocation functions.
11389         * tree.h (get_pointer_alignment): Make unsigned.
11390         * builtins.c (get_object_alignment): Use alignment information we
11391         have computed for pointers.
11392         (get_pointer_alignment): Likewise.  Make conservative, return
11393         and unsigned value.
11394         (expand_builtin_strlen): Adjust.
11395         (expand_builtin_memcmp): Likewise.
11396         (expand_builtin_strcmp): Likewise.
11397         (expand_builtin_strncmp): Likewise.
11398         (get_builtin_sync_mem): Use at least mode alignment.
11399         (fold_builtin_memset): Adjust.
11400         (fold_builtin_memory_op): Likewise.
11401         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
11402         information also dump pointer alignment knowledge.
11403         (dump_gimple_stmt): Likewise.
11404
11405 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
11406
11407         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
11408         (EMPTY_FIELD_BOUNDARY): Remove.
11409         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
11410
11411 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
11412
11413         PR debug/45259
11414         * caller-save.c (save_call_clobbered_regs): Only swap notes with
11415         DEBUG_INSNs if n_regs_saved.
11416
11417 2010-08-12  Wei Guozhi  <carrot@google.com>
11418
11419         PR target/44999
11420         * config/arm/arm.md (andsi3): Change to zero extension if possible.
11421         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
11422
11423 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
11424
11425         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
11426
11427         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
11428
11429 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11430
11431         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
11432         the case removed in the previous patch, when the only phi argument
11433         is defined in the same loop as the phi node itself.  Handle it
11434         separately from the invariant case by both propagating it outside
11435         the region and replacing the phi node with an assign.
11436
11437 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11438
11439         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
11440         constant phi nodes with one argument are is_gimple_min_invariant
11441         and SSA_NAME_IS_DEFAULT_DEF.
11442
11443 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11444
11445         * graphite-cloog-util.c (oppose_constraint):
11446         Extend loop counter's value range (CLOOG_ORG).
11447         (cloog_matrix_to_ppl_constraint): Same.
11448         (new_Constraint_System_from_Cloog_matrix): Same.
11449         * graphite-cloog-compat.h (matrix_num_type): New.
11450
11451 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11452
11453         * graphite.c (graphite_initialize): Do not initialize
11454         CLooG and initialize the Parma Polyhedra Library
11455         manually when using CLOOG_ORG.
11456         (graphite_finalize): Do not finalize CLooG and finalize
11457         the Parma Polyhedra Library manually when using CLOOG_ORG.
11458         * graphite-cloog-compat.h (cloog_initialize): Hide function
11459         when using CLOOG_ORG.
11460         (cloog_finalize): Same.
11461
11462 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11463
11464         * graphite-clast-to-gimple.c (free_scattering): Change
11465         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
11466         (CLOOG_ORG).
11467         (build_cloog_prog): Same.
11468         * graphite-cloog-compat.h (cloog_domain): Removed.
11469         (cloog_scattering): New.
11470         (cloog_set_domain): Removed.
11471         (cloog_set_scattering): New.
11472         (cloog_next_domain): Removed.
11473         (cloog_next_scattering): New.
11474         (cloog_set_next_domain): Removed.
11475         (cloog_set_next_scattering): New.
11476         (CloogScatteringList): New.
11477         (CloogScattering): New.
11478         (cloog_scattering_free): New.
11479         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
11480         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
11481         New.
11482
11483 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11484
11485         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
11486         CloogState.
11487         (set_cloog_options): Same.
11488         (print_clast_stmt): Same.
11489         (scop_to_clast): Same.
11490         (print_generated_program): Same.
11491         (gloog): Same.
11492         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
11493         (scop_to_clast): Extend with CloogState.
11494         * graphite-cloog-util.c: Include graphite-cloog-compat.h
11495         (new_Cloog_Domain_from_ppl_Polyhedron):
11496         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
11497         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
11498         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11499         * graphite-cloog-util.h (build_cloog_prog): Same.
11500         * graphite-cloog-copat.h (build_cloog_prog): New.
11501         (CloogState): New.
11502         (cloog_state_malloc): New.
11503         (cloog_state_free): New.
11504         (cloog_loop_malloc): New.
11505         (cloog_options_malloc): New.
11506         (cloog_statement_alloc): New.
11507         (cloog_domain_from_cloog_matrix): New.
11508         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
11509         (new_Cloog_Domain_from_ppl_Polyhedron): New.
11510
11511 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11512
11513         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
11514         type of NAME now depends on used CLooG version.
11515         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
11516         (gcc_type_for_clast_expr): Same.
11517         (print_clast_stmt): Replace pprint with clast_pprint.
11518         * graphite-cloog-compat.h: Provide compatibility macros for
11519         CLooG Legacy.
11520         (clast_name_p): New.
11521         (clast_expr_term): New.
11522         (clast_expr_red): New.
11523         (clast_expr_bin): New.
11524         (clast_pprint): New.
11525
11526 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11527
11528         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
11529         compatible to newer CLooG releases (CLOOG_ORG).
11530         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
11531         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
11532         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
11533         (build_cloog_prog) : New.
11534         (cloog_program_extract_scalars): New.
11535         (cloog_program_scatter): New.
11536
11537 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11538
11539         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
11540         conditionally (CLOOG_ORG).
11541         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
11542         (cloog_statement_usr): New.
11543         (cloog_domain): Same.
11544         (cloog_set_domain): Same.
11545         (cloog_next_domain): Same.
11546         (cloog_set_next_domain): Same.
11547         (cloog_program_nb_scattdims): Same.
11548         (cloog_program_set_nb_scattdims): Same.
11549         (cloog_program_names): Same.
11550         (cloog_program_set_names): Same.
11551         (cloog_program_set_context): Same.
11552         (cloog_program_set_loop): Same.
11553         (cloog_program_blocklist): Same.
11554         (cloog_program_set_blocklist): Same.
11555         (cloog_program_scaldims): Same.
11556         (cloog_program_set_scaldims): Same.
11557         (cloog_names_nb_parameters): Same.
11558         (cloog_names_set_nb_parameters): Same.
11559         (cloog_names_parameters): Same.
11560         (cloog_names_set_parameters): Same.
11561         (cloog_names_set_nb_iterators): Same.
11562         (cloog_names_set_iterators): Same.
11563         (cloog_names_set_nb_scattering): Same.
11564         (cloog_names_set_scattering): Same.
11565         (cloog_statement_set_usr): Same.
11566         (cloog_loop_set_next): Same.
11567         (cloog_loop_set_domain): Same.
11568         (cloog_loop_set_block): Same.
11569         (cloog_block_list_next): Same.
11570         (cloog_block_list_set_next):
11571         (cloog_block_list_set_block): Same.
11572
11573 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11574
11575         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
11576         a bool.
11577         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
11578         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
11579         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
11580         when something has been changed.
11581         (rewrite_commutative_reductions_out_of_ssa): Same.
11582
11583 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11584
11585         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
11586         handle the case when def is in the sese region.
11587         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
11588         for invariant expressions.
11589         (rewrite_cross_bb_phi_deps): Removed.
11590         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
11591         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
11592         rewrite_cross_bb_phi_deps.
11593
11594 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11595
11596         * graphite-sese-to-poly.c
11597         (rewrite_commutative_reductions_out_of_ssa_loop): Call
11598         scev_analyzable_p only on is_gimple_reg
11599
11600 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11601
11602         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
11603         (rewrite_close_phi_out_of_ssa): Propagate constant values or
11604         parametric expressions outside the scop region.
11605         (rewrite_cross_bb_scalar_deps): Same.
11606         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
11607
11608 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11609
11610         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
11611         SSA_NAME_DEF_STMT only on SSA_NAMEs.
11612
11613 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11614
11615         * tree-scalar-evolution.c (instantiate_scev_name): Do not
11616         instantiate default definitions.
11617
11618 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
11619             Sebastian Pop  <sebastian.pop@amd.com>
11620
11621         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
11622         (loop_exits_from_bb_p): New.
11623         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
11624         (loop_exits_from_bb_p): Declared.
11625         * graphite-scop-detection.c (scopdet_basic_block_info): Call
11626         loop_exits_to_bb_p.
11627
11628 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11629
11630         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
11631         extra parameter for the region.  Call scev_analyzable_p.
11632         (rewrite_reductions_out_of_ssa): Update call to
11633         rewrite_close_phi_out_of_ssa.
11634         (rewrite_cross_bb_phi_deps): Same.
11635         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
11636         parameter for the region.  Call scev_analyzable_p.
11637         (rewrite_commutative_reductions_out_of_ssa): Update call to
11638         rewrite_commutative_reductions_out_of_ssa_loop.
11639
11640 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11641
11642         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
11643
11644 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11645
11646         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
11647         SSA scalar phi nodes that can be scev_analyzable_p.
11648
11649 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11650
11651         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
11652         handle SSA_NAME_IS_DEFAULT_DEF.
11653
11654 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11655
11656         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
11657
11658 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11659
11660         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
11661         case non close-phi nodes with one argument.
11662
11663 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11664
11665         * sese.h (scev_analyzable_p): Scevs could be expressions without
11666         chrecs and still be scev_analyzable_p.
11667
11668 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11669
11670         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11671
11672 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11673
11674         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
11675         * cfgloop.h (struct loop): Remove single_iv field.
11676         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
11677         (scop_canonicalize_loops): Removed.
11678         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
11679         over all the loop phi nodes in loop->header.
11680         (build_poly_scop): Remove use of scop_canonicalize_loops.
11681
11682 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11683
11684         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
11685         handle GIMPLE_CALL.
11686
11687 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11688
11689         * tree-chrec.c (chrec_apply): Should only apply to the specified
11690         variable.  Also handle multivariate chains of recurrences that
11691         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
11692
11693 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11694
11695         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
11696         (debug_clast_name_indexes_1): Removed.
11697         (debug_clast_name_indexes): Removed.
11698         (pbb_to_depth_to_oldiv): Removed.
11699         (build_iv_mapping): Replace the use of rename_map with iv_map.
11700         (translate_clast_user): Remove uses of rename_map.  Allocate and
11701         free iv_map.
11702         (translate_clast_for_loop): Remove uses of rename_map.
11703         (translate_clast_for): Same.
11704         (translate_clast_guard): Same.
11705         (translate_clast): Same.
11706         (gloog): Same.
11707         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
11708         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
11709         * sese.c (set_rename): Now static.
11710         (rename_variables_in_stmt): Removed.
11711         (rename_uses): New.
11712         (is_parameter): Removed.
11713         (is_iv): Removed.
11714         (expand_scalar_variables_call): Removed.
11715         (expand_scalar_variables_ssa_name): Removed.
11716         (expand_scalar_variables_expr): Removed.
11717         (expand_scalar_variables_stmt): Removed.
11718         (expand_scalar_variables): Removed.
11719         (rename_variables): Removed.
11720         (remove_condition): Removed.
11721         (get_true_edge_from_guard_bb): Removed.
11722         (get_false_edge_from_guard_bb): Removed.
11723         (struct igp): Removed.
11724         (default_before_guard): Removed.
11725         (convert_for_phi_arg): Removed.
11726         (add_guard_exit_phis): Removed.
11727         (insert_guard_phis): Removed.
11728         (graphite_copy_stmts_from_block): Now also uses iv_map and a
11729         region.  Do not copy conditions.  Do not copy induction variables.
11730         Call rename_uses.
11731         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
11732         the translated statement.  Use the iv_map for the induction
11733         variable renaming.
11734         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
11735         (set_rename): Removed declaration.
11736         (scev_analyzable_p): ...here.
11737         * tree-chrec.c (chrec_apply_map): New.
11738         * tree-chrec.h (chrec_apply_map): Declared.
11739
11740 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11741
11742         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
11743         insert_loop_close_phis.
11744         * sese.c (name_defined_in_loop_p): Removed.
11745         (expr_defined_in_loop_p): Removed.
11746         (alive_after_loop): Removed.
11747         (close_phi_not_yet_inserted_p): Removed.
11748         (struct alep): Removed.
11749         (add_loop_exit_phis): Removed.
11750         (insert_loop_close_phis): Removed.
11751
11752 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11753
11754         * graphite-cloog-util.c
11755         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
11756         * graphite-poly.c
11757         (psct_scattering_dim_for_loop_depth): Same.
11758
11759 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11760
11761         * graphite-cloog-util.h: Added cloog.h.
11762         * graphite-blocking.c: Removed cloog.h.
11763         * graphite-dependences.c: Same.
11764         * graphite-interchange.c: Same.
11765         * graphite-poly.c: Same.
11766         * graphite-ppl.c: Same.
11767         * graphite-scop-detection.c: Same.
11768         * graphite-sese-to-poly.c:
11769         Removed cloog.h.
11770         Removed graphite-clast-to-gimple.h.
11771         (check_poly_representation): Removed (unused).
11772         * graphite-sese-to-poly.h
11773         (check_poly_representation): Removed (unused).
11774
11775 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11776
11777         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
11778         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
11779         (graphite-cloog-util.o): New.
11780         (graphite-ppl.o): Added graphite-cloog-util.h.
11781         * graphite-clast-to-gimple.c:
11782         Added graphite-cloog-util.h to include statements.
11783         * graphite-cloog-util.c: New.
11784         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
11785         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11786         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11787         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11788         (insert_constraint_into_matrix): Same.
11789         (ppl_Constrain_System_number_of_constraints): Same.
11790         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11791         (oppose_constraint): Same.
11792         (cloog_matrix_to_ppl_constraint): Same.
11793         (new_Constraint_System_from_Cloog_Matrix): Same.
11794         * graphite-cloog-util.h: New.
11795         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
11796         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11797         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11798         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11799         (insert_constraint_into_matrix): Same.
11800         * graphite-ppl.c:
11801         Added graphite-cloog-util.h to include statements.
11802         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
11803         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11804         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11805         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11806         (insert_constraint_into_matrix): Same.
11807         (ppl_Constrain_System_number_of_constraints): Same.
11808         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11809         (oppose_constraint): Same.
11810         (cloog_matrix_to_ppl_constraint): Same.
11811         (new_Constraint_System_from_Cloog_Matrix): Same.
11812         * graphite-ppl.h:
11813         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
11814         graphite-cloog-util.h.
11815         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11816         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11817         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11818         (insert_constraint_into_matrix): Same.
11819
11820 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11821
11822         * graphite-clast-to-gimple.c
11823         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
11824         (precision_for_interval): Same.
11825         (gcc_type_for_interval): Same.
11826         (compute_type_for_level): Same.
11827         * graphite-interchange.c
11828         (lst_interchange_profitable_p): Same.
11829         * graphite-poly.c
11830         (psct_scattering_dim_for_loop_depth): Same.
11831         * graphite-ppl.c
11832         (ppl_max_for_le_pointset): Same.
11833         (ppl_min_for_le_pointset): Same.
11834
11835 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11836
11837         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
11838         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
11839
11840 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11841
11842         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
11843         rewrite_close_phi_out_of_ssa.
11844
11845 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11846
11847         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
11848
11849 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11850
11851         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
11852         rename_map.
11853         * sese.c (debug_rename_map): Same.
11854         (get_rename): Same.
11855         (set_rename): Same.
11856         (rename_variables_in_stmt): Same.
11857         (expand_scalar_variables_call): Same.
11858         (expand_scalar_variables_ssa_name): Same.
11859         (expand_scalar_variables_expr): Same.
11860         (expand_scalar_variables_stmt): Same.
11861         (expand_scalar_variables): Same.
11862         (rename_variables): Same.
11863         (graphite_copy_stmts_from_block): Same.
11864         (copy_bb_and_scalar_dependences): Same.
11865
11866 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11867
11868         * graphite-clast-to-gimple.c (copy_renames): Removed.
11869         (translate_clast_for): Do not call copy_renames.
11870         (translate_clast_guard): Same.
11871
11872 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11873
11874         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
11875         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
11876         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
11877         before rewrite_cross_bb_scalar_deps.
11878
11879 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11880
11881         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
11882         Early return in when flag_associative_math is not set.
11883
11884 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11885
11886         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
11887         of SSA copies on edges except for loop->latch.
11888
11889 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11890
11891         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
11892         Split out of rewrite_reductions_out_of_ssa.
11893         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
11894         Declared.
11895         * graphite.c (graphite_transform_loops): Call it.
11896
11897 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11898
11899         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
11900
11901 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
11902
11903         * dbgcnt.def (graphite_scop): New counter.
11904         * graphite.c: Include dbgcnt.h.
11905         (graphite_transform_loops): Use new counter to limit transformations.
11906         * Makefile.in (graphite.o): Depend on DBGCNT_H.
11907
11908 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11909
11910         * passes.c (init_optimization_passes): Add pass_graphite.
11911         Schedule a pass_copy_prop before pass_graphite_transforms.
11912         * timevar.def (TV_GRAPHITE): Declared.
11913         * tree-pass.h (pass_graphite): Declared.
11914         * tree-ssa-loop.c (pass_graphite): New.
11915
11916 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11917
11918         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
11919         Remove calls to rename_nb_iterations and rename_sese_parameters.
11920         * graphite-clast-to-gimple.h (gloog): Update declaration.
11921         * graphite.c (graphite_transform_loops): Update call to gloog.
11922         * sese.c (rename_variables_in_expr): Removed.
11923         (rename_nb_iterations): Removed.
11924         (rename_sese_parameters): Removed.
11925         * sese.h (rename_nb_iterations): Removed.
11926         (rename_sese_parameters): Removed.
11927
11928 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11929
11930         * graphite-clast-to-gimple.c (gloog): Remove call to
11931         sese_adjust_liveout_phis.
11932         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
11933         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
11934         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
11935         rewrite_phi_out_of_ssa.
11936         * sese.c (get_vdef_before_sese): Removed.
11937         (sese_adjust_vphi): Removed.
11938         (sese_adjust_liveout_phis): Removed.
11939         * sese.h (sese_adjust_liveout_phis): Removed.
11940
11941 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11942
11943         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
11944         argument for the place after which to insert the out of SSA copy.
11945         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
11946         (rewrite_phi_out_of_ssa): Same.
11947         (rewrite_cross_bb_scalar_deps): Same.
11948         (insert_copyout): Removed.
11949         (insert_copyin): Removed.
11950         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
11951         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
11952         insert_copyin.
11953
11954 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11955
11956         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
11957         (rewrite_reductions_out_of_ssa): Same.
11958         (rewrite_commutative_reductions_out_of_ssa): Same.
11959         (build_poly_scop): Do not call these functions.
11960         * graphite-sese-to-poly.h (build_poly_scop): Declared.
11961         (rewrite_reductions_out_of_ssa): Declared.
11962         (rewrite_commutative_reductions_out_of_ssa): Declared.
11963         * graphite.c (graphite_transform_loops): Call on every scop
11964         rewrite_commutative_reductions_out_of_ssa before calling
11965         rewrite_reductions_out_of_ssa and build_scop_bbs.
11966
11967 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11968
11969         * graphite-dependences.c (dot_deps): Make system call to dotty run
11970         in background.
11971         (dot_deps_stmt): Same.
11972         * graphite-poly.c (dot_lst): Same.
11973
11974 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11975
11976         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
11977         phi_arg_in_outermost_loop.
11978         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
11979         (remove_invariant_phi): Same.
11980
11981 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
11982
11983         * target.def (output_addr_const_extra): New hook.
11984         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
11985         * doc/tm.texi: Regenerate.
11986         * targhooks.c (default_asm_output_addr_const_extra): New function.
11987         * targhooks.h (default_asm_output_addr_const_extra): Declare.
11988         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
11989         target hook.
11990
11991         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11992         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
11993         * config/i386/i386.h (output_addr_const_extra): Rename to...
11994         (i386_asm_output_addr_const_extra): ...this. Make static.
11995         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11996
11997 2010-08-11  Richard Henderson  <rth@redhat.com>
11998
11999         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
12000
12001 2010-08-11  Nick Clifton  <nickc@redhat.com>
12002
12003         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
12004         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
12005         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12006         stormy16-lib2-cmpsi.c.
12007
12008         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
12009         -O2.
12010
12011 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
12012
12013         * opts.h (struct cl_option_handler_func): Make handler take
12014         cl_decoded_option structure as parameter, not individual elements.
12015         (struct cl_option_handlers): Make callbacks take cl_decoded_option
12016         structure as parameter, not individual elements.
12017         (handle_option): Take cl_decoded_option structure as parameter,
12018         not individual elements.
12019         (handle_generated_option): Declare.
12020         * opts-common.c (handle_option): Take cl_decoded_option structure
12021         as parameter, not individual elements.  Update calls to callback
12022         and handler functions.
12023         (handle_generated_option): New.
12024         (read_cmdline_option): Update calls to callback functions and
12025         handle_option.
12026         * opts.c (common_handle_option, complain_wrong_lang,
12027         unknown_option_callback, post_handling_callback,
12028         lang_handle_option, target_handle_option): Take cl_decoded_option
12029         structure as parameter, not individual elements.
12030         (lang_handle_option, target_handle_option, common_handle_option):
12031         Assert option has at most one argument.
12032         (enable_warning_as_error): Call handle_generated_option instead of
12033         handle_option.  Do not pass -Werror argument as argument of
12034         generated option.
12035
12036 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12037
12038         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
12039         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
12040         (SUBWORD_BOOL_CAS): Likewise.
12041         (SUBWORD_SYNC_OP): Likewise.
12042         (SUBWORD_TEST_AND_SET): Likewise.
12043         (FETCH_AND_OP_WORD): Parenthesise INF_OP
12044         (SUBWORD_SYNC_OP): Likewise.
12045         (OP_AND_FETCH_WORD): Likewise.
12046
12047 2010-08-10  Xinliang David Li  <davidxl@google.com>
12048
12049         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
12050         compute max/min offset in address.
12051
12052 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
12053
12054         * ira-live.c: Include sbitmap.h.
12055         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
12056         Compress live ranges even more.
12057
12058 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
12059
12060         * coverage.c (ctr_labels): Delete.
12061
12062 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
12063
12064         PR bootstrap/45177
12065         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
12066         test here from arm_gen_load_multiple_1.
12067         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
12068         multiple_operation_profitable_p.
12069
12070 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
12071
12072         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
12073         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
12074
12075 2010-08-10  Richard Henderson  <rth@redhat.com>
12076
12077         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
12078         after saving registers.  Assert that SSE registers are only saved
12079         with a sufficiently aligned frame.
12080         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
12081         remove stack_realign_fp handling.
12082         (ix86_expand_prologue): Save int registers before stack_realign_fp,
12083         and do not mark the stack alignment as frame related.
12084         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
12085
12086         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
12087         saves when re-aligning the stack.
12088
12089 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
12090
12091         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
12092         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
12093         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
12094
12095 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
12096
12097         * dwarf2out.c (struct die_struct): Move die_tag to the end.
12098
12099 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
12100
12101         * config/arm/iterators.md: New file.
12102         * config/arm/arm.md: Include iterators.md.
12103         (QHSI): Move to new file.
12104         (LTUGEU, cnb, optab, ior_xor): Likewise.
12105         * config/arm/iwmmxt.md (VMMX): Move to new file.
12106         (VSHFT, MMX_char): Likewise.
12107         * config/arm/neon.md (VD): Move to new file.
12108         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
12109         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
12110         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
12111         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
12112         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
12113         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
12114         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
12115         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
12116         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
12117         (Is_d_reg, V_mode_nunits): Likewise.
12118         * config/arm/vec-common.md (VALL): Move to new file.
12119         (VALLW, VINT, VINTW): Likewise.
12120
12121 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
12122
12123         PR middle-end/45182
12124         * combine.c (make_compound_operation): Don't try to convert
12125         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
12126
12127 2010-08-10  Richard Guenther  <rguenther@suse.de>
12128
12129         * tree.h (get_object_alignment): Adjust prototype.
12130         * builtins.c (get_object_alignment): Return unsigned int,
12131         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
12132         and TARGET_MEM_REF properly.
12133         (get_pointer_alignment): Adjust.
12134         * emit-rtl.c (get_mem_align_offset): Adjust comment.
12135         (set_mem_attributes_minus_bitpos): Adjust.
12136         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
12137
12138 2010-08-10  Richard Guenther  <rguenther@suse.de>
12139
12140         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
12141         (copy_prop_visit_assignment): Simplify.
12142         (copy_prop_visit_stmt): Also visit assignments from
12143         constants.
12144         (copy_prop_visit_phi_node): Use operand_equal_p.
12145
12146 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
12147
12148         * ipa-split.c (find_split_points): Free stack.
12149
12150 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
12151
12152         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
12153         * tree.c (tree_node_kind): Delete corresponding entries.
12154
12155 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
12156
12157         * alias.c (may_alias_p): Remove unused ret.
12158
12159 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
12160
12161         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
12162         alias_sets_conflict_p.
12163         (walk_mems_1): Moved from alias.c.
12164         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
12165         in alias.c.
12166         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
12167         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
12168         * alias.c (walk_mems_2): Moved to ddg.c.
12169         (walk_mems_1): Ditto.
12170         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
12171         to ddg.c.
12172         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
12173         disambiguation.
12174         *(may_alias_p): New function to check whether two memory expression
12175         may alias or not. Currently used in buidling inter-iteration memory
12176         dependence.
12177         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
12178         (insn_alias_sets_conflict_p): Removed
12179         *rtl.h (may_alias_p): New function prototype.
12180
12181 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
12182
12183         * tree.c (nreverse): Assert that we don't have a BLOCK.
12184
12185 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
12186
12187         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
12188         * config/arm/arm.c (arm_get_pcs_model): Likewise.
12189         * config/avr/avr.c (init_cumulative_args): Likewise.
12190         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
12191         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12192         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
12193         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
12194         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
12195         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
12196         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
12197         * dwarf2out.c (gen_subprogram_die): Likewise.
12198         * function.c (allocate_struct_function): Likewise.
12199         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
12200         (deserves_ellipsis): Delete.
12201
12202 2010-08-09  Richard Guenther  <rguenther@suse.de>
12203
12204         * tree-ssa-copy.c (cached_last_copy_of): Remove.
12205         (valueize_val): New function.
12206         (get_last_copy_of): Remove.
12207         (set_copy_of_val): Simplify.
12208         (dump_copy_of): Likewise.
12209         (copy_prop_visit_cond_stmt): Use valueize_val.
12210         (copy_prop_visit_phi_node): Properly handle unvisited names.
12211         Drop code managing copy-of chains.
12212         (init_copy_prop): Adjust.
12213         (fini_copy_prop): Likewise.
12214         (execute_copy_prop): Remove obsolete comment.
12215
12216 2010-08-09  Richard Guenther  <rguenther@suse.de>
12217
12218         PR middle-end/44632
12219         * function.c (gimplify_parameters): Do not clear addressable
12220         bit of the original parameter.
12221
12222 2010-08-09  Richard Guenther  <rguenther@suse.de>
12223
12224         PR middle-end/45212
12225         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
12226         alignment from MEM_REF offset only if we took it from the
12227         base object.
12228
12229 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
12230
12231         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
12232
12233 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
12234
12235         * c-tree.h (build_arg_info): Declare.
12236         * c-decl.c (build_arg_info): Define.
12237         (get_parm_info): Call it.  Delete initialization code.
12238         * c-parser.c (c_parser_parms_declarator): Likewise.
12239         (c_parser_parms_list_declaractor): Likewise.
12240
12241 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
12242
12243         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
12244         (struct c_arg_info): Change type of tags field.
12245         * c-decl.c (grokdeclarator): Update for changed type of tags field.
12246         (get_parm_info): Likewise.
12247         (store_parm_decls_newstyle): Likewise.
12248
12249 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
12250
12251         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
12252         (branch_island_list): Delete.
12253         (branch_islands): Declare.
12254         (add_compiler_branch_island): Adjust for branch_islands instead of
12255         branch_island_list.
12256         (macho_branch_islands): Likewise.
12257         (no_previous_def): Likewise.
12258         (get_prev_label): Likewise.
12259
12260 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12261
12262         PR boehm-gc/34544
12263         * gthr-posix.h (__gthread_start): Delete.
12264         (__gthread_active_init): Use pthread_default_stacksize_np instead of
12265         pthread_create to determine if hpux pthreads are active.
12266         * gthr-posix95.h (__gthread_start): Delete.
12267         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
12268
12269 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
12270
12271         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
12272         _WIN64 not expanded.
12273
12274 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
12275             H.J. Lu  <hongjiu.lu@intel.com>
12276
12277         PR target/45213
12278         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
12279         to output 32bit SFmode immediate as 8 byte sign extended value.
12280
12281 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12282
12283         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
12284         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
12285         (SUBWORD_BOOL_CAS): Likewise.
12286         (SUBWORD_SYNC_OP): Likewise.
12287         (SUBWORD_TEST_AND_SET): Likewise.
12288         (FETCH_AND_OP_WORD): Parenthesise INF_OP
12289         (SUBWORD_SYNC_OP): Likewise.
12290         (OP_AND_FETCH_WORD): Likewise.
12291
12292 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12293
12294         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
12295         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
12296         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
12297         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
12298         generic part.
12299         (cortex_a9_sched_adjust_cost): New function.
12300         (xscale_sched_adjust_cost): New function.
12301         * config/arm/arm-protos.h (struct tune_params): New field
12302         sched_adjust_cost.
12303         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
12304
12305 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
12306
12307         PR target/44942
12308         * config/sparc/sparc.c (function_arg_advance): Always take into account
12309         the padding, if any.
12310
12311 2010-08-06  Richard Guenther  <rguenther@suse.de>
12312
12313         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
12314         (dump_lattice_value): Dump it.
12315         (get_default_value): Adjust.
12316         (get_constant_value): Likewise.
12317         (set_value_varying): Likewise.
12318         (set_lattice_value): Make sure to not go up the lattice
12319         with bitwise constant values.
12320         (get_value_for_expr): Handle ADDR_EXPRs.
12321         (value_to_double_int): New function.
12322         (get_value_from_alignment): Likewise.
12323         (do_dbg_cnt): Adjust.
12324         (ccp_lattice_meet): Handle partially constant values.
12325         (bit_value_unop_1): New function.
12326         (bit_value_binop_1): Likewise.
12327         (bit_value_unop): Likewise.
12328         (bit_value_binop): Likewise.
12329         (evaluate_stmt): Track partially constant values if
12330         flag_tree_bit_ccp is set.
12331         (ccp_fold_stmt): Dump if we folded a predicate.
12332         (ccp_visit_stmt): Adjust.
12333         * common.opt (ftree-bit-ccp): New flag.
12334         * doc/invoke.texi (ftree-bit-ccp): Document.
12335         * opts.c (decode_options): Enable bit-CCP at -O1.
12336
12337 2010-08-06  Alan Modra  <amodra@gmail.com>
12338
12339         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
12340         and -mrelocatable-lib description.
12341
12342 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
12343
12344         From Martin Thuresson  <martint@google.com>
12345         * postreload.c (reload_cse_simplify_operands): Use
12346         SET_REGNO_RAW instead of SET_REGNO.
12347         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
12348         SET_REGNO.
12349         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
12350         instead of SET_REGNO.
12351         * rtl.h (SET_REGNO_RAW): New macro.
12352
12353 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
12354
12355         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
12356         computations.  Fix formatting issues.
12357         (num_sign_bit_copies1): Likewise.
12358         (canonicalize_condition): Likewise.
12359
12360 2010-08-05  Richard Henderson  <rth@redhat.com>
12361
12362         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
12363         (floor_log2): Use clz_hwi.
12364         (exact_log2): Use ctz_hwi.
12365         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
12366         * builtins.c (fold_builtin_bitop): Use them.
12367         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12368         * combine.c (get_pos_from_mask): Use ctz_hwi.
12369         * double-int.c (double_int_ctz): Likewise.
12370         * explow.c (force_reg): Likewise.
12371         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
12372
12373 2010-08-05  Richard Henderson  <rth@redhat.com>
12374
12375         PR target/45189
12376         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
12377         the alignment constant is properly sign-extended.
12378
12379 2010-08-05  Richard Guenther  <rguenther@suse.de>
12380
12381         * expr.c (store_expr): Use emit_block_move only if both
12382         source and target are MEMs.  Use store_bit_field if only
12383         the target is a MEM.
12384
12385 2010-08-05  Richard Henderson  <rth@redhat.com>
12386
12387         PR debug/45188
12388         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
12389         (INCOMING_RETURN_ADDR_RTX): Likewise.
12390         (dwarf2out_do_frame): Remove conditional compilation.
12391         (dwarf2out_frame_init): Likewise.
12392
12393 2010-08-05  Nicolas Setton  <setton@adacore.com>
12394
12395         * gcov.c (flag_display_progress): New static variable.
12396         (main): Display progress info on standard output if requested.
12397         (options): Add -d/--display-progress.
12398         (print_usage): Print them.
12399         (process_args): Handle them.
12400         * doc/gcov.texi: Document them.
12401
12402 2010-08-05  Martin Jambor  <mjambor@suse.cz>
12403
12404         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
12405         (ipcp_insert_stage): Redirect only edges not flagged with
12406         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
12407         discovered constants.
12408
12409 2010-08-05  Martin Jambor  <mjambor@suse.cz>
12410
12411         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
12412         (struct ipa_param_descriptor): New fields types and
12413         cannot_devirtualize.
12414         (ipa_param_cannot_devirtualize_p): New function.
12415         (ipa_param_types_vec_empty): Likewise.
12416         (ipa_make_edge_direct_to_target): Declare.
12417         * ipa-cp.c: Fixed first stage driver name in initial comment,
12418         described devirtualization there too.
12419         (ipcp_analyze_node): Call ipa_analyze_params_uses.
12420         (ipcp_print_all_lattices): Print devirtualization info.
12421         (ipa_set_param_cannot_devirtualize): New function.
12422         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
12423         lattice to BOTTOM.
12424         (ipcp_init_stage): Merged into...
12425         (ipcp_generate_summary): ...its caller.
12426         (ipcp_change_tops_to_bottom): Also process type lists.
12427         (ipcp_add_param_type): New function.
12428         (ipcp_copy_types): Likewise.
12429         (ipcp_propagate_types): Likewise.
12430         (ipcp_propagate_stage): Also propagate types.
12431         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
12432         Also return true if propagated types require it.
12433         (ipcp_update_callgraph): Dump redirection info.
12434         (ipcp_process_devirtualization_opportunities): New function.
12435         (ipcp_const_param_count): Include known type information.
12436         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
12437         on new node.  Fixed formatting.
12438         * ipa-prop.c (make_edge_direct_to_target): Renamed to
12439         ipa_make_edge_direct_to_target and changed all callers.  Made
12440         externally visible.
12441         (ipa_node_duplication_hook): Duplicate types vector.
12442         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
12443         redirect outgoing calls for which we can't get a decl from the
12444         statement.  Check that we can get a decl from the call statement.
12445         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
12446         ipa_analyze_params_uses only when ipa-cp is disabled.
12447         * tree-inline.c (get_indirect_callee_fndecl): Removed.
12448         (expand_call_inline): Do not call get_indirect_callee_fndecl.
12449         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
12450         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
12451
12452 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
12453
12454         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
12455         temporary. Emit move from temporary to accum, so REG_EQUAL note will
12456         be attached to this insn in correct mode.
12457
12458 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
12459
12460         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
12461         using REGNO of base_reg directly.
12462
12463 2010-08-05  Jie Zhang  <jie@codesourcery.com>
12464
12465         PR tree-optimization/45144
12466         * tree-sra.c (type_consists_of_records_p): Return false
12467         if the record contains bit-field.
12468
12469 2010-08-04  Richard Henderson  <rth@redhat.com>
12470
12471         * config/i386/i386.c (struct ix86_frame): Remove padding and
12472         to_allocate members.
12473         (ix86_compute_frame_layout): Don't store them.
12474         (ix86_can_use_return_insn_p): Use a more direct and more obviously
12475         correct condition for the position of the stack pointer.
12476         (ix86_expand_prologue): Compute remaining stack allocation based
12477         on the ultimate stack pointer offset.
12478         (ix86_expand_epilogue): Use more obvious expressions testing for
12479         the stack pointer already pointing to the saved registers.
12480
12481         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
12482         duplication deconstructing the frame pointer.  Simplify
12483         deallocation of the local stack frame.
12484
12485         * reg-notes.def (CFA_EXPRESSION): New.
12486         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12487         (dwarf2out_frame_debug_cfa_expression): New.
12488         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
12489
12490         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
12491         * config/i386/i386.c (ix86_expand_prologue): Set it.
12492         (ix86_expand_epilogue): Clear it.
12493         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
12494         context, add REG_CFA_EXPRESSION notes.
12495
12496         * config/i386/i386.h (struct machine_frame_state): Rename from
12497         machine_cfa_state.  Add members tracking SP and FP regardless
12498         of the current CFA register.
12499         (ix86_cfa_state): Remove.
12500         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
12501         and sse_reg_save_offset members.
12502         (ix86_compute_frame_layout): Set them.
12503         (gen_push): Increment sp_offset too.
12504         (choose_baseaddr_len, choose_baseaddr): New.
12505         (ix86_emit_save_reg_using_mov): New.
12506         (ix86_emit_save_regs_using_mov): Use it.
12507         (ix86_emit_save_sse_regs_using_mov): Likewise.
12508         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
12509         compare vs the saved red_zone_offset.
12510         (pro_epilogue_adjust_stack): Adjust sp_offset.
12511         (ix86_adjust_stack_and_probe): Likewise.
12512         (ix86_expand_prologue): Set up, use, and validate the new
12513         frame_state_info members.  Use gen_frame_mem.
12514         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
12515         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
12516         new frame_state_info members.
12517         (ix86_emit_leave): Likewise.
12518         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
12519         out-of-range stack pointer offsets here.
12520         (ix86_emit_restore_sse_regs_using_mov): Likewise.
12521         (ix86_expand_epilogue): Use and validate the new frame_state_info
12522         members.  Break up and simplify the logic selecting the
12523         restore_regs_via_mov code path.  Ensure that there will be no
12524         out-of-range stack pointer offsets.
12525
12526         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
12527
12528         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
12529         argument name to reflect the expected tree; fix indentation.
12530         (ix86_asm_output_function_label): Output the entire 32-bit
12531         ms_hook here as bytes ...
12532         (ix86_expand_prologue): ... not here as insns.  Attach the
12533         unwind info for the ms_hook to a blockage insn.
12534         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
12535         (ix86_ms_bitfield_layout_p): Fix indentation.
12536         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
12537
12538         * config/i386/i386.c (ix86_using_red_zone): New.
12539         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
12540         ix86_expand_prologue, ix86_force_to_memory): Use it.
12541
12542         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
12543         saving the int registers.
12544
12545         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
12546         and DWARF2_UNWIND_INFO conditional compilation.
12547
12548 2010-08-04  Richard Henderson  <rth@redhat.com>
12549
12550         PR debug/45171
12551         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
12552         an is_naming_typedef_decl.
12553
12554 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
12555
12556         PR rtl-optimization/45162
12557         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
12558         * dce.c (word_dce_process_block): Likewise.
12559
12560 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
12561
12562         PR target/44583
12563         * config/ia64/constraints.md (Z): New.
12564         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
12565         (xfreg_or_signed_fp01_operand): New.
12566         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
12567         with fr_reg_or_signed_fp01_operand and constraint G with Z.
12568         (subsf3): Ditto.
12569         (*maddsf4): Ditto.
12570         (*msubsf4): Ditto.
12571         (adddf3): Ditto.
12572         (adddf3_trunc): Ditto.
12573         (subdf3): Ditto.
12574         (*subdf3_trunc): Ditto.
12575         (*madddf4): Ditto.
12576         (*madddf4_trunc): Ditto.
12577         (*msubdf4): Ditto.
12578         (*msubdf4_trunc): Ditto.
12579         (addxf3): Replace xfreg_or_fp01_operand with
12580         xfreg_or_signed_fp01_operand and constraint G with Z.
12581         (*addxf3_truncsf): Ditto.
12582         (*addxf3_truncdf): Ditto.
12583         (subxf3): Ditto.
12584         (*subxf3_truncsf): Ditto.
12585         (*subxf3_truncdf): Ditto.
12586         (*maddxf4): Ditto.
12587         (*maddxf4_truncsf): Ditto.
12588         (*maddxf4_truncdf): Ditto.
12589         (*msubxf4): Ditto.
12590         (*msubxf4_truncsf): Ditto.
12591         (*msubxf4_truncdf): Ditto.
12592
12593 2010-08-04  Richard Guenther  <rguenther@suse.de>
12594
12595         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
12596         if either alias-set is zero.
12597
12598 2010-08-04  Richard Guenther  <rguenther@suse.de>
12599
12600         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
12601         * tree-ssa-ccp.c: ... here.
12602         * tree-ssa-copy.c: ... and here.
12603         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
12604         value_range_t): Move ...
12605         * tree-vrp.c: ... here.
12606         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
12607         (substitute_and_fold): Adjust prototype.
12608         * tree-ssa-propagate.c (replace_uses_in): Adjust.
12609         (replace_phi_args_in): Likewise.
12610         (substitute_and_fold): Take callback to query lattice instead
12611         of pointer to lattice.  Replace SSA name defs with lattice
12612         values first.
12613         * tree-ssa-ccp.c (ccp_finalize): Adjust.
12614         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
12615         (get_value): New function.
12616         (fini_copy_prop): Adjust.
12617         * tree-vrp.c (vrp_finalize): Adjust.
12618
12619 2010-08-04  Richard Guenther  <rguenther@suse.de>
12620
12621         PR middle-end/45176
12622         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
12623         points-to set for original MEM_REF.
12624
12625 2010-08-04  Richard Guenther  <rguenther@suse.de>
12626
12627         * tree-ssa-ccp.c (get_constant_value): New function.
12628         (get_rhs_assign_op_for_ccp): Remove.
12629         (valueize_op): New function.
12630         (ccp_fold): Use get_constant_value and valueize_op.
12631         (fold_const_aggregate_ref): Likewise.
12632         (ccp_fold_stmt): Likewise.
12633         (visit_assignment): Simplify.
12634
12635 2010-08-04  Richard Guenther  <rguenther@suse.de>
12636
12637         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
12638         * double-int.h (double_int_ctz): Declare.
12639         * double-int.c (double_int_ctz): New function.
12640
12641 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
12642
12643         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
12644         Define.
12645         picochip_expand_movmemhi : Expand movmem pattern.
12646         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
12647         Declare.
12648         * config/picochip/picochip.md (movmemhi) : New pattern.
12649
12650 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
12651
12652         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
12653
12654 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
12655
12656         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
12657         NEG as operand of a MULT by merging it with the other operand.
12658         * combine.c (make_compound_operation): Use trunc_int_for_mode when
12659         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
12660         MULT.
12661         * config/arm/constraints.md (M): Examine only 32 bits of a
12662         HOST_WIDE_INT.
12663         * config/arm/predicates.md (power_of_two_operand): Likewise.
12664
12665 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12666
12667         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
12668         non-NOTE insns.
12669
12670 2010-08-03  Jan Hubicka  <jh@suse.cz>
12671
12672         * ipa-split.c (struct split_point): Add split_part_set_retval.
12673         (find_retval): Forward declare.
12674         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
12675         (consider_split): Compute current->split_part_set_retval.
12676         (visit_bb): Do not look into return value.
12677         (split_function): Handle !split_part_set_retval
12678
12679 2010-08-03  Martin Jambor  <mjambor@suse.cz>
12680
12681         * tree-sra.c (completely_scalarize_record): New parameter REF, create
12682         its own access->expr intead of using build_ref_for_offset.
12683
12684 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
12685
12686         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
12687         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
12688         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
12689         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
12690         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
12691         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
12692         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
12693         DEFAULT_SWITCH_TAKES_ARG.
12694         * config/rx/rx.opt (-patch=): Remove option.
12695         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
12696         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
12697         * doc/invoke.texi (RX Options): Remove -patch=.
12698         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
12699         (option_map): Remove --profile-blocks, --quiet and --silent.
12700
12701 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
12702
12703         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
12704         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
12705         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
12706         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12707         Update calls to ix86_expand_compare and ix86_expand_branch.
12708         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
12709         ix86_expand_compare.
12710         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
12711         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12712         Make static.
12713         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
12714         and ix86_compare_op1.  Update calls to ix86_expand_compare.
12715         (ix86_expand_int_movcc): Ditto.
12716         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
12717         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
12718         (ix86_expand_setcc): Ditto.
12719         (ix86_expand_compare): Remove prototype.
12720         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
12721         ix86_compare_op0 and ix86_compare_op1.  Update calls
12722         to ix86_expand_branch to directly pass operands[1] and operands[2].
12723         (cbranchxf4): Ditto.
12724         (cbranch<MODEF:mode>4): Ditto.
12725         (cbranchcc4): Ditto.
12726         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
12727         Update calls to ix86_expand_setcc to directly pass operands[2] and
12728         operands[3].
12729         (cstorexf4): Ditto.
12730         (cstore<MODEF:mode>4): Ditto.
12731         (cstorecc4): Ditto.
12732
12733 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
12734
12735         PR target/45063
12736         * caller-save.c (save_call_clobbered_regs): Remove regs from
12737         hard_regs_saved when they are set.
12738
12739 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
12740
12741         PR target/41089
12742         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
12743         as volatile.
12744
12745 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
12746
12747         * common.opt (ftree-loop-distribute-patterns): New.
12748         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
12749         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
12750         at -O3.
12751         * tree-data-ref.c (stores_zero_from_loop): New.
12752         * tree-data-ref.h (stores_zero_from_loop): Declared.
12753         * tree-loop-distribution.c (tree_loop_distribution): Call
12754         stores_zero_from_loop.
12755         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
12756
12757 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
12758
12759         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
12760         into account.
12761
12762         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
12763         * config/arm/arm.c (thumb1_code): New variable.
12764         (arm_override_options): Set it.
12765         (thumb1_final_prescan_insn): Keep track of condition code status.
12766         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
12767         jumps that depend on them.
12768         * config/arm/arm.h (thumb1_code): Declare variable.
12769         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
12770         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
12771         thumb1_cc_mode.
12772         (CC_STATUS_INIT): New macro.
12773         * config/arm/constraints.md (Pd): New constraint.
12774         * config/arm/predicates.md (noov_comparison_operator): New predicate.
12775         * config/arm/arm.md (is_thumb1): New define_attr.
12776         (conds): Set default to "clob" when generating Thumb1 code.
12777         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
12778         code are set.  Use two-operand assembly syntax.
12779         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
12780         pattern.
12781         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
12782         codes are set.  Use two-operand assembly syntax.
12783         (zero_extendhisi splitter): Remove constraints.
12784         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
12785         thumb1_movsf_insn): Set conds attribute as appropriate.
12786         (cbranchsi4_insn): Use condition code status from struct
12787         machine_function to determine whether the comparison can be eliminated.
12788         Discourage the alternative using high registers.
12789         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
12790         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
12791         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
12792         subsi3_cbranch): Delete.
12793         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
12794         one subtract and one cbranch insn.
12795
12796         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
12797         thumb2_movdf_soft_insn): Delete patterns.
12798         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
12799         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
12800         (pool_range, neg_pool_range): Use them to define defaults.
12801         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
12802         and allow for TARGET_32BIT.
12803
12804         PR target/40457
12805         * config/arm/arm.h (arm_regs_in_sequence): Declare.
12806         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
12807         load_multiple_sequence, store_multiple_sequence): Delete
12808         declarations.
12809         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
12810         declarations.
12811         * config/arm/ldmstm.md: New file.
12812         * config/arm/arm.c (arm_regs_in_sequence): New array.
12813         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
12814         CHECK_REGS.  All callers changed.
12815         If SAVED_ORDER is nonnull, copy the computed order into it.
12816         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
12817         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
12818         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
12819         If SAVED_ORDER is nonnull, copy the computed order into it.
12820         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
12821         like REGS.  Handle Thumb mode.
12822         (arm_gen_load_multiple_1): New function, broken out of
12823         arm_gen_load_multiple.
12824         (arm_gen_store_multiple_1): New function, broken out of
12825         arm_gen_store_multiple.
12826         (arm_gen_multiple_op): New function, with code from
12827         arm_gen_load_multiple and arm_gen_store_multiple moved here.
12828         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
12829         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
12830         changed.
12831         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
12832         * config/arm/predicates.md (commutative_binary_operator): New.
12833         (load_multiple_operation, store_multiple_operation): Handle more
12834         variants of these patterns with different starting offsets.  Handle
12835         Thumb-1.
12836         * config/arm/arm.md: Include "ldmstm.md".
12837         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
12838         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
12839         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
12840         peepholes): Delete.
12841         * config/arm/ldmstm.md: New file.
12842         * config/arm/arm-ldmstm.ml: New file.
12843
12844         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
12845         if statement which adds extra costs to frame-related expressions.
12846
12847 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12848
12849         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
12850
12851 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
12852
12853         PR target/45142
12854         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
12855         alternative 2.
12856         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
12857         split V4SI operands.
12858
12859 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
12860
12861         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12862         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
12863         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
12864         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12865
12866 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
12867
12868         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
12869         LOCAL_INCLUDE_DIR.
12870
12871 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
12872
12873         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
12874         used in the call to optab_for_tree_code.  Fix the second
12875         is_widening_mult_p call.  Check that both unwidened operands
12876         have the same sign.
12877
12878 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
12879
12880         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
12881
12882 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
12883
12884         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12885
12886 2010-07-30  DJ Delorie  <dj@redhat.com>
12887
12888         * config/rx/predicates.md (rx_constshift_operand): New.
12889         * config/rx/rx.md (zs_cond): New.
12890         (cbranchsi4): Remove mode.
12891         (*cbranchsi4_<code>): Likewise.
12892         (*tstbranchsi4_<code>): New.
12893         (*tstbranchsi4r_<code>): New.
12894         (*tstbranchsi4m_eq): New.
12895         (*tstbranchsi4m_ne): New.
12896         (cbranchsf4): Remove mode.
12897         (*cbranchsf4_<code>): Likewise.
12898
12899 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
12900
12901         * rtlanal.c (simplify_subreg_regno): Don't treat
12902         HARD_FRAME_POINTER_REGNUM specially.
12903
12904 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
12905
12906         * common.opt (-G): Don't define option here.
12907         * config/g.opt: New.
12908         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
12909         rs6000/powerpc and score targets.
12910         * opts.c (common_handle_option): Don't handle -G here.
12911         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
12912         * config/frv/frv.c (frv_handle_option): Handle -G.
12913         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
12914         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
12915         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
12916         * config/mips/mips.c (mips_handle_option): Handle -G.
12917         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
12918         * config/score/score.c (score_handle_option): Handle -G.
12919
12920 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
12921
12922         * config/mmix/mmix.c: Include basic-block.h.
12923
12924 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
12925
12926         PR debug/45055
12927         PR rtl-optimization/45137
12928         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
12929         prototypes.
12930         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
12931         New functions.
12932         * combine.c (next_nonnote_nondebug_insn): Removed.
12933         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
12934         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
12935         * sched-deps.c (sched_analyze_insn): Likewise.
12936         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
12937         * rtlanal.c (canonicalize_condition): Likewise.
12938         * postreload.c (reload_combine_recognize_pattern): Likewise.
12939         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
12940
12941 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
12942
12943         * config/i386/i386.md (int_cond): Remove code iterator.
12944         (fp_cond): Ditto.
12945         (cbranch<mode>4): Use ordered_comparison_operator predicate
12946         for operator0.
12947         (cstore<mode>4): Ditto for operator1.
12948         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
12949         (add<mode>cc): ditto.
12950
12951 2010-07-30  Richard Guenther  <rguenther@suse.de>
12952
12953         PR middle-end/45141
12954         * expr.c (expand_expr_real_1): Check for not handled base address.
12955
12956 2010-07-30  Richard Guenther  <rguenther@suse.de>
12957
12958         * ipa-prop.c (ipa_modify_formal_parameters): Use
12959         build_distinct_type_copy.
12960
12961 2010-07-30  Anthony Green  <green@moxielogic.com>
12962
12963         * config/moxie/rtems.h: New file.
12964         * config.gcc: Add moxie-rtems support.
12965
12966 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
12967
12968         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
12969         df flags as in run_fast_df_dce.
12970
12971 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
12972
12973         Revert:
12974         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
12975
12976         * rtl.def (NOTE): Swap operands 4 and 5.
12977         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
12978         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
12979         Adjust accordingly.
12980         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
12981
12982 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
12983
12984         PR debug/45110
12985         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
12986         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
12987         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
12988         formal parameters.
12989         (gen_decl_die): Change return type to dw_die_ref, return what
12990         gen_formal_parameter_die returned.
12991
12992 2010-07-29  Martin Jambor  <mjambor@suse.cz>
12993
12994         * dbgcnt.def (eipa_sra): New counter.
12995         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
12996
12997 2010-07-29  Xinliang David Li  <davidxl@google.com>
12998
12999         PR bootstrap/45119
13000         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
13001         in revision 162652.
13002
13003 2010-07-29  Richard Guenther  <rguenther@suse.de>
13004
13005         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
13006         (TV_TREE_STORE_CCP): Likewise.
13007         (TV_TREE_REDPHI): Likewise.
13008
13009 2010-07-29  Richard Guenther  <rguenther@suse.de>
13010
13011         * double-int.h (double_int_and_not): New function.
13012         * combine.c (try_combine): Use it.
13013         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
13014
13015 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
13016
13017         PR rtl-optimization/42575
13018         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
13019         Argument AU removed.  All callers changed.  Ignore artificial refs.
13020         Use return value of df_word_lr_simulate_defs to decide whether an insn
13021         is necessary.
13022         (fast_dce): Rename arg to WORD_LEVEL.
13023         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
13024         static.
13025         (pass_fast_rtl_byte_dce): Delete.
13026         * dce.h (run_word_dce): Declare.
13027         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
13028         All callers changed.  Simplify code to only deal with two-word regs.
13029         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
13030         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
13031         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
13032         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
13033         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
13034         (df_word_lr_mark_ref): Declare.
13035         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
13036         df_word_lr_simulate_uses): Declare or rename from byte variants.
13037         (df_byte_lr_simulate_artificial_refs_at_top,
13038         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
13039         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
13040         declarations.
13041         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
13042         (enum df_mm): Delete.
13043         * df-byte-scan.c: Delete file.
13044         * df-problems.c (df_word_lr_problem_data): Renamed from
13045         df_byte_lr_problem_data, all members deleted except for
13046         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
13047         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
13048         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
13049         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
13050         df_byte_lr_confluence_0): Delete functions.
13051         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
13052         callers changed.
13053         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
13054         Don't initialize members that were deleted, don't try to discover data
13055         about registers.  Ignore hard regs.
13056         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
13057         (df_word_lr_mark_ref): New function.
13058         (df_word_lr_bb_local_compute): Renamed from
13059         df_byte_bb_lr_local_compute; all callers changed.  Use
13060         df_word_lr_mark_ref.  Assert that artificial refs don't include
13061         pseudos.  Ignore hard registers.
13062         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
13063         Assert that exit block uses don't contain pseudos.
13064         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
13065         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
13066         callers changed.  Ignore hard regs.
13067         (df_word_lr_transfer_function): Renamed from
13068         df_byte_lr_transfer_function; all callers changed.
13069         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
13070         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
13071         changed.
13072         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
13073         callers changed.
13074         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
13075         confluence operator 0 set to NULL.
13076         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
13077         callers changed.
13078         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
13079         Return bool, true if bitmap changed or insn otherwise necessary.
13080         All callers changed.  Simplify using df_word_lr_mark_ref.
13081         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
13082         all callers changed.  Simplify using df_word_lr_mark_ref.
13083         * lower-subreg.c: Include "dce.h"
13084         (decompose_multiword_subregs): Call run_word_dce if df available.
13085         * Makefile.in (lower-subreg.o): Adjust dependencies.
13086         (df-byte-scan.o): Delete.
13087         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
13088
13089 2010-07-29  Richard Guenther  <rguenther@suse.de>
13090
13091         * tree.c (build_vector): Assert that the vector constant
13092         has enough elements.
13093         (build_vector_from_ctor): Pad with trailing zeros.
13094
13095 2010-07-29  Richard Guenther  <rguenther@suse.de>
13096
13097         PR tree-optimization/45120
13098         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13099         Handle offset in DEREFs properly.
13100         (get_constraint_for_1): Handle MEM_REF offset properly.
13101
13102 2010-07-29  Richard Guenther  <rguenther@suse.de>
13103
13104         PR middle-end/45034
13105         * convert.c (convert_to_integer): Always use an unsigned
13106         type for narrowed negate and bitwise not.
13107
13108 2010-07-29  Ira Rosen  <irar@il.ibm.com>
13109
13110         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
13111         to outer loop when creating reduction epilogue for double reduction,
13112         and switch back to the inner loop when updating the phi nodes.
13113         Update uses of outer loop exit phi nodes in double reduction (instead
13114         of uses of reduction).
13115
13116 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
13117
13118         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
13119         popcount on power7 and parity on power6 systems.
13120         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
13121         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
13122         instructions.
13123
13124         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
13125         (UNSPEC_PARITY): Ditto.
13126         (SFDF): New iterator for SF/DF.
13127         (rreg2): New mode attribute for floating register constraint.
13128         (TARGET_FLOAT): New mode attribute for whether single/double float
13129         is supported.
13130         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
13131         pattern.
13132         (parity<mode>2_cmpb): New insn for parity on power6 and newer
13133         machines.
13134         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
13135         pattern.  Add support for fcpsgn instruction added in power6.
13136         (copysignsf3): Delete.
13137         (copysigndf3): Delete.
13138         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
13139         instead of if_then_else in RTL to avoid problems with -0.
13140
13141         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
13142         of if_then_else to mirror scalar code.
13143         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
13144         rs6000.md.
13145
13146         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
13147         instead of if_then_else.
13148
13149 2010-07-28  Xinliang David Li  <davidxl@google.com>
13150
13151         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
13152         (dump_cand): Dump var_before/after.
13153         (htab_inv_expr_eq): New function.
13154         (htab_inv_expr_hash): New function.
13155         (tree_ssa_iv_optimize_init): Support pseudo invariants.
13156         (add_candidate_1): consider base type precision.
13157         (set_use_iv_cost): New parameter.
13158         (adjust_setup_cost): Use profile information.
13159         (get_address_cost): Do not hard code width in computing address
13160         offset limits.
13161         (compare_aff_trees): New function.
13162         (get_loop_invariant_expr_id): New function.
13163         (get_computation_cost_at): New parameter and use profile information.
13164         (get_computation_cost): New parameter.
13165         (determine_use_iv_cost_generic): Pass new parameter.
13166         (determine_use_iv_cost_address): Ditto.
13167         (determine_use_iv_cost_condition): Ditto.
13168         (autoinc_possible_for_pair): Ditto.
13169         (determine_use_iv_costs): More dumps.
13170         (iv_ca_get_num_inv_exprs): New function.
13171         (iv_ca_recount_cost): Consider loop invariants in register pressure
13172         cost.
13173         (iv_ca_add_use): New parameter.
13174         (iv_ca_dump): Better dumping.
13175         (iv_ca_extend): New parameter.
13176         (try_add_cand_for): Attempt to get better partial solution.
13177         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
13178         (create_new-ivs): More dumps.
13179         (rewrite_use_compare): Ditto.
13180         (free_loop_data): More cleanup.
13181         (treee_ssa_iv_optimize_finalize): Ditto.
13182
13183 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
13184
13185         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
13186         * config/i386/i386.c (ix86_profile_before_prologue): New.
13187         (override_options): Add special handling for -mfentry.
13188         (ix86_function_regparm): Likewise.
13189         (ix86_function_sseregparm): Likewise.
13190         (ix86_frame_pointer_required): Likewise.
13191         (ix86_expand_prologue): Check for ms_hook_prologue.
13192         (x86_function_profiler): Adjust mcount output.
13193         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
13194         * config/i386/i386.opt (mfentry): New.
13195         * doc/invoke.texi (mfentry): Add documentation.
13196         * doc/tm.texi: Regenerated..
13197         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
13198         * final.c (final_start_function): Replace macro
13199         PROFILE_BEFORE_PROLOGUE by target hook.
13200         * function.c (thread_prologue_and_epilogue_insns): Likewise.
13201         * target.def (profile_before_prologue): New hook.
13202         * targhooks.c (default_profile_before_prologue): New.
13203         * targhooks.h (default_profile_before_prologue): New.
13204
13205 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
13206
13207         PR debug/45105
13208         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
13209
13210         PR debug/45103
13211         * dwarf2out.c (dwarf2out_var_location): Always consider
13212         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
13213
13214 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
13215
13216         PR rtl-optimization/45107
13217         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
13218
13219 2010-07-28  Richard Guenther  <rguenther@suse.de>
13220
13221         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
13222         (set_lattice_value): Do not query an old default value.
13223         (get_value_for_expr): New function.  Properly canonicalize
13224         float values.
13225         (ccp_visit_phi_node): Use it.
13226
13227 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
13228
13229         * config/arm/arm.c (arm_pcs_default): Remove static.
13230         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
13231         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
13232         (arm_pcs_default): Declare.
13233
13234 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
13235
13236         * config/rs6000/rs6000.c (rs6000_override_options):
13237         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
13238         ... to darwin_rs6000_override_options.
13239         (rs6000_return_in_memory): Update preceding comment for darwin
13240         64 bit ABI.  Use TARGET_MACHO inline.
13241         (rs6000_darwin64_struct_check_p): New.
13242         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
13243         (function_arg): Likewise.
13244         (rs6000_arg_partial_bytes): Likewise.
13245         (rs6000_function_value): Likewise.
13246
13247 2010-07-28  Andi Kleen  <ak@linux.intel.com>
13248
13249         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
13250
13251 2010-07-28  Richard Guenther  <rguenther@suse.de>
13252
13253         PR middle-end/44903
13254         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
13255         targets try harder to not generate unaligned accesses.
13256
13257 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
13258
13259         PR rtl-optimization/45101
13260         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
13261         for gcse-las.
13262
13263 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
13264
13265         PR tree-optimization/44885
13266         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
13267         with non-aliased component.
13268
13269 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
13270
13271         * config/darwin-driver.c (SWITCH_TAKES_ARG,
13272         WORD_SWITCH_TAKES_ARG): Remove.
13273         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
13274         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
13275         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
13276         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
13277         definitions from gcc.c.
13278         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
13279         defaults.h.
13280         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
13281         Move to defaults.h.
13282         * opts-common.c: Include tm.h.
13283         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
13284         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
13285         Handle more than one argument.  Set canonical_option_num_elements.
13286         (decode_cmdline_options_to_array): Set
13287         canonical_option_num_elements and trailing elements of
13288         canonical_option.
13289         * opts.h (struct cl_decoded_option): Allow four elements in
13290         canonical_option.  Add field canonical_option_num_elements.
13291         * Makefile.in (opts-common.o): Update dependencies.
13292
13293 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
13294
13295         PR middle-end/44790
13296         PR middle-end/44993
13297         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
13298         sure the base has address_mode before adding the offset.
13299
13300 2010-07-27  Xinliang David Li  <davidxl@google.com>
13301
13302         * tree-flow.h (create_mem_ref): Add one new parameter.
13303         * tree-ssa-address.c (create_mem_ref): New parameter.
13304         (addr_to_parts): Ditto.
13305         (move_variant_to_index): New function.
13306         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
13307
13308 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13309
13310         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
13311         4 and 5.
13312         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
13313         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
13314         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
13315         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
13316         CODE_LABELs and NOTEs.
13317         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
13318         * combine.c (try_combine): Likewise.
13319         * ira.c (setup_prohibited_mode_move_regs): Likewise.
13320         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
13321
13322 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
13323
13324         * coretypes.h (struct cl_option_handlers): Declare.
13325         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
13326         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
13327         * langhooks-def.h (lhd_handle_option): Declare.
13328         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
13329         * langhooks.c (lhd_handle_option): New.
13330         * langhooks.h (struct lang_hooks): Update prototype and return
13331         value type of handle_option hook.
13332         * optc-gen.awk: Generate target_flags_explicit definition for the
13333         driver.
13334         * opts-common.c: Include diagnostic.h.
13335         (handle_option): Move from opts.c.  Update prototype and return
13336         value type.  Use handlers structure.
13337         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
13338         handlers structure.
13339         (set_option): Move from opts.c.
13340         * opts.c (common_handle_option): Update prototype and return value
13341         type.  Update calls to handle_option and enable_warning_as_error.
13342         (unknown_option_callback, post_handling_callback,
13343         lang_handle_option, target_handle_option): New.
13344         (handle_option, read_cmdline_option): Move to opts-common.c.
13345         (read_cmdline_options): Update prototype.  Update call to
13346         read_cmdline_option.
13347         (decode_options): Initialize and use handlers structure.
13348         (set_option): Move to opts-common.c.
13349         (enable_warning_as_error): Update prototype.  Update call to
13350         handle_option.
13351         * opts.h (struct cl_option_handler_func, struct
13352         cl_option_handlers): New.
13353         (handle_option, enable_warning_as_error): Update prototypes.
13354         (read_cmdline_option): Declare.
13355         * Makefile.in (opts-common.o): Update dependencies.
13356
13357 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13358
13359         * config/arm/arm.c (params.h): Include.
13360         (arm_override_options): Tune gcse-unrestricted-cost.
13361         * config/arm/t-arm (arm.o): Define dependencies.
13362
13363 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13364
13365         PR target/42495
13366         PR middle-end/42574
13367         * basic-block.h (get_dominated_to_depth): Declare.
13368         * dominance.c (get_dominated_to_depth): New function, use
13369         get_all_dominated_blocks as a base.
13370         (get_all_dominated_blocks): Use get_dominated_to_depth.
13371
13372         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
13373         (hoist_exprs): Remove.
13374         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
13375         (compute_code_hoist_vbeinout): Add debug print outs.
13376         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
13377
13378         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
13379         quadratic behavior.
13380         * params.h (MAX_HOIST_DEPTH): New macro.
13381         * doc/invoke.texi (max-hoist-depth): Document.
13382
13383 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13384
13385         PR rtl-optimization/40956
13386         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
13387         constants.
13388
13389 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13390
13391         PR target/42495
13392         PR middle-end/42574
13393         * config/arm/arm.c (legitimize_pic_address): Use
13394         gen_calculate_pic_address pattern to emit calculation of PIC address.
13395         (will_be_in_index_register): New function.
13396         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
13397         (thumb1_legitimate_address_p): Use it provided !strict_p.
13398         * config/arm/arm.md (calculate_pic_address): New expand and split.
13399
13400 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13401
13402         PR target/42495
13403         PR middle-end/42574
13404         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
13405         * config/arm/arm.md (define_split "J", define_split "K"): Make
13406         IRA/reload friendly.
13407
13408 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13409
13410         * gcse.c (insert_insn_end_basic_block): Update signature, remove
13411         unused checks.
13412         (pre_edge_insert, hoist_code): Update.
13413
13414 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13415
13416         PR target/42495
13417         PR middle-end/42574
13418         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
13419
13420 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13421
13422         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
13423
13424 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13425
13426         PR rtl-optimization/40956
13427         PR target/42495
13428         PR middle-end/42574
13429         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
13430         for hoisting.
13431         (hoist_code): Count occurences in current block too.
13432
13433 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13434
13435         * gcse.c (struct expr:max_distance): New field.
13436         (doing_code_hoisting_p): New static variable.
13437         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
13438         simple expressions, don't change behavior for PRE.  Set max_distance.
13439         (insert_expr_in_table): Set new max_distance field.
13440         (hash_scan_set): Update.
13441         (hoist_expr_reaches_here_p): Stop search after max_distance
13442         instructions.
13443         (find_occr_in_bb): New static function.  Use it in ...
13444         (hoist_code): Calculate sizes of basic block before any changes are
13445         done.  Pass max_distance to hoist_expr_reaches_here_p.
13446         (one_code_hoisting_pass): Set doing_code_hoisting_p.
13447
13448         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
13449         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
13450         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
13451         macros.
13452         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
13453         Document.
13454
13455 2010-07-27  Jeff Law  <law@redhat.com>
13456             Maxim Kuvyrkov  <maxim@codesourcery.com>
13457
13458         * gcse.c (compute_transpout, transpout): Remove, move logic
13459         to prune_expressions.
13460         (compute_pre_data): Move pruning of trapping expressions ...
13461         (prune_expressions): ... here.  New static function.
13462         (compute_code_hoist_data): Use it.
13463         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
13464
13465 2010-07-27  Xinliang David Li  <davidxl@google.com>
13466
13467         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
13468         (rewrite_use_address): Adjust iv update position when needed.
13469
13470 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13471
13472         * dbgcnt.def (hoist_insn): New debug counter.
13473         * gcse.c (hoist_code): Use it.
13474
13475 2010-07-27  Xinliang David Li  <davidxl@google.com>
13476
13477         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
13478         (niter_for_single_dom_exit): Passes additional parameter.
13479         (iv_period): Fix comments.
13480         (may_eliminate_iv): Handles multiple exit loops properly.
13481         (free_tree_niter_desc): New function.
13482         (free_loop_data): Frees up loop iteration descriptors.
13483
13484 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13485
13486         PR target/44542
13487         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
13488         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
13489         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
13490         (expand_one_var): Don't consider DECL_ALIGN for variables for
13491         which expand_one_stack_var_at has been already called.
13492
13493         PR testsuite/44701
13494         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
13495         constraints on IA-64.
13496
13497 2010-07-27  Jie Zhang  <jie@codesourcery.com>
13498
13499         PR target/44290
13500         Revert:
13501         2010-07-23  Jie Zhang  <jie@codesourcery.com>
13502
13503         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13504         false if ! tree_versionable_function_p.
13505
13506 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13507
13508         * dwarf2out.c (add_data_member_location_attribute): Use
13509         add_AT_unsigned instead of add_AT_int if offset is non-negative.
13510
13511 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13512
13513         * postreload.c (try_replace_in_use): New static function.
13514         (reload_combine_recognize_const_pattern): Use it here.  Allow
13515         substituting into a final add insn, and substituting into a memory
13516         reference in an insn that sets the reg.
13517
13518 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
13519
13520         * common.opt (o): Add MissingArgError.
13521         * doc/options.texi (MissingArgError): Document.
13522         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
13523         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
13524         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
13525         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
13526         * langhooks.h (struct lang_hooks): Remove missing_argument.
13527         * optc-gen.awk: Handle MissingArgError and output new structure
13528         field initializers.
13529         * opts.c (read_cmdline_option): Use missing_argument_error field
13530         instead of missing_argument langhook.
13531         * opts.h (struct cl_option): Add missing_argument_error field.
13532         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
13533
13534 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
13535
13536         PR target/29090
13537         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
13538         Darwin64 ABI, for zero-sized objects.
13539
13540 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
13541
13542         PR target/35491
13543         PR target/29090
13544
13545         Merge from Apple local 4.2.1.
13546         2005-05-11  Stan Shebs  <shebs@apple.com>
13547         Fix 64-bit varargs for Darwin (Radar 4028089).
13548         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
13549         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
13550         Add argument, add case for 8-byte register half-filled with a float.
13551         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
13552         single-precision floats specially.
13553
13554 2010-07-27  Ira Rosen  <irar@il.ibm.com>
13555
13556         PR tree-optimization/44152
13557         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
13558         complex numbers for further check.
13559         (vect_supported_load_permutation_p): Check nodes with
13560         complex numbers.
13561
13562 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
13563
13564         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
13565         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
13566         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
13567         (LANG_HOOKS_INITIALIZER): Add new hooks.
13568         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
13569         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
13570         and complain_wrong_lang_p.  Update init_options prototype.
13571         * c-objc-common.c (c_initialize_diagnostics): First call
13572         c_common_initialize_diagnostics.
13573         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
13574         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
13575         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
13576         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
13577         (hook_uint_void_0): New.
13578         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
13579         (hook_uint_void_0): New.
13580         * opts-common.c (decode_cmdline_option,
13581         decode_cmdline_options_to_array): Also fill in canonical_option field.
13582         * opts.c (complain_wrong_lang): Use langhook to determine whether
13583         to complain instead of special-casing LTO.
13584         (decode_options): Separate lang_mask determination with
13585         option_lang_mask hook from call of init_options hook.
13586         * opts.h (struct cl_decoded_option): Add canonical_option.
13587
13588 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13589
13590         PR tree-optimization/45083
13591         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
13592
13593 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13594
13595         * postreload.c (reload_combine_recognize_const_pattern): Move test
13596         for limiting the insn movement to the right scope.
13597
13598         PR rtl-optimization/45051
13599         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
13600         than reg_mentioned_p.
13601
13602 2010-07-26  Richard Henderson  <rth@redhat.com>
13603
13604         PR target/44132
13605         * tree-emutls.c: New file.
13606         * Makefile.in (OBJS-common): Add it.
13607         * tree-pass.h (pass_ipa_lower_emutls): Declare.
13608         * passes.c (init_optimization_passes): Add it.
13609
13610         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
13611         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
13612         * expr.c (emutls_var_address): Delete.
13613         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
13614         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
13615         (emutls_finish): Delete.
13616         * toplev.c (compile_file): Don't call it.
13617         * tree.h (emutls_decl): Delete.
13618         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
13619         (emutls_finish, emutls_finalize_control_var): Delete.
13620         (emutls_object_type): Move to tree-emutls.c.
13621         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
13622         default_emutls_var_fields, get_emutls_object_type,
13623         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
13624         default_emutls_var_init): Likewise.
13625         (get_variable_section): Don't special case emutls.
13626         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
13627         default_elf_select_section, default_unique_section,
13628         default_encode_section_info): Likewise.
13629         * varpool.c (decide_is_variable_needed): Likewise.
13630         * gimple-iterator.c (update_call_edge_frequencies): New
13631         (gsi_insert_on_edge_immediate): Use it.
13632         (gsi_insert_seq_on_edge_immediate): Likewise.
13633         (gsi_commit_one_edge_insert): Likewise.
13634
13635         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
13636         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
13637         (x86_64_elf_unique_section): Likewise.
13638
13639 2010-07-26  Jan Hubicka  <jh@suse.cz>
13640
13641         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
13642         GTY((skip)).
13643
13644 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
13645
13646         * target.def (output_source_filename): New hook.
13647         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
13648         * doc/tm.texi: Regenerate.
13649         * toplev.c (output_file_directive) Remove function.
13650         * toplev.h (output_file_directive) Remove.
13651         * output.h (default_asm_output_source_filename,
13652         output_file_directive): Declare.
13653         * varasm.h (default_asm_output_source_filename,
13654         output_file_directive): New functions.
13655
13656         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
13657         * config/mips/mips-protos.h (mips_output_filename): Remove.
13658         * config/mips/mips.c (mips_output_filename): Make Static.
13659         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
13660
13661 2010-07-26  Richard Guenther  <rguenther@suse.de>
13662
13663         PR tree-optimization/43784
13664         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
13665         if the destination is used by the call.
13666
13667 2010-07-26  Richard Guenther  <rguenther@suse.de>
13668
13669         PR middle-end/45073
13670         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
13671         SSA updating on being in SSA form.
13672
13673 2010-07-26  Richard Guenther  <rguenther@suse.de>
13674
13675         PR middle-end/45056
13676         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
13677
13678 2010-07-26  Richard Guenther  <rguenther@suse.de>
13679
13680         PR tree-optimization/45071
13681         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
13682         adjust op->opcode.
13683
13684 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
13685
13686         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
13687         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
13688         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
13689         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
13690         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
13691         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
13692         save_r31, return_r31, save_interrupt, return_interrupt,
13693         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
13694         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
13695         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
13696         new ABI requirements.
13697         (save_r6_r9, L_callt_save_r6_r9): Remove.
13698         * config/v850/predicates.md (even_reg_operand, disp23_operand,
13699         const_float_1_operand const_float_0_operand): New Predicates.
13700         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
13701         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
13702         * config/v850/t-v850: Update multilibs for new target variants.
13703         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
13704         * config/v850/t-v850e: Likewise.
13705         * config/v850/v850.c (v850_issue_rate): New.
13706         (v850_strict_argument_naming): New.
13707         (function_arg): Modify to generate a different ABI.
13708         (print_operand): Update case 'z' to support float modes.
13709         (output_move_single): Modify to generate appropriate and better
13710         assembly.
13711         (v850_float_z_comparison_operator, v850_select_cc_mode,
13712         v850_float_nz_comparison_operator,  v850_gen_float_compare,
13713         v850_gen_compare): New functions to support comparison of float values.
13714         (ep_memory_offset): Add support for V850E2 targets.
13715         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
13716         (INTERRUPT_REGPARM_NUM): Remove.
13717         (compute_register_save_size): Add extra case to save/restore long call.
13718         (use_prolog_function): New function to support prologue.
13719         (expand_prologue): Add support for V850E2 targets and modified
13720         as per the current ABI requirements.
13721         (expand_epilogue): Likewise.
13722         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
13723         (construct_save_jarl): Likewise.
13724         (construct_dispose_instruction): Update as per the current ABI
13725         requirements.
13726         (construct_prepare_instruction): Likewise.
13727         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
13728         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
13729         (CPP_SPEC): Updated to support v850e2 targets.
13730         (STRICT_ALIGNMENT): Modified.
13731         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
13732         (FIXED_REGISTERS): Likewise.
13733         (CALL_USED_REGISTERS): Likewise.
13734         (CONDITIONAL_REGISTER_USAGE): Updated.
13735         (HARD_REGNO_MODE_OK): Updated.
13736         (reg_class): Updated to add even registers.
13737         (REG_CLASS_NAMES): Likewise.
13738         (REG_CLASS_CONTENTS): Likewise.
13739         (REGNO_REG_CLASS): Updated for CC registers.
13740         (REG_CLASS_FROM_LETTER): Added support for even registers.
13741         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
13742         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
13743         ARG_POINTER_REGNUM): Updated.
13744         (FUNCTION_ARG_ADVANCE): Define.
13745         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
13746         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
13747         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
13748         (GO_IF_LEGITIMATE_ADDRESS): Updated.
13749         (SELECT_CC_MODE): Define.
13750         (REGISTER_NAMES): Updated to add psw and fcc registers.
13751         (ADDITIONAL_REGISTER_NAMES): Updated.
13752         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
13753         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
13754         * config/v850/v850.md (define_constants): Define new constants.
13755         (type): Update store,bit1,macc,div,fpu and single attributes.
13756         (cpu): New attribute.
13757         (cc): Add set_z attribute.
13758         (unsign23byte_load, sign23byte_load, unsign23hword_load,
13759         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
13760         23word_store): New instructions for 23-bit displacement load and store.
13761         (movqi_internal, movhi_internal): Update the attributes.
13762         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
13763         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
13764         the attributes.
13765         (v850_tst1): Modified using CC_REGNUM.
13766         (tstsi): Remove.
13767         (cmpsi): Modified as define_expand from define_insn.
13768         (cmpsi_insn, cmpsf, cmpdf): New instructions.
13769         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
13770         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
13771         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
13772         one_cmplsi2): Clobber the CC_REGNUM register.
13773         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
13774         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
13775         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
13776         (setf_insn, set_z_insn, set_nz_insn): New instructions for
13777         v850e2v3 target.
13778         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
13779         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
13780         targets.
13781         (sasf_1, sasf_2): Remove.
13782         (sasf): New instruction.
13783         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
13784         targets. CC_REGNUM register is clobbered and attributes are
13785         updated.
13786         (branch_z_normal, branch_z_invert, branch_nz_normal,
13787         branch_nz_invert): New branch related instructions.
13788         (jump): Updated the attributes.
13789         (switch): Update to support new targets. CC_REGNUM register is
13790         clobbered and attributes are updated.
13791         (call_internal_short, call_internal_long, call_value_internal_short,
13792         call_value_internal_long): Updated the attributes.
13793         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
13794         clobbered and attributes are updated.
13795         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
13796         Update to support new targets. CC_REGNUM register is clobbered.
13797         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
13798         instructions.
13799         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
13800         are updated.
13801         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
13802         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
13803         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
13804         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
13805         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
13806         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
13807         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
13808         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
13809         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
13810         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
13811         point instructions defined for V850e2v3 target.
13812         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
13813         Add support for V850E2 targets and CC_REGNUM register is clobbered.
13814         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
13815         support for new targets.
13816         * config/v850/v850-modes.def: New file.
13817         * config/v850/v850.opt(mstrict-align): Remove.
13818         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
13819         mv850e2v3): New command line options for V850.
13820         * config.gcc: Update the newly added files.
13821         * doc/invoke.texi: Update the newly added command line options for
13822         V850 target.
13823
13824 2010-07-26  Richard Guenther  <rguenther@suse.de>
13825
13826         PR tree-optimization/45052
13827         * ipa-pure-const.c (check_stmt): Check volatileness.
13828
13829 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
13830
13831         PR target/44707
13832         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
13833         * config/sparc/sparc.c: Include reload.h.
13834         (legitimize_tls_address): Rename into...
13835         (sparc_legitimize_tls_address): ...this.
13836         (legitimize_pic_address): Rename into...
13837         (sparc_legitimize_pic_address): ...this.
13838         (sparc_expand_move): Adjust to above renaming.
13839         (sparc_tls_referenced_p): Likewise.
13840         (sparc_legitimize_tls_address): Likewise.
13841         (sparc_legitimize_pic_address): Likewise.
13842         (sparc_legitimize_address): Likewise.
13843         (sparc_output_mi_thunk): Likewise.
13844         (sparc_legitimize_reload_address): New global function.  Recognize
13845         (lo_sum (high ...) ...) patterns generated by earlier passes.
13846         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
13847
13848 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
13849
13850         PR target/44484
13851         * config/sparc/predicates.md (memory_reg_operand): Delete.
13852         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
13853         (*sync_compare_and_swap): Encode the address form in the pattern.
13854         (*sync_compare_and_swapdi_v8plus): Likewise.
13855
13856 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
13857
13858         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
13859         Streamline paragraph on compatibility with the system compiler.
13860
13861 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
13862
13863         PR middle-end/45035
13864         * alias.c (true_dependence_1): Fix thinko in merge of old
13865         true_dependence and canon_true_dependence.
13866
13867 2010-07-23  Jan Hubicka  <jh@suse.cz>
13868
13869         * lto-streamer-out.c (write_symbol): Fix visibilities of external
13870         references.
13871
13872 2010-07-23  Le-Chun Wu  <lcwu@google.com>
13873
13874         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
13875         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
13876         and an unnecessary assignment.
13877         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
13878         self-assign warning.
13879         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
13880         unnecessary self-init.
13881
13882 2010-07-23  Richard Guenther  <rguenther@suse.de>
13883
13884         PR lto/43071
13885         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
13886         for -flto and -fwhopr.
13887
13888 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
13889
13890         PR target/41943
13891         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
13892         (stmp-int-hdrs): Prefix/postfix headers by include_next.
13893         * config.gcc (user_headers_inc_next_pre): New.
13894         (user_headers_inc_next_post): Likewise.
13895         (*-w64-mingw*): Use for float.h post-fixing, and for
13896         stddef.h/stdarg.h pre-fixing by include_next.
13897         * configure.ac (user_headers_inc_next_post): New.
13898         (user_headers_inc_next_pre): New.
13899         * configure: Regenerated.
13900
13901 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13902
13903         * configure.ac: Don't disable TLS on Solaris 8/9 by default
13904         Set tga_func for Solaris 2/x86 resp. SPARC.
13905         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
13906         (LIB_THREAD_LDFLAGS_SPEC): Define.
13907         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
13908         * configure: Regenerate.
13909         * config.in: Regenerate.
13910         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
13911         -pthread, -threads, LIB_TLS_SPEC with -pthread.
13912         * doc/install.texi (Specific, *-*-solaris2*): Document use of
13913         alternate thread libraries on Solaris 8.
13914         Document TLS patch requirements.
13915         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
13916         Document tls.
13917
13918         PR target/18788
13919         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
13920         -shared.
13921
13922 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
13923
13924         * tree.h (struct tree_base): Add nameless_flag bitfield.
13925         (TYPE_NAMELESS, DECL_NAMELESS): Define.
13926         * omp-low.c (create_omp_child_function, scan_omp_parallel,
13927         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
13928         DECL_ARTIFICIAL where needed.
13929         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
13930         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
13931         has DECL_NAMELESS set.
13932
13933 2010-07-23  Martin Jambor  <mjambor@suse.cz>
13934
13935         PR tree-optimization/44915
13936         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
13937         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
13938         (analyze_function): Likewise.
13939
13940 2010-07-23  Martin Jambor  <mjambor@suse.cz>
13941
13942         PR tree-optimization/44914
13943         * tree-sra.c (sra_modify_function_body): Return true if CFG was
13944         changed, add purging dead eh edges.
13945         (ipa_sra_modify_function_body): Return true if CFG was changed,
13946         simplify purging dead eh edges.
13947         (modify_function): Return true if CFG was changed.
13948         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
13949         was changed.
13950         (ipa_early_sra): Likewise.
13951
13952 2010-07-23  Jie Zhang  <jie@codesourcery.com>
13953
13954         PR target/44290
13955         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
13956         if "naked".
13957         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13958         false if ! tree_versionable_function_p.
13959
13960 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
13961
13962         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
13963         * ipa-pure-const.c (special_builtlin_state): Remove
13964         BUILT_IN_ARGS_INFO case.
13965         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13966         * builtins.c (expand_builtin): Likewise.
13967         (expand_builtin_args_info): Remove.
13968         * doc/tm.texi (__builtin_args_info): Remove.
13969         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
13970         * doc/tm.text.in: Likewise.
13971
13972 2010-07-23  Richard Guenther  <rguenther@suse.de>
13973
13974         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
13975         (lto_symtab_merge_decls_2): Likewise.
13976         * tree-ssa.c (useless_type_conversion_p): Likewise.
13977         * lto-streamer-in.c (input_gimple_stmt): Likewise.
13978         * gimple.c (gtc_visited2, gtc_ob2): Remove.
13979         (struct type_pair_d): Make same_p an array indexed by mode.
13980         Update comment.
13981         (lookup_type_pair): Update initialization.
13982         (struct sccs): Adjust same_p type.
13983         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
13984         Adjust.
13985         (print_gimple_types_stats): Likewise.
13986         * gimple.h (enum gtc_mode): New.
13987         (gimple_types_compatible_p): Adjust prototype.
13988
13989 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
13990
13991         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
13992         again after processing insn.
13993
13994 2010-07-23  Jie Zhang  <jie@codesourcery.com>
13995
13996         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
13997         proper words when !tree_versionable_function_p.
13998
13999 2010-07-23  Richard Guenther  <rguenther@suse.de>
14000
14001         PR tree-optimization/45037
14002         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
14003
14004 2010-07-23  Jie Zhang  <jie@codesourcery.com>
14005
14006         * doc/extend.texi: Remove IP2K from the description of naked attribute.
14007         Add MCORE instead.
14008
14009 2010-07-10  Andi Kleen  <ak@linux.intel.com>
14010
14011         PR lto/44992
14012         * lto-opts.c (lto_write_options): Add NULL file_data argument to
14013         lto_get_section_name.
14014         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
14015         * lto-streamer-out.c (produce_asm): Likewise.
14016         (copy_function): Likewise.
14017         (produce_symtab): Likewise.
14018         (produce_asm_for_decls): Likewise.
14019         * lto-streamer.c (lto_get_section_name): Add file_data argument.
14020         Rewrite to add random postfix to LTO sections.
14021         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
14022         (lto_get_section_name): Add file_data argument to prototype.
14023
14024 2010-07-10  Andi Kleen  <ak@linux.intel.com>
14025
14026         * lto-section-in.c (lto_section_name): Synchronize names
14027         with lto_get_section_name.
14028
14029 2010-07-10  Andi Kleen  <ak@linux.intel.com>
14030
14031         * lto-opts.c (lto_read_file_options): Check for missing section.
14032
14033 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
14034
14035         * ira.c (check_allocation): Correctly handle the case where an allocno
14036         with two objects was allocated to a single reg.
14037
14038 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
14039
14040         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
14041         (is_widening_mult_p): Likewise.
14042         (convert_to_widen): Use them.
14043         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
14044         well as integer ones.
14045
14046 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
14047
14048         * alias.c (true_dependence_1): New function, merged version of
14049         true_dependence and canon_true_dependence.
14050         (true_dependence): Simplify.
14051         (canon_true_dependence): Simplify.
14052
14053 2010-07-22  Richard Henderson  <rth@redhat.com>
14054
14055         PR target/45027
14056         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
14057         of V4SFmode for the SSE saves; increase stack alignment if needed.
14058         (ix86_gimplify_va_arg): Don't increase stack alignment here.
14059
14060 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
14061
14062         PR bootstrap/45028
14063         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
14064         call cprop_find_used_regs again via note_uses.
14065
14066 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
14067
14068         * alias.c (get_alias_set): Fix formatting issues.
14069
14070 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
14071
14072         PR middle-end/44878
14073         * stmt.c (expand_value_return):  Call promote_function_mode with
14074         a for_return argument of 2 when returning by reference.
14075
14076 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
14077
14078         PR debug/45024
14079         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
14080         unit DIE if we can find the scope DIE.
14081
14082 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
14083
14084         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
14085         changed.  Initialize OBJECT_SUBWORD.
14086         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
14087         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
14088         all callers changed.
14089         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
14090         (finish_allocno): Likewise.
14091         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
14092         (remove_low_level_allocnos): Likewise.
14093         (update_bad_spill_attribute): Likewise.
14094         (setup_min_max_allocno_live_range_point): Likewise.
14095         (sort_conflict_id_map): Likewise.
14096         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
14097         (ior_hard_reg_conflicts): New function.
14098         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
14099         (compress_conflict_vecs): Iterate over objects, not allocnos.
14100         (ira_add_live_range_to_object): New function.
14101         (object_range_compare_func): Renamed from allocno_range_compare_func.
14102         All callers changed.
14103         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
14104         subobjects, widen the min/max range of the lowest-order object to
14105         potentially include all other such low-order objects.
14106         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
14107         (check_allocation): Likewise.  Use more fine-grained tests for register
14108         conflicts.
14109         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
14110         allocno subobjects.
14111         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
14112         choices about which bits to set in each set.  Don't use
14113         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
14114         using the multiple sets we computed.
14115         (push_allocno_to_stack): Iterate over allocno subobjects.
14116         (all_conflicting_hard_regs_coalesced): New static function.
14117         (setup_allocno_available_regs_num): Use it.
14118         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
14119         subobjects.
14120         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
14121         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
14122         by ALLOCNO_NUM_OBJECTS.
14123         (calculate_spill_cost): Likewise.
14124         (color_pass): Express if statement in a more normal way.
14125         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
14126         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
14127         (setup_slot_coalesced_allocno_live_ranges): Likewise.
14128         (allocno_reload_assign): Likewise.
14129         (ira_reassign_pseudos): Likewise.
14130         (fast_allocation): Likewise.
14131         * ira-conflicts.c (build_conflict_bit_table): Likewise.
14132         (print_allocno_conflicts): Likewise.
14133         (ira_build_conflicts): Likewise.
14134         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
14135         callers changed.  Test subword 0 of each allocno for conflicts.
14136         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
14137         callers changed.  Iterate over allocno subobjects.
14138         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
14139         * ira-int.h (struct ira_allocno): New member: num_objects.
14140         Rename object to objects and change it into an array.
14141         (ALLOCNO_OBJECT): Add new argument N.
14142         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
14143         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
14144         (ior_hard_reg_conflicts): Declare.
14145         (ira_add_live_range_to_object): Declare.
14146         (ira_allocno_object_iterator): New.
14147         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
14148         (FOR_EACH_ALLOCNO_OBJECT): New macro.
14149         * ira-lives.c (objects_live): Renamed from allocnos_live; all
14150         uses changed.
14151         (allocnos_processed): New sparseset.
14152         (make_object_born): Renamed from make_allocno_born; take an
14153         ira_object_t argument.  All callers changed.
14154         (make_object_dead): Renamed from make_allocno_dead; take an
14155         ira_object_t argument.  All callers changed.
14156         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
14157         All callers changed.
14158         (mark_pseudo_regno_live): Iterate over allocno subobjects.
14159         (mark_pseudo_regno_dead): Likewise.
14160         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
14161         functions.
14162         (mark_ref_live): Detect subword accesses and call
14163         mark_pseudo_regno_subword_live as appropriate.
14164         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
14165         (process_bb_nodes_live): Deal with object-related updates first; set
14166         and test bits in allocnos_processed to avoid computing allocno
14167         statistics more than once.
14168         (create_start_finish_chains): Iterate over objects, not allocnos.
14169         (print_object_live_ranges): New function.
14170         (print_allocno_live_ranges): Use it.
14171         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
14172         and objects_live.
14173
14174 2010-07-22  Richard Guenther  <rguenther@suse.de>
14175
14176         PR lto/42451
14177         * gimple.c (gtc_next_dfs_num): New global.
14178         (struct sccs): Make value a union, add integer same_p member.
14179         (gtc_visit): New function.
14180         (gimple_types_compatible_p_1): New function, split out from ...
14181         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
14182         (iterative_hash_gimple_type): Adjust for sccs change.
14183
14184 2010-07-22  Martin Jambor  <mjambor@suse.cz>
14185
14186         PR tree-optimization/44891
14187         * tree-sra.c: Include gimple-pretty-print.h.
14188         (replace_uses_with_default_def_ssa_name): Renamed to
14189         get_repl_default_def_ssa_name, return the new SSA name instead of
14190         replacing the old one.
14191         (sra_modify_assign): Dump a message when removing a load, if the LHS
14192         is an SSA_NAME, do not do any propagation, just set the RHS to a
14193         default definition SSA NAME, type convert if necessary.
14194         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
14195
14196 2010-07-22  Richard Guenther  <rguenther@suse.de>
14197
14198         PR tree-optimization/45017
14199         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
14200         TYPE_PRECISION of integral types in addition to size.
14201
14202 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
14203
14204         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
14205         when no C library is specified.
14206
14207 2010-07-22  Martin Jambor  <mjambor@suse.cz>
14208
14209         * ipa-prop.h (struct ipa_node_params): Updated comment.
14210         (struct ipa_edge_args): Likewise.
14211         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
14212
14213 2010-07-22  Martin Jambor  <mjambor@suse.cz>
14214
14215         * cgraphunit.c (verify_edge_count_and_frequency): New function.
14216         (verify_cgraph_node): Verify frequencies of indirect edges.
14217         * tree-inline.c (tree_function_versioning): Update frequencies of
14218         indirect edges.
14219
14220 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14221
14222         PR target/43698
14223         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
14224         Set *arm_rev to be predicable.
14225
14226 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
14227
14228         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
14229         (LINK_COMMAND_SPEC_A): New.
14230         (DSYMUTIL): New.
14231         (DSYMUTIL_SPEC): New.
14232         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
14233         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
14234
14235 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
14236
14237         * calls.c (load_register_parameters): Move check for zero
14238         sized items so that only the call to
14239         mem_overlaps_already_clobbered_arg_p () is protected.
14240
14241 2010-07-22  Jan Hubicka  <jh@suse.cz>
14242
14243         * ipa-pure-const.c (varying_state): Break out from ...
14244         (get_function_state): ... here; always return varying_state
14245         when state would be NULL otherwise.
14246         (remove_node_data): Do not free varying state.
14247
14248 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
14249
14250         PR bootstrap/44970
14251         PR middle-end/45009
14252         * postreload.c: Include "target.h".
14253         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
14254         into account.
14255         (fixup_debug_insns): Don't copy the rtx.
14256         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
14257         Don't copy when replacing.  Call fixup_debug_insns in the case where
14258         we merged one add with another.
14259         (reload_combine_recognize_pattern): Fail if there aren't any uses.
14260         Try harder to determine whether we're picking a valid index register.
14261         Don't set store_ruid for an insn we're going to scan in the
14262         next iteration.
14263         (reload_combine): Remove unused code.
14264         (reload_combine_note_use): When updating use information for
14265         an old insn, ignore a use that occurs after store_ruid.
14266         * Makefile.in (postreload.o): Update dependencies.
14267
14268         * function.c (record_hard_reg_sets): Restrict the previous change
14269         to cases where the incoming nominal mode is the same as the
14270         incoming promoted mode and everything happens in MODE_INT.
14271
14272 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
14273
14274         PR debug/45015
14275         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
14276         ASM_OPERANDS_OUTPUT_IDX.
14277         (adjust_insn): For inline asm with multiple sets ensure first
14278         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
14279         the insn.
14280
14281 2010-07-21  Richard Henderson  <rth@redhat.com>
14282
14283         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
14284         comparison for avoiding xmm register saves.  Emit the xmm register
14285         saves explicitly.
14286         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
14287         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
14288         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
14289         Remove patterns and the associated splitters.
14290
14291 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
14292
14293         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
14294         and imagine parts of a complex, so that they can have the same
14295         base and fall into the same group.
14296
14297 2010-07-21  Richard Guenther  <rguenther@suse.de>
14298
14299         PR lto/45018
14300         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
14301         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
14302         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
14303
14304 2010-07-21  Martin Jambor  <mjambor@suse.cz>
14305
14306         PR tree-optimization/44900
14307         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
14308         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
14309
14310 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
14311
14312         PR middle-end/44738
14313         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
14314
14315 2010-07-21  Richard Guenther  <rguenther@suse.de>
14316
14317         PR middle-end/45013
14318         * tree-ssa.c (useless_type_conversion_p): Dispatch to
14319         gimple_types_compatible_p only when in lto.
14320         * gimple.c (gimple_types_compatible_p): Use canonical types
14321         to speed up comparison.
14322
14323 2010-07-21  Richard Guenther  <rguenther@suse.de>
14324
14325         * tree-flow.h (referenced_var): Move define ...
14326         * tree-flow-inline.h (referenced_var): ... here as an inline
14327         function.  Assert here ...
14328         * tree-dfa.c (referenced_var_lookup): ... instead of here.
14329         * tree-ssa.c (maybe_optimize_var): Check if the variable
14330         is in referenced vars.
14331         (execute_update_addresses_taken): Remove old broken check.
14332         * gimple-pretty-print.c (pp_points_to_solution): Use
14333         referenced_var_lookup.
14334         * tree-into-ssa.c (dump_decl_set): Likewise.
14335
14336 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
14337
14338         PR debug/45003
14339         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
14340         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
14341         ZERO_EXTEND here.
14342
14343 2010-07-20  Richard Henderson  <rth@redhat.com>
14344
14345         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
14346
14347 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
14348
14349         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
14350         computing the sum of the stack pointer and a large constant.
14351         * config/arm/constraints.md (M): Remove superfluous parentheses.
14352         (Pc): New constraint.
14353
14354 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
14355
14356         PR debug/45006
14357         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
14358         operand's type if exp is tcc_unary class tree.
14359
14360 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
14361
14362         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
14363         Reverse sense of if_then_else condition.
14364
14365 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
14366
14367         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
14368         * config/rs6000/rs6000.c (rs6000_override_options): Set
14369         rs6000_block_move_inline_limit appropriately.
14370         (expand_block_move): Use rs6000_block_move_inline_limit.
14371         * doc/invoke.texi (mblock-move-inline-limit): Document.
14372
14373 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
14374
14375         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
14376         FROM and TO.  All callers changed.  Don't look for tracked uses,
14377         just scan the RTL for DEBUG_INSNs and substitute.
14378         (reload_combine_recognize_pattern): Call fixup_debug_insns.
14379         (reload_combine): Ignore DEBUG_INSNs.
14380
14381 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
14382
14383         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
14384         depth to 8 from 5.
14385
14386         PR debug/45003
14387         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
14388         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
14389         instead of the result's type.
14390
14391 2010-07-20  Richard Guenther  <rguenther@suse.de>
14392
14393         PR tree-optimization/44977
14394         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
14395         SSA form.
14396
14397 2010-07-20  Richard Guenther  <rguenther@suse.de>
14398
14399         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
14400         (lto_symtab_merge_decls_2): Likewise.
14401         * gimple.h (gimple_types_compatible_p): Declare.
14402         * gimple.c (gimple_queue_type_fixup): Remove.
14403         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
14404         (gimple_compatible_complete_and_incomplete_type_p): New function.
14405         (gimple_types_compatible_p): Adjust.
14406         (gimple_register_type): Remove type fixup code.
14407         (print_gimple_types_stats): Adjust.
14408         (free_gimple_type_tables): Likewise.
14409         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
14410         * tree-ssa.c (useless_type_conversion_p): Likewise.
14411
14412 2010-07-20  Richard Guenther  <rguenther@suse.de>
14413
14414         PR middle-end/44971
14415         PR middle-end/44988
14416         * tree-ssa.c (maybe_optimize_var): New function split out from ...
14417         (execute_update_addresses_taken): ... here.
14418         (non_rewritable_mem_ref_base): Likewise.
14419         (execute_update_addresses_taken): Do not iterate over all referenced
14420         vars but just all local decls and parms.
14421         Properly check call and asm arguments and rewrite call arguments.
14422
14423 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
14424
14425         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
14426         to top level.
14427         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
14428         definitions ...
14429         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
14430         New macro.
14431         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
14432
14433 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
14434
14435         * gengtype.c (start_root_entry): New function, split out from
14436         write_root.  Check whether V is null and raise an error if so.
14437         (write_field_root): Check for V being null.  Don't raise an error here;
14438         set V to null instead.
14439         (write_root): Update comment above function.  Use start_root_entry.
14440
14441 2010-07-19  Xinliang David Li  <davidxl@google.com>
14442
14443         PR testsuite/44932
14444         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
14445         def edges.
14446         (find_uninit_use): Add dump.
14447         (is_use_properly_guarded): Ditto.
14448         (warn_uninitialized_phi): Ditto.
14449         (execute_late_warn_uninitialized): Ditto.
14450
14451 2010-07-19  Richard Guenther  <rguenther@suse.de>
14452
14453         PR middle-end/44941
14454         * expr.c (emit_block_move_hints): Move zero size check first.
14455         Move asserts to more useful places.
14456         * calls.c (load_register_parameters): Check for zero size.
14457
14458 2010-07-19  Richard Henderson  <rth@redhat.com>
14459
14460         * tree-optimize.c (execute_all_early_local_passes): New.  Change
14461         cgraph_state here ...
14462         (execute_early_local_optimizations): ... not here.  Remove.
14463         (pass_early_local_passes, pass_all_early_optimizations): Update.
14464
14465 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
14466
14467         * postreload.c (reload_combine_closest_single_use): Ignore the
14468         number of uses for DEBUG_INSNs.
14469         (fixup_debug_insns): New static function.
14470         (reload_combine_recognize_const_pattern): Use it.  Don't let the
14471         main loop be affected by DEBUG_INSNs.
14472         Really disallow moving adds past a jump insn.
14473         (reload_combine_recognize_pattern): Don't update use_ruid here.
14474         (reload_combine_note_use): Do it here.
14475         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
14476
14477 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
14478
14479         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
14480         of a loop.
14481         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
14482
14483 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
14484
14485         * config/i386/darwin.h: Define darwin_emit_branch_islands.
14486         (TARGET_MACHO_BRANCH_ISLANDS): New.
14487         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
14488         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
14489         default value.
14490         * config/i386/i386.c (output_pic_addr_const): Do not emit
14491         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
14492         (x86_output_mi_thunk): Adjust symbol creation.
14493         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
14494         Remove out of date comment.
14495         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
14496         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14497         (DARWIN_GENERATE_ISLANDS): Ditto.
14498         (output_call):  Do not emit branch islands unless
14499         darwin_emit_branch_islands is set.
14500         * config/darwin.c: Declare darwin_emit_branch_islands.
14501         (machopic_indirect_data_reference): Do not emit unless
14502         darwin_emit_branch_islands is set.
14503         (darwin_override_options): Set darwin_emit_branch_islands
14504         where it is needed.
14505         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14506
14507 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14508
14509         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14510         sse_runtime, sse2_runtime.
14511
14512 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
14513
14514         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
14515         low half of a single-register SCmode return value before ORing
14516         it with the high half.
14517         * config/mips/mips16.S (MERGE_GPRf): Likewise.
14518
14519 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14520
14521         PR target/44805
14522         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
14523         on all targets.
14524
14525 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
14526
14527         PR target/42235
14528         * postreload.c (reload_cse_move2add): Return bool, true if anything.
14529         changed.  All callers changed.
14530         (move2add_use_add2_insn): Likewise.
14531         (move2add_use_add3_insn): Likewise.
14532         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
14533         reload_combine.
14534         (RELOAD_COMBINE_MAX_USES): Bump to 16.
14535         (last_jump_ruid): New static variable.
14536         (struct reg_use): New members CONTAINING_MEM and RUID.
14537         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
14538         (reload_combine_split_one_ruid, reload_combine_split_ruids,
14539         reload_combine_purge_insn_uses, reload_combine_closest_single_use
14540         reload_combine_purge_reg_uses_after_ruid,
14541         reload_combine_recognize_const_pattern): New static functions.
14542         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
14543         is true for our reg and that we have available index regs.
14544         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
14545         callers changed.  Use them to initialize fields in struct reg_use.
14546         (reload_combine): Initialize last_jump_ruid.  Be careful when to
14547         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
14548         Call reload_combine_recognize_const_pattern.
14549         (reload_combine_note_store): Update REAL_STORE_RUID field.
14550
14551 2010-07-16  Jason Merrill  <jason@redhat.com>
14552
14553         * Makefile.in (opts-common.o): Depend on options.h.
14554
14555 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
14556
14557         * tree.c (build_common_builtin_nodes): Use build_function_type_list
14558         instead of build_function_type.
14559         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
14560         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
14561
14562 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
14563
14564         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
14565         do all the work.
14566         (rs6000_emit_int_cmove): Use function pointers for insn generation.
14567         Don't force values into registers unnecessarily.
14568         (output_isel): Assert that we're not given conditions we can't handle.
14569         Delete corresponding code.
14570         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
14571         scc_comparison_operator constraint.  Permit 0 for the consequent
14572         operand.  Permit any GPR for the alternative operand.
14573         (isel_unsigned_<mode>): Likewise.
14574
14575 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
14576
14577         PR target/44942
14578         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
14579         argument to const_tree.
14580         * config/i386/i386.c (function_arg_advance): If padding needs to be
14581         inserted before argument, increment cum->words by number of padding
14582         words as well.
14583         (contains_aligned_value_p): Change argument to const_tree.
14584         (ix86_function_arg_boundary): Change second argument to const_tree.
14585
14586 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
14587
14588         PR target/42235
14589         * function.c (record_hard_reg_sets): New static function.
14590         (assign_parm_setup_reg): If an optab for extending exists and the
14591         generated code clobbbers no hard regs, emit the insn directly and
14592         create a REG_EQUIV note.
14593
14594 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14595
14596         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
14597         TREE_CHAIN.
14598         * c-typeck.c (push_init_level): Likewise.
14599         (process_init_element): Likewise.
14600
14601 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
14602
14603         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
14604         (integer_three_node): Add.
14605         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
14606         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
14607         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
14608         of call build_int_cst.
14609         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
14610         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
14611         (find_interesting_uses_address): Ditto.
14612         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
14613         * tree-eh.c (lower_eh_constructs_2): Ditto.
14614         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
14615         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
14616         * expmed.c (expand_divmod): Ditto.
14617         * tree-mudflap.c (mx_register_decls): Ditto.
14618         * varasm.c (array_size_for_constructor): Ditto.
14619         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
14620         * c-parser.c (c_parser_postfix_expression): Ditto.
14621
14622 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
14623
14624         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
14625         New static variables.
14626         (reload_combine_recognize_pattern): New static function, broken out
14627         of reload_combine.
14628         (reload_combine): Use it.  Only initialize first_index_reg and
14629         last_index_reg once.
14630
14631 2010-07-15  Richard Henderson  <rth@redhat.com>
14632
14633         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
14634         when done.
14635
14636 2010-07-15  Jan Hubicka  <jh@suse.cz>
14637
14638         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
14639         comdats for broken gold.
14640         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
14641
14642 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14643
14644         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
14645
14646 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14647
14648         * tree.h (DECL_CHAIN): Define.
14649         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
14650         * c-decl.c: Likewise.
14651         * c-parser.c: Likewise.
14652         * c-typeck.c: Likewise.
14653         * cfgexpand.c: Likewise.
14654         * cgraph.c: Likewise.
14655         * cgraphunit.c: Likewise.
14656         * combine.c: Likewise.
14657         * config/alpha/alpha.c: Likewise.
14658         * config/arm/arm.c: Likewise.
14659         * config/frv/frv.c: Likewise.
14660         * config/i386/i386.c: Likewise.
14661         * config/i386/winnt-cxx.c: Likewise.
14662         * config/ia64/ia64.c: Likewise.
14663         * config/iq2000/iq2000.c: Likewise.
14664         * config/mep/mep.c: Likewise.
14665         * config/mips/mips.c: Likewise.
14666         * config/pa/som.h: Likewise.
14667         * config/rs6000/rs6000.c: Likewise.
14668         * config/s390/s390.c: Likewise.
14669         * config/sh/sh.c: Likewise.
14670         * config/sh/symbian-cxx.c: Likewise.
14671         * config/sparc/sparc.c: Likewise.
14672         * config/spu/spu.c: Likewise.
14673         * config/stormy16/stormy16.c: Likewise.
14674         * config/vxworks.c: Likewise.
14675         * config/xtensa/xtensa.c: Likewise.
14676         * coverage.c: Likewise.
14677         * dbxout.c: Likewise.
14678         * dwarf2out.c: Likewise.
14679         * emit-rtl.c: Likewise.
14680         * expr.c: Likewise.
14681         * function.c: Likewise.
14682         * gimple-low.c: Likewise.
14683         * gimple-pretty-print.c: Likewise.
14684         * gimplify.c: Likewise.
14685         * integrate.c: Likewise.
14686         * ipa-inline.c: Likewise.
14687         * ipa-prop.c: Likewise.
14688         * ipa-split.c: Likewise.
14689         * ipa-struct-reorg.c: Likewise.
14690         * ipa-type-escape.c: Likewise.
14691         * langhooks.c: Likewise.
14692         * lto-cgraph.c: Likewise.
14693         * omp-low.c: Likewise.
14694         * stor-layout.c: Likewise.
14695         * tree-cfg.c: Likewise.
14696         * tree-complex.c: Likewise.
14697         * tree-dfa.c: Likewise.
14698         * tree-dump.c: Likewise.
14699         * tree-inline.c: Likewise.
14700         * tree-mudflap.c: Likewise.
14701         * tree-nested.c: Likewise.
14702         * tree-object-size.c: Likewise.
14703         * tree-pretty-print.c: Likewise.
14704         * tree-sra.c: Likewise.
14705         * tree-ssa-live.c: Likewise.
14706         * tree-ssa-loop-niter.c: Likewise.
14707         * tree-ssa-math-opts.c: Likewise.
14708         * tree-ssa-reassoc.c: Likewise.
14709         * tree-ssa-sccvn.c: Likewise.
14710         * tree-ssa-structalias.c: Likewise.
14711         * tree-tailcall.c: Likewise.
14712         * tree-vrp.c: Likewise.
14713         * tree.c: Likewise.
14714         * var-tracking.c: Likewise.
14715         * varasm.c: Likewise.
14716
14717 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14718
14719         PR target/44877
14720         * config/spu/spu.c (spu_expand_builtin_1): Allow references
14721         (as well as pointers) as argument to mask_for_load builtins.
14722
14723 2010-07-15  Richard Guenther  <rguenther@suse.de>
14724
14725         PR tree-optimization/44946
14726         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
14727         with accessing only padding properly.
14728
14729 2010-07-15  Jan Hubicka  <jh@suse.cz>
14730
14731         * ipa.c (function_and_variable_visibility): Variables marked as used
14732         should not be localized.
14733
14734 2010-07-15  Jan Hubicka  <jh@suse.cz>
14735
14736         * cgraph.c: Include lto-streamer.h
14737         (change_decl_assembler_name): Work when assembler name hash is at place.
14738         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
14739         be sure to rename it to avoid name clash.
14740         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
14741         Localize hidden symbols only when locally defined.
14742
14743 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
14744
14745         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
14746
14747 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
14748             Kevin F. Quinn  <kevquinn@gentoo.org>
14749
14750         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
14751         * common.opt: Add -Wtrampolines.
14752         * doc/invoke.texi: Add -Wtrampolines.
14753
14754 2010-07-15  Jie Zhang  <jie@codesourcery.com>
14755
14756         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
14757         cortex_a8_issue_ls.
14758
14759 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
14760
14761         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
14762         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
14763
14764 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14765
14766         * config/spu/spu.c (reg_names): Remove prototype.
14767         (call_used_regs): Likewise.
14768
14769 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
14770
14771         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
14772         "unused" with attribute "used".
14773         (__JCR_END__): Likewise.
14774         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
14775         "used" attribute.
14776         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
14777
14778 2010-07-14  Richard Guenther  <rguenther@suse.de>
14779
14780         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
14781         (maybe_fixup_decls): Likewise.
14782         (input_gimple_stmt): Do not fixup anything.
14783         * lto-streamer-out.c (output_gimple_stmt): Make sure all
14784         non-automatic variable uses are wrapped inside a MEM_REF.
14785
14786 2010-07-14  Richard Henderson  <rth@redhat.com>
14787
14788         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
14789         for functions.
14790         * varasm.c (assemble_variable): Remove early exit for functions;
14791         assert that we're given a variable.
14792
14793 2010-07-14  Jie Zhang  <jie@codesourcery.com>
14794
14795         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
14796         cortex_a8_default when neon_type is not none.
14797
14798 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14799
14800         * lower-subreg.c (subreg_context): New static bitmap.
14801         (decompose_multiword_subregs): Allocate and free it.
14802         (find_decomposable_subregs): Set a bit in it for a register that
14803         occurs in a subreg that changes mode but not size.
14804         (can_decompose_p): Test it instead of non_decomposable_context.
14805
14806 2010-07-14  Richard Guenther  <rguenther@suse.de>
14807
14808         PR tree-optimization/44824
14809         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
14810         is_gimple_mem_ref_addr.
14811         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
14812         non-decl_address_invariant_p addresses.
14813
14814 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14815
14816         * reload.c (find_reloads): Revert code to penalize small register
14817         classes that was brought in with the IRA merge.
14818
14819 2010-07-14  Richard Guenther  <rguenther@suse.de>
14820
14821         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
14822         as base of ARRAY_REFs.
14823
14824 2010-07-14  Richard Guenther  <rguenther@suse.de>
14825
14826         PR middle-end/44930
14827         * tree-pretty-print.c (do_niy): Do not print a newline.
14828
14829 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14830
14831         * ira-int.h (struct ira_object): New.
14832         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
14833         (struct ira_allocno): Remove members min, max,
14834         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
14835         conflict_allocnos_num and conflict_vec_p.  Add new member object.
14836         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
14837         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
14838         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
14839         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
14840         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
14841         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
14842         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
14843         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
14844         an ira_object_t rather than ira_allocno_t.  All uses changed.
14845         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14846         contains a vector of ira_object_t; all uses changed.
14847         (ira_objects_num): Declare variable.
14848         (ira_create_allocno_object): Declare function.
14849         (ira_conflict_vector_profitable_p): Adjust prototype.
14850         (ira_allocate_conflict_vec): Renamed from
14851         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
14852         (ira_allocate_object_conflicts): Renamed from
14853         ira_allocate_allocno_conflicts; first arg now ira_object_t.
14854         (struct ira_object_iterator): New.
14855         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
14856         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
14857         to conflict_vec_p.  All uses changed.
14858         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
14859         Changed to take into account that conflicts are now tracked for
14860         objects.
14861         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
14862         Args changed to accept ira_object_t.  All uses changed.
14863         (allocnos_conflict_p): New static function.
14864         (collected_conflict_objects): Renamed from collected_allocno_objects;
14865         now a vector of ira_object_t.  All uses changed.
14866         (build_conflict_bit_table): Changed to take into account that
14867         conflicts are now tracked for objects.
14868         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
14869         (print_allocno_conflicts, ira_build_conflicts): Likewise.
14870         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
14871         setup_allocno_left_conflicts_size, allocno_reload_assign,
14872         fast_allocation): Likewise.
14873         * ira-lives.c (make_hard_regno_born, make_allocno_born)
14874         process_single_reg_class_operands, process_bb_node_lives): Likewise.
14875         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
14876         Likewise.
14877         * ira-build.c (ira_objects_num): New variable.
14878         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14879         contains a vector of ira_object_t; all uses changed.
14880         (ira_object_id_map_vec): Corresponding change.
14881         (object_pool): New static variable.
14882         (initiate_allocnos): Initialize it.
14883         (finish_allocnos): Free it.
14884         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
14885         New functions.
14886         (ira_create_allocno): Don't set members that were removed.
14887         (ira_set_allocno_cover_class): Don't change conflict hard regs.
14888         (merge_hard_reg_conflicts): Changed to take into account that
14889         conflicts are now tracked for objects.
14890         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
14891         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
14892         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
14893         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
14894         setup_min_max_conflict_allocno_ids, ):  Likewise.
14895         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
14896         to ira_object_t; all callers changed.
14897         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
14898         to ira_object_t, all callers changed.
14899         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
14900         to ira_object_t, all callers changed.
14901         (conflict_check, curr_conflict_check_tick): Renamed from
14902         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
14903         changed.
14904         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
14905         arg changed to ira_object_t, all callers changed.
14906         (create_cap_allocno): Call ira_create_allocno_object.
14907         (finish_allocno): Free the corresponding object.
14908         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
14909         callers changed.  Adjusted for dealing with objects.
14910         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
14911         dealing with objects.
14912         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
14913
14914         * ira-int.h (struct live_range): Rename allocno member to object
14915         and change type to ira_object_t.
14916         (struct ira_object): New member live_ranges.
14917         (struct ira_allocno): Remove member live_ranges.
14918         (ALLOCNO_LIVE_RANGES): Remove.
14919         (OBJECT_LIVE_RANGES): New macro.
14920         (ira_create_live_range, ira_copy_live_range_list,
14921         ira_merge_live_range_list, ira_live_ranges_intersect_p,
14922         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
14923         * ira-build.c (ira_create_object): Initialize live ranges here.
14924         (ira_create_allocno): Not here.
14925         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
14926         changed to ira_object_t, all callers changed.
14927         (copy_live_range): Rename from copy_allocno_live_range, all callers
14928         changed.
14929         (ira_copy_live_range_list): Rename from
14930         ira_copy_allocno_live_range_list, all callers changed.
14931         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
14932         all callers changed.
14933         (ira_live_ranges_intersect_p): Rename from
14934         ira_allocno_live_ranges_intersect_p, all callers changed.
14935         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
14936         callers changed.
14937         (ira_finish_live_range_list): Rename from
14938         ira_finish_allocno_live_range_list, all callers changed.
14939         (change_object_in_range_list): Rename from change_allocno_in_range_list,
14940         last arg changed to ira_object_t, all callers changed.
14941         (finish_allocno): Changed to expect live ranges in the allocno's object.
14942         (move_allocno_live_ranges, copy_allocno_live_ranges,
14943         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
14944         ira_flattening, ira_build): Likewise.
14945         * ira-color.c (allocnos_have_intersected_live_ranges_p,
14946         slot_coalesced_allocno_live_ranges_intersect,
14947         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
14948         * ira-conflicts.c (build_conflict_bit_table): Likewise.
14949         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14950         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
14951         make_allocno_dead, create_start_finish_chains,
14952         remove_some_program_points_and_update_live_ranges,
14953         ira_debug_live_range_list): Likewise.
14954
14955         * ira-int.h (ira_object_conflict_iterator): Rename from
14956         ira_allocno_conflict_iterator.
14957         (ira_object_conflict_iter_init): Rename from
14958         ira_allocno_conflict_iter_init, second arg changed to
14959         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
14960         FOR_EACH_ALLOCNO_CONFLICT.
14961         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
14962         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
14963         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
14964         * ira-conflicts.c (print_allocno_conflicts): Likewise.
14965
14966 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
14967
14968         PR other/44874
14969         * tree-dump.c (dump_options): Add enumerate_locals entry.
14970         Add TDF_NOID exclusion to all entry.
14971         * tree-dump.h (dump_enumerated_decls): Declare.
14972         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
14973         Don't display type uid.
14974         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
14975         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
14976         * tree-ssa-live.c: Include gimple.h.
14977         (numbered_tree_d): New struct.
14978         (numbered_tree): New typedef.
14979         (DEF_VEC_O (numbered_tree): New.
14980         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
14981         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
14982         (dump_enumerated_decls): Likewise.
14983         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
14984         debug info and flag_dump_final_insns, call dump_enumerated_decls.
14985         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
14986         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
14987
14988 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
14989
14990         * expmed.h (MAX_BITS_PER_WORD): Move to...
14991         * defaults.h (MAX_BITS_PER_WORD): ...here.
14992
14993 2010-07-13  DJ Delorie  <dj@redhat.com>
14994
14995         * config/h8300/h8300.c (h8300_init_once): Default to
14996         -fstrict_volatile_bitfields.
14997
14998         * config/sh/sh.c (sh_override_options): Default to
14999         -fstrict_volatile_bitfields.
15000
15001         * config/rx/rx.c (rx_option_override): New.
15002
15003         * config/m32c/m32c.c (m32c_override_options): Default to
15004         -fstrict_volatile_bitfields.
15005
15006 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
15007
15008         * tree.h (build_function_call_expr): Delete.
15009         (build_call_expr_loc_array): New function.
15010         (build_call_expr_loc_vec): New function.
15011         * tree-flow.h (struct omp_region): Change type of ws_args field
15012         to a VEC.
15013         * builtins.c (build_function_call_expr): Delete.
15014         (build_call_expr_loc_array): New function.
15015         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
15016         (build_call_expr): Likewise.
15017         (build_call_expr_loc_vec): New function.
15018         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
15019         build_function_call_expr.
15020         * expr.c (emutls_var_address): Likewise.
15021         * varasm.c (emutls_common_1): Likewise.
15022         * omp-low.c (expand_omp_atomic_mutex): Likewise.
15023         (expand_omp_taskreg): Adjust for new type of region->ws_args.
15024         (get_ws_args_for): Return a VEC instead of a tree.
15025         (expand_parallel_call): Call build_call_expr_loc_vec instead of
15026         build_function_call_expr.
15027         * stor-layout.c (self_referential_size): Likewise.
15028
15029 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
15030
15031         PR testsuite/44701
15032         * recog.c (constrain_operands): Allow side-effects in memory
15033         operands if either < or > constraint is used, rather than if
15034         both < and > is used.
15035
15036 2010-07-13  Richard Guenther  <rguenther@suse.de>
15037
15038         PR middle-end/44911
15039         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
15040         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
15041         without name.
15042
15043 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
15044
15045         PR target/44761
15046         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
15047         to variable emited.
15048         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
15049         * config/sh/sh.md (symGOT_load): Likewise.
15050         (symDTPOFF2reg): Likewise.
15051         (symTPOFF2reg): Likewise.
15052
15053 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15054
15055         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
15056         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
15057
15058 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15059
15060         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
15061         explanation.
15062         Find ucontext_t * on Solaris 11.
15063         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
15064         Handle new Solaris 11 __sighndlr patterns.
15065
15066 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
15067
15068         PR debug/44901
15069         * vec.h (VEC_block_remove): Fix comment.
15070         * tree-ssa-live.c (remove_unused_locals): Don't use
15071         VEC_unordered_remove on local_decls, instead replace a single
15072         vector element in each iteration if at least one element had
15073         to be removed and VEC_truncate at the end.
15074         * omp-low.c (expand_omp_taskreg): Likewise.
15075
15076 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15077
15078         * c-decl.c (finish_function): Fix typo in comment.
15079
15080 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
15081
15082         PR bootstrap/44921
15083         * postreload.c (move2add_use_add3_insn): Silence gcc warning
15084         on min_regno.
15085
15086 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
15087
15088         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
15089         (simplify_stmt_using_ranges): Use it.
15090
15091 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15092
15093         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
15094         member.  Do not mark as GTY(()).
15095         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
15096         (spu_builtin_decls): New static variable.
15097         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
15098         (spu_init_builtins): Likewise.
15099         (spu_builtin_mul_widen_even): Likewise.
15100         (spu_builtin_mul_widen_odd): Likewise.
15101         (spu_builtin_mask_for_load): Likewise.
15102         (spu_builtin_vec_perm): Likewise.
15103         * config/spu/spu-c.c: Include "target.h".
15104         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
15105         of using spu_builtins[].fndecl.
15106
15107 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15108
15109         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
15110         imply -minterlink-mips16.
15111
15112 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15113
15114         * config/mips/mips.h (mips16_globals): Declare.
15115         (SWITCHABLE_TARGET): Define.
15116         * config/mips/mips.c: Include target-globals.h.
15117         (mips16_globals): New variable.
15118         (mips_set_mips16_mode): Use save_target_globals and
15119         restore_target_globals instead of target_reinit.
15120
15121 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15122
15123         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
15124         to say that the function can be called more than once.
15125         * target-globals.c (save_target_globals): Call init_reg_sets.
15126
15127 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15128
15129         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
15130         * bb-reorder.h: New file.
15131         * bb-reorder.c (default_target_bb_reorder): New variable.
15132         (this_target_bb_reorder): New conditional variable.
15133         (uncond_jump_length): Redefine as a macro.
15134         * target-globals.h (this_target_bb_reorder): Declare.
15135         (target_globals): Add a bb_reorder field.
15136         (restore_target_globals): Copy the bb_reorder field to
15137         this_target_bb-reorder.
15138         * target-globals.c: Include bb-reorder.h.
15139         (default_target_globals): Initialize the bb_reorder field.
15140         (save_target_globals): Likewise.
15141
15142 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15143
15144         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
15145         * gcse.h: New file.
15146         * gcse.c: Include gcse.h.
15147         (default_target_gcse): New variable.
15148         (this_target_gcse): New conditional variable.
15149         (can_copy): Redefine as a macro.
15150         (can_copy_init_p): New macro.
15151         (can_copy_p): Remove can_copy_init_p.
15152         * target-globals.h (this_target_gcse): Declare.
15153         (target_globals): Add a gcse field.
15154         (restore_target_globals): Copy the gcse field to this_target_gcse.
15155         * target-globals.c: Include gcse.h.
15156         (default_target_globals): Initialize the gcse field.
15157         (save_target_globals): Likewise.
15158
15159 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15160
15161         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
15162         and x_ira_prohibited_mode_move_regs_initialized_p.
15163         (ira_prohibited_mode_move_regs): Redefine as a macro.
15164         * ira.c (ira_prohibited_mode_move_regs): Delete.
15165         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
15166
15167 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15168
15169         * reload.h (target_reload): Add x_cached_reg_save_code and
15170         x_cached_reg_restore_code.
15171         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
15172         Redefine as macros.
15173
15174 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15175
15176         * Makefile.in (target-globals.o): Depend on builtins.h.
15177         * builtins.h: New file.
15178         * builtins.c: Include builtins.h.
15179         (default_target_builtins): New variable.
15180         (this_target_builtins): New conditional variable.
15181         (apply_args_mode, apply_result_mode): Redefine as macros.
15182         * target-globals.h (this_target_builtins): Declare.
15183         (target_globals): Add a builtins field.
15184         (restore_target_globals): Copy the builtins field to
15185         this_target_builtins.
15186         * target-globals.c: Include builtins.h.
15187         (default_target_globals): Initialize the builtins field.
15188         (save_target_globals): Likewise.
15189
15190 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15191
15192         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
15193         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
15194         from expmed.c.
15195         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
15196         (alg_hash, alg_hash_used_p): New macros.
15197         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
15198         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
15199         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
15200
15201 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15202
15203         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
15204         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
15205         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
15206         (this_op_costs, costs_classes): Redefine as macros.
15207         (record_reg_classes): Don't take op_costs as a parameter.
15208         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
15209         (scan_one_insn): Update call to record_operand_costs.
15210
15211 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15212
15213         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
15214         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
15215         (target_ira_int): New structure.
15216         (default_target_ira_int): Declare.
15217         (this_target_ira_int): Declare as a variable or define as a macro.
15218         (ira_reg_mode_hard_regset, ira_register_move_cost)
15219         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
15220         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
15221         (prohibited_class_mode_regs, ira_important_classes_num)
15222         (ira_important_classes, ira_reg_class_intersect)
15223         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
15224         (ira_reg_class_union): Redefine as macros.
15225         * ira.h (target_ira): New structure.
15226         (default_target_ira): Declare.
15227         (this_target_ira): Declare as a variable or define as a macro.
15228         (ira_available_class_regs, ira_hard_regno_cover_class)
15229         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
15230         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
15231         (ira_class_hard_regs_num): Redefine as macros.
15232         * ira.c (default_target_ira, default_target_ira_int): New variables.
15233         (this_target_ira, this_target_ira_int): New conditional variables.
15234         (ira_reg_mode_hard_regset, ira_memory_move_cost)
15235         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
15236         (ira_class_subset_p): Delete.
15237         (no_unit_alloc_regs): Redefine as a macro.
15238         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
15239         (ira_class_hard_regs_num, ira_class_hard_reg_index)
15240         (ira_available_class_regs): Delete.
15241         (alloc_reg_class_subclasses): Redefine as a macro.
15242         (ira_reg_class_cover_size, ira_reg_class_cover)
15243         (ira_important_classes_num, ira_important_classes)
15244         (ira_important_class_nums, ira_class_translate): Delete.
15245         (cover_class_order): Document the variable's lifetime.
15246         (reorder_important_classes): Don't set ira_important_class_nums.
15247         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
15248         (ira_reg_class_super_classes, ira_reg_class_union)
15249         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
15250         Delete.
15251         (setup_reg_class_nregs): Don't set ira_max_regs.
15252         (prohibited_class_mode_regs): Delete.
15253         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
15254         (target_globals): Add ira and ira_int fields.
15255         (restore_target_globals): Copy the ira field to this_target_ira
15256         and the ira_int field to this_target_ira_int.
15257         * target-globals.c: Include ira-int.h.
15258         (default_target_globals): Initialize the ira and ira_int fields.
15259         (save_target_globals): Likewise.
15260
15261 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15262
15263         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
15264         * cfgloop.h (target_cfgloop): New structure.
15265         (default_target_cfgloop): Declare.
15266         (this_target_cfgloop): Declare as a variable or define as a macro.
15267         (target_avail_regs, target_clobbered_regs, target_res_regs)
15268         (target_reg_cost, target_spill_cost): Redefine as macros.
15269         * cfgloopanal.c (default_target_cfgloop): New variable.
15270         (this_target_cfgloop): New conditional variable.
15271         (target_avail_regs, target_clobbered_regs, target_res_regs)
15272         (target_reg_cost, target_spill_cost): Delete.
15273         * target-globals.h (this_target_cfgloop): Declare.
15274         (target_globals): Add a cfgloop field.
15275         (restore_target_globals): Copy the cfgloop field to
15276         this_target_cfgloop.
15277         * target-globals.c: Include cfgloop.h.
15278         (default_target_globals): Initialize the cfgloop field.
15279         (save_target_globals): Likewise.
15280
15281 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15282
15283         * regs.h (target_regs): Add x_direct_load, x_direct_store and
15284         x_float_extend_from_mem.
15285         (direct_load, direct_store, float_extend_from_mem): New macros.
15286         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
15287
15288 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15289
15290         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
15291         (target-globals.o): Depend on $(LIBFUNCS_H).
15292         * libfuncs.h: Include hashtab.h.
15293         (libfunc_entry): Moved from optabs.c.
15294         (target_libfuncs): New structure.
15295         (default_target_libfuncs): Declare.
15296         (this_target_libfuncs): Declare as a variable or define as a macro.
15297         (libfunc_table): Redefine as a macro.
15298         * optabs.c (default_target_libfuncs): New variable.
15299         (this_target_libfuncs): New conditional variable.
15300         (libfunc_table): Delete.
15301         (libfunc_entry): Moved to optabs.h.
15302         (libfunc_hash): Redefine as a macro.
15303         (hash_libfunc, eq_libfunc): Fix comments.
15304         (init_optabs): Use libfunc_hash to detect cases where the function
15305         has already been called.  Clear the hash table instead of
15306         recreating it.
15307         * target-globals.h (this_target_libfuncs): Declare.
15308         (target_globals): Add a libfuncs field.
15309         (restore_target_globals): Copy the libfuncs field to
15310         this_target_libfuncs.
15311         * target-globals.c: Include libfuncs.h.
15312         (default_target_globals): Initialize the libfuncs field.
15313         (save_target_globals): Likewise.
15314
15315 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15316
15317         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
15318         in all dependency lists.
15319
15320 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15321
15322         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
15323         * optabs.h (target_optabs): New structure.
15324         (default_target_optabs): Declare.
15325         (this_target_optabs): Declare as a variable or define as a macro.
15326         (optab_table, convert_optab_table, direct_optab_table): Redefine
15327         as macros.
15328         * optabs.c (default_target_optabs): New variable.
15329         (this_target_optabs): New conditional variable.
15330         (optab_table, convert_optab_table, direct_optab_table): Delete.
15331         * target-globals.h (this_target_optabs): Declare.
15332         (target_globals): Add a optabs field.
15333         (restore_target_globals): Copy the optabs field to
15334         this_target_optabs.
15335         * target-globals.c: Include expr.h and optabs.h.
15336         (default_target_globals): Initialize the optabs field.
15337         (save_target_globals): Likewise.
15338
15339 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15340
15341         * flags.h (target_flagstate): Add x_flag_excess_precision.
15342         (flag_excess_precision): Redefine as a macro.
15343         * toplev.c (flag_excess_precision): Delete.
15344
15345 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15346
15347         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
15348         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
15349         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
15350         (no_caller_save_reg_set): Redefine as a macro.
15351         * reload.h (target_reload): Add x_caller_save_initialized_p and
15352         x_regno_save_mode.
15353         (caller_save_initialized_p): Redefine as a macro.
15354         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
15355         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
15356         (regno_save_mode): Redefine as a macro.
15357
15358 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15359
15360         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
15361         * expmed.h: New file.
15362         * expmed.c (default_target_costs): New variable.
15363         (this_target_costs): New conditional variable.
15364         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
15365         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
15366         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
15367         * target-globals.h (this_target_expmed): Declare.
15368         (target_globals): Add a expmed field.
15369         (restore_target_globals): Copy the expmed field to
15370         this_target_expmed.
15371         * target-globals.c: Include expmed.h.
15372         (default_target_globals): Initialize the expmed field.
15373         (save_target_globals): Likewise.
15374
15375 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15376
15377         * Makefile.in (target-globals.o): Depend on reload.h.
15378         * reload.h (target_reload): New structure.
15379         (default_target_reload): Declare.
15380         (this_target_reload): Declare as a variable or define as a macro.
15381         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
15382         * reload1.c (default_target_reload): New variable
15383         (this_target_reload): New conditional variable.
15384         (indirect_symref_ok, double_reg_address_ok): Delete.
15385         (spill_indirect_levels): Redefine as a macro.
15386         * target-globals.h (this_target_reload): Declare.
15387         (target_globals): Add a reload field.
15388         (restore_target_globals): Copy the reload field to
15389         this_target_reload.
15390         * target-globals.c: Include hard-reg-set.h.
15391         (default_target_globals): Initialize the reload field.
15392         (save_target_globals): Likewise.
15393
15394 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15395
15396         * rtl.h (target_rtl): Add x_static_reg_base_value.
15397         * alias.c (static_reg_base_value): Redefine as a macro.
15398
15399 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15400
15401         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
15402         (GTFILES): Remove reginfo.c.
15403         * rtl.h (target_rtl): Add x_top_of_stack.
15404         (top_of_stack): New macro.
15405         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
15406         (top_of_stack): Delete.
15407
15408 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15409
15410         * regs.h (target_regs): Add x_hard_regs_of_mode,
15411         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
15412         x_may_move_out_cost and x_last_mode_for_init_move_cost.
15413         (have_regs_of_mode, contains_reg_of_mode, move_cost)
15414         (may_move_in_cost, may_move_out_cost): Redefine as macros.
15415         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
15416         (may_move_in_cost, may_move_out_cost): Delete.
15417         (last_mode_for_init_move_cost): Redefine as a macro.
15418
15419 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15420
15421         * hard-reg-set.h (target_hard_regs): New structure.
15422         (default_target_hard_regs): Declare.
15423         (this_target_hard_regs): Declare as a variable or define as a macro.
15424         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
15425         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
15426         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
15427         (reg_class_size, reg_class_subclasses, reg_class_subunion)
15428         (reg_class_superunion, reg_names): Redefine as macros.
15429         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
15430         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
15431         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
15432         (reg_class_contents, reg_class_size, reg_class_subclasses)
15433         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
15434         (default_target_hard_regs): New variable
15435         (this_target_hard_regs, initial_call_really_used_regs)
15436         (initial_reg_alloc_order): New conditional variables.
15437         (initial_reg_names): New variable.
15438         (init_reg_sets): Assert that initial_call_really_used_regs,
15439         initial_reg_alloc_order and initial_reg_names
15440         are all the same size as their variable counterparts.  Use them to
15441         initialize those counterparts.
15442         * target-globals.h (this_target_hard_regs): Declare.
15443         (target_globals): Add a hard_regs field.
15444         (restore_target_globals): Copy the hard_regs field to
15445         this_target_hard_regs.
15446         * target-globals.c: Include hard-reg-set.h.
15447         (default_target_globals): Initialize the hard_regs field.
15448         (save_target_globals): Likewise.
15449
15450 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15451
15452         * Makefile.in (target-globals.o): Depend on $(RTL_H).
15453         * rtl.h (target_rtl): New structure.
15454         (default_target_rtl): Declare.
15455         (this_target_rtl): Declare as a variable or define as a macro.
15456         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
15457         Redefine as macros.
15458         * emit-rtl.c (default_target_rtl): New variable.
15459         (this_target_rtl): New conditional variable.
15460         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
15461         (return_address_pointer_rtx): Delete.
15462         (initial_regno_reg_rtx): New macro.
15463         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
15464         (init_emit_regs): Likewise.
15465         * target-globals.h (this_target_rtl): Declare.
15466         (target_globals): Add a rtl field.
15467         (restore_target_globals): Copy the rtl field to this_target_rtl.
15468         * target-globals.c: Include rtl.h.
15469         (default_target_globals): Initialize the rtl field.
15470         (save_target_globals): Likewise.
15471
15472 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15473
15474         * Makefile.in (target-globals.o): Depend on $(REGS_H).
15475         * regs.h (target_reg_modes): New structure.
15476         (default_target_reg_modes): Declare.
15477         (this_target_reg_modes): Declare as a variable or define as a macro.
15478         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
15479         * reginfo.c (default_target_reg_modes): New variable.
15480         (this_target_reg_modes): New conditional variable.
15481         (hard_regno_nregs, reg_raw_mode): Delete.
15482         * target-globals.h (this_target_regs): Declare.
15483         (target_globals): Add a regs field.
15484         (restore_target_globals): Copy the regs field to this_target_regs.
15485         * target-globals.c: Include regs.h.
15486         (default_target_globals): Initialize the regs field.
15487         (save_target_globals): Likewise.
15488
15489 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15490
15491         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
15492         * doc/tm.texi: Regenerate.
15493         * Makefile.in (OBJS-common): Add target-globals.o.
15494         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
15495         and target-globals.h.
15496         (target-globals.o): New rule.
15497         (GTFILES): Include $(srcdir)/target-globals.h.
15498         * defaults.h (SWITCHABLE_TARGET): Define.
15499         * gengtype.c (open_base_files): Add target-globals.h to the
15500         list of includes.
15501         * target-globals.h: New file.
15502         * target-globals.c: Likewise.
15503
15504         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
15505         * flags.h (target_flag_state): New structure.
15506         (default_target_flag_state): Declare.
15507         (this_target_flag_state): Declare as a variable or define as a macro.
15508         (align_loops_log): Redefine as a macro.
15509         (align_loops_max_skip, align_jumps_log): Likewise.
15510         (align_jumps_max_skip, align_labels_log): Likewise.
15511         (align_labels_max_skip, align_functions_log): Likewise.
15512         * toplev.c (default_target_flag_state): New variable.
15513         (this_target_flag_state): New conditional variable.
15514         (align_loops_log): Delete.
15515         (align_loops_max_skip, align_jumps_log): Likewise.
15516         (align_jumps_max_skip, align_labels_log): Likewise.
15517         (align_labels_max_skip, align_functions_log): Likewise.
15518         * target-globals.h (this_target_flag_state): Declare.
15519         (target_globals): Add a flag_state field.
15520         (restore_target_globals): Copy the flag_state field to
15521         this_target_flag_state.
15522         * target-globals.c: Include flags.h.
15523         (default_target_globals): Initialize the flag_state field.
15524         (save_target_globals): Likewise.
15525
15526 2010-07-12  Jie Zhang  <jie@codesourcery.com>
15527
15528         * postreload.c (reg_symbol_ref[]): New.
15529         (move2add_use_add2_insn): New.
15530         (move2add_use_add3_insn): New.
15531         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
15532         (move2add_note_store): Likewise.
15533
15534 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
15535
15536         PR rtl-optimization/44752
15537         * genautomata.c (main): Don't emit an empty file even if there
15538         is no automaton.
15539
15540 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15541
15542         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
15543         ix86_solaris_return_in_memory.
15544         * config/i386-protos.h: Reflect this.
15545         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15546         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15547         Move ...
15548         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
15549
15550 2010-07-12  Jie Zhang  <jie@codesourcery.com>
15551
15552         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
15553         align the stack when it's going to be saved.
15554
15555 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15556
15557         PR pch/14940
15558         * config/host-solaris.c (mmap_fixed): New function.
15559         (sol_gt_pch_get_address): Use it.
15560         (sol_gt_pch_use_address): Likewise.
15561
15562 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15563
15564         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
15565         pentiumpro on Solaris 8 and 9/x86.
15566         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
15567         Document SSE/SSE2 support.
15568         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
15569
15570 2010-07-12  Andi Kleen  <ak@linux.intel.com>
15571
15572         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
15573         instead of gcc_assert to print better error message for multiple
15574         prevailing defs.
15575
15576 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
15577
15578         * config/i386/i386.c (ix86_asm_output_function_label): Change format
15579         string placeholder from 0x%x to %#x.
15580         (ix86_code_end): Use putc to output '\n'.
15581         (ix86_print_operand) <case ';'>: Use putc to output ';'.
15582
15583 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
15584
15585         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
15586         in directive -export.
15587
15588 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
15589
15590         * reginfo.h (reg_classes_intersect_p): Change arguments type to
15591         reg_class_t.
15592         * rtl.h (reg_classes_intersect_p): Adjust prototype.
15593
15594         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15595         Remove macros.
15596         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
15597         rs6000_memory_move_cost): Remove
15598         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
15599         TARGET_MEMORY_MOVE_COST): Define.
15600         (rs6000_register_move_cost): Make static. Change arguments type from
15601         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
15602         (rs6000_memory_move_cost): Make static. Change arguments type from
15603         'enum reg_class' to reg_class_t.
15604
15605 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
15606
15607         PR middle-end/42505
15608         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
15609         lookup code into....
15610         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
15611         new functions.
15612         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
15613         * cfgloopanal.c (target_clobbered_regs): Define.
15614         (init_set_costs): Initialize target_clobbered_regs.
15615         (estimate_reg_pressure_cost): Add call_p argument.  When true,
15616         adjust the number of available registers to exclude the
15617         call-clobbered registers.
15618         * cfgloop.h (target_clobbered_regs): Declare.
15619         (estimate_reg_pressure_cost): Adjust declaration.
15620         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
15621         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
15622         (determine_set_costs): Dump target_clobbered_regs.
15623         (loop_body_includes_call): New function.
15624         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
15625         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
15626         call_p flag through.
15627         (best_gain_for_invariant): Likewise.
15628         (find_invariants_to_move): Likewise.
15629         (move_single_loop_invariants): Likewise, using already-computed
15630         has_call field.
15631
15632 2010-07-10  Richard Guenther  <rguenther@suse.de>
15633             Joern Rennecke  <joern.rennecke@embecosm.com>
15634
15635         PR debug/44832
15636         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
15637         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
15638         unless they have DECL_IGNORED_P set.
15639
15640 2010-07-10  Richard Guenther  <rguenther@suse.de>
15641
15642         PR lto/44889
15643         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
15644         helper function.
15645         (gimple_types_compatible_p): Similar to pointed-to
15646         types allow and merge a mix of complete and incomplete aggregate.
15647         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
15648         (iterative_hash_gimple_type): Adjust for that.
15649
15650 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
15651
15652         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
15653
15654 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
15655
15656         PR objc/44140
15657         * config/darwin.c (output_objc_section_asm_op): Save and restore
15658         section when outputting ObjC section list.
15659
15660 2010-07-09  Jan Hubicka  <jh@suse.cz>
15661
15662         * lto-streamer-out.c (produce_symtab): Do not write alias
15663         cgraph/varpool nodes.
15664
15665 2010-07-09  Jan Hubicka  <jh@suse.cz>
15666
15667         * tree-inline.c (declare_return_variable): Fix ICE while
15668         inlining DECL_BY_VALUE function not in SSA form
15669
15670 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
15671
15672         PR tree-optimization/44576
15673         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
15674         New.  Pull out from is_loop_prefetching_profitable to implement
15675         the trip count to ahead ratio heuristic.
15676         (mem_ref_count_reasonable_p): New.  Pull out from
15677         is_loop_prefetching_profitable to implement the instruction to
15678         memory reference ratio heuristic.  Also consider not reasonable if
15679         the memory reference count is above a threshold (to avoid
15680         explosive compilation time.
15681         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
15682         is_loop_prefetching_profitable to implement the instruction to
15683         prefetch ratio heuristic.
15684         (is_loop_prefetching_profitable): Removed.
15685         (loop_prefetch_arrays): Distribute the cost analysis across the
15686         function to allow early exit of the prefetch analysis.
15687         is_loop_prefetching_profitable is splitted into three functions,
15688         with each one called as early as possible.
15689         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
15690         number of memory references in a loop is considered too many.
15691
15692 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
15693
15694         * reload.c (find_reloads): Don't clear badop if we have a winreg
15695         alternative, but not win, and the class only has fixed regs.
15696         * hard-reg-set.h (class_only_fixed_regs): Declare.
15697         * reginfo.c (class_only_fixed_regs): New array.
15698         (init_reg_sets_1): Initialize it.
15699         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
15700         discourage alternatives using the stack pointer.
15701
15702         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
15703
15704         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
15705
15706         * config/arm/arm.md (cbranchqi4): Fix array size.
15707         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
15708         calculating length.
15709
15710 2010-07-09  Richard Guenther  <rguenther@suse.de>
15711
15712         * gimple.c (struct type_fixup_s): New struct and VEC type.
15713         (gimple_register_type_fixups): New static global.
15714         (gimple_queue_type_fixup): New function.
15715         (gimple_types_compatible_p): Queue type fixups instead of
15716         applying them here.
15717         (gimple_register_type): Apply queued fixups for the
15718         canonical type.  Empty the type fixup queue.
15719
15720 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
15721
15722         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
15723         * configure: Regenerate.
15724         * config.in: Ditto.
15725
15726 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
15727             Denys Vlasenko  <dvlasenk@redhat.com>
15728             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15729
15730         PR tree-optimization/28632
15731         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
15732         (extract_range_from_binary_expr): Further optimize
15733         BIT_AND_EXPR and BIT_IOR_EXPR.
15734
15735 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
15736
15737         * tree-if-conv.c (fold_or_predicates): New.
15738         (add_to_predicate_list): Call it.
15739
15740 2010-07-09  Richard Guenther  <rguenther@suse.de>
15741
15742         PR middle-end/44890
15743         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
15744         if base is a pointer.
15745         * tree-cfg.c (verify_expr): Update MEM_REF checking.
15746
15747 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15748
15749         PR target/44877
15750         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
15751         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
15752         builtin mask for load/store builtins.
15753
15754 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
15755
15756         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
15757         for "lock addl".
15758         * configure: Regenerate.
15759         * config/i386/i386.c (ix86_print_operand) <case ';'>:
15760         Remove TARGET_MACHO.
15761
15762 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
15763
15764         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
15765         default ISA flags.
15766         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
15767
15768 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
15769
15770         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
15771
15772 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
15773
15774         * config/picochip/picochip.md (commsTestPort): Emit more
15775         efficient sequence for tstport instruction.
15776
15777 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
15778
15779         * config/i386/i386.c (ix86_veclib_handler): Make static.
15780
15781 2010-07-09  Richard Guenther  <rguenther@suse.de>
15782
15783         PR tree-optimization/44852
15784         * tree-ssa-alias.c: Include toplev.h for exact_log2.
15785         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
15786         in MEM_REF.
15787         (indirect_refs_may_alias_p): Likewise.
15788         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
15789
15790 2010-07-09  Richard Guenther  <rguenther@suse.de>
15791
15792         PR tree-optimization/44882
15793         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
15794         sets do conflict.
15795         (vectorizable_load): Likewise.
15796
15797 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
15798
15799         PR target/40657
15800         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
15801         All callers changed.
15802         Handle the case when we're called for the epilogue.
15803         (thumb_unexpanded_epilogue): Use it.
15804         (thumb1_expand_epilogue): Likewise.
15805
15806 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
15807
15808         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
15809         both ranges are range_int_cst_p with non-negative minimum,
15810         try harder to derive smaller range.
15811
15812 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15813
15814         * genrecog.c: Include diagnostic-core.h before toplev.h.
15815         * genoutput.c: Likewise.
15816         * genextract.c: Likewise.
15817         * genautomata.c: Likewise.
15818         * genemit.c: Likewise.
15819         * genpeep.c: Likewise.
15820         * genattrtab.c: Likewise.
15821         * genconditions.c: Likewise.
15822         * genpreds.c: Likewise.
15823
15824 2010-07-08  Andi Kleen  <ak@linux.intel.com>
15825
15826         * lto-section-in.c (lto_section_name): Add missing comma.
15827
15828 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
15829
15830         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
15831         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
15832         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
15833         (ia64_override_options): Rename to...
15834         (ia64_option_override): ... this one. Make static.
15835
15836 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15837
15838         PR middle-end/44843
15839         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
15840         pointed-to type of the offset in a MEM_REF to compute the alignment.
15841
15842 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
15843
15844         * final.c (final_scan_insn): Replace
15845         TARGET_UNWIND_INFO macro check by unwind_emit
15846         hook NULL check.
15847         * targhooks.c (default_unwind_emit): Removed.
15848         * targhooks.h (default_unwind_emit): Likewise.
15849         * target.def (unwind_emit): Set default value to NULL.
15850
15851         * config/i386/i386-protos.h (ix86_asm_output_function_label):
15852         New prototype.
15853         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
15854         for NULL fntype argument and allow 64-bit targets.
15855         (ix86_asm_output_function_label): New function.
15856         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
15857         (ix86_handle_fndecl_attribute): Likewise.
15858         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
15859         * doc/doc/tm.texi: Regenerated.
15860         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
15861         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
15862         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
15863         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
15864         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15865         * config/elfos.h: Likewise.
15866         * config/i386/cygming.h: Likewise.
15867         * config/netbsd-aout.h: Likewise.
15868         * config/openbsd.h: Likewise.
15869         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
15870         by ix86_asm_output_function_label function call.
15871         * varasm.c (assemble_start_function): Use
15872         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15873
15874 2010-07-08  Jan Hubicka  <jh@suse.cz>
15875
15876         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
15877         New function.
15878         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
15879         Declare.
15880         * ipa-cp.c (ipcp_estimate_growth): Use it.
15881         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
15882         Likewise.
15883
15884 2010-07-08  Jan Hubicka  <jh@suse.cz>
15885
15886         * tree-inline.c (declare_return_variable): Allocate annotation for new
15887         temporary.
15888
15889 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
15890
15891         PR tree-optimization/44710
15892         * tree-if-conv.c (parse_predicate): New.
15893         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
15894         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
15895
15896 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
15897
15898         * common.opt (ftree-loop-if-convert): New flag.
15899         * doc/invoke.texi (ftree-loop-if-convert): Documented.
15900         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
15901         when flag_tree_loop_if_convert is set.
15902
15903 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
15904
15905         * config/i386/i386.c: Use short syntax for function calls
15906         through function pointers.
15907         * config/i386/i386.md: Ditto.
15908
15909 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15910
15911         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
15912
15913 2010-07-08  Richard Guenther  <rguenther@suse.de>
15914
15915         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
15916         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
15917
15918 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
15919
15920         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
15921         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
15922         (loc_list_from_tree): Likewise.
15923         (output_loc_operands): Handle outputting DW_OP_const[48]u
15924         with loc->dtprel set.
15925         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
15926
15927 2010-07-08  Jan Hubicka  <jh@suse.cz>
15928
15929         * ipa.c: Include pointer-set.h
15930         (cgraph_externally_visible_p): New attribute ALIASED;
15931         when in LTO, hidden symbols are local unless they are aliased.
15932         (function_and_variable_visibility): Compute aliased nodes;
15933         handle LTO and hidden symbol on functions and vars.
15934         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
15935         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
15936
15937 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15938
15939         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15940         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15941         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15942         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15943         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15944         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
15945         (ix86_gen_probe_stack_range): Likewise.
15946         (override_options): Set them.
15947         (ix86_target_stack_probe): New function.
15948         (ix86_compute_frame_layout): Force use of push instructions to
15949         save registers if stack checking with probes is enabled.
15950         (get_scratch_register_on_entry): New function.
15951         (release_scratch_register_on_entry): Likewise.
15952         (ix86_adjust_stack_and_probe): Likewise.
15953         (output_adjust_stack_and_probe): Likewise.
15954         (ix86_emit_probe_stack_range): Likewise.
15955         (output_probe_stack_range): Likewise.
15956         (ix86_expand_prologue): Emit stack checking code if static built-in
15957         stack checking is enabled.
15958         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
15959         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
15960         (output_adjust_stack_and_probe): Likewise.
15961         (output_probe_stack_range): Likewise.
15962         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15963         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
15964         TARGET_STACK_PROBE.
15965         (allocate_stack_worker_64): Likewise.
15966         (allocate_stack): Likewise.
15967         (adjust_stack_and_probe): New insn.
15968         (probe_stack_range): Likewise.
15969
15970 2010-07-08  Richard Guenther  <rguenther@suse.de>
15971
15972         PR tree-optimization/44831
15973         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
15974         a MEM_REF preserving TBAA info of the original dereference.
15975         Dereference the original pointer if the address is not invariant.
15976         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
15977         at least one invariant address that we are going to dereference.
15978
15979 2010-07-08  Richard Guenther  <rguenther@suse.de>
15980
15981         PR tree-optimization/44861
15982         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
15983         information when building MEM_REFs.
15984         (vectorizable_load): Likewise.
15985         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
15986
15987 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15988
15989         * config/sol2-c.c: Do not include diagnostic-core.h.
15990
15991 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15992
15993         PR bootstrap/44768
15994         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
15995         with respect to current_function_decl. Pass decl of the function.
15996         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
15997         * ipa-inline.c (compute_inline_parameters): Pass decl to
15998         estimated_stack_frame_size.
15999
16000 2010-07-08  Richard Guenther  <rguenther@suse.de>
16001
16002         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16003         New function.
16004         (valueize_refs): Call it.
16005
16006 2010-07-08  Richard Guenther  <rguenther@suse.de>
16007
16008         PR rtl-optimization/44838
16009         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
16010         SSA form do not use pointer equivalence.
16011
16012 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
16013
16014         * dwarf2out.c (AT_linkage_name): Delete.
16015         (add_linkage_attr): New function.
16016         (add_linkage_name): Call it to emit the linkage attribute.
16017         (dwarf2out_finish): Likewise.
16018         (move_linkage_attr): Explicitly accept both attribute variants.
16019
16020 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16021
16022         * toplev.h: Do not include diagnostic-core.h.
16023         Include diagnostic-core.h in every file that includes toplev.h.
16024         * c-tree.h: Do not include toplev.h.
16025         * pretty-print.h: Update comment.
16026         * Makefile.in: Update dependencies.
16027         * alias.c: Include diagnostic-core.h in every file that includes
16028         toplev.h.
16029         * attribs.c: Likewise.
16030         * auto-inc-dec.c: Likewise.
16031         * bb-reorder.c: Likewise.
16032         * bt-load.c: Likewise.
16033         * caller-save.c: Likewise.
16034         * calls.c: Likewise.
16035         * cfg.c: Likewise.
16036         * cfganal.c: Likewise.
16037         * cfgbuild.c: Likewise.
16038         * cfgcleanup.c: Likewise.
16039         * cfghooks.c: Likewise.
16040         * cfgloop.c: Likewise.
16041         * combine.c: Likewise.
16042         * config/alpha/alpha.c: Likewise.
16043         * config/arc/arc.c: Likewise.
16044         * config/arm/arm.c: Likewise.
16045         * config/arm/pe.c: Likewise.
16046         * config/avr/avr.c: Likewise.
16047         * config/bfin/bfin.c: Likewise.
16048         * config/cris/cris.c: Likewise.
16049         * config/crx/crx.c: Likewise.
16050         * config/darwin-c.c: Likewise.
16051         * config/darwin.c: Likewise.
16052         * config/fr30/fr30.c: Likewise.
16053         * config/frv/frv.c: Likewise.
16054         * config/h8300/h8300.c: Likewise.
16055         * config/host-darwin.c: Likewise.
16056         * config/i386/i386.c: Likewise.
16057         * config/i386/netware.c: Likewise.
16058         * config/i386/nwld.c: Likewise.
16059         * config/i386/winnt-cxx.c: Likewise.
16060         * config/i386/winnt-stubs.c: Likewise.
16061         * config/i386/winnt.c: Likewise.
16062         * config/ia64/ia64-c.c: Likewise.
16063         * config/ia64/ia64.c: Likewise.
16064         * config/iq2000/iq2000.c: Likewise.
16065         * config/lm32/lm32.c: Likewise.
16066         * config/m32c/m32c-pragma.c: Likewise.
16067         * config/m32c/m32c.c: Likewise.
16068         * config/m32r/m32r.c: Likewise.
16069         * config/m68hc11/m68hc11.c: Likewise.
16070         * config/m68k/m68k.c: Likewise.
16071         * config/mcore/mcore.c: Likewise.
16072         * config/mep/mep-pragma.c: Likewise.
16073         * config/mep/mep.c: Likewise.
16074         * config/mmix/mmix.c: Likewise.
16075         * config/mn10300/mn10300.c: Likewise.
16076         * config/moxie/moxie.c: Likewise.
16077         * config/pa/pa.c: Likewise.
16078         * config/pdp11/pdp11.c: Likewise.
16079         * config/picochip/picochip.c: Likewise.
16080         * config/rs6000/rs6000-c.c: Likewise.
16081         * config/rs6000/rs6000.c: Likewise.
16082         * config/rx/rx.c: Likewise.
16083         * config/s390/s390.c: Likewise.
16084         * config/score/score.c: Likewise.
16085         * config/score/score3.c: Likewise.
16086         * config/score/score7.c: Likewise.
16087         * config/sh/sh.c: Likewise.
16088         * config/sh/symbian-base.c: Likewise.
16089         * config/sh/symbian-c.c: Likewise.
16090         * config/sh/symbian-cxx.c: Likewise.
16091         * config/sol2-c.c: Likewise.
16092         * config/sol2.c: Likewise.
16093         * config/sparc/sparc.c: Likewise.
16094         * config/spu/spu.c: Likewise.
16095         * config/stormy16/stormy16.c: Likewise.
16096         * config/v850/v850-c.c: Likewise.
16097         * config/v850/v850.c: Likewise.
16098         * config/vax/vax.c: Likewise.
16099         * config/vxworks.c: Likewise.
16100         * config/xtensa/xtensa.c: Likewise.
16101         * convert.c: Likewise.
16102         * cse.c: Likewise.
16103         * cselib.c: Likewise.
16104         * dbgcnt.c: Likewise.
16105         * dbxout.c: Likewise.
16106         * ddg.c: Likewise.
16107         * dominance.c: Likewise.
16108         * emit-rtl.c: Likewise.
16109         * explow.c: Likewise.
16110         * expmed.c: Likewise.
16111         * fixed-value.c: Likewise.
16112         * fold-const.c: Likewise.
16113         * fwprop.c: Likewise.
16114         * gcse.c: Likewise.
16115         * ggc-common.c: Likewise.
16116         * ggc-page.c: Likewise.
16117         * ggc-zone.c: Likewise.
16118         * gimple-low.c: Likewise.
16119         * gimplify.c: Likewise.
16120         * graph.c: Likewise.
16121         * haifa-sched.c: Likewise.
16122         * ifcvt.c: Likewise.
16123         * implicit-zee.c: Likewise.
16124         * integrate.c: Likewise.
16125         * ira-build.c: Likewise.
16126         * ira-color.c: Likewise.
16127         * ira-conflicts.c: Likewise.
16128         * ira-costs.c: Likewise.
16129         * ira-lives.c: Likewise.
16130         * ira.c: Likewise.
16131         * lists.c: Likewise.
16132         * loop-doloop.c: Likewise.
16133         * loop-iv.c: Likewise.
16134         * lto-opts.c: Likewise.
16135         * lto-symtab.c: Likewise.
16136         * main.c: Likewise.
16137         * modulo-sched.c: Likewise.
16138         * optabs.c: Likewise.
16139         * params.c: Likewise.
16140         * plugin.c: Likewise.
16141         * postreload-gcse.c: Likewise.
16142         * postreload.c: Likewise.
16143         * predict.c: Likewise.
16144         * profile.c: Likewise.
16145         * real.c: Likewise.
16146         * regcprop.c: Likewise.
16147         * reginfo.c: Likewise.
16148         * regmove.c: Likewise.
16149         * reorg.c: Likewise.
16150         * resource.c: Likewise.
16151         * rtl.c: Likewise.
16152         * rtlanal.c: Likewise.
16153         * sched-deps.c: Likewise.
16154         * sched-ebb.c: Likewise.
16155         * sched-rgn.c: Likewise.
16156         * sdbout.c: Likewise.
16157         * sel-sched-dump.c: Likewise.
16158         * sel-sched-ir.c: Likewise.
16159         * simplify-rtx.c: Likewise.
16160         * stmt.c: Likewise.
16161         * stor-layout.c: Likewise.
16162         * store-motion.c: Likewise.
16163         * targhooks.c: Likewise.
16164         * tree-cfg.c: Likewise.
16165         * tree-cfgcleanup.c: Likewise.
16166         * tree-dump.c: Likewise.
16167         * tree-eh.c: Likewise.
16168         * tree-inline.c: Likewise.
16169         * tree-nomudflap.c: Likewise.
16170         * tree-object-size.c: Likewise.
16171         * tree-optimize.c: Likewise.
16172         * tree-outof-ssa.c: Likewise.
16173         * tree-phinodes.c: Likewise.
16174         * tree-profile.c: Likewise.
16175         * tree-ssa-ccp.c: Likewise.
16176         * tree-ssa-coalesce.c: Likewise.
16177         * tree-ssa-live.c: Likewise.
16178         * tree-ssa-loop-niter.c: Likewise.
16179         * tree-ssa-loop-prefetch.c: Likewise.
16180         * tree-ssa-loop.c: Likewise.
16181         * tree-ssa-structalias.c: Likewise.
16182         * tree-ssa-uninit.c: Likewise.
16183         * tree-ssa.c: Likewise.
16184         * tree-vect-data-refs.c: Likewise.
16185         * tree-vect-loop-manip.c: Likewise.
16186         * tree-vect-loop.c: Likewise.
16187         * tree-vect-patterns.c: Likewise.
16188         * tree-vect-stmts.c: Likewise.
16189         * tree-vrp.c: Likewise.
16190         * varasm.c: Likewise.
16191         * vec.c: Likewise.
16192         * web.c: Likewise.
16193         * xcoffout.c: Likewise.
16194
16195 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
16196
16197         * gengtype.c (write_field_root): New function.
16198         (write_root): Use it.
16199
16200 2010-07-07  Wei Guozhi  <carrot@google.com>
16201
16202         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
16203         of lowest bits to lshift/compare): Add a missing line.
16204
16205 2010-07-07  Wei Guozhi  <carrot@google.com>
16206
16207         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
16208         of lowest bits to lshift/compare): New.
16209
16210 2010-07-07  Tom Tromey  <tromey@redhat.com>
16211
16212         * doc/tm.texi: Update.
16213         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
16214         Add @hook.
16215         * target.def (want_debug_pub_sections): New hook.
16216         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
16217         * dwarf2out.c (add_pubname_string): Check
16218         targetm.want_debug_pub_sections.
16219         (add_pubname): Likewise.
16220         (add_pubtype): Likewise.
16221
16222 2010-07-07  Jie Zhang  <jie@codesourcery.com>
16223
16224         * genautomata.c (output_automata_list_min_issue_delay_code):
16225         Correctly decompress min_issue_delay.
16226
16227 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16228
16229         PR rtl-optimization/44404
16230         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
16231         possible, use reg_overlap_mentioned_p instead.
16232
16233 2010-07-07  Duncan Sands  <baldrick@free.fr>
16234
16235         PR middle-end/41355
16236         * tree.c (build_function_type_skip_args): Copy the original type using
16237         build_distinct_type_copy rather than copy_node.
16238
16239 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16240
16241         PR target/44850
16242         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
16243         revision 161876.
16244         (ix86_expand_prologue): Likewise.
16245         (ix86_handle_fndecl_attribute): Likewise.
16246         (ix86_asm_declare_function_name): Likewise.
16247         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16248         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16249         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
16250         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
16251         * doc/extend.texi: Likewise.
16252
16253 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
16254
16255         PR target/44844
16256         * config/i386/i386.md (rdrand<mode>): Changed to expand to
16257         retry if the carry flag isn't valid.
16258         (rdrand<mode>_1): New.
16259
16260 2010-07-07  Richard Guenther  <rguenther@suse.de>
16261
16262         PR middle-end/44790
16263         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
16264         for expanding the constant offset for MEM_REFs.
16265
16266 2010-07-07  Richard Guenther  <rguenther@suse.de>
16267
16268         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
16269         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
16270         * gimple.h (is_gimple_operand): Remove.
16271         * gimple.c (is_gimple_operand): Likewise.
16272         (walk_gimple_op): Fix wi->val_only setting for calls.
16273         * tree-cfg.c (verify_gimple_call): Fix argument validation.
16274         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
16275         invalid gimple calls.
16276
16277 2010-07-06  Jan Hubicka  <jh@suse.cz>
16278
16279         * lto-cgraph.c (output_cgraph): Add missing declaration.
16280
16281 2010-07-06  Jan Hubicka  <jh@suse.cz>
16282
16283         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
16284         partition.
16285
16286 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
16287
16288         * doc/gimple.texi (GIMPLE_DEBUG): Document.
16289         * doc/rtl.texi (Debug Information): New node.
16290         (NOTE_INSN_VAR_LOCATION): Document.
16291         (debug_insn): Likewise.
16292         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
16293
16294 2010-07-07  Jan Hubicka  <jh@suse.cz>
16295
16296         With parts by Richard Guenther.
16297
16298         PR middle-end/44813
16299         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
16300         for functions passed by reference.
16301         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
16302         in memory when passed by reference.
16303         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
16304         beggining.
16305         * ipa-split.c (split_function): Cleanup way return value is passed;
16306         handle SSA DECL_BY_REFERENCE retvals.
16307         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
16308         DECL_BY_REFERENCE is set.
16309         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
16310         find_what_p_points_to): Handle RESULT_DECL.
16311         * tree-inline.c (declare_return_variable): Get new entry_block argument;
16312         when passing by reference ensure that RESULT_DECL is gimple_val.
16313         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
16314         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
16315
16316 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16317
16318         PR rtl-optimization/44787
16319         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
16320         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
16321
16322 2010-07-06  Jan Hubicka  <jh@suse.cz>
16323
16324         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
16325         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
16326         with body can prevail.
16327         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
16328         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
16329         * cgraph.c (cgraph_get_node_or_alias): New function.
16330         * cgraph.h (cgraph_get_node_or_alias): Declare.
16331
16332 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
16333
16334         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
16335         support.
16336         (ix86_expand_prologue): Likewise.
16337         (ix86_handle_fndecl_attribute): Likewise.
16338         (ix86_asm_declare_function_name): New function for
16339         ASM_DECLARE_FUNCTION_NAME.
16340         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
16341         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
16342         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
16343         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
16344         * doc/extend.texi: Adjust documentation about ms_hook_prologue
16345         attribute.
16346
16347 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
16348
16349         * config/i386/i386.md (immediate_operand): New mode attribute.
16350
16351         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
16352         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
16353         using P mode iterator.
16354         (pro_epilogue_adjust_stack_di_2): Rename from
16355         pro_epilogue_adjust_stack_rex64_2.
16356
16357         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
16358
16359 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
16360
16361         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
16362         through gen_mov_insv_1 function pointer.
16363         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
16364         gen_truncxf<mode>2 through gen_truncxf function pointer.
16365         (remainder<mode>3): Ditto.
16366         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
16367         (allocate_stack): Call gen_allocate_stack_worker_64 or
16368         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
16369         function pointer.
16370         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
16371         function pointer.
16372
16373 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
16374
16375         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
16376         operand constraint instead of <r><i>m.
16377
16378 2010-07-06  Richard Guenther  <rguenther@suse.de>
16379
16380         PR middle-end/44828
16381         * convert.c (convert_to_integer): Watch out for overflowing
16382         MULT_EXPR as well.
16383
16384 2010-07-05  Jan Hubicka  <jh@suse.cz>
16385
16386         * lto-streamer.c (write_symbol_vec): Rename to ...
16387         (write_symbol) ... this one; write only symbol given and when
16388         present in cache. Sanity check that what is defined is present
16389         in cgraph/varpool with body/finalized decl.
16390         (write_symbols_of_kind): Remove.
16391         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
16392         pairs to produce symtab.
16393         (produce_asm_for_decls): Update call of produce_symtab; don't do so
16394         when doing WPA streaming.
16395
16396 2010-07-05  Jan Hubicka  <jh@suse.cz>
16397
16398         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
16399         function is still available to fold into.
16400
16401 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
16402
16403         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
16404         * function.h (struct_function): Change type of local_decls field
16405         to a VEC.
16406         (add_local_decl): New function.
16407         (FOR_EACH_LOCAL_DECL): New macro.
16408         * cfgexpand.c (init_vars_expansion): Adjust for new type of
16409         cfun->local_decls.
16410         (estimated_stack_frame_size): Likewise.
16411         (expand_used_vars): Likewise.
16412         * cgraphbuild.c (build_cgraph_edges): Likewise.
16413         * function.c (instantiate_decls_1): Likewise.
16414         * ipa-struct-reorg.c (build_data_structure): Likewise.
16415         * ipa-type-escape.c (analyze_function): Likewise.
16416         * lto-streamer-in.c (input_function): Likewise.
16417         * lto-streamer-out.c (output_function): Likewise.
16418         * tree-ssa-live.c (remove_unused_locals): Likewise.
16419         * tree.c (free_lang_data_in_decl): Likewise.
16420         (find_decls_types_in_node): Likewise.
16421         * omp-low.c (remove_exit_barrier): Likewise.
16422         (expand_omp_taskreg): Likewise.
16423         (list2chain): Rename to...
16424         (vec2chain): ...this.  Adjust.
16425         * cgraphunit.c (assemble_thunk): Call add_local_decl.
16426         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
16427         * gimple-low.c (record_vars_into): Likewise.
16428         * tree-inline.c (remap_decls): Likewise.
16429         (declare_return_variable): Likewise.
16430         (declare_inline_vars): Likewise.
16431         (copy_forbidden): Adjust for new type of cfun->local_decls.
16432         (add_local_variables): New function.
16433         (expand_call_inline): Call it.
16434         (tree_function_versioning): Likewise.
16435
16436 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
16437
16438         AVX Programming Reference (June, 2010)
16439         * config/i386/cpuid.h (bit_F16C): New.
16440         (bit_RDRND): Likewise.
16441         (bit_FSGSBASE): Likewise.
16442
16443         * config/i386/i386-builtin-types.def: Add
16444         "DEF_FUNCTION_TYPE (UINT16)", function types for
16445         float16 <-> float conversions and
16446         "DEF_FUNCTION_TYPE (VOID, UINT64)".
16447
16448         * config/i386/i386-c.c (ix86_target_macros_internal): Support
16449         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
16450         OPTION_MASK_ISA_F16C.
16451
16452         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
16453         (OPTION_MASK_ISA_RDRND_SET): Likewise.
16454         (OPTION_MASK_ISA_F16C_SET): Likewise.
16455         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
16456         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
16457         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
16458         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
16459         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
16460         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
16461         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
16462         (override_options): Handle them.
16463         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
16464         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
16465         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
16466         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
16467         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
16468         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
16469         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
16470         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
16471         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
16472         (bdesc_args): Likewise.
16473         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
16474         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
16475         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
16476         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
16477         Handle non-memory store.
16478
16479         * config/i386/i386.h (TARGET_FSGSBASE): New.
16480         (TARGET_RDRND): Likewise.
16481         (TARGET_F12C): Likewise.
16482
16483         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
16484         (UNSPEC_VCVTPS2PH): Likewise.
16485         (UNSPECV_RDFSBASE): Likewise.
16486         (UNSPECV_RDGSBASE): Likewise.
16487         (UNSPECV_WRFSBASE): Likewise.
16488         (UNSPECV_WRGSBASE): Likewise.
16489         (UNSPECV_RDRAND): Likewise.
16490         (rdfsbase<mode>): Likewise.
16491         (rdgsbase<mode>): Likewise.
16492         (wrfsbase<mode>): Likewise.
16493         (wrgsbase<mode>): Likewise.
16494         (rdrand<mode>): Likewise.
16495
16496         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
16497
16498         * config/i386/immintrin.h (_rdrand_u16): New.
16499         (_rdrand_u32): Likewise.
16500         (_readfsbase_u32): Likewise.
16501         (_readfsbase_u64): Likewise.
16502         (_readgsbase_u32): Likewise.
16503         (_readgsbase_u64): Likewise.
16504         (_writefsbase_u32): Likewise.
16505         (_writefsbase_u64): Likewise.
16506         (_writegsbase_u32): Likewise.
16507         (_writegsbase_u64): Likewise.
16508         (_rdrand_u64): Likewise.
16509         (_cvtsh_ss): Likewise.
16510         (_mm_cvtph_ps): Likewise.
16511         (_mm256_cvtph_ps): Likewise.
16512         (_cvtss_sh): Likewise.
16513         (_mm_cvtps_ph): Likewise.
16514         (_mm256_cvtps_ph): Likewise.
16515
16516         * config/i386/sse.md (vcvtph2ps): New.
16517         (*vcvtph2ps_load): Likewise.
16518         (vcvtph2ps256): Likewise.
16519         (vcvtps2ph): Likewise.
16520         (*vcvtps2ph): Likewise.
16521         (*vcvtps2ph_store): Likewise.
16522         (vcvtps2ph256): Likewise.
16523
16524         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
16525
16526         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
16527
16528 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
16529
16530         PR bootstrap/44512
16531         * genenums.c (main): Output include of insn-constants.h
16532         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
16533
16534 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
16535
16536         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
16537         (override_options): Initialize it.
16538         (ix86_expand_prologue): Use it.
16539
16540 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
16541
16542         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
16543
16544 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
16545
16546         * double-int.h (fit_double_type): Remove declaration.
16547         * double-int.c (fit_double_type): Remove function.
16548         * tree.h (int_fits_type_p): Adjust prototype.
16549         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
16550         instead of fit_double_type.
16551         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
16552         instead of fit_double_type and build_int_cst_wide.
16553         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
16554         instead of fit_double_type and build_int_cst_wide.
16555         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
16556         of fit_double_type.
16557
16558 2010-07-05  Jan Hubicka  <jh@suse.cz>
16559
16560         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
16561         in_other_partition.
16562         * lto-cgraph.c (referenced_from_other_partition_p,
16563         reachable_from_other_partition_p): Use in_other_partition flags.
16564         (output_node, output_varpool_node): COMDAT nodes always have private
16565         copies and thus are never used from other partition.
16566
16567 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
16568
16569         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
16570         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
16571         * config/ia64/ia64.c Include reload.h.
16572         (ia64_memory_move_cost): New function.
16573         (TARGET_MEMORY_MOVE_COST): Define.
16574         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
16575         memory_move_cost.
16576
16577 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
16578
16579         PR middle-end/42505
16580         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
16581         comments about cost model.
16582         (try_add_cand_for):  Add second strategy for choosing initial set
16583         based on original IVs, controlled by ORIGINALP argument.
16584         (get_initial_solution): Add ORIGINALP argument.
16585         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
16586         (find_optimal_iv_set): Try two different strategies for choosing
16587         the IV set, and return the one with lower cost.
16588
16589 2010-07-05  Richard Guenther  <rguenther@suse.de>
16590
16591         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
16592
16593 2010-07-05  Richard Guenther  <rguenther@suse.de>
16594
16595         * tree.c (reference_alias_ptr_type): New function.
16596         * tree.h (reference_alias_ptr_type): Declare.
16597         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
16598         allow non-TARGET_MEM_REF new refs.
16599         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
16600         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
16601         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
16602         (create_mem_ref): Get alias pointer type.  Adjust calls to
16603         create_mem_ref_raw.
16604         (maybe_fold_tmr): Likewise.
16605         * tree-flow.h (create_mem_ref): Adjust prototype.
16606
16607 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
16608
16609         PR c++/44808
16610         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
16611         *from_p is VAR_DECL.
16612
16613 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
16614
16615         * tree.h (build_call_list): Remove.
16616         * tree.c (build_call_list): Remove.
16617
16618 2010-07-05  Richard Guenther  <rguenther@suse.de>
16619
16620         * double-int.h (double_int_sub): Declare.
16621         * double-int.c (double_int_sub): New function.
16622         * dwarf2out.c (field_byte_offset): Use it.
16623         * fixed-value.c (do_fixed_add): Likewise.
16624         (do_fixed_multiply): Likewise.
16625         (do_fixed_divide): Likewise.
16626         * tree-predcom.c (add_ref_to_chain): Likewise.
16627         (determine_roots_comp): Likewise.
16628         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16629
16630 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
16631
16632         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
16633         implementations.
16634
16635 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
16636
16637         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
16638         * arm-modes.def (CC_NOTB): Don't define.
16639         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
16640         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
16641         (LTUGEU): New code_iterator.
16642         (cnb, optab): New corresponding code_attrs.
16643         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
16644         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
16645         using LTUGEU.
16646         (addsi3_carryin_shift_<optab>): Likewise.
16647         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
16648         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
16649         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
16650         (subsi3_compare): Renamed from subsi3_compare0_c.
16651         Change CC_NOTB to CC.
16652         (arm_subsi3_insn): Allow constants for operand 0.
16653         (compare_scc peephole for eq case): New.
16654         (compare_scc splitters): Change CC_NOTB to CC.
16655
16656 2010-07-05  Richard Guenther  <rguenther@suse.de>
16657
16658         * tree-ssa-loop-im.c (for_each_index): Do not handle
16659         ALIGN_INDIRECT_REF.
16660         (gen_lsm_tmp_name): Likewise.
16661         * tree-dump.c (dequeue_and_dump): Likewise.
16662         * tree-pretty-print.c (dump_generic_node): Likewise.
16663         (op_code_prio): Likewise.
16664         (op_symbol_code): Likewise.
16665         * tree.c (staticp): Likewise.
16666         (build1_stat): Likewise.
16667         * tree.h (INDIRECT_REF_P): Likewise.
16668         * fold-const.c (maybe_lvalue_p): Likewise.
16669         (operand_equal_p): Likewise.
16670         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16671         (ao_ref_init_from_vn_reference): Likewise.
16672         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
16673         (find_interesting_uses_address): Likewise.
16674         * dwarf2out.c (loc_list_from_tree): Likewise.
16675         * gimplify.c (gimplify_expr): Likewise.
16676         * tree-eh.c (tree_could_trap_p): Likewise.
16677         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16678         * cfgexpand.c (expand_debug_expr): Likewise.
16679         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16680         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
16681         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
16682         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
16683         * tree-ssa-operands.c (get_expr_operands): Likewise.
16684         * expr.c (safe_from_p): Likewise.
16685         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
16686         * tree-vect-data-refs.c (vect_setup_realignment): Build
16687         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
16688         * tree-vect-stmts.c (vectorizable_load): Likewise.
16689         * tree.def (ALIGN_INDIRECT_REF): Remove.
16690
16691 2010-07-05  Richard Guenther  <rguenther@suse.de>
16692
16693         PR tree-optimization/44784
16694         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
16695         for inserted stmts.
16696         (find_or_generate_expression): Fix SCCVN insertion check.
16697
16698 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
16699
16700         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
16701         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
16702         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
16703         directives.
16704
16705 2010-07-05  Ira Rosen  <irar@il.ibm.com>
16706
16707         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
16708         statements that are not vectorized.
16709         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
16710         in INSIDE_COST.
16711
16712 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
16713
16714         PR bootstrap/44820
16715         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
16716
16717 2010-07-05  Richard Guenther  <rguenther@suse.de>
16718
16719         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
16720         RESULT_DECLs properly.
16721
16722 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16723
16724         PR rtl-optimization/44695
16725         * config/i386/i386.md (extract_code): Removed.
16726         (<u>divmodqi4): Likewise.
16727         (divmodqi4): New.
16728         (udivmodqi4): Likewise.
16729         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
16730         (udivmodhiqi3): Likewise.
16731
16732 2010-07-04  Jan Hubicka  <jh@suse.cz>
16733
16734         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
16735
16736 2010-07-04  Jan Hubicka  <jh@suse.cz>
16737
16738         * cgraphunit.c (init_cgraph): Only initialize dump file if it
16739         is not already initialized.
16740
16741 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
16742
16743         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
16744         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
16745         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
16746         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
16747         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
16748         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
16749         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
16750         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
16751         (sync_new_nand_optab): Redefine as macros.
16752         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
16753         Delete.
16754         (direct_optab_index): New enum.
16755         (direct_optab_d): New structure.
16756         (direct_optab): New typedef.
16757         (direct_optab_table): Declare.
16758         (direct_optab_handler, set_direct_optab_handler): New functions.
16759         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
16760         (sync_lock_release_optab): New macros.
16761         * optabs.c (direct_optab_table): New variable.
16762         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
16763         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
16764         cmpstr_optab and cmpstrn_optab.
16765         (emit_conditional_move): Likewise for movcc_optab.
16766         (can_conditionally_move_p): Likewise for movcc_gen_code.
16767         (init_insn_codes): Clear direct_optab_table.
16768         (init_optabs): Don't initialize the new "direct optabs" here.
16769         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
16770         vcond_gen_code.
16771         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
16772         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
16773         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
16774         (expand_sync_operation): Likewise other sync_*_optabs.
16775         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
16776         to sync_compare_and_swap_optab.
16777         (expand_sync_lock_test_and_set): Use direct_optab_handler for
16778         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
16779         to the names of both.
16780         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
16781         cmpstr_optab and cmpstrn_optab.
16782         (expand_builtin_lock_release): Likewise sync_lock_release.
16783         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
16784         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
16785         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
16786         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
16787         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
16788         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
16789         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
16790         (sync_lock_test_and_set, sync_lock_release): Delete.
16791         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
16792         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
16793         * genopinit.c (optabs): Use set_direct_optab_handler for the new
16794         macro optabs.
16795         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
16796         the "optab" local variable.  Use direct_optab_handler for optab and
16797         sync_compare_and_swap_optab.
16798         * reload1.c (reload_in_optab, reload_out_optab): Delete.
16799         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
16800         reload_in_optab and reload_out_optab.
16801         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16802         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
16803         * config/pa/pa.c (pa_secondary_reload): Likewise.
16804         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
16805         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
16806         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
16807         (VMSupportsCS8_builtin): Likewise.
16808
16809 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
16810
16811         * optabs.h (optab_handlers): Change type of insn_code to int.
16812         (optab_handler, set_optab_handler, convert_optab_handler)
16813         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
16814         CODE_FOR_nothing".
16815         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
16816         (init_insn_codes): Zero both the above arrays.
16817         (init_optabs): Never call init_insn_codes first time around.
16818
16819 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
16820
16821         * optabs.h (optab_handler, convert_optab_handler): Turn into
16822         inline functions that return an insn code.
16823         (set_optab_handler, set_convert_optab_handler): New functions.
16824         * builtins.c: Replace optab_handler(X)->insn_code with
16825         optab_handler or set_optab_handler thoughout.  Likewise
16826         convert_optab_handler(X)->insn_code with convert_optab_handler
16827         and set_convert_optab_handler.
16828         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
16829         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
16830         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
16831         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
16832         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
16833         config/spu/spu.c: Likewise.
16834
16835 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16836
16837         PR target/44531
16838         * config.gcc (sh*-*-*): Use regular expressions instead of
16839         the 'i' modifier for sed substitutions.
16840
16841 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
16842
16843         * gimple.c (gimple_body): Comments added.
16844
16845 2010-07-04  Richard Guenther  <rguenther@suse.de>
16846
16847         PR middle-end/44809
16848         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
16849         of an INDIRECT_REF.
16850
16851 2010-07-04  Richard Guenther  <rguenther@suse.de>
16852
16853         PR tree-optimization/44479
16854         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
16855         extra SSA name copy statements which preserves points-to
16856         information.
16857         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16858         Copy points-to information for all pointers.  Properly handle
16859         MEM_REFs.
16860         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
16861         copy statements.
16862         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
16863         dependency.
16864
16865 2010-07-04  Richard Guenther  <rguenther@suse.de>
16866
16867         PR middle-end/44785
16868         * tree-inline.c (initialize_inlined_parameters): Do not
16869         re-use pointer-map slot over remap_type call.
16870
16871 2010-07-04  Richard Guenther  <rguenther@suse.de>
16872
16873         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
16874
16875 2010-07-04  Richard Guenther  <rguenther@suse.de>
16876
16877         PR tree-optimization/44656
16878         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
16879         again after value-replacing in the defintions lhs.
16880
16881 2010-07-04  Ira Rosen  <irar@il.ibm.com>
16882             Revital Eres  <eres@il.ibm.com>
16883
16884         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
16885         Document new arguments.
16886         * doc/tm.texi: Regenerate.
16887         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
16888         Handle unaligned store.
16889         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
16890         * target.def (builtin_vectorization_cost): Add new arguments.
16891         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
16892         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
16893         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
16894         (vect_vfa_segment_size): Fix indentation.
16895         * tree-vectorizer.h (struct _vect_peel_info): New.
16896         (struct _vect_peel_extended_info): New.
16897         (struct _loop_vec_info): Add new field for peeling hash table and a
16898         macro for its access.
16899         (VECT_MAX_COST): Define.
16900         (vect_get_load_cost): Declare.
16901         (vect_get_store_cost, vect_get_known_peeling_cost,
16902         vect_get_single_scalar_iteraion_cost): Likewise.
16903         (vect_supportable_dr_alignment): Add new argument.
16904         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
16905         field.
16906         (destroy_loop_vec_info): Free peeling hash table.
16907         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
16908         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
16909         vect_analyze_slp. Fix indentation.
16910         (vect_get_single_scalar_iteraion_cost): New function.
16911         (vect_get_known_peeling_cost): Likewise.
16912         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
16913         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
16914         statement. Move outside cost calculation inside unknown peeling case.
16915         Call vect_get_known_peeling_cost for known amount of peeling.
16916         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
16917         reference to the print message of forced alignment.
16918         (vect_verify_datarefs_alignment): Update call to
16919         vect_supportable_dr_alignment.
16920         (vect_get_data_access_cost): New function.
16921         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
16922         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
16923         vect_peeling_hash_choose_best_peeling): Likewise.
16924         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
16925         to store all the accesses in the loop and find best possible access to
16926         align using peeling for known alignment case. For unknown alignment
16927         check if stores are preferred or if peeling is worthy.
16928         (vect_find_same_alignment_drs): Analyze pairs of loads too.
16929         (vect_supportable_dr_alignment): Add new argument and check aligned
16930         accesses according to it.
16931         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
16932         (cost_for_stmt): Call vect_get_stmt_cost.
16933         (vect_model_simple_cost): Likewise.
16934         (vect_model_store_cost): Call vect_get_stmt_cost. Call
16935         vect_get_store_cost to calculate the cost of the statement.
16936         (vect_get_store_cost): New function.
16937         (vect_model_load_cost): Call vect_get_stmt_cost. Call
16938         vect_get_load_cost to calculate the cost of the statement.
16939         (vect_get_load_cost): New function.
16940         (vectorizable_store): Update call to vect_supportable_dr_alignment.
16941         (vectorizable_load): Likewise.
16942         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
16943         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
16944         arguments. Handle unaligned store.
16945         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
16946         (rs6000_builtin_support_vector_misalignment): Return true for word and
16947         double word alignments for VSX.
16948         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
16949         vect_supportable_dr_alignment and builtin_vectorization_cost.
16950
16951 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16952
16953         PR target/44597
16954         * config/pa/predicates.md (prefetch_cc_operand): Remove.
16955         (prefetch_nocc_operand): Likewise.
16956         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
16957         (prefetch_20): New insn.
16958         (prefetch_cc): Remove.
16959         (prefetch_nocc): Likewise.
16960
16961 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16962
16963         * expr.c (vector_mode_valid_p): Move to c-common.c.
16964         * expr.h (vector_mode_valid_p): Do not declare here.
16965         * system.h: Poison GCC_EXPR_H in front-ends.
16966         * Makefile.in: Update dependencies.
16967
16968 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16969
16970         PR target/44705
16971         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
16972
16973 2010-07-03  Jan Hubicka  <jh@suse.cz>
16974
16975         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
16976         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
16977         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
16978         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
16979         Likewise.
16980
16981         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
16982         Update timevars.V
16983         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
16984         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
16985         TV_IPA_LTO_DECL_OUT): New.
16986         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
16987
16988 2010-07-03  Jan Hubicka  <jh@suse.cz>
16989
16990         * ipa-inline.c (update_edge_key): Break out from ...
16991         update_callers_keys): ... here;
16992         (update_callee_keys): Update only the edges from caller to callee.
16993         (update_all_calle_keys): Do what update_calle_keys did.
16994         (decide_inlining_of_small_functions): Avoid recomputing of all
16995         callees when badness increase.
16996
16997 2010-07-03  Jie Zhang  <jie@codesourcery.com>
16998
16999         * config/arm/arm.c (arm_attr_length_move_neon): New.
17000         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
17001         * config/arm/neon.md (define_mode_attr V_slen): Remove.
17002         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
17003         to compute length attribute.
17004
17005 2010-07-03  Jie Zhang  <jie@codesourcery.com>
17006
17007         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
17008         as predicate for operand 1 and remove its constraint.
17009         * config/arm/predicates.md (vfp_register_operand): New.
17010         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
17011         (*push_fp_multi): Likewise.
17012
17013 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
17014
17015         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
17016
17017 2010-07-03  Jan Hubicka  <jh@suse.cz>
17018
17019         * config/i386/i386.c (override_options): Revert accidental commit.
17020
17021 2010-07-02  Le-Chun Wu  <lcwu@google.com>
17022
17023         PR c++/44128
17024         * doc/invoke.texi: Update documentation of -Wshadow.
17025
17026 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
17027             Julian Brown  <julian@codesourcery.com>
17028             Sandra Loosemore  <sandra@codesourcery.com>
17029
17030         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
17031         comparisons.  Adjust to take both operands.
17032         (arm_select_cc_mode): Handle DImode comparisons.
17033         (arm_gen_compare_reg): Generate a scratch register for DImode
17034         comparisons which require one.  Use xor for Thumb equality checks.
17035         (arm_const_double_by_immediates): New.
17036         (arm_print_operand): Allow 'Q' and 'R' for constants.
17037         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
17038         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
17039         arm_canonicalize_comparison.
17040         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
17041         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
17042         prototype.
17043         (arm_const_double_by_immediates): Declare.
17044         * config/arm/constraints.md (Di): New constraint.
17045         * config/arm/predicates.md (arm_immediate_di_operand)
17046         (arm_di_operand, cmpdi_operand): New.
17047         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
17048         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
17049         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
17050         (cstoredi4): Handle non-Cirrus also.
17051
17052 2010-07-02  Julian Brown  <julian@codesourcery.com>
17053             Sandra Loosemore  <sandra@codesourcery.com>
17054
17055         PR target/43703
17056         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
17057         (smax<mode>3): Disable for NEON float modes when
17058         flag_unsafe_math_optimizations is false.
17059         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
17060         (*mul<mode>3_neon)
17061         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
17062         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
17063         for NEON float modes when flag_unsafe_math_optimizations is false.
17064         (quad_halves_<code>v4sf): Only enable if
17065         flag_unsafe_math_optimizations is true.
17066         * doc/invoke.texi (ARM Options): Add note about floating point
17067         vectorization requiring -funsafe-math-optimizations.
17068
17069 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
17070             Julian Brown  <julian@codesourcery.com>
17071
17072         * config/arm/neon.md (UNSPEC_VABA): Delete.
17073         (UNSPEC_VABAL): Delete.
17074         (UNSPEC_VABS): Delete.
17075         (UNSPEC_VMUL_N): Delete.
17076         (adddi3_neon): New.
17077         (subdi3_neon): New.
17078         (mul<mode>3add<mode>_neon): Make the pattern named.
17079         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
17080         (neon_vadd<mode>): Replace with define_expand, and move the remaining
17081         unspec parts...
17082         (neon_vadd<mode>_unspec): ...to this.
17083         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
17084         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
17085         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
17086         (neon_vaba<mode>): Rewrite in terms of vabd.
17087         (neon_vabal<mode>): Rewrite in terms of vabdl.
17088         (neon_vabs<mode>): Rewrite without unspec.
17089         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
17090         (*arm_subdi3): Likewise.
17091         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
17092         No_op attribute to disable assembly output checks.
17093         * config/arm/arm_neon.h: Regenerated.
17094         * doc/arm-neon-intrinsics.texi: Regenerated.
17095
17096 2010-07-02  Jan Hubicka  <jh@suse.cz>
17097
17098         * ipa-split.c (split_function): For aggregate values, set the return
17099         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
17100         *<retval> = fncall.part ().
17101         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
17102
17103 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
17104
17105         * config/arm/neon.md (UNSPEC_VAND): Delete.
17106         (UNSPEC_VBIC): Delete.
17107         (UNSPEC_VCLZ): Delete.
17108         (UNSPEC_VCNT): Delete.
17109         (UNSPEC_VEOR): Delete.
17110         (UNSPEC_VORN): Delete.
17111         (UNSPEC_VORR): Delete.
17112         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
17113         core registers too.
17114         (anddi3_neon): Likewise.
17115         (orndi3_neon): Likewise.
17116         (bicdi3_neon): Likewise.
17117         (xordi3_neon): Likewise.
17118         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
17119         rid of unspec and handle unused operand.
17120         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
17121         * config/arm/predicates.md (imm_for_neon_logic_operand):
17122         Require TARGET_NEON.
17123         (imm_for_neon_inv_logic_operand): Likewise.
17124         * config/arm/arm.md (define_split for logical_binary_operator):
17125         Disable for NEON registers.
17126         (anddi3): Add new define_expand, and rename the insn.  Disable
17127         this insn for NEON, where anddi3_neon now applies.
17128         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
17129         (iordi3): As for anddi3.
17130         (xordi3): Likewise.
17131         * config/arm/neon.ml (Vand): Split DImode variants and mark them
17132         as No_op to disable testing for exact instruction match.
17133         (Vorr): Likewise.
17134         (Veor): Likewise.
17135         (Vbic): Likewise.
17136         (Vorn): Likewise.
17137         * config/arm/arm_neon.h: Regenerated.
17138         * doc/arm-neon-intrinsics.texi: Regenerated.
17139
17140 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
17141
17142         * expr.h (emit_stack_probe): Declare.
17143         * explow.c (emit_stack_probe): Make global.
17144         (anti_adjust_stack_and_probe): Fix comments.
17145         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
17146         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17147         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
17148         * config/sparc/sparc.c: Include except.h.
17149         (sparc_emit_probe_stack_range): New function.
17150         (output_probe_stack_range): Likewise.
17151         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
17152         built-in stack checking is enabled.
17153         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
17154         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
17155         (probe_stack_range): New insn.
17156
17157 2010-07-02  Richard Guenther  <rguenther@suse.de>
17158
17159         PR target/43958
17160         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
17161         for argument alignment.
17162
17163 2010-07-02  Jan Hubicka  <jh@suse.cz>
17164
17165         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
17166         walk backwards from entry_bb to check only those basic block of header
17167         that might lead to execution of split part.
17168         (consider_split) ... here.
17169         (find_return_bb): Allow assignment in return BB.
17170         (find_retval): New.
17171         (split_function): Fix name of cloned function; take care of updating
17172         return value in return_bb containing move.
17173
17174 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
17175
17176         PR target/44771
17177         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
17178         used variable insn.
17179
17180 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
17181
17182         * implicit-zee.c (combine_reaching_defs): Fix long lines.
17183         (is_set_with_extension_DI): Delete.
17184         (struct zero_extend_info): New structure.
17185         (add_removable_zero_extend): New function.
17186         (find_removable_zero_extends): Use note_stores to find SETs.
17187         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
17188
17189 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
17190
17191         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
17192         is_miss_rate_acceptable. Pull total_positions computation
17193         out of the loops.  Early return if miss_positions exceeds
17194         the acceptable threshold.
17195         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
17196         is_miss_rate_acceptable after renaming of compute_miss_rate.
17197
17198 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
17199
17200         PR middle-end/44576
17201         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
17202         of 1000) for miss rate if the address diference is greater than or
17203         equal to the cache line size (the two reference will never hit the
17204         same cache line).
17205
17206 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
17207
17208         PR target/42835
17209         * config/arm/arm-modes.def (CC_NOTB): New mode.
17210         * config/arm/arm.c (get_arm_condition_code): Handle it.
17211         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
17212         * config/arm/arm.md (subsi3_compare0_c): New pattern.
17213         (compare_scc): Now a define_and_split.  Add a number of extra
17214         splitters before it.
17215
17216         PR target/42172
17217         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
17218         and ZERO_EXTEND.
17219         (arm_rtx_costs_1): Likewise.
17220         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
17221         * config/arm/arm.md (is_arch6): New attribute.
17222         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
17223         extendqisi2): Tighten the code somewhat, avoiding invalid
17224         RTL to occur in the expander patterns.
17225         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
17226         (thumb1_zero_extendhisi2_v6): Delete.
17227         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
17228         (thumb1_extendhisi2_v6): Delete.
17229         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
17230         (thumb1_extendqisi2_v6): Delete.
17231         (zero_extendhisi2 for register input splitter): New.
17232         (zero_extendqisi2 for register input splitter): New.
17233         (thumb1_extendhisi2 for register input splitter): New.
17234         (extendhisi2 for register input splitter): New.
17235         (extendqisi2 for register input splitter): New.
17236         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
17237         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
17238         and add support for a register alternative requiring a split.
17239         (thumb1_zero_extendqisi2): Likewise.
17240         (arm_zero_extendqisi2): Likewise.
17241         (arm_extendhisi2): Likewise.
17242         (arm_extendqisi2): Likewise.
17243
17244 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
17245
17246         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
17247         instead of an unspec.
17248         (neon_expand_vector_init): Likewise.
17249         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
17250         (UNSPEC_VDUP_LANE): Delete.
17251         (UNSPEC VDUP_N): Delete.
17252         (UNSPEC_VGET_HIGH): Delete.
17253         (UNSPEC_VGET_LANE): Delete.
17254         (UNSPEC_VGET_LOW): Delete.
17255         (UNSPEC_VMVN): Delete.
17256         (UNSPEC_VSET_LANE): Delete.
17257         (V_double_vector_mode): New.
17258         (vec_set<mode>_internal): Make code emitted match that for the
17259         corresponding intrinsics.
17260         (vec_setv2di_internal): Likewise.
17261         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
17262         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
17263         (neon_vset_lane<mode>): Combine double and quad patterns and
17264         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
17265         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
17266         (neon_vdup_n<mode>): Rewrite RTL without unspec.
17267         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
17268         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
17269         with neon_vdup_lanev2di, adjusting the pattern from the latter
17270         to be predicable for consistency.
17271         (neon_vdup_lane<mode>_internal): New.
17272         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
17273         to avoid using an unspec.
17274         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
17275         (neon_vdup_lanev2di): Turn into a define_expand.
17276         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
17277         (neon_vget_high<mode>): Replace with....
17278         (neon_vget_highv16qi): New pattern using canonical RTL.
17279         (neon_vget_highv8hi): Likewise.
17280         (neon_vget_highv4si): Likewise.
17281         (neon_vget_highv4sf): Likewise.
17282         (neon_vget_highv2di): Likewise.
17283         (neon_vget_low<mode>): Replace with....
17284         (neon_vget_lowv16qi): New pattern using canonical RTL.
17285         (neon_vget_lowv8hi): Likewise.
17286         (neon_vget_lowv4si): Likewise.
17287         (neon_vget_lowv4sf): Likewise.
17288         (neon_vget_lowv2di): Likewise.
17289
17290         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
17291         test for this emitting vmov.
17292         (Vset_lane): Likewise.
17293         (Vdup_n): Likewise.
17294         (Vmov_n): Likewise.
17295
17296         * doc/arm-neon-intrinsics.texi: Regenerated.
17297
17298 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
17299
17300         * config/arm/neon.md (vec_extractv2di): Correct error in register
17301         numbering to reconcile with neon_vget_lanev2di.
17302
17303 2010-07-02  Richard Guenther  <rguenther@suse.de>
17304
17305         * tree-ssa-structalias.c (pt_solution_set_var): New function.
17306         * tree-ssa-alias.h (pt_solution_set_var): Declare.
17307         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
17308         points-to information.
17309
17310 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
17311
17312         * config/s390/s390.c (override_options): Adopt prefetching
17313         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
17314
17315 2010-07-02  Jan Hubicka  <jh@suse.cz>
17316
17317         * df-problems.c (df_kill_notes): Do not collect dead  notes.
17318         (df_set_note): Just call add_reg_note.
17319         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
17320         df_create_unused_note): Do not deal with lists of old notes.
17321         (df_note_bb_compute): Likewise.
17322
17323 2010-07-02  Richard Guenther  <rguenther@suse.de>
17324
17325         * tree-ssa-structalias.c (find_func_aliases): Handle
17326         pointer alignment via BIT_AND_EXPR.
17327         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
17328
17329 2010-07-02  Richard Guenther  <rguenther@suse.de>
17330
17331         * tree-data-ref.c (initialize_data_dependence_relation): Handle
17332         mismatching number of dimensions properly.
17333
17334 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17335
17336         PR target/44707
17337         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
17338         (lo_sum (high ...) ...) patterns generated by earlier passes.
17339
17340 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17341
17342         * doc/install.texi (Prerequisites): Document Perl requirement on
17343         Solaris 2.
17344         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
17345
17346 2010-07-02  Richard Guenther  <rguenther@suse.de>
17347
17348         PR middle-end/44777
17349         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
17350
17351 2010-07-02  Jan Hubicka  <jh@suse.cz>
17352
17353         PR middle-end/44706
17354         * predict.c (predict_paths_for_bb): Handle case when control dependence
17355         BB has only abnormal edges.
17356
17357 2010-07-02  Richard Guenther  <rguenther@suse.de>
17358
17359         PR tree-optimization/44748
17360         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
17361         the embedded conversion in MEM_REFs.
17362
17363 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
17364
17365         * reload.c: Include toplev.h.
17366         * recog.c:  Likewise.
17367         * Makefile.in: Adjust dependencies.
17368
17369 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
17370
17371         PR debug/44694
17372         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
17373         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
17374
17375 2010-07-01  Richard Guenther  <rguenther@suse.de>
17376
17377         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
17378         types for offsets.
17379
17380 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
17381
17382         PR target/44732
17383         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
17384         Fix argument types.
17385
17386 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
17387
17388         PR target/44727
17389         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17390         Make sure operand 0 dies.
17391
17392 2010-07-01  Richard Guenther  <rguenther@suse.de>
17393
17394         PR middle-end/42834
17395         PR middle-end/44468
17396         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
17397         * doc/generic.texi (References to storage): Document MEM_REF.
17398         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
17399         (print_call_name): Likewise.
17400         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
17401         (build_simple_mem_ref_loc): New function.
17402         (mem_ref_offset): Likewise.
17403         * tree.h (build_simple_mem_ref_loc): Declare.
17404         (build_simple_mem_ref): Define.
17405         (mem_ref_offset): Declare.
17406         * fold-const.c: Include tree-flow.h.
17407         (operand_equal_p): Handle MEM_REF.
17408         (build_fold_addr_expr_with_type_loc): Likewise.
17409         (fold_comparison): Likewise.
17410         (fold_unary_loc): Fold
17411         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
17412         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
17413         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
17414         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
17415         (ptr_deref_may_alias_ref_p_1): Likewise.
17416         (ao_ref_base_alias_set): Properly differentiate base object for
17417         offset and TBAA.
17418         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
17419         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
17420         (indirect_refs_may_alias_p): Likewise.
17421         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
17422         chasing code.
17423         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
17424         (call_may_clobber_ref_p_1): Likewise.
17425         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
17426         * expr.c (expand_assignment): Handle MEM_REF.
17427         (store_expr): Handle MEM_REFs from STRING_CSTs.
17428         (store_field): If expanding a MEM_REF of a non-addressable
17429         decl use bitfield operations.
17430         (get_inner_reference): Handle MEM_REF.
17431         (expand_expr_addr_expr_1): Likewise.
17432         (expand_expr_real_1): Likewise.
17433         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
17434         * alias.c (ao_ref_from_mem): Handle MEM_REF.
17435         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
17436         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
17437         (dr_analyze_indices): Likewise.
17438         (dr_analyze_alias): Likewise.
17439         (object_address_invariant_in_loop_p): Likewise.
17440         * gimplify.c (mark_addressable): Handle MEM_REF.
17441         (gimplify_cond_expr): Build MEM_REFs.
17442         (gimplify_modify_expr_to_memcpy): Likewise.
17443         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
17444         (gimple_fold_indirect_ref): Adjust.
17445         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
17446         * tree.def (MEM_REF): New tree code.
17447         * tree-dfa.c: Include toplev.h.
17448         (get_ref_base_and_extent): Handle MEM_REF.
17449         (get_addr_base_and_unit_offset): New function.
17450         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
17451         * gimple-fold.c (may_propagate_address_into_dereference): Handle
17452         MEM_REF.
17453         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
17454         accesses if the array has just one dimension.  Remove always true
17455         parameter.  Do not require type compatibility here.
17456         (maybe_fold_offset_to_component_ref): Remove.
17457         (maybe_fold_stmt_indirect): Remove.
17458         (maybe_fold_reference): Remove INDIRECT_REF handling.
17459         Fold back to non-MEM_REF.
17460         (maybe_fold_offset_to_address): Simplify.  Deal with type
17461         mismatches here.
17462         (maybe_fold_reference): Likewise.
17463         (maybe_fold_stmt_addition): Likewise.  Also handle
17464         &ARRAY + I in addition to &ARRAY[0] + I.
17465         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
17466         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
17467         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
17468         * tree-ssa.c (useless_type_conversion_p): Make most pointer
17469         conversions useless.
17470         (warn_uninitialized_var): Handle MEM_REF.
17471         (maybe_rewrite_mem_ref_base): New function.
17472         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
17473         to SSA form.
17474         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
17475         INDIRECT_REF handling.
17476         (copy_tree_body_r): Handle MEM_REF.
17477         * gimple.c (is_gimple_addressable): Adjust.
17478         (is_gimple_address): Likewise.
17479         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
17480         invariant base are invariant.
17481         (is_gimple_min_lval): Adjust.
17482         (is_gimple_mem_ref_addr): New function.
17483         (get_base_address): Handle MEM_REF.
17484         (count_ptr_derefs): Likewise.
17485         (get_base_loadstore): Likewise.
17486         * gimple.h (is_gimple_mem_ref_addr): Declare.
17487         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
17488         * tree-cfg.c (verify_address): New function, split out from ...
17489         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
17490         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
17491         INDIRECT_REFs.
17492         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
17493         INDIRECT_REF.  Allow conversions.
17494         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
17495         a register does not change its size.
17496         (verify_types_in_gimple_reference): Verify MEM_REF.
17497         (verify_gimple_assign_single): Disallow INDIRECT_REF.
17498         Handle MEM_REF.
17499         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
17500         New.
17501         (mark_address_taken): Handle MEM_REF.
17502         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
17503         (get_asm_expr_operands): Pass opf_not_non_addressable.
17504         (get_expr_operands): Handle opf_[not_]non_addressable.
17505         Handle MEM_REF.  Remove INDIRECT_REF handling.
17506         * tree-vrp.c (check_array_ref): Handle MEM_REF.
17507         (search_for_addr_array): Likewise.
17508         (check_array_bounds): Likewise.
17509         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
17510         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
17511         (ref_always_accessed_p): Likewise.
17512         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
17513         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
17514         Handle MEM_REF.
17515         * cgraphbuild.c (mark_load): Properly check for NULL result
17516         from get_base_address.
17517         (mark_store): Likewise.
17518         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
17519         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
17520         handling for MEM_REF.
17521         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
17522         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
17523         * builtins.c (stabilize_va_list_loc): Use the function ABI
17524         valist type if we couldn't canonicalize the argument type.
17525         Always dereference with the canonical va-list type.
17526         (maybe_emit_free_warning): Handle MEM_REF.
17527         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
17528         memmove to memcpy.
17529         * builtins.c (fold_builtin_memory_op): Use ref-all types
17530         for all memcpy foldings.
17531         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
17532         (build_outer_var_ref): Likewise.
17533         (scan_omp_1_op): Likewise.
17534         (lower_rec_input_clauses): Likewise.
17535         (lower_lastprivate_clauses): Likewise.
17536         (lower_reduction_clauses): Likewise.
17537         (lower_copyprivate_clauses): Likewise.
17538         (expand_omp_atomic_pipeline): Likewise.
17539         (expand_omp_atomic_mutex): Likewise.
17540         (create_task_copyfn): Likewise.
17541         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
17542         Remove old union trick.  Initialize constant offsets.
17543         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
17544         INDIRECT_REF.  Init base_alias_set properly.
17545         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
17546         (vn_reference_fold_indirect): Adjust for MEM_REFs.
17547         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
17548         for ARRAY_REFs.
17549         (may_insert): Remove.
17550         (visit_reference_op_load): Do not test may_insert.
17551         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
17552         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17553         a field to store the constant offset this op applies.
17554         (run_scc_vn): Adjust prototype.
17555         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
17556         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
17557         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
17558         bother about volatile qualifiers on pointers.
17559         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
17560         * tree-ssa-loop-ivopts.c
17561         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
17562         (strip_offset_1): Likewise.
17563         (find_interesting_uses_address): Replace INDIRECT_REF handling with
17564         MEM_REF handling.
17565         (get_computation_cost_at): Likewise.
17566         * ipa-pure-const.c (check_op): Handle MEM_REF.
17567         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
17568         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
17569         and constants.
17570         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
17571         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
17572         (eliminate_local_variables_1): Likewise.
17573         (create_call_for_reduction_1): Likewise.
17574         (create_loads_for_reductions): Likewise.
17575         (create_loads_and_stores_for_name): Likewise.
17576         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
17577         (ssa_accessed_in_tree): Handle MEM_REF.
17578         (ssa_accessed_in_assign_rhs): Likewise.
17579         (update_type_size): Likewise.
17580         (analyze_accesses_for_call_stmt): Likewise.
17581         (analyze_accesses_for_assign_stmt): Likewise.
17582         (transform_access_sites): Likewise.
17583         (transform_allocation_sites): Likewise.
17584         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
17585         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
17586         not handle INDIRECT_REF.
17587         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
17588         (cond_store_replacement): Likewise.
17589         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17590         MEM_REF, no not handle INDIRECT_REFs.
17591         (insert_into_preds_of_block): Properly initialize avail.
17592         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
17593         for ARRAY_REFs.  Properly handle reference lookups that
17594         require a bit re-interpretation.
17595         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
17596         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
17597         (build_ref_for_offset_1): Remove.
17598         (build_ref_for_offset): Build MEM_REFs.
17599         (gate_intra_sra): Disable for now.
17600         (sra_ipa_modify_expr): Handle MEM_REF.
17601         (ipa_early_sra_gate): Disable for now.
17602         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
17603         MEM_REF handling.
17604         (disqualify_base_of_expr): Likewise.
17605         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
17606         MEM_REF handling.
17607         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
17608         Use mem_ref_offset.  Remove bogus folding.
17609         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
17610         (make_fancy_name_1): Add support for MEM_REF.
17611         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
17612         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
17613         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
17614         (compute_complex_ancestor_jump_func): Likewise.
17615         (ipa_analyze_virtual_call_uses): Likewise.
17616         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
17617         INDIRECT_REF folding with more generalized MEM_REF folding.
17618         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
17619         (forward_propagate_addr_into_variable_array_index): Also handle
17620         &ARRAY + I in addition to &ARRAY[0] + I.
17621         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
17622         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
17623         creates assignments with overlap.
17624         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
17625         (get_frame_field): Likewise.
17626         (get_nonlocal_debug_decl): Likewise.
17627         (convert_nonlocal_reference_op): Likewise.
17628         (struct nesting_info): Add mem_refs pointer-set.
17629         (create_nesting_tree): Allocate it.
17630         (convert_local_reference_op): Insert to be folded mem-refs.
17631         (fold_mem_refs): New function.
17632         (finalize_nesting_tree_1): Perform defered folding of mem-refs
17633         (free_nesting_tree): Free the pointer-set.
17634         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
17635         (vectorizable_load): Likewise.
17636         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
17637         (propagate_with_phi): Likewise.
17638         * tree-object-size.c (addr_object_size): Handle MEM_REFs
17639         instead of INDIRECT_REFs.
17640         (compute_object_offset): Handle MEM_REF.
17641         (plus_stmt_object_size): Handle MEM_REF.
17642         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
17643         for &MEM_REF.
17644         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
17645         (symbol_marked_for_renaming): Likewise.
17646         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
17647         (fold-const.o): Add $(TREE_FLOW_H).
17648         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
17649         (find_func_clobbers): Likewise.
17650         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
17651         (decompose_access): Likewise.
17652         (replace_field_acc): Likewise.
17653         (replace_field_access_stmt): Likewise.
17654         (insert_new_var_in_stmt): Likewise.
17655         (get_stmt_accesses): Likewise.
17656         (reorg_structs_drive): Disable.
17657         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
17658         (ix86_canonical_va_list_type): Likewise.
17659
17660 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17661
17662         PR other/44566
17663         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
17664         * target.def (struct gcc_target): Replace enum reg_class with
17665         reg_class_t in hook argument / return types.
17666         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
17667         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
17668         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
17669         * targhooks.h (default_branch_target_register_class): Likewise.
17670         (default_ira_cover_classes, default_secondary_reload): Likewise.
17671         (default_memory_move_cost, default_register_move_cost): Likewise.
17672         * targhooks.c (default_branch_target_register_class): Likewise.
17673         (default_ira_cover_classes, default_secondary_reload): Likewise.
17674         (default_memory_move_cost, default_register_move_cost): Likewise.
17675         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
17676         * bt-load.c (branch_target_load_optimize): Likewise.
17677         * ira.c (setup_cover_and_important_classes): Likewise.
17678         * ira-costs.c (copy_cost): Likewise.
17679         * reload1.c (emit_input_reload_insns): Likewise.
17680         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
17681         * config/frv/frv.c (frv_secondary_reload): Likewise.
17682         * config/s390/s390.c (s390_secondary_reload): Likewise.
17683         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
17684         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
17685         (ix86_register_move_cost): Likewise.
17686         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
17687         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
17688         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
17689         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
17690         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
17691         (rs6000_ira_cover_classes): Likewise.
17692         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
17693         * config/picochip/picochip-protos.h (picochip_secondary_reload):
17694         Likewise.
17695         * config/pa/pa.c (pa_secondary_reload): Likewise.
17696         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
17697         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
17698         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
17699         * doc/tm.texi: Regenerate.
17700
17701 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
17702
17703         PR bootstrrap/44726
17704         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
17705         use.
17706         (build_alias_set_optimal_p): Likewise.
17707         (build_base_obj_set_for_drs): Likewise.
17708
17709 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17710
17711         * target.def: Remove comment about licensing problems of function
17712         declarations.
17713
17714         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
17715         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
17716         * doc/tm.texi: Regenerate.
17717
17718         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
17719         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
17720
17721         * target.def (enum_va_list_p): Use DEFHOOK.
17722         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
17723         Rename ptype to ptree.
17724         * doc/tm.texi: Regenerate.
17725
17726         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
17727         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
17728         * doc/tm.texi: Regenerate.
17729
17730         * target.def (memory_move_cost): Use DEFHOOK.
17731         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
17732         Rename regclass AKA class to rclass.
17733         * doc/tm.texi: Regenerate.
17734
17735         * target.def (pragma_parse): Use DEFHOOK.
17736         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
17737         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
17738         * doc/tm.texi: Regenerate.
17739
17740         * target.def (pass_by_reference): Use DEFHOOK.
17741         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
17742         * doc/tm.texi: Regenerate.
17743
17744         * target.def (resolve_overloaded_builtin): Rename params to arglist.
17745         Use DEFHOOK.
17746         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
17747         * doc/tm.texi: Regenerate.
17748
17749         * target.def (return_pops_args): Use DEFHOOK.
17750         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
17751         Rename stack-size to size.
17752         * doc/tm.texi: Regenerate.
17753
17754         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
17755         last-sched_cycle to last_clock, cur_cycle to clock.
17756         * doc/tm.texi.in: Use @hook.
17757         * doc/tm.texi: Regenerate.
17758
17759         * target.def (print_operand, print_operand_address): Update comment.
17760         (print_operand_punct_valid_p): Likewise.
17761
17762 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17763
17764         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
17765         to rtl.h.
17766         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
17767         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
17768         * rtl-error.h: New.
17769         * regrename.c: Do not include toplev.h. Include rtl-error.h.
17770         * rtl-error.c: Likewise.
17771         * reload.c: Likewise.
17772         * recog.c:  Likewise.
17773         * sel-sched.c: Likewise.
17774         * function.c: Likewise.
17775         * reg-stack.c: Likewise.
17776         * cfgrtl.c: Likewise.
17777         * reload1.c: Likewise.
17778         * final.c: Include rtl-error.
17779         * Makefile.in: Adjust dependencies.
17780
17781 2010-06-30  Jan Hubicka  <jh@suse.cz>
17782
17783         PR middle-end/PR44706
17784         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
17785         to return the value.
17786
17787 2010-06-30  Michael Matz  <matz@suse.de>
17788
17789         PR bootstrap/44699
17790         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
17791         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
17792         a gimple reg, attach the original VDEF to the last store in the
17793         sequence.
17794
17795 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
17796
17797         PR other/44034
17798         * config/darwin.c (darwin_override_options): Use renamed
17799         targetm.asm_out.emit_unwind_label.
17800
17801 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
17802
17803         PR tree-optimization/39799
17804         * tree-inline.c (remap_ssa_name): Initialize variable only if
17805         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17806
17807 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
17808
17809         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
17810
17811 2010-06-30  Richard Guenther  <rguenther@suse.de>
17812
17813         PR target/44722
17814         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
17815         against oscillation with reverse peephole2.
17816
17817 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
17818
17819         PR target/44721
17820         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17821         Fix last commit.
17822
17823 2010-06-30  Nick Clifton  <nickc@redhat.com>
17824
17825         * config/rx/rx-modes.def: New file.
17826         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
17827         (CC_REGNUM): Define.
17828         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
17829         register.
17830         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
17831         (SELECT_CC_MODE): Define.
17832         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
17833         (reg:CC CC_REG) instead of (cc0).
17834         (attr "cc"): Delete.
17835         (cbranchsi4): Do not split compare and branch here. Instead move
17836         it to...
17837         (cbranchsi4_<code>): ... here.  New patterns.
17838         (cmpsi): Call rx-compare_redundant to find out if it is necessary
17839         to emit the compare instruction.
17840         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
17841         cc_status flags.
17842         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
17843         FIRST_PSEUDO_REGNUM.
17844         (rx_expand_prologue, rx_expand_epilogue): Likewise.
17845         (rx_notice_update_cc): Delete.
17846         (rx_cc_modes_compatible): New function.
17847         (flags_needed_for_conditional): New function.
17848         (flags_from_mode): New function.
17849         (rx_compare_redundant): New function - scans backwards through
17850         insn list to find out if condition flags are already set correctly.
17851         (TARGET_CC_MODES_COMPATIBLE): Define.
17852         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
17853
17854         * config/rx/rx.h (BRANCH_COST): Define.
17855         (REGISTER_MOVE_COST): Define.
17856         * config/rx/predicates (rx_source_operand): Allow all constant types.
17857         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
17858         (tstsi4): New pattern.
17859         * config/rx/rx.c (rx_memory_move_cost): Define.
17860         (TARGET_MEMORY_MOVE_COST): Define.
17861
17862 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17863
17864         * tree.h (block_may_fallthru): Declare here.
17865         * tree-flow.h (block_may_fallthru): Do not declare here.
17866         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
17867         bitmap.h
17868         * Makefile.in (c-typeck.o): Update dependencies.
17869
17870 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
17871
17872         PR debug/44694
17873         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
17874         * cselib.c (cfa_base_preserved_regno): New static variable.
17875         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
17876         of REGNO (cfa_base_preserved_val->locs->loc).
17877         (cselib_preserve_cfa_base_value): Add regno argument, set
17878         cfa_base_preserved_regno to it.
17879         (cselib_invalidate_regno): Allow removal of registers other than
17880         cfa_base_preserved_regno from cfa_base_preserved_val.
17881         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
17882         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
17883         of MEM addresses, if not on LHS.
17884         (reverse_op): Don't add reverse ops for cfa_base_rtx.
17885         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
17886
17887 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
17888
17889         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
17890         static variables.
17891         (peep2_buf_position): New static function.
17892         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
17893         peephole2_optimize): Use it.
17894         (peep2_attempt, peep2_update_life): New static functions, broken out
17895         of peephole2_optimize.
17896         (peep2_fill_buffer): New static function.
17897         (peephole2_optimize): Change the main loop to try to fill the buffer
17898         with the maximum number of insns before matching them against
17899         peepholes.  Use a forward scan.  Remove special case for targets with
17900         conditional execution.
17901         * genrecog.c (change_state): Delete dead code.
17902         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17903         Rewrite so as not to expect the second insn to have had a peephole
17904         applied yet.
17905
17906 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
17907
17908         * genhooks.c (emit_findices): Cast field precision to int.
17909         (emit_documentation): Likewise.
17910
17911 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
17912
17913         PR tree-optimization/43801
17914         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
17915         if old_decl was DECL_ONE_ONLY.
17916
17917         PR debug/44668
17918         * dwarf2out.c (add_accessibility_attribute): New function.
17919         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
17920         instead of adding DW_AT_accessibility manually.
17921         (gen_enumeration_type_die, gen_struct_or_union_type_die,
17922         gen_typedef_die): Use it.
17923
17924 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17925
17926         * vmsdbgout.c (full_name): Just output the file name if not native.
17927
17928 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17929
17930         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
17931         (funcnam_table): New static table.
17932         (funcnum_table): New static table.
17933         (write_rtnbeg): Write value saved in funcnum_table.
17934         (write_rtnend): Write value saved in funcnum_table.
17935         (vmsdbgout_begin_function): Save current function info in
17936         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
17937         (vmsdbgout_finish): Iterate over funcnum_table.
17938
17939 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17940
17941         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
17942         (vmsdbgout_type_decl): Declare
17943         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
17944         (FUNC_EPILOGUE_LABEL): New macro
17945         (vmsdbgout_begin_epilogue): New function.
17946         (vmsdbgout_type_decl): New function.
17947
17948 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17949
17950         * vmsdbg.h: Update copyright.
17951
17952 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17953
17954         * vmsdbg.h (DST_K_TBG): New DST constant.
17955         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
17956         (write_modbeg): Cast module_language to avoid warning.
17957         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
17958
17959 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
17960
17961         PR other/44034
17962         * target.def, doc/tm.texi.in, genhooks.c: New files.
17963         * target.h: Instead of defining individual hook members,
17964         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
17965         include target.def.
17966         * target-def.h: Instead of defining individual hook initializers,
17967         include target-hooks-def.h.
17968         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
17969         targetm.live_on_entry -> targetm.extra_live_on_entry
17970         targetm.sched.md_finish ->targetm.sched.finish
17971         targetm.sched.md_init -> targetm.sched.init
17972         targetm.sched.md_init_global -> targetm.sched.init_global
17973         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
17974         targetm.asm_out.except_table_label ->
17975           targetm.asm_out.emit_except_table_label
17976         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
17977         targetm.target_help -> targetm.help
17978         targetm.vectorize.builtin_support_vector_misalignment ->
17979           targetm.vectorize.support_vector_misalignment
17980         targetm.file_start_app_off -> targetm.asm_file_start_app_off
17981         targetm.file_start_file_directive ->
17982          targetm.asm_file_start_file_directive
17983         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
17984         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
17985         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
17986         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
17987           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
17988         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
17989           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
17990         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
17991         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
17992         * Makefile.in (TARGET_H): Depend on target.def.
17993         (TARGET_DEF_H): Depend on target-hooks-def.h.
17994         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
17995         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
17996         * doc/tm.texi: Regenerate.
17997
17998         * Makefile.in (s-tm-texi): Remove stray tab / rule.
17999
18000         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
18001         (targetm.sched.init): Likewise.
18002
18003 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
18004
18005         PR bootstrap/44713
18006         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
18007         (function_arg_advance_32): Const-ify TYPE parameter.
18008         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
18009         (ix86_function_arg_advance): Change type of NAMED to bool.
18010         (function_arg_32): Const-ify CUM and TYPE parameters.
18011         (function_arg_64): Likewise.  Change type of NAMED to bool.
18012         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
18013         to bool.
18014         (ix86_function_arg): Change type of NAMED to bool.
18015         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
18016         last argument as a bool.
18017
18018 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
18019
18020         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
18021         (OVERRIDE_OPTIONS): Add note of obsolescence.
18022         Replace references with references to TARGET_OPTION_OVERRIDE.
18023         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
18024          the macro).
18025         * targhooks.c (default_target_option_override): New function.
18026         * targhooks.h (default_target_option_override): Declare.
18027         * target.h (struct gcc_target): Add override member to
18028         target_option member.
18029         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
18030         targetm.target_option.override call.
18031         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
18032         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
18033
18034 2010-06-29  Jan Hubicka  <jh@suse.cz>
18035
18036         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
18037
18038 2010-06-29  Jan Hubicka  <jh@suse.cz>
18039
18040         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
18041         unreachable.
18042         (rebuild_frequencies): New function.
18043         * predict.h (rebuild_frequencies): Declare.
18044         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
18045         entry block and edge reaching new_entry.
18046         (tree_function_versioning): When doing partial cloning, rebuild
18047         frequencies when done.
18048         * passes.c (execute_function_todo): Use rebild_frequencies.
18049
18050 2010-06-29  Richard Guenther  <rguenther@suse.de>
18051
18052         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
18053         * tree-flow.h (enum noalias_state): Remove.
18054         (struct var_ann_d): Remove noalias_state member.
18055
18056 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
18057
18058         PR target/43902
18059         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
18060         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
18061         (maddhidi4): Likewise.
18062
18063         Revert parts of the change for PR25130.
18064         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
18065         MEM_ALIAS_SET.
18066
18067 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
18068
18069         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
18070         targetm.calls.function_incoming_arg, and
18071         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
18072         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
18073         * target.h (struct gcc_target): Add function_arg_advance,
18074         function_arg, and function_incoming_arg fields.
18075         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
18076         (TARGET_FUNCTION_INCOMING_ARG): Define.
18077         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
18078         and TARGET_FUNCTION_INCOMING_ARG.
18079         * targhooks.h (default_function_arg_advance): Declare.
18080         (default_function_arg, default_function_incoming_arg): Declare.
18081         * targhooks.c (default_function_arg_advance): New function.
18082         (default_function_arg, default_function_incoming_arg): New function.
18083         * config/i386/i386.c (function_arg_advance): Rename to...
18084         (ix86_function_arg_advance): ...this.  Make static.
18085         (function_arg): Rename to...
18086         (ix86_function_arg): ...this.  Make static.
18087         (TARGET_FUNCTION_ARG_ADVANCE): Define.
18088         (TARGET_FUNCTION_ARG): Define.
18089         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
18090         (FUNCTION_ARG): Delete.
18091         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
18092         (function_arg): Delete prototype.
18093
18094 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
18095
18096         * reginfo.c (init_reg_sets_1): Adjust comments.
18097         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
18098         * calls.c (prepare_call_address): Likewise.
18099         (emit_call_1): Use targetm.calls.return_pops_args.
18100         (expand_call): Likewise.
18101         * function.c (assign_parms): Likewise.
18102         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
18103         * target.h (struct gcc_target) [struct calls]: Add
18104         return_pops_args field.
18105         * targhooks.h (default_return_pops_args): Declare.
18106         * targhooks.c (default_return_pops_args): Define.
18107         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
18108         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
18109         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
18110         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
18111         documentation.
18112         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
18113         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
18114         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
18115         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
18116         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
18117         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
18118         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
18119         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
18120         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
18121         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
18122         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
18123         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
18124         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
18125         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
18126         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
18127         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
18128         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
18129         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
18130         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
18131         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
18132         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
18133         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
18134         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
18135         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
18136         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
18137         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
18138         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
18139         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
18140         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
18141         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
18142         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
18143         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
18144         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
18145         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
18146         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
18147         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
18148         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
18149         * config/i386/i386.c (ix86_return_pops_args): Make static.
18150         Constify arguments.
18151         (TARGET_RETURN_POPS_ARGS): Define.
18152         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
18153         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
18154         (TARGET_RETURN_POPS_ARGS): Define.
18155         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
18156         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
18157         (TARGET_RETURN_POPS_ARGS): Define.
18158
18159 2010-06-29  Richard Guenther  <rguenther@suse.de>
18160
18161         PR middle-end/44667
18162         * tree-inline.c (initialize_inlined_parameters): Make sure
18163         to remap the inlined parameter variable substitutions types.
18164
18165 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
18166
18167         PR rtl-optimization/44659
18168         * combine.c (make_compound_operation) <SUBREG>: Do not return the
18169         result of force_to_mode if it partially re-expanded the compound.
18170
18171 2010-06-28  Jan Hubicka  <jh@suse.cz>
18172
18173         PR middle-end/44671
18174         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
18175         RESULT_DECL.
18176
18177 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
18178
18179         * double-int.h (force_fit_type_double): Remove declaration.
18180         * double-int.c (force_fit_type_double): Move to tree.c.
18181         * tree.h (force_fit_type_double): Declare.
18182         * tree.h (force_fit_type_double): Moved from double-int.c. Use
18183         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
18184         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
18185         * convert.c (convert_to_pointer): Adjust call to
18186         force_fit_type_double.
18187         * tree-vrp.c (extract_range_from_assert,
18188         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
18189         * fold-const.c: Update comment.
18190         (int_const_binop, fold_convert_const_int_from_int,
18191         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
18192         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
18193         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
18194         round_up_loc): Adjust call to force_fit_type_double.
18195
18196 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18197
18198         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
18199
18200 2010-06-28  Martin Jambor  <mjambor@suse.cz>
18201
18202         * tree-sra.c (convert_callers): New parameter, change fndecls of
18203         recursive calls.
18204         (modify_function): Pass the old decl to convert_callers.
18205
18206 2010-06-28  Martin Jambor  <mjambor@suse.cz>
18207
18208         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
18209         ipa_check_create_node_params and ipa_initialize_node_params with
18210         checking asserts they are not necessary.
18211
18212 2010-06-28  Jan Hubicka  <jh@suse.cz>
18213
18214         PR tree-optimization/44687
18215         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
18216
18217 2010-06-28  Martin Jambor  <mjambor@suse.cz>
18218
18219         PR c++/44535
18220         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
18221         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
18222         instead of BINFO_BASE_BINFO.
18223
18224 2010-06-28  Michael Matz  <matz@suse.de>
18225
18226         PR middle-end/44592
18227         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
18228         proper VDEF chain for intermediate stores in the sequence.
18229
18230 2010-06-28  Jan Hubicka  <jh@suse.cz>
18231
18232         PR tree-optimization/44357
18233         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
18234         uninlinable functions.
18235
18236 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
18237
18238         * config.gcc (powerpc*-*-*): Handle titan.
18239         * config/rs6000/rs6000.c (titan_cost): New costs.
18240         (rs6000_override_options): Add "titan" to processor_target_table.
18241         Add Titan to branch alignment logic.
18242         Correctly set rs6000_cost for titan.
18243         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
18244         * config/rs6000/titan.md: New file.
18245         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
18246
18247 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
18248
18249         * tree-browser.c (TB_history_stack): Convert to a VEC.
18250         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
18251         (TB_history_prev): Likewise.
18252
18253 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
18254
18255         * vec.h (vec_heap_free): Add parentheses around free.
18256
18257 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
18258
18259         * system.h: Poison GCC_EXCEPT_H for front-end files.
18260
18261         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
18262         langhook.
18263         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
18264         Define to NULL by default.
18265         * except.h: Define GCC_EXCEPT_H.
18266         (doing_eh): Remove prototype.
18267         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
18268         (lang_protect_cleanup_actions): Remove.
18269         * except.c (lang_protect_cleanup_actions): Remove.
18270         (doing_eh): Remove.
18271         (gen_eh_region): Don't check doing_eh here.
18272         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
18273         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
18274         instead of lang_protect_cleanup_actions.
18275         * omp-low.c (maybe_catch_exception): Likewise.
18276         * Makefile.in: Update dependencies.
18277
18278 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
18279
18280         * cgraph.h (struct varpool_node): new used_from_object_file flag.
18281         (struct cgraph_local_info): new used_from_object_file flag.
18282         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
18283         (cgraph_clone_node): initialize used_from_object_file.
18284         (cgraph_create_virtual_clone): initialize used_from_object_file.
18285         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
18286         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
18287         when compiling with -fwhole-program.
18288         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
18289         internal resolver.
18290         * ipa.c (function_and_variable_visibility): Set externally_visible
18291         flag of varpool_node if used_from_object_file flag is set.
18292         (cgraph_externally_visible_p): check used_from_object_file flag.
18293         * doc/invoke.texi (-fwhole-program option): Change description of
18294         externally_visible attribute accordingly.
18295         * doc/extend.texi (externally_visible): Ditto.
18296
18297 2010-06-27  Jan Hubicka  <jh@suse.cz>
18298
18299         * params.def (max-inline-insns-auto): Default to 40.
18300         * doc/invoke.texi (max-inline-insns-auto): Document the change.
18301
18302 2010-06-27  Jan Hubicka  <jh@suse.cz>
18303
18304         PR middle-end/44671
18305         PR middle-end/44686
18306         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
18307         signature change.
18308         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
18309         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
18310
18311 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
18312
18313         * target.h (struct gcc_target): Add register_move_cost field.
18314         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
18315         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
18316         * targhooks.c (default_register_move_cost): New function.
18317         * targhooks.h (default_register_move_cost): Declare function.
18318         * defaults.h (REGISTER_MOVE_COST): Delete.
18319         * ira-int.h (ira_register_move_cost): Update comment.
18320         * ira.c (ira_register_move_cost): Update comment.
18321         * reload.h (register_move_cost): Declare.
18322         * reginfo.c (register_move_cost): New function.
18323         (move_cost): Update comment.
18324         (init_move_cost, memory_move_secondary_cost): Replace
18325         REGISTER_MOVE_COST with register_move_cost.
18326         * postreload.c (reload_cse_simplify_set): (Ditto.).
18327         * reload.c (find_valid_class, find_reloads): (Ditto.).
18328         * reload1.c (choose_reload_regs): (Ditto.).
18329         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
18330         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
18331         * doc/md.texi (can_create_pseudo_p): Update documentation.
18332
18333         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
18334         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
18335         * config/i386/i386.h (ix86_memory_move_cost): Make static.
18336         (TARGET_MEMORY_MOVE_COST): Define.
18337
18338         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
18339         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
18340         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
18341         (TARGET_MEMORY_MOVE_COST): Define.
18342
18343 2010-06-27  Richard Guenther  <rguenther@suse.de>
18344
18345         PR tree-optimization/44683
18346         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
18347         false edge from the inverted condition.
18348
18349 2010-06-27  Richard Guenther  <rguenther@suse.de>
18350
18351         PR middle-end/44684
18352         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
18353         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
18354         for register LHS.  Or non-store assignments.
18355
18356 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
18357
18358         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
18359         (sparc_emit_set_const64): Likewise.  Remove disabled code.
18360         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
18361         (sparc_emit_set_const64): Likewise.
18362
18363 2010-06-26  Catherine Moore  <clm@codesourcery.com>
18364
18365         * config/mips/mips.md (alu_type): New attribute.
18366         (type): Infer type from alu_type.
18367         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
18368         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
18369         *subsi3_extended, negsi2, negdi2, *low<mode>,
18370         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
18371         xor<mode>3, *nor<mode>3,
18372         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
18373         *zero_extendhi_truncqi):  Set alu_type instead of type.
18374
18375 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
18376
18377         * config/alpha/alpha.c (alpha_need_linkage): Adjust
18378         splay_tree_new_ggc call.
18379         (alpha_use_linkage): Likewise.
18380
18381 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
18382
18383         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
18384         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
18385         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
18386         (static_specs): Remove switches_need_spaces.
18387         (process_command, do_self_spec): Hardcode handling "-o" instead of
18388         checking switches_need_spaces.
18389         * system.h (SWITCHES_NEED_SPACES): Poison.
18390
18391 2010-06-26  Richard Guenther  <rguenther@suse.de>
18392
18393         PR tree-optimization/44393
18394         * tree-loop-distribution.c (generate_loops_for_partition): Fix
18395         stmt removal and VOP renaming.
18396         (generate_memset_zero): Remove redundant stmt updating.
18397         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
18398         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
18399
18400 2010-06-26  Jan Hubicka  <jh@suse.cz>
18401
18402         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
18403         edges comming from header are equivalent.
18404         (visit_bb): Handle PHIs correctly.
18405         * tree-inline.c (copy_phis_for_bb): Be able to copy
18406         PHI from entry edge.
18407         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
18408
18409 2010-06-26  Richard Guenther  <rguenther@suse.de>
18410
18411         PR middle-end/44674
18412         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
18413         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
18414
18415 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
18416
18417         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
18418         add_infile, alloc_switch): New.
18419         (process_command): Remove variable lang_n_infiles.  Process
18420         options in a single pass.  Use new functions for allocating
18421         infiles and switches arrays.  Properly skip operands of
18422         -Xpreprocessor and -Xassembler.
18423
18424 2010-06-26  Jan Hubicka  <jh@suse.cz>
18425
18426         PR middle-end/44671
18427         * cgraphunit.c (cgraph_function_versioning): Remove wrong
18428         cgraph_make_decl_local call; fix typo copying RTL data.
18429
18430 2010-06-25  DJ Delorie  <dj@redhat.com>
18431
18432         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
18433         (m32c_output_aligned_common): Likewise.
18434         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
18435         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18436         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
18437         (m32c_register_pragmas): Register it.
18438         * config/m32c/m32c.c (m32c_get_pragma_address): New.
18439         (m32c_insert_attributes): Set #pragma address decls volatile.
18440         (pragma_entry_eq): New.
18441         (pragma_entry_hash): New.
18442         (m32c_note_pragma_address): New.
18443         (m32c_get_pragma_address): New.
18444         (m32c_output_aligned_common): New.
18445         * doc/extend.texi: Document the new pragma.
18446
18447         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
18448         also.
18449         * config/m32c/predicates.md (m32c_any_operand): Check the code
18450         instead of memory_operand so as to allow matching volatile MEMs.
18451         (m32c_nonimmediate_operand): Likewise.
18452         (mra_operand): Allow volatiles.
18453
18454 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
18455
18456         PR debug/44610
18457         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
18458         address if the offset is unknown.
18459
18460 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
18461
18462         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
18463         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
18464         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
18465         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
18466         to ia64_start_function. Invoke it.
18467         * config/ia64/ia64.c (ia64_start_function): Call new function
18468         dwarf2out_vms_debug_main_pointer.
18469
18470 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18471
18472         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
18473         statements computing the true predicate.
18474
18475 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18476
18477         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
18478         to boolean_true_node.
18479         (reset_bb_predicate): New.
18480         (predicate_bbs): Call reset_bb_predicate.
18481
18482 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18483
18484         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
18485         (tree_if_conversion): Returns true when something has been changed.
18486         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
18487         changed something.
18488
18489 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18490
18491         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
18492         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
18493         * tree-if-conv.c: Include dbgcnt.h.
18494         (tree_if_conversion): Use if_conversion_tree to count the number of
18495         if-convertible loops.
18496
18497 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
18498
18499         * common.opt (fprefetch-loop-arrays): Re-define
18500         -fprefetch-loop-arrays as a tri-state option with the initial
18501         value of -1.
18502         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
18503         pass only when flag_prefetch_loop_arrays > 0.
18504         * toplev.c (process_options): Note that, with tri-states,
18505         flag_prefetch_loop_arrays>0 means prefetching is enabled.
18506         * config/i386/i386.c (override_options): Enable prefetching at -O3
18507         for a set of CPUs that sw prefetching is helpful.
18508         (software_prefetching_beneficial_p): New.  Return TRUE if software
18509         prefetching is beneficial for the given CPU.
18510
18511 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18512
18513         PR rtl-optimization/44326
18514         * implicit-zee.c (find_removable_zero_extends): Replace
18515         INSN_P with NONDEBUG_INSN_P.
18516
18517 2010-06-25  Martin Jambor  <mjambor@suse.cz>
18518
18519         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
18520         (struct ipa_node_params): Removed the modification_analysis_done flag.
18521         (ipa_is_param_modified): Removed.
18522         (ipa_analyze_node): Declare.
18523         (ipa_compute_jump_functions): Remove declaration.
18524         (ipa_count_arguments): Likewise.
18525         (ipa_detect_param_modifications): Likewise.
18526         (ipa_analyze_params_uses): Likewise.
18527         * ipa-prop.c (struct param_analysis_info): New type.
18528         (visit_store_addr_for_mod_analysis): Removed.
18529         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
18530         moved down in the file.
18531         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
18532         (ipa_count_arguments): Made static.
18533         (mark_modified): New function.
18534         (is_parm_modified_before_call): New function.
18535         (compute_pass_through_member_ptrs): New parameter parms_info, call
18536         is_parm_modified_before_call instead of ipa_is_param_modified.
18537         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
18538         it to compute_pass_through_member_ptrs.
18539         (ipa_compute_jump_functions): New parameter parms_info, pass it to
18540         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
18541         on the callee if it is analyzed.  Made static.
18542         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
18543         is_parm_modified_before_call instead of ipa_is_param_modified.
18544         (ipa_analyze_call_uses): New parameter parms_info, pass it to
18545         ipa_analyze_indirect_call_uses.
18546         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
18547         ipa_analyze_call_uses.
18548         (ipa_analyze_params_uses): New parameter parms_info, pass it to
18549         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
18550         (ipa_analyze_node): New function.
18551         (ipa_print_node_params): Do not dump the modified flag.
18552         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
18553         it.  Do not stream the modified parameter flag.
18554         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
18555         it.  Do not stream the modified parameter flag.
18556         * ipa-cp.c (ipcp_analyze_node): Removed.
18557         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
18558         with only a call to ipa_analyze_node.
18559         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
18560         node with only a call to ipa_analyze_node.
18561
18562 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18563
18564         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
18565
18566 2010-06-25  Jan Hubicka  <jh@suse.cz>
18567
18568         * tree-pass.h (pass_split_functions): Declare.
18569         * opts.c (decode_options): Enable function splitting at -O2
18570         * timevar.def (TV_IPA_FNSPLIT): New macro.
18571         * ipa-split.c: New file.
18572         * common.opt (-fpartial-inlining): New flag.
18573         * Makefile.in (ipa-split.o): New object file.
18574         * passes.c (init_optimization_passes): Add ipa-split.
18575         * params.def (partial-inlining-entry-probability): New parameters.
18576         * doc/invoke.texi (-fpartial-inlining): New.
18577
18578 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18579
18580         PR 44665
18581         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
18582         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
18583         (gimplify_expr): Likewise.
18584
18585 2010-06-25  Martin Jambor  <mjambor@suse.cz>
18586
18587         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
18588         statements instead of bailing out on them.
18589         (ipa_analyze_indirect_call_uses): Do not require that loads from the
18590         parameter are in the same BB as the condition.  Update comments.
18591
18592 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
18593
18594         PR middle-end/43866
18595         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
18596         true or always false, return NULL_TREE.
18597         (tree_unswitch_single_loop): Optimize conditions even when reaching
18598         max-unswitch-level parameter.  If num > 0, optimize first all conditions
18599         using entry checks, then do still reachable block discovery and consider
18600         only conditions in still reachable basic blocks in the loop.
18601
18602         PR tree-optimization/44539
18603         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
18604         the call doesn't have LHS, but has VDEF.
18605
18606 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
18607
18608         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
18609         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
18610         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
18611         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
18612         * system.h (MODIFY_TARGET_NAME): Poison.
18613
18614 2010-06-25  Alan Modra  <amodra@gmail.com>
18615
18616         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
18617         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
18618         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
18619         CMODEL_LARGE as default.
18620         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
18621         (offsettable_ok_by_alignment): Delete.
18622         (rs6000_emit_move): Remove mcmodel=medium optimization.
18623
18624 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
18625
18626         With large parts from Jim Wilson:
18627         PR target/43902
18628         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
18629         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18630         * optabs.c (optab_for_tree_code): Likewise.
18631         (expand_widen_pattern_expr): Likewise.
18632         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
18633         out of execute_optimize_widening_mul.
18634         (convert_plusminus_to_widen): New function.
18635         (execute_optimize_widening_mul): Use the two new functions.
18636         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
18637         Remove code to generate widening multiply-accumulate.  Add support
18638         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18639         * gimple-pretty-print.c (dump_ternary_rhs): New function.
18640         (dump_gimple_assign): Call it when appropriate.
18641         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
18642         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
18643         (expand_gimple_stmt_1): Likewise.
18644         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
18645         WIDEN_MULT_MINUS_EXPR.
18646         * tree-ssa-operands.c (get_expr_operands): Likewise.
18647         * tree-inline.c (estimate_operator_cost): Likewise.
18648         * gimple.c (extract_ops_from_tree_1): Renamed from
18649         extract_ops_from_tree.  Add new arg for a third operand; fill it.
18650         (gimple_build_assign_stat): Support operations with three operands.
18651         (gimple_build_assign_with_ops_stat): Likewise.
18652         (gimple_assign_set_rhs_from_tree): Likewise.
18653         (gimple_assign_set_rhs_with_ops_1): Renamed from
18654         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
18655         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
18656         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
18657         WIDEN_MULT_MINUS_EXPR.
18658         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
18659         (extract_ops_from_tree_1): Adjust declaration.
18660         (gimple_assign_set_rhs_with_ops_1): Likewise.
18661         (gimple_build_assign_with_ops): Pass NULL for last operand.
18662         (gimple_build_assign_with_ops3): New macro.
18663         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
18664         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
18665         functions.
18666         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
18667         (verify_gimple_assign): Call it.
18668         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
18669         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
18670         functions for dealing with three-operand statements.
18671         * tree.c (commutative_ternary_tree_code): New function.
18672         * tree.h (commutative_ternary_tree_code): Declare it.
18673         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
18674         ternary statements.
18675         (gimple_assign_nonzero_warnv_p): Likewise.
18676         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
18677         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
18678         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
18679         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
18680         (struct hashtable_expr): New member ternary in the union.
18681         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
18682         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
18683         (iterative_hash_hashable_expr): Likewise.
18684         (print_expr_hash_elt): Handle EXPR_TERNARY.
18685         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
18686         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
18687         statements.  Handle GIMPLE_TERNARY_RHS.
18688
18689 2010-06-25  Jan Hubicka  <jh@suse.cz>
18690
18691         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
18692
18693 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
18694
18695         PR c/44517
18696         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
18697         parameters are not good.
18698         (c_parser_parameter_declaration): Error unknown type name if the type
18699         name can't start declaration specifiers.
18700
18701 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
18702
18703         * gcc.c (translate_options): Don't mention +e in comment.
18704         (process_command): Don't handle +e specially.
18705
18706 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
18707
18708         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
18709
18710         * ira-build.c (merge_hard_reg_conflicts): New function.
18711         (create_cap_allocno, copy_info_to_removed_store_destinations,
18712         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
18713         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
18714         (remove_unnecessary_allocnos, remove_low_level_allocnos)
18715         copy_nifo_to_removed_store_destination): Use them.
18716         * ira-lives.c (make_hard_regno_born): New function, split out of
18717         make_regno_born.
18718         (make_allocno_born): Likewise.
18719         (make_hard_regno_dead): New function, split out of make_regno_dead.
18720         (make_allocno_dead): Likewise.
18721         (inc_register_pressure): New function, split out of set_allocno_live.
18722         (dec_register_pressure): New function, split out of clear_allocno_live.
18723         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
18724         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
18725         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
18726         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
18727         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
18728         mark_pseudo_regno_live.
18729         (process_bb_node_lives): Use mark_pseudo_regno_live,
18730         make_hard_regno_born and make_allocno_dead.
18731         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
18732         set_allocno_live, clear_allocno_live): Delete functions.
18733
18734         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
18735         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
18736         functions.
18737         (ira_flattening): Use ira_parent_allocno.
18738         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
18739         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
18740
18741         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
18742         statement.
18743
18744         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
18745         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
18746         minmax_set_iter_cond, minmax_set_iter_next,
18747         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
18748         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
18749         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
18750         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
18751         uses changed.
18752
18753         * ira-int.h (struct live_range, live_range_t): Renamed from struct
18754         ira_allocno_live_range and allocno_live_range_t; all uses changed.
18755         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
18756         All uses changed.
18757
18758 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
18759
18760         * thumb2.md (thumb2_tlobits_cbranch): Delete.
18761         (peephole2 to convert zero_extract/compare of single bit to
18762          lshift/compare): New.
18763
18764 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
18765
18766         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
18767         recursive call and call to 'int_const_binop'.
18768         (build_range_check, fold_cond_expr_with_comparison, unextend,
18769         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
18770         multiple_of_p): Adjust call to const_binop.
18771
18772 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
18773
18774         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
18775         determine size of XFmode operand.
18776         (XFmode extended DFmode push splitter): Ditto.
18777         (XFmode extended SFmode push splitter): Ditto.
18778
18779 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18780
18781         PR target/44588
18782         * config/i386/i386.md (extract_code): New.
18783         (<u>divmodqi4): Likewise.
18784         (divmodhiqi3): Likewise.
18785         (udivmodhiqi3): Likewise.
18786         (<u>divqi3): Remvoved.
18787
18788 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
18789
18790         PR middle-end/44492
18791         * recog.h (struct recog_data): Add is_asm field.
18792         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
18793         present in constraints of inline-asm operand and memory operand
18794         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
18795         (extract_insn): Initialize recog_data.is_asm.
18796         * doc/md.texi (Constraints): Document operand side-effect rules.
18797
18798 2010-06-24  Andi Kleen  <ak@linux.intel.com>
18799
18800         * c-parser.c (c_parser_conditional_expression): Call
18801         warn_for_omitted_condop.
18802         * doc/invoke.texi: Document omitted condop warning.
18803
18804 2010-06-24  Nick Clifton<nickc@redhat.com>
18805
18806         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
18807         insn in the sequence is a jump insn before setting its label.
18808
18809 2010-06-24  Alan Modra  <amodra@gmail.com>
18810
18811         * collect2.c (main): Match exactly --version and --help.
18812
18813 2010-06-24  DJ Delorie  <dj@redhat.com>
18814
18815         * config/m32c/m32c-pragma.c: Don't include rtl.h.
18816
18817 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
18818
18819         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
18820         using X87MODEF mode iterator.
18821         (pushsf splitter): Macroize splitter using P mode iterator.
18822         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
18823         mode iterator.
18824
18825         (*movxf_internal): Rename from *movxf_integer.
18826         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
18827         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
18828         (*movdf_internal): Rename from *movdf_integer.
18829         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
18830         (*movsf_internal): Rename from *movdf_1.
18831
18832 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
18833
18834         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
18835         (const_gimple_seq_node): Removed typedefs.
18836
18837         * gimple.h (gimple_seq_node_d, gimple_seq_node)
18838         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
18839
18840 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18841
18842         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
18843         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
18844         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
18845         and CODE_FOR_vec_extract_lo_v4df.
18846
18847         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
18848         Changed to define_insn_and_split.
18849         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
18850         (vec_extract_lo_v16hi): Likewise.
18851         (vec_extract_lo_v32qi): Likewise.
18852         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
18853         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
18854
18855 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
18856
18857         PR target/44640
18858         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
18859         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
18860         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
18861         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
18862         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
18863
18864         PR target/44640
18865         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
18866
18867         PR other/44644
18868         * df-core.c (struct df): Rename to df_d.
18869         * df.h (struct df): Likewise.
18870         * dse.h (struct df): Remove forward declaration.
18871         * recog.h (struct insn_data): Rename to:
18872         (struct_insn_data_d).  Adjusted all users.
18873
18874 2010-06-23  Arnaud Charlet  <charlet@adacore.com
18875
18876         PR ada/22220
18877         * doc/install.texi: Update requirements to build GNAT.
18878
18879 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
18880
18881         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
18882         enum type.
18883         (m68k_sched_attr_opx_type): Remove unreachable return.
18884         (m68k_sched_attr_opy_type): Likewise.
18885         (m68k_sched_attr_size): Likewise.
18886         (sched_get_opxy_mem_type): Likewise.
18887         (m68k_sched_attr_op_mem): Likewise.
18888
18889 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
18890
18891         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
18892         new statement and adjust VDEF only if necessary.  Remove superfluous
18893         call to maybe_clean_or_replace_eh_stmt.
18894         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
18895         copy the flags.
18896         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
18897         * tree-inline.c (copy_bb): ...and not there.
18898
18899 2010-06-22  Cary Coutant  <ccoutant@google.com>
18900
18901         * dwarf2out.c (is_nested_in_subprogram): New function.
18902         (should_move_die_to_comdat): Use it.
18903         (copy_ancestor_tree): Don't mark DIEs here.
18904         (copy_decls_walk): Start walk from root of newly-added tree;
18905         mark DIEs here instead.
18906
18907 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18908
18909         * config/i386/i386.md (unit): Also check sseishft1.
18910
18911 2010-06-22  Jan Hubicka  <jh@suse.cz>
18912
18913         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
18914         enabled.
18915
18916 2010-06-22  Jan Hubicka  <jh@suse.cz>
18917
18918         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
18919         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
18920         Return true if something changed.
18921         * df.h (df_confluence_function_n): Return bool.
18922         * df-core.c (df_worklist_propagate_forward,
18923         df_worklist_propagate_backward): Track changes and ages.
18924         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
18925         track ages.
18926         * dse.c (dse_confluence_n): Return always true.
18927
18928 2010-06-22  Jan Hubicka  <jh@suse.cz>
18929
18930         * bitmap.c (bitmap_clear_bit): Micro optimize.
18931
18932 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
18933
18934         * config/i386/i386.md (SWI1248x): New mode iterator.
18935         (SWI48x): Ditto.
18936         (SWI12): Ditto.
18937         (SWI24): Ditto.
18938
18939         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
18940         SWI1248x mode iterator.
18941         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
18942         using SWI124 mode iterator.
18943         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
18944         mode iterator.
18945         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
18946         *pushdi2_prologue_rex64 using P mode iterator.
18947         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
18948         using SWI48 mode iterator.
18949         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
18950         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
18951         using SWI1248x mode iterator.
18952         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
18953         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
18954         SWI48 mode iterator.
18955         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
18956         iterator.
18957         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
18958         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
18959         SWI12 mode iterator.
18960         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
18961         SWI12 mode iterator.
18962         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
18963         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
18964         SWI24 mode iterator.
18965         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
18966         SWI48 mode iterator.
18967         (mov<mode>_insn_1): New expander.
18968         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
18969         using SWI48x mode iterator.
18970
18971         (*movoi_internal_avx): Rename from *movoi_internal.
18972         (*movti_internal_rex64): Rename from *movti_rex64.
18973         (*movti_internal_sse): Rename from *movti_sse.
18974         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
18975         (*movdi_internal): Rename from *movdi_2.
18976         (*movsi_internal): Rename from *movsi_1.
18977         (*movhi_internal): Rename from *movhi_1.
18978         (*movqi_internal): Rename from *movqi_1.
18979
18980         (insv): Update the call to gen_movsi_insv_1 for rename.
18981         * config/i386/i386.c (promote_duplicated_reg): Ditto.
18982
18983 2010-06-22  Jan Hubicka  <jh@suse.cz>
18984
18985         * passes.c (execute_function_todo): Move call of statistics_fini_pass
18986         to ...
18987         (execute_todo) ... this one.
18988
18989 2010-06-22  Alan Modra  <amodra@gmail.com>
18990
18991         PR target/44364
18992         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18993         * caller-save.c (insert_restore, insert_save): Use non-validate
18994         form of adjust_address.
18995
18996 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18997
18998         PR target/39690
18999         * config/pa/pa.c (override_options): Disable
19000         -freorder-blocks-and-partition.
19001
19002 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
19003
19004         PR target/44615
19005         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
19006
19007         * config/i386/i386.md (type): Add sseishft1
19008
19009         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
19010         (ppro_insn_load): Likewise.
19011         (ppro_insn_store): Likewise.
19012         (ppro_insn_both): Likewise.
19013
19014         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
19015         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
19016         for type.
19017         (*vec_extractv2di_1_avx): Likewise.
19018         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
19019         type.  Remove atom_unit.
19020         (*vec_extractv2di_1_sse2): Likewise.
19021
19022 2010-06-21  DJ Delorie  <dj@redhat.com>
19023
19024         * diagnostic.h (diagnostic_classification_change_t): New.
19025         (diagnostic_context): Add history and push/pop list.
19026         (diagnostic_push_diagnostics): Declare.
19027         (diagnostic_pop_diagnostics): Declare.
19028         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
19029         from pragmas in a history chain instead of the global table.
19030         (diagnostic_push_diagnostics): New.
19031         (diagnostic_pop_diagnostics): New.
19032         (diagnostic_report_diagnostic): Scan history chain to find state
19033         of diagnostics as of the diagnostic location.
19034         * opts.c (set_option): Pass UNKNOWN_LOCATION to
19035         diagnostic_classify_diagnostic.
19036         (enable_warning_as_error): Likewise.
19037         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
19038         use in the history chain.
19039         * doc/extend.texi: Document pragma GCC diagnostic changes.
19040
19041 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
19042
19043         * dwarf2out.c (add_linkage_name): New function.  Don't add
19044         anything to DW_TAG_member DIEs.
19045         (add_name_and_src_coords_attributes): Use it.
19046         (gen_variable_die): Call it for C++ static data members if
19047         specification is DW_TAG_member.
19048
19049         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
19050         C++ char16_t and char32_t.
19051
19052         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
19053         * genattrtab.c: Include vecprim.h.
19054         (cached_attrs, cached_attr_count, attrs_seen_once,
19055         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
19056         attrs_cached_after): New variables.
19057         (find_attrs_to_cache): New function.
19058         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
19059         (write_test_expr): Add attrs_cached argument, return it too,
19060         attempt to cache non-const attributes used more than once in
19061         a single case handling.
19062         (write_attr_get): Use find_attrs_to_cache, for caching candidates
19063         emit cached_* variables.  Adjust write_attr_set callers.
19064         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
19065         to find attributes that should be cached in this block.  Adjust
19066         write_test_expr callers.
19067         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
19068         callers.
19069         (make_automaton_attrs): Adjust write_test_expr caller.
19070
19071         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
19072         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
19073         (make_automaton_attrs): If find_tune_attr returns non-NULL,
19074         write separate internal_dfa_insn_code_* and insn_default_latency_*
19075         functions for each attribute's value and emit init_sched_attrs
19076         function and function pointers.
19077         * genattr.c (const_attrs, reservations): New variables.
19078         (gen_attr): Add const attributes to const_attrs vector.
19079         (check_tune_attr, find_tune_attr): New functions.
19080         (main): Add reservations to reservations vector.  If find_tune_attr
19081         returns true, add prototype for init_sched_attrs and make
19082         internal_dfa_insn_code and insn_default_latency function pointers,
19083         otherwise define init_sched_attrs as dummy macro.
19084         * cfgexpand.c: Include insn-attr.h.
19085         (gimple_expand_cfg): Call init_sched_attrs.
19086
19087         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
19088
19089         PR target/44575
19090         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
19091         va_arg from a set of register save slots into a temporary,
19092         if the container is bigger than type size, do the copying
19093         using smaller mode or using memcpy.
19094
19095         PR bootstrap/44426
19096         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
19097         prototype.
19098         (sel_print_to_dot): Remove macro.
19099         (sel_print): Likewise.  New prototype.
19100         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
19101         (sel_print): New function.
19102
19103 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19104
19105         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
19106         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
19107
19108 2010-06-21  Nick Clifton  <nickc@redhat.com>
19109
19110         * config/rx/rx.h (PTRDIFF_TYPE): Define.
19111         (SMALL_REGISTER_CLASS): Define (to zero).
19112         (PRINT_OPERAND): Delete.
19113         (PRINT_OPERAND_ADDRESS): Delete.
19114         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
19115         (rx_print_operand_address): Delete prototype.
19116         * config/rx/rx.c (rx_print_operand): Make static.
19117         Allow %H and %L to handle CONST_DOUBLEs.
19118         (rx_print_operand_address): Make static.
19119         (rx_gen_move_template): Rename local variable 'template' to
19120         out_template.
19121         (rx_function_arg): Do not pass unknown sized objects in registers.
19122         (TARGET_PRINT_OPERAND): Define.
19123         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19124
19125 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
19126
19127         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
19128
19129 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
19130
19131         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
19132         stack-alignment for simple leaf-functions.
19133
19134 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
19135
19136         * doc/install.texi: Document bootstrap-lto.
19137
19138 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
19139
19140         PR debug/44248
19141         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
19142         (input_function): Drop them here, if VTA is disabled.
19143
19144 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
19145
19146         PR target/44546
19147         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
19148         New predicate.
19149         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
19150         ix86_swapped_fp_comparsion_operator instead of
19151         ix86_fp_comparison_operator.
19152
19153         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
19154         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
19155         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
19156         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
19157         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
19158         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
19159
19160 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
19161
19162         PR other/32998
19163         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
19164         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
19165         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
19166         (decode_cmdline_option): Update for this return value.  Set
19167         orig_option_with_args_text field.  Set arg field for unknown
19168         options.  Make static.
19169         (decode_cmdline_options_to_array): New.
19170         (prune_options): Update handling of find_opt return value.
19171         * opts.c (read_cmdline_option): Take decoded option.  Return void.
19172         (read_cmdline_options): Take decoded options.
19173         (decode_options): Add parameters for decoded options.  Use
19174         decode_cmdline_options_to_array.  Use decoded options for -O
19175         scan.  Use integral_argument for -O parameters.  Update call to
19176         read_cmdline_options.
19177         (enable_warning_as_error): Update handling of find_opt return value.
19178         * opts.h: Update comment on unknown options.
19179         (struct cl_decoded_option): Update comments on opt_index and arg.
19180         Add orig_option_with_args_text.
19181         (decode_cmdline_option): Remove.
19182         (decode_cmdline_options_to_array): Declare.
19183         (decode_options): Update prototype.
19184         * toplev.c (save_argv): Remove.
19185         (save_decoded_options, save_decoded_options_count): New.
19186         (read_integral_parameter): Remove.
19187         (print_switch_values): Use decoded options.
19188         (toplev_main): Don't set save_argv.  Update call to decode_options.
19189         * toplev.h (read_integral_parameter): Remove.
19190         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
19191
19192 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
19193
19194         PR target/44072
19195         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
19196         immediate.
19197         * constraints.md (Pw, Px): New constraints.
19198         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
19199
19200 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
19201
19202         * config/i386/sse.md (fma4modesuffixf4): Removed.
19203         (ssemodesuffixf2s): Likewise.
19204         (ssemodesuffixf4): Likewise.
19205         (ssemodesuffixf2c): Likewise.
19206         (ssescalarmodesuffix2s): Likewise.
19207         (avxmodesuffixf2c): Likewise.
19208         (ssemodesuffix): New.
19209         (ssescalarmodesuffix): Likewise.
19210         Update patterns with ssemodesuffix and ssescalarmodesuffix.
19211
19212 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
19213
19214         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
19215
19216 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
19217
19218         * stor-layout.c (debug_rli): Remove unused local variables.
19219
19220 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
19221
19222         PR rtl-optimization/40900
19223         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
19224         original expression for later reuse.
19225         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
19226         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
19227
19228 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
19229
19230         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
19231         double_int_fits_in_uhwi_p): Implement as static inline.
19232         (double_int_xor): New inline function.
19233         (double_int_lrotate, double_int_rrotate, double_int_max,
19234         double_int_umax, double_int_smax, double_int_min, double_int_umin,
19235         double_int_smin): Declare.
19236         (lrotate_double, rrotate_double): Remove declaration.
19237         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
19238         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
19239         (double_int_lrotate, double_int_rrotate, double_int_max,
19240         double_int_umax, double_int_smax, double_int_min, double_int_umin,
19241         double_int_smin): New function.
19242         * fold-const.c (int_const_binop): Clean up, use double_int_*
19243         functions.
19244         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
19245         double_int_* and immed_double_int_const functions.
19246
19247 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
19248
19249         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
19250         * function.c (types_used_by_cur_var_decl): Likewise.
19251         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
19252
19253 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
19254
19255         * tree.h (record_layout_info): Change type of pending_statics field
19256         to a VEC.
19257         * stor-layout.c (start_record_layout): Store NULL into
19258         pending_statics.
19259         (debug_rli): Call debug_vec_tree instead of debug_tree.
19260         (place_field): Likewise.
19261         (finish_record_layout): Likewise.
19262
19263 2010-06-18  Alan Modra  <amodra@gmail.com>
19264
19265         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
19266
19267 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19268
19269         PR target/43740
19270         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
19271         for SET source operand from SET destination operand.
19272
19273 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
19274
19275         PR rtl-optimization/39871
19276         * reload1.c (init_eliminable_invariants): For flag_pic, disable
19277         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
19278         (function_invariant_p): Rule out a plus of frame or arg pointer with
19279         a SYMBOL_REF.
19280         * ira.c (find_reg_equiv_invariant_const): Likewise.
19281
19282 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
19283
19284         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
19285         print_operand_address and puts to output the operand for CONST.
19286
19287 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
19288
19289         PR debug/44572
19290         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
19291         hook.
19292
19293 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19294
19295         * v850-protos.h (print_operand): Delete.
19296         (print_operand_address): Delete.
19297         * v850.h (PRINT_OPERAND): Delete.
19298         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19299         (PRINT_OPERAND_ADDRESS): Delete.
19300         * v850.c (print_operand_address): Rename to...
19301         (v850_print_operand_address): ...this.  Make static. Call
19302         v850_print_operand.
19303         (print_operand): Rename to...
19304         (v850_print_operand): ...this.  Make static.  Call
19305         v850_print_operand_address.
19306         (v850_print_operand_punct_valid_p): New function.
19307         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19308         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19309
19310 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19311
19312         * config/sh/sh-protos.h (print_operand): Delete.
19313         (print_operand_address): Delete.
19314         * config/sh/sh.h (PRINT_OPERAND): Delete.
19315         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19316         (PRINT_OPERAND_ADDRESS): Delete.
19317         * config/sh/sh.c (sh_print_operand_address): Make static.
19318         (sh_print_operand): Make static.  Call sh_print_operand_address
19319         and sh_print_operand.
19320         (sh_print_operand_punct_valid_p): New function.
19321         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19322         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19323
19324 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19325
19326         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
19327         (mcore_print_operand_address): Delete.
19328         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
19329         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19330         (PRINT_OPERAND_ADDRESS): Delete.
19331         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
19332         (mcore_print_operand): Make static.
19333         (mcore_print_operand_punct_valid_p): New function.
19334         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
19335         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19336
19337 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19338
19339         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
19340         (print_operand_address): Delete.
19341         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
19342         (PRINT_OPERAND_ADDRESS): Delete.
19343         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
19344         static.
19345         (m68hc11_print_operand): Make static.
19346         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19347
19348 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19349
19350         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
19351         (m32r_print_operand_address): Delete.
19352         * config/m32r/m32r.h (m32r_punct_chars): Delete.
19353         (PRINT_OPERAND): Delete.
19354         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19355         (PRINT_OPERAND_ADDRESS): Delete.
19356         * config/m32r/m32r.c (m32r_punct_chars): Make static.
19357         (m32r_print_operand_address): Make static.
19358         (m32r_print_operand): Make static.
19359         (m32r_print_operand_punct_valid_p): New function.
19360         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19361         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19362
19363 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19364
19365         * config/iq2000/iq2000-protos.h (print_operand): Delete.
19366         (print_operand_address): Delete.
19367         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
19368         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19369         (PRINT_OPERAND_ADDRESS): Delete.
19370         (iq2000_print_operand_punct): Delete.
19371         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
19372         (iq2000_print_operand_address): Make static.
19373         (iq2000_print_operand): Make static.
19374         (iq2000_print_operand_punct_valid_p): New function.
19375         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19376         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19377
19378 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19379
19380         * config/frv/frv-protos.h (frv_print_operand): Delete.
19381         (frv_print_operand_address): Delete.
19382         * config/frv/frv.h (PRINT_OPERAND): Delete.
19383         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19384         (PRINT_OPERAND_ADDRESS): Delete.
19385         * config/frv/frv.c (frv_print_operand_address): Make static.
19386         (frv_print_operand): Make static.
19387         (frv_print_operand_punct_valid_p): New function.
19388         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19389         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19390
19391 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19392
19393         * tree.h (vec_member): Declare.
19394         * tree.c (vec_member): Define.
19395
19396 2010-06-17  Richard Guenther  <rguenther@suse.de>
19397
19398         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
19399         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
19400
19401 2010-06-17  Richard Guenther  <rguenther@suse.de>
19402
19403         * tree-inline.c (declare_return_variable): Remove bogus code.
19404
19405 2010-06-17  Richard Guenther  <rguenther@suse.de>
19406
19407         * gimplify.c (gimplify_bind_expr): Always promote complex
19408         and vector variables to registers if possible.
19409
19410 2010-06-17  Richard Guenther  <rguenther@suse.de>
19411
19412         * expr.c (get_inner_reference): Use double_int for bit_offset
19413         calculation.
19414
19415 2010-06-16  DJ Delorie  <dj@redhat.com>
19416
19417         * common.opt (-fstrict-volatile-bitfields): new.
19418         * doc/invoke.texi: Document it.
19419         * fold-const.c (optimize_bit_field_compare): For volatile
19420         bitfields, use the field's type to determine the mode, not the
19421         field's size.
19422         * expr.c (expand_assignment): Likewise.
19423         (get_inner_reference): Likewise.
19424         (expand_expr_real_1): Likewise.
19425         * expmed.c (store_fixed_bit_field): Likewise.
19426         (extract_bit_field_1): Likewise.
19427         (extract_fixed_bit_field): Likewise.
19428
19429 2010-06-16  Richard Guenther  <rguenther@suse.de>
19430
19431         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
19432
19433 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
19434
19435         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
19436         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
19437         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
19438         * debug.c: Likewise.
19439         * sdbout.c: Likewise.
19440         * vmsdbgout.c: Likewise.
19441         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
19442         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
19443         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
19444         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
19445         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
19446         * dwarf2out.c (dw_fde_struct): New fields
19447         dw_fde_vms_{end,begin}_prologue.
19448         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
19449         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
19450         (dwarf2out_vms_end_prologue): New function.
19451         (dwarf2out_vms_begin_epilogue): New function.
19452         (dw_val_struct): New value dw_val_class_vms_delta.
19453         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
19454         begin_epilogue for VMS.
19455         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
19456         new static functions.
19457         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
19458         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
19459         static functions.
19460         (print_die): New case dw_val_class_vms_delta.
19461         (attr_checksum): Likewise.
19462         (same_dw_val_p: Likewise.
19463         (size_of_die): Likewise.
19464         (value_format): Likewise.
19465         (output_die): Likewise.
19466         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
19467         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
19468         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
19469         dwarf2out_cfi_begin_epilogue
19470         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
19471
19472 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
19473
19474         * config/cris/cris-protos.h (cris_print_operand): Delete.
19475         (cris_print_operand_address): Delete.
19476         * config/cris/cris.h (PRINT_OPERAND): Delete.
19477         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19478         (PRINT_OPERAND_ADDRESS): Delete.
19479         * config/cris/cris.c (cris_print_operand_address): Make static.
19480         (cris_print_operand): Make static.
19481         (cris_print_operand_punct_valid_p): New function.
19482         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19483         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19484
19485 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
19486
19487         * config/arm/arm-protos.h (arm_print_operand): Delete.
19488         (arm_print_operand_address): Delete.
19489         * config/arm/arm.h (PRINT_OPERAND): Delete.
19490         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19491         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
19492         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
19493         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
19494         (arm_print_operand): Make static.
19495         (arm_print_operand_punct_valid_p): New function.
19496         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19497         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19498
19499 2010-06-16  Nick Clifton  <nickc@redhat.com>
19500
19501         * config/rx/constraints.md (NEGint4): New constraint.
19502         * config/rx/rx.md (attr cc): Add set_zsc.
19503         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
19504         initialised.
19505         (cmpsf): Likewise.
19506         (call_internal): Clobber the cc0 register.
19507         (call_value_internal): Likewise.
19508         (cstoresi4): Likewise.
19509         (movsieq): Likewise.
19510         (movsine): Likewise.
19511         (addsi3): Add alternative to handle small negative constants.
19512         (sunsi3): Likewise.
19513         (addsi3): Do not set the O bit in the cc0 register.
19514         (adddi3): Likewise.
19515         (subsi3): Likewise.
19516         (subdi3): Likewise.
19517         (andsi3): Reorder alternatives to prefer shorter forms.
19518         (mulsi3): Likewise.
19519         (iorsi3): Likewise.
19520         (negsi2): Note that the cc0 flags are set.
19521         (rotlsi3): Note that only the Z and S bits are set in cc0.
19522         (lshrsi3): Likewise.
19523         (ashlsi3): Likewise.
19524         (subsf3): Use %Q for the MEM operand.
19525         (fix_truncsfsi2): Likewise.
19526         (floatsisf2): Likewise.
19527         (bitset): Remove early clobber from destination.
19528         (bitset_in_memory): Likewise.
19529         (lrintsf2): Clobber the cc0 register.
19530         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
19531         (rx_print_operand): Handle %N.
19532
19533 2010-06-16  Jan Hubicka  <jh@suse.cz>
19534
19535         * df-core.c (df_compact_blocks): Free problem_temps vector.
19536
19537 2010-06-16  Martin Jambor  <mjambor@suse.cz>
19538
19539         PR tree-optimization/43905
19540         * tree-sra.c: Include tree-inline.h.
19541         (create_abstract_origin): Removed.
19542         (modify_function): Version the call graph node instead of creating
19543         abstract origins and dealing with same_body aliases.
19544         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
19545         function is versionable.
19546         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
19547
19548 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
19549
19550         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
19551         (CHOOSE_DYNAMIC_LINKER): Update.
19552
19553 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
19554
19555         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
19556         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
19557         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
19558         *prefetch_3dnow_rex.
19559
19560 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
19561
19562         * target.h (struct asm_out):Add declare_constant_name field.
19563         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19564         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
19565         * output.h (default_asm_declare_constant_name): Declare.
19566         (assemble_label): Update prototype.
19567         * varasm.c (assemble_constant_contents): Use
19568         targetm.asm_out.declare_constant_name target hook.
19569         (assemble_label): Add 'file' argument.
19570         (default_asm_declare_constant_name): New function.
19571         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
19572         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
19573         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
19574
19575         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
19576         * config/darwin.c (darwin_asm_declare_constant_name): New function.
19577         (machopic_output_indirection): Update assemble_label argument list.
19578         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
19579         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19580
19581 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
19582
19583         PR middle-end/44391
19584         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19585         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
19586
19587 2010-06-15  Richard Guenther  <rguenther@suse.de>
19588
19589         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
19590
19591 2010-06-15  Paul Brook  <paul@codesourcery.com>
19592
19593         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
19594         hard-float ABI.
19595
19596 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
19597
19598         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
19599         don't get a vector type for output.
19600
19601 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
19602
19603         PR fortran/44536
19604         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
19605         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
19606         (LANG_HOOKS_DECLS): Add it.
19607         * gimplify.c (omp_notice_variable): Call
19608         lang_hooks.decls.omp_report_decl.
19609
19610 2010-06-15  Martin Jambor  <mjambor@suse.cz>
19611
19612         PR lto/44464
19613         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
19614         on the newly dead SSA name.
19615
19616 2010-06-15  Alan Modra  <amodra@gmail.com>
19617
19618         * doc/invoke.texi: Add mcmodel to powerpc options.
19619         * configure.ac: Add HAVE_LD_LARGE_TOC test.
19620         * configure: Regenerate.
19621         * config.in: Regenerate.
19622         * config/rs6000/linux64.opt (mcmodel): New.
19623         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
19624         (TARGET_CMODEL, SET_CMODEL): Define.
19625         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
19626         select CMODEL_MEDIUM default.
19627         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
19628         (TARGET_CMODEL): Define default.
19629         * config/rs6000/rs6000.c (cmodel): New variable.
19630         (rs6000_explicit_options): Add cmodel field.
19631         (rs6000_handle_option): Handle -mcmodel.
19632         (create_TOC_reference): Add largetoc_reg param.  Generate high,
19633         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
19634         (rs6000_delegitimize_address): Recognise new toc reference rtl
19635         and minimal-toc rtl.
19636         (rs6000_legitimize_reload_address): Handle new toc references.
19637         (print_operand_address): Handle legitimate_constant_pool_address_p
19638         match before lo_sum.
19639         (rs6000_eliminate_indexed_memrefs): Tidy.
19640         (rs6000_emit_move): Tweak threshold for inlining constants.
19641         Keep rs6000_emit_allocate_stack large stack frame offsets
19642         loaded into r0 inline.
19643         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
19644         (tocrel_base, tocrel_offset): New variables.
19645         (toc_relative_expr_p): Set them here.
19646         (print_operand_address): Skip over any offset on constant pool address.
19647         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
19648         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
19649         (offsettable_ok_by_alignment): New function.
19650         (rs6000_emit_move): Address suitably aligned local symbol_refs
19651         relative to the toc pointer for -mcmodel=medium.
19652         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
19653         strict param.  Allow lo_sum version of addressing.  Verify reg
19654         used for -mminimal-toc and -mcmodel != small.  Update all callers.
19655         * config/rs6000/constraints.md: Update for above change.
19656         * config/rs6000/predicates.md: Likewise.
19657         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
19658         code.
19659         (tls_gd): Split for -mcmodel=medium/large.
19660         (tls_gd_high, tls_gd_low): New.
19661         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
19662         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
19663         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
19664         (largetoc_high, largetoc_low): New.
19665         (cmptf_internal2): Add clobber.
19666         * config/rs6000/rs6000-protos.h: Update.
19667
19668 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
19669
19670         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
19671         true if no prefetch is going to be generated for a given group.
19672         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
19673         estimate the prefetch_count.
19674         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
19675         prefetch count by considering the unroll_factor and prefetch_mod
19676         for is_loop_prefetching_profitable.
19677
19678 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
19679
19680         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
19681         anything if the argument is not a MEM.
19682
19683 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
19684
19685         PR debug/43650
19686         PR debug/44181
19687         PR debug/44247
19688         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
19689         debug stmts.
19690         (canonicalize_loop_ivs): Likewise.
19691
19692 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
19693
19694         PR debug/43656
19695         * haifa-sched.c (setup_insn_reg_pressure_info,
19696         update_register_pressure): Reject debug insns.
19697         (ready_sort): Don't setup reg pressure for debug insns.
19698         (schedule_insn): Don't update reg pressure for debug insns.
19699
19700 2010-06-14  Richard Guenther  <rguenther@suse.de>
19701
19702         * lto-streamer.c (cached_bp): Remove.
19703         (bitpack_delete): Likewise.
19704         (bitpack_create): Likewise.
19705         (bp_get_next_word): Likewise.
19706         (bp_pack_value, bp_unpack_value): Move ...
19707         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
19708         Re-implement.
19709         (struct bitpack_d): Likewise.
19710         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
19711         New inline functions.
19712         * lto-streamer-out.c (lto_output_bitpack): Remove.
19713         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
19714         (pack_value_fields): Adjust.
19715         (lto_write_tree): Likewise.
19716         (output_gimple_stmt): Likewise.
19717         (output_function): Likewise.
19718         * lto-streamer-in.c (input_gimple_stmt): Adjust.
19719         (input_function): Likewise.
19720         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
19721         (lto_input_bitpack): Remove.
19722         (lto_materialize_tree): Adjust.
19723         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
19724         * lto-cgraph.c (lto_output_edge): Adjust.
19725         (lto_output_node): Likewise.
19726         (lto_output_varpool_node): Likewise.
19727         (lto_output_ref): Likewise.
19728         (input_node): Likewise.
19729         (input_varpool_node): Likewise.
19730         (input_ref): Likewise.
19731         (input_edge): Likewise.
19732         (output_node_opt_summary): Likewise.
19733         (input_node_opt_summary): Likewise.
19734         * ipa-pure-const.c (pure_const_write_summary): Likewise.
19735         (pure_const_read_summary): Likewise.
19736         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
19737         (ipa_read_indirect_edge_info): Likewise.
19738         (ipa_write_node_info): Likewise.
19739         (ipa_read_node_info): Likewise.
19740
19741 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
19742
19743         PR target/44534
19744         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
19745         (vec_extract_lo_v16hi): Likewise.
19746         (vec_extract_lo_v32qi): Likewise.
19747
19748 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
19749
19750         PR bootstrap/44426
19751         * tree.h (build_call_expr): Don't define as vararg macro, instead
19752         add a prototype.
19753         * builtins.c (build_call_nofold): Remove.
19754         (expand_builtin_int_roundingfn, expand_builtin_pow,
19755         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
19756         expand_builtin_memset_args, expand_builtin_strcmp,
19757         expand_builtin_strncmp, expand_builtin_memory_chk): Use
19758         build_call_nofold_loc instead of build_call_nofold.
19759         (build_call_expr): New function.
19760
19761         PR tree-optimization/44508
19762         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
19763         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
19764         don't eliminate trivially dead stmts.
19765         * tree-vrp.c (vrp_finalize): Pass false as last argument
19766         to substitute_and_fold.
19767         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
19768         to substitute_and_fold.
19769         * tree-ssa-ccp.c (ccp_finalize): Likewise.
19770
19771         PR bootstrap/44509
19772         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
19773
19774 2010-06-14  Ira Rosen  <irar@il.ibm.com>
19775
19776         PR tree-optimization/44507
19777         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
19778         to build initial vector for BIT_AND_EXPR.
19779         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
19780
19781 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
19782
19783         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
19784         adjust z10prop set_attr.
19785
19786 2010-06-13  Jan Hubicka  <jh@suse.cz>
19787
19788         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
19789         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
19790         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
19791         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
19792         datastructure checks into checking asserts.
19793         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
19794         * tree-ssa-sccvn.c (VN_INFO): Likewise.
19795         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
19796         df_ref_create_structure): Likewise.
19797         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
19798         pool_free): Use gcc_checking_assert.
19799         * alias.c (get_alias_set): Likewise.
19800         * var-tracking.c (variable_htab_free, shared_hash_copy,
19801         canonicalize_values_mark, variable_merge_over_cur): Likewise.
19802         * lto-streamer.c (bp_unpack_value): Likewise.
19803
19804 2010-06-13  Richard Guenther  <rguenther@suse.de>
19805
19806         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
19807         Do not stream but initialize TYPE_CANONICAL to NULL.
19808         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
19809         * gimple.c (gimple_types_compatible_p): Disregard
19810         TYPE_STRUCTURAL_EQUALITY_P.
19811         (gimple_register_type): Use TYPE_CANONICAL as cache.
19812         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
19813         before registering common types.
19814         * config/i386/i386.c (ix86_function_arg_boundary): Do not
19815         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
19816         * tree.h (TYPE_CANONICAL): Clarify documentation.
19817
19818 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
19819
19820         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19821         LIBCALL_VALUE): Remove macros.
19822         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
19823         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19824         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19825         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
19826         (ia64_function_value): Make static. Handle receiving the function
19827         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
19828
19829 2010-06-12  Jan Hubicka  <jh@suse.cz>
19830
19831         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
19832         at correct place.
19833
19834 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
19835
19836         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
19837
19838 2010-06-12  Jan Hubicka  <jh@suse.cz>
19839
19840         * df-core.c (df_clear_bb_info): New function.
19841         (df_set_blocks): bb_info is always allocated.
19842         (df_get_bb_info): Use block_info_elt_size.
19843         (df_set_bb_info): Likewise.
19844         (df_compact_blocks): Update for new block_info.
19845         (grow_bb_info): New function.
19846         * df-problems.c (df_grow_bb_info): Move to df-core.c
19847         (df_rd_set_bb_info): Remove.
19848         (df_rd_free_bb_info): Do not free block pool.
19849         (df_rd_alloc): Do not create pool, use check for
19850         obstack presence instead of NULL pointer for new blocks.
19851         (df_rd_free): DO not free alloc pool; clear block_info.
19852         (problem_RD): Add size of block info structure.
19853         (df_lr_set_bb_info): Remove.
19854         (df_lr_free_bb_info): Do not free block pool.
19855         (df_lr_alloc): Do not create pool, use check for
19856         obstack presence instead of NULL pointer for new blocks.
19857         (df_lr_free): DO not free alloc pool; clear block_info.
19858         (problem_LR): Add size of block info structure.
19859         (df_live_set_bb_info): Remove.
19860         (df_live_free_bb_info): Do not free block pool.
19861         (df_live_alloc): Do not create pool, use check for
19862         obstack presence instead of NULL pointer for new blocks.
19863         (df_live_free): DO not free alloc pool; clear block_info.
19864         (problem_LIVE): Add size of block info structure.
19865         (problem_CHAIN): Add size of block info structure.
19866         (df_byte_lr_set_bb_info): Remove.
19867         (df_byte_lr_free_bb_info): Do not free block pool.
19868         (df_byte_lr_alloc): Do not create pool, use check for
19869         obstack presence instead of NULL pointer for new blocks.
19870         (df_byte_lr_free): DO not free alloc pool; clear block_info.
19871         (problem_BYTE_LR): Add size of block info structure.
19872         (problem_NOTE): Add size of block info structure.
19873         (df_byte_MD_set_bb_info): Remove.
19874         (df_byte_MD_free_bb_info): Do not free block pool.
19875         (df_byte_MD_alloc): Do not create pool, use check for
19876         obstack presence instead of NULL pointer for new blocks.
19877         (df_byte_MD_free): DO not free alloc pool; clear block_info.
19878         (problem_BD): Add size of block info structure.
19879         * df-scan.c (df_scan_free_internal): Free block pool.
19880         (df_scan_set_bb_info): Remove.
19881         (df_scan_free_bb_info): Check for artificial_defs instead
19882         of bb_info being non-NULL.
19883         (df_scan_alloc): DO not create df_scan_block pool.
19884         (problem_SCAN): Set size of block info.
19885         (df_bb_refs_record): Do not allocate bb_info.
19886         * df.h (df_problem): Add block_info_elt_size.
19887         (struct dataflow): Change block_info to void *.
19888         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
19889         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
19890         in-line structures.
19891
19892 2010-06-12  Jan Hubicka  <jh@suse.cz>
19893
19894         PR tree-optimize/44485
19895         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
19896         containing use of return value of noreturn function.
19897
19898 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
19899
19900         * targhooks.c (default_function_value): Don't use
19901         FUNCTION_OUTGOING_VALUE.
19902         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
19903         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
19904
19905 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
19906
19907         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
19908         Add crtfastmath.o to extra_parts.
19909         * config/mips/crtfastmath.c: New.
19910         * config/mips/linux.h (ENDFILE_SPEC): New.
19911
19912 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
19913
19914         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
19915         old_type in parameter.
19916         (gcc_type_for_value): Update call to gcc_type_for_interval.
19917         (compute_type_for_level_1): Renamed compute_type_for_level.
19918         Update call to gcc_type_for_interval.
19919
19920 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
19921
19922         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
19923         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
19924
19925 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
19926
19927         * opts-common.c: Include options.h.
19928         (integral_argument): Move from opts.c.
19929         (decode_cmdline_option): New.  Based on read_cmdline_option.
19930         * opts.c (integral_argument): Move to opts-common.c.
19931         (read_cmdline_option): Move most contents to
19932         decode_cmdline_option.  Use %qs in diagnostics.
19933         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
19934         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
19935         decode_cmdline_option): New.
19936
19937 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
19938
19939         PR target/44481
19940         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
19941         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
19942         (partiysi2_cmp): Ditto.
19943         (*partiyhi2_cmp): Ditto.
19944         (*parityqi2_cmp): Remove.
19945
19946 2010-06-11  Jan Hubicka  <jh@suse.cz>
19947
19948         * bitmap.h (bmp_iter_next_bit): New.
19949         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
19950
19951 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
19952             Eric Botcazou  <ebotcazou@adacore.com>
19953
19954         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
19955         computed cost.
19956
19957 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
19958
19959         * config/i386/i386.md (unspec): New define_c_enum.
19960         (unspecv): Ditto.
19961
19962 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
19963
19964         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
19965
19966 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
19967
19968         PR middle-end/44483
19969         * tree-if-conv.c (bb_predicate_s): New struct.
19970         (bb_predicate_p): New.
19971         (bb_has_predicate): New.
19972         (bb_predicate): New.
19973         (set_bb_predicate): New.
19974         (bb_predicate_gimplified_stmts): New.
19975         (set_bb_predicate_gimplified_stmts): New.
19976         (add_bb_predicate_gimplified_stmts): New.
19977         (init_bb_predicate): New.
19978         (free_bb_predicate): New.
19979         (is_predicated): Use bb_predicate.
19980         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
19981         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
19982         before processing their successors.
19983         (clean_predicate_lists): Removed.
19984         (find_phi_replacement_condition): Use bb_predicate.
19985         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
19986         computations.
19987         (insert_gimplified_predicates): New.
19988         (combine_blocks): Call insert_gimplified_predicates.
19989         (tree_if_conversion): Call free_bb_predicate instead of
19990         clean_predicate_lists.
19991
19992 2010-10-11  Paul Brook  <paul@codesourcery.com>
19993
19994         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
19995         * config/arm/arm.c (all_architectures): Change v7e-m default to
19996         cortexm4.
19997         * config/arm/arm-cores.def: Add cortex-m4.
19998         * config/arm/arm-tune.md: Regenerate.
19999
20000 2010-06-11  Jan Hubicka  <jh@suse.cz>
20001
20002         * ipa-pure-const.c (special_builtlin_state): New function.
20003         (check_call): Use it instead of special casign BUILT_IN_RETURN.
20004         (propagate_pure_const): Use it.
20005
20006 2010-06-11  Jan Hubicka  <jh@suse.cz>
20007
20008         * df-problems.c (df_live_scratch): Convert to bitmap_head.
20009         (df_live_alloc): Initialize df_live_scratch when initializing
20010         problem_data.
20011         (df_live_transfer_function): Update uses of df_live_scratch.
20012         (df_live_free): Free problem_data; clear df_live_scratch before
20013         releasing the obstack.
20014         (df_md_free): Free problem data.
20015
20016 2010-06-11  Jan Hubicka  <jh@suse.cz>
20017
20018         * doc/invoke.texi (Wsuggest-attribute): Document.
20019         (Wmissing-noreturn): Remove.
20020         * ipa-pure-const.c (warn_function_noreturn): New function.
20021         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
20022         warn_missing_noreturn.
20023         * common.opt (Wsuggest-attribute=noreturn): New.
20024         * tree-flow.h (warn_function_noreturn): Declare.
20025         * tree-cfg.c (execute_warn_function_noreturn): Use
20026         warn_function_noreturn.
20027         (gate_warn_function_noreturn): New.
20028         (pass_warn_function_noreturn): Update.
20029
20030 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20031
20032         * c-typeck.c (handle_warn_cast_qual): Add loc
20033         parameter. Improve warning message.
20034         (build_c_cast): Pass location to handle_warn_cast_qual.
20035
20036 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
20037
20038         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
20039         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
20040         insn mnemonic.
20041         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
20042
20043 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
20044
20045         Fix bootstap on mips
20046         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
20047         be naming typedefs.
20048
20049 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
20050
20051         * system.h (helper_const_non_const_cast): New inline for
20052         gcc version <= 4.0.
20053         (CONST_CAST2): For gcc version <= 4.0 use
20054         new helper to do const/non-const casting.
20055
20056 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20057
20058         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
20059         * Makefile.in (OBJS-common): Include insn-enums.o.
20060         (insn-enums.o): New rule.
20061         (simple_generated_c): Add insn-enums.c.
20062         (build/genenums.o): New rule.
20063         (genprogmd): Add "enums".
20064         * genconstants.c (print_enum_type): Declare a C string array
20065         for each enum.
20066         * genenums.c: New file.
20067         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
20068         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
20069         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
20070
20071 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20072
20073         * doc/md.texi (define_enum_attr): Document.
20074         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
20075         * read-md.h (lookup_enum_type): Declare.
20076         * read-md.c (lookup_enum_type): New function.
20077         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
20078         * genattrtab.c (attr_desc): Add an enum_name field.
20079         (evaluate_eq_attr): Take the associated attribute as argument.
20080         Get the enum prefix from the enum_name field, if defined.
20081         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
20082         (simplify_test_exp): Pass attr to evaluate_eq_attr.
20083         (add_attr_value): New function, split out from...
20084         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
20085         (write_test_expr): Pass attr to evaluate_eq_attr.
20086         (write_attr_get): Use the enum_name as the enum tag, if defined.
20087         (write_attr_valueq): Use the enum_name as a prefix, if defined.
20088         (find_attr): Initialize enum_name.
20089         (main): Handle DEFINE_ENUM_ATTR.
20090         * gensupport.c (process_rtx): Likewise.
20091         * config/mips/mips.h (mips_tune_attr): Delete.
20092         * config/mips/mips.md (cpu): Use define_attr_enum.
20093
20094 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20095
20096         * doc/md.texi (define_c_enum, define_enum): Document.
20097         * read-md.h (md_constant): Add a parent_enum field.
20098         (enum_value, enum_type): New structures.
20099         (upcase_string, traverse_enum_types): Declare.
20100         * read-md.c (enum_types): New variable.
20101         (upcase_string, add_constant): New functions.
20102         (handle_constants): Don't create the hash table here.
20103         Use add_constant.
20104         (traverse_md_constants): Don't check for a null md_constants.
20105         (decimal_string, handle_enum, traverse_enum_types): New functions.
20106         (read_md_files): Initialize md_constants and md_enums.
20107         * genconstants.c (print_md_constant): Ignore info argument.
20108         Only print constants that belong to no enum.
20109         (print_enum_type): New function.
20110         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
20111         for each defined enum type.
20112         * config/mips/mips.md (processor): New define_enum.
20113         (unspec): New define_c_enum.
20114         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
20115         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
20116         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
20117         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
20118         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
20119         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
20120         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
20121         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
20122         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
20123         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
20124         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
20125         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
20126         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
20127         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
20128         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
20129         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
20130         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
20131         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
20132         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
20133         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
20134         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
20135         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
20136         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
20137         (UNSPEC_RDDSP): Move to mips-dsp.md.
20138         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
20139         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
20140         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
20141         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
20142         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
20143         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
20144         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
20145         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
20146         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
20147         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
20148         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
20149         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
20150         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
20151         Moved to mips-dspr2.md.
20152         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
20153         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
20154         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
20155         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
20156         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
20157         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
20158         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
20159         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
20160         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
20161         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
20162         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
20163         UNSPEC_LOONGSON_PSADBH)
20164         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
20165         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
20166         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
20167         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
20168         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
20169         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
20170         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
20171         (cpu): Update comment.
20172         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
20173         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
20174         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
20175         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
20176         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
20177         UNSPEC_LOONGSON_PCMPEQ)
20178         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
20179         UNSPEC_LOONGSON_PINSR_0)
20180         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
20181         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
20182         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
20183         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
20184         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
20185         UNSPEC_LOONGSON_PSADBH)
20186         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
20187         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
20188         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
20189         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
20190         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
20191         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
20192         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
20193         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
20194         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
20195         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
20196         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
20197         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
20198         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
20199         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
20200         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
20201         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
20202         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
20203         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
20204         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
20205         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
20206         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
20207         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
20208         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
20209         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
20210         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
20211         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
20212         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
20213         (UNSPEC_RDDSP): Moved from mips.md.
20214         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
20215         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
20216         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
20217         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
20218         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
20219         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
20220         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
20221         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
20222         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
20223         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
20224         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
20225         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
20226         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
20227         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
20228         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
20229         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
20230         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
20231         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
20232         (UNSPEC_SCC): Moved from mips.md.
20233         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
20234         "processor_type" to "processor".
20235         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
20236         * config/mips/mips.h (processor_type): Delete.
20237         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
20238         "processor_type" to "processor".
20239
20240 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20241
20242         * configure.ac (tm_include_list): Add insn-constants.h.
20243         * configure: Regenerate.
20244         * Makefile.in (GTM_H): Move insn-constants.h here from...
20245         (TM_H): ...here.
20246         * mkconfig.sh: Remove special handling for insn-constants.h.
20247
20248 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20249
20250         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
20251         (BUILD_MD): ...this new variable.
20252         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
20253         that include the old contents of simple_generated_h and
20254         simple_generated_c.
20255         (simple_generated_h, simple_generated_c): Include them.  Add
20256         insn-constants.h.
20257         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
20258         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
20259         Remove these dependencies from the main rule and include
20260         insn-conditions.md in the command line only if it appears
20261         in the dependency list.
20262         (insn-constants.h, s-constants): Delete.
20263         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
20264         or gensupport.h.
20265         (build/genmddeps.o): Likewise.
20266         (genprogrtl): New variable that contains everything from genprogmd
20267         except mddeps and constants.
20268         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
20269         depend on $(BUILD_MD)
20270         (genprog): New variable.  Make these programs depend on
20271         $(BUILD_ERRORS).
20272         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
20273         (main): Use read_md_files instead of init_rtx_reader_args.
20274         * genconstants.c: As for genmddeps.c.
20275         * read-md.h (read_skip_construct): Declare.
20276         * read-md.c (read_skip_construct): New function.
20277         (handle_file): Allow a null handle_directive, skipping the
20278         construct if so.
20279         (parse_include): Update the comment accordingly.
20280
20281 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20282
20283         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
20284         * genmddeps.c: Include read-md.h.
20285         (main): Call init_rtx_reader_args instead of init_md_reader_args.
20286         * genattr.c (main): Likewise.
20287         * genattrtab.c (main): Likewise.
20288         * genautomata.c (main): Likewise.
20289         * gencodes.c (main): Likewise.
20290         * genconditions.c (main): Likewise.
20291         * genconfig.c (main): Likewise.
20292         * genconstants.c (main): Likewise.
20293         * genemit.c (main): Likewise.
20294         * genextract.c (main): Likewise.
20295         * genflags.c (main): Likewise.
20296         * genopinit.c (main): Likewise.
20297         * genoutput.c (main): Likewise.
20298         * genpeep.c (main): Likewise.
20299         * genrecog.c (main): Likewise.
20300         * genpreds.c (main): Likewise.
20301         * gensupport.h (in_fname): Move to read-md.h.
20302         (init_md_reader_args_cb): Rename to...
20303         (init_rtx_reader_args_cb): ...this and return a bool.
20304         (init_md_reader_args): Rename to...
20305         (init_rtx_reader_args): ...this and return a bool.
20306         (include_callback): Move to read-md.h.
20307         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
20308         (file_name_list, first_dir_md_include): Move to read-md.c
20309         (first_bracket_include): Delete unused variable.
20310         (last_dir_md_include): Move to read-md.c.
20311         (process_include): Delete, moving code to read-md.c:handle_include.
20312         (process_rtx): Don't handle INCLUDE.
20313         (save_string): Delete.
20314         (rtx_handle_directive): New function.
20315         (init_md_reader_args_cb): Rename to...
20316         (init_rtx_reader_args_cb): ...this and return a boolean success value.
20317         Use read_md_args.
20318         (init_md_reader_args): Rename to...
20319         (init_rtx_reader_args): ...this and return a boolean success value.
20320         * rtl.def (INCLUDE): Delete.
20321         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
20322         argument.
20323         * read-rtl.c (read_conditions): Don't gobble ')' here.
20324         (read_mapping): Likewise.
20325         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
20326         Handle top-level non-rtx constructs here rather than in read_rtx_1.
20327         Store the whole queue in *X.  Remove call to init_md_reader.
20328         (read_rtx_1): Rename to...
20329         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
20330         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
20331         here.
20332         (read_nested_rtx): New function.  Handle (nil) here rather than
20333         in read_rtx_code.
20334         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
20335         gobble ')' here.
20336         * read-md.h (directive_handler_t): New type.
20337         (in_fname, include_callback): Moved from read-md.h.
20338         (read_constants, init_md_reader): Delete.
20339         (read_md_files): Declare.
20340         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
20341         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
20342         from gensupport.c.
20343         (read_constants): Rename to...
20344         (handle_constants): ...this.  Don't gobble ')' here.
20345         (handle_include, handle_file, handle_toplevel_file)
20346         (parse_include): New functions, mostly taken from gensupport.c.
20347         (init_md_reader): Subsume into...
20348         (read_md_files): ...this new function.
20349
20350 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20351
20352         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
20353         (unread_char): Decrement read_md_lineno after putting back '\n'.
20354         * read-md.c (fatal_with_file_and_line): Push back any characters
20355         that we decide not to add to the context.
20356         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
20357         fatal_expected_char in cases where '/' ends a line (for example).
20358         (read_name): Don't increment read_md_lineno here.
20359         (read_escape): Likewise.
20360         (read_quoted_string): Likewise.
20361         (read_braced_string): Likewise.
20362
20363 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20364
20365         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
20366         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
20367         * genconstants.c: Include read-md.h.
20368         * read-rtl.c (md_constants): Move to read-md.c.
20369         (md_name): Move to read-md.h.
20370         (initialize_iterators): Use leading_string_hash instead of def_hash
20371         and leading_string_eq_p instead of def_name_eq_p.
20372         (read_name): Move to read-md.c.
20373         (def_hash, def_name_eq_p): Delete.
20374         (read_constants, traverse_md_constants): Move to read-md.c.
20375         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
20376         * read-md.h: Include hashtab.h.
20377         (md_name): Moved from read-rtl.c.
20378         (md_constant): Moved from read-md.h.
20379         (leading_string_hash, leading_string_eq_p, read_name)
20380         (read_constants, traverse_md_constants): Declare.
20381         * read-md.c (md_constants): Moved from read-rtl.c.
20382         (leading_string_hash, leading_string_eq_p): New functions.
20383         (read_name, read_constants, traverse_md_constants): Moved from
20384         read-rtl.c.
20385
20386 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20387
20388         * read-rtl.c (md_name): New structure.
20389         (read_name): Take an md_name instead of a buffer pointer.
20390         Use the "string" field instead of strcpy when expanding constants.
20391         (read_constants): Remove the tmp_char argument.  Update the calls
20392         to read_name, using two local name buffers instead of the tmp_char
20393         argument.  Merge the constant-creation code.
20394         (read_conditions): Remove the tmp_char argument.  Update the calls
20395         to read_name, using a local name buffer instead of the tmp_char
20396         argument.
20397         (read_mapping): Replace tmp_char variable with a local name buffer.
20398         Update the calls to read_name.
20399         (read_rtx_1): Likewise.  Update the calls to read_constants and
20400         read_conditions.
20401
20402 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20403
20404         * Makefile.in (build/read-md.o): Depend on errors.h.
20405         * read-md.h (error_with_line): Declare.
20406         * read-md.c: Include errors.h.
20407         (message_with_line_1): New function, extracted from...
20408         (message_with_line): ...here.
20409         (error_with_line): New function.
20410         * genattrtab.c: If a call to message_with_line is followed by
20411         "have_error = 1;", replace both statements with a call to
20412         error_with_line.
20413         * genoutput.c: Likewise.
20414         * genpreds.c: Likewise.
20415         * genrecog.c: If a call to message_with_line is followed by
20416         "error_count++;", replace both statements with a call to
20417         error_with_line.
20418         (errorcount): Delete.
20419         (main): Don't check it.
20420         * gensupport.c: If a call to message_with_line is followed by
20421         "errors = 1;", replace both statements with a call to error_with_line.
20422         (errors): Delete.
20423         (process_define_cond_exec): Check have_error instead of errors.
20424         (init_md_reader_args_cb): Likewise.  Don't set errors.
20425
20426 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20427
20428         * read-md.h (read_md_file): Declare.
20429         (read_char, unread_char): New functions.
20430         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
20431         (read_quoted_string, read_string): Remove FILE * argument.
20432         * read-md.c (read_md_file): New variable.
20433         (read_md_filename, read_md_lineno): Update comments and remove
20434         unnecessary initialization.
20435         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
20436         (read_escape, read_quoted_string, read_braced_string, read_string):
20437         Remove FILE * argument.  Update calls accordingly, using read_char
20438         and unread_char instead of getc and ungetc.
20439         * rtl.h (read_rtx): Remove FILE * argument.
20440         * read-rtl.c (iterator_group): Remove FILE * argument from
20441         "find_builtin".
20442         (iterator_traverse_data): Remove "infile" field.
20443         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
20444         (add_mapping, read_name, read_constants, read_conditions)
20445         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
20446         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
20447         Remove file arguments from all calls, using read_char and unread_char
20448         instead of getc and ungetc.
20449         * gensupport.c (process_include): Preserve read_md_file around
20450         the include.  Set read_md_file to the handle of the included file.
20451         Update call to read_rtx.
20452         (init_md_reader_args_cb): Set read_md_file to the handle of the file
20453         and remove local FILE *.  Update calls to read_rtx.
20454
20455 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20456
20457         * read-md.h (read_rtx_lineno): Rename to...
20458         (read_md_lineno): ...this.
20459         (read_rtx_filename): Rename to...
20460         (read_md_filename): ...this.
20461         (copy_rtx_ptr_loc): Rename to...
20462         (copy_md_ptr_loc): ...this.
20463         (print_rtx_ptr_loc): Rename to...
20464         (print_md_ptr_loc): ...this.
20465         * read-md.c: Likewise.  Update references after renaming.
20466         (string_obstack): Replace RTL with MD in comment.
20467         (set_rtx_ptr_loc): Rename to...
20468         (set_md_ptr_loc): ...this.
20469         (get_rtx_ptr_loc): Rename to...
20470         (get_md_ptr_loc): ...this.
20471         * genconditions.c: Update references after renaming.
20472         * genemit.c: Likewise.
20473         * genoutput.c: Likewise.
20474         * genpreds.c: Likewise.
20475         * gensupport.c: Likewise.
20476         * read-rtl.c: Likewise.
20477
20478 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20479
20480         * Makefile.in (READ_MD_H): New variable.
20481         (BUILD_RTL): Add build/read-md.o.
20482         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
20483         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
20484         (build/genattrtab.o, build/genconditions.o build/genemit.o)
20485         (build/genextract.o, build/genflags.o, build/genoutput.o)
20486         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
20487         (build/read-md.o): New rule.
20488         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
20489         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
20490         * coretypes.h: ...here.
20491         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
20492         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
20493         * genattr.c: Include read-md.h.
20494         * genattrtab.c: Likewise.
20495         * genconditions.c: Likewise.
20496         * genemit.c: Likewise.
20497         * genextract.c: Likewise.
20498         * genflags.c: Likewise.
20499         * genoutput.c: Likewise.
20500         * genpreds.c: Likewise.
20501         * genrecog.c: Likewise.
20502         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
20503         (join_c_conditions, print_c_condition, read_rtx_filename)
20504         (read_rtx_lineno): Move to read-md.h.
20505         * read-rtl.c: Include read-md.h.
20506         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
20507         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
20508         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
20509         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
20510         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
20511         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
20512         (read_braced_string, read_string): Move to read-md.c.
20513         (read_rtx): Move some initialization to init_md_reader and call
20514         init_md_reader here.
20515         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
20516         Move to read-md.h.
20517         * gensupport.c: Include read-md.h.
20518         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
20519         * read-md.h, read-md.c: New files.
20520
20521 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
20522
20523         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20524         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20525         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
20526         * config/moxie/moxie.c (moxie_function_value): Make static.
20527         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
20528         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20529
20530 2010-06-10  Martin Jambor  <mjambor@suse.cz>
20531
20532         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
20533         * dbgcnt.def (tree_sra): New counter.
20534         * tree-sra.c: Include dbgcnt.h.
20535         (gate_intra_sra): Check tree_sra debug counter.
20536
20537 2010-06-10  Martin Jambor  <mjambor@suse.cz>
20538
20539         PR tree-optimization/44258
20540         * tree-sra.c (build_access_subtree): Return false iff there is a
20541         partial overlap.
20542         (build_access_trees): Likewise.
20543         (analyze_all_variable_accesses): Disqualify candidates if
20544         build_access_trees returns true for them.
20545
20546 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
20547
20548         PR debug/41371
20549         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
20550         tail-recurse into canonical node.  Fast-forward over
20551         non-canonical VALUEs.
20552
20553 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
20554
20555         PR boostrap/44470
20556         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
20557         (*addsi_1_zext) <TYPE_LEA>: Likewise.
20558         (add lea splitter): Likewise.
20559         (add_zext lea splitter): Likewise.
20560
20561 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
20562
20563         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
20564
20565 2010-06-10  Jan Hubicka  <jh@suse.cz>
20566
20567         * df-problems.c (df_live_problem_data): Add live_bitmaps.
20568         (df_live_alloc): Initialize problem data and live_osbtacks.
20569         (df_live_finalize): Remove obstack, problem data; do not
20570         clear all bitmaps.
20571         (df_live_top_dump, df_live_bottom_dump): Do not dump old
20572         data when not allocated.
20573         (df_live_verify_solution_start): Do not allocate problem data.
20574         (df_live_verify_solution_end): Check if out is allocated.
20575         (struct df_md_problem_data): New structure.
20576         (df_md_alloc): Allocate problem data.
20577         (df_md_free): Free problem data; do not clear bitmaps.
20578
20579 2010-06-10  Jan Beulich  <jbeulich@novell.com>
20580
20581         PR bootstrap/37304
20582         * configure.ac: Replace $() with ${} when intending to expand
20583         variables rather than invoking commands.
20584         * configure: Re-generate.
20585
20586 2010-06-10  Jan Hubicka  <jh@suse.cz>
20587
20588         PR rtl-optimization/44460
20589         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
20590         TYPE_NEEDS_CONSTRUCTING sanity check.
20591
20592 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
20593
20594         * doc/include/fdl.texi: Move to GFDL version 1.3.
20595
20596         * doc/cpp.texi: Move to GFDL version 1.3.
20597         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
20598         * doc/gccint.texi: Move to GFDL version 1.3.
20599         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
20600         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
20601         * doc/invoke.texi: Move to GFDL version 1.3.
20602
20603 2010-06-09  Jan Hubicka  <jh@suse.cz>
20604
20605         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
20606         Break out from ...
20607         (propagate) ... here; swap the order.
20608
20609 2010-06-09  Jan Hubicka  <jh@suse.cz>
20610
20611         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
20612         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
20613         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
20614         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
20615
20616 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
20617
20618         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
20619         Do not the gather memory reference in the outer loop if the step
20620         is not a constant.
20621
20622 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
20623
20624         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
20625         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
20626         8 to 4.  Minor change of the related comments.
20627
20628 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20629
20630         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
20631         the scev analysis when the variable is not used outside the loop
20632         in a close phi node: call compute_overall_effect_of_inner_loop.
20633
20634 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20635
20636         * graphite-sese-to-poly.c (single_pred_cond): Renamed
20637         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
20638         (build_sese_conditions_before): Renamed call to single_pred_cond.
20639         (build_sese_conditions_after): Same.
20640
20641 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20642
20643         * graphite-poly.h: Fix comments and indentation.
20644         * graphite-sese-to-poly.c: Same.
20645         (build_sese_conditions_before): Compute stmt and gbb only when needed.
20646         * tree-chrec.c: Fix comments and indentation.
20647         (tree-ssa-loop-niter.c): Same.
20648
20649 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
20650
20651         PR rtl-optimization/42461
20652         * dce.c (deletable_insn_p): Return true for const or pure calls again.
20653         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
20654
20655 2010-06-09  Jan Hubicka  <jh@suse.cz>
20656
20657         * bitmap.c (bitmap_and): Walk array forward.
20658         (bitmap_and_compl_into): Likewise.
20659         (bitmap_xor): Likewise.
20660         (bitmap_xor_into):  Likewise.
20661         (bitmap_equal_p): Likewise.
20662         (bitmap_intersect_p): Likewise.
20663         (bitmap_intersect_compl_p): Likewise.
20664         (bitmap_ior_and_into): Likewise.
20665         (bitmap_elt_copy): Likewise.
20666         (bitmap_and_compl): Likewise.
20667         (bitmap_elt_ior): Likewise.
20668
20669 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
20670
20671         * opts-common.c (prune_options): Ensure replacement argv array
20672         is correctly terminated by a NULL entry.
20673
20674 2010-06-09  Jan Hubicka  <jh@suse.cz>
20675
20676         * cgraph.h (varpool_first_static_initializer,
20677         varpool_next_static_initializer): Make checking only when
20678         checking enabled.
20679         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
20680         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
20681         gcc_assert to gcc_checking_assert.
20682         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
20683         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
20684         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
20685         op_iter_init_phiuse, op_iter_init_phidef,
20686         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
20687         gcc_checking_assert.
20688         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
20689         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
20690         partition_is_global, live_on_entry, live_on_exit,
20691         live_merge_and_clear): Likewise.
20692         * system.h (gcc_checking_assert): New macro.
20693         * gimple.h (set_bb_seq): Use gcc_checking_assert.
20694
20695 2010-06-09  Jason Merrill  <jason@redhat.com>
20696
20697         * Makefile.in (TAGS): Collect tags info from c-family.
20698
20699 2010-06-09  Jan Hubicka  <jh@suse.cz>
20700
20701         * gimple.h (gcc_gimple_checking_assert): New macro.
20702         (gimple_set_def_ops, gimple_set_use_ops,
20703         gimple_set_vuse, gimple_set_vdef,
20704         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
20705         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
20706         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
20707         gimple_asm_output_op, gimple_asm_output_op_ptr,
20708         gimple_asm_set_output_op, gimple_asm_clobber_op,
20709         gimple_asm_set_clobber_op, gimple_asm_label_op,
20710         gimple_asm_set_label_op, gimple_try_set_kind,
20711         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
20712         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
20713         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
20714         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
20715         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
20716         gimple_omp_for_set_initial, gimple_omp_for_final,
20717         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
20718         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
20719         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
20720         conditional with ENABLE_GIMPLE_CHECKING.
20721         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
20722
20723 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
20724
20725         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
20726         (get_computation_cost_at): Use it.
20727         (determine_use_iv_cost_condition): Likewise.
20728         (determine_iv_cost): Likewise.
20729
20730 2010-06-09  Richard Guenther  <rguenther@suse.de>
20731
20732         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
20733         replace constants.
20734
20735 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
20736
20737         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
20738
20739 2010-06-09  Martin Jambor  <mjambor@suse.cz>
20740
20741         PR tree-optimization/44423
20742         * tree-sra.c (dump_access): Dump also grp_assignment_read.
20743         (analyze_access_subtree): Pass negative allow_replacements to children
20744         if the current type is scalar.
20745
20746 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
20747
20748         PR testsuite/42843
20749         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
20750         * doc/plugins.texi (Plugin license check): Update information
20751         on type of plugin_is_GPL_compatible.
20752         * Makefile.in (PLUGINCC): Define as $(COMPILER).
20753         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
20754
20755 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
20756
20757         * config/arm/arm.c (thumb2_reorg): New function.
20758         (arm_reorg): Call it.
20759         * config/arm/thumb2.md (define_peephole2 for flag clobbering
20760         arithmetic operations): Delete.
20761
20762 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
20763
20764         PR target/44067
20765         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
20766         e500v2 target.
20767
20768 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
20769
20770         PR plugins/44459
20771         * gcc-plugin.h: Encapsulate all declarations in extern "C".
20772
20773 2010-06-08  Jan Hubicka  <jh@suse.cz>
20774
20775         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
20776         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
20777
20778 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
20779
20780         PR tree-optimization/39874
20781         PR middle-end/28685
20782         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
20783         Declare.
20784         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
20785         same_bool_result_p): New.
20786         (and_var_with_comparison, and_var_with_comparison_1,
20787         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
20788         (or_var_with_comparison, or_var_with_comparison_1,
20789         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
20790         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
20791         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
20792         of combine_comparisons.
20793         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
20794
20795 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
20796
20797         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20798         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20799         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
20800         pdp11_function_value_regno_p): New functions.
20801         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20802         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20803
20804 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
20805
20806         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
20807         Thumb-2 in the MINUS case.
20808
20809 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20810
20811         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
20812
20813         * doc/gty.texi (GTY Options): Document typed GC allocation and
20814         variable_size GTY option.
20815
20816         * ggc-internal.h: New.
20817
20818         * ggc.h: Update copyright year.
20819         (digit_string): Move to stringpool.c.
20820         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
20821         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
20822         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
20823         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
20824         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
20825         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
20826         (ggc_force_collect, ggc_get_size, ggc_statistics)
20827         (ggc_print_common_statistics): Move to ggc-internal.h.
20828         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
20829         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
20830         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
20831         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
20832         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
20833         (ggc_alloc_zone_pass_stat): Remove.
20834         (ggc_internal_alloc_stat, ggc_internal_alloc)
20835         (ggc_internal_cleared_alloc_stat): New.
20836         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
20837         (ggc_internal_vec_alloc_stat)
20838         (ggc_internal_cleared_vec_alloc_stat)
20839         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
20840         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
20841         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
20842         (ggc_cleared_alloc_ptr_array_two_args): New.
20843         (htab_create_ggc, splay_tree_new_ggc): Redefine.
20844         (ggc_splay_alloc): Change the type of the first argument to
20845         enum gt_types_enum.
20846         (ggc_alloc_string): Make macro.
20847         (ggc_alloc_string_stat): New.
20848         (ggc_strdup): Redefine.
20849         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
20850         (ggc_alloc_rtvec_sized): New.
20851         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
20852         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
20853         (ggc_internal_cleared_alloc_zone_stat)
20854         (ggc_internal_zone_alloc_stat)
20855         (ggc_internal_zone_cleared_alloc_stat)
20856         (ggc_internal_zone_vec_alloc_stat)
20857         (ggc_alloc_zone_rtx_def_stat)
20858         (ggc_alloc_zone_tree_node_stat)
20859         (ggc_alloc_zone_cleared_tree_node_stat)
20860         (ggc_alloc_cleared_gimple_statement_d_stat): New.
20861
20862         * ggc-common.c: Include ggc-internal.h.
20863         (ggc_internal_cleared_alloc_stat): Rename from
20864         ggc_alloc_cleared_stat.
20865         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
20866         (ggc_calloc): Remove.
20867         (ggc_cleared_alloc_htab_ignore_args): New.
20868         (ggc_cleared_alloc_ptr_array_two_args): New.
20869         (ggc_splay_alloc): Add obj_type parameter.
20870         (init_ggc_heuristics): Formatting fixes.
20871
20872         * ggc-none.c: Update copyright year.
20873         (ggc_alloc_stat): Rename to ggc_alloc_stat.
20874         (ggc_alloc_cleared_stat): Rename to
20875         ggc_internal_cleared_alloc_stat.
20876         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20877
20878         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
20879         Remove references to ggc_alloc in comments.
20880         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
20881         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
20882         (new_ggc_zone, destroy_ggc_zone): Remove.
20883         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20884
20885         * ggc-zone.c: Include ggc-internal.h.  Remove references to
20886         ggc_alloc in comments.
20887         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
20888         (ggc_internal_alloc_zone_pass_stat): New.
20889         (ggc_internal_cleared_alloc_zone_stat): New.
20890         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
20891         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
20892         (new_ggc_zone, destroy_ggc_zone): Remove.
20893
20894         * stringpool.c: Update copyright year.  Include ggc-internal.h
20895         (digit_vector): Make static.
20896         (digit_string): Moved from ggc.h.
20897         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
20898         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
20899
20900         * Makefile.in (GGC_INTERNAL_H): New.
20901         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
20902         $(GGC_INTERNAL_H) to dependencies.
20903
20904         * gentype.c: Update copyright year.
20905         (walk_type): Accept variable_size GTY option.
20906         (USED_BY_TYPED_GC_P): New macro.
20907         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
20908         whitespace at the end of strings.
20909         (get_type_specifier, variable_size_p): New functions.
20910         (alloc_quantity, alloc_zone): New enums.
20911         (write_typed_alloc_def): New function.
20912         (write_typed_struct_alloc_def): Likewise.
20913         (write_typed_typed_typedef_alloc_def): Likewise.
20914         (write_typed_alloc_defns): Likewise.
20915         (output_typename, write_splay_tree_allocator_def): Likewise.
20916         (write_splay_tree_allocators): Likewise.
20917         (main): Call write_typed_alloc_defns and
20918         write_splay_tree_allocators.
20919
20920         * lto-streamer.h (lto_file_decl_data_ptr): New.
20921
20922         * passes.c (order): Define using cgraph_node_ptr.
20923
20924         * strinpool.c (struct string_pool_data): Declare nested_ptr using
20925         ht_identifier_ptr.
20926
20927         * gimple.h (union gimple_statement_d): Likewise.
20928
20929         * rtl.h (struct rtx_def): Likewise.
20930         (struct rtvec_def): Likewise.
20931
20932         * tree.h (union tree_node): Likewise.
20933
20934         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
20935
20936         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
20937
20938         * tree-scalar-evolution.c (scev_initialize): Likewise.
20939
20940         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
20941
20942         * dwarf2asm.c (dw2_force_const_mem): Likewise.
20943
20944         * omp-low.c (lower_omp_critical): Likewise.
20945
20946         * bitmap.h (struct bitmap_head_def): Update comment to not
20947         reference ggc_alloc.
20948
20949         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
20950
20951         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
20952
20953         * ipa-prop.c (duplicate_ggc_array): Rename to
20954         duplicate_ipa_jump_func_array.  Use typed GC allocation.
20955         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
20956
20957         * gimple.c (gimple_alloc_stat): Use
20958         ggc_alloc_cleared_gimple_statement_d_stat.
20959
20960         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
20961
20962         * tree.c (make_node_stat): Use
20963         ggc_alloc_zone_cleared_tree_node_stat.
20964         (make_tree_vec_stat): Likewise.
20965         (build_vl_exp_stat): Likewise.
20966         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
20967         (make_tree_binfo_stat): Likewise.
20968         (tree_cons_stat): Likewise.
20969
20970         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
20971         (shallow_copy_rtx_stat): Likewise.
20972         (make_node_stat): Likewise.
20973
20974         * lto-symtab.c: Fix comment.
20975
20976         * tree-cfg.c (create_bb): Update comment to not reference
20977         ggc_alloc_cleared.
20978         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
20979
20980         * varpool.c (varpool_node): Use typed GC allocation.
20981         (varpool_extra_name_alias): Likewise.
20982
20983         * varasm.c (emutls_decl): Likewise.
20984         (get_unnamed_section): Likewise.
20985         (get_noswitch_section): Likewise.
20986         (get_section): Likewise.
20987         (get_block_for_section): Likewise.
20988         (build_constant_desc): Likewise.
20989         (create_constant_pool): Likewise.
20990         (force_const_mem): Likewise.
20991
20992         * tree.c (build_vl_exp_stat): Likewise.
20993         (build_real): Likewise.
20994         (build_string): Likewise.
20995         (decl_debug_expr_insert): Likewise.
20996         (decl_value_expr_insert): Likewise.
20997         (type_hash_add): Likewise.
20998         (build_omp_clause): Likewise.
20999
21000         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
21001
21002         * tree-ssa.c (init_tree_ssa): Likewise.
21003
21004         * tree-ssa-structalias.c (heapvar_insert): Likewise.
21005
21006         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
21007
21008         * tree-ssa-loop-niter.c (record_estimate): Likewise.
21009
21010         * tree-ssa-alias.c (get_ptr_info): Likewise.
21011
21012         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
21013
21014         * tree-phinodes.c (allocate_phi_node): Likewise.
21015
21016         * tree-iterator.c (tsi_link_before): Likewise.
21017         (tsi_link_after): Likewise.
21018
21019         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
21020
21021         * tree-dfa.c (create_var_ann): Likewise.
21022
21023         * tree-cfg.c (create_bb): Likewise.
21024
21025         * toplev.c (alloc_for_identifier_to_locale): Likewise.
21026         (general_init): Likewise.
21027
21028         * stringpool.c (stringpool_ggc_alloc): Likewise.
21029         (gt_pch_save_stringpool): Likewise.
21030
21031         * sese.c (if_region_set_false_region): Likewise.
21032
21033         * passes.c (do_per_function_toporder): Likewise.
21034
21035         * optabs.c (set_optab_libfunc): Likewise.
21036         (set_conv_libfunc): Likewise.
21037
21038         * lto-symtab.c (lto_symtab_register_decl): Likewise.
21039
21040         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
21041         (input_eh_region): Likewise.
21042         (input_eh_lp): Likewise.
21043         (make_new_block): Likewise.
21044         (unpack_ts_real_cst_value_fields): Likewise.
21045
21046         * lto-section-in.c (lto_new_in_decl_state): Likewise.
21047
21048         * lto-cgraph.c (input_node_opt_summary): Likewise.
21049
21050         * loop-init.c (loop_optimizer_init): Likewise.
21051
21052         * lambda.h (lambda_vector_new): Likewise.
21053
21054         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
21055
21056         * ira.c (update_equiv_regs): Likewise.
21057
21058         * ipa.c (cgraph_node_set_new): Likewise.
21059         (cgraph_node_set_add): Likewise.
21060         (varpool_node_set_new): Likewise.
21061         (varpool_node_set_add): Likewise.
21062
21063         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
21064         (duplicate_ipa_jump_func_array): Likewise.
21065         (ipa_read_node_info): Likewise.
21066
21067         * ipa-cp.c (ipcp_create_replace_map): Likewise.
21068
21069         * integrate.c (get_hard_reg_initial_val): Likewise.
21070
21071         * gimple.c (gimple_alloc_stat): Likewise.
21072         (gimple_build_omp_for): Likewise.
21073         (gimple_seq_alloc): Likewise.
21074         (gimple_copy): Likewise.
21075
21076         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
21077         (gsi_insert_after_without_update): Likewise.
21078
21079         * function.c (add_frame_space): Likewise.
21080         (insert_temp_slot_address): Likewise.
21081         (assign_stack_temp_for_type): Likewise.
21082         (allocate_struct_function): Likewise.
21083         (types_used_by_var_decl_insert): Likewise.
21084
21085         * except.c (init_eh_for_function): Likewise.
21086         (gen_eh_region): Likewise.
21087         (gen_eh_region_catch): Likewise.
21088         (gen_eh_landing_pad): Likewise.
21089         (add_call_site): Likewise.
21090
21091         * emit-rtl.c (get_mem_attrs): Likewise.
21092         (get_reg_attrs): Likewise.
21093         (start_sequence): Likewise.
21094         (init_emit): Likewise.
21095
21096         * dwarf2out.c (new_cfi): Likewise.
21097         (queue_reg_save): Likewise.
21098         (dwarf2out_frame_init): Likewise.
21099         (new_loc_descr): Likewise.
21100         (find_AT_string): Likewise.
21101         (new_die): Likewise.
21102         (add_var_loc_to_decl): Likewise.
21103         (clone_die): Likewise.
21104         (clone_as_declaration): Likewise.
21105         (break_out_comdat_types): Likewise.
21106         (new_loc_list): Likewise.
21107         (loc_descriptor): Likewise.
21108         (add_loc_descr_to_each): Likewise.
21109         (add_const_value_attribute): Likewise.
21110         (tree_add_const_value_attribute): Likewise.
21111         (add_comp_dir_attribute): Likewise.
21112         (add_name_and_src_coords_attributes): Likewise.
21113         (lookup_filename): Likewise.
21114         (store_vcall_insn): Likewise.
21115         (dwarf2out_init): Likewise.
21116
21117         * dbxout.c (dbxout_init): Likewise.
21118
21119         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
21120
21121         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
21122
21123         * config/score/score7.c (score7_output_external): Likewise.
21124
21125         * config/score/score3.c (score3_output_external): Likewise.
21126
21127         * config/s390/s390.c (s390_init_machine_status): Likewise.
21128
21129         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
21130         (rs6000_init_machine_status): Likewise.
21131         (output_toc): Likewise.
21132
21133         * config/pa/pa.c (pa_init_machine_status): Likewise.
21134         (get_deferred_plabel): Likewise.
21135
21136         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
21137
21138         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
21139
21140         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
21141
21142         * config/mep/mep.c (mep_init_machine_status): Likewise.
21143         (mep_note_pragma_flag): Likewise.
21144
21145         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
21146
21147         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
21148
21149         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
21150
21151         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
21152         (i386_pe_maybe_record_exported_symbol): Likewise.
21153
21154         * config/i386/i386.c (get_dllimport_decl): Likewise.
21155         (ix86_init_machine_status): Likewise.
21156         (assign_386_stack_local): Likewise.
21157
21158         * config/frv/frv.c (frv_init_machine_status): Likewise.
21159
21160         * config/darwin.c (machopic_indirection_name): Likewise.
21161
21162         * config/cris/cris.c (cris_init_machine_status): Likewise.
21163
21164         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
21165
21166         * config/avr/avr.c (avr_init_machine_status): Likewise.
21167
21168         * config/arm/arm.c (arm_init_machine_status): Likewise.
21169
21170         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
21171         (alpha_need_linkage): Likewise.
21172         (alpha_use_linkage): Likewise.
21173
21174         * cgraph.c (cgraph_allocate_node): Likewise.
21175         (cgraph_create_edge_1): Likewise.
21176         (cgraph_create_indirect_edge): Likewise.
21177         (cgraph_add_asm_node): Likewise.
21178
21179         * cfgrtl.c (init_rtl_bb_info): Likewise.
21180
21181         * cfgloop.c (alloc_loop): Likewise.
21182         (rescan_loop_exit): Likewise.
21183
21184         * cfg.c (init_flow): Likewise.
21185         (alloc_block): Likewise.
21186         (unchecked_make_edge): Likewise.
21187
21188         * c-parser.c (c_parse_init): Likewise.
21189         (c_parse_file): Likewise.
21190
21191         * c-decl.c (bind): Likewise.
21192         (record_inline_static): Likewise.
21193         (push_scope): Likewise.
21194         (make_label): Likewise.
21195         (lookup_label_for_goto): Likewise.
21196         (finish_struct): Likewise.
21197         (finish_enum): Likewise.
21198         (c_push_function_context): Likewise.
21199
21200         * bitmap.c (bitmap_element_allocate): Likewise.
21201         (bitmap_gc_alloc_stat): Likewise.
21202
21203         * alias.c (record_alias_subset): Likewise.
21204         (init_alias_analysis): Likewise.
21205
21206 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
21207
21208         * fold-const.c (fold_comparison): Remove redundant parenthesis.
21209         * tree-inline.c (expand_call_inline): Pass translated return value of
21210         cgraph_inline_failed_string to diagnostic function.
21211
21212 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
21213             Shujing Zhao  <pearly.zhao@oracle.com>
21214
21215         PR c/37724
21216         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
21217         implicit bad conversions is initialization.
21218         (error_init): Use gmsgid instead of msgid for argument name and change
21219         the call for error.
21220         (pedwarn_init): Use gmsgid instead of msgid for argument name and
21221         change the call for pedwarn.
21222         (warning_init): Use gmsgid instead of msgid for argument name and
21223         change the call for warning.
21224
21225 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
21226
21227         * config/mips/mips-protos.h (mips_print_operand): Delete.
21228         (mips_print_operand_address): Delete.
21229         * config/mips/mips.h (mips_print_operand_punct): Delete.
21230         (PRINT_OPERAND): Delete.
21231         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21232         (PRINT_OPERAND_ADDRESS): Delete.
21233         * config/mips/mips.c (mips_print_operand_punct): Make static.
21234         (mips_print_operand_address): Make static.
21235         (mips_print_operand): Make static.  Call
21236         mips_print_operand_punct_valid_p.
21237         (mips_print_operand_punct_valid_p): New function.
21238         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21239         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21240
21241 2010-06-07  Jan Hubicka  <jh@suse.cz>
21242
21243         PR middle-end/44454
21244         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
21245         are allocated.
21246
21247 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
21248
21249         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
21250         name of RECORD.
21251
21252 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21253
21254         * doc/sourcebuild.texi (Effective-Target Keywords, Other
21255         attributes): Document gas.
21256
21257 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
21258
21259         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
21260         <TYPE_LEA>: Split instruction.
21261         <default>: Remove alternative 2 handling.
21262         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
21263         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
21264         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
21265
21266         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
21267         (ashift_zext lea splitter): Use DImode for multiplication.
21268
21269         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
21270         to generate addition.
21271
21272 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
21273
21274         * common.opt (fira-verbose): Use Var.
21275         (fpcc-struct-return): Use Init instead of VarExists.
21276         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
21277         toplev.c.
21278         * flags.h (flag_signed_char, flag_short_enums,
21279         flag_pcc_struct_return, flag_ira_verbose,
21280         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
21281         * toplev.c (flag_detailed_statistics, flag_signed_char,
21282         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
21283         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
21284         * toplev.h (flag_crossjumping, flag_if_conversion,
21285         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
21286         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
21287         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
21288         flag_cprop_registers, time_report, flag_ira_loop_pressure,
21289         flag_ira_coalesce, flag_ira_move_spills,
21290         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
21291
21292 2010-06-07  Jan Hubicka  <jh@suse.cz>
21293
21294         * df-core.c (df_analyze_problem): Do verification after allocation.
21295
21296         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
21297         (df_lr_alloc): Initialize problem data; move bitmaps to
21298         lr_bitmaps obstack.
21299         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
21300         (df_lr_verify_solution_start): Do not initialize problem data;
21301         allocate bitmaps in lr_bitmaps.
21302         (df_lr_verify_solution_end): Do not free problem data.
21303
21304 2010-06-07  Jan Hubicka  <jh@suse.cz>
21305
21306         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
21307         if caller is noreturn.
21308         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
21309         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
21310         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
21311         * ipa-pure-const.c (check_decl): Add IPA parameter.
21312         (state_from_flags): New function.
21313         (better_state, worse_state): New functions.
21314         (check_call): When in IPA mode, do not care about callees.
21315         (check_load, check_store): Update.
21316         (check_ipa_load, check_ipa_store): New.
21317         (check_stmt): When in IPA mode, use IPA checkers.
21318         (analyze_function): Use state_from_flags.
21319         (propagate): Check indirect edges and references.
21320
21321 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
21322
21323         PR rtl-optimization/44404
21324         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
21325         of count_occurrences to see if it's safe to modify mem_insn.
21326
21327 2010-06-07  Richard Guenther  <rguenther@suse.de>
21328
21329         * gimplify.c (gimplify_cleanup_point_expr): For empty body
21330         and EH-only cleanup drop the cleanup instead of inserting it
21331         unconditionally.
21332
21333 2010-06-07  Ira Rosen  <irar@il.ibm.com>
21334
21335         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
21336         documentation.
21337         * targhooks.c (default_builtin_vectorization_cost): New function.
21338         * targhooks.h (default_builtin_vectorization_cost): Declare.
21339         * target.h (enum vect_cost_for_stmt): Define.
21340         (builtin_vectorization_cost): Change argument and comment.
21341         * tree-vectorizer.h: Remove cost model macros.
21342         * tree-vect-loop.c: Include target.h.
21343         (vect_get_cost): New function.
21344         (vect_estimate_min_profitable_iters): Replace cost model macros with
21345         calls to vect_get_cost.
21346         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
21347         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
21348         default implementation.
21349         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
21350         calls to target hook builtin_vectorization_cost.
21351         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
21352         Likewise.
21353         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
21354         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
21355         implementation to return costs.
21356         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
21357         * config/spu/spu.h: Remove vectorizer cost model macros.
21358         * config/i386/i386.h: Likewise.
21359         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
21360         a call to target hook builtin_vectorization_cost.
21361
21362 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
21363
21364         PR target/44319
21365         * config/i386/i386.c (override_options): Turn zee pass on for level 2
21366         and above and defer till target is known.
21367         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
21368         turn off otherwise.
21369
21370 2010-05-25  Jan Hubicka  <jh@suse.cz>
21371
21372         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
21373         (df_compact_blocks): Likewise.
21374         * df.h (struct df): Turn hardware_regs_used,
21375         regular_block_artificial_uses, eh_block_artificial_uses,
21376         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
21377         bitmap_head.
21378         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
21379         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
21380         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
21381         df_scan_blocks, df_insn_delete, df_insn_rescan,
21382         df_insn_rescan_debug_internal, df_insn_rescan_all,
21383         df_process_deferred_rescans, df_process_deferred_rescans,
21384         df_notes_rescan, df_get_call_refs, df_get_call_refs,
21385         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
21386         df_record_entry_block_defs, df_record_exit_block_uses,
21387         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
21388         df_scan_verify): Update.
21389
21390 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
21391
21392         PR c++/44188
21393         * c-common.c (is_typedef_decl): Move this definition ...
21394         * tree.c (is_typedef_decl): ... here.
21395         (typdef_variant_p): Move definition here from cp/tree.c.
21396         * c-common.h (is_typedef_decl): Move this declaration ...
21397         * tree.h (is_typedef_decl): ... here.
21398         (typedef_variant_p): Move declaration here from cp/cp-tree.h
21399         * dwarf2out.c (is_naming_typedef_decl): New function.
21400         (gen_tagged_type_die): Split out of ...
21401         (gen_type_die_with_usage): ... this function. When an anonymous
21402         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
21403         is emitted for the typedef.
21404         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
21405         anonymous tagged types.
21406
21407 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21408
21409         PR c/20000
21410         * c-decl.c (grokdeclarator): Delete warning.
21411
21412 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21413
21414         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
21415         newly built CALL_EXPR.
21416         * tree-profile.c (tree_profiling): Don't profile functions produced
21417         for built-in stuff.
21418
21419 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
21420
21421         PR bootstrap/44427
21422         PR bootstrap/44428
21423         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
21424         endianness-independent.
21425
21426 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
21427
21428         * c-common.c: Move to c-family/.
21429         * c-common.def: Likewise.
21430         * c-common.h: Likewise.
21431         * c-cppbuiltin.c: Likewise.
21432         * c-dump.c: Likewise.
21433         * c-format.c: Likewise.
21434         * c-format.h : Likewise.
21435         * c-gimplify.c: Likewise.
21436         * c-lex.c: Likewise.
21437         * c-omp.c: Likewise.
21438         * c.opt: Likewise.
21439         * c-opts.c: Likewise.
21440         * c-pch.c: Likewise.
21441         * c-ppoutput.c: Likewise.
21442         * c-pragma.c: Likewise.
21443         * c-pragma.h: Likewise.
21444         * c-pretty-print.c: Likewise.
21445         * c-pretty-print.h: Likewise.
21446         * c-semantics.c: Likewise.
21447         * stub-objc.c: Likewise.
21448
21449         * gengtype.c (get_file_langdir): Special-case files in c-family/.
21450         (get_output_file_with_visibility): Fix name for c-common.h.
21451         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
21452
21453         * c-tree.h: Update include path for moved files.
21454         * c-lang.c: Likewise.
21455         * c-lang.h: Likewise.
21456         * c-parser.c: Likewise.
21457         * c-convert.c: Likewise.
21458         * c-decl.c: Likewise.
21459         * c-objc-common.c: Likewise.
21460         * configure.ac: Make sure c-family/ exists in the build directory.
21461         * configure: Regenerate.
21462         * Makefile.in: Update paths for moved files.  Regroup files per
21463         location and update dependencies.  Move generated_files down after
21464         ALL_GTFILES_H.
21465
21466         * config/spu/spu-c.c: Update paths for moved files.
21467         * config/mep/mep-pragma.c: Likewise.
21468         * config/darwin-c.c: Likewise.
21469         * config/i386/msformat-c.c: Likewise.
21470         * config/i386/i386-c.c: Likewise.
21471         * config/avr/avr-c.c: Likewise.
21472         * config/sol2-c.c: Likewise.
21473         * config/ia64/ia64-c.c: Likewise.
21474         * config/rs6000/rs6000-c.c: Likewise.
21475         * config/arm/arm.c: Likewise.
21476         * config/arm/arm-c.c: Likewise.
21477         * config/h8300/h8300.c: Likewise.
21478         * config/v850/v850-c.c: Likewise.
21479
21480         * config/t-darwin: Fix dependencies for moved files.
21481         * config/t-sol2: Fix dependencies for moved files.
21482         * config/mep/t-mep: Fix dependencies for moved files.
21483         * config/ia64/t-ia64: Fix dependencies for moved files.
21484         * config/rs6000/t-rs6000: Fix dependencies for moved files.
21485         * config/v850/t-v850: Fix dependencies for moved files.
21486         * config/v850/t-v850e: Fix dependencies for moved files.
21487
21488         * config/m32c/m32c-pragma.c
21489
21490         * po/exgettext: Look in c-family/ also.
21491
21492 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
21493
21494         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
21495         (mark_control_dependent_edges_necessary): Call it instead of marking
21496         the last statement manually.
21497         (propagate_necessity): Likewise.
21498
21499 2010-06-05  Jan Hubicka  <jh@suse.cz>
21500
21501         * basic-block.h (compute_dominance_frontiers): Updated.
21502         (compute_idf): Likewise.
21503
21504         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
21505         for dominance frontiers.
21506         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
21507         (insert_updated_phi_nodes_for): Likewise.
21508         (update_ssa): Likewise.
21509         * cfganal.c (compute_dominance_frontiers_1): Likewise.
21510         (compute_dominance_frontiers): Likewise.
21511         (compute_idf): Likewise.
21512         * df-problems.c (df_md_local_compute): Likewise.
21513
21514 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
21515
21516         * target.h (struct gcc_target): Add memory_move_cost field.
21517         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
21518         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
21519         * targhooks.c (default_memory_move_cost): New function.
21520         * targhooks.h (default_memory_move_cost): Declare function.
21521         * reload.h (memory_move_cost): Declare.
21522         (memory_move_secondary_cost): Change type of 'in' argument to bool.
21523         * reginfo.c (memory_move_cost): New function.
21524         (memory_move_secondary_cost): Change type of 'in' argument to bool.
21525         * ira.h (ira_memory_move_cost): Update comment.
21526         * ira.c (ira_memory_move_cost): Update comment.
21527         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
21528         with memory_move_cost.
21529         * postreload.c (reload_cse_simplify_set): (Ditto.).
21530         * reload1.c (choose_reload_regs): (Ditto.).
21531         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
21532         (MEMORY_MOVE_COST):  Revise documentation.
21533
21534         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
21535         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
21536         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
21537         type of 'in' argument to bool.
21538         (TARGET_MEMORY_MOVE_COST): Define.
21539
21540 2010-06-05  Jan Hubicka  <jh@suse.cz>
21541
21542         * ipa-pure-const.c (propagate): Fix typo in handling of functions
21543         that cannot return.  Be more careful when merging the results with
21544         previously known ones.
21545
21546 2010-06-05  Matthias Klose  <doko@ubuntu.com>
21547
21548         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
21549         function to add the -iplugindir option.
21550         (find_plugindir_spec_function): Add new declaration and function.
21551         (static_spec_func): Use it for "find-plugindir".
21552
21553 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
21554
21555         PR c++/44361
21556         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
21557         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
21558         statement expression.
21559
21560 2010-06-05  Jan Hubicka  <jh@suse.cz>
21561
21562         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
21563         (df_rd_problem_data): Convert sparse_invalidated_by_call,
21564         dense_invalidated_by_call to bitmap head.
21565         (df_rd_alloc, df_rd_bb_local_compute_process_def,
21566         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
21567         df_rd_start_dump, df_lr_verify_transfer_functions,
21568         df_live_verify_transfer_functions, df_chain_create_bb,
21569         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
21570         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
21571         df_simulate_one_insn_forwards, df_md_alloc,
21572         df_md_bb_local_compute_process_def,
21573         df_md_bb_local_compute_process_def, df_md_local_compute,
21574         df_md_transfer_function df_md_free): Update.
21575
21576 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
21577
21578         PR c/44322
21579         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
21580         target type for ADDR_EXPR; require no changes to qualifiers except
21581         for function types.
21582         * c-tree.h (c_build_type_variant): Remove.
21583
21584 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
21585
21586         * genautomata.c (get_excl_set): Do work per element, not per char.
21587         (check_presence_pattern_sets): Similar.
21588         (check_absence_pattern_sets): Similar.
21589
21590 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
21591
21592         * genautomata.c (curr_state_pass_num): Delete.
21593         (min_issue_delay_pass_states): Delete.
21594         (min_issue_delay): Delete.
21595         (initiate_min_issue_delay_pass_states): Delete.
21596         (output_min_issue_delay_table): Compute min_issue_delay_vect
21597         using a breadth-first search variant.
21598         (output_tables): Don't call initiate_min_issue_delay_pass_states.
21599
21600 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
21601
21602         PR boostrap/44421
21603         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
21604         (df_byte_lr_bb_local_compute): Likewise.
21605
21606 2010-06-03  Jason Merrill  <jason@redhat.com>
21607
21608         Implement noexcept operator (5.3.7)
21609         * c-common.c (c_common_reswords): Add noexcept.
21610         * c-common.h (enum rid): Add RID_NOEXCEPT.
21611
21612 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
21613
21614         * config/darwin-driver.c (darwin_default_min_version): Use
21615         GCC-specific formats in diagnostics.
21616         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
21617         diagnostics.
21618         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
21619         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
21620         eval_spec_function, handle_braces, process_brace_body, main,
21621         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
21622         getenv_spec_function, compare_version_strings,
21623         version_compare_spec_function): Use GCC-specific formats in
21624         diagnostics.
21625
21626 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
21627
21628         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
21629         that operand 0 and operand 1 are equal.
21630         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
21631         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
21632         and operand 1 are equal.
21633         <default>: Ditto.  Remove ??? comment.
21634         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
21635         and operand 1 are equal.
21636         <default>: Ditto.  Remove ??? comment.
21637         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
21638         are equal.
21639         (*add<mode>_4) <default>: Ditto.
21640         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
21641
21642 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
21643
21644         * config/i386/i386-protos.h (ix86_print_operand): Declare.
21645         * config/i386/i386.c (ix86_print_operand): Make non-static.
21646         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
21647         * output.h (output_operand): Declare.
21648         * final.c (output_operand): Make non-static.
21649
21650 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
21651
21652         PR rtl-optimization/44013
21653         * sched-deps.c (add_dependence_list_and_free): Don't free lists
21654         when processing debug insns.
21655
21656         PR debug/41371
21657         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
21658         recursing.  Check that recursion is bounded.  Rename inner var
21659         to avoid hiding incoming argument.
21660
21661 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
21662
21663         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
21664         operands[2] == 255.
21665         (*addqi_3): Ditto.
21666         (*addqi_4): Ditto.
21667         (*addqi_5): Ditto.
21668         (*addqi_ext_1_rex64): Ditto.
21669         (*addqi_ext_1): Ditto.
21670
21671         (*addqi_4): Check for incdec_operand in QImode.
21672
21673         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
21674         using SWI mode iterator.
21675         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
21676         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
21677         mode iterator.
21678         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
21679         using SWI mode iterator.
21680
21681 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21682
21683         PR c/25880
21684         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
21685         * c-format.c (gcc_diag_flag_specs): Add hash.
21686         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
21687         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
21688         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
21689         pp_c_cv_qualifiers. Handle qualifiers spelling here.
21690         (pp_c_type_qualifier_list): Call the function above.
21691         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
21692         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
21693         (WARN_FOR_QUALIFIERS): New macro.
21694         (convert_for_assignment): Use it.
21695
21696 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
21697
21698         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
21699
21700 2010-06-04  Jan Hubicka  <jh@suse.cz>
21701
21702         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
21703         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
21704         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
21705         DF_BYTE_LR_OUT): Update for embedded bitmaps.
21706         * fwprop.c (single_def_use_enter_block): Likewise.
21707         * ddg.c (create_ddg_dep_from_intra_loop_link,
21708         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
21709         * loop-iv.c (latch_dominating_def): Likewise.
21710         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
21711         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
21712         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
21713         df_rd_transfer_function, df_rd_top_dump,
21714         df_rd_bottom_dump): Update.
21715         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
21716         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
21717         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
21718         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
21719         df_lr_verify_solution_start, df_lr_verify_solution_end,
21720         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
21721         df_live_free_bb_info, df_live_alloc, df_live_reset,
21722         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
21723         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
21724         df_live_verify_solution_start, df_live_verify_solution_end,
21725         df_live_verify_transfer_functions, df_chain_create_bb,
21726         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
21727         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21728         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21729         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
21730         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
21731         df_byte_lr_transfer_function, df_byte_lr_top_dump,
21732         df_byte_lr_bottom_dump, df_create_unused_note,
21733         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
21734         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
21735         df_md_transfer_function, df_md_init, df_md_confluence_0,
21736         df_md_confluence_n,
21737         df_md_top_dump, df_md_bottom_dump): Update.
21738         (struct df_lr_problem_data): Embedd bitmap headers.
21739
21740 2010-06-04  Jan Hubicka  <jh@suse.cz>
21741
21742         * dce.c (dce_process_block): Do not re-scan already marked
21743         instructions.
21744
21745 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
21746
21747         PR rtl-optimization/39871
21748         PR rtl-optimization/40615
21749         PR rtl-optimization/42500
21750         PR rtl-optimization/42502
21751         * ira.c (init_reg_equiv_memory_loc: New function.
21752         (ira): Call it twice.
21753         * reload.h (calculate_elim_costs_all_insns): Declare.
21754         * ira-costs.c: Include "reload.h".
21755         (regno_equiv_gains): New static variable.
21756         (init_costs): Allocate it.
21757         (finish_costs): Free it.
21758         (ira_costs): Call calculate_elim_costs_all_insns.
21759         (find_costs_and_classes): Take estimated elimination costs
21760         into account.
21761         (ira_adjust_equiv_reg_cost): New function.
21762         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
21763         * reload1.c (init_eliminable_invariants, free_reg_equiv,
21764         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
21765         (elim_bb): New static variable.
21766         (reload): Move code out of here into init_eliminable_invariants and
21767         free_reg_equiv.  Call them.
21768         (calculate_elim_costs_all_insns): New function.
21769         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
21770         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
21771         but call note_reg_elim_costly if we turned a valid memory address
21772         into an invalid one.
21773         * Makefile.in (ira-costs.o): Depend on reload.h.
21774
21775 2010-06-04  Julian Brown  <julian@codesourcery.com>
21776
21777         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
21778         for pool ranges.
21779
21780 2010-06-04  Richard Guenther  <rguenther@suse.de>
21781
21782         PR lto/41584
21783         * cgraph.h (struct varpool_node): Add lto_file_data field.
21784         * lto-cgraph.c (input_varpool_node): Initialize it.
21785
21786 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
21787
21788         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
21789         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
21790         predicate in "type" attribute calculation.
21791         (*addsi_1_zext): Ditto.
21792         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
21793         (*addsi_2_zext): Ditto.
21794         (*add<mode>_3): Ditto.
21795         (*addsi_3_zext): Ditto.
21796         (*add<mode>_5): Ditto.
21797
21798 2010-06-03  Jan Hubicka  <jh@suse.cz>
21799
21800         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
21801         of bitmap_bit_p.
21802         * cfganal.c (compute_dominance_frontiers_1): Likewise.
21803
21804 2010-06-03  Jan Hubicka  <jh@suse.cz>
21805
21806         * df-problems.c (df_create_unused_note, df_note_bb_compute):
21807         micro-optimize the checks when to add new note.
21808
21809 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
21810
21811         * final.c (output_asm_insn): Call
21812         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
21813         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
21814         (output_address): Call targetm.asm_out.print_operand_address.
21815         Update comments.
21816         * target.h (struct gcc_target): Add print_operand,
21817         print_operand_address, and print_operand_punct_valid_p fields.
21818         * targhooks.h (default_print_operand): Declare.
21819         (default_print_operand_address): Declare.
21820         (default_print_operand_punct_valid_p): Declare.
21821         * targhooks.c (default_print_operand): Define.
21822         (default_print_operand_address): Define.
21823         (default_print_operand_punct_valid_p): Define.
21824         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
21825         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
21826         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
21827         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
21828         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
21829         * vmsdbgout.c (addr_const_to_string): Update comment.
21830         * config/i386/i386.c (print_operand): Rename to...
21831         (ix86_print_operand): ...this.  Make static.
21832         (print_operand_address): Rename to...
21833         (ix86_print_operand_address): ...this.  Make static.  Call
21834         ix86_print_operand instead of PRINT_OPERAND.
21835         (ix86_print_operand_punct_valid_p): New function.
21836         (TARGET_PRINT_OPERAND): Define.
21837         (TARGET_PRINT_OPERAND_ADDRESS): Define.
21838         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21839         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
21840         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21841         (PRINT_OPERAND): Delete.
21842         (PRINT_OPERAND_ADDRESS): Delete.
21843         * config/i386/i386-protos.h (print_operand): Delete prototype.
21844         (print_operand_address): Delete prototype.
21845
21846 2010-06-03  Richard Guenther  <rguenther@suse.de>
21847
21848         PR tree-optimization/44403
21849         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21850         Preserve pointer qualifiers.
21851         (vect_create_data_ref_ptr): Likewise.
21852
21853 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
21854
21855         PR c++/44294
21856         * defaults.h (MAX_FIXED_MODE_SIZE): New.
21857
21858         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
21859
21860 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
21861
21862         PR debug/44375
21863         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
21864         return false if merging the bbs would lead to goto_locus
21865         location being lost from the IL.
21866
21867 2010-06-03  Jan Hubicka  <jh@suse.cz>
21868             Jakub Jelinek  <jakub@redhat.com>
21869
21870         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
21871         set->regs[i] is NULL or has just one entry.
21872
21873 2010-06-03  Jan Hubicka  <jh@suse.cz>
21874
21875         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
21876         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
21877
21878 2010-06-03  Paul Brook  <paul@codesourcery.com>
21879
21880         * config/arm/arm.c (FL_TUNE): Define.
21881         (arm_default_cpu, arm_cpu_select): Remove.
21882         (all_cores): Populate core field.
21883         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
21884         (arm_find_cpu): New function.
21885         (arm_handle_option): Lookup cpu/architecture names.
21886         (arm_override_options): Cleanup mcpu/march/mtune handling.
21887         (arm_file_start): Ditto.
21888
21889 2010-06-03  Alan Modra  <amodra@gmail.com>
21890
21891         PR target/44169
21892         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
21893         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
21894         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
21895         (rs6000_emit_load_toc_table): Likewise.
21896
21897 2010-06-02  Jan Hubicka  <jh@suse.cz>
21898
21899         * passes.c (init_optimization_passes): Put ipa reference
21900         after ipa pure-const.
21901
21902 2010-06-02  Jan Hubicka  <jh@suse.cz>
21903
21904         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
21905         calls_read_all and calls_write_all.
21906         (get_reference_optimization_summary): Fix formatting.
21907         (is_proper_for_analysis): Check that decl is not readonly.
21908         (propagate_bits): Check CONST/PURE/noreturn flags.
21909         (ipa_init): Move all_module_statics to optimization_summary_obstack.
21910         (analyze_function): Ignore indirect edges.
21911         (copy_global_bitmap): For all module statics, do nothing.
21912         (generate_summary): Do not print calls_read_all/calls_write_all.
21913         (read_write_all_from_decl): Take node as argument; check
21914         cgraph_node_cannot_return.
21915         (propagate): Reorganize read_all/write_all computation;
21916         check indirect edges; check ecf flags; use all_module_statics
21917         in the results; do not free all_module_statics.
21918         (stream_out_bitmap): Handle all_module_statics.
21919         (ipa_reference_write_optimization_summary): Likewise; use
21920         varpool/cgraph encoders to get boundaries.
21921         (ipa_reference_read_optimization_summary): Read in all_module_statics;
21922         use it when possible.
21923
21924 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21925
21926         PR target/44218
21927         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
21928         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
21929
21930         * doc/extend.texi (powerpc builtins): Document vec_recip,
21931         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
21932
21933         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
21934         (rs6000_emit_swrsqrt): Ditto.
21935         (rs6000_emit_swdivsf): Delete.
21936         (rs6000_emit_swdivdf): Ditto.
21937         (rs6000_emit_swrsqrtsf): Ditto.
21938
21939         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
21940         describe the reciprocal estimate support for each type.
21941         (recip_options): Map -mrecip=<opt> into option bits.
21942         (gen_2arg_fn_t): New typedef for binary rtx gen function.
21943         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
21944         reciprocal estimate instructions.
21945         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
21946         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
21947         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
21948         cost information if -mdebug=cost or -mdebug=reg.
21949         (rs6000_override_options): Set -mrecip-precision for power6, and
21950         power7 machines.  If -mvsx or -mdfp, enable various options that
21951         came in previous instruction set ISAs, unless the option was
21952         explicitly disabled by the command line option.  Parse
21953         -mrecip=<opt> options.
21954         (rs6000_builtin_vectorized_function): Add support for vectorizing
21955         the reciprocal estimate builtins and expansions.
21956         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
21957         (bdesc_2arg): Add reciprocal estimate builtins.
21958         (bdesc_1arg): Add reciprocal square root estimate builtins.
21959         (rs6000_expand_builtin): Rewrite to use a switch statement,
21960         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
21961         (rs6000_init_builtins): Create declarations for reciprocal
21962         estimate builtins.
21963         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
21964         sized, prefer traditional floating point registers, if integer
21965         vector types, prefer altivec registers.  Don't actually look at
21966         the memory address any more.
21967         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
21968         builtins.
21969         (rs6000_load_constant_and_splat): New helper function to load up
21970         the constant for reciprocal estimate instructions.
21971         (rs6000_emit_madd): New helper function for generating
21972         multiply/add type instructions, based on the current switches.
21973         (rs6000_emit_msub): Ditto.
21974         (rs6000_emit_mnsub): Ditto.
21975         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
21976         replace a divide with a reciprocal estimate and fixup, adding
21977         support for machines with high precision and vectors.
21978         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
21979         low precision machines.
21980         (rs6000_emit_swdiv): New common function to be called to replace a
21981         division with reciprocal estimate and fixup.
21982         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
21983         for double and vector types.  Add support for high precision machines.
21984
21985         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
21986         the reciprocal estimate instructions can be generated.
21987         (TARGET_FRE): Ditto.
21988         (TARGET_FRSQRTES): Ditto.
21989         (TARGET_FRSQRTE): Ditto.
21990         (RS6000_RECIP_*): New macros for reciprocal estimate support.
21991
21992         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
21993         square root estimate on vectors.
21994         (re<mode>2): New insn for reciprocal division estimate on vectors.
21995
21996         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
21997         New builtin.
21998         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
21999         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
22000         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
22001         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
22002         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
22003         (RS6000_BUILTIN_RSQRT): Ditto.
22004         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
22005         floating point builtin.
22006
22007         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
22008         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
22009         __RECIP_PRECISION__ based on the command line switches.
22010         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
22011
22012         * config/rs6000/rs6000.opt (-mrecip): Document add support for
22013         replacing division instructions with reciprocal estimate and fixup.
22014         (-mrecip=<opt>): New option.
22015         (-mrecip-precision): Ditto.
22016
22017         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
22018         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
22019         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
22020         precision scalar.
22021
22022         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
22023         (UNSPEC_VREFP): Ditto.
22024         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
22025         conterparts with regard to support of -mno-fused-madd and -ffast-math.
22026         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
22027         reciprocal estimate instructions to be generated.
22028         (altivec_vrefp): Ditto.
22029
22030         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
22031         estimate support.
22032         (rreg): New mode attribute for reciprocal estimate support.
22033         (recip<mode>3): New insn for division using reciprocal estimate
22034         and fixup builtins.
22035         (divide define_split): New define_split to convert floating point
22036         division to use reciprocal estimate if the user used the
22037         appropriate options and the split is run when we can add new
22038         pseudo registers for the fixup.
22039         (rsqrt<mode>2): New insn for reciprocal square root support.
22040         (recipsf3): Move into recip<mode>3.
22041         (recipdf3): Ditto.
22042         (fres): Use TARGET_FRES.
22043         (rsqrtsf2): Move into rsqrt<mode>2.
22044         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
22045         (copysignsf3): Add support for VSX.
22046         (fred): Use TARGET_FRE.
22047         (fred_fpr): Ditto.
22048         (rsqrtdf_internal1): New function for frsqrte instruciton.
22049
22050         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
22051         (vec_rsqrt): Ditto.
22052
22053 2010-06-03  Richard Guenther  <rguenther@suse.de>
22054
22055         PR middle-end/44291
22056         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
22057         (set_user_assembler_libfunc): Likewise.
22058
22059 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
22060
22061         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
22062         defaults.h.
22063         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
22064         to defaults.h
22065         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
22066         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
22067         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
22068         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
22069         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
22070         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
22071         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
22072         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
22073         * defaults.h: Updated for above mentioned changes.
22074
22075 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
22076
22077         * c-common.c: Remove header include of tm_p.h.
22078         * Makefile.in (c-common.o): Remove TM_P_H dependency.
22079
22080 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
22081
22082         * tree.h (struct tree_decl_map): New type.
22083         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
22084         (tree_decl_map_hash): New prototype.
22085         (debug_expr_for_decl, value_expr_for_decl): Change into
22086         tree_decl_map hashtab from tree_map.
22087         (init_ttree): Adjust initialization.
22088         (tree_decl_map_hash): New function.
22089         (decl_debug_expr_lookup, decl_debug_expr_insert,
22090         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
22091
22092 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22093
22094         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
22095         linker emulations.
22096         * configure: Regenerate.
22097         * config.in: Regenerate.
22098
22099         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
22100         (X86_64_EMULATION): Define.
22101         (TARGET_LD_EMULATION): Use them.
22102
22103         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
22104         (SPARC64_EMULATION): Define.
22105         (LINK_ARCH_SPEC): Use them.
22106
22107 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
22108
22109         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
22110         smallest_mode_for_size for computing the precision types of new
22111         graphite IVs.  Do not call lang_hooks.types.type_for_size.
22112
22113 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
22114
22115         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
22116         information.
22117         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
22118
22119 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
22120
22121         PR middle-end/44363
22122         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
22123         return false instead.
22124
22125 2010-06-02  Jan Hubicka  <jh@suse.cz>
22126
22127         PR middle-end/44295
22128         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
22129         create new cgraph node to check callee.
22130
22131 2010-06-02  Richard Guenther  <rguenther@suse.de>
22132
22133         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
22134
22135 2010-06-02  Richard Guenther  <rguenther@suse.de>
22136
22137         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
22138         (lto_wrapper_cleanup): ... this.  Do not exit.
22139         (fatal): Adjust.  Exit here.
22140         (fatal_perror): Likewise.
22141         (fatal_signal): New function.
22142         (main): Set up signal handlers to cleanup temporary files.
22143         * Makefile.in (lto-wrapper.o): Adjust dependencies.
22144
22145 2010-06-02  Richard Guenther  <rguenther@suse.de>
22146
22147         PR tree-optimization/44377
22148         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
22149
22150 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22151
22152         * config/s390/2097.md (z10_fhex): Remove insn reservation.
22153         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
22154         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
22155         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
22156         instruction.
22157         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
22158
22159 2010-06-02  Jan Hubicka  <jh@suse.cz>
22160
22161         * bitmap.c (bitmap_descriptor): Add search_iter.
22162         (bitmap_find_bit): Increment it.
22163         (print_statistics): Print it.
22164
22165 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
22166
22167         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
22168         instead of gimple_build_call_vec.  Delete unnecessary local variable.
22169
22170 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
22171
22172         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
22173         change from yesterday.
22174
22175 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
22176
22177         * c-ada-spec.c: Clean up redundant includes.
22178
22179 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
22180
22181         * gimplify.c: Do not include except.h and optabs.h.
22182         (gimplify_body): Do not initialize RTL profiling.
22183         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
22184         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
22185         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
22186         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
22187         langhooks.h.
22188
22189         * tree-pretty-print.h: Include pretty-print.h.
22190         * gimple-pretty-print.h: Include pretty-print.h.
22191
22192         * tree-pretty-print.c: Do not include diagnostic.h.
22193         * tree-vrp.c: Likewise.
22194         * tree-tailcall.c: Likewise
22195         * tree-scalar-evolution.c: Likewise
22196         * tree-ssa-dse.c: Likewise
22197         * tree-chrec.c: Likewise
22198         * tree-ssa-sccvn.c: Likewise
22199         * tree-ssa-copyrename.c: Likewise
22200         * tree-nomudflap.c: Likewise
22201         * tree-call-cdce.c: Likewise
22202         * tree-stdarg.c: Likewise
22203         * tree-ssa-math-opts.c: Likewise
22204         * tree-nrv.c: Likewise
22205         * tree-ssa-sink.c: Likewise
22206         * tree-browser.c: Likewise
22207         * tree-ssa-loop-ivcanon.c: Likewise
22208         * tree-ssa-loop.c: Likewise
22209         * tree-parloops.c: Likewise
22210         * tree-ssa-address.c: Likewise
22211         * tree-ssa-ifcombine.c: Likewise
22212         * tree-if-conv.c: Likewise
22213         * tree-data-ref.c: Likewise
22214         * tree-affine.c: Likewise
22215         * tree-ssa-phiopt.c: Likewise
22216         * tree-ssa-coalesce.c: Likewise
22217         * tree-ssa-pre.c: Likewise
22218         * tree-ssa-live.c: Likewise
22219         * tree-predcom.c: Likewise
22220         * tree-ssa-forwprop.c: Likewise
22221         * tree-ssa-dce.c: Likewise
22222         * tree-ssa-ter.c: Likewise
22223         * tree-ssa-loop-prefetch.c: Likewise
22224         * tree-optimize.c: Likewise
22225         * tree-ssa-phiprop.c: Likewise
22226         * tree-object-size.c: Likewise
22227         * tree-outof-ssa.c: Likewise
22228         * tree-ssa-structalias.c: Likewise
22229         * tree-switch-conversion.c: Likewise
22230         * tree-ssa-reassoc.c: Likewise
22231         * tree-ssa-operands.c: Likewise
22232         * tree-vectorizer.c: Likewise
22233         * tree-vect-data-refs.c: Likewise
22234         * tree-vect-generic.c: Likewise
22235         * tree-vect-stmts.c: Likewise
22236         * tree-vect-patterns.c: Likewise
22237         * tree-vect-slp.c: Likewise
22238         * tree-vect-loop.c: Likewise
22239         * tree-ssa-loop-ivopts.c: Likewise
22240         * tree-ssa-loop-im.c: Likewise
22241         * tree-ssa-loop-niter.c: Likewise
22242         * tree-ssa-loop-unswitch.c: Likewise
22243         * tree-ssa-loop-manip.c: Likewise
22244         * tree-ssa-loop-ch.c: Likewise
22245         * tree-dump.c: Likewise
22246         * tree-complex.c: Likewise
22247
22248         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
22249         * tree-ssa-uninit.c: Likewise
22250         * tree-ssa-threadupdate.c: Likewise
22251         * tree-ssa-uncprop.c: Likewise
22252         * tree-ssa-ccp.c: Likewise
22253         * tree-ssa-dom.c: Likewise
22254         * tree-ssa-propagate.c: Likewise
22255         * tree-ssa-alias.c: Likewise
22256         * tree-dfa.c: Likewise
22257         * tree-cfgcleanup.c: Likewise
22258         * tree-sra.c: Likewise
22259         * tree-ssa-copy.c: Likewise
22260         * tree-ssa.c: Likewise
22261         * tree-profile.c: Likewise
22262         * tree-cfg.c: Likewise
22263         * tree-ssa-threadedge.c: Likewise
22264         * tree-vect-loop-manip.c: Likewise
22265
22266         * tree-inline.c: Do not include diagnostic.h and expr.h.
22267         Include rtl.h.
22268         (copy_decl_for_dup_finish): Do not use NULL_RTX.
22269
22270         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
22271         * tree-loop-distribution.c: Likewise.
22272
22273 2010-06-01  Jan Hubicka  <jh@suse.cz>
22274
22275         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
22276
22277 2010-06-01  Jan Hubicka  <jh@suse.cz>
22278
22279         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
22280         remove return value.
22281         (split_bbs_on_noreturn_calls) .... here.
22282         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
22283         * tree-flow.h (fixup_noreturn_call): New.
22284
22285 2010-06-01  Jan Hubicka  <jh@suse.cz>
22286
22287         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
22288
22289 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
22290
22291         * tree.h (build_nt_call_list): Delete.
22292         * tree.c (build_nt_call_list): Delete.
22293
22294 2010-06-01  Jan Hubicka  <jh@suse.cz>
22295
22296         * fwprop.c: Make emit-rtl.h include last.
22297         * rtlanal.c: Include emit-rtl.h.
22298         * genautomata.c: Output emit-rtl include into insn-automata.c
22299         * df-scan.c: Include emit-rtl.h.
22300         * haifa-sched.c: Indlude emit-rtl.h.
22301         * mode-switching.c: Indlude emit-rtl.h.
22302         * graph.c: Indlude emit-rtl.h.
22303         * sel-sched.c: Include emit-rtl.h.
22304         * sel-sched-ir.c: Include emit-rtl.h.
22305         * ira-build.c: Include emit-rtl.h.
22306         * emit-rtl.c (first_insn, last_insn): Remove defines.
22307         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
22308         Move to emit-rtl.h.
22309         (set_new_first_and_last_insn, get_last_insn_anywhere,
22310         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
22311         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
22312         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
22313         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
22314         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
22315         Use accessor functions.
22316         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
22317          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
22318         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
22319         mem_expr_equal_p): Move here from rtl.h.
22320         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
22321         Move here from emit-rtl.c; make inline.
22322         * cfglayout.h: Include emit-rtl.h.
22323         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
22324          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
22325         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
22326         mem_expr_equal_p, get_insns, set_first-insn,
22327         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
22328         * reg-stack.c: Include emit-rtl.h.
22329         * dce.c: Likewise.
22330
22331 2010-06-01  Jan Hubicka  <jh@suse.cz>
22332
22333         * cgraph.h (tree_function_versioning): Update prototype.
22334         (cgraph_function_versioning): Update prototype.
22335         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
22336         bitmap.
22337         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
22338         (cgraph_materialize_clone, save_inline_function_body): Update use of
22339         tree_function_versioning.
22340         * tree-inline.c (copy_bb): Look for previous copied block to link
22341         after; fix debug output.
22342         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
22343         (copy_body): Likewise.
22344         (expand_call_inline): Update use of copy_body.
22345         (tree_function_versioning): Update use of copy body; accept
22346         blocks_to_copy and new_entry.
22347
22348 2010-06-01  Jan Hubicka  <jh@suse.cz>
22349
22350         * gegenrtl.c: Remove unnecesary prototypes.
22351         (gendecl): Remove.
22352         (gendef): Produce static inline.
22353         (gencode): Remove.
22354         (main): Do not decode parameters; generate header only.
22355         * Makefile.in (genrtl.c): Remove.
22356
22357 2010-06-01  Jan Hubicka  <jh@suse.cz>
22358
22359         * tree-switch-conversion.c (build_one_array): Make it readonly.
22360
22361 2010-06-01  Richard Guenther  <rguenther@suse.de>
22362
22363         * optabs.c (init_optabs): Guard all accesses to reinit.
22364         * ipa-pure-const.c (propagate): Fix another typo.
22365         * opts.c (common_handle_option): Split assignment to bool.
22366         * c-opts.c (c_common_handle_option): Likewise.
22367
22368 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
22369             Matthew Gingell  <gingell@adacore.com>
22370
22371         * doc/invoke.texi: Mention -fdump-ada-spec.
22372         * tree-dump.c (dump_files): Add ada-spec.
22373         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
22374         * tree-pass.h (tree_dump_index): Add TDI_ada.
22375         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
22376         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
22377         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
22378         * c-decl.c: Include c-ada-spec.h.
22379         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
22380         functions.
22381         (c_write_global_declarations): Add handling of -fdump-ada-spec.
22382         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
22383         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
22384         * c-ada-spec.h, c-ada-spec.c: New files.
22385
22386 2010-06-01  Richard Guenther  <rguenther@suse.de>
22387
22388         PR lto/43853
22389         * ipa-pure-const.c (get_function_state): Hand back varying state
22390         if we do not have one.
22391         (has_function_state): New function.
22392         (duplicate_node_data): Adjust.
22393         (remove_node_data): Likewise.
22394         (pure_const_write_summary): Likewise.
22395         (propagate): Likewise.  Fix typo.
22396
22397 2010-06-01  Jan Hubicka  <jh@suse.cz>
22398
22399         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
22400         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
22401         (execute_all_ipa_transforms): Do not play with the states.
22402
22403 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
22404
22405         * config/arm/t-linux-androideabi: New.
22406         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
22407
22408 2010-06-01  Jan Hubicka  <jh@suse.cz>
22409
22410         * tree-inline.c (estimate_num_insns): For stdarg functions look
22411         into call statement to count cost of argument passing.
22412
22413 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
22414
22415         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
22416         argument for fprintf.
22417         (ix86_output_addr_diff_elt): Likewise.
22418         (x86_function_profiler): Likewise.
22419         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
22420         (LPREFIX): Likewise.
22421         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
22422
22423 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
22424
22425         PR target/44338
22426         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
22427         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
22428         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
22429         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
22430         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
22431         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
22432         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
22433         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
22434         TARGET_FUSED_MADD.
22435
22436 2010-05-31  Jan Hubicka  <jh@suse.cz>
22437
22438         * tree.h (tree_range_check_failed): Declare noreturn.
22439
22440 2010-05-31  Jan Hubicka  <jh@suse.cz>
22441
22442         * gimple.c (gimple_call_builtin_p): New function.
22443         * gimple.h (gimple_call_builtin_p): Declare.
22444         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
22445         to exit.
22446         (execute_warn_function_return): BUILT_IN_RETURN is return.
22447         (split_critical_edges): Return edges are not critical.
22448         (is_ctrl_altering_stmt): Builtin_in_return is altering.
22449         (gimple_verify_flow_info): Handle built_in_return.
22450         (execute_warn_function_return): Handle built_in_return.
22451         * ipa-pure-const.c (check_call): Ignore builtin_return.
22452
22453 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
22454
22455         PR middle-end/44337
22456         * expr.c (expand_assignment): Don't store anything for out-of-bounds
22457         array accesses with non-MEM.
22458
22459         PR tree-optimization/44182
22460         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
22461         newly needs to end a bb is followed by debug stmts, instead return
22462         true from the function at the end.
22463         (maybe_move_debug_stmts_to_successors): New function.
22464         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
22465
22466 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
22467
22468         PR target/44161
22469         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
22470
22471 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
22472
22473         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
22474         for nested functions in non-optimized compilation.
22475
22476 2010-05-31  Richard Guenther  <rguenther@suse.de>
22477
22478         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
22479
22480 2010-05-30  Jan Hubicka  <jh@suse.cz>
22481
22482         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
22483
22484 2010-05-30  Richard Guenther  <rguenther@suse.de>
22485
22486         PR lto/42975
22487         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
22488         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
22489         no longer needed.
22490
22491 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
22492
22493         * config/darwin.c (output_objc_section_asm_op): Add comment.
22494         (name_needs_quotes): Add '_' to list of valid comment chars.
22495         (machopic_output_function_base_name): Remove unneeded quotes.
22496         (darwin_encode_section_info): Adjust asm whitespace.
22497         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
22498         (ASM_OUTPUT_LOCAL): Ditto.
22499         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
22500         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
22501         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
22502
22503 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
22504
22505         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
22506         RS6000_OUTPUT_BASENAME unconditionally.
22507         (rs6000_output_function_epilogue): Likewise.
22508
22509 2010-05-30  Jan Hubicka  <jh@suse.cz>
22510
22511         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
22512         nodes.
22513
22514 2010-05-30  Richard Guenther  <rguenther@suse.de>
22515
22516         * tree-cfg.c (verify_gimple_assign_single): Implement
22517         verification for COND_EXPR rhs.
22518
22519 2010-05-30  Jan Hubicka  <jh@suse.cz>
22520
22521         * cgraph.h (cgraph_dump_file): Declare.
22522         * cgraphunit.c (cgraph_dump_file): Export.
22523         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
22524
22525 2010-05-30  Jan Hubicka  <jh@suse.cz>
22526
22527         * dwarf2out.c (reference_to_unused,
22528         premark_types_used_by_global_vars_helper): Avoid creation of new
22529         varpool nodes.
22530
22531 2010-05-30  Jan Hubicka  <jh@suse.cz>
22532
22533         * cgraph.h (cgraph_node_cannot_return,
22534         cgraph_edge_cannot_lead_to_return): New functions.
22535         * cgraph.c (cgraph_node_cannot_return,
22536         cgraph_edge_cannot_lead_to_return): Use them.
22537         * ipa-pure-const.c (pure_const_names): New static var.
22538         (check_call): Handle calls not leading to return.
22539         (pure_const_read_summary): Dump info read.
22540         (propagate): Dump info about propagation process; ignore side effects
22541         of functions not leading to exit; fix handling of pure functions.
22542
22543 2010-05-30  Jan Hubicka  <jh@suse.cz>
22544
22545         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
22546         for tail call epilogues.
22547
22548 2010-05-30  Jan Hubicka  <jh@suse.cz>
22549
22550         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
22551         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
22552         dump files.
22553
22554 2010-05-29  Jan Hubicka  <jh@suse.cz>
22555
22556         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
22557         node; remove references in node we no longer keep in cgrpah but need
22558         body of.
22559
22560 2010-05-29  Jan Hubicka  <jh@suse.cz>
22561
22562         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
22563
22564 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22565
22566         PR target/44165
22567         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
22568
22569 2010-05-29  Jan Hubicka  <jh@suse.cz>
22570
22571         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
22572         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
22573         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
22574         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
22575         debug_names_replaced_by, debug_update_ssa): Likewise.
22576         * sbitmap.c (debug_sbitmap): Likewise.
22577         * genrecog.c (debug_decision, debug_decision_list): Likewise.
22578         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
22579         debug_tree_chain): Likewise.
22580         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
22581         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
22582         * optabs.c (debug_optab_libfuncs): Likewise.
22583         (verify_loop_closed_ssa): Likewise.
22584         * value-prof.c (verify_histograms): Likewise.
22585         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
22586         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
22587         * cfghooks.c (verify_flow_info): Likewise.
22588         * fold-const.c (debug_fold_checksum): Likewise.
22589         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
22590         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
22591         Likewise.
22592         * omega.c (debug_omega_problem): Likewise.
22593         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
22594         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
22595         * dominance.c (verify_dominators, debug_dominance_info,
22596         debug_dominance_tree): Likewise.
22597         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
22598         * df_regno_debug, df_ref_debug,
22599         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
22600         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
22601         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
22602         * sel-sched.c (debug_state): Likewise.
22603         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
22604         Likewise.
22605         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
22606         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
22607         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
22608         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
22609         Likewise.
22610         * c-pretty-print.c (debug_c_tree): Likewise.
22611         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
22612         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
22613         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
22614         * ebitmap.c (debug_ebitmap): Likewise.
22615         * function.c (debug_find_var_in_block_tree): Likewise.
22616         * print-rtl.c (debug_rtx): Likewise.
22617         (debug_rtx_count): Likewise.
22618         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
22619         * stor-layout.c (debug_rli): Likewise.
22620         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
22621         * tree-data-ref.c (debug_data_references,
22622         debug_data_dependence_relations, debug_data_reference,
22623         debug_data_dependence_relation, debug_rdg_vertex,
22624         debug_rdg_component, debug_rdg): Likewise.
22625         * tree-affine.c (debug_aff): Likewise.
22626         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
22627         Likewise.
22628         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
22629         * emit-rtl.c (verify_rtl_sharing): Likewise.
22630         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
22631         debug_value_expressions): Likewise.
22632         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
22633         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
22634         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
22635         * cfglayout.c (verify_insn_chain): Likewise.
22636         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
22637         debug_clast_stmt, debug_generated_program): Likewise.
22638         * ggc-page.c (debug_print_page_list): Likewise.
22639         * tree-ssa-ter.c (debug_ter): Likewise.
22640         * graphite-dependences.c (debug_pddr): Likewise.
22641         * sched-deps.c (debug_ds): Likewise.
22642         * tree-ssa.c (verify_ssa): Likewise.
22643         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
22644         debug_scattering_functions, debug_iteration_domains, debug_pdr,
22645         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
22646         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
22647         * tree-inline.c (debug_find_tree): Likewise.
22648         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
22649         debug_ppl_powerset_matrix): Likewise.
22650         * var-tracking.c (debug_dv): Likewise.
22651         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
22652         * cfgloop.c (verify_loop_structure): Likewise.
22653         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
22654         * c-common.c (verify_sequence_points): Likewise.
22655         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
22656         debug_candidates, debug_rgn_dependencies): Likewise.
22657         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
22658         * debug_constraint_graph, debug_solution_for_var,
22659         debug_sa_points_to_info): Likewise.
22660         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
22661         Likewie.
22662         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
22663         debug_loops, debug_loop, debug_loop_num): Likewise.
22664         * passes.c (debug_pass): Likewise.
22665         (dump_properties): Likewise; add cfglayout property.
22666         (debug_properties): Likewise.
22667         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
22668         * varpool.c (debug_varpool): Likewise.
22669         * regcprop.c (debug_value_data): Likewise.
22670         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
22671         debug_immediate_uses_for): Likewise.
22672
22673 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
22674
22675         PR bootstrap/44315
22676         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
22677         Filter out insn-flags.h.
22678
22679 2010-05-29  Jan Hubicka  <jh@suse.cz>
22680
22681         * cgraph.h (struct varpool_node_set_def,
22682         struct cgraph_node_set_def): Remove unused AUX pointer.
22683         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
22684         VEC_empty macro.
22685
22686 2010-05-29  Jan Hubicka  <jh@suse.cz>
22687
22688         PR middle-end/44324
22689         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
22690
22691 2010-05-29  Richard Guenther  <rguenther@suse.de>
22692
22693         * lto-streamer.c (cached_bp): New global variable.
22694         (bitpack_create): Return the cached bitpack, if available.
22695         (bitpack_delete): Clear and cache the bitpack, if appropriate.
22696         (bp_pack_value): Remove redundant asserts.
22697
22698 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
22699
22700         PR middle-end/44306
22701         * tree-if-conv.c (is_true_predicate): New.
22702         (is_predicated): Use is_true_predicate.
22703         (add_to_predicate_list): Same.  Do not use unshare_expr.
22704         (add_to_dst_predicate_list): Same.
22705
22706 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
22707
22708         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
22709         field on edges.
22710         (predicate_bbs): Same.
22711         (clean_predicate_lists): Same.
22712         (find_phi_replacement_condition): Do not AND the predicate from
22713         edge->aux.
22714
22715 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
22716
22717         PR bootstrap/44315
22718         * Makefile.in (build/gencondmd.o): Add a missing `\'.
22719
22720 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22721
22722         PR target/44261
22723         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
22724         (negdf2): Adjust expander pattern and use negdf2_slow.
22725         (negsf2): Likewise.
22726
22727 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
22728
22729         * basic-block.h (struct control_flow_graph): Move last_label_uid field
22730         up.
22731         * df.h (struct df_base_ref): Move regno field up.
22732         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
22733         * expr.h (struct separate_ops): Move location field up.
22734         * optabs.h (struct optab_d): Move libcall_basename field down.
22735         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
22736         * config/i386/i386.h (struct machine_function): Convert call_abi field
22737         into a bitfield.  Move cfa field to the end of the structure.
22738
22739 2010-05-29  Jan Hubicka  <jh@suse.cz>
22740
22741         * varpool.c (varpool_get_node): Fix lookup.
22742
22743 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22744
22745         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
22746         RTL specific prototypes with #ifdef RTX_CODE.
22747         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
22748         * config/spu/t-spu-elf: Fix dependencies.
22749
22750         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
22751
22752 2010-05-29  Mike Stump  <mikestump@comcast.net>
22753
22754         PR bootstrap/44315
22755         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
22756         TM_H when building to avoid dependency loops.
22757
22758 2010-05-29  Jan Hubicka  <jh@suse.cz>
22759
22760         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
22761         refs and body; not the whole node for masters of materialized clones.
22762
22763 2010-05-29  Mike Stump  <mikestump@comcast.net>
22764
22765         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
22766
22767 2010-05-29  Jan Hubicka  <jh@suse.cz>
22768
22769         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
22770         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
22771         use of clone_function_name.
22772         * cgraph.h (cgraph_create_virtual_clone,
22773         cgraph_function_versioning): update prototypes.
22774         (clone_function_name): Declare.
22775         * ipa-cp.c (ipcp_insert_stage): Update call of
22776         cgraph_create_virtual_clone.
22777         * omp-low.c (create_omp_child_function_name): Use
22778         cgraph_create_virtual_clone.
22779         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
22780         (cgraph_function_versioning): Take SUFFIX argument; produce new name
22781         and make decl local.
22782
22783 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22784
22785         * vec.h: Include statistics.h
22786         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
22787         with VEC_H.
22788
22789 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22790
22791         * c-lex.c: Do not include c-tree.h.
22792         * c-pretty-print.c: Likewise.
22793         * c-opts.c: Likewise.
22794         * c-gimplify.c: Likewise.
22795         * c-common.c: Likewise.
22796         * c-dump.c: Likewise.  Include c-common.h.
22797
22798 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22799
22800         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
22801         before including diagnostic-core.h.
22802         (c_cpp_error): New prototype moved from c-tree.h.
22803         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
22804         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
22805         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
22806         (c_cpp_error): Prototype moved to c-common.h.
22807         * Makefile.in: Update dependency for C_COMMON_H.
22808
22809 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22810
22811         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
22812         * c-common.c (c_register_addr_space): Remove here.
22813         * c-decl.c (c_register_addr_space): Re-add here.
22814
22815 2010-05-28  Mike Stump  <mikestump@comcast.net>
22816
22817         * config/darwin-c.c: Remove c-tree.h include.
22818
22819 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22820
22821         * gcc.c: Include diagnostic.h.
22822         (error_count): Remove.  All users changed to use errorcount.
22823         (programname): Remove.  All users changed to use progname.
22824         (fancy_abort, internal_error, fatal_error, error, warning, inform,
22825         fnotice): Remove.
22826         (execute): Don't include "Internal error" and bug reporting
22827         information in argument of internal_error call.
22828         (process_command): Don't increment error_count after calling
22829         perror_with_name.
22830         (input_filename): Rename to gcc_input_filename.  All users
22831         changed.
22832         (main): Call diagnostic_initialize.  Register delete_temp_files
22833         with atexit.  Use seen_error to test for errors.
22834         * gcc.h: Include diagnostic-core.h.
22835         (fatal_error, error, warning): Remove.
22836         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
22837         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
22838         (gcc.o): Update dependencies.
22839
22840 2010-05-28  Jeff Law  <law@redhat.com>
22841
22842         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
22843         functions.
22844         * ira.h (ira_bad_reload_regno): Declare
22845         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
22846
22847         * ira-color.c (update_curr_costs): Free updated hard reg costs.
22848         (ira_reassign_conflict_allocnos): Remove bogus asserts.
22849         (allocno_reload_assign): Likewise.
22850
22851 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
22852
22853         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
22854         build1_stat.
22855
22856 2010-05-28  Richard Guenther  <rguenther@suse.de>
22857
22858         PR lto/44312
22859         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
22860         Stream fixed-point constants mode.
22861         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
22862         and TYPE_PRECISION.
22863         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
22864         Stream fixed-point constants mode.
22865         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
22866         and TYPE_PRECISION.
22867
22868 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
22869
22870         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
22871         only place it was called from.
22872         (number_of_latch_executions): Do not return chrec_dont_know when the
22873         may_be_zero is a runtime condition: instead, return a COND_EXPR
22874         including the may_be_zero condition.
22875         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
22876         of nb_iterations.
22877         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
22878         COND_EXPRs.
22879
22880 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
22881
22882         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
22883         generate COND_EXPRs for degenerate_phi_result.
22884
22885 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
22886
22887         PR middle-end/44293
22888         * tree-if-conv.c (if_convertible_loop_p): Check the
22889         if-convertibility of phi nodes in non predicated BBs.
22890
22891 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22892
22893         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
22894
22895 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22896
22897         PR driver/15303
22898         * gcc.c (inform, warning, inform): New functions.
22899         (fatal_ice): Rename to internal_error; change cmsgid parameter to
22900         gmsgid.  All callers changed.
22901         (notice): Rename to fnotice; add parameter fp.  All callers changed.
22902         (fatal_error): Rename to fatal_signal.  All users changed.
22903         (fatal): Rename to fatal_error; change cmsgid parameter to
22904         gmsgid.  All callers changed.
22905         (process_command): Use warning instead of error for warnings.
22906         (end_going_arg): Don't use _() around argument of error.
22907         (do_spec_1): Use inform for message from %n specs.  Use warning
22908         instead of error for warnings.
22909         (main): Use inform for comparison messages.  Use warning for
22910         message about unused linker input.
22911         (error): Increment error_count.  Print "error: ".
22912         * gcc.h (fatal): Change to fatal_error.
22913         (warning): Declare.
22914         * config/darwin-driver.c (darwin_default_min_version): Use warning
22915         instead of fprintf for warnings.
22916         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
22917
22918 2010-05-28  Julian Brown  <julian@codesourcery.com>
22919
22920         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
22921         (*thumb2_addsi3_compare0_scratch): New.
22922         * config/arm/constraints.md (Pv): New.
22923         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
22924         for ARM mode only.
22925         (*addsi3_compare0_scratch): Likewise.
22926
22927 2010-05-28  Jan Hubicka  <jh@suse.cz>
22928
22929         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
22930         check.
22931         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
22932         only on local statics.
22933
22934 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
22935
22936         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
22937
22938 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
22939
22940         PR bootstrap/44314
22941         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
22942         (OPTION_GLIBC): Define.
22943
22944 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
22945
22946         PR debug/41048
22947         * dwarf2out.c (double_int_type_size_in_bits): New function.
22948         (round_up_to_align): Change first argument and return value to
22949         double_int.
22950         (field_byte_offset): Work internally on double_ints.
22951
22952         PR target/43636
22953         * builtins.c (expand_movstr): Use a temporary pseudo instead
22954         of target even when target is not NULL and not const0_rtx, but
22955         fails movstr predicate.
22956         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
22957
22958 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22959
22960         * final.c (rest_of_clean_state): Use %m in errors instead of
22961         strerror (errno).
22962         * gengtype.c (read_input_list, close_output_files): Use xstrerror
22963         instead of strerror.
22964         * toplev.c (process_options): Use %m in errors instead of strerror
22965         (errno).
22966         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
22967         (errno).
22968
22969 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
22970
22971         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
22972         (ix86_canonical_va_list_type): Make static.  Add declaration.
22973         (ix86_enum_va_list): Make static.  Reindent.
22974         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
22975         (ix86_canonical_va_list_type): Ditto.
22976         (ix86_enum_va_list): Ditto.
22977
22978 2010-05-28  Richard Guenther  <rguenther@suse.de>
22979
22980         * lto-wrapper.c (run_gcc): With -save-temps generate a
22981         user-visible ltrans filename.  Fixup ltrans unit numbering.
22982
22983 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
22984
22985         * c-common.c (c_common_nodes_and_builtins): Replace use
22986         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
22987         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
22988         to ix86_enum_va_list.
22989         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
22990         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
22991         (TARGET_ENUM_VA_LIST_P): Add hook description.
22992         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
22993         * target.h (gcc_target): Add enum_va_list hook.
22994
22995         PR bootstrap/44299
22996         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
22997         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
22998         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
22999
23000 2010-05-28  Alan Modra  <amodra@gmail.com>
23001
23002         PR target/44266
23003         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
23004         emit_library_call machinery to set up __tls_get_addr calls.
23005
23006 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23007
23008         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
23009
23010 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
23011
23012         Revert fix for PR c++/44188
23013         * c-common.c (is_typedef_decl): Revert the moving of  this
23014         definition ...
23015         * tree.c (is_typedef_decl): ... here.
23016         (typdef_variant_p): Revert the moving of this  definition
23017         here from cp/tree.c.
23018         * c-common.h (is_typedef_decl): Revert the moving of this
23019         declaration ...
23020         * tree.h (is_typedef_decl): ... here.
23021         (typedef_variant_p): Revert the moving of this  declaration here
23022         from cp/cp-tree.h
23023         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
23024         (gen_tagged_type_die): Revert the splitting out of ...
23025         (gen_type_die_with_usage): ... this function. Revert the anonymous
23026         tagged type handling.
23027         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
23028         typedefs naming anonymous tagged types.
23029
23030 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
23031
23032         * config/rs6000/rs6000-modes.def (PSImode): Delete.
23033
23034 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
23035
23036         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
23037         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
23038         throughout.
23039         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
23040         "xer" to "ca".
23041         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
23042         XER_REGS to CA_REGS throughout.
23043         * config/rs6000/rs6000.h: Same.
23044         (ADDITIONAL_REGISTER_NAMES): Add "xer".
23045         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
23046         that mode_iterator "P" is the size for arithmetic carries as well.
23047         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
23048
23049 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
23050
23051         PR bootstrap/44255
23052         * combine.c (struct rtx_subst_pair): Define unconditionally.
23053         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
23054         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
23055         Call make_compound_operation on pair->to.
23056         (propagate_for_debug): Don't call make_compound_operation here.
23057         Always use simplify_replace_fn_rtx.
23058
23059 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
23060
23061         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
23062         * config/xtensa/xtensa.c (override_options): Check
23063           TARGET_FORCE_NO_PIC and set flag_pic.
23064         * config/xtensa/xtensa.opt: Document -mforce-no-pic
23065
23066 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
23067
23068         PR bootstrap/44299
23069         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
23070         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
23071
23072 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
23073
23074         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
23075         toplev.h.
23076         * diagnostic.c: Don't include toplev.h.
23077         (progname): Define.  Moved from toplev.c.
23078         (seen_error): New function.
23079         * diagnostic.h: Include diagnostic-core.h.
23080         (diagnostic_t, emit_diagnostic): Don't declare here.
23081         * toplev.c (progname): Move to toplev.c.
23082         (emit_debug_global_declarations, compile_file, finalize,
23083         do_compile, toplev_main): Use seen_error.
23084         * toplev.h: Include diagnostic-core.h.
23085         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
23086         internal_error, warning, warning_at, error, error_n, error_at,
23087         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
23088         verbatim, fnotice, progname): Move to diagnostic-core.h.
23089         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
23090         (expand_builtin_expect): Use seen_error.
23091         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
23092         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
23093         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
23094         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
23095         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
23096         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
23097         errorcount for errors.
23098         * c-opts.c (c_common_finish): Use seen_error.
23099         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
23100         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
23101         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
23102         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
23103         (get_coverage_counts): Use seen_error.
23104         * dwarf2out.c (dwarf2out_finish): Use seen_error.
23105         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
23106         gimplify_body): Use seen_error.
23107         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
23108         * ipa-pure-const.c (gate_pure_const): Use seen_error.
23109         * ipa-reference.c (gate_reference): Use seen_error.
23110         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
23111         * lambda-code.c: Include diagnostic-core.h instead of
23112         diagnostic.h.
23113         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
23114         * lto-compress.c: Include diagnostic-core.h instead of
23115         diagnostic.h.
23116         * lto-section-in.c: Include diagnostic-core.h instead of
23117         diagnostic.h.
23118         * lto-streamer-out.c: Include diagnostic-core.h instead of
23119         diagnostic.h.
23120         * lto-streamer.c: Include diagnostic-core.h instead of
23121         diagnostic.h.
23122         (gate_lto_out): Use seen_error.
23123         * matrix-reorg.c: Include diagnostic-core.h instead of
23124         diagnostic.h.
23125         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
23126         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
23127         (gate_expand_omp, lower_omp_1): Use seen_error.
23128         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
23129         (rest_of_decl_compilation, rest_of_type_compilation,
23130         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
23131         * tree-cfg.c (label_to_block_fn): Use seen_error.
23132         * tree-inline.c (optimize_inline_calls): Use seen_error.
23133         * tree-mudflap.c (mudflap_finish_file): Use
23134         seen_error.
23135         * tree-optimize.c (gate_all_optimizations,
23136         gate_all_early_local_passes, gate_all_early_optimizations): Use
23137         seen_error.
23138         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
23139         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
23140         (varpool_remove_unreferenced_decls,
23141         varpool_assemble_pending_decls): Use seen_error.
23142         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
23143         (TOPLEV_H, DIAGNOSTIC_H): Update.
23144         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
23145         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
23146         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
23147         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
23148         coverage.o, lambda-code.o): Update dependencies.
23149
23150 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
23151
23152         PR c++/44188
23153         * c-common.c (is_typedef_decl): Move this definition ...
23154         * tree.c (is_typedef_decl): ... here.
23155         (typdef_variant_p): Move definition here from cp/tree.c.
23156         * c-common.h (is_typedef_decl): Move this declaration ...
23157         * tree.h (is_typedef_decl): ... here.
23158         (typedef_variant_p): Move declaration here from cp/cp-tree.h
23159         * dwarf2out.c (is_naming_typedef_decl): New function.
23160         (gen_tagged_type_die): Split out of ...
23161         (gen_type_die_with_usage): ... this function. When an anonymous
23162         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
23163         is emitted for the typedef.
23164         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
23165         anonymous tagged types.
23166
23167 2010-05-27  Jason Merrill  <jason@redhat.com>
23168
23169         * print-tree.c (debug_vec_tree): New fn.
23170         (print_vec_tree): New fn.
23171         * tree.h: Declare them.
23172         * gdbinit.in (pvt): New command.
23173
23174         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
23175
23176         * gdbinit.in (pdd): New command.
23177
23178 2010-05-27  Jan Hubicka  <jh@suse.cz>
23179
23180         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
23181         (update_caller_keys): Return early if there are no callers;
23182         only update fibheap when decresing the key.
23183         (update_callee_keys): Avoid recursion.
23184         (decide_inlining_of_small_functions): When badness does not match;
23185         re-insert into fibheap.
23186
23187 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
23188
23189         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
23190         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
23191         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
23192         (ALL_HOST_OBJS): Now a union of the above two.
23193         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
23194         all files in ALL_HOST_FRONTEND_OBJS.
23195         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
23196
23197         * c-common.c: Pretend to be a backend file by undefining
23198         IN_GCC_FRONTEND (still need rtl.h here).
23199
23200 2010-05-27  Jan Hubicka  <jh@suse.cz>
23201
23202         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
23203         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
23204
23205 2010-05-27  Jan Hubicka  <jh@suse.cz>
23206
23207         * sched-ebb.c: Rename struct deps to struct deps_desc.
23208         * ddg.c: Likewise.
23209         * sel-sched-ir.c: Likewise.
23210         * sched-deps.c: Likewise.
23211         * sched-int.h: Likewise.
23212         * sched-rgn.c: Likewise.
23213
23214 2010-05-27  Jon Beniston  <jon@beniston.com>
23215
23216         PR 43726
23217         * config/lm32/lm32.h: Remove definition of
23218         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
23219
23220 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23221
23222         PR lto/44230
23223         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
23224
23225 2010-05-27  Richard Guenther  <rguenther@suse.de>
23226
23227         PR tree-optimization/44284
23228         * tree-vect-stmts.c (vectorizable_assignment): Handle
23229         sign-changing conversions as simple copy.
23230
23231 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
23232
23233         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
23234         Bionic C library.
23235         (__gthread_active_p): Check for pthread_create if compiling against
23236         Bionic C library.
23237
23238 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
23239
23240         Support compilation for Android platform.  Reimplement -mandroid.
23241
23242         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
23243         (*android*): Set ANDROID_DEFAULT.
23244         (arm*-*-linux*): Include linux-android.h.
23245         (arm*-*-eabi*): Don't include previous -mandroid implementation.
23246         * config/arm/eabi.h: Remove, move Android-specific parts ...
23247         * config/linux-android.h: ... here.  New file.
23248         * config/arm/eabi.opt: Rename to ...
23249         * config/linux-android.opt: ... this.
23250         (mandroid): Allow -mno-android option.  Initialize based on
23251         ANDROID_DEFAULT.
23252         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
23253         Move logic to corresponding LINUX_TARGET_* macros.
23254         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
23255         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
23256         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
23257         Android definitions.
23258         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
23259         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
23260         Document.
23261
23262 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
23263
23264         Add support for Bionic C library
23265
23266         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
23267         macro.
23268         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
23269         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
23270
23271         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
23272         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
23273         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
23274         to support multiple C libraries.  Handle Bionic.
23275         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
23276         (BIONIC_DYNAMIC_LINKER64): Define.
23277         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
23278         Update.
23279         (TARGET_HAS_SINCOS): Enable for Bionic.
23280
23281         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
23282         the last option specified on command line take effect.
23283         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
23284         (mbionic): New.
23285         (mglibc, muclibc): Update.
23286
23287         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
23288         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
23289         DEFAULT_LIBC.
23290
23291         * doc/invoke.texi (-mglibc, -muclibc): Update.
23292         (-mbionic): Document.
23293
23294 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23295
23296         * c-common.h (c_register_addr_space): Add prototype.
23297         (ADDR_SPACE_KEYWORD): Remove.
23298         * c-common.c (c_register_addr_space): New function.
23299         (c_addr_space_name): Reimplement.
23300         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
23301
23302         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
23303         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
23304
23305         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
23306         Remove TARGET_ADDR_SPACE_KEYWORDS.
23307
23308 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
23309
23310         * input.c: New file.
23311         * input.h (main_input_filename): Move declaration to toplev.h.
23312         * toplev.c (input_location, line_table): Move to input.c
23313         * toplev.h (main_input_filename): Move declaration from input.h.
23314         * tree.c (expand_location): Move to input.c.
23315         * Makefile.in (OBJS-common): Add input.o.
23316         (input.o): Add dependencies.
23317
23318 2010-05-27  Richard Guenther  <rguenther@suse.de>
23319
23320         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
23321         for non-existant files.
23322         (fork_execute): Mark args_name file as deleted.
23323
23324 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
23325
23326         PR bootstrp/44287
23327         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
23328         (narrow_signed_type): Likewise.
23329
23330 2010-05-26  Jan Hubicka  <jh@suse.cz>
23331
23332         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
23333         edge only when checking is enabled; check using former_clone_of;
23334         check inline clones too.
23335         (cgraph_materialize_clone): Record former_clone_of pointer.
23336         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
23337         combining redirections; dump args_to_skip bitmap
23338         (cgraph_materialize_all_clones): Do no redirection here.
23339         * ipa-inline.c (inline_transform): Do redirection here.
23340         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
23341         cheking only).
23342
23343 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23344
23345         * config/avr/avr-c.c: Do not include regs.h.
23346         Include cpplib.h for cpp_define and tree.h for c-common.h.
23347         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
23348         * config/avr/t-avr: Fix dependencies for avr-c.o.
23349
23350 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23351
23352         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
23353         string instead of SYMBOL_REF rtx.
23354         * rtl.h (set_stack_check_libfunc): Move prototype from here...
23355         * libfuncs.h: ...to here.  Adjust for explow.c change.
23356
23357 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
23358
23359         * pretty-print.c: Don't include ggc.h.
23360         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
23361         (identifier_to_locale): Use them for allocation.
23362         * pretty-print.h (identifier_to_locale_alloc,
23363         identifier_to_locale_free): Declare.
23364         * toplev.c (alloc_for_identifier_to_locale): New.
23365         (general_init): Set identifier_to_locale_alloc and
23366         identifier_to_locale_free.
23367         * Makefile.in (pretty-print.o): Update dependencies.
23368
23369 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
23370
23371         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
23372         pointer types if they have different alignment or mode.
23373
23374 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
23375
23376         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23377         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23378         * config/sparc/sparc-protos.h (function_value): Remove declaration.
23379         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
23380         sparc_function_value_regno_p): New functions.
23381         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23382         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23383         (function_value): Rename to...
23384         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
23385         argument to 'outgoing'.
23386         (function_arg_record_value, function_arg_union_value,
23387         function_arg_vector_value): Update comment.
23388
23389 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
23390
23391         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
23392         (fde_needed_for_eh_p): New predicate.
23393         (output_call_frame_info): Use it throughout to decide whether FDEs
23394         are needed for EH purpose.
23395         (dwarf2out_begin_prologue): Reorder assignments.
23396
23397 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23398
23399         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
23400         special case loop->header.
23401         (is_predicated): New.
23402         (if_convertible_loop_p): Call it.
23403
23404 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23405
23406         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
23407         iterator in parameter.  Do not generate code during the analysis.
23408         (tree_if_convert_cond_stmt): Removed.
23409         (tree_if_convert_stmt): Removed.
23410         (predicate_bbs): New.
23411         (if_convertible_loop_p): Call predicate_bbs.
23412         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
23413         now contains all the analysis part.
23414
23415 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23416
23417         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
23418         statements in the analysis part.
23419         (tree_if_convert_stmt): Update comment.
23420         (remove_conditions_and_labels): New.
23421         (combine_blocks): Call remove_conditions_and_labels.
23422         (tree_if_conversion): Update comment.
23423
23424 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23425
23426         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
23427         than 2 predecessors or more than 2 successors.
23428
23429 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23430
23431         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
23432         of loops in which the data dependence analysis fails.
23433
23434 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23435
23436         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
23437         CDI_POST_DOMINATORS.
23438         (tree_if_conversion): Same.
23439
23440 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23441
23442         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
23443
23444 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23445
23446         * tree-if-conv.c: Update copyright years.  Fix comments.
23447         Fix indentation.
23448
23449 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
23450
23451         * builtin-types.def (BT_INT128): New primitive type.
23452         (BT_UINT128): Likewise.
23453         * c-common.c (c_common_r): Add __int128 keyword.
23454         (c_common_type_for_size): Handle __int128.
23455         (c_common_type_for_mode): Likewise.
23456         (c_common_signed_or_unsigned_type): Likewise.
23457         (c_common_nodes_and_builtins): Add builtin type
23458         if target supports 128-bit integer scalar.
23459         * c-common.h (enum rid): Add RID_INT128.
23460         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
23461         if target supports 128-bit integer scalar.
23462         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
23463         (finish_declspecs): Likewise.
23464         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
23465         (c_token_starts_declspecs): Likewise.
23466         (c_parser_declspecs): Likewise.
23467         (c_parser_attributes): Likewise.
23468         (c_parser_objc_selector): Likewise.
23469         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
23470         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
23471         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
23472         * tree.c (make_or_reuse_type): Likewise.
23473         (make_unsigned_type): Likewise.
23474         (build_common_tree_nodes_2): Likewise.
23475         * tree.h (enum integer_type_kind): Add itk_int128 and
23476         itk_unsigned_int128.
23477         (int128_integer_type_node): New define.
23478         (int128_unsigned_type_node): New define.
23479         * doc/extend.texi: Add documentation about __int128 type.
23480
23481 2010-05-26  Richard Guenther  <rguenther@suse.de>
23482
23483         * tree-ssa-sccvn.c (copy_nary): Adjust.
23484         (copy_phis): Rename to ...
23485         (copy_phi): ... this.  Adjust.
23486         (copy_references): Rename to ...
23487         (copy_reference): ... this.  Adjust.
23488         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
23489         result into the valid table.
23490
23491 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23492
23493         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
23494         insn-config.h, insn-codes.h, recog.h, and optabs.h.
23495
23496 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23497
23498         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
23499
23500 2010-05-26  Richard Guenther  <rguenther@suse.de>
23501
23502         * opts.c (common_handle_option): Handle OPT_Ofast.
23503
23504 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
23505
23506         * diagnostic.c: Don't include opts.h.
23507         (permissive_error_option): Define.
23508         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
23509         for classify_diagnostic.  Don't use memset for
23510         classify_diagnostic.  Initialize new and recently added fields.
23511         (diagnostic_classify_diagnostic): Use context->n_opts instead of
23512         N_OPTS.
23513         (diagnostic_report_diagnostic): Pass context parameter to
23514         diagnostic_report_warnings_p.  Use option_enabled and option_name
23515         hooks from context.
23516         (emit_diagnostic): Use permissive_error_option.
23517         (permerror): Likewise.
23518         * diagnostic.h: Don't include options.h.
23519         (struct diagnostic_context): Add n_opts, opt_permissive,
23520         inhibit_warnings, warn_system_headers, option_enabled and
23521         option_name fields.  Change classify_diagnostic to a pointer.
23522         * opts-diagnostic.h: New file.
23523         * opts.c: Include opts-diagnostic.h.
23524         (common_handle_option): Set global_dc fields for -Wfatal-errors,
23525         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
23526         (option_name): New function.
23527         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
23528         (c_common_handle_option): Set global_dc->permissive for
23529         -fpermissive.
23530         * c-common.c (c_cpp_error): Save and restore
23531         global_dc->warn_system_headers, not variable warn_system_headers.
23532         * toplev.c: Include opts-diagnostic.h.
23533         (general_init): Update call to diagnostic_initialize.  Set
23534         global_dc->show_column, global_dc->option_enabled and
23535         global_dc->option_name.
23536         (process_options): Don't set global_dc fields here.
23537         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
23538         (diagnostic.o, opts.o, toplev.o): Update dependencies.
23539
23540 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
23541
23542         * config/picochip/picochip.md (movsi): Split a movsi from a
23543         const after reload.
23544
23545 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23546
23547         * ggc-zone.c: Update copyright year.
23548         (poison_region): Mark memory for Valgrind as undefined before
23549         memset () call and inaccessible afterwards.
23550         (ggc_pch_total_size): Change type of i to int.
23551
23552 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23553
23554         * ggc-common.c (ggc_free_overhead): Allow empty slot.
23555
23556 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23557
23558         * ggc-common.c: Update copyright year.
23559         (ggc_rlimit_bound): Remove prototype.  Compile only if
23560         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
23561         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
23562         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
23563         (ggc_min_heapsize_heuristic): Likewise.
23564
23565 2010-05-26  Richard Guenther  <rguenther@suse.de>
23566
23567         PR rtl-optimization/44164
23568         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
23569         no-common access-path disambiguation.
23570         (indirect_ref_may_alias_decl_p): Adjust.
23571         (indirect_refs_may_alias_p): Likewise.
23572         (refs_may_alias_p_1): Likewise.
23573
23574 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23575
23576         * c-typeck.c: Do not include expr.h.
23577
23578 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23579
23580         * rtl.h (decl_default_tls_model): Move prototype from here...
23581         * output.h: ...to here.
23582         * c-decl.c: Do not include rtl.h.
23583         * c-pragma.c: Likewise.
23584         * c-parser.c: Likewise.
23585         * c-gimplify.c: Likewise.  And also not hard-reg-set.
23586         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
23587         FIXME note for it.  Add a FIXME note for expr.h.
23588         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
23589         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
23590         defined.
23591
23592 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
23593
23594         PR target/44199
23595         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
23596         or total_size is larger than red zone size for non-V4 ABI, emit a
23597         stack_tie resp. frame_tie insn before stack pointer restore.
23598         * config/rs6000/rs6000.md (frame_tie): New insn.
23599
23600 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
23601
23602         * function.h (struct function): Add can_throw_non_call_exceptions bit.
23603         * lto-streamer-in.c (input_function): Stream it in.
23604         * lto-streamer-out.c (output_function): Stream it out.
23605         * function.c (allocate_struct_function): Set it.
23606         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
23607         for flag_non_call_exceptions.
23608         * cfgbuild.c (control_flow_insn_p): Likewise.
23609         (make_edges): Likewise.
23610         * cfgexpand.c (expand_stack_alignment): Likewise.
23611         * combine.c (distribute_notes): Likewise.
23612         * cse.c (cse_extended_basic_block): Likewise.
23613         * except.c (insn_could_throw_p): Likewise.
23614         * gcse.c (simple_mem): Likewise.
23615         * ipa-pure-const.c (check_call): Likewise.
23616         (check_stmt ): Likewise.
23617         * lower-subreg.c (lower-subreg.c): Likewise.
23618         * optabs.c (emit_libcall_block): Likewise.
23619         (prepare_cmp_insn): Likewise.
23620         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
23621         * postreload.c (rest_of_handle_postreload): Likewise.
23622         * reload1.c (reload_as_needed): Likewise.
23623         (emit_input_reload_insns): Likewise.
23624         (emit_output_reload_insns): Likewise.
23625         (fixup_abnormal_edges): Likewise.
23626         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
23627         * store-motion.c (find_moveable_store): Likewise.
23628         * tree-eh.c (stmt_could_throw_p): Likewise.
23629         (tree_could_throw_p): Likewise.
23630         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23631         * config/arm/arm.c (arm_expand_prologue): Likewise.
23632         (thumb1_expand_prologue): Likewise.
23633         * config/rx/rx.md (cbranchsf4): Likewise.
23634         (cmpsf): Likewise.
23635         * config/s390/s390.c (s390_emit_prologue): Likewise.
23636         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
23637         (inline_forbidden_into_p): New predicate.
23638         (expand_call_inline): Use it to forbid inlining.
23639         (tree_can_inline_p): Likewise.
23640
23641 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23642
23643         * config/i386/i386-c.c: Do not include rtl.h.
23644         * config/i386/t-i386: Update dependencies.
23645
23646 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23647
23648         * attribs.c: Do not include rtl.h.
23649         * Makefile.in: Update dependencies.
23650
23651 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
23652
23653         * double-int.h (double_int_and): New.
23654         * combine.c (try_combine): Clean up, use double_int_* and
23655         immed_double_int_const functions.
23656
23657 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23658
23659         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
23660         stderr to /dev/null instead of grep -q.
23661         * configure: Regenerate.
23662
23663 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23664
23665         * Makefile.in (EXCEPT_H): Fix typo.
23666
23667 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
23668
23669         * ira-build.c (update_conflict_hard_reg_costs): New.
23670         (ira_build): Call update_conflict_hard_reg_costs.
23671
23672 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
23673
23674         PR debug/41371
23675         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
23676         ENABLE_CHECKING.
23677         (intersect_loc_chains): Walk the s2var's loc_chain together
23678         with s1node chain as long as the locations are equal, don't
23679         call find_loc_in_1pdv in that case.
23680
23681         PR debug/42801
23682         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
23683         (copy_bind_expr): ... instead of here.
23684         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
23685         if the block hasn't been remapped.
23686         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
23687         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
23688
23689 2010-05-25  Richard Guenther  <rguenther@suse.de>
23690
23691         PR middle-end/44069
23692         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
23693         out-of-bounds array accesses.
23694
23695 2010-05-25  Richard Guenther  <rguenther@suse.de>
23696
23697         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
23698         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
23699         (run_gcc): Re-organize to make cleanup easier.
23700
23701 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23702
23703         * config/s390/s390.c (optimization_options): Fix and move the
23704         flag_prefetch_loop_arrays override ...
23705         (override_options): ... here.
23706
23707 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
23708
23709         * diagnostic.c: Don't include plugin.h.
23710         (diagnostic_report_diagnostic): Don't handle plugins specially
23711         here.  Pass context to internal_error callback.
23712         * diagnostic.h (struct diagnostic_context): Add context parameter
23713         to internal_error callback.
23714         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
23715         * plugin.h (struct diagnostic_context): Declare.
23716         (warn_if_plugins, plugins_internal_error_function): Declare.
23717         * toplev.c (general_init): Set global_dc->internal_error.
23718         * Makefile.in (diagnostic.o): Update dependencies.
23719
23720 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
23721
23722         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
23723         * config/rs6000/t-darwin64: New.
23724         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
23725         build crt2.
23726
23727 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
23728
23729         PR 44203
23730         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
23731         match the original (and intended) behaviour before r159557.  This
23732         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
23733         in two ways.
23734
23735 2010-05-25  Richard Guenther  <rguenther@suse.de>
23736
23737         * doc/invoke.texi: Document -Ofast.
23738         * target.h (struct gcc_target): Add handle_ofast.
23739         * target-def.h (TARGET_HANDLE_OFAST): Add.
23740         (TARGET_INITIALIZER): Adjust.
23741         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
23742         * common.opt (Ofast): Add.
23743
23744 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
23745
23746         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
23747         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
23748
23749 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
23750
23751         PR target/43610
23752         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
23753         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
23754         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
23755         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
23756
23757 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
23758
23759         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
23760         DW_OP_minus with negated offset instead of DW_OP_plus.
23761         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
23762
23763 2010-05-25  Wei Guozhi  <carrot@google.com>
23764
23765         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
23766         tst instruction and a new alternative.
23767         * config/arm/constraints.md (Pu): New constraint.
23768
23769 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
23770
23771         * function.c (assign_stack_local_1): Initialize variable
23772         to avoid warning when bootstrapping at -O3.
23773
23774 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
23775
23776         * configure.ac (all_lang_makefiles): Remove everything related to it.
23777         * configure: Regenerate.
23778         * Makefile.in: Fix reference to ada Make-lang.in.
23779         Remove support for LANG_MAKEFILES.
23780
23781 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
23782             Sandra Loosemore  <sandra@codesourcery.com>
23783
23784         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
23785         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
23786         description.  Add arm_neon_fp16_ok.
23787         (Add Options): Add arm_neon and arm_neon_fp16.
23788
23789 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
23790
23791         * diagnostic.c: Don't include flags.h.
23792         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
23793         context parameters.  Check flags in the context passed as a parameter.
23794         (diagnostic_build_prefix): Add context parameter.  Check
23795         show_column flag in context.
23796         (diagnostic_action_after_output): Check fatal_errors flag in context.
23797         (diagnostic_report_current_module): Check show_column flag in context.
23798         (default_diagnostic_starter): Update call to
23799         diagnostic_build_prefix.
23800         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
23801         (emit_diagnostic): Pass context to permissive_error_kind.
23802         (permerror): Pass context to permissive_error_kind.
23803         * diagnostic.h (struct diagnostic_context): Add show_column,
23804         pedantic_errors, permissive and fatal_errors fields.
23805         (diagnostic_build_prefix): Update prototype.
23806         * langhooks.c
23807         * toplev.c (process_options): Set flags in global_dc from
23808         flag_show_column, flag_pedantic_errors, flag_permissive,
23809         flag_fatal_errors.
23810         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
23811         to diagnostic_build_prefix.
23812         * Makefile.in (diagnostic.o): Update dependencies.
23813
23814 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23815
23816         * config/i386/ia32intrin.h (__crc32q): Define only if
23817         __SSE4_2__ is defined.
23818
23819 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
23820
23821         PR target/44132
23822         PR middle-end/43602
23823         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
23824         DECL_VISIBILITY_SPECIFIED.
23825         (emutls_decl): Set DECL_PRESERVE_P and copy
23826         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
23827         (emutls_finalize_control_var): New callback.
23828         (emutls_finish): Finalize emutls control variables.
23829         * toplev.c (compile_file): Move the call to emutls_finish ()
23830         before varpool_assemble_pending_decls ().
23831
23832 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
23833
23834         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
23835         added to the preprocessor condition.
23836
23837 2010-05-24  Paul Brook  <paul@codesourcery.com>
23838
23839         * gengtype-lex.l: Add HARD_REG_SET.
23840         * expr.c (expand_expr_real_1): Record writes to hard registers.
23841         * function.c (rtl_data): Add asm_clobbers.
23842         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
23843         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
23844         Use crtl->asm_clobbers.
23845
23846 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23847
23848         * doc/makefile.texi (Makefile): Mention stages 'profile'
23849         and 'feedback' for profiledbootstrap.
23850
23851 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23852
23853         PR target/44245
23854         * config/i386/i386.c (def_builtin): Properly check
23855         OPTION_MASK_ISA_64BIT.
23856
23857 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
23858
23859         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
23860         typedefs with different but compatible types.  Allow duplicate
23861         typedefs with the same type except for pedantic non-C1X, but give
23862         warning for variably modified types.
23863         * c-typeck.c (tagged_types_tu_compatible_p,
23864         function_types_compatible_p, type_lists_compatible_p,
23865         comptypes_internal): Add parameter different_types_p; set
23866         *different_types_p for different but compatible types.  All
23867         callers changed.
23868         (comptypes_check_different_types): New.
23869         * c-tree.h (comptypes_check_different_types): Declare.
23870
23871 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
23872
23873         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
23874         * jump.c: Include basic-block.h.
23875         * profile.c: Likewise.
23876         * tree-profile.c: Likewise.
23877         * coverage.c: Likewise.
23878         * basic-block.h (optimize_function_for_size_p): Move to function.h.
23879         (optimize_function_for_speed_p): Likewise.
23880         * function.h (optimize_function_for_size_p,
23881         optimize_function_for_speed_p): Moved here from basic-block.h.
23882         * Makefile.in: Update dependencies.
23883
23884 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23885
23886         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
23887         before calling make; allow override through $MAKE.
23888         * doc/invoke.texi (Optimize Options): Document override.
23889
23890 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
23891
23892         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
23893         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23894         (rs6000_mode_dependent_address_ptr): Make static.
23895         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23896         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
23897         Remove.
23898
23899 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
23900
23901         PR target/43869
23902         * config/i386/i386.c: Make sure that the correct regparm is passed.
23903
23904 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
23905
23906         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
23907         * sbitmap.c: ...to here to internalize sbitmap element access.
23908         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
23909         Explain why basic-block.h is included.
23910         * function.h: Include tm.h for CUMULATIVE_ARGS.
23911         * Makefile.in: Update dependencies.
23912
23913 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
23914
23915         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
23916         New core types.
23917         * sbitmap.h (struct sbitmap_def): Do not typedef here.
23918         * sbitmap.c: Include sbitmap.h.
23919         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
23920         hard-reg-set.h.  Split everything related to regsets out from here...
23921         * regset.h: ...to here.  New file.
23922         * df.h: Include regset.h and sbitmap.h.
23923         * tree-flow.h: Likewise.
23924         * cfgloop.h: Likewise.
23925         * except.h: Do not include sbitmap.h.  Include hashtab.h.
23926         * cgraph.h: Include vec.h and function.h.
23927         * reload.h (struct insn_chain): Change types of live_throughout
23928         and dead_or_set from regset_head to bitmap_head.
23929         (compute_use_by_pseudos): Be defined also if regset.h is not included.
23930         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
23931         spilled_regs from regset_head to bitmap_head to avoid dependency
23932         in regset.h.
23933         * sel-sched-ir.h: Include regset.h.
23934         * reload.c: Include df.h before reload.h.
23935         * caller-save.c: Likewise.
23936         * reload1.c: Likewise.
23937         * ira.c: Likewise.
23938         (mark_elimination): Update type of r to bitmap, consistent with
23939         DF_LR_IN.
23940         * dominance.c: Include bitmap.h.
23941         * modulo-sched.c: Include df.h.
23942         * cfganal.c: Include bitmap.h and sbitmap.h.
23943         * cfgbuild.c: Include sbitmap.h.
23944         * lcm.c: Include sbitmap.h.
23945         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
23946         * domwalk.c: Include sbitmap.h, exclude ggc.h.
23947         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
23948         * cselib.c: Include bitmap.h.
23949         * tree-optimize.c: Include regset.h.
23950         * stmt.c: Include bitmap.h.
23951         * Makefile.in: Update dependencies.
23952
23953 2010-05-22  Jan Hubicka  <jh@suse.cz>
23954
23955         * cgraph.h (struct varpool_node): Add same_comdat_group.
23956         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
23957         pointer.
23958         (output_varpool): Update call of lto_output_varpool_node.
23959         (input_varpool): Read same_comdat_group pointer.
23960         (input_varpool_1): Fixup same_comdat_group pointer.
23961         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
23962         group is needed, all are.
23963         * varpool.c (varpool_remove_node): Remove node from same comdat group
23964         linklist too.
23965         (varpool_analyze_pending_decls): Walk same comdat groups.
23966
23967 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
23968
23969         * rtl.h (union rtunion_def): Remove rt_bit member.
23970         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
23971         * print-rtl (print_rtx): Do not print the member.
23972         * gengtype.c (adjust_field_rtx_def): Do not handle it.
23973         * gengenrtl.c (type_from_format): Likewise.
23974         (accessor_from_format): Likewise.
23975
23976 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
23977
23978         * dbgcnt.c: Include toplev.h instead of errors.h.
23979         * ira-emit.c: Don't include errors.h.
23980         * ira.c: Include toplev.h instead of errors.h.
23981         * lto-compress.c: Include toplev.h instead of errors.h.
23982         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
23983         ira.o, dbgcnt.o): Update dependencies.
23984
23985 2010-05-22  Richard Guenther  <rguenther@suse.de>
23986
23987         * gimple.c (gimple_types_compatible_p): Check type qualifications
23988         before merging pointer to complete and pointer to incomplete type.
23989         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
23990         we use our own resolution algorithm.  The gold linker plugin
23991         doesn't do the job we want it to do here.
23992
23993 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
23994
23995         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23996         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23997         (sparc_mode_dependent_address_p): New function.
23998
23999 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
24000
24001         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
24002
24003         * timevar.c: Do not include any core headers.
24004         (timevar_print): De-i18n-ize.
24005         (print_time): Likewise.
24006         * timevar.h (timevar_push, timevar_pop): Make inline functions.
24007
24008 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
24009
24010         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
24011         langhooks-def.h.
24012         (diagnostic_initialize): Initialize x_data not last_function.
24013         (diagnostic_report_current_function): Move to tree-diagnostic.c.
24014         (default_diagnostic_starter): Call
24015         diagnostic_report_current_module not
24016         diagnostic_report_current_function.
24017         (diagnostic_report_diagnostic): Initialize x_data not
24018         abstract_origin.
24019         (verbatim): Likewise.
24020         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
24021         x_data.
24022         (struct diagnostic_context): Change last_function to x_data.
24023         (diagnostic_auxiliary_data): Replace with
24024         diagnostic_context_auxiliary_data and
24025         diagnostic_info_auxiliary_data.
24026         (diagnostic_last_function_changed, diagnostic_set_last_function,
24027         diagnostic_report_current_function): Move to tree-diagnostic.h.
24028         (print_declaration, dump_generic_node, print_generic_stmt,
24029         print_generic_stmt_indented, print_generic_expr,
24030         print_generic_decl, debug_c_tree, dump_omp_clauses,
24031         print_call_name, debug_generic_expr, debug_generic_stmt,
24032         debug_tree_chain, default_tree_printer): Move to
24033         tree-pretty-print.h.
24034         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
24035         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
24036         gimple-pretty-print.h.
24037         * pretty-print.c: Don't include tree.h
24038         (pp_base_format): Don't handle %K here.
24039         (pp_base_tree_identifier): Move to tree-pretty-print.c.
24040         * pretty-print.h (text_info): Change abstract_origin to x_data.
24041         (pp_tree_identifier, pp_unsupported_tree,
24042         pp_base_tree_identifier): Move to tree-pretty-print.h.
24043         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
24044         tree-pretty-print.h: New files.
24045         * tree-pretty-print.c: Include tree-pretty-print.h.
24046         (percent_K_format): New.  Moved from pretty-print.c.
24047         (pp_base_tree_identifier): Move from pretty-print.c.
24048         * c-objc-common.c: Include tree-pretty-print.h.
24049         (c_tree_printer): Handle %K here.
24050         * langhooks.c: Include tree-diagnostic.h.
24051         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
24052         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
24053         (default_tree_printer): Handle %K using percent_K_format.
24054         (general_init): Use default_tree_diagnostic_starter.
24055         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
24056         (free_lang_data): Use default_tree_diagnostic_starter.
24057         * c-pretty-print.c: Include tree-pretty-print.h.
24058         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
24059         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
24060         * dwarf2out.c: Include tree-pretty-print.h.
24061         * except.c: Include tree-pretty-print.h.
24062         * gimple-pretty-print.c: Include tree-pretty-print.h and
24063         gimple-pretty-print.h.
24064         * gimplify.c: Include tree-pretty-print.h.
24065         * graphite-poly.c: Include tree-pretty-print.h and
24066         gimple-pretty-print.h.
24067         * ipa-cp.c: Include tree-pretty-print.h.
24068         * ipa-inline.c: Include gimple-pretty-print.h.
24069         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
24070         * ipa-pure-const.c: Include gimple-pretty-print.h.
24071         * ipa-struct-reorg.c: Include tree-pretty-print.h and
24072         gimple-pretty-print.h.
24073         * ipa-type-escape.c: Include tree-pretty-print.h.
24074         * print-rtl.c: Include tree-pretty-print.h.
24075         * print-tree.c: Include gimple-pretty-print.h.
24076         * sese.c: Include tree-pretty-print.h.
24077         * tree-affine.c: Include tree-pretty-print.h.
24078         * tree-browser.c: Include tree-pretty-print.h.
24079         * tree-call-cdce.c: Include gimple-pretty-print.h.
24080         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
24081         * tree-chrec.c: Include tree-pretty-print.h.
24082         * tree-data-ref.c: Include tree-pretty-print.h and
24083         gimple-pretty-print.h.
24084         * tree-dfa.c: Include tree-pretty-print.h.
24085         * tree-if-conv.c: Include tree-pretty-print.h and
24086         gimple-pretty-print.h.
24087         * tree-inline.c: Include tree-pretty-print.h.
24088         * tree-into-ssa.c: Include tree-pretty-print.h and
24089         gimple-pretty-print.h.
24090         * tree-nrv.c: Include tree-pretty-print.h.
24091         * tree-object-size.c: Include tree-pretty-print.h and
24092         gimple-pretty-print.h.
24093         * tree-outof-ssa.c: Include tree-pretty-print.h and
24094         gimple-pretty-print.h.
24095         * tree-parloops.c: Include tree-pretty-print.h and
24096         gimple-pretty-print.h.
24097         * tree-predcom.c: Include tree-pretty-print.h and
24098         gimple-pretty-print.h.
24099         * tree-scalar-evolution.c: Include tree-pretty-print.h and
24100         gimple-pretty-print.h.
24101         * tree-sra.c: Include tree-pretty-print.h.
24102         * tree-ssa-address.c: Include tree-pretty-print.h.
24103         * tree-ssa-alias.c: Include tree-pretty-print.h.
24104         * tree-ssa-ccp.c: Include tree-pretty-print.h and
24105         gimple-pretty-print.h.
24106         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
24107         * tree-ssa-copy.c: Include tree-pretty-print.h and
24108         gimple-pretty-print.h.
24109         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
24110         * tree-ssa-dce.c: Include tree-pretty-print.h and
24111         gimple-pretty-print.h.
24112         * tree-ssa-dom.c: Include tree-pretty-print.h and
24113         gimple-pretty-print.h.
24114         * tree-ssa-dse.c: Include gimple-pretty-print.h.
24115         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
24116         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
24117         * tree-ssa-live.c: Include tree-pretty-print.h and
24118         gimple-pretty-print.h.
24119         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
24120         gimple-pretty-print.h.
24121         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
24122         gimple-pretty-print.h.
24123         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
24124         gimple-pretty-print.h.
24125         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
24126         gimple-pretty-print.h.
24127         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
24128         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
24129         * tree-ssa-operands.c: Include tree-pretty-print.h and
24130         gimple-pretty-print.h.
24131         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
24132         gimple-pretty-print.h.
24133         * tree-ssa-pre.c: Include tree-pretty-print.h and
24134         gimple-pretty-print.h.
24135         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
24136         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
24137         gimple-pretty-print.h.
24138         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
24139         gimple-pretty-print.h.
24140         * tree-ssa-sink.c: Include gimple-pretty-print.h.
24141         * tree-ssa-ter.c: Include tree-pretty-print.h and
24142         gimple-pretty-print.h.
24143         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
24144         * tree-ssa.c: Include tree-pretty-print.h and
24145         gimple-pretty-print.h.
24146         * tree-stdarg.c: Include gimple-pretty-print.h.
24147         * tree-switch-conversion.c: Include gimple-pretty-print.h.
24148         * tree-tailcall.c: Include tree-pretty-print.h and
24149         gimple-pretty-print.h.
24150         * tree-vect-data-refs.c: Include tree-pretty-print.h and
24151         gimple-pretty-print.h.
24152         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
24153         gimple-pretty-print.h.
24154         * tree-vect-loop.c: Include tree-pretty-print.h and
24155         gimple-pretty-print.h.
24156         * tree-vect-patterns.c: Include gimple-pretty-print.h.
24157         * tree-vect-slp.c: Include tree-pretty-print.h and
24158         gimple-pretty-print.h.
24159         * tree-vect-stmts.c: Include tree-pretty-print.h and
24160         gimple-pretty-print.h.
24161         * tree-vectorizer.c: Include tree-pretty-print.h.
24162         * tree-vrp.c: Include tree-pretty-print.h and
24163         gimple-pretty-print.h.
24164         * value-prof.c: Include tree-pretty-print.h and
24165         gimple-pretty-print.h.
24166         * var-tracking.c: Include tree-pretty-print.h.
24167         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
24168         (tree-diagnostic.o): New dependencies.
24169         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
24170         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
24171         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
24172         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
24173         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
24174         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
24175         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
24176         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
24177         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
24178         tree-ssa-address.o, tree-ssa-loop-niter.o,
24179         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
24180         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
24181         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
24182         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
24183         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
24184         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
24185         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
24186         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
24187         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
24188         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
24189         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
24190         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
24191         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
24192         tree-switch-conversion.o, var-tracking.o, value-prof.o,
24193         cfgexpand.o, pretty-print.o): Update dependencies.
24194
24195 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
24196
24197         * tree-ssa-structalias.c: Remove tm_p.h from include.
24198
24199 2010-05-21  Jeff Law  <law@redhat.com>
24200
24201         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
24202
24203 2010-05-21  Jason Merrill  <jason@redhat.com>
24204
24205         * tree-eh.c (cleanup_is_dead_in): New.
24206         (lower_try_finally): Don't generate a dead cleanup region.
24207         (lower_cleanup): Likewise.
24208
24209 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
24210
24211         PR debug/44223
24212         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
24213         unchain each use from the cyclic next_regno_use chain first.
24214
24215 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
24216
24217         * real: Do not include gmp.h, mpfr.h, and mpc.h.
24218         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
24219         (real_value_negate, real_value_abs): New prototypes.
24220         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
24221         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
24222         new include file for interface between MPFR and REAL_VALUE_TYPE.
24223         * real.c: Include realmpfr.h.
24224         (real_arithmetic2): Remove legacy function.
24225         (real_value_negate): New.
24226         (real_value_abs): New.
24227         (mfpr_from_real, real_from_mpfr): Move from here...
24228         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
24229         * builtins.c: Include realmpfr.h.
24230         * fold-const.c: Include realmpfr.h.
24231         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
24232         (fold_negate_const): Likewise.
24233         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
24234         * toplev.c: Include realmpfr.h.
24235         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
24236         and real_value_negate.
24237         * fixed-value.c (check_real_for_fixed_mode): Likewise.
24238         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
24239         (vfp3_const_double_index): Likewise.
24240         (arm_print_operand): Likewise.
24241         * Makefile.in: Update dependencies.
24242
24243 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24244
24245         * config/s390/s390.c (override_options): Increase the default
24246         of max-completely-peel-times.
24247
24248 2010-05-21  Julian Brown  <julian@codesourcery.com>
24249             Mark Mitchell  <mark@codesourcery.com>
24250
24251         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
24252         sibling calls for Thumb-1.
24253         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
24254         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
24255         Thumb-2.
24256         (*call_insn, *call_value_insn): Don't use for Thumb-2.
24257         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
24258         for Thumb-2.
24259         (return): New expander.
24260         (*arm_return): New name for ARM return insn.
24261         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
24262
24263 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
24264
24265         * config.gcc (sparc64-*-rtems*): New target.
24266
24267 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
24268
24269         * tree.c (build_function_decl_skip_args): Fix grammar.
24270         (build_function_type_list_1): Fix typos, adjust formatting.
24271
24272 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
24273
24274         * tree.h: Include real.h and fixed-value.h as basic datatypes.
24275         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
24276         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
24277         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
24278         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
24279         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
24280         tree-pretty-print.c, tree-loop-distribution.c,
24281         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
24282         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
24283         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
24284         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
24285         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
24286         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
24287         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
24288         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
24289         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
24290         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
24291         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
24292         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
24293         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
24294         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
24295         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
24296         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
24297         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
24298         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
24299         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
24300         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
24301         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
24302         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
24303         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
24304         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
24305         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
24306         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
24307         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
24308         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
24309         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
24310         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
24311         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
24312         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
24313         config/score/score7.c, config/score/score.c, config/arm/arm.c,
24314         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
24315         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
24316         config/bfin/bfin.c: Clean up redundant includes.
24317         * Makefile.in: Update accordingly.
24318
24319 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
24320
24321         PR middle-end/44204
24322         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
24323         statement has no arguments.
24324
24325 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
24326
24327         PR/44139
24328         * varasm.c (emutls_decl): Merge attributes to new decl.
24329
24330 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
24331
24332         PR middle-end/44101
24333         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
24334         around the uniquized constructor if its type requires a conversion.
24335
24336 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
24337
24338         PR debug/44205
24339         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
24340         at -O0 goto_locus of any of the incoming edges differs from
24341         goto_locus of outgoing edge, or gimple_location of any of the
24342         labels differs.
24343
24344 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
24345
24346         * ira.c (ira_non_ordered_class_hard_regs): Define.
24347         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
24348         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
24349         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
24350         cost of unaligned hard regs when allocating multi-reg pseudos.
24351
24352 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
24353
24354         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
24355         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
24356         for TARGET_NO_FLOAT.
24357         * config/mips/mips.c (mips_file_start): Expand conditional expression
24358         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
24359         (mips_override_options): Move -mno-float override -msoft-float and
24360         -mhard-float.
24361         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
24362         Condition(TARGET_SUPPORTS_NO_FLOAT).
24363         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
24364         __mips_no_float here.
24365         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
24366         (TARGET_SUPPORTS_NO_FLOAT): Define.
24367         * config/mips/sdemtk.opt: Delete.
24368
24369 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
24370
24371         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
24372
24373 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
24374
24375         PR target/43733
24376         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
24377         * configure: Regenerate.
24378         * config.in: Regenerate.
24379         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
24380         instead of sahf only for 64bit targets.
24381
24382 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
24383
24384         PR debug/44178
24385         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
24386         setup_ref_regs for DEBUG_INSNs.
24387
24388 2010-05-20  Jan Hubicka  <jh@suse.cz>
24389
24390         PR middle-end/44197
24391         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
24392
24393 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
24394
24395         PR bootstrap/43870
24396         * df-scan.c (df_ref_compare): Stabilize sort.
24397
24398 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
24399
24400         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
24401         argument.  Don't use DW_OP_piece if offset is non-zero,
24402         put offset into second DW_OP_bit_piece argument.
24403         (dw_sra_loc_expr): Adjust callers.  For memory expressions
24404         compute offset.
24405
24406 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
24407
24408         PR target/44202
24409         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
24410         settings for 16-bit-constant "addo" alternative.
24411
24412 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
24413
24414         * config/mips/mips-dsp.md (add<DSPV:mode>3,
24415         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
24416
24417         PR target/43764
24418         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
24419         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
24420         Use it.
24421
24422 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
24423
24424         * diagnostic.c (FLOAT, FFS): Don't undefine.
24425         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
24426         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
24427         include ordering.
24428
24429 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24430
24431         * combine.c (propagate_for_debug): Call make_compound_operation
24432         on the source value.
24433         (try_combine): When implementing a split chosen by find_split_point,
24434         either copy i2src or set it to null.  Assert that i2src is not null
24435         before substituting into CALL_INSN_FUNCTION_USAGE.
24436
24437 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
24438
24439         * double-int.h (double_int_ior): New function.
24440         * tree.h (build_int_cst_wide_type): Remove.
24441         * tree.c (build_int_cst_wide_type): Remove.
24442         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
24443         of build_int_cst_wide_type.
24444         * stor-layout.c (set_sizetype): (Ditto.).
24445         * dojump.c (do_jump): Use build_int_cstu instead of
24446         build_int_cst_wide_type.
24447
24448 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
24449
24450         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
24451         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
24452         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
24453         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
24454         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
24455         propagate the 'data' argument to copy_tree_r.
24456         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
24457         Propagate 'data' argument to walk_tree.
24458         (copy_if_shared): New function.
24459         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
24460         (unmark_visited): New function.
24461         (unshare_body): Call copy_if_shared instead of doing it manually.
24462         (unvisit_body): Call unmark_visited instead of doing it manually.
24463
24464 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
24465
24466         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
24467         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
24468         * hooks.c: Likewise.
24469         * target-def.h (TARGET_FOLD_BUILTIN): Define to
24470         hook_tree_tree_int_treep_bool_null.
24471         * target.h (struct gcc_target): Update signature of fold_builtin
24472         field.
24473         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
24474         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
24475         instead of the call expression.
24476         (fold_builtin_call_array): Pass n and argarray directly.
24477         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
24478         consing a list.
24479         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
24480         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
24481         `i' and use it in place of `arity'.
24482         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
24483         Dereference `args' directly.
24484         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
24485
24486 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24487
24488         * doc/sourcebuild.texi (Effective-Target Keywords): Document
24489         3dnow, sse3, sse2.
24490         (Directives): Document optional dg-require-effective-target
24491         selector.
24492
24493 2010-05-19  Richard Guenther  <rguenther@suse.de>
24494
24495         PR lto/44196
24496         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
24497
24498 2010-05-19  Richard Guenther  <rguenther@suse.de>
24499
24500         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
24501         * common.opt (fwhopr=): New.
24502         * opts.c (common_handle_option): Handle OPT_fwhopr.
24503         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
24504         * collect2.c (main): Match -fwhopr*.
24505         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
24506         Execute ltrans stage in parallel when jobs is bigger than 1.
24507
24508 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24509
24510         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
24511         pentiumpro on Solaris 8/x86 with Sun as.
24512         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
24513         hidden alias bug.
24514         (gcc_cv_as_ix86_quad): Check for .quad directive.
24515         * configure: Regenerate.
24516         * config.in: Regenerate.
24517         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
24518
24519 2010-05-19  Martin Jambor  <mjambor@suse.cz>
24520
24521         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
24522         also for indirect edges.  Actual printing moved...
24523         (ipa_print_node_jump_functions_for_edge): ...here.
24524         (ipa_compute_jump_functions): Renamed to
24525         ipa_compute_jump_functions_for_edge and made static.
24526         (ipa_compute_jump_functions): New function.
24527         (make_edge_direct_to_target): Check if the number of arguments on
24528         the newly direct edge is the same as the number of parametrs of
24529         the callee.
24530         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
24531         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
24532         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
24533         analysis functions unconditionally, call the new
24534         ipa_analyze_params_uses on the node instead of every edge.
24535
24536 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
24537
24538         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
24539         to tree.
24540         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
24541         also checks for a constant int vs.  non-constant but
24542         loop-invariant steps.
24543         (find_or_create_group): Change the sort algorithm to only consider
24544         steps that are constant ints.
24545         (idx_analyze_ref): Adopt code to handle a tree instead of a
24546         HOST_WIDE_INT for step.
24547         (gather_memory_references_ref): Handle tree instead of int and be
24548         prepared to see a NULL_TREE.
24549         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
24550         prefetches if the step cannot be calculated at compile time.
24551         (issue_prefetch_ref): Issue prefetches for non-constant but
24552         loop-invariant steps.
24553
24554 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24555
24556         Revert:
24557         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24558
24559         * tree.h (build_call_list): Remove.
24560         * tree.c (build_call_list): Remove.
24561
24562 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24563
24564         * tree.h (build_call_list): Remove.
24565         * tree.c (build_call_list): Remove.
24566
24567 2010-05-18  Jan Hubicka  <jh@suse.cz>
24568
24569         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
24570
24571 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
24572
24573         PR rtl-optimization/43332
24574         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
24575
24576 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
24577
24578         * tree.h (build_int_cstu): Implement as static inline.
24579         * tree.c (build_int_cstu): Remove function.
24580         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
24581         sign extended.
24582
24583 2010-05-18  Richard Guenther  <rguenther@suse.de>
24584
24585         PR lto/44143
24586         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
24587         (debug): Initialize from -save-temps.
24588         (collect_execute): Print command-line when verbose.
24589         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
24590         for ltrans invocation.  Produce -dumpbase flag again.
24591         (process_args): Remove.
24592         (main): Simplify.
24593         * collect2.c (maybe_run_lto_and_relink): Only pass object
24594         files to lto-wrapper.
24595         * gcc.c (LINK_COMMAND_SPEC): Likewise.
24596
24597 2010-05-18  Jan Hubicka  <jh@suse.cz>
24598
24599         * opts.c (decode_options): Do not disable whopr at ipa_cp.
24600         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
24601
24602 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
24603
24604         PR lto/44184
24605         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
24606         in a GIMPLE_ASM.
24607         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
24608         in a GIMPLE_ASM.
24609
24610 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
24611
24612         PR debug/41371
24613         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
24614         rtx_equal_p inline.
24615
24616 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
24617
24618         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
24619         lto-macho as lto_binary_reader.
24620
24621         * darwin.c (darwin_asm_named_section): Do not add assembler comment
24622         after .section directive; just print it before the directive instead.
24623
24624 2010-05-17  Jan Hubicka  <jh@suse.cz>
24625
24626         * cgraph.c (cgraph_create_virtual_clone): Only check
24627         versionable_function_p when not in wpa and checking is enabled.
24628         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
24629         there are no more functions to materialize.
24630
24631 2010-05-17  Jan Hubicka  <jh@suse.cz>
24632
24633         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
24634         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
24635         New functions.
24636         (output_cgraph): Call output_cgraph_opt_summary.
24637         (input_cgrpah): Call input_cgraph_opt_summary.
24638         (output_cgraph_opt_summary_p, output_node_opt_summary,
24639         input_node_opt_summary, input_cgraph_opt_section): New functions.
24640         * lto-section-in.c (lto_section_name): Add cgraphopt.
24641         * tree-inline.c (tree_function_versioning): Handle parm_num.
24642         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
24643         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
24644
24645 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
24646
24647         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
24648         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
24649         the insn to prefetch ratio heuristic to loops with known trip count.
24650
24651 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
24652
24653         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
24654         (schedule_prefetches): Do not generate a prefetch if the unroll factor
24655         is far from what is required by the prefetch.
24656
24657 2010-05-17  Jan Hubicka  <jh@suse.cz>
24658
24659         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
24660         (ipcp_estimate_growth): Likewise.
24661         (ipcp_const_param_count): Likewise.
24662         (ipcp_insert_stage): Likewise.
24663         * ipa-prop.c (visit_load_for_mod_analysis): New function.
24664         (visit_store_addr_for_mod_analysis): Set used flag.
24665         (ipa_detect_param_modifications): Set used flag for SSE params;
24666         update use of walk_stmt_load_store_addr_ops.
24667         (ipa_print_node_params): Print used flag.
24668         (ipa_write_node_info): Stream used flag.
24669         (ipa_read_node_info): Likewise.
24670         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
24671         (ipa_is_param_used): New function.
24672         (lto_ipa_fixup_call_notes): Remove unused declaration.
24673
24674 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24675
24676         PR target/44074
24677         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
24678         * configure: Regenerate.
24679         * config.in: Regenerate.
24680         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
24681         !HAVE_AS_IX86_REP_LOCK_PREFIX.
24682         Don't emit whitespace.
24683         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
24684         (*rep_movsi): Likewise.
24685         (*rep_movsi_rex64): Likewise.
24686         (*rep_movqi): Likewise.
24687         (*rep_movqi_rex64): Likewise.
24688         (*rep_stosdi_rex64): Likewise.
24689         (*rep_stossi): Likewise.
24690         (*rep_stossi_rex64): Likewise.
24691         (*rep_stosqi): Likewise.
24692         (*rep_stosqi_rex64): Likewise.
24693         (*cmpstrnqi_nz_1): Use {%;} after repz.
24694         (*cmpstrnqi_nz_rex_1): Likewise.
24695         (*cmpstrnqi_1): Likewise.
24696         (*cmpstrnqi_rex_1): Likewise.
24697         (*strlenqi_1): Use {%;} after repnz.
24698         (*strlenqi_rex_1): Likewise.
24699         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
24700         (*sync_compare_and_swap<mode>): Likewise.
24701         (sync_double_compare_and_swap<mode>): Likewise.
24702         (*sync_double_compare_and_swapdi_pic): Likewise.
24703         (sync_old_add<mode>): Likewise.
24704         (sync_add<mode>): Likewise.
24705         (sync_sub<mode>): Likewise.
24706         (sync_<code><mode>): Likewise.
24707
24708 2010-05-17  Martin Jambor  <mjambor@suse.cz>
24709
24710         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
24711         otr_token and polymorphic.
24712         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
24713         (cgraph_clone_edge): Copy the above fields.
24714         * tree.c (get_binfo_at_offset): New function.
24715         * tree.h (get_binfo_at_offset): Declare.
24716         * ipa-prop.h (enum jump_func_type): Added known_type jump function
24717         type, reordered items, updated comments.
24718         (union jump_func_value): Added base_type field, reordered fields.
24719         (enum ipa_lattice_type): Moved down in the file.
24720         (struct ipa_param_descriptor): New field polymorphic.
24721         (ipa_is_param_polymorphic): New function.
24722         * ipa-prop.c: Include gimple.h and gimple-fold.h.
24723         (ipa_print_node_jump_functions): Print known type jump functions.
24724         (compute_complex_pass_through): Renamed to...
24725         (compute_complex_assign_jump_func): this.
24726         (compute_complex_ancestor_jump_func): New function.
24727         (compute_known_type_jump_func): Likewise.
24728         (compute_scalar_jump_functions): Create known type and complex ancestor
24729         jump functions.
24730         (ipa_note_param_call): New parameter polymorphic, set the corresponding
24731         flag in the call note accordingly.
24732         (ipa_analyze_call_uses): Renamed to...
24733         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
24734         variable var only in the block where it is used.
24735         (ipa_analyze_virtual_call_uses): New function.
24736         (ipa_analyze_call_uses): Likewise.
24737         (combine_known_type_and_ancestor_jfs): Likewise.
24738         (update_jump_functions_after_inlining): Implemented handling of a
24739         number of new jump function types combination.
24740         (print_edge_addition_message): Removed.
24741         (make_edge_direct_to_target): New function.
24742         (try_make_edge_direct_simple_call): Likewise.
24743         (try_make_edge_direct_virtual_call): Likewise.
24744         (update_call_notes_after_inlining): Renamed to...
24745         (update_indirect_edges_after_inlining): this.  Moved edge creation for
24746         indirect calls to try_make_edge_direct_simple_call, also calls
24747         try_make_edge_direct_virtual_call for virtual calls.
24748         (ipa_print_node_params): Changed the header message.
24749         (ipa_write_jump_function): Stream also known type jump functions.
24750         (ipa_read_jump_function): Likewise.
24751         (ipa_write_indirect_edge_info): Stream new fields in
24752         cgraph_indirect_call_info.
24753         (ipa_read_indirect_edge_info): Likewise.
24754         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
24755         GIMPLE_FOLD_H.
24756
24757 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24758
24759         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
24760
24761 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
24762
24763         * tree.h (CALL_EXPR_ARGS): Delete.
24764         (call_expr_arglist): Delete.
24765         * tree.c (call_expr_arglist): Delete.
24766         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
24767         targetm.fold_builtin.
24768         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
24769         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
24770         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
24771         arglist parameter.  Use CALL_EXPR_ARG.
24772         (picochip_expand_builtin_3op): Likewise.
24773         (picochip_expand_builtin_2opvoid): Likewise.
24774         (picochip_expand_array_get): Likewise.
24775         (picochip_expand_array_put): Likewise.
24776         (picochip_expand_array_testport): Likewise.
24777         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
24778         rather than arglist.
24779         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
24780         CALL_EXPR_ARGS.
24781         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
24782         than TREE_VALUE and TREE_CHAIN.
24783         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
24784         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
24785         the arglist.
24786
24787 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
24788
24789         PR bootstrap/42347
24790         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
24791         to have no fallthru edge.
24792
24793         PR middle-end/44102
24794         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
24795         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
24796         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
24797         add BARRIER after previous bb if needed.
24798
24799 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
24800
24801         * tree.c (build_function_type_list_1): Remove bogus assert condition.
24802
24803 2010-05-17  Alan Modra  <amodra@gmail.com>
24804
24805         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
24806         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
24807         with copy_reg rtx param.
24808         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
24809         Correct cases where code for ABI_V4 did not initialise the reg
24810         used to access frame.  Also leave frame_reg_rtx as sp for large
24811         frames that save no regs.
24812
24813 2010-05-17  Martin Jambor  <mjambor@suse.cz>
24814
24815         PR middle-end/44133
24816         * tree-sra.c (create_access_replacement): New parameter rename, mark
24817         the replaement for renaming only when it is true.
24818         (get_access_replacement): Pass true in the rename parameter of
24819         create_access_replacement.
24820         (get_unrenamed_access_replacement): New function.
24821         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
24822         replacement declaration from it.
24823
24824 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
24825
24826         * function.c (try_fit_stack_local, add_frame_space): New static
24827         functions.
24828         (assign_stack_local_1): Use them.  Look for opportunities to use
24829         space previously wasted on alignment.
24830         * function.h (struct frame_space): New.
24831         (struct rtl_data): Add FRAME_SPACE_LIST member.
24832         * reload1.c (something_was_spilled): New static variable.
24833         (alter_reg): Set it.
24834         (reload): Test it in addition to testing if the frame size changed.
24835
24836 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
24837
24838         * config/s390/s390.c: Define sane prefetch settings and activate
24839         flag_prefetch_loop_arrays on -O3.
24840         * config/s390/s390.h: Declare that read can use write prefetch.
24841
24842 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
24843
24844         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
24845         build.
24846
24847 2010-05-16  Jan Hubicka  <jh@suse.cz>
24848
24849         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
24850         function body; do not check stdarg field of struct function.
24851
24852 2010-05-16  Jan Hubicka  <jh@suse.cz>
24853
24854         * cgraph.c (dump_cgraph_node): Dump versionable flag.
24855         * cgraph.h (cgraph_local_info): Add versionable flag.
24856         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
24857         (ipcp_versionable_function_p): Use it.
24858         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
24859         versionable flag.
24860
24861 2010-05-16  Jan Hubicka  <jh@suse.cz>
24862
24863         * cgraph.c (cgraph_clone_node): Take decl argument and insert
24864         clone into hash when it is different from orig.
24865         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
24866         * cgraph.h (cgraph_clone_node): Update prototype.
24867         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
24868         (lto_cgraph_encoder_delete): Delete body map.
24869         (lto_cgraph_encoder_size): Move to header.
24870         (lto_cgraph_encoder_encode_body_p,
24871         lto_set_cgraph_encoder_encode_body): New.
24872         (lto_output_node): Do not take written_decls argument; output clone_of
24873         pointer.
24874         (add_node_to): Add include_body_argument; call
24875         lto_set_cgraph_encoder_encode_body on master of the clone.
24876         (add_references): Update use of add_node_to.
24877         (compute_ltrans_boundary): Likewise.
24878         (output_cgraph): Do not create written_decls bitmap.
24879         (input_node): Take nodes argument; stream in clone_of correctly.
24880         (input_cgraph_1): Update use of input_node.
24881         * lto-streamer-out.c (lto_output): Use encoder info to decide
24882         what bodies to output.
24883         * ipa-inline.c (cgraph_clone_inlined_nodes,
24884         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
24885         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
24886         (lto_cgraph_encoder_size): Define here.
24887         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
24888         Declare.
24889
24890 2010-05-16  Richard Guenther  <rguenther@suse.de>
24891
24892         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
24893         -fipa-type-escape.
24894         * ipa-type-escape.c (gate_type_escape_vars): Run when
24895         -fipa-struct-reorg runs.
24896         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
24897         * common.opt (fipa-type-escape): Remove.
24898
24899 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24900
24901         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
24902         (decode_options): Likewise.
24903         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
24904
24905 2010-05-16  Jan Hubicka  <jh@suse.cz>
24906
24907         * ipa.c (function_and_variable_visibility): Also bring local all
24908         aliases.
24909
24910 2010-05-16  Richard Guenther  <rguenther@suse.de>
24911
24912         * alias.c (nonoverlapping_memrefs_p): Remove use of
24913         IPA type-escape information.
24914
24915 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
24916
24917         * c-common.c (c_common_reswords): Add _Static_assert for C.
24918         * c-parser.c (c_token_starts_declaration,
24919         c_parser_next_token_starts_declaration,
24920         c_parser_static_assert_declaration_no_semi,
24921         c_parser_static_assert_declaration): New.
24922         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
24923         Handle static assertions if static_assert_ok.
24924         (c_parser_external_declaration, c_parser_declaration_or_fndef,
24925         c_parser_compound_statement_nostart, c_parser_label,
24926         c_parser_for_statement, c_parser_objc_methodprotolist,
24927         c_parser_omp_for_loop): All callers of
24928         c_parser_declaration_or_fndef changed.
24929         (c_parser_struct_declaration): Handle static assertions.
24930         (c_parser_compound_statement_nostart): Use
24931         c_parser_next_token_starts_declaration and
24932         c_token_starts_declaration to detect start of declarations.
24933         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
24934         Likewise.
24935
24936 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
24937
24938         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24939         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24940         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24941         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24942         (mmix_function_outgoing_value): Rename to...
24943         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
24944         (mmix_function_value_regno_p): Make static.
24945         (mmix_libcall_value): New function.
24946         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
24947         mmix_function_value_regno_p): Remove declaration.
24948
24949 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24950
24951         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
24952         BUILT_IN_ALLOCA if stack checking is enabled.
24953
24954 2010-05-16  Richard Guenther  <rguenther@suse.de>
24955
24956         * var-tracking.c (vars_copy_1): Inline ...
24957         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
24958         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
24959         (variable_merge_over_cur): Adjust.  Merge asserts.
24960         (variable_merge_over_src): Likewise.
24961         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
24962         (variable_post_merge_new_vals): Merge asserts.
24963         (variable_post_merge_perm_vals): Likewise.
24964         (find_mem_expr_in_1pdv): Likewise.
24965         (dataflow_set_different_value): Remove.
24966         (onepart_variable_different_p): Merge asserts.
24967         (variable_different_p): Likewise.
24968         (dataflow_set_different_1): Inline ...
24969         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
24970         (emit_notes_for_differences_1): Merge asserts.
24971
24972 2010-05-16  Richard Guenther  <rguenther@suse.de>
24973
24974         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
24975         * optabs.c (libfunc_decl_hash): Likewise.
24976         * varasm.c (emutls_decl): Likewise.
24977
24978 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
24979
24980         * c-decl.c: Don't include gimple.h.
24981         (merge_decls): Do not copy gimple_body.
24982
24983 2010-05-15  Jason Merrill  <jason@redhat.com>
24984
24985         * c.opt: Add -fnothrow-opt.
24986
24987 2010-05-15  Jan Hubicka  <jh@suse.cz>
24988
24989         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
24990         analyzed.
24991         * passes.c (ipa_write_summaries): Write all analyzed nodes.
24992
24993 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
24994
24995         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
24996         * Makefile.in: Add it.
24997         Fix all other Makefile dependencies for changes below.
24998         * tree.h: Include it instead of defining VEC primitives here.
24999         * gimple.h: Likewise.
25000         * rtl.h: Likewise.
25001         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
25002         * except.h: Include vecir.h, break dependence on tree.h.
25003
25004         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
25005         Move from here...
25006         * tree-iterator.c: ...to here.
25007         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
25008
25009         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
25010         tm_p.h.
25011         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
25012         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
25013         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
25014         tree-mudflap.h, and target.h.
25015         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
25016         predict.h, tree-inline.h, gimple.h, and langhooks.h.
25017         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
25018         Add FIXME for why gimple.h is still included (should be unnecessary
25019         since GCC 4.5 gimplification unit-at-a-time).
25020         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
25021         * c-pragma.c: Add FIXME for why function.h needs to be included just
25022         for cfun, at front-end level.
25023         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
25024         Do not include ggc.h, but include vecprim.h for VEC(char).
25025         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
25026         Explain why target.h is included.
25027         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
25028         Explain why gimple.h is included.
25029         * c-ppoutput.c: Do not include tm.h.
25030         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
25031         * c-parses.c: Explain why rtl.h is included, and that this (and only
25032         this) is also why tm.h must be included.
25033         Do not include except.h.
25034         * c-lang.c: Do not include ggc.h.
25035
25036 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
25037
25038         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
25039
25040 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
25041
25042         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
25043         unions by default if those structs and unions have no tags.  Do
25044         not condition anonymous struct and unions handling on flag_iso.
25045         Allow anonymous structs and unions for C1X.
25046         (finish_struct): Do not diagnose lack of named fields when
25047         anonymous structs and unions present for C1X.  Accept flexible
25048         array members in structure with anonymous structs or unions but no
25049         directly named fields.
25050         * doc/extend.texi (Unnamed Fields): Update.
25051
25052 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
25053
25054         * gimple.h (compare_field_offset): Rename into...
25055         (gimple_compare_field_offset): ...this.
25056         * gimple.c (compare_field_offset): Rename into...
25057         (gimple_compare_field_offset): ...this.  Compare the full access if
25058         the offset is self-referential.
25059         (gimple_types_compatible_p): Adjust for above renaming.
25060         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
25061         DECL_NONADDRESSABLE_P flag of fields before merging them.
25062
25063 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
25064
25065         * tree.h (ctor_to_list): Delete.
25066         * tree.c (ctor_to_list): Delete.
25067
25068 2010-05-15  Jan Hubicka  <jh@suse.cz>
25069
25070         * ipa-reference.c: Include toplev.h
25071         (is_proper_for_analysis): Only add to all_module_statics
25072         if it is allocated.
25073         (write_node_summary_p, stream_out_bitmap,
25074         ipa_reference_write_optimization_summary,
25075         ipa_reference_read_optimization_summary): New.
25076         (struct ipa_opt_pass_d pass_ipa_reference): Add
25077         optimization summary streaming.
25078         * lto-cgraph.c (referenced_from_this_partition_p,
25079         reachable_from_this_partition_p): New functions.
25080         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
25081         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
25082         * opts.c (decode_options): Enable ipa_reference.
25083         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
25084         * lto-streamer.h (referenced_from_this_partition_p,
25085         reachable_from_this_partition_p): Declare.
25086
25087 2010-05-15  Richard Guenther  <rguenther@suse.de>
25088
25089         PR tree-optimization/44038
25090         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
25091         taking the address of a V_C_E of a constant.
25092
25093 2010-05-14  Jan Hubicka  <jh@suse.cz>
25094
25095         * tree.h (memory_identifier_string): Remove.
25096         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
25097         (ipa_reference_global_vars_info_d): Remove statics_not_read and
25098         statics_not_written.
25099         (ipa_reference_optimization_summary_d): New structure.
25100         (ipa_reference_optimization_summary_t): New type and vector.
25101         (ipa_reference_vars_info_d): Embedd structures instead of using
25102         pointers.
25103         (reference_vars_to_consider): Remove out of GGC space.
25104         (module_statics_escape): Remove.
25105         (global_info_obstack): Rename to ...
25106         (optimization_summary_obstack): ... this one.
25107         (initialization_status_t): Remove.
25108         (memory_identifier_string): Remove.
25109         (get_reference_vars_info): Fix indenting.
25110         (set_reference_vars_info): Likewise.
25111         (get_reference_optimization_summary): New.
25112         (set_reference_optimization_summary): New.
25113         (get_global_reference_vars_info): Remove.
25114         (ipa_reference_get_read_global): Remove.
25115         (ipa_reference_get_written_global): Remove.
25116         (ipa_reference_get_not_read_global): Update.
25117         (ipa_reference_get_not_written_global): Update.
25118         (is_proper_for_analysis): Outlaw addressable.
25119         (propagate_bits): Update for new datastructures.
25120         (analyze_variable): Remove.
25121         (init_function_info): Update for new datastructures.
25122         (clean_function_local_data): Remove.
25123         (clean_function): Remove.
25124         (copy_global_bitmap): Use optimizations_summary_obstack.
25125         (duplicate_node_data): Duplicate optimization summary only.
25126         (remove_node_data): Remove optimization summary only.
25127         (generate_summary): Do not analyze variables; do not compute
25128         module_statics_escape; do not prune solutions by it.
25129         (read_write_all_from_decl): Fix typos in comments.
25130         (propagate): Doscover readonly and nonaddressable first;
25131         update for new datastructures; share global bitmaps.
25132         * ipa-reference.h (ipa_reference_get_read_global,
25133         ipa_reference_get_written_global): Remove.
25134         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
25135         * Makefile.in: Remove ipa-refereference from GT files.
25136
25137 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
25138
25139         PR debug/44112
25140         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
25141         for all SYMBOL_REF_DECLs.
25142
25143 2010-05-14  Jan Hubicka  <jh@suse.cz>
25144
25145         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
25146         (varpool_all_refs_explicit_p): New inline function.
25147         * ipa-reference.c: Update comment.
25148         (module_statics_written): Remove.
25149         (get_static_decl): Remove.
25150         (ipa_init): Do not initialize module_statics_written.
25151         (analyze_function): Likewise.
25152         (generate_summary): Likewise; do not compute module_statics_readonly
25153         and do not update variable flags.
25154         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
25155         * ipa.c: Inlucde flags.h
25156         (cgraph_local_node_p): New.
25157         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
25158         promote functions to local.
25159         (ipa_discover_readonly_nonaddressable_vars): New function.
25160         (function_and_variable_visibility): Use cgraph_local_node_p.
25161         * varpool.c (varpool_finalize_decl): Set force_output for
25162         DECL_PRESERVE_P vars.
25163
25164 2010-05-14  Jan Hubicka  <jh@suse.cz>
25165
25166         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
25167
25168 2010-05-14  Richard Guenther  <rguenther@suse.de>
25169
25170         PR tree-optimization/44119
25171         * tree-ssa-pre.c (eliminate): Properly mark replacement of
25172         a PHI node necessary.
25173
25174 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25175
25176         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
25177
25178 2010-05-14  Jason Merrill  <jason@redhat.com>
25179
25180         PR c++/44127
25181         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
25182         (gimple_call_set_nothrow): New.
25183         * gimple.c (gimple_build_call_from_tree): Call it.
25184         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
25185
25186         PR c++/44127
25187         * gimplify.c (gimplify_seq_add_stmt): No longer static.
25188         * gimple.h: Declare it.
25189         * gimple.c (gimple_build_eh_filter): No ops.
25190
25191 2010-05-14  Jan Hubicka  <jh@suse.cz>
25192
25193         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
25194         nodes already in queue.
25195         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
25196         re-enqueueing node.
25197
25198 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
25199
25200         PR debug/44136
25201         * cfgexpand.c (expand_debug_expr): If non-memory op0
25202         has BLKmode, return NULL.
25203
25204 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
25205
25206         * config.gcc: Add support for --with-cpu option for bdver1.
25207         * config/i386/i386.h (TARGET_BDVER1): New macro.
25208         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
25209         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
25210         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
25211         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
25212         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
25213         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
25214         (processor_type): Add PROCESSOR_BDVER1.
25215         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
25216         processor_type in config/i386/i386.h.
25217         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
25218         movaps <reg, reg> instead of movapd <reg, reg> when replacing
25219         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
25220         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
25221         to emit packed xor instead of packed double/packed integer
25222         xor for SSE and AVX when moving a zero value.
25223         * config/i386/sse.md: Add check for
25224         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
25225         movapd/movdqa for SSE and AVX.
25226         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
25227         single logical operations i.e and, or and xor instead of packed double
25228         logical operations for SSE and AVX.
25229         * config/i386/i386-c.c (ix86_target_macros_internal):
25230         Add PROCESSOR_BDVER1.
25231         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
25232         (has_fma4, has_xop): New.
25233         * config/i386/i386.c (bdver1_cost): New variable.
25234         (m_BDVER1): New macro.
25235         (m_AMD_MULTIPLE): Add m_BDVER1.
25236         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
25237         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
25238         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
25239         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
25240         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
25241         x86_tune_sse_partial_reg_dependency,
25242         x86_tune_sse_unaligned_load_optimal,
25243         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
25244         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
25245         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
25246         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
25247         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
25248         Enable/disable for bdver1.
25249         (processor_target_table): Add bdver1_cost.
25250         (cpu_names): Add bdver1.
25251         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
25252          processor_alias_table.
25253         (ix86_expand_vector_move_misalign): Change.
25254         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
25255         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
25256         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
25257         of movupd/movdqu for SSE and AVX.
25258         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
25259         (ix86_tune_adjust_cost): Add code for bdver1.
25260         (standard_sse_constant_opcode): Add check for
25261         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
25262         of packed double xor for SSE and AVX.
25263
25264 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
25265
25266         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
25267         result to unsigned.
25268
25269 2010-05-14  Tristan Gingold  <gingold@adacore.com>
25270
25271         * toplev.c (default_debug_hooks): Remove this variable.
25272         (process_options): Remove assignments to default_debug_hooks.
25273
25274 2010-05-14  Martin Jambor  <mjambor@suse.cz>
25275
25276         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
25277         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
25278         * langhooks.h (struct lang_hooks_for_decls): Removed field
25279         fold_obj_type_ref.
25280         * tree.c (free_lang_data): Remove assignment to
25281         lang_hooks.fold_obj_type_ref.
25282         * tree.def (OBJ_TYPE_REF): Update comment.
25283
25284 2010-05-14  Richard Guenther  <rguenther@suse.de>
25285
25286         PR tree-optimization/44124
25287         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
25288
25289 2010-05-14  Alan Modra  <amodra@gmail.com>
25290
25291         PR target/44075
25292         * config/rs6000/rs6000.c (struct machine_function): Reorder
25293         fields for better packing.  Add lr_save_state.
25294         (rs6000_ra_ever_killed): Return lr_save_state if set.
25295         (rs6000_emit_eh_reg_restore): Set lr_save_state.
25296
25297 2010-05-13  Jan Hubicka  <jh@suse.cz>
25298
25299         * varpool.c (decide_is_variable_needed): Drop code checking
25300         TREE_SYMBOL_REFERENCED.
25301
25302 2010-05-13  Jan Hubicka  <jh@suse.cz>
25303
25304         * final.c (output_addr_const): Do not call mark_decl_referenced.
25305         * cgraphunit.c (process_function_and_variable_attributes): Use
25306         mark_needed_node dirrectly.
25307         (assemble_thunk): Do not call mark_decl_referenced.
25308
25309 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
25310
25311         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
25312
25313 2010-05-13  Jeff Law  <law@redhat.com>
25314
25315         * ira-conflicts.c (print_allocno_conflicts): New function broken out
25316         from...
25317         (print_conflicts): Call print_allocno_conflicts.
25318
25319 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
25320
25321         PR debug/44104
25322         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
25323         if it is NULL.
25324
25325 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
25326
25327         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
25328         t-mingw-w64 or t-mingw-w32 for multilib configuration.
25329         * config/i386/t-mingw-w32: New.
25330         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
25331
25332 2010-05-13  Martin Jambor  <mjambor@suse.cz>
25333
25334         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
25335         gimple-fold.c).
25336         * gimple-fold.c (get_base_binfo_for_type): New function.
25337         (gimple_get_relevant_ref_binfo): Likewise.
25338         (gimple_fold_obj_type_ref_known_binfo): Likewise.
25339         (gimple_fold_obj_type_ref): Likewise.
25340         (fold_gimple_call): Simplify condition for folding virtual calls
25341         and call gimple_fold_obj_type_ref.
25342         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
25343         (gimple_fold_obj_type_ref_known_binfo): Likewise.
25344
25345 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
25346
25347         * config/rs6000/rs6000-protos.h
25348         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
25349         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
25350         (rs6000_debug_mode_dependent_address)
25351         (rs6000_mode_dependent_address_ptr): Likewise.
25352
25353 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
25354
25355         PR debug/43983
25356         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
25357         by SRA.
25358         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
25359         * tree-sra.c (create_access_replacement): Call unshare_expr before
25360         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
25361         * dwarf2out.c: Include tree-flow.h.
25362         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
25363         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
25364         Handle DW_OP_bit_piece.
25365         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
25366         construct_piece_list, adjust_piece_list): New functions.
25367         (add_var_loc_to_decl): Handle SRA optimized variables.
25368         Adjust for var_loc_note to loc field renaming.
25369         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
25370         in VAR_LOCATION note.
25371         (new_loc_descr_op_bit_piece): New function.
25372         (dw_sra_loc_expr): New function.
25373         (dw_loc_list): Use it.  Don't handle the last range after the
25374         loop, handle it inside of the loop.  Adjust for var_loc_note
25375         to loc field renaming.
25376         (add_location_or_const_value_attribute): Only special case
25377         single entry loc lists if loc is NOTE_P.  Adjust for
25378         var_loc_note to loc field renaming.
25379         (dwarf2out_var_location): Don't set newloc->var_loc_note
25380         and newloc->next here.
25381
25382 2010-05-12  Jan Hubicka  <jh@suse.cz>
25383
25384         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
25385         flag.
25386         * cgraph.h (cgraph_only_called_directly_p,
25387         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
25388         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
25389         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
25390         (assemble
25391         * ipa.c (cgraph_remove_unreachable_nodes): Use
25392         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
25393         flags.
25394         * tree-inline.c (copy_bb): Check address_taken flag.
25395         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
25396         externally_visible flag.
25397
25398 2010-05-12  Jason Merrill  <jason@redhat.com>
25399
25400         PR bootstrap/44048
25401         PR target/44099
25402         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
25403         * sdbout.c (plain_type_1): Likewise.
25404         * dwarf2out.c (is_base_type): Likewise.
25405         (gen_type_die_with_usage): Likewise.  Generate
25406         DW_TAG_unspecified_type for any LANG_TYPE.
25407
25408 2010-05-12  Jan Hubicka  <jh@suse.cz>
25409
25410         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
25411         indrect edges too.
25412         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
25413         (cgraph_clone_edge): Update.
25414         (cgraph_node_remove_callees): Remove indirect calls too.
25415         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
25416         (cgraph_create_indirect_edge): Update prototype.
25417         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
25418         is_proper_for_analysis.
25419         (add_new_function, visited_nodes, function_insertion_hook_holder,
25420         get_local_reference_vars_info, mark_address_taken, mark_address,
25421         mark_load, mark_store, check_asm_memory_clobber, check_call,
25422         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
25423         (ipa_init): Do not initialize visited_nodes;
25424         function_insertion_hook_holder.
25425         (analyze_variable): Rewrite.
25426         (analyze_function): Rewrite.
25427         (copy_local_bitmap): Remove.
25428         (duplicate_node_dat): Do not duplicate local info.
25429         (generate_summary): Simplify to only walk cgraph.
25430         (write_node_summary_p, ipa_reference_write_summary,
25431         ipa_reference_read_summary): Remove.
25432         (propagate): Do not remove function insertion;
25433         generate summary.
25434         (pass_ipa_reference): NULLify summary handling fields.
25435         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
25436         (input_edge): Input ecf_flags.
25437         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
25438         (update_indirect_edges_after_inlining): Ignore edges with unknown
25439         param.
25440
25441 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
25442
25443         * implicit-zee.c: New file.
25444         * tree-pass.h (pass_implicit_zee): Declare.
25445         * passes.c (init_optimization_passes): Add zee pass.
25446         * common.opt (fzee): New flag.
25447         * timevar.def (TV_ZEE): Define.
25448         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
25449         and beyond.
25450         * Makefile.in (implicit-zee.o): Add new build file.
25451
25452 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25453             Nathan Froyd  <froydnj@codesourcery.com>
25454
25455         * c-common.c (sync_resolve_params): Remove write-only variable.
25456
25457 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
25458
25459         * target.h (struct gcc_target): Add mode_dependent_address_p field.
25460         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
25461         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
25462         * targhooks.c (default_mode_dependent_address_p): New function.
25463         * targhooks.h (default_mode_dependent_address_p): Declare function.
25464         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
25465         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
25466         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
25467         target hook. Change return type to bool.
25468         * recog.h (mode_dependent_address_p): Change return type to bool.
25469
25470 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25471             Nathan Froyd  <froydnj@codesourcery.com>
25472
25473         * tree-mudflap.c (build_function_type_0, build_function_type_1,
25474         build_function_type_2, build_function_type_3): Remove.
25475         (mudflap_init): Use build_function_type_list.
25476
25477 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25478             Nathan Froyd  <froydnj@codesourcery.com>
25479
25480         * coverage.c (build_fn_info_value): Call build_constructor instead of
25481         build_constructor_from_list.
25482         (build_ctr_info_value): Likewise.
25483         (build_gcov_info): Likewise.
25484
25485 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
25486
25487         * tree.c (build_constructor): Compute TREE_CONSTANT for the
25488         resultant constructor.
25489         (build_constructor_single): Don't set TREE_CONSTANT.
25490         (build_constructor_from_list): Don't compute TREE_CONSTANT.
25491
25492 2010-05-12  Jan Hubicka  <jh@suse.cz>
25493
25494         * cgraph.h (struct varpool_node): Add aux.
25495         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
25496         * varpool.c (varpool_remove_node): Do not remove initializer.
25497         (varpool_reset_queue): Export.
25498         (varpool_finalize_decl): Volatile vars are forced to be output.
25499         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
25500         replaced decl.
25501         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
25502         process_references, varpool_can_remove_if_no_refs): New functions.
25503         (cgraph_remove_unreachable_nodes): Handle variables too.
25504
25505 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
25506
25507         PR target/44088
25508         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
25509
25510 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
25511
25512         PR middle-end/44085
25513         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
25514         change value of ORT_TASK.
25515         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
25516         (omp_notice_threadprivate_variable): New function.
25517         (omp_notice_variable): Call it for threadprivate variables.
25518         If enclosing ctx is a task, print enclosing task rather than
25519         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
25520         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
25521         if task has untied clause.
25522
25523         PR debug/42278
25524         * dwarf2out.c (base_type_die): Don't add name attribute here.
25525         (modified_type_die): Instead of sizetype use
25526         its underlying original type.  If a DW_TAG_base_type doesn't
25527         have name added, add __unknown__.
25528         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
25529         always call force_type_die instead.
25530
25531 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
25532
25533         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
25534         for __stack_chk_guard.
25535
25536 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
25537
25538         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
25539         don't call start_source_file debug hook here...
25540         (finish_options): ... but here, after outputting predefined and
25541         command line defines and undefs.
25542
25543         PR middle-end/44071
25544         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
25545         no fallthru edge.
25546         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
25547         optimizing away empty bb with no successors, move over its
25548         footer chain to fallthru predecessor.
25549         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
25550         (rtl_split_edge): For asm goto call patch_jump_insn even if
25551         splitting fallthru edge.
25552
25553         PR c++/44059
25554         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
25555         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
25556         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
25557         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
25558         on DW.ref.* decls.
25559
25560         PR c++/44062
25561         * c-parser.c (c_parser_expression): Mark LHS of a comma
25562         expression as read if it is a decl, handled component or
25563         COMPOUND_EXPR with that on the RHS.
25564         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
25565         if it is a decl or handled component.
25566
25567 2010-05-11  Jan Hubicka  <jh@suse.cz>
25568
25569         * lto-symtab.c (lto_symtab_free): New function.
25570         * lto-streamer.h (lto_symtab_free): Declare.
25571
25572 2010-05-11  Jan Hubicka  <jh@suse.cz>
25573
25574         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
25575         that if function is needed it is reachable.
25576         (lto_output_node): See if it the function is reachable or referenced.
25577         (output_cgraph): Update call of lto_output_node.
25578         * lto-streamer.h (reachable_from_other_partition_p): Declare.
25579
25580 2010-05-11  Jan Hubicka  <jh@suse.cz>
25581
25582         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
25583         Mark as used.
25584
25585 2010-05-11  Jan Hubicka  <jh@suse.cz>
25586
25587         PR tree-optimize/44063
25588         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
25589         queue.
25590         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
25591         limits.
25592         (estimate_function_body_sizes): Compute sizes even when disregarding.
25593
25594 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
25595
25596         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
25597
25598 2010-05-11  Jan Hubicka  <jh@suse.cz>
25599
25600         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
25601         into every boundary.
25602
25603 2010-05-11  Jan Hubicka  <jh@suse.cz>
25604
25605         * matrix-reorg.c (matrix_reorg): Rebuild edges.
25606
25607 2010-05-11  Jan Hubicka  <jh@suse.cz>
25608
25609         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
25610         lto_streamer_cache_delete): Put nodes into heap.
25611         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
25612         heap.
25613
25614 2010-05-11  Jan Hubicka  <jh@suse.cz>
25615
25616         * cgraphbuild.c (cgraph_rebuild_references): New.
25617         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
25618         out extern inlines.
25619         * cgraph.h (cgraph_rebuild_references): Declare.
25620         * tree-inline.c (tree_function_versioning): Use it.
25621         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
25622
25623 2010-05-11  Jan Hubicka  <jh@suse.cz>
25624
25625         * cgraph.c: Include ipa-utils.h
25626         (cgraph_create_virtual_clone): Update references.
25627         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
25628
25629 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
25630
25631         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
25632         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
25633         cache size.
25634
25635 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
25636
25637         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
25638
25639 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
25640
25641         * gcc.c (execute): For -### don't quote arguments that
25642         contain just alphanumerics and _/-. characters.
25643         * doc/invoke.texi: Document that change for -###.
25644
25645         PR debug/44023
25646         * df-problems.c (struct dead_debug): Add to_rescan field.
25647         (dead_debug_init): Clear to_rescan field.
25648         (dead_debug_finish): Rescan all debug insns in to_rescan
25649         bitmap and free the bitmap.
25650         (dead_debug_insert_before): Instead of rescanning debug insns
25651         immediately queue their rescanning until dead_debug_finish.
25652         (df_note_bb_compute): After dead_debug_add do continue instead
25653         of break.
25654
25655 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
25656
25657         PR debug/44028
25658         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
25659         clear also INSN_REG_USE_LIST.
25660
25661 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25662
25663         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
25664
25665 2010-05-10  Jan Hubicka  <jh@suse.cz>
25666
25667         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
25668         commited change.
25669
25670 2010-05-10  Jan Hubicka  <jh@suse.cz>
25671
25672         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
25673         Allocate encoders.
25674         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
25675         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
25676         (lto_streamer_cache_create): Init alloc pool.
25677         (lto_streamer_cache_delete): Free alloc pool.
25678         * lto-streamer.h: Include alloc pool.
25679         (lto_streamer_cache_d): Use alloc pool.
25680         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
25681
25682 2010-05-10  Jan Hubicka  <jh@suse.cz>
25683
25684         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
25685         * cgraphbuild.c: Include except.h
25686         (record_type_list, record_eh_tables): New function.
25687         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
25688
25689 2010-05-10  Jan Hubicka  <jh@suse.cz>
25690
25691         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
25692         __frame_dummy_init_array_entry, force_to_data): Attribute as used
25693         rather than unused.
25694
25695 2010-05-10  Michael Matz  <matz@suse.de>
25696
25697         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
25698         (can_reassociate_p): Use FLOAT_TYPE_P.
25699         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
25700         (vect_force_simple_reduction): ... this.
25701         * tree-parloops.c (gather_scalar_reductions): Use
25702         vect_force_simple_reduction.
25703         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
25704         vect_is_simple_reduction, add modify argument, if true rewrite
25705         "a-b" into "a+(-b)".
25706         (vect_is_simple_reduction, vect_force_simple_reduction): New
25707         functions.
25708         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
25709
25710 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25711             Vladimir Makarov  <vmakarov@redhat.com>
25712
25713         PR rtl-optimization/44012
25714         * ira-build.c (remove_unnecessary_allocnos): Nullify
25715         regno_allocno_map of the removed allocno.
25716
25717 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25718
25719         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
25720         to /dev/null.
25721         * configure: Regenerate.
25722
25723 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25724
25725         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
25726         unused.
25727         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
25728         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
25729         support in Sun ld.
25730         * configure: Regenerate.
25731
25732 2010-05-10  Richard Guenther  <rguenther@suse.de>
25733
25734         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
25735         marked if the entry identifier is marked.
25736
25737 2010-05-10  Richard Guenther  <rguenther@suse.de>
25738
25739         * c-common.c (struct c_common_attributes): Add fnspec attribute.
25740         (handle_fnspec_attribute): New function.
25741         * gimple.h (gimple_call_return_flags): Declare.
25742         (gimple_call_arg_flags): Likewise.
25743         * gimple.c (gimple_call_arg_flags): New function.
25744         (gimple_call_return_flags): Likewise.
25745         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
25746         New argument flags.
25747         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
25748         return value flags.
25749         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
25750         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
25751         main work to ...
25752         (make_heapvar_for): ... this new function.
25753         (handle_rhs_call): Handle fnspec attribute argument specifiers.
25754         (handle_lhs_call): Likewise.
25755         (find_func_aliases): Adjust.
25756
25757 2010-05-10  Richard Guenther  <rguenther@suse.de>
25758
25759         PR tree-optimization/44050
25760         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
25761
25762 2010-05-10  Wei Guozhi  <carrot@google.com>
25763
25764         PR target/42879
25765         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
25766
25767 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
25768
25769         PR c/10676
25770         * c-typeck.c (lookup_field): Take a type directly.  Update
25771         recursive calls.
25772         (build_component_ref): Update call to lookup_field.
25773         (set_init_label): Use lookup_field to find initialized field.
25774         Handle returned list of fields like a sequence of designators.
25775
25776 2010-05-09  Richard Guenther  <rguenther@suse.de>
25777
25778         PR middle-end/44024
25779         * fold-const.c (tree_single_nonzero_warnv_p): Properly
25780         handle &FUNCTION_DECL.
25781
25782 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
25783
25784         PR c/4784
25785         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
25786         structures and unions recursively.
25787         (detect_field_duplicates): Move duplicate detection with a hash to
25788         detect_field_duplicates_hash.  Always use a hash if anonymous
25789         structures or unions are present.
25790         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
25791         give errors.
25792
25793 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25794
25795         PR target/44046
25796         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
25797         detect Atom, Core 2 and Core i7.
25798
25799 2010-05-09  Richard Guenther  <rguenther@suse.de>
25800
25801         * gcc.c (store_arg): Handle temporary file deletion for
25802         joined arguments.
25803
25804 2010-05-09  Richard Guenther  <rguenther@suse.de>
25805
25806         PR middle-end/44043
25807         * ipa-inline.c (estimate_function_body_sizes): Return after
25808         disregarding inline limits.
25809
25810 2010-05-09  Richard Guenther  <rguenther@suse.de>
25811
25812         * gcc.c (store_arg): Revert last change.
25813
25814 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
25815
25816         PR middle-end/28685
25817         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
25818         (optimize_ops_list): Call it.
25819
25820 2010-05-08  Richard Guenther  <rguenther@suse.de>
25821
25822         PR tree-optimization/44030
25823         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
25824         NECESSARY flag if we propagate from a inserted expression.
25825
25826 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
25827
25828         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
25829         domain types as equal if they are both PLACEHOLDER_EXPRs.
25830
25831 2010-05-08  Richard Guenther  <rguenther@suse.de>
25832
25833         * lto-wrapper.c (run_gcc): Remove linker output from
25834         command line for LTRANS invocation.
25835
25836 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
25837
25838         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
25839         lto-macho as lto_binary_reader.
25840         * target.h (struct gcc_target): New hooks lto_start and lto_end.
25841         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
25842         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
25843         in lto_start and lto_end calls.
25844         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
25845         magic numbers.
25846         (scan_prog_file): Update is_elf_or_coff call.
25847         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
25848
25849         * collect2.c (main): Fix enum comparison.
25850
25851         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
25852         Add prototypes.
25853         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
25854         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
25855         and TARGET_ASM_LTO_END.
25856         * darwin.c: Include obstack.h and lto-streamer.h.
25857         (lto_section_names_offset, lto_section_names_obstack,
25858         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
25859         global variables.
25860         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
25861         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
25862         to a temporary file.
25863         (darwin_asm_lto_end): New function.  Restore asm_out_file.
25864         (darwin_asm_named_section): For LTO sections, replace the name with
25865         the offset of the section name in a string table, and build this
25866         table.
25867         (darwin_file_start): Initialize global vars for LTO support.
25868         (darwin_file_end): If output to asm_out_file was redirected, append it
25869         to the proper asm_out_file here.  Add the section names section.
25870
25871 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
25872
25873         * c-pragma.c (pending_weak_d, pending_weak): New.
25874         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
25875         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
25876         handle_pragma_weak): Update the uses of pending_weaks.
25877
25878 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25879
25880         PR documentation/44016
25881         * doc/standards.texi (Standards): Link to unversioned
25882         cxx0x_status.html page.
25883
25884 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
25885
25886         PR target/43708
25887         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
25888         in addition to TREE_USED, to avoid "set but unused" warnings.
25889
25890 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
25891
25892         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
25893         (is_loop_prefetching_profitable): Do not insert prefetches
25894         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
25895         times the prefetch ahead distance.
25896
25897 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
25898
25899         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
25900         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
25901         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
25902         the unroll_factor.
25903
25904 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
25905
25906         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
25907         a diagnostic info when the insn-to-mem ratio is too small.
25908
25909 2010-05-07  Richard Guenther  <rguenther@suse.de>
25910
25911         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
25912         the linker plugin.
25913         (store_arg): Queue temp_filename for deletion instead of
25914         the whole argument.
25915
25916 2010-05-07  Richard Guenther  <rguenther@suse.de>
25917
25918         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
25919         (run_gcc): Handle LTRANS phase invocation.
25920         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
25921
25922 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
25923
25924         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
25925         this is also meaningful on PARM_DECLs and RESULT_DECLs.
25926
25927 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25928
25929         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
25930
25931 2010-05-07  Richard Guenther  <rguenther@suse.de>
25932
25933         PR tree-optimization/44020
25934         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
25935         code when PRE is not yet initialized.
25936
25937 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25938
25939         * config/mips/dbxmdebug.h: Remove.
25940         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
25941
25942 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
25943
25944         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
25945         with null pointer and also warn about ordered comparison of zero with
25946         pointer if -Wextra.
25947
25948 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
25949
25950         * graphite-blocking.c
25951         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
25952         * graphite-clast-to-gimple.c
25953         (clast_to_gcc_expression): Same.
25954         (precision_for_value): Same.
25955         (precision_for_interval): Same.
25956         (gcc_type_for_interval): Same.
25957         (graphite_create_new_guard): Same.
25958         (compute_bounds_for_level): Same.
25959         (graphite_create_new_loop_guard): Same.
25960         * graphite-interchange.c
25961         (build_linearized_memory_access): Same.
25962         (pdr_stride_in_loop): Same.
25963         (memory_strides_in_loop_1): Same.
25964         (memory_strides_in_loop): Same.
25965         (extend_scattering): Same.
25966         (psct_scattering_dim_for_loop_depth): Same.
25967         (pbb_number_of_iterations): Same.
25968         * graphite-poly.h
25969         (debug_iteration_domains): Same.
25970         * graphite-ppl.c
25971         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
25972         (ppl_set_inhomogeneous_gmp): Same.
25973         (ppl_strip_loop): Same.
25974         (ppl_lexico_compare_linear_expressions): Same.
25975         (ppl_read_polyhedron_matrix): Same.
25976         (ppl_max_for_le_pointset): Same.
25977         * graphite-ppl.h
25978         (ppl_read_polyhedron_matrix): Same.
25979         (tree_int_to_gmp): Same.
25980         (gmp_cst_to_tree): Same.
25981         (ppl_set_inhomogeneous): Same.
25982         (ppl_set_inhomogeneous_tree): Same.
25983         (ppl_set_coef): Same.
25984         (ppl_set_coef_tree): Same.
25985         * graphite-sese-to-poly.c
25986         (build_pbb_scattering_polyhedrons): Same.
25987         (build_scop_scattering): Same.
25988         (scan_tree_for_params_right_scev): Same.
25989         (scan_tree_for_params): Same.
25990         (find_params_in_bb): Same.
25991         (find_scop_parameters): Same.
25992         (add_upper_bounds_from_estimated_nit): Same.
25993         (build_loop_iteration_domains): Same.
25994         (add_condition_to_domain): Same.
25995         (pdr_add_memory_accesses): Same.
25996
25997 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
25998
25999         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
26000         CLooG's value_* macros to their respective mpz_* counterparts.
26001         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
26002         (graphite_create_new_loop_guard): Same.
26003         * graphite-interchange.c (build_linearized_memory_access): Same.
26004         (pdr_stride_in_loop): Same.
26005         (memory_strides_in_loop_1): Same.
26006         (1st_interchange_profitable_p): Same.
26007         * graphite-poly.c (extend_scattering): Same.
26008         (psct_scattering_dim_for_loop_depth): Same.
26009         (pbb_number_of_iterations): Same.
26010         (pbb_number_of_iterations_at_time): Same.
26011         * graphite-poly.h (new_1st_loop): Same.
26012         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
26013         (oppose_constraint): Same.
26014         (insert_constraint_into_matrix): Same.
26015         (ppl_set_inhomogeneous_gmp): Same.
26016         (ppl_set_coef_gmp): Same.
26017         (ppl_strip_loop): Same.
26018         (ppl_lexico_compare_linear_expressions): Same.
26019         (ppl_max_for_le_pointset): Same.
26020         (ppl_min_for_le_pointset): Same.
26021         (ppl_build_realtion): Same.
26022         * graphite-ppl.h (gmp_cst_to_tree): Same.
26023         (ppl_set_inhomogeneous): Same.
26024         (ppl_set_inhomogeneous_tree): Same.
26025         (ppl_set_coef): Same.
26026         (ppl_set_coef_tree): Same.
26027         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
26028         (build_scop_scattering): Same.
26029         (add_value_to_dim): Same.
26030         (scan_tree_for_params_right_scev): Same.
26031         (scan_tree_for_params_int): Same.
26032         (scan_tree_for_params): Same.
26033         (find_params_in_bb): Same.
26034         (find_scop_parameters): Same.
26035         (add_upper_bounds_from_estimated_nit): Same.
26036         (build_loop_iteration_domains): Same.
26037         (create_linear_expr_from_tree): Same.
26038         (add_condition_to_domain): Same.
26039         (pdr_add_memory_accesses): Same.
26040
26041 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
26042             Jason Merrill  <jason@redhat.com>
26043
26044         * c-common.c (c_common_reswords): Add nullptr.
26045         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
26046         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
26047         (gen_type_die_with_usage): Likewise.
26048         * dbxout.c (dbxout_type): Likewise.
26049         * sdbout.c (plain_type_1): Likewise.
26050
26051 2010-05-06  Jason Merrill  <jason@redhat.com>
26052
26053         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
26054         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
26055         ret appropriately.
26056         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
26057
26058         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
26059         stripping WITH_SIZE_EXPR.
26060         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
26061         change.
26062
26063 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26064
26065         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
26066         list of obsolete configurations.
26067         Disabled check for obsolete configurations.
26068         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
26069         Removed support for previous versions.
26070         * config/mips/iris.h: Removed.
26071         * config/mips/iris5.h: Removed.
26072         * config/mips/iris6.h: Merged old iris.h contents.
26073         (TARGET_IRIX): Removed.
26074         (DRIVER_SELF_SPECS): Removed mabi=32.
26075         (IDENT_ASM_OP): Removed undef.
26076         (STARTFILE_SPEC): Removed mabi=32.
26077         (ENDFILE_SPEC): Likewise.
26078         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
26079         (MACHINE_TYPE): Update for IRIX 6.5.
26080         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
26081         TARGET_IRIX by TARGET_IRIX6.
26082         (mips_file_start): Likewise.
26083         (mips_output_external): Remove IRIX 5/6 O32 support.
26084         (mips_output_function_prologue): Likewise.
26085         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
26086         TARGET_IRIX6.
26087         (TARGET_CPU_CPP_BUILTINS): Likewise.
26088         (TARGET_IRIX): Removed.
26089         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
26090         (MULTILIB_DIRNAMES): Removed 32.
26091         (MULTILIB_OSDIRNAMES): Removed ../lib.
26092         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
26093         (Specific, mips-sgi-irix5): Document removal.
26094         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
26095         Remove references to older IRIX 6 releases and the O32 ABI.
26096
26097 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
26098
26099         PR bootstrap/43994
26100         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
26101         instead of DF_REF_REAL_REG.
26102
26103 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
26104
26105         PR target/43888
26106         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
26107         handling to still return true for x64 targets.
26108
26109 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
26110
26111         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
26112
26113 2010-05-06  Jan Hubicka  <jh@suse.cz>
26114
26115         PR tree-optimization/43791
26116         * ipa-inline.c (update_caller_keys): Remove bogus
26117         disregard_inline_limits check.
26118
26119 2010-05-06  Michael Matz  <matz@suse.de>
26120
26121         PR tree-optimization/43984
26122         * tree-ssa-pre.c (inserted_phi_names): Remove.
26123         (inserted_exprs): Change to bitmap.
26124         (create_expression_by_pieces): Set bits, don't append to vector.
26125         (insert_into_preds_of_block): Don't handle inserted_phi_names.
26126         (eliminate): Don't look at inserted_phi_names, remove deleted
26127         insns from inserted_exprs.
26128         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
26129         (init_pre, fini_pre): Allocate and free bitmaps.
26130         (execute_pre): Insert insns on edges before elimination.
26131
26132 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
26133
26134         * tree.c (initializer_zerop): Handle STRING_CST.
26135
26136 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26137
26138         PR 40989
26139         * doc/invoke.texi (Wimplicit): Document as C only.
26140         * opts.c (common_handle_option): Add argument kind.
26141         (handle_option): Rename as read_cmdline_option. Factor out code to...
26142         (handle_option): ... here. New.
26143         (handle_options): Rename as read_cmdline_options.
26144         (decode_options): Update call.
26145         (set_option): Use option index instead of option pointer. Classify
26146         diagnostics correctly.
26147         (enable_warning_as_error): Call handle_option.
26148         * opts.h (set_option): Update declaration.
26149         (handle_option): Declare.
26150         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
26151         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
26152         * c-opts.c (set_Wimplicit): Delete.
26153         (c_family_lang_mask): New static constant.
26154         (c_common_handle_option): Add argument kind. Use handle_option
26155         instead of set_Wimplicit.
26156         (c_common_post_options): warn_implicit and warn_implicit_int
26157         are disabled by default.
26158         * c-common.c (warn_implicit): Do not define here.
26159         * c-common.h (warn_implicit): Do not declare here.
26160         (c_common_handle_option): Update declaration.
26161         * lto-opts.c (lto_reissue_options): Update call to set_option.
26162
26163 2010-05-06  Richard Guenther  <rguenther@suse.de>
26164
26165         PR tree-optimization/43571
26166         * domwalk.c (walk_dominator_tree): Walk the dominator
26167         sons in more optimal order.
26168
26169 2010-05-06  Richard Guenther  <rguenther@suse.de>
26170
26171         PR tree-optimization/43934
26172         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
26173         (stmt_cost): Likewise.
26174         (extract_true_false_args_from_phi): New helper.
26175         (determine_max_movement): For PHI nodes verify we can hoist them
26176         and compute their cost.
26177         (determine_invariantness_stmt): Handle PHI nodes.
26178         (move_computations_stmt): Likewise.  Hoist PHI nodes in
26179         if-converted form using COND_EXPRs.
26180         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
26181         (tree_ssa_lim): Likewise.
26182         * tree-flow.h (tree_ssa_lim): Adjust prototype.
26183         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
26184
26185 2010-05-06  Richard Guenther  <rguenther@suse.de>
26186
26187         PR tree-optimization/43987
26188         * tree-ssa-structalias.c (could_have_pointers): For possibly
26189         address-taken variables force pointers to be recorded.
26190         (create_variable_info_for_1): Likewise.
26191         (push_fields_onto_fieldstack): Pass in wheter all fields
26192         must have pointers.
26193         (find_func_aliases): Query types instead of vars whether
26194         they contain pointers where appropriate.
26195
26196 2010-05-06  Jan Hubicka  <jh@suse.cz>
26197
26198         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
26199         (record_reference, mark_address, mark_load, mark_store): Record
26200         references.
26201         (record_references_in_initializer): Update call of record_references.
26202         (rebuild_cgraph_edges): Remove all references before rebuiding.
26203         * cgraph.c (cgraph_create_node): Clear ref list.
26204         (cgraph_remove_node): Remove references.
26205         (dump_cgraph_node): Dump references.
26206         (cgraph_clone_node): Clone references.
26207         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
26208         (struct cgraph_node, varpool_node): Add ref_lst.
26209         * ipa-ref.c: New file.
26210         * ipa-ref.h: New file.
26211         * ipa-ref-inline.h: New file.
26212         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
26213         (referenced_from_other_partition_p): New function.
26214         (lto_output_varpool_node): Take set arugment; call
26215         referenced_from_other_partition.
26216         (lto_output_ref): New.
26217         (add_references): New.
26218         (output_refs): New.
26219         (output_cgraph): Compute boundary based on references; output refs.
26220         (output_varpool): Accept cgraph_node_set argument.
26221         (input_ref): New.
26222         (input_refs): New.
26223         (input_cgraph): Call input_refs.
26224         * lto-section-in.c (lto_section_name): Add refs.
26225         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
26226         (ipa-ref.o): New file.
26227         * varpool.c (varpool_node): Clear ipa ref list.
26228         (varpool_remove_node): Remove references.
26229         (dump_varpool_node): Dump references.
26230         (varpool_assemble_decl): Only compile finalized ones.
26231         (varpool_extra_name_alias): Initialize ref list.
26232         * lto-streamer.c (lto-get_section_name): Add .refs section.
26233         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
26234         (referenced_from_other_partition_p): Declared.
26235
26236 2010-05-06  Ira Rosen  <irar@il.ibm.com>
26237
26238         PR tree-optimization/43901
26239         * tree-vect-stmts.c (vectorizable_call): Assert that vector
26240         type is not NULL if it's transformation phase, and return
26241         FALSE if it's analysis.
26242         (vectorizable_conversion, vectorizable_operation,
26243         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
26244
26245 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
26246
26247         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
26248         Delete.
26249         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
26250         New define.
26251         * config/mips/mips-protos.h
26252         (mips_small_register_classes_for_mode_p): Delete prototype.
26253
26254 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
26255
26256         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
26257         * config/arm/arm.c (multiple_operation_profitable_p,
26258         compute_offset_order): New static functions.
26259         (load_multiple_sequence, store_multiple_sequence): Use them.
26260         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
26261         memory offsets, not register numbers.
26262         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
26263
26264 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
26265
26266         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
26267         (get_pending_sizes, put_pending_size, put_pending_sizes):
26268         Update the uses of pending_sizes.
26269         * c-decl.c (store_parm_decls): Likewise.
26270         * c-tree.h (struct c_arg_info): Likewise.
26271         * tree.h: Update the prototype for get_pending_sizes and
26272         put_pending_sizes.
26273
26274 2010-05-05  Jason Merrill  <jason@redhat.com>
26275
26276         PR debug/43370
26277         * c-common.c (handle_aligned_attribute): Respect
26278         ATTR_FLAG_TYPE_IN_PLACE.
26279
26280         PR testsuite/43758
26281         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
26282         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
26283         (TARGET_INITIALIZER): Use it.
26284         * c-common.c (attribute_takes_identifier_p): Call it.
26285         * c-common.h: Update prototype.
26286         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
26287         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
26288
26289 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
26290
26291         PR debug/43950
26292         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
26293         DW_ID_down_case for Fortran compilation units.
26294
26295 2010-05-05  Jan Hubicka  <jh@suse.cz>
26296
26297         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
26298         handle aliases.
26299
26300 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
26301
26302         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
26303         a variable-sized RESULT_DECL.
26304
26305 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
26306
26307         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
26308
26309 2010-05-05  Jason Merrill  <jason@redhat.com>
26310
26311         PR c++/43787
26312         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
26313         returns GS_OK.
26314         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
26315
26316 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
26317             Jakub Jelinek  <jakub@redhat.com>
26318
26319         PR debug/43478
26320         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
26321         (dead_debug_init, dead_debug_finish): New functions.
26322         (dead_debug_add, dead_debug_insert_before): Likewise.
26323         (df_note_bb_compute): Initialize a dead_debug object, add dead
26324         debug uses to it, insert debug bind insns before death insns,
26325         reset debug insns that refer to pending uses at the end.
26326         * rtl.h (make_debug_expr_from_rtl): New prototype.
26327         * varasm.c (make_debug_expr_from_rtl): New function.
26328
26329 2010-05-05  Jan Hubicka  <jh@suse.cz>
26330
26331         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
26332         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
26333         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
26334         lto_varpool_encoder_deref, lto_varpool_encoder_size,
26335         lto_varpool_encoder_encode_initializer_p,
26336         lto_set_varpool_encoder_encode_initializer): New functions.
26337         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
26338         call output_varpool.
26339         (input_varpool_node): Do not always set analyzed.
26340         (input_cgraph_1): Return vector of cgraph nodes.
26341         (input_varpool_1): Return vector of varpools.
26342         (input_cgraph): Free the vectors.
26343         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26344         output only initializers needed.
26345         (lto_output): Only call output_cgraph.
26346         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
26347         * lto-section-out.c (lto_new_out_decl_state): Initialize
26348         state->varpool_node_encoder.
26349         * lto-streamer.h (lto_varpool_encoder_d): New.
26350         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
26351         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
26352         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
26353         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
26354         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
26355         Declare.
26356         (output_varpool, input_varpool): Remove declarations.
26357
26358 2010-05-05  Jan Hubicka  <jh@suse.cz>
26359
26360         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
26361         with body can prevail.
26362
26363 2010-05-05  Jan Hubicka  <jh@suse.cz>
26364
26365         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
26366         size.
26367
26368 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26369
26370         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
26371
26372         * gengtype.h (erro_at_line): Constify pos argument.
26373
26374         * gengtype.c: Include hashtab.h.
26375         (enum gc_used): Document GC_MAYBE_POINTED_TO.
26376         (error_at_line): Constify pos argument.
26377         (do_typedef): Initialize p->opt field.
26378         (get_file_gtfilename): Fix comment typo.
26379         (struct walk_type_data): Constify line field.
26380         (get_output_file_for_structure): New function.
26381         (write_local_func_for_structure): Constify orig_s argument.
26382         Use get_output_file_for_structure.
26383         (write_func_for_structure): Use get_output_file_for_structure.
26384         (INDENT): New define.
26385         (dump_pair, dump_type, dump_type_list, dump_typekind)
26386         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
26387         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
26388         functions.
26389         (seen_types): New variable.
26390         (main): New variable do_dump.  Process "-d" command line option.
26391         Call dump_everything if dump requested.
26392
26393 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
26394
26395         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
26396         in a temporary instead of invoking the macro multiple times.
26397         (track_expr_p): Likewise.
26398
26399 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
26400
26401         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
26402         per new semantics.
26403         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
26404         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
26405         conditions for printing notes.
26406         * common.opt (-Wcoverage-mismatch): Allow negative, default to
26407         true, update documentation.
26408         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
26409
26410 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
26411
26412         PR c/43981
26413         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
26414         on dimen.
26415
26416 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
26417
26418         PR target/43799
26419         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
26420         (*sse_prologue_save_insn1): Likewise.
26421         (SSE prologue save splitter): Likewise.
26422
26423 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
26424
26425         * tree.c (free_lang_data_in_one_sizepos): New inline function.
26426         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
26427         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
26428         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
26429         all decls.  Call it on DECL_FIELD_OFFSET of fields.
26430         (find_decls_types_r): Follow DECL_VALUE_EXPR.
26431         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
26432
26433 2010-05-04  Martin Jambor  <mjambor@suse.cz>
26434
26435         * tree-sra.c (build_access_from_expr_1): The first parameter type
26436         changed to simple tree.
26437         (build_access_from_expr): Likewise, gsi parameter was eliminated.
26438         (scan_assign_result): Renamed to assignment_mod_result, enum elements
26439         renamed as well.
26440         (build_accesses_from_assign): Removed all parameters except for a
26441         simple gimple statement.  Now returns a simple bool.
26442         (scan_function): All non-analysis parts moved to separate functions
26443         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
26444         parameters and updated both callers.
26445         (sra_modify_expr): Removed parameter data.
26446         (sra_modify_function_body): New function.
26447         (perform_intra_sra): Call sra_modify_function_body to modify the
26448         function body.
26449         (replace_removed_params_ssa_names): Parameter data changed into
26450         adjustments vector.
26451         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
26452         changed the parameter dont_convert to convert with the opposite
26453         meaning.
26454         (sra_ipa_modify_assign): Parameter data changed into adjustments
26455         vector, return value changed to bool.
26456         (ipa_sra_modify_function_body): New function.
26457         (sra_ipa_reset_debug_stmts): Updated a comment.
26458         (modify_function): Use ipa_sra_modify_function_body to modify function
26459         body.
26460
26461 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
26462
26463         PR middle-end/43671
26464         * alias.c (true_dependence): Handle the same VALUE in x and mem.
26465         (canon_true_dependence): Likewise.
26466         (write_dependence_p): Likewise.
26467
26468 2010-05-04  Jan Hubicka  <jh@suse.cz>
26469
26470         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
26471         * cgraphbuild.c: Include ipa-utils.h
26472         (record_reference_ctx): New struct.
26473         (record_reference): Simplify to work on initializers; not statements.
26474         (mark_address, mark_load, mark_store): New.
26475         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
26476         walk PHI nodes too.
26477         (record_references_in_initializer): Update use of record_reference.
26478         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
26479         walk PHI nodes too.
26480
26481 2010-05-04  Jan Hubicka  <jh@suse.cz>
26482
26483         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
26484         node will be removed anyway.
26485         (lto_varpool_replace_node): Allow also unanalyzed nodes;
26486         relink aliases of node into prevailing node.
26487         * varpool.c (varpool_remove_node): Remove aliases properly;
26488         when removing node, remove all its aliases too; remove DECL_INITIAL
26489         of removed node; ggc_free the varpool node.
26490
26491 2010-05-04  Richard Guenther  <rguenther@suse.de>
26492
26493         PR tree-optimization/43879
26494         * tree-ssa-structalias.c (alias_get_name): Use
26495         DECL_ASSEMBLER_NAME if available.
26496         (create_function_info_for): Return the varinfo node.
26497         (ipa_pta_execute): Associate same-body aliases and extra names
26498         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
26499
26500 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
26501
26502         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
26503
26504 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
26505
26506         PR bootstrap/43964
26507         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
26508         only if HONOR_REG_ALLOC_ORDER is not defined.
26509
26510 2010-05-04  Richard Guenther  <rguenther@suse.de>
26511
26512         PR tree-optimization/43949
26513         * tree-vrp.c (extract_range_from_binary_expr): Only handle
26514         TRUNC_MOD_EXPR.
26515
26516 2010-04-26  Jason Merrill  <jason@redhat.com>
26517
26518         * c.opt (-fstrict-enums): New.
26519         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
26520
26521 2010-05-03  David Ung  <davidu@mips.com>
26522             James E. Wilson  <wilson@codesourcery.com>
26523
26524         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
26525         emit the trap instruction before the divide for TUNE_74K.
26526
26527 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
26528
26529         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
26530         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
26531         based on the above, for new target hook.
26532
26533         * hooks.c (hook_bool_mode_true): New generic hook.
26534         * hooks.h (hook_bool_mode_true): Add prototype.
26535
26536         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
26537         target hook.
26538         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
26539         target hook, set to hook_bool_mode_false.
26540         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
26541         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
26542         with targetm.small_register_classes_for_mode_p.
26543         (find_reusable_reload): Likewise.
26544         (combine_reloads): Likewise.
26545         * reload1.c (reload_as_needed): Likewise.
26546         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
26547         * ifcvt.c (noce_process_if_block, check_cond_move_block,
26548         dead_or_predicable): Likewise.
26549         * regmove.c (optimize_reg_copy_1): Likewise.
26550         * calls.c (prepare_call_address): Likewise.
26551         (precompute_register_parameters): Likewise.
26552
26553         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
26554         hook definition.
26555         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
26556         implementation of the hook that considers all register classes
26557         small except for SH64.
26558         (sh_override_options): Use the new hook.
26559         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
26560         Add prototype.
26561
26562         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
26563         hook definition.
26564         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
26565         implementation of the hook that considers all register classes
26566         small for THUMB1.
26567         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
26568         Add prototype.
26569
26570         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
26571         hook definition.
26572         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
26573         implementation of the hook that considers all register classes
26574         small for MIPS16.
26575         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
26576         Add prototype.
26577
26578         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
26579         hook definition.
26580         * config/m32c/m32c.h: Likewise.
26581         * config/pdp11/pdp11.h: Likewise.
26582         * config/avr/avr.h: Likewise.
26583         * config/xtensa/xtensa.h: Likewise.
26584         * config/m68hc11/m68hc11.h: Likewise.
26585         * config/mn10300/mn10300.h: Likewise.
26586         * config/mcore/mcore.h: Likewise.
26587         * config/h8300/h8300.h: Likewise.
26588         * config/bfin/bfin.h: Likewise.
26589
26590         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
26591         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
26592
26593 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
26594
26595         * double-int.h (tree_to_double_int): Remove macro.
26596         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
26597         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26598         (tree_to_double_int): New function.
26599         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
26600         Move ...
26601         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26602
26603 2010-05-03  Richard Guenther  <rguenther@suse.de>
26604
26605         PR tree-optimization/43971
26606         * tree-ssa-structalias.c (get_constraint_for_1): Fix
26607         constraints in the !flag_delete_null_pointer_checks case.
26608
26609 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
26610
26611         PR debug/43972
26612         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
26613         result mode matches original rtl mode.
26614
26615 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
26616
26617         PR target/43888
26618         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
26619
26620 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26621
26622         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
26623         when processing flag options.
26624
26625 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26626
26627         * gcov-iov.c (main): Change format string placeholder
26628         from %#08x to 0x%08x.
26629         * genchecksum.c (dosum): Change format string placeholder
26630         from %#02x to 0x%02x.
26631
26632 2010-05-02  Richard Guenther  <rguenther@suse.de>
26633
26634         PR tree-optimization/43879
26635         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
26636
26637 2010-05-02  Bruno Haible  <bruno@clisp.org>
26638
26639         * doc/extend.texi (Function Attributes): Fix a typo.
26640
26641 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26642
26643         Revert:
26644         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
26645         placeholder from 0x%x to %#x.
26646         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26647         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26648         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26649         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26650         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26651         * config/i386/i386.c (ix86_target_string): Ditto.
26652         * config/i386/i386.c (output_pic_addr_const): Ditto.
26653         (print_operand): Ditto.
26654
26655 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26656
26657         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
26658         placeholder from 0x%x to %#x.
26659         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
26660         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
26661         (ASM_OUTPUT_DEBUG_DATA): Ditto.
26662         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
26663         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
26664         * optc-gen.awk: Ditto.
26665         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
26666         (HOST_WIDE_INT_PRINT_HEX): Ditto.
26667         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
26668         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26669
26670 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
26671
26672         * target.h (struct calls): Add function_value_regno_p field.
26673         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
26674         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
26675         * targhooks.c (default_function_value_regno_p): New function.
26676         * targhooks.h (default_function_value_regno_p): Declare function.
26677         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
26678         * builtins.c. (apply_result_size): (Ditto.).
26679         * combine.c. (likely_spilled_retval_p): (Ditto.).
26680         * mode-switching.c. Include 'target.h'.
26681         (create_pre_exit): Use function_value_regno_p hook.
26682         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
26683         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
26684         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
26685
26686         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
26687         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
26688         (ix86_function_value_regno_p): Declare as static, change argument
26689         type to const unsigned int.
26690         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
26691
26692 2010-05-01  Richard Guenther  <rguenther@suse.de>
26693
26694         PR tree-optimization/43949
26695         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
26696         types.
26697         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
26698
26699 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
26700
26701         * rtl.h (CONST_DOUBLE_P): Define.
26702         (rtx_to_double_int): Declare.
26703         * emit-rtl.c (rtx_to_double_int): New function.
26704         * dwarf2out.c (insert_double): New function.
26705         (loc_descriptor, add_const_value_attribute): Clean up, use
26706         rtx_to_double_int and insert_double functions.
26707
26708 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
26709
26710         * doc/extend.texi (Inline): Add missing return keyword to examples.
26711         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
26712         "command-line".
26713
26714 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
26715
26716         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
26717         the variable part of the offset as well.  Use highest_pow2_factor for
26718         all alignment checks.
26719
26720 2010-04-30  Richard Guenther  <rguenther@suse.de>
26721
26722         PR tree-optimization/43879
26723         * tree-ssa-structalias.c (type_could_have_pointers): Functions
26724         can have pointers.
26725
26726 2010-04-30  Jan Hubicka  <jh@suse.cz>
26727
26728         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
26729         varpool.
26730         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
26731
26732 2010-04-30  Jan Hubicka  <jh@suse.cz>
26733
26734         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
26735         New.
26736         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
26737         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
26738         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
26739         cgraph_node_set_needs_ltrans_p): Remove.
26740
26741 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
26742
26743         * sdbout.c: Include vec.h, do not include varray.h.
26744         (deferred_global_decls, sdbout_global_decl,
26745         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
26746         * toplev.c: Do not include varray.h.
26747         (dump_memory_report): Do not dump VARRAY statistics.
26748         * gengtype.c (open_base_file): Ignore varray.h.
26749         * Makefile.in: Update for abovementioned changes.
26750         Remove all traces of varray.c and varray.h.
26751         * varray.c: Remove file.
26752         * varray.h: Remove file.
26753
26754 2010-04-30  Jan Hubicka  <jh@suse.cz>
26755
26756         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
26757         references.
26758
26759 2010-04-30  Jan Hubicka  <jh@suse.cz>
26760
26761         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
26762         needed.
26763
26764 2010-04-30  Richard Guenther  <rguenther@suse.de>
26765
26766         * tree-ssa-structalias.c (get_constraint_for_1): Generate
26767         constraints for CONSTRUCTOR.
26768
26769 2010-04-30  Richard Guenther  <rguenther@suse.de>
26770
26771         PR lto/43946
26772         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
26773         first after all lowering passes.
26774
26775 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
26776
26777         * toplev.c: Include varray.h for statistics dumping.
26778         * tree.h: Do not declare varray_head_tag.
26779         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
26780         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
26781         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
26782         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
26783         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
26784         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
26785         c-common.c, c-common.h, reg-stack.c, basic-block.h,
26786         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
26787         include varray.h.
26788         * Makefile.in: Update for abovementioned changes.
26789
26790 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
26791
26792         PR debug/43942
26793         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
26794
26795 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
26796
26797         * config/picochip/picochip.c (picochip_legitimize_address): Define.
26798         Use this function to do machine-specific conversion.
26799         (picochip_legitimize_reload_address): Likewise.
26800         (picochip_legitimate_address_p): Check valid base register only if
26801         strict.
26802         (picochip_check_conditional_copy): Check for modw only if opnd is
26803         register.
26804         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
26805         to call the function in c.
26806         * config/picochip/picochip-protos.h
26807         (picochip_legitimize_reload_address): Define.
26808         * config/picochip/picochip.md (supported_compare1): Define.
26809
26810 2010-04-30  Jan Hubicka  <jh@suse.cz>
26811
26812         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
26813         (cgraph_global_info): Remove inlined.
26814         (LTO_cgraph_tag_names): Remove.
26815         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
26816         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
26817         simplify cgraph tags and document.
26818         (lto_output_node): Use only LTO_cgraph_unavail_node and
26819         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
26820         for_functions_valid, global info, process and output flags.
26821         (input_overwrite_node): Initialize estimated stack size and
26822         estimated growth.  Do not read flags we no longer store.
26823         (input_node): Likewise do not read info no longer stored.
26824         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
26825         flag.
26826
26827 2010-04-30  Richard Guenther  <rguenther@suse.de>
26828
26829         PR tree-optimization/43879
26830         * tree-ssa-structalias.c (get_constraint_for_1): Properly
26831         handle non-zero initializers.
26832
26833 2010-04-30  Richard Guenther  <rguenther@suse.de>
26834
26835         * builtins.c (fold_builtin_1): Delete free (0).
26836
26837 2010-04-29  Jan Hubicka  <jh@suse.cz>
26838
26839         * gengtype.c (open_base_files): Add lto-streamer.h
26840         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
26841         (pass_ipa_cp): GGC collect.
26842         * toplev. (compile_file): Do not output symbols.
26843         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
26844         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
26845         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
26846         * lto-section-in.c: Include ggc.h
26847         (lto_new_in_decl_state): Alloc in GGC.
26848         (lto_delete_in_decl_state): Likewise.
26849         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
26850         Collect.
26851
26852 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
26853
26854         PR target/42895
26855         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
26856         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
26857         (HONOR_REG_ALLOC_ORDER): Describe new macro.
26858         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
26859         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
26860         account only if HONOR_REG_ALLOC_ORDER is not defined.
26861         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
26862         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
26863
26864 2010-04-29  Jon Grant  <04@jguk.org>
26865
26866         * collect2.c (vflag): Change type from int to bool.
26867         (debug): Likewise.
26868         (helpflag): New global bool.
26869         (main): Set vflag and debug with boolean, not integer truth values.
26870         Accept new "--help" option and output usage text if found.
26871         * collect2.h (vflag): Update prototype.
26872         (debug): Likewise.
26873
26874 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
26875
26876         PR bootstrap/43936
26877         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
26878
26879 2010-04-29  Richard Guenther  <rguenther@suse.de>
26880
26881         PR bootstrap/43935
26882         * plugin.h (invoke_plugin_callbacks): Annotate arguments
26883         with ATTRIBUTE_UNUSED.
26884
26885 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
26886
26887         PR target/43921
26888         * config/i386/i386.c (get_some_local_dynamic_name): Replace
26889         INSN_P with NONDEBUG_INSN_P.
26890         (distance_non_agu_define): Likewise.
26891         (distance_agu_use): Likewise.
26892
26893 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
26894
26895         From Dominique d'Humieres  <dominiq@lps.ens.fr>
26896         PR bootstrap/43858
26897         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
26898         test_set.
26899
26900 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
26901
26902         * plugin.h (invoke_plugin_callbacks): New inline function.
26903         * plugin.c (flag_plugin_added): New global flag.
26904         (add_new_plugin): Initialize above flag.
26905         (invoke_plugin_callbacks): Rename to ...
26906         (invoke_plugin_callbacks_full): ... this.
26907
26908 2010-04-28  Jan Hubicka  <jh@suse.cz>
26909
26910         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
26911         (lto_varpool_replace_node): New.
26912         (lto_symtab_resolve_symbols): Resolve varpool nodes.
26913         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
26914         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
26915         * cgraph.h (varpool_node_ptr): New type.
26916         (varpool_node_ptr): New vector.
26917         (varpool_node_set_def): New structure.
26918         (varpool_node_set): New type.
26919         (varpool_node_set): New vector.
26920         (varpool_node_set_element_def): New structure.
26921         (varpool_node_set_element, const_varpool_node_set_element): New types.
26922         (varpool_node_set_iterator): New type.
26923         (varpool_node): Add prev pointers, add used_from_other_partition,
26924         in_other_partition.
26925         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
26926         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
26927         varpool_get_node, varpool_remove_node): Declare.
26928         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
26929         varpool_node_set_size): New inlines.
26930         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
26931         * tree-pass.h (varpool_node_set_def): Forward declare.
26932         (ipa_opt_pass_d): Summary writting takes vnode sets too.
26933         (ipa_write_optimization_summaries): Update prototype.
26934         * ipa-cp.c (ipcp_write_summary): Update.
26935         * ipa-reference.c (ipa_reference_write_summary): Update.
26936         * lto-cgraph.c (lto_output_varpool_node): New static function.
26937         (output_varpool): New function.
26938         (input_varpool_node): New static function.
26939         (input_varpool_1): New function.
26940         (input_cgraph): Input varpool.
26941         * ipa-pure-const.c (pure_const_write_summary): Update.
26942         * lto-streamer-out.c (lto_output): Update, output varpool too.
26943         (write_global_stream): Kill WPA hack.
26944         (produce_asm_for_decls): Update.
26945         (output_alias_pair_p): Handle variables.
26946         (output_unreferenced_globals): Output only needed partition of varpool.
26947         * ipa-inline.c (inline_write_summary): Update.
26948         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
26949         cgraph.
26950         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
26951         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
26952         varpool_node_set_new, varpool_node_set_add,
26953         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
26954         debug_varpool_node_set): New functions.
26955         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
26956         (execute_one_pass): Process new decls too.
26957         (ipa_write_summaries_2): Pass around vsets.
26958         (ipa_write_summaries_1): Likewise.
26959         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
26960         to add.
26961         (ipa_write_optimization_summaries_1): Pass around vsets.
26962         (ipa_write_optimization_summaries): Likewise.
26963         * varpool.c (varpool_get_node): New.
26964         (varpool_node): Update doubly linked lists.
26965         (varpool_remove_node): New.
26966         (dump_varpool_node): More dumping.
26967         (varpool_enqueue_needed_node): Update doubly linked lists.
26968         (decide_is_variable_needed): Kill ltrans hack.
26969         (varpool_finalize_decl): Kill lto hack.
26970         (varpool_assemble_decl): Skip decls in other partitions.
26971         (varpool_assemble_pending_decls): Update doubly linkes lists.
26972         (varpool_empty_needed_queue): Likewise.
26973         (varpool_extra_name_alias): Likewise.
26974         * lto-streamer.c (lto_get_section_name): Add vars section.
26975         * lto-streamer.h (lto_section_type): Update.
26976         (output_varpool, input_varpool): Declare.
26977
26978 2010-04-28  Mike Stump  <mikestump@comcast.net>
26979
26980         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
26981
26982 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26983
26984         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
26985         record or union type with RECORD_OR_UNION_TYPE_P predicate.
26986         (lto_input_ts_type_tree_pointers): Likewise.
26987         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
26988         (lto_output_ts_type_tree_pointers): Likewise.
26989
26990 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26991
26992         Uniquization of constants at the Tree level
26993         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
26994         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
26995         bit to the end.
26996         (tree_output_constant_def): Declare.
26997         * gimplify.c (gimplify_init_constructor): When using block copy, first
26998         uniquize the constant constructor on the RHS.
26999         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
27000         DECL_IN_CONSTANT_POOL flag.
27001         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
27002         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
27003         constant pool.
27004         (assemble_variable): Deal with symbols belonging to the tree constant
27005         pool.
27006         (get_constant_section): Add ALIGN parameter and simplify.
27007         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
27008         (assemble_constant_contents): Use the expression of the VAR_DECL.
27009         (output_constant_def_contents): Use the alignment of the VAR_DECL.
27010         (tree_output_constant_def): New global function.
27011         (mark_constant): Use the expression of the VAR_DECL.
27012         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
27013         its expression.
27014         (output_object_block): Likewise and assemble the expression.
27015
27016 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
27017
27018         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
27019         hash_tree, eq_tree): New tree hash table.
27020         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
27021         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
27022         lto_orig_address_remove): Reimplement.
27023
27024 2010-04-28  Xinliang David Li  <davidxl@google.com>
27025
27026         PR c/42643
27027         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
27028         (compute_uninit_opnds_pos): New function.
27029         (is_non_loop_exit_postdominating): New function.
27030         (compute_control_dep_chain): New function.
27031         (find_pdom): New function.
27032         (convert_control_dep_chain_into_preds): New function.
27033         (find_predicates): New function.
27034         (find_control_equiv_block): New function.
27035         (collect_phi_def_edges): New function.
27036         (find_def_preds): New function.
27037         (find_dom): New function.
27038         (dump_predicates): New function.
27039         (get_cmp_code): New function.
27040         (is_value_included_in): New function.
27041         (find_matching_predicate_in_rest_chains): New function.
27042         (use_pred_not_overlap_with_undef_path_pred): New function.
27043         (is_use_properly_guarded): New function.
27044         (normalize_cond_1): New function.
27045         (is_and_or_or): New function.
27046         (normalize_cond): New function.
27047         (is_gcond_subset_of): New function.
27048         (is_subset_of_any): New function.
27049         (is_or_set_subset_of): New function.
27050         (is_and_set_subset_of): New function.
27051         (is_norm_cond_subset_of): New function.
27052         (is_pred_expr_subset_of): New function.
27053         (is_pred_chain_subset_of): New function.
27054         (is_included_in): New function.
27055         (is_superset_of): New function.
27056         (find_uninit_use): New function.
27057         (warn_uninitialized_phi): New function.
27058         (compute_possibly_undefined_names): New function.
27059         (ssa_undefined_value_p): New function.
27060         (execute_late_warn_uninitialized): New function.
27061         * tree-ssa.c (ssa_undefined_value_p): Removed.
27062         (warn_uninit): Changed to extern.
27063         (warn_uninitialized_phi): Removed.
27064         (warn_uninitialized_vars): Changed to extern.
27065         (execute_late_warn_uninitialized): Removed
27066         * tree-flow.h: Add new prototypes.
27067         * timevar.def: Add new time variable.
27068         * Makefile.in: Add new build file.
27069
27070 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
27071
27072         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
27073         type if available.
27074
27075 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27076
27077         PR target/22224
27078         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
27079
27080 2010-04-28  Martin Jambor  <mjambor@suse.cz>
27081
27082         * cgraph.h (struct cgraph_node): New field indirect_calls.
27083         (struct cgraph_indirect_call_info): New type.
27084         (struct cgraph_edge): Removed field indirect_call. New fields
27085         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
27086         (cgraph_create_indirect_edge): Declare.
27087         (cgraph_make_edge_direct): Likewise.
27088         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
27089         * ipa-prop.h (struct ipa_param_call_note): Removed.
27090         (struct ipa_node_params): Removed field param_calls.
27091         (ipa_create_all_structures_for_iinln): Declare.
27092         * cgraph.c: Described indirect edges and uids in initial comment.
27093         (cgraph_add_edge_to_call_site_hash): New function.
27094         (cgraph_edge): Search also among the indirect edges, use
27095         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
27096         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
27097         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
27098         site hash.
27099         (initialize_inline_failed): Assign a reason to indirect edges.
27100         (cgraph_create_edge_1): New function.
27101         (cgraph_create_edge): Moved some functionality to
27102         cgraph_create_edge_1.
27103         (cgraph_create_indirect_edge): New function.
27104         (cgraph_edge_remove_callee): Add an assert checking for
27105         non-indirectness.
27106         (cgraph_edge_remove_caller): Special-case indirect edges.
27107         (cgraph_remove_edge): Likewise.
27108         (cgraph_set_edge_callee): New function.
27109         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
27110         (cgraph_make_edge_direct): New function.
27111         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
27112         the declaration of the call statement matches.
27113         (cgraph_node_remove_callees): Special-case indirect edges.
27114         (cgraph_clone_edge): Likewise.
27115         (cgraph_clone_node): Clone also the indirect edges.
27116         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
27117         indirect_call, dump count of indirect_calls edges.
27118         * ipa-prop.c (iinlining_processed_edges): New variable.
27119         (ipa_note_param_call): Create indirect edges instead of
27120         creating notes.  New parameter node.
27121         (ipa_analyze_call_uses): New parameter node, pass it on to
27122         ipa_note_param_call.
27123         (ipa_analyze_stmt_uses): Likewise.
27124         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
27125         (print_edge_addition_message): Work on edges rather than on notes.
27126         (update_call_notes_after_inlining): Likewise, renamed to
27127         update_indirect_edges_after_inlining.
27128         (ipa_create_all_structures_for_iinln): New function.
27129         (ipa_free_node_params_substructures): Do not free notes.
27130         (ipa_edge_duplication_hook): Propagate bits within
27131         iinlining_processed_edges bitmap.
27132         (ipa_node_duplication_hook): Do not duplicate notes.
27133         (free_all_ipa_structures_after_ipa_cp): Renamed to
27134         ipa_free_all_structures_after_ipa_cp.
27135         (free_all_ipa_structures_after_iinln): Renamed to
27136         ipa_free_all_structures_after_iinln.
27137         (ipa_write_param_call_note): Removed.
27138         (ipa_read_param_call_note): Removed.
27139         (ipa_write_indirect_edge_info): New function.
27140         (ipa_read_indirect_edge_info): Likewise.
27141         (ipa_write_node_info): Do not stream notes, do stream information
27142         in indirect edges.
27143         (ipa_read_node_info): Likewise.
27144         (lto_ipa_fixup_call_notes): Removed.
27145         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
27146         * ipa-inline.c (pass_ipa_inline): Likewise.
27147         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
27148         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
27149         * tree-inline.c (copy_bb): Removed an unnecessary double check for
27150         is_gimple_call.
27151         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
27152         edges.
27153         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
27154         (output_cgraph): Stream also indirect edges.
27155         (lto_output_edge): Added capability to stream indirect edges.
27156         (input_edge): Likewise.
27157         (input_cgraph_1): Likewise.
27158         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
27159         of indirect edges.
27160
27161 2010-04-28  Richard Guenther  <rguenther@suse.de>
27162
27163         PR tree-optimization/43879
27164         PR tree-optimization/43909
27165         * tree-ssa-structalias.c (struct variable_info): Add
27166         only_restrict_pointers flag.
27167         (new_var_info): Initialize it.  Increment stats.total_vars here.
27168         (create_function_info_for): Do not increment stats.total_vars here.
27169         (get_function_part_constraint): Fix build with C++.
27170         (insert_into_field_list): Remove.
27171         (push_fields_onto_fieldstack): Properly merge fields.
27172         (create_variable_info_for): Split and simplify.
27173         (create_variable_info_for_1): New piece.
27174         (intra_create_variable_infos): Properly make restrict constraints
27175         from parameters.
27176
27177 2010-04-28  Richard Guenther  <rguenther@suse.de>
27178
27179         PR c++/43880
27180         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
27181
27182 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27183             Jan Hubicka  <hubicka@ucw.cz>
27184
27185         * doc/invoke.texi (-Wsuggest-attribute=const,
27186         -Wsuggest-attribute=pure): Document.
27187         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
27188         (function_always_visible_to_compiler_p,
27189         suggest_attribute, warn_function_pure, warn_function_const):
27190         New functions.
27191         (check_call): Improve debug info.
27192         (analyze_function): Do not check availability.
27193         (add_new_function): Check availability.
27194         (propagate): Output warnings.
27195         (skip_function_for_local_pure_const): New function.
27196         (local_pure_const): Use it; output warnings.
27197         * common.opt (Wsuggest-attribute=const,
27198         Wsuggest-attribute=pure): New.
27199
27200 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
27201
27202         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
27203         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
27204         or DW_CFA_def_cfa_offset{,_sf}.
27205
27206 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
27207
27208         * tree.h: Fix truncated long macros.
27209
27210 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
27211
27212         * collect2.c (TARGET_64BIT): Redefine to target's default.
27213         * tlink.c: Likewise.
27214         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
27215         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
27216         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
27217         for underscoring __USER_LABEL_PREFIX__.
27218         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
27219         (SUB_LINK_ENTRY32): New.
27220         (SUB_LINK_ENTRY64): New.
27221         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
27222         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
27223         (SUB_LINK_ENTRY64): New.
27224         (SUB_LINK_ENTRY): New.
27225         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
27226         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
27227         x64 target is choosen.
27228         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
27229         * configure: Regenerated.
27230         * configure.ac (leading-mingw64-underscores): Option added.
27231
27232 2010-04-27  Jan Hubicka  <jh@suse.cz>
27233
27234         * doc/invoke.texi (-fipa-profile): Document.
27235         * opts.c (decode_options): Enable ipa-profile at -O1.
27236         * timevar.def (TV_IPA_PROFILE): Define.
27237         * common.opt (fipa-profile): Add.
27238         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
27239         flag for clones.
27240         (cgraph_propagate_frequency): Handle only local ones.
27241         * tree-pass.h (pass_ipa_profile): Declare.
27242         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
27243         (pass_ipa_profile): Use TV_IPA_PROFILE.
27244         * ipa.c (ipa_profile): New function.
27245         (gate_ipa_profile): Likewise.
27246         (pass_ipa_profile): New global variable.
27247         * passes.c (pass_ipa_profile): New.
27248
27249 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
27250
27251         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
27252
27253 2010-04-27  Martin Jambor  <mjambor@suse.cz>
27254
27255         PR middle-end/43812
27256         * ipa.c (dissolve_same_comdat_group_list): New function.
27257         (function_and_variable_visibility): Call
27258         dissolve_same_comdat_group_list when comdat group contains external or
27259         newly local nodes.
27260         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
27261         lists are circular and that they contain only DECL_ONE_ONLY nodes.
27262
27263 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
27264
27265         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
27266         (const_hash_1) <VECTOR_CST>: New case.
27267         (compare_constant) <VECTOR_CST>: Likewise.
27268         <ADDR_EXPR>: Deal with LABEL_REFs.
27269         (copy_constant) <VECTOR_CST>: New case.
27270
27271 2010-04-27  Jan Hubicka  <jh@suse.cz>
27272
27273         * cgraph.c (cgraph_propagate_frequency): New function.
27274         * cgraph.h (cgraph_propagate_frequency): Declare.
27275         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
27276         cgraph_propagate_frequency.
27277
27278 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
27279
27280         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
27281
27282 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
27283
27284         PR target/40657
27285         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
27286         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
27287         here to determine which regs to push and how much stack to reserve.
27288
27289 2010-04-27  Jie Zhang  <jie@codesourcery.com>
27290
27291         * doc/gimple.texi (gimple_statement_with_ops): Remove
27292         addresses_taken field.
27293         (gimple_statement_with_memory_ops): Likewise.
27294
27295 2010-04-27  Jan Hubicka  <jh@suse.cz>
27296
27297         * tree-inline.c (eni_inlining_weights): Remove.
27298         (estimate_num_insns): Special case more builtins.
27299
27300 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
27301
27302         PR c/32207
27303         * c-typeck.c (build_binary_op): Move forward check for comparison
27304         pointer with null pointer constant and adjust the diagnostic message.
27305
27306 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
27307
27308         PR lto/42776
27309         * configure.ac (gcc_cv_as_section_has_align): Set if installed
27310         binutils supports extended .section directive needed by LTO, or
27311         warn if older binutils found.
27312         (LTO_BINARY_READER): New AC_SUBST'd variable.
27313         (LTO_USE_LIBELF): Likewise.
27314         * config.gcc (lto_binary_reader): New target-specific configure
27315         variable.
27316         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
27317         (LTO_USE_LIBELF): Likewise.
27318         * configure: Regenerate.
27319
27320         * collect2.c (is_elf): Rename from this ...
27321         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
27322          object files in addition to ELF-formatted ones.
27323         (scan_prog_file): Caller updated.  Also allow for LTO info marker
27324         symbol to be prefixed or not by an extra underscore.
27325
27326         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
27327         * config/i386/winnt.c: Also #include lto-streamer.h
27328         (i386_pe_asm_named_section): Specify 1-byte section alignment for
27329         LTO named sections.
27330         (i386_pe_asm_output_aligned_decl_common): Add comment.
27331         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
27332
27333 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
27334
27335         PR target/43889
27336         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
27337         Add missing earlyclobber for second alternative.
27338
27339 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
27340
27341         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
27342         bits for artificial defs at the top of the block.
27343         * fwprop.c (single_def_use_enter_block): Don't call it.
27344
27345 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
27346
27347         PR 43715
27348         * configure.ac: Use "$gcc_cv_nm -g" on darwin
27349         instead of "$gcc_cv_objdump -T".
27350         Use "-undefined dynamic_lookup" on darwin.
27351         * configure: Regenerate.
27352
27353 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
27354
27355         PR c/43893
27356         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
27357
27358 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
27359
27360         * c-parser.c (struct c_token): Move location field up.
27361         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
27362         (struct c_declspecs): Convert typespec_word, storage_class, and
27363         default_int_p into bitfields.
27364         (struct c_declarator): Move loc field up.
27365
27366 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
27367
27368         * cfgloop.h (struct loop): Move can_be_parallel field up.
27369         * ipa-prop.h (struct ip_node_params): Move bitfields up.
27370         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
27371         down.
27372         (struct iv_cand): Convert pos field into a bitfield.
27373         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
27374         field up.
27375         (struct _stmt_vec_info): Shuffle fields for better packing.
27376
27377 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
27378
27379         * varasm.c (IN_NAMED_SECTION): Remove guard.
27380         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
27381         (IN_NAMED_SECTION_P): ...this.
27382         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
27383         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
27384
27385 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
27386
27387         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
27388         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
27389         of shadowing it.  Fix comments.
27390
27391 2010-04-26  Jan Hubicka  <jh@suse.cz>
27392
27393         * cgraph.c (cgraph_create_node): Set node frequency to normal.
27394         (cgraph_clone_node): Copy function frequency.
27395         * cgraph.h (node_frequency): New enum
27396         (struct cgraph_node): Add.
27397         * final.c (rest_of_clean_state): Update.
27398         * lto-cgraph.c (lto_output_node): Output node frequency.
27399         (input_overwrite_node): Input node frequency.
27400         * tre-ssa-loop-ivopts (computation_cost): Update.
27401         * lto-streamer-out.c (output_function): Do not output function
27402         frequency.
27403         * predict.c (maybe_hot_frequency_p): Update and handle functions
27404         executed once.
27405         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
27406         attribute lookup.
27407         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
27408         (compute_function_frequency): Set noreturn functions to be executed
27409         once.
27410         (choose_function_section): Update.
27411         * lto-streamer-in.c (input_function): Do not input function frequency.
27412         * function.c (allocate_struct_function): Do not initialize function
27413         frequency.
27414         * function.h (function_frequency): Remove.
27415         (struct function): Remove function frequency.
27416         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
27417         (try_update): Update.
27418         * tree-inline.c (initialize_cfun): Do not update function frequency.
27419         * passes.c (pass_init_dump_file): Update.
27420         * i386.c (ix86_compute_frame_layout): Update.
27421         (ix86_pad_returns): Update.
27422
27423 2010-04-26  Jie Zhang  <jie@codesourcery.com>
27424
27425         PR tree-optimization/43833
27426         * tree-vrp.c (range_int_cst_p): New.
27427         (range_int_cst_singleton_p): New.
27428         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
27429         when both operands are constants.  Use range_int_cst_p in
27430         BIT_IOR_EXPR case.
27431
27432 2010-04-26  Jan Hubicka  <jh@suse.cz>
27433
27434         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
27435
27436 2010-04-26  Richard Guenther  <rguenther@suse.de>
27437
27438         PR lto/43080
27439         * gimple.c (gimple_decl_printable_name): Deal gracefully
27440         with a NULL DECL_NAME.
27441
27442 2010-04-26  Richard Guenther  <rguenther@suse.de>
27443
27444         PR lto/42425
27445         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
27446         if emitting debug information and it is either a function
27447         or a namespace decl.
27448
27449 2010-04-26  Ira Rosen  <irar@il.ibm.com>
27450
27451         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
27452         determine if the statement is vectorizable, and a macro to access it.
27453         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27454         Skip statements that can't be vectorized. If the analysis fails,
27455         mark the statement as unvectorizable if vectorizing basic block.
27456         (vect_compute_data_refs_alignment): Likewise.
27457         (vect_verify_datarefs_alignment): Skip statements marked as
27458         unvectorizable. Add print.
27459         (vect_analyze_group_access): Skip statements that can't be
27460         vectorized. If the analysis fails, mark the statement as
27461         unvectorizable if vectorizing basic block.
27462         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
27463         * tree-vect-stmts.c (vectorizable_store): Fix the number of
27464         generated stmts for SLP.
27465         (new_stmt_vec_info): Initialize the new field.
27466         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
27467         statements marked as unvectorizable.
27468
27469 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
27470
27471         * c-common.c (flag_isoc1x): New.
27472         (flag_isoc99): Update comment.
27473         * c-common.h (flag_isoc1x): New.
27474         (flag_isoc99): Update comment.
27475         * c-cppbuiltin.c (builtin_define_float_constants): Also define
27476         __<type>_DECIMAL_DIG__.
27477         * c-opts.c (set_std_c1x): New.
27478         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
27479         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
27480         * c.opt (-std=c1x, -std=gnu1x): New options.
27481         * doc/cpp.texi: Mention -std=c1x.
27482         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
27483         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
27484         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
27485         * doc/standards.texi: Mention C1X.
27486         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
27487         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
27488         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
27489         Define for C1X.
27490
27491 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
27492
27493         * config/i386/gmon-sol2.c (_mcleanup): Change format string
27494         placeholder from 0x%x to %#x.
27495         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
27496         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
27497         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
27498         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
27499         * config/i386/i386.c (ix86_target_string): Ditto.
27500         (output_pic_addr_const): Ditto.
27501         (print_operand): Ditto.
27502
27503 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
27504
27505         * combine.c (find_split_point): Add third argument.  Use it
27506         to find nested multiply-accumulate instructions.  Adjust calls.
27507         (try_combine): Adjust call to find_split_point.
27508
27509 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
27510
27511         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
27512
27513 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
27514
27515         PR tree-optimization/41442
27516         * fold-const.c (merge_truthop_with_opposite_arm): New function.
27517         (fold_binary_loc): Call it.
27518
27519 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27520
27521         * toplev.c (general_init): Set default for fdiagnostics-show-option.
27522         * opts.c (common_handle_option): Allow disabling it.
27523         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
27524
27525 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
27526
27527         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
27528         between modes if both types are integral.
27529
27530 2010-04-23  Richard Guenther  <rguenther@suse.de>
27531
27532         PR tree-optimization/43572
27533         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
27534
27535 2010-04-23  Richard Guenther  <rguenther@suse.de>
27536
27537         PR lto/43455
27538         * tree-inline.c (tree_can_inline_p): Also check compatibility
27539         of return types.
27540
27541 2010-04-23  Martin Jambor  <mjambor@suse.cz>
27542
27543         PR tree-optimization/43846
27544         * tree-sra.c (struct access): New flag grp_assignment_read.
27545         (build_accesses_from_assign): Set grp_assignment_read.
27546         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
27547         (enum mark_read_status): New type.
27548         (analyze_access_subtree): Propagate grp_assignment_read, create
27549         accesses also if both direct_read and root->grp_assignment_read.
27550
27551 2010-04-23  Martin Jambor  <mjambor@suse.cz>
27552
27553         PR middle-end/43835
27554         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
27555         function does not have type attributes.
27556
27557 2010-04-23  Richard Guenther  <rguenther@suse.de>
27558
27559         PR lto/42653
27560         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
27561         of FUNCTION_DECLs.
27562
27563 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27564
27565         * sese.h (create_if_region_on_edge): Remove.
27566
27567         * sese.c (create_if_region_on_edge): Make static.
27568
27569         * tree-inline.c: Do not include ggc.h.
27570
27571         * expr.c: Do not include ggc.h.
27572
27573         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
27574         dependencies.
27575
27576 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
27577
27578         PR target/43744
27579         * config/sh/sh.c (find_barrier): Don't emit a constant pool
27580         in the middle of insns for casesi_worker_2.
27581
27582 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
27583
27584         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
27585
27586 2010-04-22  Ira Rosen  <irar@il.ibm.com>
27587
27588         PR tree-optimization/43842
27589         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
27590         loop unrolling in update of exit phis. Fix comment.
27591         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
27592         least two reduction statements in the loop before starting SLP
27593         analysis.
27594
27595 2010-04-22  Nick Clifton  <nickc@redhat.com>
27596
27597         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
27598
27599 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
27600
27601         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
27602         to simplify a + ~a.
27603
27604 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27605
27606         * tree-parloops.c (loop_parallel_p): New argument
27607         parloop_obstack.  Pass it down.
27608         (parallelize_loops): New variable parloop_obstack.  Initialize it,
27609         pass it down, free it.
27610
27611         * tree-loop-linear.c (linear_transform_loops): Pass down
27612         lambda_obstack.
27613
27614         * tree-data-ref.h (lambda_compute_access_matrices): New argument
27615         of type struct obstack *.
27616
27617         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
27618         scratch_obstack.  Initialize it, pass down, free it.
27619
27620         * lambda.h (lambda_loop_new): Remove.
27621         (lambda_matrix_new, lambda_matrix_inverse)
27622         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
27623         argument of type struct obstack *.
27624
27625         * lambda-trans.c (lambda_trans_matrix_new): New argument
27626         lambda_obstack.  Pass it down, use obstack allocation for ret.
27627         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
27628         it down.
27629
27630         * lambda-mat.c (lambda_matrix_get_column)
27631         (lambda_matrix_project_to_null): Remove.
27632         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
27633         allocation for mat.
27634         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
27635         lambda_obstack.
27636
27637         * lambda-code.c (lambda_loop_new): New function.
27638         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
27639         (lambda_compute_auxillary_space, lambda_compute_target_space)
27640         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
27641         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
27642         (build_access_matrix): New argument lambda_obstack.  Use obstack
27643         allocation for am.
27644         (lambda_compute_step_signs, lambda_compute_access_matrices): New
27645         argument lambda_obstack.  Pass it down.
27646
27647 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
27648
27649         * optabs.h (expand_widening_mult): Declare.
27650
27651 2010-04-22  Richard Guenther  <rguenther@suse.de>
27652
27653         PR tree-optimization/43845
27654         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
27655         lookup the CALL_EXPR function and arguments.
27656
27657 2010-04-22  Nick Clifton  <nickc@redhat.com>
27658
27659         * config/stormy16/stormy16.c
27660         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
27661         * config/stormy16/stormy16.h: Tidy up formatting.
27662         (DONT_USE_BUILTIN_SETJMP): Remove definition.
27663         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
27664         (ineqbranchsi): Delete pattern.
27665         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
27666         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
27667         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
27668         stormy16-lib2-ucmpsi2.c.
27669
27670 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
27671
27672         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
27673         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
27674         extra set merge_set_noclobber, and use it to relax the final test
27675         slightly.
27676         * df.h (df_simulate_find_noclobber_defs): Declare.
27677         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
27678         conditional defs.
27679         (df_simulate_find_noclobber_defs): New function.
27680
27681 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
27682
27683         * config/i386/i386.md: Use {} around multi-line preparation statements.
27684
27685 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27686
27687         * c-tree.h (push_init_level, pop_init_level, set_init_index)
27688         (process_init_element): New argument of type struct obstack *.
27689
27690         * c-typeck.c (push_init_level, pop_init_level, set_designator)
27691         (set_init_index, set_init_label, set_nonincremental_init)
27692         (set_nonincremental_init_from_string, find_init_member)
27693         (output_init_element, output_pending_init_elements)
27694         (process_init_element): New argument braced_init_obstack.  Pass it
27695         down.
27696         (push_range_stack, add_pending_init): New argument
27697         braced_init_obstack.  Use obstack allocation.
27698
27699         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
27700         braced_init_obstack.  Pass it down.
27701         (c_parser_braced_init): New variables ret, braced_init_obstack.
27702         Initialize obstack, pass it down and finally free it.
27703
27704 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
27705
27706         PR middle-end/29274
27707         * tree-pass.h (pass_optimize_widening_mul): Declare.
27708         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
27709         gate_optimize_widening_mul): New static functions.
27710         (pass_optimize_widening_mul): New.
27711         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
27712         <case MULT_EXPR>: Remove support for widening multiplies.
27713         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
27714         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
27715         simplify_gen_unary rather than directly building extensions.
27716         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
27717         WIDEN_MULT_EXPR.
27718         * expmed.c (expand_widening_mult): New function.
27719         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
27720
27721 2010-04-21  Jan Hubicka  <jh@suse.cz>
27722
27723         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
27724         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
27725         * lto-wpa-fixup.c: Remove.
27726         * Makefile.in (lto-wpa-fixup.o): Remove.
27727         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
27728         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
27729         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
27730
27731 2010-04-21  Jan Hubicka  <jh@suse.cz>
27732
27733         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
27734         add write_optimization_summary, read_optimization_summary.
27735         (ipa_write_summaries_of_cgraph_node_set): Remove.
27736         (ipa_write_optimization_summaries): Declare.
27737         (ipa_read_optimization_summaries): Declare.
27738         * ipa-cp.c (pass_ipa_cp): Update.
27739         * ipa-reference.c (pass_ipa_reference): Update.
27740         * ipa-pure-const.c (pass_ipa_pure_const): Update.
27741         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
27742         Update.
27743         * ipa-inline.c (pass_ipa_inline): Update.
27744         * ipa.c (pass_ipa_whole_program): Update.
27745         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
27746         * passes.c (ipa_write_summaries_1): Do not test wpa.
27747         (ipa_write_optimization_summaries_1): New.
27748         (ipa_write_optimization_summaries): New.
27749         (ipa_read_summaries): Do not test ltrans.
27750         (ipa_read_optimization_summaries_1): New.
27751         (ipa_read_optimization_summaries): New.
27752
27753 2010-04-21  Jan Hubicka  <jh@suse.cz>
27754
27755         * lto-cgraph.c (lto_output_node): Do not output comdat groups
27756         for boundary nodes.
27757         (output_cgraph): Do not arrange comdat groups for boundary nodes.
27758
27759 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
27760
27761         PR debug/40040
27762         * dwarf2out.c (add_name_and_src_coords_attributes): Add
27763         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
27764
27765 2010-04-21  Jan Hubicka  <jh@suse.cz>
27766
27767         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
27768
27769 2010-04-21  Jan Hubicka  <jh@suse.cz>
27770
27771         * varpool.c (decide_is_variable_needed): Variable is always needed
27772         during ltrans.
27773
27774 2010-04-21  Jan Hubicka  <jh@suse.cz>
27775
27776         * opts.c (decode_options): Enable pure-const pass for whopr.
27777
27778 2010-04-21  Jan Hubicka  <jh@suse.cz>
27779
27780         * cgraph.c (dump_cgraph_node): Dump also assembler name.
27781         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
27782         at WPA dumping.
27783         (cgraph_decide_inlining): Do not expect callee to be removed in all
27784         cases.
27785
27786 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
27787
27788         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
27789
27790 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
27791
27792         * config/i386/i386.md (x86_shrd): Add athlon_decode and
27793         amdfam10_decode attributes.
27794
27795 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
27796
27797         PR middle-end/43570
27798         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
27799         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
27800         (lower_copyprivate_clauses): Use private var in outer
27801         context instead of original var.  Make sure the types
27802         are correct for VLAs.
27803
27804 2010-04-21  Richard Guenther  <rguenther@suse.de>
27805
27806         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
27807         to non-pointer objects.
27808
27809 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
27810
27811         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
27812         last chain entry if it starts with the still current label.
27813         (add_location_or_const_value_attribute): Check that
27814         loc_list->first->next is NULL instead of comparing ->first with ->last.
27815         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
27816         to add_var_loc_to_decl.
27817
27818         * dwarf2out.c (output_call_frame_info): For dw_cie_version
27819         >= 4 add also address size and segment size fields into CIE header.
27820
27821         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
27822         long as address size is the same as sizeof (void *) and
27823         segment size is 0.
27824         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
27825         address size or segment size is unexpected, return DW_EH_PE_omit.
27826         (classify_object_over_fdes): If get_cie_encoding returned
27827         DW_EH_PE_omit, return -1.
27828         (init_object): If classify_object_over_fdes returned -1,
27829         pretend there were no FDEs at all.
27830
27831 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
27832
27833         * config/i386/i386.md (bswap<mode>2): Macroize expander from
27834         bswap{si,di}2 using SWI48 mode iterator.
27835         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
27836         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
27837         set modrm attribute of bswap insn to 0 and remove length attribute.
27838         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
27839         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
27840         set mode attribute to <MODE> and remove length attribute.
27841
27842 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
27843
27844         PR rtl-optimization/43520
27845         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
27846         zero available registers.
27847
27848 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27849
27850         * builtins.c (fold_builtin_cproj): Fold more cases.
27851
27852 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27853
27854         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
27855         (fold_builtin_1): Fold builtin cproj.
27856         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
27857         Use ATTR_CONST_NOTHROW_LIST.
27858
27859 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
27860
27861         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
27862         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
27863         ffsi2_no_cmove for !TARGET_CMOVE.
27864         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
27865         (ffssi2): Remove expander.
27866         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
27867         mode iterator.
27868         (ctz<mode>2): Ditto from ctz{si,di}2.
27869         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
27870         mode iterator.
27871         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
27872         mode iterator.
27873
27874 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
27875
27876         * dwarf2out.c (AT_linkage_name): Define.
27877         (clone_as_declaration): Handle DW_AT_linkage_name.
27878         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
27879         of DW_AT_MIPS_linkage_name.
27880         (move_linkage_attr): Likewise.
27881         (dwarf2out_finish): Likewise.
27882
27883 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
27884
27885         PR middle-end/41952
27886         * fold-const.c (fold_comparison): New folding rule.
27887
27888 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
27889
27890         * double-int.h (double_int_setbit): Declare.
27891         * double-int.c (double_int_setbit): New function.
27892         * rtl.h (immed_double_int_const): Declare.
27893         * emit-rtl.c (immed_double_int_const): New function.
27894         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
27895         and immed_double_int_const functions.
27896         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
27897         expand_copysign_bit): (Ditto.).
27898         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
27899         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
27900         * dojump.c (prefer_and_bit_test): (Ditto.).
27901         * expr.c (convert_modes, reduce_to_bit_field_precision,
27902         const_vector_from_tree): (Ditto.).
27903         * expmed.c (mask_rtx, lshift_value): (Ditto.).
27904
27905 2010-04-20  Jan Hubicka  <jh@suse.cz>
27906
27907         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
27908         (dump_cgraph_node): Dump new flags.
27909         * cgraph.h (struct cgraph_node): Add flags
27910         reachable_from_other_partition and in_other_partition.
27911         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
27912         other partition can not be removed.
27913         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
27914         the other partition must be output; silence sanity checking on
27915         leaking functions bodies from other paritition.
27916         * lto-cgraph.c (reachable_from_other_partition_p): New function.
27917         (lto_output_node): Output new flags; do not sanity check that inline
27918         clones are output; drop lto_forced_extern_inline_p code; do not mock
27919         visibility flags at partition boundaries.
27920         (add_node_to): New function.
27921         (output_cgraph): Use it to sort functions so masters appear before
27922         clones.
27923         (input_overwrite_node): Input new flags.
27924         * passes.c (ipa_write_summaries): Do not call
27925         lto_new_extern_inline_states.
27926         * lto-section-out.c (forced_extern_inline,
27927         lto_new_extern_inline_states lto_delete_extern_inline_states,
27928         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
27929         * lto-streamer.h (lto_new_extern_inline_states,
27930         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
27931         lto_forced_extern_inline_p): Kill.
27932
27933 2010-04-20  Richard Guenther  <rguenther@suse.de>
27934
27935         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
27936         from vars that can have pointers.
27937         (process_constraint): Dump useless constraints.
27938
27939 2010-04-20  Richard Guenther  <rguenther@suse.de>
27940
27941         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
27942         (dump_sa_points_to_info): Remove asserts.
27943         (init_base_vars): nothing_id isn't an escape point nor does it
27944         have pointers.
27945
27946 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
27947
27948         * tree.h (TYPE_REF_IS_RVALUE): Define.
27949         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
27950         should_move_die_to_comdat, prune_unused_types_walk): Handle
27951         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
27952         (modified_type_die, gen_reference_type_die): Emit
27953         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
27954         if TYPE_REF_IS_RVALUE and -gdwarf-4.
27955
27956 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27957
27958         PR target/43635
27959         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
27960         calls for -fpic -m31 if they have been sibcall optimized.
27961
27962 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
27963
27964         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
27965         ar.lc fixed and call-used.
27966
27967         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
27968
27969 2010-04-19  Jan Hubicka  <jh@suse.cz>
27970
27971         * opts.c (decode_options): Disable whpr incompatible passes.
27972         * lto/lto.c (lto_1_to_1_map): Skip clones.
27973         (read_cgraph_and_symbols): Do not mark everything as needed.
27974         (do_whole_program_analysis): Do map only after optimizing;
27975         set proper cgraph_state; use passmanager.
27976
27977 2010-04-19  DJ Delorie  <dj@redhat.com>
27978
27979         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
27980         POINTER_PLUS_EXPR and fix them.
27981
27982 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
27983
27984         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
27985         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
27986         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
27987         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
27988         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
27989         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
27990         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
27991         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
27992         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
27993         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
27994         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
27995
27996 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
27997
27998         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
27999         (check_cond_move_block): Likewise.
28000         (cond_move_process_if_block): Likewise.
28001         (noce_find_if_block): Improve formatting.
28002         (find_if_header): Pass 0 to memset and tweak conditions.
28003         (cond_exec_find_if_block): Fix long lines and tweak conditions.
28004
28005 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
28006
28007         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
28008         for -gdwarf-4.
28009
28010         PR middle-end/43337
28011         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
28012         with non-local decl doesn't need chain.
28013
28014 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
28015
28016         * ira-color.c (allocno_reload_assign): Avoid accumulating
28017         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
28018
28019 2010-04-19  Martin Jambor  <mjambor@suse.cz>
28020
28021         * gimple.h (create_tmp_reg): Declare.
28022         * gimplify.c (create_tmp_reg): New function.
28023         (gimplify_return_expr): Use create_tmp_reg.
28024         (gimplify_omp_atomic): Likewise.
28025         (gimple_regimplify_operands): Likewise.
28026         * tree-dfa.c (make_rename_temp): Likewise.
28027         * tree-predcom.c (predcom_tmp_var): Likewise.
28028         (reassociate_to_the_same_stmt): Likewise.
28029         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
28030         (get_replaced_param_substitute): Likewise.
28031         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
28032         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
28033         * tree-ssa-pre.c (get_representative_for): Likewise.
28034         (create_expression_by_pieces): Likewise.
28035         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
28036         (create_tailcall_accumulator): Likewise.
28037
28038 2010-04-19  Martin Jambor  <mjambor@suse.cz>
28039
28040         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
28041         new_stmt.
28042         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
28043
28044 2010-04-19  Richard Guenther  <rguenther@suse.de>
28045
28046         PR tree-optimization/43796
28047         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
28048         from SCEV in the lattice.
28049         (vrp_visit_phi_node): Dump change.
28050
28051 2010-04-19  Richard Guenther  <rguenther@suse.de>
28052
28053         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
28054         * configure: Re-generated.
28055
28056 2010-04-19  Richard Guenther  <rguenther@suse.de>
28057
28058         PR tree-optimization/43783
28059         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
28060         constant ARRAY_REF operands two and three if possible.
28061
28062 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
28063
28064         PR target/43766
28065         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
28066
28067 2010-04-19  Jie Zhang  <jie@codesourcery.com>
28068
28069         PR target/43662
28070         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
28071
28072 2010-04-19  Ira Rosen  <irar@il.ibm.com>
28073
28074         PR tree-optimization/37027
28075         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
28076         and macro to access it.
28077         (vectorizable_reduction): Add argument.
28078         (vect_get_slp_defs): Likewise.
28079         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
28080         statements for possible use in SLP.
28081         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
28082         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
28083         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
28084         add new argument.
28085         (vectorizable_reduction): Likewise.
28086         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
28087         vect_get_slp_defs.
28088         (vectorizable_type_demotion, vectorizable_type_promotion,
28089         vectorizable_store): Likewise.
28090         (vect_analyze_stmt): Update call to vectorizable_reduction.
28091         (vect_transform_stmt): Likewise.
28092         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
28093         (vect_build_slp_tree): Fix indentation. Check that there are no loads
28094         from different interleaving chains in same node.
28095         (vect_slp_rearrange_stmts): New function.
28096         (vect_supported_load_permutation_p): Allow load permutations for
28097         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
28098         inside SLP nodes if necessary.
28099         (vect_analyze_slp_instance): Handle reductions.
28100         (vect_analyze_slp): Try to build SLP instances originating from groups
28101         of reductions.
28102         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
28103         (vect_get_constant_vectors): Create initial vectors for reductions
28104         according to reduction code. Add new argument.
28105         (vect_get_slp_defs): Add new argument, pass it to
28106         vect_get_constant_vectors.
28107         (vect_schedule_slp_instance): Remove SLP tree root statements.
28108
28109 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
28110
28111         * tree.h (ENUM_IS_SCOPED): Define.
28112         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
28113         for ENUM_IS_SCOPED enums.
28114
28115 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
28116
28117         * fold-const.c (fold_comparison): Use ssizetype.
28118         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
28119         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
28120         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
28121         * tree-object-size.c (compute_object_sizes): Use size_type_node.
28122
28123         * tree.h (initialize_sizetypes): Remove parameter.
28124         (build_common_tree_nodes): Remove second parameter.
28125         * stor-layout.c (initialize_sizetypes): Remove parameter.
28126         Always create an unsigned type.
28127         (set_sizetype): Assert that the passed type is unsigned and simplify.
28128         * tree.c (build_common_tree_nodes): Remove second parameter.
28129         Adjust call to initialize_sizetypes.
28130         * c-decl.c (c_init_decl_processing): Remove second argument in call to
28131         build_common_tree_nodes.
28132
28133 2010-04-18  Matthias Klose  <doko@ubuntu.com>
28134
28135         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
28136
28137 2010-04-18  Ira Rosen  <irar@il.ibm.com>
28138
28139         PR tree-optimization/43771
28140         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
28141         load permutation doesn't have gaps.
28142
28143 2010-04-18  Jan Hubicka  <jh@suse.cz>
28144
28145         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
28146         (sse_prologue_save_insn expander): Use new pattern.
28147         (sse_prologue_save_insn1): New pattern and splitter.
28148         (sse_prologue_save_insn): Update to deal also with 64bit aligned
28149         blocks.
28150         * i386.c (setup_incoming_varargs_64): Do not compute jump
28151         destination here.
28152         (ix86_gimplify_va_arg): Update alignment needed.
28153         (ix86_local_alignment): Do not align all local arrays to 128bit.
28154
28155 2010-04-17  Jan Hubicka  <jh@suse.cz>
28156
28157         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
28158
28159 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
28160
28161         * arm.md (negdi2): Remove redundant code to force values into a
28162         register.
28163
28164 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
28165
28166         * arm/bpabi.S: Add EABI alignment attributes to objects.
28167         * arm/bpabi-v6m.S: Likewise.
28168         * arm/crti.asm: Likewise.
28169         * arm/crtn.asm: Likewise.
28170         * arm/lib1funcs.asm: Likewise.
28171         * arm/libunwind.S: Likewise.
28172
28173 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
28174
28175         * arm-protos.h (tune_params): New structure.
28176         * arm.c (current_tune): New variable.
28177         (arm_constant_limit): Delete.
28178         (struct processors): Add pointer to the tune parameters.
28179         (arm_slowmul_tune): New tuning option.
28180         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
28181         (all_cores): Adjust to pick up the tuning model.
28182         (arm_constant_limit): New function.
28183         (arm_override_options): Select the appropriate tuning model.  Delete
28184         initialization of arm_const_limit.
28185         (arm_split_constant): Use the new constant-limit model.
28186         (arm_rtx_costs): Pick up the current tuning model.
28187         * arm.md (is_strongarm, is_xscale): Delete.
28188         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
28189         for Xscale variant architectures.
28190         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
28191
28192 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28193
28194         * config/arm/arm.c (arm_gen_constant): Remove unused variable
28195         can_shift.
28196         (arm_rtx_costs_1): Remove unused variable extra_cost.
28197         (arm_unwind_emit_set): Use variable offset.
28198         (thumb1_output_casesi): Remove unused variable flags.
28199
28200 2010-04-16  Jeff Law  <law@redhat.com>
28201
28202         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
28203         needing assignment rather than doing a two-phase assignment.  Remove
28204         unused variable 'm'.
28205
28206 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
28207
28208         PR bootstrap/43767
28209         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
28210
28211 2010-04-16  Doug Kwan  <dougkwan@google.com>
28212
28213         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
28214         (next_operand_entry_id): New static variable.
28215         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
28216         (add_to_ops_vec): Assigned unique ID to operand entry.
28217         (struct oecount_s): New field ID.
28218         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
28219         (undistribute_ops_list): Assign unique IDs to oecounts.
28220         (init_reassoc): reset next_operand_entry_id.
28221
28222 2010-04-16  Doug Kwan  <dougkwan@google.com>
28223
28224         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
28225         missing left parenthesis.
28226
28227 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
28228
28229         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
28230         *btdi_rex64 using SWI48 mode iterator.
28231         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
28232         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
28233         *jcc_btdi_mask_rex64.
28234
28235 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
28236
28237         * double-int.h (tree_to_double_int): Convert to macro.
28238         * double-int.c (tree_to_double_int): Remove.
28239
28240 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
28241
28242         PR debug/43762
28243         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
28244         with want_address 2 and in case a single element list might be
28245         possible, call it again with want_address 0.
28246
28247 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
28248
28249         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
28250         case 'W' print operands for HI mode.
28251         * config/h8300/h8300.h (Y0, Y2) : New constraints.
28252         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
28253         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
28254         * config/h8300/predicate.md (bit_register_indirect_operand): New.
28255
28256         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
28257
28258         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
28259         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
28260         #xx:3 and #xx:4 mode.
28261
28262         * config/h8300/h8300.md (inverted load with HImode dest): Add
28263         support for H8300SX.
28264
28265         * config/h8300/predicate.md (bit_operand): Allow immediate values that
28266         satisfy 'U' constraint.
28267
28268 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28269
28270         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
28271         * configure: Regenerate.
28272         * config.in: Regenerate.
28273         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
28274         works.
28275
28276 2010-04-16  Richard Guenther  <rguenther@suse.de>
28277
28278         * tree.h (struct tree_decl_minimal): Move pt_uid ...
28279         (struct tree_decl_common): ... here.
28280         (DECL_PT_UID): Adjust.
28281         (SET_DECL_PT_UID): Likewise.
28282         (DECL_PT_UID_SET_P): Likewise.
28283
28284 2010-04-16  Richard Guenther  <rguenther@suse.de>
28285
28286         PR tree-optimization/43572
28287         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
28288         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
28289         * tree-flow.h (is_call_clobbered): Remove.
28290         * tree-flow-inline.h (is_call_clobbered): Likewise.
28291         * tree-dfa.c (dump_variable): Do not dump call clobber state.
28292         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
28293         (execute_return_slot_opt): Adjust.
28294         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
28295         check for call clobbered vars here.
28296         (find_tail_calls): Move tailcall verification to the
28297         proper place.
28298
28299 2010-04-16  Diego Novillo  <dnovillo@google.com>
28300
28301         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
28302
28303 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
28304
28305         PR target/40603
28306         * config/arm/arm.md (cbranchqi4): New pattern.
28307         * config/arm/predicates.md (const0_operand,
28308         cbranchqi4_comparison_operator): New predicates.
28309
28310 2010-04-16  Richard Guenther  <rguenther@suse.de>
28311
28312         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
28313         (dump_gimple_stmt): Likewise.
28314
28315 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
28316
28317         * recog.h (struct recog_data): New field is_operator.
28318         (struct insn_operand_data): New field is_operator.
28319         * recog.c (extract_insn): Set recog_data.is_operator.
28320         * genoutput.c (output_operand_data): Emit code to set the
28321         is_operator field.
28322         * reload.c (find_reloads): Use it rather than testing for an
28323         empty constraint string.
28324
28325         PR target/41514
28326         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
28327         If the previous insn is a cbranchsi4_insn with the same arguments,
28328         omit the compare instruction.
28329
28330         * config/arm/arm.md (addsi3_cbranch): If destination is a high
28331         register, inputs must be low registers and we need a low register
28332         scratch.  Handle alternative 2 like alternative 3.
28333
28334 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
28335
28336         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
28337         don't call get_addr on both.  If one expression is a VALUE and
28338         the other a REG, check VALUE's locs if the REG isn't among them.
28339
28340 2010-04-16  Christian Bruel  <christian.bruel@st.com>
28341
28342         * config/sh/sh.h (sh_frame_pointer_required): New function.
28343         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
28344         (flag_omit_frame_pointer) Set.
28345         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
28346         (rounded_frame_size): Adjust size with outgoing_args_size.
28347         (sh_set_return_address): Must return from stack pointer.
28348         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
28349         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
28350         (ACCUMULATE_OUTGOING_ARGS): Define.
28351         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
28352         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
28353
28354 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
28355
28356         PR target/43471
28357         * config/sh/sh.c (sh_legitimize_reload_address): Use
28358         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
28359         Remove a unneeded check for offset_base.
28360
28361 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
28362
28363         * configure: Regenerated.
28364
28365 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28366
28367         * config/s390/s390.c (s390_call_save_register_used): Switch back
28368         to HARD_REGNO_NREGS.
28369
28370 2010-04-15  Richard Guenther  <rguenther@suse.de>
28371
28372         * alias.c (alias_set_subset_of): Handle alias-set zero
28373         child properly.
28374
28375 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
28376             Julian Brown  <julian@codesourcery.com>
28377
28378         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
28379         alternatives according to use of high and low regs.
28380         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
28381         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
28382         optimizing for size on Thumb-2.
28383
28384 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
28385
28386         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
28387
28388 2010-04-15  Richard Guenther  <rguenther@suse.de>
28389
28390         * tree-ssa-structalias.c (struct variable_info): Add
28391         is_fn_info flag.
28392         (new_var_info): Initialize it.
28393         (dump_constraints): Support printing last added constraints.
28394         (debug_constraints): Adjust.
28395         (dump_constraint_graph): Likewise.
28396         (make_heapvar_for): Check for NULL cfun.
28397         (get_function_part_constraint): New function.
28398         (get_fi_for_callee): Likewise.
28399         (find_func_aliases): Properly implement IPA PTA constraints.
28400         (process_ipa_clobber): New function.
28401         (find_func_clobbers): Likewise.
28402         (insert_into_field_list_sorted): Remove.
28403         (create_function_info_for): Properly allocate vars for IPA mode.
28404         Do not use insert_into_field_list_sorted.
28405         (create_variable_info_for): Properly generate constraints for
28406         global vars in IPA mode.
28407         (dump_solution_for_var): Always dump the solution.
28408         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
28409         (find_what_var_points_to): Adjust.
28410         (pt_solution_set): Change.
28411         (pt_solution_ior_into): New function.
28412         (pt_solution_empty_p): Export.
28413         (pt_solution_includes_global): Adjust.
28414         (pt_solution_includes_1): Likewise.
28415         (pt_solutions_intersect_1): Likewise.
28416         (dump_sa_points_to_info): Check some invariants.
28417         (solve_constraints): Move constraint dumping ...
28418         (compute_points_to_sets): ... here.
28419         (ipa_pta_execute): ... and here.
28420         (compute_may_aliases): Do not re-compute points-to info
28421         locally if IPA info is available.
28422         (ipa_escaped_pt): New global var.
28423         (ipa_pta_execute): Properly implement IPA PTA.
28424         * tree-into-ssa.c (dump_decl_set): Support dumping
28425         decls not in referenced-vars.
28426         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
28427         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
28428         (dump_points_to_solution): Likewise.
28429         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
28430         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
28431         (remap_gimple_stmt): Reset call clobber/use information if necessary.
28432         (copy_decl_to_var): Copy DECL_PT_UID.
28433         (copy_result_decl_to_var): Likewise.
28434         * tree.c (make_node_stat): Initialize DECL_PT_UID.
28435         (copy_node_stat): Copy it.
28436         * tree.h (DECL_PT_UID): New macro.
28437         (SET_DECL_PT_UID): Likewise.
28438         (DECL_PT_UID_SET_P): Likewise.
28439         (struct tree_decl_minimal): Add pt_uid member.
28440         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
28441         (pt_solution_empty_p): Declare.
28442         (pt_solution_set): Adjust.
28443         (ipa_escaped_pt): Declare.
28444         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
28445         * gimple-pretty-print.c (pp_points_to_solution): New function.
28446         (dump_gimple_call): Dump call clobber/use information.
28447         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
28448         * tree-pass.h (TDF_ALIAS): New dump option.
28449         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
28450         * doc/invoke.texi (-fipa-pta): Update documentation.
28451
28452 2010-04-15  Richard Guenther  <rguenther@suse.de>
28453
28454         * Makefile.in (OBJS-common): Add gimple-fold.o.
28455         (gimple-fold.o): New rule.
28456         * tree.h (maybe_fold_offset_to_reference,
28457         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
28458         prototypes ...
28459         * gimple.h: ... here.
28460         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
28461         may_propagate_address_into_dereference): Move prototypes ...
28462         * gimple.h: ... here.
28463         * tree-ssa-ccp.c (get_symbol_constant_value,
28464         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
28465         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
28466         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
28467         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
28468         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
28469         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
28470         gimplify_and_update_call_from_tree): Move ...
28471         * gimple-fold.c: ... here.  New file.
28472         (ccp_fold_builtin): Rename to ...
28473         (gimple_fold_builtin): ... this.
28474         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
28475
28476 2010-04-15  Richard Guenther  <rguenther@suse.de>
28477
28478         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
28479         fit_double_type, force_fit_type_double, add_double_with_sign,
28480         neg_double, mul_double_with_sign, lshift_double, rshift_double,
28481         lrotate_double, rrotate_double, div_and_round_double): Move ...
28482         * double-int.c: ... here.
28483         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
28484         add_double, neg_double, mul_double_with_sign, mul_double,
28485         lshift_double, rshift_double, lrotate_double, rrotate_double,
28486         div_and_round_double): Move prototypes ...
28487         * double-int.h: ... here.
28488
28489 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
28490
28491         PR target/43742
28492         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
28493         matching constraints to ensure inputs match the output.
28494
28495 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
28496
28497         PR target/43742
28498         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
28499         in an input-only operand.
28500
28501 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
28502
28503         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
28504         (double_int_not, double_int_lshift, double_int_rshift): Declare.
28505         (double_int_negative_p): Convert to static inline function.
28506         * double-int.c (double_int_lshift, double_int_lshift): New functions.
28507         (double_int_negative_p): Remove.
28508         * tree.h (lshift_double, rshift_double):
28509         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
28510         * fold-const.c (fold_convert_const_int_from_real,
28511         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
28512         (lshift_double): Change type of arith argument to bool.
28513         (rshift_double): Change type of arith argument to bool. Correct
28514         comment.
28515         * expmed.c (mask_rtx, lshift_value): (Ditto.).
28516
28517 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
28518
28519         PR target/21803
28520         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
28521         at the start and end of the then/else blocks, and omit them from the
28522         conversion.
28523         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
28524         argument; all callers changed.  Pass zero to old_insns_match_p instead.
28525         (flow_find_head_matching_sequence): New function.
28526         (old_insns_match_p): Check REG_EH_REGION notes for calls.
28527         * basic-block.h (flow_find_cross_jump,
28528         flow_find_head_matching_sequence): Declare functions.
28529
28530 2010-04-14  Jason Merrill  <jason@redhat.com>
28531
28532         PR c++/36625
28533         * c-common.c (attribute_takes_identifier_p): New fn.
28534         * c-common.h: Declare it.
28535
28536 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28537
28538         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
28539         splitter condition.
28540         (*udivmod<mode>4): Ditto.
28541
28542 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28543
28544         * config/i386/i386.md (maxmin_int): Rename code attribute from
28545         maxminiprefix and update all users.
28546         (maxmin_float): Ditto from maxminfprefix.
28547         (logic): Ditto from logicprefix.
28548         (absneg_mnemonic): Ditto from absnegprefix.
28549         * config/i386/mmx.md: Update all users of maxminiprefix,
28550         maxminfprefix and logicprefix for rename.
28551         * config/i386/sse.md: Ditto.
28552         * config/i386/sync.md (sync_<code><mode>): Update for
28553         logicprefix rename.
28554
28555 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28556
28557         PR 42966
28558         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
28559         warnings converted to errors.
28560
28561 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28562
28563         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
28564         used insn_type variable.
28565         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
28566         to avoid set-but-not-used warning.
28567
28568 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28569
28570         * df-core.c (df_ref_debug): Change format string placeholder
28571         from 0x%x to %#x.
28572         * dwarf2asm.c (dw2_asm_output_data_raw,
28573         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
28574         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
28575         * dwarf2out.c (output_cfi, output_cfi_directive,
28576         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
28577         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
28578         Ditto.
28579         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
28580         * print-rtl.c (print_rtx): Ditto.
28581
28582 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28583
28584         PR middle-end/42694
28585         * builtins.c (expand_builtin_pow_root): New function to expand pow
28586         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
28587         series of sqrt and cbrt calls under -ffast-math.
28588         (expand_builtin_pow): Call it.
28589
28590 2010-04-14  Michael Matz  <matz@suse.de>
28591
28592         PR tree-optimization/42963
28593         * tree-cfg.c (touched_switch_bbs): New static variable.
28594         (group_case_labels_stmt): New function broken out from ...
28595         (group_case_labels): ... here, use the above.
28596         (start_recording_case_labels): Allocate touched_switch_bbs.
28597         (end_recording_case_labels): Deallocate it, call
28598         group_case_labels_stmt.
28599         (gimple_redirect_edge_and_branch): Remember index of affected BB.
28600
28601 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28602
28603         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
28604         from insn template.
28605
28606 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28607
28608         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
28609
28610 2010-04-13  Jan Hubicka  <jh@suse.cz>
28611
28612         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
28613         of optimized out static functions.
28614         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
28615         cost computation.  Also sanity check for overflows.
28616         (update_caller_keys): Update cgraph_edge_badness call; properly
28617         update fibheap and sanity check that it is up to date.
28618         (add_new_edges_to_heap): Update cgraph_edge_badness.
28619         (cgraph_decide_inlining_of_small_function): Likewise;
28620         add sanity checking that badness in heap is up to date;
28621         improve dumping of reason; Update badness of calls to the
28622         offline copy of function currently inlined; dump badness
28623         of functions not inlined because of unit growth limits.
28624
28625 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
28626
28627         PR middle-end/32628
28628         * c-common.c (pointer_int_sum): Disregard overflow that occured only
28629         because of sign-extension change when converting to sizetype here...
28630         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
28631
28632         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
28633         the folding to constants.  Remove redundant final conversion.
28634         (fold_binary) <associate>: Do not associate if the re-association of
28635         constants alone overflows.
28636         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
28637         to the end of the list.
28638         (multiple_of_p) <COND_EXPR>: New case.
28639
28640 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28641
28642         * opt-functions.awk (opt_sanitized_name): New.
28643         (opt_enum): New.
28644         * optc-gen.awk: Use it
28645         * opth-gen.awk: Use it.
28646
28647 2010-04-13  Martin Jambor  <mjambor@suse.cz>
28648
28649         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
28650         (sra_modify_assign): Delete stmts loading dead data even if racc has no
28651         children.  Call replace_uses_with_default_def_ssa_name to handle
28652         SSA_NAES on lhs.
28653
28654 2010-04-13  Michael Matz  <matz@suse.de>
28655
28656         PR middle-end/43730
28657         * builtins.c (expand_builtin_interclass_mathfn): Also create
28658         a register if the predicate doesn't match.
28659
28660 2010-04-13  Diego Novillo  <dnovillo@google.com>
28661
28662         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
28663         * c-pch.c: Include timevar.h.
28664         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
28665         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
28666         * ggc-common.c: Include timevar.h.
28667         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
28668         * timevar.def (TV_PCH_SAVE): Define.
28669         (TV_PCH_CPP_SAVE): Define.
28670         (TV_PCH_PTR_REALLOC): Define.
28671         (TV_PCH_PTR_SORT): Define.
28672         (TV_PCH_RESTORE): Define.
28673         (TV_PCH_CPP_RESTORE): Define.
28674
28675 2010-04-13  Michael Matz  <matz@suse.de>
28676
28677         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
28678         into MINUS_EXPRs.
28679         (can_reassociate_p): New function.
28680         (break_up_subtract_bb, reassociate_bb): Use it.
28681
28682 2010-04-13  Richard Guenther  <rguenther@suse.de>
28683
28684         PR bootstrap/43737
28685         * builtins.c (c_readstr): Fix assert.
28686
28687 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
28688
28689         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
28690         when generating cltd insn.
28691
28692         (*ashl<mode>3_1): Remove special handling for register operand 2.
28693         (*ashlsi3_1_zext): Ditto.
28694         (*ashlhi3_1): Ditto.
28695         (*ashlhi3_1_lea): Ditto.
28696         (*ashlqi3_1): Ditto.
28697         (*ashlqi3_1_lea): Ditto.
28698         (*<shiftrt_insn><mode>3_1): Ditto.
28699         (*<shiftrt_insn>si3_1_zext): Ditto.
28700         (*<shiftrt_insn>qi3_1_slp): Ditto.
28701         (*<rotate_insn><mode>3_1): Ditto.
28702         (*<rotate_insn>si3_1_zext): Ditto.
28703         (*<rotate_insn>qi3_1_slp): Ditto.
28704
28705 2010-04-13  Richard Guenther  <rguenther@suse.de>
28706
28707         * tree-ssa-structalias.c (callused_id): Remove.
28708         (call_stmt_vars): New.
28709         (get_call_vi): Likewise.
28710         (lookup_call_use_vi): Likewise.
28711         (lookup_call_clobber_vi): Likewise.
28712         (get_call_use_vi): Likewise.
28713         (get_call_clobber_vi): Likewise.
28714         (make_transitive_closure_constraints): Likewise.
28715         (handle_const_call): Adjust to do per-call call-used handling.
28716         (handle_pure_call): Likewise.
28717         (find_what_var_points_to): Remove general callused handling.
28718         (init_base_vars): Likewise.
28719         (init_alias_vars): Initialize call_stmt_vars.
28720         (compute_points_to_sets): Process call-used and call-clobbered
28721         vars for call statements.
28722         (delete_points_to_sets): Free call_stmt_vars.
28723
28724 2010-04-13  Richard Guenther  <rguenther@suse.de>
28725
28726         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28727         Only add RW dependence for dependence distance zero.
28728         Adjust maximal vectorization factor according to dependences.
28729         Move alignment handling ...
28730         (vect_find_same_alignment_drs): ... here.  New function.
28731         (vect_analyze_data_ref_dependences): Adjust.
28732         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
28733         (vect_analyze_data_refs): Adjust minimal vectorization factor
28734         according to data references.
28735         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
28736         dependences before determining the vectorization factor.
28737         Analyze alignment after determining the vectorization factor.
28738         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
28739         dependences before alignment.
28740         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
28741         Adjust prototype.
28742         (vect_analyze_data_refs): Likewise.
28743         (MAX_VECTORIZATION_FACTOR): New define.
28744
28745 2010-04-13  Duncan Sands  <baldrick@free.fr>
28746
28747         * except.h (lang_eh_type_covers): Remove.
28748         * except.c (lang_eh_type_covers): Likewise.
28749
28750 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28751             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28752
28753         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
28754         * config/s390/s390.c: Replace UNTIS_PER_WORD with
28755         UNITS_PER_LONG where it is ABI relevant.
28756         (s390_return_addr_rtx): Likewise.
28757         (s390_back_chain_rtx): Likewise.
28758         (s390_frame_area): Likewise.
28759         (s390_frame_info): Likewise.
28760         (s390_initial_elimination_offset): Likewise.
28761         (save_gprs): Likewise.
28762         (s390_emit_prologue): Likewise.
28763         (s390_emit_epilogue): Likewise.
28764         (s390_function_arg_advance): Likewise.
28765         (s390_function_arg): Likewise.
28766         (s390_va_start): Likewise.
28767         (s390_gimplify_va_arg): Likewise.
28768         (s390_function_profiler): Likewise.
28769         (s390_optimize_prologue): Likewise.
28770         (s390_rtx_costs): Likewise.
28771         (s390_secondary_reload): Likewise.
28772         (s390_promote_function_mode): Likewise.
28773         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
28774         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
28775         registers available.
28776         (s390_unwind_word_mode): New function.
28777         (s390_function_value): Split 64 bit values into register pair if
28778         used as return value.
28779         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
28780         function call parameters.  Handle parallels.
28781         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
28782         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
28783         (DWARF_CIE_DATA_ALIGNMENT): New macro.
28784         (s390_expand_setmem): Remove unused variable src_addr.
28785         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
28786         deal with 64 bit registers.
28787         * config/s390/s390.h: Define __zarch__ predefined macro.
28788         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
28789         (UNITS_PER_LONG): New macro.
28790         * libjava/include/s390-signal.h: Define extended ucontext
28791         structure containing the upper halfs of the 64 bit registers.
28792
28793 2010-04-13  Simon Baldwin  <simonb@google.com>
28794
28795         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
28796
28797 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
28798
28799         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
28800         rvalue on the RHS if the LHS is of a non-renamable type.
28801         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
28802
28803 2010-04-13  Matthias Klose  <doko@ubuntu.com>
28804
28805         * gcc.c (cc1_options): Handle -iplugindir before processing
28806         the cc1 spec. Only add -iplugindir once.
28807         (cpp_unique_options): Add -iplugindir option if -fplugin* options
28808         found.
28809         * common.opt (iplugindir): Remove `Separate' property, initialize.
28810         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
28811         option.
28812         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
28813         (distclean): Remove plugin dir.
28814         * doc/invoke.texi: Document -iplugindir.
28815
28816 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
28817
28818         * doc/plugins.texi (Loading Plugins): Document short
28819         -fplugin=foo option.
28820         (Plugin API): Mention default_plugin_dir_name function.
28821
28822         * gcc.c (find_file_spec_function): Add new declaration.
28823         (static_spec_func): Use it for "find-file".
28824         (find_file_spec_function): Add new function.
28825         (cc1_options): Add -iplugindir option if -fplugin* options found.
28826
28827         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
28828
28829         * plugin.c (add_new_plugin): Updated comment, and handle short
28830         plugin name.
28831         (default_plugin_dir_name): Added new function.
28832
28833         * common.opt (iplugindir): New option to set the plugin directory.
28834
28835 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
28836
28837         * config/i386/i386.md (any_rotate): New code iterator.
28838         (rotate_insn): New code attribute.
28839         (rotate): Ditto.
28840         (SWIM124): New mode iterator.
28841         (<rotate_insn>ti3): New expander.
28842         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
28843         any_rotate code iterator.
28844         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
28845         using any_rotate code iterator and SWIM124 mode iterator.
28846         (ix86_rotlti3): New insn_and_split pattern.
28847         (ix86_rotrti3): Ditto.
28848         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
28849         ix86_rotl{di,ti}3 patterns.
28850         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
28851         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
28852         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
28853         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
28854         code iterator and SWI mode iterator.
28855         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
28856         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
28857         code iterator.
28858         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
28859         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
28860         (bswap rotatert splitter): Add splitter.
28861         (bswap splitter): Macroize splitter using any_rotate code iterator.
28862         Add insn predicate to split only for TARGET_USE_XCHGB or when
28863         optimizing function for size.
28864
28865 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
28866
28867         * config/pa/pa.c (emit_move_sequence): Remove use of
28868         deleted variable flag_argument_noalias.
28869
28870 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28871
28872         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
28873         configurations.
28874         Add to unsupported targets list.
28875         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
28876         sparc*-sun-solaris2.[567]* from target lists.
28877         * configure: Regenerate.
28878         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
28879         removal.
28880         Remove Solaris 7 patch references.
28881         (Specific, sparc-sun-solaris2.7): Removed.
28882         (sparc-sun-solaris2*): Update Solaris 7 example.
28883         (sparc64-*-solaris2*): Likewise.
28884
28885 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28886
28887         * config.build (alpha*-dec-osf4*): Remove.
28888         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
28889         of obsolete configurations.
28890         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
28891         support.
28892         * config/alpha/t-osf4: Renamed to ...
28893         * config/alpha/t-osf5: ... this.
28894         * config/alpha/osf.h: Renamed to ...
28895         * config/alpha/osf5.h: ... this.
28896         Merged old osf5.h contents.
28897         Update comments.
28898         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
28899         (EXTRA_SPECS): Removed.
28900         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
28901         reflect removal of Tru64 UNIX V4.0/V5.0 support.
28902         Document that.
28903
28904 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28905
28906         * doc/contrib.texi (Contributors, Rainer Orth): Update.
28907
28908 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
28909
28910         PR/43702
28911         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
28912         __thiscall convention.
28913
28914 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
28915
28916         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
28917         orig_base.
28918         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
28919
28920 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
28921
28922         * function.c (assign_parms_initialize_all): Add unused attribute
28923         to fntype.
28924
28925 2010-04-12  Richard Guenther  <rguenther@suse.de>
28926
28927         * gsstruct.def (GSS_CALL): New.
28928         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
28929         * gimple.h: Include tree-ssa-alias.h.
28930         (struct gimple_statement_call): New.
28931         (union gimple_statement_struct_d): Add gimple_call member.
28932         (gimple_call_reset_alias_info): Declare.
28933         (gimple_call_use_set): New function.
28934         (gimple_call_clobber_set): Likewise.
28935         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
28936         * gimple.c (gimple_call_reset_alias_info): New function.
28937         (gimple_build_call_1): Call it.
28938         * lto-streamer-in.c (input_gimple_stmt): Likewise.
28939         * tree-inline.c (remap_gimple_stmt): Likewise.
28940         (expand_call_inline): Remove callused handling.
28941         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
28942         * tree-dfa.c (dump_variable): Likewise.
28943         * tree-parloops.c (parallelize_loops): Likewise.
28944         * tree-ssa.c (init_tree_ssa): Likewise.
28945         (delete_tree_ssa): Likewise.
28946         * tree-flow-inline.h (is_call_used): Remove.
28947         * tree-flow.h (struct gimple_df): Remove callused member.
28948         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
28949         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
28950         (ref_maybe_used_by_call_p_1): Simplify.
28951         (call_may_clobber_ref_p_1): Likewise.
28952         * tree-ssa-structalias.c (compute_points_to_sets): Set
28953         the call stmt used and clobbered sets.
28954         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
28955         (find_tail_calls): Verify the tail call.
28956
28957 2010-04-12  Richard Guenther  <rguenther@suse.de>
28958
28959         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
28960         single-iteration always-inline inlining.
28961         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
28962         (cgraph_decide_inlining): Do not handle always-inline specially.
28963         (try_inline): Remove always-inline cycle detection special case.
28964         Do not recurse on always-inlines.
28965         (cgraph_early_inlining): Do not iterate if not optimizing.
28966         (cgraph_gate_early_inlining): remove.
28967         (pass_early_inline): Run unconditionally.
28968         (gate_cgraph_decide_inlining): New function.
28969         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
28970         not inlining or optimizing.
28971         (cgraph_decide_inlining_of_small_functions): Also consider
28972         always-inline functions.
28973         (cgraph_default_inline_p): Return true for nodes which should
28974         disregard inline limits.
28975         (estimate_function_body_sizes): Assume zero size and time for
28976         nodes which are marked as disregarding inline limits.
28977         (cgraph_decide_recursive_inlining): Do not perform recursive
28978         inlining on always-inline nodes.
28979
28980 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
28981
28982         PR bootstrap/43699
28983         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
28984         for exprs satisfying handled_component_p.
28985
28986 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
28987
28988         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
28989         non-constant aggregate elements.
28990
28991         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
28992         is a real initialization.
28993
28994 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
28995
28996         PR c/36774
28997         * c-decl.c (start_function): Move forward check for nested function.
28998
28999 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
29000
29001         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
29002         * config/sh/sh.c: Include reload.h.
29003         (sh_legitimize_reload_address): New.
29004         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
29005         sh_legitimize_reload_address.
29006
29007 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
29008
29009         * config/sh/sh.md (*movqi_pop): New insn pattern.
29010         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
29011
29012 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
29013
29014         * config/i386/i386.md (any_shiftrt): New code iterator.
29015         (shiftrt_insn): New code attribute.
29016         (shiftrt): Ditto.
29017         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
29018         using any_shiftrt code iterator.
29019         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
29020         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
29021         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
29022         pattern from corresponding peephole2 patterns.
29023         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
29024         using any_shiftrt code iterator.
29025         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
29026         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
29027         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
29028         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
29029         *{ashr,lshr}<mode>3_cmp_zext.
29030         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
29031
29032 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
29033
29034         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
29035         scratch register.
29036         (*lshr<mode>3_cconly): Ditto.
29037
29038 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
29039
29040         * config/i386/i386.md (lshr<mode>3): Macroize expander from
29041         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
29042         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
29043         pattern from *lshr{di,ti}3_1 and corresponding splitters using
29044         DWI mode iterator.
29045         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
29046         from corresponding peephole2 patterns.
29047         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
29048         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
29049         and *lshrdi3_1_rex64 using SWI mode iterator.
29050         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
29051         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
29052         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
29053         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
29054         and *lshrdi3_cmp_rex64 using SWI mode iterator.
29055         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
29056         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
29057         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
29058         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
29059         SWI mode iterator.
29060
29061 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
29062
29063         * config/i386/i386.md (ashr<mode>3): Macroize expander from
29064         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
29065         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
29066         pattern from *ashr{di,ti}3_1 and corresponding splitters using
29067         DWI mode iterator.
29068         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
29069         from corresponding peephole2 patterns.
29070         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
29071         (ashrsi3_cvt): Rename from ashrsi3_31.
29072         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
29073         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
29074         and x86_64_shift_adj_3 using SWI48 mode iterator.
29075         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
29076         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
29077         and *ashrdi3_1_rex64 using SWI mode iterator.
29078         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
29079         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
29080         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
29081         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
29082         and *ashrdi3_cmp_rex64 using SWI mode iterator.
29083         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
29084         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
29085         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
29086         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
29087         SWI mode iterator.
29088         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
29089         * config/i386/i386.c (ix86_split_ashr): Update for renamed
29090         x86_shift<mode>_adj_3 expanders.
29091
29092 2010-04-10  Wei Guozhi  <carrot@google.com>
29093
29094         PR target/42601
29095         * config/arm/arm.c (arm_pic_static_addr): New function.
29096         (legitimize_pic_address): Call arm_pic_static_addr when it detects
29097         a static symbol.
29098         (arm_output_addr_const_extra): Output expression for new pattern.
29099         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
29100
29101 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
29102
29103         * ira-costs.c (record_reg_classes): Ignore alternatives that are
29104         not enabled.
29105
29106         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
29107         * web.c: Include "insn-config.h" and "recog.h".
29108         (union_match_dups): New function.
29109         (web_main): Call it.
29110         (union_defs): Don't try to recognize match_dups.
29111
29112         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
29113         if doing so would replace the entire pattern.
29114
29115 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
29116
29117         PR target/43707
29118         PR target/43709
29119         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
29120         and splitter pattern.  Change splitter operand 1 predicate to
29121         nonmemory_operand.
29122
29123 2010-04-09  Martin Jambor  <mjambor@suse.cz>
29124
29125         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
29126         lattices are addresses of CONST_DECLs with the same initial value.
29127         (ipcp_print_all_lattices): Print values of CONST_DECLs.
29128         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
29129
29130 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
29131             Bernd Schmidt  <bernds@codesourcery.com>
29132
29133         * loop-invariant.c (replace_uses): New static function.
29134         (move_invariant_reg): Use it to ensure we can replace the uses.
29135
29136 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
29137
29138         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
29139         function template.
29140         (picochip_override_options): Enable section anchors only above -O1.
29141         (picochip_reorg): Fixed a couple of build warnings.
29142
29143 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29144
29145         * configure.ac (plugin -rdynamic test): Log result.
29146         * configure: Regenerate.
29147         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
29148         (RDYNAMIC_SPEC): Define.
29149         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
29150
29151 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29152
29153         * configure.ac: Determine Sun ld version numbers.
29154         (comdat_group): Restrict GNU ld version checks to gld.
29155         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
29156         (enable_comdat): Support --enable-comdat.
29157         * configure: Regenerate.
29158         * doc/install.texi (Configuration): Document --enable-comdat.
29159
29160 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29161
29162         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
29163         * config/sol2-gld.h: ... here.
29164         * config.gcc (sparc*-*-solaris2*): Reflect this.
29165         (i[34567]86-*-solaris2*): Use it.
29166
29167 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
29168
29169         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
29170         setup_clocks_p.
29171         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
29172
29173 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29174
29175         PR 42965
29176         * diagnostic.c (diagnostic_initialize): Initialize
29177         some_warnings_are_errors.
29178         (diagnostic_finish): New.
29179         (diagnostic_action_after_output): Call it before exiting.
29180         (diagnostic_report_diagnostic): Do not print message here. Set
29181         some_warnings_are_errors.
29182         * diagnostic.h (diagnostic_context): Delete
29183         issue_warnings_are_errors_message. Add some_warnings_are_errors.
29184         (diagnostic_finish): Declare.
29185         * toplev.c (toplev_main): Call it before exit.
29186
29187 2010-04-09  Jason Merrill  <jason@redhat.com>
29188
29189         PR c++/42623
29190         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
29191         for incomplete type.
29192
29193         PR c++/41788
29194         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
29195         based on a warning flag.
29196
29197 2010-04-09  Richard Guenther  <rguenther@suse.de>
29198
29199         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
29200
29201 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
29202
29203         PR bootstrap/43684
29204         * varasm.c (default_assemble_visibility): Wrap vars that are
29205         set, but unused, by targets without GAS.
29206         * config/rs6000/rs6000.c (paired_emit_vector_compare):
29207         Remove set, but unused, vars.
29208         (rs6000_legitimize_tls_address): Likewise.
29209         (altivec_expand_dst_builtin): Likewise.
29210         * config/darwin.c (machopic_classify_symbol): Likewise.
29211         (machopic_indirection_name): Likewise.
29212
29213 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
29214
29215         * config/i386/i386.md (DWI): New mode iterator.
29216         (S): New mode attribute.
29217         (shift_operand): Ditto.
29218         (shift_immediate_operand): Ditto.
29219         (ashl_input_operand): Ditto.
29220         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
29221         using SDWIM mode iterator.
29222         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
29223         pattern from *ashl{di,ti}3_1 and corresponding splitters using
29224         DWI mode iterator.
29225         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
29226         from corresponding peephole2 patterns.
29227         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
29228         and x86_64_shift_adj_1 using SWI48 mode iterator.
29229         (x86_shift<mode>_adj_2): Ditto.
29230         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
29231         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
29232         using SWI48 mode iterator.
29233         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
29234         *ashldi3_cmp_rex64 using SWI mode iterator.
29235         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
29236         *ashldi3_cconly_rex64 using SWI mode iterator.
29237         * config/i386/i386.c (ix86_split_ashl): Update for renamed
29238         x86_shift<mode>_adj_{1,2}.
29239         (ix86_split_ashr): Ditto.
29240         (ix86_split_lshr): Ditto.
29241
29242 2010-04-09  Richard Guenther  <rguenther@suse.de>
29243
29244         * target.h (builtin_conversion): Pass in input and output types.
29245         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
29246         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
29247         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
29248         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
29249
29250         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
29251         Handle AVX modes.
29252         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
29253
29254 2010-04-09  Richard Guenther  <rguenther@suse.de>
29255
29256         PR target/43152
29257         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
29258
29259 2010-04-09  Richard Guenther  <rguenther@suse.de>
29260
29261         * tree-vectorizer.h (struct _stmt_vec_info): Document
29262         that vectype is the type of the LHS.
29263         (supportable_widening_operation, supportable_narrowing_operation):
29264         Get both input and output vector types as arguments.
29265         (vect_is_simple_use_1): Declare.
29266         (get_same_sized_vectype): Likewise.
29267         * tree-vect-loop.c (vect_determine_vectorization_factor):
29268         Set STMT_VINFO_VECTYPE to the vector type of the def.
29269         (vectorizable_reduction): Adjust.
29270         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
29271         Adjust.  Specify the output vector type.
29272         (vect_pattern_recog_1): Adjust.
29273         * tree-vect-stmts.c (get_same_sized_vectype): New function.
29274         (vectorizable_call): Adjust.
29275         (vectorizable_conversion): Likewise.
29276         (vectorizable_operation): Likewise.
29277         (vectorizable_type_demotion): Likewise.
29278         (vectorizable_type_promotion): Likewise.
29279         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
29280         the def.
29281         (vect_is_simple_use_1): New function.
29282         (supportable_widening_operation): Get both input and output
29283         vector types.
29284         (supportable_narrowing_operation): Likewise.
29285         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
29286
29287 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
29288
29289         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
29290         __thiscall and _thiscall as predefined macros.
29291         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
29292         thiscall attribute handling.
29293         (ix86_comp_type_attributes): Likewise.
29294         (ix86_function_regparm): Likewise.
29295         (ix86_return_pops_args): Likewise.
29296         (init_cumulative_args): Likewise.
29297         (find_drap_reg): Likewise.
29298         (ix86_static_chain): Likewise.
29299         (x86_this_parameter): Likewise.
29300         (x86_output_mi_thunk): Likewise.
29301         (ix86_attribute_table): Add description for thiscall attribute.
29302         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
29303         * doc/extend.texi: Add documentation for thiscall.
29304
29305 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29306
29307         PR c++/28584
29308         * c.opt (Wint-to-pointer-cast): Available in C++.
29309         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
29310
29311 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
29312
29313         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
29314         * calls.c (expand_call): Pass the function type to aggregate_value_p.
29315         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
29316         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
29317         function type instead.  Reorder and simplify checks.
29318
29319         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
29320
29321 2010-04-08  Jing Yu  <jingyu@google.com>
29322             Zdenek Dvorak  <ook@ucw.cz>
29323
29324         PR tree-optimization/42720
29325         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
29326         loop unswitch conditions here from ...
29327         (tree_unswitch_single_loop): ... here.
29328
29329 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
29330
29331         * tree-if-conv.c: Fix comments and simplify logic.
29332
29333 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
29334
29335         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
29336         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
29337         (main_tree_if_conversion): Update call to tree_if_conversion.
29338
29339 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29340
29341         PR 42485
29342         * doc/invoke.texi (-b,-V): Delete.
29343         * doc/tm.texi: Do not mention -b.
29344         * gcc.c (display_help): Delete -b and -V.
29345         (process_command): Delete -b and -V.
29346         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
29347
29348 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
29349             Wolfgang Gellerich  <gellerich@de.ibm.com>
29350
29351         Implement target hook for loop unrolling
29352         * target.h (loop_unroll_adjust): Add a new target hook function.
29353         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
29354         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
29355         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
29356         (s390_loop_unroll_adjust): Implement the new target hook for s390.
29357         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
29358         target hook.
29359         (decide_unroll_stupid): Likewise.
29360
29361 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29362
29363         PR target/43643
29364         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
29365
29366 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29367
29368         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
29369         (Specific, *-*-solaris2*): Likewise.
29370         Don't prefer Sun as over GNU as.
29371
29372 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
29373
29374         * config/s390/s390.c (override_options): Adjust the z10 defaults
29375         for max-unroll-times, max-completely-peeled-insns
29376         and max-completely-peel-times.
29377
29378 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29379
29380         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
29381         instructions for z10.
29382         (s390_expand_setmem): Likewise.
29383         (s390_expand_cmpmem): Likewise.
29384
29385 2010-04-08  Richard Guenther  <rguenther@suse.de>
29386
29387         PR tree-optimization/43679
29388         * tree-ssa-pre.c (eliminate): Only propagate copies.
29389
29390 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
29391
29392         PR bootstrap/43681
29393         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
29394         set but not used variable warning.
29395
29396 2010-04-08  Wei Guozhi  <carrot@google.com>
29397
29398         PR target/41653
29399         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
29400         (arm_size_rtx_costs): Call the new function when optimized for size.
29401
29402 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
29403
29404         PR debug/43670
29405         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
29406         op0 is not a MEM, just return NULL instead of assertion
29407         failure.
29408         (discover_nonconstant_array_refs): Don't walk debug stmts.
29409
29410 2010-04-08  Doug Kwan  <dougkwan@google.com>
29411
29412         * configure.ac: Recognize gold and do not use its version number
29413         to test ld features.
29414         * configure: Regenerate.
29415
29416 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
29417
29418         PR middle-end/40815
29419         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
29420         (negate_value): Move code to push elements to broken_up_substracts ...
29421         (eliminate_plus_minus_pair): ... here.  Push operands that have no
29422         negative pair to plus_negates.
29423         (repropagate_negates, init_reassoc, fini_reassoc): Update.
29424
29425 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29426
29427         * doc/install.texi (Configuration): Move description of
29428         --enable-lto, --with-libelf*, --enable-gold from Java section to
29429         general section.
29430
29431         * doc/generic.texi (Working with declarations)
29432         (Function Properties, C and C++ Trees): Fix typos.
29433         * doc/sourcebuild.texi (Top Level): Likewise.
29434
29435 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
29436
29437         PR c/18624
29438         * tree.h (DECL_READ_P): Define.
29439         (struct tree_decl_common): Add decl_read_flag.
29440         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
29441         a set but not used warning.
29442         (merge_decls): Merge DECL_READ_P flag.
29443         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
29444         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
29445         * c-common.c (handle_used_attribute, handle_unused_attribute):
29446         Likewise.
29447         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
29448         New prototypes.
29449         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
29450         New functions.
29451         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
29452         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
29453         c_parser_binary_expression, c_parser_cast_expression,
29454         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
29455         Call default_function_array_read_conversion instead of
29456         default_function_array_conversion where needed.
29457         (c_parser_unary_expression, c_parser_conditional_expression,
29458         c_parser_postfix_expression_after_primary, c_parser_initelt):
29459         Likewise.  Call mark_exp_read where needed.
29460         (c_parser_statement_after_labels, c_parser_asm_operands,
29461         c_parser_typeof_specifier, c_parser_sizeof_expression,
29462         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
29463         where needed.
29464         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
29465         New.
29466         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
29467         (warn_unused_but_set_parameter): Default to warn_unused
29468         && extra_warnings.
29469         * doc/invoke.texi: Document -Wunused-but-set-variable and
29470         -Wunused-but-set-parameter.
29471
29472         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
29473         used count variable.
29474         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
29475         when operandN variables aren't used in the body of the expander
29476         or splitter.
29477         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
29478         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
29479         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
29480         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
29481         FOR_EACH_IMM_USE_ON_STMT): Likewise.
29482         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
29483         * tree.c (PROCESS_ARG): Likewise.
29484
29485 2010-04-07  Simon Baldwin  <simonb@google.com>
29486
29487         * diagnostic.h (diagnostic_override_option_index): New macro to
29488         set a diagnostic's option_index.
29489         * c-tree.h (c_cpp_error): Add warning reason argument.
29490         * opts.c (_warning_as_error_callback): New.
29491         (register_warning_as_error_callback): Store callback for
29492         warnings enabled via enable_warning_as_error.
29493         (enable_warning_as_error): Call callback, minor code tidy.
29494         * opts.h (register_warning_as_error_callback): Declare.
29495         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
29496         response to -Werror=.
29497         (c_common_init_options): Register warning_as_error_callback in opts.c.
29498         * common.opt: Add -Wno-cpp option.
29499         * c-common.c (struct reason_option_codes_t): Map cpp warning
29500         reason codes to gcc option indexes.
29501         * (c_option_controlling_cpp_error): New function, lookup the gcc
29502         option index for a cpp warning reason code.
29503         * (c_cpp_error): Add warning reason argument, call
29504         c_option_controlling_cpp_error for diagnostic_override_option_index.
29505         * doc/invoke.texi: Document -Wno-cpp.
29506
29507 2010-04-07  Richard Guenther  <rguenther@suse.de>
29508
29509         * ipa-reference.c (mark_load): Use get_base_address.
29510         (mark_store): Likewise.
29511
29512         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
29513         inserting GIMPLE_NOPs into the IL.
29514         * tree-ssa-structalias.c (get_constraint_for_component_ref):
29515         Explicitly strip handled components and indirect references.
29516
29517         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
29518         folding address expressions.
29519         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
29520         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
29521         operand_equal_p to compare decls.
29522         (ptr_deref_may_alias_decl_p): Likewise.
29523         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
29524         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
29525         Handle reversed comparison ops.
29526         * tree-sra.c (asm_visit_addr): Use get_base_address.
29527         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
29528         * ipa-reference.c (mark_address): Use get_base_address.
29529
29530 2010-04-07  Richard Guenther  <rguenther@suse.de>
29531
29532         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
29533         Propagate constants everywhere.
29534
29535 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
29536
29537         PR debug/43516
29538         * tree.c (MAX_INT_CACHED_PREC): Define.
29539         (nonstandard_integer_type_cache): New array.
29540         (build_nonstandard_integer_type): Cache results for precision
29541         <= MAX_INT_CACHED_PREC.
29542
29543 2010-04-07  Richard Guenther  <rguenther@suse.de>
29544
29545         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
29546         -fargument-noalias-global, -fargument-noalias-anything): Remove.
29547         * common.opt: Likewise.
29548         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
29549         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
29550         (nonoverlapping_memrefs_p): Likewise.
29551         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
29552         * opts.c (common_handle_option): Handle OPT_fargument_alias,
29553         OPT_fargument_noalias, OPT_fargument_noalias_anything and
29554         OPT_fargument_noalias_global for backward compatibility.
29555
29556 2010-04-07  Richard Guenther  <rguenther@suse.de>
29557
29558         PR tree-optimization/43270
29559         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
29560         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
29561         * tree-ssa-pre.c (phi_translate_1): Adjust.
29562         (fully_constant_expression): Split out vn_reference handling to ...
29563         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
29564         Fold reads from constant strings.
29565         (vn_reference_lookup): Handle fully constant references.
29566         (vn_reference_lookup_pieces): Likewise.
29567         * Makefile.in (expmed.o-warn): Add -Wno-error.
29568
29569 2010-04-07  Martin Jambor  <mjambor@suse.cz>
29570
29571         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
29572
29573 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
29574
29575         PR driver/41594
29576         * gcc.c: Add -static-libstdc++ to list of recognized options.
29577
29578 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29579
29580         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
29581
29582 2010-04-07  Richard Guenther  <rguenther@suse.de>
29583
29584         PR middle-end/42617
29585         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
29586         bases build simple mem attributes to retain points-to information.
29587
29588 2010-04-07  Richard Guenther  <rguenther@suse.de>
29589
29590         PR middle-end/42617
29591         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
29592         preserve points-to related information.
29593
29594 2010-04-07  Richard Guenther  <rguenther@suse.de>
29595
29596         PR middle-end/42617
29597         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
29598         discard plain indirect references.
29599         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
29600         * tree.c (tree_nop_conversion): Likewise.
29601
29602 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
29603
29604         PR debug/43628
29605         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
29606
29607 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
29608
29609         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
29610         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
29611
29612 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
29613
29614         * tree-if-conv.c: Fix indentation and comments.
29615
29616 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
29617
29618         * tree-if-conv.c: Sort static functions in topological order.
29619
29620 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
29621
29622         * tree-if-conv.c: Fix indentation and comments.
29623
29624 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29625
29626         PR middle-end/43519
29627         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
29628         lang_hooks.types.type_for_size instead of
29629         build_nonstandard_integer_type.
29630         When converting an unsigned type to signed, double its precision.
29631         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
29632         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
29633         (graphite_create_new_loop_guard): When ub + 1 wraps around,
29634         use lb <= ub.
29635
29636 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29637
29638         PR middle-end/43519
29639         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
29640         POINTER_PLUS_EXPR for pointer types.
29641
29642 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29643
29644         PR middle-end/43519
29645         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
29646         * graphite-clast-to-gimple.c: Include langhooks.h.
29647         (max_signed_precision_type): New.
29648         (max_precision_type): Takes two types as arguments.
29649         (precision_for_value): New.
29650         (precision_for_interval): New.
29651         (gcc_type_for_interval): New.
29652         (gcc_type_for_value): New.
29653         (gcc_type_for_clast_term): New.
29654         (gcc_type_for_clast_red): New.
29655         (gcc_type_for_clast_bin): New.
29656         (gcc_type_for_clast_expr): Split up into several functions.
29657         (gcc_type_for_clast_eq): Rewritten.
29658         (compute_bounds_for_level): New.
29659         (compute_type_for_level_1): New.
29660         (compute_type_for_level): New.
29661         (gcc_type_for_cloog_iv): Removed.
29662         (gcc_type_for_iv_of_clast_loop): Rewritten.
29663         (graphite_create_new_loop): Compute the lower and upper bound types
29664         with gcc_type_for_clast_expr.
29665         (graphite_create_new_loop_guard): Same.
29666         (find_cloog_iv_in_expr): Removed.
29667         (compute_cloog_iv_types_1): Removed.
29668         (compute_cloog_iv_types): Removed.
29669         (gloog): Do not call compute_cloog_iv_types.
29670         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
29671         GBB_CLOOG_IV_TYPES.
29672         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
29673         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
29674         (GBB_CLOOG_IV_TYPES): Removed.
29675
29676 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29677
29678         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
29679         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
29680         (detect_commutative_reduction): Same.
29681
29682 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29683
29684         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
29685         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
29686         argument.
29687         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
29688         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
29689         (rewrite_commutative_reductions_out_of_ssa): Same.
29690         * passes.c (execute_function_todo): Call verify_ssa for every pass
29691         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
29692         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
29693         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
29694         with an extra argument.
29695         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
29696         verify_ssa only when the extra argument is true.
29697         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
29698         with an extra argument.
29699         (tree_transform_and_unroll_loop): Same.
29700
29701 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29702
29703         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
29704         for all the passes of the LNO having LOOP_CLOSED_SSA.
29705         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
29706         * tree-loop-distribution.c (pass_loop_distribution): Same.
29707         * tree-pass.h (TODO_verify_loops): Removed.
29708         * tree-ssa-loop.c (pass_tree_loop_init): Same.
29709         (pass_lim): Same.
29710         (pass_tree_unswitch): Same.
29711         (pass_predcom): Same.
29712         (pass_vectorize): Same.
29713         (pass_linear_transform): Same.
29714         (pass_graphite_transforms): Same.
29715         (pass_iv_canon): Same.
29716         (pass_complete_unroll): Same.
29717         (pass_complete_unrolli): Same.
29718         (pass_parallelize_loops): Same.
29719         (pass_loop_prefetch): Same.
29720         (pass_iv_optimize): Same.
29721
29722 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
29723
29724         PR middle-end/32824
29725         * passes.c (init_optimization_passes): Move pass_lim before
29726         pass_copy_prop and pass_dce_loop.
29727
29728 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
29729
29730         PR target/43667
29731         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
29732         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
29733         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
29734         MULTI_* defines for 4 argument vpermil2p* builtins.
29735
29736 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
29737
29738         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
29739         * config/i386/i386.c (x86_maybe_negate_const_int): New.
29740         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
29741         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
29742         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
29743         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
29744         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
29745         Use x86_maybe_negate_const_int to output insn mnemonic.
29746         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
29747         check from instruction predicate.  Update comments.
29748         * config/i386/sync.md (sync_add<mode>): Use
29749         x86_maybe_negate_const_int to output insn mnemonic.
29750
29751 2010-04-06  Jan Hubicka  <jh@suse.cz>
29752
29753         PR tree-optimization/42906
29754         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
29755         IGNORE_SELF argument.  Set visited_control_parents for fully
29756         processed BBs.
29757         (find_obviously_necessary_stmts): Update call of
29758         mark_control_dependent_edges_necessary.
29759         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
29760
29761 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
29762
29763         * config/i386/i386.md: Remove comment about 'e' and 'E'
29764         operand modifier.
29765
29766 2010-04-06  Richard Guenther  <rguenther@suse.de>
29767
29768         PR tree-optimization/43627
29769         * tree-vrp.c (extract_range_from_unary_expr): Widenings
29770         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
29771         not varying.
29772
29773 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
29774
29775         * BASE-VER: Change to 4.6.0.
29776
29777         PR target/43638
29778         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
29779         handling.
29780
29781 2010-04-06  Richard Guenther  <rguenther@suse.de>
29782
29783         PR middle-end/43661
29784         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
29785
29786 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29787
29788         * doc/invoke.texi (Optimize Options): Document that LTO
29789         won't remove object access purely due to incompatible
29790         declarations.
29791
29792 2010-04-04  Matthias Klose  <doko@ubuntu.com>
29793
29794         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
29795         Initialize variable.
29796
29797 2010-04-03  Richard Guenther  <rguenther@suse.de>
29798
29799         PR middle-end/42509
29800         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
29801         require a non-NULL MEM_OFFSET.
29802
29803 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
29804
29805         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
29806         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
29807         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
29808         config/alpha/predicates.md, config/arm/arm.md,
29809         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
29810         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
29811         config/darwin9.h, config/darwin.c, config/darwin.h,
29812         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
29813         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
29814         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
29815         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
29816         config/mips/mips.md, config/mn10300/mn10300.c,
29817         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
29818         config/rs6000/aix.h, config/rs6000/dfp.md,
29819         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
29820         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
29821         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
29822         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
29823         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
29824         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
29825         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
29826         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
29827         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
29828         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
29829         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
29830         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
29831         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
29832         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
29833         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
29834         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
29835         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
29836         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
29837         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
29838         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
29839         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
29840         opt-functions.awk, opth-gen.awk, params.def, passes.c,
29841         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
29842         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
29843         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
29844         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
29845         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
29846         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
29847         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
29848         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
29849         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
29850         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
29851         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
29852         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
29853         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
29854         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
29855
29856 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29857
29858         PR other/43620
29859         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
29860         * aclocal.m4: Regenerate.
29861
29862 2010-04-02  Richard Guenther  <rguenther@suse.de>
29863
29864         PR tree-optimization/43629
29865         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
29866         if we have seen a constant value.
29867
29868 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
29869
29870         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
29871
29872 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
29873
29874         PR target/43469
29875         * arm.c (legitimize_tls_address): Adjust call to
29876         gen_tls_load_dot_plus_four.
29877         (arm_note_pic_base): New function.
29878         (arm_cannot_copy_insn_p): Use it.
29879         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
29880         constraint.
29881
29882 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29883
29884         PR bootstrap/43531
29885
29886         Revert:
29887         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29888
29889         * Makefile.in ($(out_object_file)): Depend on
29890         gt-$(basename $(notdir $(out_file))).h.
29891
29892 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
29893
29894         * config.gcc (lm32-*-rtems*): Add t-lm32.
29895
29896 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
29897
29898         * config.gcc: Add lm32-*-rtems*.
29899         * config/lm32/rtems.h: New file.
29900
29901 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
29902
29903         PR target/42609
29904         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
29905
29906 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
29907
29908         * dwarf2out.c (output_compilation_unit_header): For
29909         -gdwarf-4 use version 4 instead of version 3.
29910         (output_line_info): For version 4 and above emit additional
29911         maximum ops per insn header field.
29912         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
29913
29914         * dwarf2out.c (is_c_family, is_java): Remove.
29915         (lower_bound_default): New function.
29916         (add_bound_info, gen_descr_array_type_die): Use it.
29917
29918 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
29919
29920         PR debug/43325
29921         * dwarf2out.c (gen_variable_die): Allow debug info for variable
29922         re-declaration when it happens in a function.
29923
29924 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
29925
29926         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
29927         (cgraph_remove_function_insertion_hook): Same.
29928         (cgraph_call_function_insertion_hooks): Same.
29929
29930 2010-04-01  Richard Guenther  <rguenther@suse.de>
29931
29932         PR middle-end/43614
29933         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
29934         and TREE_THIS_VOLATILE.
29935         (copy_ref_info): Likewise.
29936         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
29937         * tree.c (build6_stat): Ignore side-effects of all but arg5
29938         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
29939         TARGET_MEM_REF.
29940
29941 2010-04-01  Richard Guenther  <rguenther@suse.de>
29942
29943         PR tree-optimization/43607
29944         * ipa-type-escape.c (check_call): Do not access non-existing
29945         arguments.
29946
29947 2010-04-01  Richard Guenther  <rguenther@suse.de>
29948
29949         PR middle-end/43602
29950         Revert
29951         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
29952                     Jack Howarth  <howarth@bromo.med.uc.edu>
29953
29954         * tree-profile.c (tree_init_ic_make_global_vars): Make static
29955         variables TLS.
29956
29957 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29958
29959         * doc/install.texi (Prerequisites): Document libelf usability on
29960         IRIX 5/6 and Solaris 2.
29961         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
29962         Update GNU as, GNU ld requirements.
29963         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
29964         Document Sun Studio compiler download.
29965         Update and simplify as, ld recommendations.
29966         (Specific, *-*-solaris2.7): Note obsoletion, removal.
29967
29968 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29969
29970         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
29971         with_tune_32 to pentium4.
29972
29973 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
29974
29975         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
29976
29977 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29978
29979         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
29980         obsoletion, removal.
29981         Update IDO URL.
29982         Document GNU as requirement.
29983         Update configure requirements.
29984         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
29985         Recomment IRIX 6.5.18+.
29986         Document IDF/IDL requirement.
29987         Document GNU as requirement.
29988         Document GNU ld bootstrap failure.
29989         Remove freeware.sgi.com reference.
29990
29991 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29992
29993         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
29994         UNIX V4.0, V5.0 obsoletion, removal.
29995         Remove --with-gc=simple reference.
29996         Update VM requirements during bootstrap.
29997         Remove -oldas bootstrap description.
29998         Update binutils reference.
29999         Remove comparison failure note.
30000
30001 2010-03-31  Richard Guenther  <rguenther@suse.de>
30002             Zdenek Dvorak  <ook@ucw.cz>
30003             Sebastian Pop  <sebastian.pop@amd.com>
30004
30005         PR middle-end/43464
30006         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
30007         with multiple arguments.
30008         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
30009
30010 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
30011
30012         * graphite-dependences.c (print_pddr): Call print_pdr with an
30013         extra argument.
30014         * graphite-poly.c (debug_pdr): Add an extra argument for the
30015         verbosity level.
30016         (print_pdr): Same.
30017         (print_pbb_domain): Same.
30018         (print_pbb): Same.
30019         (print_scop_context): Same.
30020         (print_scop): Same.
30021         (print_cloog): Same.
30022         (debug_pbb_domain): Same.
30023         (debug_pbb): Same.
30024         (print_pdrs): Same.
30025         (debug_pdrs): Same.
30026         (debug_scop_context): Same.
30027         (debug_scop): Same.
30028         (debug_cloog): Same.
30029         (print_scop_params): Same.
30030         (debug_scop_params): Same.
30031         (print_iteration_domain): Same.
30032         (print_iteration_domains): Same.
30033         (debug_iteration_domain): Same.
30034         (debug_iteration_domains): Same.
30035         (print_scattering_function): Same.
30036         (print_scattering_functions): Same.
30037         (debug_scattering_function): Same.
30038         (debug_scattering_functions): Same.
30039         * graphite-poly.h (debug_pdr): Update declaration.
30040         (print_pdr): Same.
30041         (print_pbb_domain): Same.
30042         (print_pbb): Same.
30043         (print_scop_context): Same.
30044         (print_scop): Same.
30045         (print_cloog): Same.
30046         (debug_pbb_domain): Same.
30047         (debug_pbb): Same.
30048         (print_pdrs): Same.
30049         (debug_pdrs): Same.
30050         (debug_scop_context): Same.
30051         (debug_scop): Same.
30052         (debug_cloog): Same.
30053         (print_scop_params): Same.
30054         (debug_scop_params): Same.
30055         (print_iteration_domain): Same.
30056         (print_iteration_domains): Same.
30057         (debug_iteration_domain): Same.
30058         (debug_iteration_domains): Same.
30059         (print_scattering_function): Same.
30060         (print_scattering_functions): Same.
30061         (debug_scattering_function): Same.
30062         (debug_scattering_functions): Same.
30063
30064 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
30065
30066         * graphite-poly.c (print_scattering_function_1): New.
30067         (print_scattering_function): Call it.
30068         (print_scop_params): Remove spaces at the end of lines.
30069         (print_cloog): New.
30070         (debug_cloog): New.
30071         * graphite-poly.h (print_cloog): Declared.
30072         (debug_cloog): Declared.
30073
30074 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
30075
30076         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
30077         in loop->header.
30078         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
30079         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
30080         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
30081         to switch between adding the IV bump in loop->latch or in loop->header.
30082
30083 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
30084
30085         * graphite-poly.c (print_scattering_function): Pretty print following
30086         the scoplib format.
30087         (print_pdr): Same.
30088         (print_pbb_domain): Same.
30089         (dump_gbb_cases): Same.
30090         (dump_gbb_conditions): Same.
30091         (print_pdrs): Same.
30092         (print_pbb): Same.
30093         (print_scop_params): Same.
30094         (print_scop_context): Same.
30095         (print_scop): Same.
30096         (print_pbb_body): New.
30097         (lst_indent_to): New.
30098         (print_lst): Start new lines with a #.
30099         * graphite-poly.h (pbb_bb): New.
30100         (pbb_index): Use pbb_bb.
30101         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
30102         disjuncts.
30103         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
30104
30105 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
30106
30107         * dwarf2out.c (size_of_die): For -gdwarf-4 use
30108         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
30109         and 0 instead of 1 for dw_val_class_flag.
30110         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
30111         dw_val_class_range_list, dw_val_class_loc_list,
30112         dw_val_class_lineptr and dw_val_class_macptr, use
30113         DW_FORM_flag_present for dw_val_class_flag and
30114         DW_FORM_exprloc for dw_val_class_loc.
30115         (output_die): For -gdwarf-4 print dw_val_class_loc
30116         size as uleb128 instead of 1 or 2 bytes and don't print
30117         anything for dw_val_class_flag.
30118
30119         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
30120         instead of cselib_lookup following by tweaking locs->setting_insn.
30121
30122         PR bootstrap/43596
30123         * cselib.c (cselib_process_insn): Clear cselib_current_insn
30124         even before returning from label, setjmp call or volatile asm
30125         handling.
30126
30127 2010-03-31  Richard Guenther  <rguenther@suse.de>
30128
30129         PR middle-end/43600
30130         * cgraphunit.c (cgraph_output_in_order): Do not allocate
30131         temporary data on stack.
30132
30133 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30134
30135         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
30136         (PUSHSECTION_ASM_OP): Remove.
30137         (POPSECTION_ASM_OP): Remove.
30138         (PUSHSECTION_FORMAT): Remove.
30139         * config/sol2.h (PUSHSECTION_FORMAT): Define.
30140         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
30141         * config/sol2.c (solaris_output_init_fini): Use it.
30142
30143 2010-03-31  Jie Zhang  <jie@codesourcery.com>
30144
30145         PR 43574
30146         * opt-functions.awk (var_type_struct): Use signed char type
30147         for simple variables.
30148
30149 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30150
30151         * config/sol2.c: Include output.h.
30152         (solaris_assemble_visibility): New function.
30153         * config/t-sol2 (sol2.o): Add output.h dependency.
30154         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
30155         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
30156         Redefine.
30157
30158 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
30159
30160         PR target/43580
30161         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
30162         V2SImode or XFmode on PRE_DEC.
30163
30164         PR debug/43557
30165         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
30166         BLKmode.
30167
30168 2010-03-31  Jie Zhang  <jie@codesourcery.com>
30169
30170         PR 43562
30171         * reload.h (caller_save_initialized_p): Declare.
30172         * toplev.c (backend_init_target): Don't call
30173         init_caller_save but set caller_save_initialized_p to false.
30174         * caller-save.c (caller_save_initialized_p): Define.
30175         (init_caller_save): Check caller_save_initialized_p.
30176         * ira.c (ira): Call init_caller_save if flag_caller_saves.
30177
30178 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30179
30180         PR target/39048
30181         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
30182         and soft-fp/t-softfp to tmake_file.
30183         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
30184         (LIBGCC2_TF_CEXT): Define.
30185         (TF_SIZE): Define.
30186
30187 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
30188
30189         PR debug/42977
30190         * cselib.c (n_useless_values): Document handling of debug locs.
30191         (n_useless_debug_values, n_debug_values): New variables.
30192         (new_elt_loc_list): Don't add to debug values, keep count.
30193         (promote_debug_loc): New.
30194         (cselib_reset_table): Zero new variables.
30195         (entry_and_rtx_equal_p): Promote debug locs.
30196         (discard_useless_locs): Increment n_useless_debug_values for
30197         debug values.
30198         (remove_useless_values): Adjust n_useless_values and n_debug_values
30199         with n_useless_debug_values.
30200         (add_mem_for_addr): Promote debug locs.
30201         (cselib_lookup_mem): Likewise.
30202         (cselib_lookup_addr): Renamed to...
30203         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
30204         (cselib_log_lookup): ... this.  Turn into...
30205         (cselib_lookup_addr): ... new wrapper.
30206         (cselib_lookup_from_insn): New.
30207         (cselib_invalidate_regno): Increment n_useless_debug_values for
30208         debug values.
30209         (cselib_invalidate_mem): Likewise.
30210         (cselib_process_insn): Take n_deleted and n_debug_values into
30211         account to guard remove_useless_value call.
30212         (cselib_finish): Zero n_useless_debug_values.
30213         * cselib.h (cselib_lookup_from_insn): Declare.
30214         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
30215         (sched_analyze_2): Likewise.
30216
30217 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
30218
30219         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
30220         functions.
30221         (adjust_mems): Replace narrowing SUBREG of expression containing
30222         just PLUS, MINUS, MULT and ASHIFT of registers and constants
30223         with operations in the narrower mode.
30224
30225         PR debug/43593
30226         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
30227         regs_invalidated_by_call instead all call_used_reg_set registers.
30228
30229 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
30230
30231         PR middle-end/43430
30232         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
30233         pointer comparisons with types_compatible_p.
30234         * tree-vect-stmts.c (vectorizable_call): Same.
30235         (vectorizable_condition): Same.
30236
30237 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30238
30239         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
30240         stack check if the mask would be zero.
30241
30242 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
30243             Jack Howarth  <howarth@bromo.med.uc.edu>
30244
30245         * tree-profile.c (tree_init_ic_make_global_vars): Make static
30246         variables TLS.
30247
30248 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
30249
30250         PR other/25232
30251         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
30252         and __unordtf2.
30253         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
30254         Include ___unordxf2 and ___unordtf2.
30255         * config/i386/libgcc-glibc.ver: Do not define inheritance from
30256         GCC_4.4.0 here.
30257
30258 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
30259
30260         * config/lm32/t-lm32: New file.
30261         * config.gcc: Use the above file when targetting lm32.
30262
30263 2010-03-28  Duncan Sands  <baldrick@free.fr>
30264
30265         * Makefile.in (PLUGIN_HEADERS): Add except.h.
30266
30267 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
30268
30269         PR middle-end/43431
30270         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
30271         Improve vectorization cost model diagnostic.
30272
30273 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
30274
30275         PR middle-end/43436
30276         * tree-vect-data-refs.c (vect_analyze_data_refs): When
30277         compute_data_dependences_for_loop returns false, early exit
30278         and output an extra diagnostic for the failed data reference
30279         analysis.
30280
30281 2010-03-29  Richard Guenther  <rguenther@suse.de>
30282
30283         PR tree-optimization/43560
30284         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
30285         (can_sm_ref_p): Treat stores to readonly locations as trapping.
30286
30287 2010-03-29  Jie Zhang  <jie@codesourcery.com>
30288
30289         PR 43564
30290         * toplev.c (process_options): Set optimization_default_node
30291         and optimization_current_node.
30292         * opts.c (decode_options): Don't set optimization_default_node
30293         and optimization_current_node.
30294
30295 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
30296
30297         * config/rtems.h: Abandon -qrtems_debug.
30298
30299 2010-03-28  Jan Hubicka  <jh@suse.cz>
30300
30301         PR tree-optimization/43505
30302         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
30303         map should not be copied.
30304
30305 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30306
30307         PR middle-end/41674
30308         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
30309         cdtors, set DECL_PRESERVE_P.
30310         * ipa.c (cgraph_externally_visible_p): Return true if declaration
30311         should be preseved.
30312
30313 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
30314
30315         PR tree-optimization/43528
30316         * stor-layout.c (place_field): Check that constant fits into
30317         unsigned HWI when skipping calculation of MS bitfield layout.
30318
30319 2010-03-27  Jan Hubicka  <jh@suse.cz>
30320
30321         PR middle-end/43391
30322         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
30323         notice_global_symbol work.
30324
30325 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
30326
30327         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
30328         instead of dwarf2out_decl.
30329         (struct var_loc_node): Remove section_label field.
30330         (dwarf2out_function_decl): New function.
30331         (dwarf2out_var_location): Don't set section_label field.
30332         (dwarf2out_begin_function): Don't empty decl_loc_table here.
30333
30334 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
30335
30336         PR tree-optimization/43544
30337         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
30338         First argument for builtin vectorized function hook is now a
30339         tree to be able to distinguish between machine specific and
30340         standard builtins.
30341         * targhooks.c (default_builtin_vectorized_function): Ditto.
30342         * targhooks.h (default_builtin_vectorized_function): Ditto.
30343         * target.h (struct gcc_target): Ditto.
30344         * tree-vect-stmts.c (vectorizable_function): Ditto.
30345         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
30346         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
30347         Ditto.
30348
30349 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
30350
30351         PR c/43381
30352         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
30353         nested binding iff it is a FUNCTION_DECL.
30354         (store_parm_decls_newstyle): Pass nested=true to bind for
30355         FUNCTION_DECLs amongst parameters.
30356
30357 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
30358
30359         * var-tracking.c (vt_expand_loc_callback): Don't run
30360         cselib_expand_value_rtx_cb in dummy mode if
30361         cselib_dummy_expand_value_rtx_cb returned false.
30362
30363         * var-tracking.c (emit_note_insn_var_location): For one part
30364         notes with offset 0, don't add EXPR_LIST around the location.
30365         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
30366         add_location_or_const_value_attribute): Adjust for that change.
30367
30368         PR debug/43540
30369         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
30370         into first operand and location into second.
30371         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
30372         dw_cfi_oprnd_loc for DW_CFA_expression.
30373         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
30374         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
30375         assume first argument is regnum and second argument is location.
30376
30377 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
30378
30379         PR target/42113
30380         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
30381         of scratch register to DImode.  Split to DImode comparison operator.
30382         Use SImode subreg of scratch register in the multiplication.
30383         (*cmp_sadd_sidi): Ditto.
30384         (*cmp_ssub_si): Ditto.
30385         (*cmp_ssub_sidi): Ditto.
30386
30387 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
30388
30389         PR target/43524
30390         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
30391         Remove invalid assert and wrong comment.
30392
30393 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
30394
30395         PR debug/43516
30396         * flags.h (final_insns_dump_p): New extern.
30397         * final.c (final_insns_dump_p): New variable.
30398         (rest_of_clean_state): Set it before -fdump-final-insns=
30399         dumping, clear afterwards.
30400         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
30401         MEM_ALIAS_SET on MEMs.
30402
30403 2010-03-26  David S. Miller  <davem@davemloft.net>
30404
30405         * configure.ac: Fix sparc GOTDATA_OP bug check.
30406         * configure: Rebuild.
30407
30408 2010-03-26  Alan Modra  <amodra@gmail.com>
30409
30410         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
30411
30412 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30413
30414         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
30415         TLS_SECTION_ASM_FLAG.
30416
30417 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
30418
30419         PR bootstrap/43511
30420         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
30421         Clear first_function_block_is_cold.
30422
30423         PR c/43385
30424         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
30425         argument if the argument is truth_value_p.
30426
30427 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30428
30429         * config/rs6000/constraints.md: Update copyright year for my changes.
30430
30431         PR target/43484
30432         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
30433         used in reg+reg addressing, swap registers.
30434
30435 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
30436
30437         PR debug/43293
30438         * target.h (struct gcc_target): Add code_end hook.
30439         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
30440         if not yet defined.
30441         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
30442         * toplev.c (compile_file): Call targetm.asm_out.code_end
30443         hook before unwind info/debug info output.
30444         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
30445         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
30446         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
30447         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
30448         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
30449         * config/i386/i386.c (ix86_file_end): Renamed to...
30450         (ix86_code_end): ... this.  Make static.  Don't call
30451         file_end_indicate_exec_stack.  Emit unwind info using
30452         final_start_function/final_end_function.
30453         (darwin_x86_file_end): Remove.
30454         (TARGET_ASM_CODE_END): Define.
30455         * config/i386/i386.h (TARGET_ASM_FILE_END,
30456         NEED_INDICATE_EXEC_STACK): Don't define.
30457         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
30458         (TARGET_ASM_FILE_END): Define to darwin_file_end.
30459         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
30460         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
30461
30462         PR target/43498
30463         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
30464         at the beginning and final_end_function at the end.
30465         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
30466
30467 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30468
30469         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
30470         and Sun as TLS syntax.
30471         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
30472         * configure: Regenerate.
30473         * config.in: Regenerate.
30474         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
30475         (default_elf_asm_named_section): Use it.
30476         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
30477         (i386_output_dwarf_dtprel): Likewise.
30478         (output_addr_const_extra): Likewise.
30479         (output_pic_addr_const): Lowercase @GOTTPOFF.
30480         (output_addr_const_extra): Likewise.
30481         (output_pic_addr_const): Lowercase @GOTNTPOFF.
30482         (output_addr_const_extra): Likewise.
30483         (output_pic_addr_const): Lowercase @INDNTPOFF.
30484         (output_addr_const_extra): Likewise.
30485         (output_pic_addr_const): Lowercase @NTPOFF.
30486         (output_addr_const_extra): Likewise.
30487         (output_pic_addr_const): Lowercase @TPOFF.
30488         (output_addr_const_extra): Likewise.
30489         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
30490         (*tls_global_dynamic_64): Likewise.
30491         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
30492         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
30493
30494         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
30495         (ASM_OUTPUT_TLS_COMMON): Use it.
30496         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
30497
30498         PR target/38118
30499         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
30500         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
30501         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
30502         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
30503         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30504         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
30505
30506 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30507
30508         * config/i386/i386.c (override_options): Don't accept
30509         -mtls-dialect=sun any longer.
30510         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
30511         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
30512         (*tls_local_dynamic_base_32_sun): Likewise.
30513         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30514
30515 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
30516
30517         PR debug/43508
30518         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30519         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
30520
30521         PR debug/43479
30522         * ira.c (adjust_cleared_regs): New function.
30523         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
30524
30525         PR debug/19192
30526         PR debug/43479
30527         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
30528         from gimple_block.
30529         * expr.c (expand_expr_real): Restore previous
30530         curr_insn_source_location and curr_insn_block after
30531         expand_expr_real_1 call.
30532         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
30533         instead of expand_expr_real_1.
30534
30535 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
30536
30537         PR rtl-optimization/43413
30538         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
30539         hard regs too.
30540
30541 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
30542
30543         PR target/43348
30544         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
30545         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
30546
30547 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
30548
30549         * config/i386/i386.c (ix86_target_string): Add -mfma.
30550         Fix a typo in comment.
30551
30552 2010-03-22  Mike Stump  <mikestump@comcast.net>
30553
30554         PR target/23071
30555         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
30556         Don't overly align based upon packed packed fields.
30557
30558 2010-03-22  Jason Merrill  <jason@redhat.com>
30559
30560         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
30561         Use () rather than [], and move before the element type.
30562
30563 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30564
30565         * doc/configfiles.texi (Configuration Files): Removed
30566         fixinc/Makefile*, intl/Makefile.*.
30567         * doc/makefile.texi: Fixed markup. Abstract from version
30568         control system used.
30569         (Makefile): Removed obsolete java/parse.y example.
30570         * doc/sourcebuild.texi: Likewise.
30571         (Top Level): Added config, gnattools, libdecnumber, libgcc,
30572         libgomp, libssp.  Removed fastjar.
30573         (Miscellaneous Docs): Clarify location.
30574         Added COPYING3, COPYING3.LIB.
30575         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
30576
30577 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30578
30579         PR target/38085
30580         * config/i386/i386.c (x86_function_profiler)
30581         [!NO_PROFILE_COUNTERS]: Fix typo.
30582         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
30583         instead of callq.
30584
30585 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
30586             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30587
30588         * doc/sourcebuild.texi (Test Directives): Split into six
30589         subsections, with most of the current text in new subsections
30590         Directives, Selectors, and Final Actions.
30591         (Directives): Split list of test directives into multiple
30592         subsubsections.
30593         (Selectors): Describe use and syntax of selectors.
30594         (Effective-Target Keywords): Describe all existing keywords.
30595         (Add Options): Describe features for dg-add-options.
30596         (Require Support): Describe variants of dg-require-support.
30597         (Final Actions): Describe commands to use in dg-final.
30598
30599 2010-03-22  Michael Matz  <matz@suse.de>
30600
30601         PR middle-end/43475
30602         * recog.c (validate_replace_rtx_group): Replace also in
30603         REG_EQUAL and REG_EQUIV notes.
30604
30605 2010-03-22  Richard Guenther  <rguenther@suse.de>
30606
30607         PR tree-optimization/43390
30608         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
30609         sure vector extracts are type correct.
30610
30611 2010-03-22  Richard Guenther  <rguenther@suse.de>
30612
30613         PR middle-end/40106
30614         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
30615         x * sqrt (x) even when optimizing for size if the target
30616         has native support for sqrt.
30617
30618 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
30619
30620         * varasm.c (make_decl_rtl_for_debug): Also clear
30621         flag_mudflap for the duration of make_decl_rtl call.
30622
30623         PR debug/43443
30624         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
30625         locs from preserved VALUEs.
30626
30627 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30628
30629         PR middle-end/42718
30630         * pa.md (movmemsi): Set align to one if zero.
30631         (movmemdi): Likewise.
30632
30633 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
30634
30635         PR target/42321
30636         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
30637         with their corresponding prologue pushes.
30638
30639 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
30640
30641         PR target/43156
30642         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
30643         at the begining or end.
30644         (spu_expand_epilogue): Likewise.
30645
30646 2010-03-20  Richard Guenther  <rguenther@suse.de>
30647
30648         PR rtl-optimization/43438
30649         * combine.c (make_extraction): Properly zero-/sign-extend an
30650         extraction of the low part of a CONST_INT.  Also handle
30651         CONST_DOUBLE.
30652
30653 2010-03-19  Mike Stump  <mikestump@comcast.net>
30654
30655         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
30656         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
30657         (override_options): Use SUBTARGET32_DEFAULT_CPU.
30658
30659 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
30660
30661         PR c/43211
30662         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
30663         an error.
30664
30665 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
30666
30667         PR rtl-optimization/42258
30668         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
30669         use that may match DEF.
30670
30671         PR target/40697
30672         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
30673         the cost of loading the constant rather than assuming
30674         COSTS_N_INSNS (1).
30675         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
30676         outer code is AND, do the same tests as the andsi3 expander and
30677         return COSTS_N_INSNS (1) if and is cheap.
30678
30679         * optabs.c (avoid_expensive_constant): Fix formatting.
30680
30681 2010-03-19  Michael Matz  <matz@suse.de>
30682
30683         PR c++/43116
30684         * attribs.c (decl_attributes): When rebuilding a function pointer
30685         type use the same qualifiers as the original pointer type.
30686
30687 2010-03-19  Martin Jambor  <mjambor@suse.cz>
30688
30689         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
30690         and is_gimple_ip_invariant_address.
30691
30692 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30693
30694         Revert
30695         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30696
30697         * config/arm/arm.c (arm_override_options): Turn off
30698         flag_dwarf2_cfi_asm for AAPCS variants.
30699
30700 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30701
30702         PR target/43399
30703         * config/arm/arm.c (emit_multi_reg_push): Update comments.
30704         Use PRE_MODIFY instead of PRE_DEC.
30705         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
30706         (vfp_emit_fstmd): Likewise.
30707
30708 2010-03-19  Michael Matz  <matz@suse.de>
30709
30710         PR target/43305
30711         * builtins.c (expand_builtin_interclass_mathfn,
30712         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
30713         if that fails.
30714
30715 2010-03-19  Richard Guenther  <rguenther@suse.de>
30716
30717         PR tree-optimization/43415
30718         * tree-ssa-pre.c (phi_translate): Split out worker to ...
30719         (phi_translate_1): ... this.
30720         (phi_translate): Move all caching here.  Cache all NARY
30721         and REFERENCE translations.
30722
30723 2010-03-19  David S. Miller  <davem@davemloft.net>
30724
30725         With help from Eric Botcazou.
30726         * config/sparc/sparc.c: Include dwarf2out.h.
30727         (emit_pic_helper): Delete.
30728         (pic_helper_symbol_name): Delete.
30729         (pic_helper_emitted_p): Delete.
30730         (pic_helper_needed): New.
30731         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
30732         (get_pc_thunk_name): New.
30733         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
30734         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
30735         Set pic_helper_needed to true.  Don't call emit_pic_helper.
30736         (sparc_expand_prologue): Update load_pic_register call.
30737         (sparc_output_mi_thunk): Likewise.
30738         (sparc_file_end): Emit a hidden comdat symbol for the PIC
30739         thunk if possible.  Output CFI information as needed.
30740
30741 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
30742             Jack Howarth  <howarth@bromo.med.uc.edu>
30743
30744         PR target/36399
30745         * config/i386/i386.h: Fix ABI on darwin x86-32.
30746
30747 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
30748
30749         * tree.h: Declare make_decl_rtl_for_debug.
30750         * varasm.c (make_decl_rtl_for_debug): New.
30751         * dwarf2out.c (rtl_for_decl_location): Call it.
30752         * cfgexpand.c (expand_debug_expr): Call it.
30753
30754 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
30755
30756         PR bootstrap/43399
30757         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
30758         mem_mode.
30759
30760         PR bootstrap/43403
30761         * var-tracking.c (vt_init_cfa_base): Do nothing if
30762         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
30763
30764 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
30765
30766         PR debug/42873
30767         * var-tracking.c (canonicalize_vars_star): New.
30768         (dataflow_post_merge_adjust): Use it.
30769
30770 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
30771
30772         PR debug/43058
30773         * var-tracking.c (non_suitable_const): New function.
30774         (add_uses): For DEBUG_INSNs with constants, don't record any
30775         value, instead just the constant value itself.
30776         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
30777         is not VAR_LOC_UNKNOWN_P, set var to the constant.
30778         (emit_notes_in_bb): Likewise.
30779         (emit_note_insn_var_location): For onepart variables if
30780         cur_loc is a VOIDmode constant, use DECL_MODE.
30781
30782 2010-03-18  Martin Jambor  <mjambor@suse.cz>
30783
30784         PR middle-end/42450
30785         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
30786         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
30787         all non-clones.  Moved call redirection...
30788         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
30789         (cgraph_materialize_all_clones): Dispose of all
30790         combined_args_to_skip bitmaps.
30791         (verify_cgraph_node): Do not check for edges pointing to wrong
30792         nodes in inline clones.
30793         * tree-inline.c (copy_bb): Call
30794         cgraph_redirect_edge_call_stmt_to_callee.
30795         * ipa.c (cgraph_remove_unreachable_nodes): Call
30796         cgraph_node_remove_callees even when there are used clones.
30797
30798 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
30799
30800         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
30801
30802 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
30803
30804         PR target/43383
30805         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
30806         for 32bit.
30807
30808 2010-03-18  Michael Matz  <matz@suse.de>
30809
30810         PR middle-end/43419
30811         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
30812         into sqrt(x) if we need to preserve signed zeros.
30813
30814 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
30815             Eric Botcazou  <ebotcazou@adacore.com>
30816
30817         PR rtl-optimization/43360
30818         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
30819         note if we don't know its invariant status.
30820
30821 2010-03-18  Michael Matz  <matz@suse.de>
30822
30823         PR tree-optimization/43402
30824         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
30825         PHI chains of ssa names registered for update.
30826
30827 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
30828
30829         PR target/42427
30830         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
30831         non-offsettable and pre_modify update addressing.
30832         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
30833         and "2" alternatives "#".
30834         (*movdd_softfloat32): Make all alternatives "#";
30835         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
30836         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
30837         (*movdf_softfloat32): Make all alternatives "#";
30838         (movdi): Use the new DIFD mode iterator to create a common splitter
30839         for movdi, movdf and movdd patterns.
30840
30841 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
30842
30843         * common.opt (dumpdir): Remove redundant tab.
30844
30845 2010-03-17  Martin Jambor  <mjambor@suse.cz>
30846
30847         PR tree-optimization/43347
30848         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
30849         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
30850
30851 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
30852
30853         PR rtl-optimization/42216
30854         * regrename.c (create_new_chain): New function, broken out from...
30855         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
30856         appending a use to an empty chain.
30857         (build_def_use): Remove previous changes that convert OP_INOUT to
30858         OP_OUT operands; instead detect the case where an OP_INOUT operand
30859         uses a previously untracked register and create an empty chain for it.
30860
30861 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30862
30863         * doc/extend.texi (Function Attributes): Rewrite unfinished
30864         sentence in ms_abi documentation.
30865
30866 2010-03-17  Alan Modra  <amodra@gmail.com>
30867
30868         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
30869         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
30870         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
30871         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
30872
30873 2010-03-16  Richard Henderson  <rth@redhat.com>
30874
30875         PR middle-end/43365
30876         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
30877         (lower_try_finally): Save and restore eh_seq around the expansion
30878         of the try-finally.
30879
30880 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
30881
30882         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
30883         statements before splitting block.
30884
30885 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30886
30887         * doc/sourcebuild.texi (Testsuites): Fix markup.
30888         Use pathnames relative to gcc/testsuite.
30889         (Test Directives): Move description of how timeout is determined.
30890         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
30891         (C Tests): Correct gcc.misc-tests directory.
30892         Framework tests now live in gcc.test-framework.
30893
30894 2010-03-16  Richard Guenther  <rguenther@suse.de>
30895
30896         PR middle-end/43379
30897         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
30898         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
30899
30900 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
30901             Alexandre Oliva  <aoliva@redhat.com>
30902
30903         PR tree-optimization/42917
30904         * lambda-code.c (remove_iv): Skip debug statements.
30905         (lambda_loopnest_to_gcc_loopnest): Likewise.
30906         (not_interesting_stmt): Debug statements are not interesting.
30907
30908 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
30909
30910         PR debug/43051
30911         PR debug/43092
30912         * cselib.c (cselib_preserve_constants,
30913         cfa_base_preserved_val): New static variables.
30914         (preserve_only_constants): New function.
30915         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
30916         clear its REG_VALUES.  If cselib_preserve_constants, don't
30917         empty the whole hash table, but preserve there VALUEs with constants,
30918         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
30919         (cselib_preserve_cfa_base_value): New function.
30920         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
30921         (cselib_init): Change argument to int bitfield.  Set
30922         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
30923         is in it.
30924         (cselib_finish): Clear cselib_preserve_constants and
30925         cfa_base_preserved_val.
30926         * cselib.h (enum cselib_record_what): New enum.
30927         (cselib_init): Change argument to int.
30928         (cselib_preserve_cfa_base_value): New prototype.
30929         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
30930         * dse.c (dse_step1): Likewise.
30931         * cfgcleanup.c (thread_jump): Likewise.
30932         * sched-deps.c (sched_analyze): Likewise.
30933         * gcse.c (local_cprop_pass): Likewise.
30934         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
30935         If FN is non-NULL, call the callback always and whenever it returns
30936         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
30937         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
30938         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
30939         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
30940         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
30941         * var-tracking.c: Include recog.h.
30942         (bb_stack_adjust_offset): Remove.
30943         (vt_stack_adjustments): Don't call it, instead just gather the
30944         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
30945         (adjust_stack_reference): Remove.
30946         (compute_cfa_pointer): New function.
30947         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
30948         (struct adjust_mem_data): New type.
30949         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
30950         functions.
30951         (get_address_mode): New function.
30952         (replace_expr_with_values): Use it.
30953         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
30954         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
30955         (adjust_sets): Remove.
30956         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
30957         Use get_address_mode.
30958         (get_adjusted_src): Remove.
30959         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
30960         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
30961         (add_with_sets): Don't call adjust_sets.
30962         (fp_setter, vt_init_cfa_base): New functions.
30963         (vt_initialize): Change return type to bool.  Move most of pool etc.
30964         initialization to the beginning of the function from end.  Pass
30965         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
30966         If !frame_pointer_needed, call vt_stack_adjustment before mos
30967         vector is filled, call vt_init_cfa_base if argp/framep has been
30968         eliminated to sp.  If frame_pointer_needed and argp/framep has
30969         been eliminated to hard frame pointer, set
30970         hard_frame_pointer_adjustment and call vt_init_cfa_base after
30971         encountering fp setter in the prologue.  For MO_ADJUST, call
30972         log_op_type before pusing the op into mos vector, not afterwards.
30973         Call adjust_insn before cselib_process_insn/add_with_sets,
30974         call cancel_changes (0) afterwards.
30975         (variable_tracking_main_1): Adjust for vt_initialize calling
30976         vt_stack_adjustments and returning whether it succeeded or not.
30977
30978 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
30979
30980         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
30981         debug statements.
30982
30983 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
30984
30985         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
30986         has been set.
30987         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
30988         drap_reg has not been set.
30989
30990 2010-03-15  Michael Matz  <matz@suse.de>
30991
30992         PR middle-end/43300
30993         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
30994         use it to expand block copies.
30995         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
30996         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
30997         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
30998
30999 2010-03-15  Richard Guenther  <rguenther@suse.de>
31000
31001         PR tree-optimization/43367
31002         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
31003         elimination check.
31004
31005 2010-03-15  Richard Guenther  <rguenther@suse.de>
31006
31007         PR tree-optimization/43317
31008         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
31009
31010 2010-03-15  Martin Jambor  <mjambor@suse.cz>
31011
31012         PR tree-optimization/43141
31013         * tree-sra.c (create_abstract_origin): New function.
31014         (modify_function): Call create_abstract_origin.
31015
31016 2010-03-15  Chris Demetriou  <cgd@google.com>
31017
31018         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
31019         wasn't copied.
31020
31021 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31022
31023         PR middle-end/43354
31024         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
31025         call insert_out_of_ssa_copy for default definitions.
31026
31027 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31028
31029         * graphite-clast-to-gimple.c (my_long_long): Defined.
31030         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
31031         * graphite-sese-to-poly.c (my_long_long): Defined.
31032         (scop_ivs_can_be_represented): Use it.
31033
31034 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31035
31036         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
31037         graphite-max-bbs-per-function, and loop-block-tile-size.
31038         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
31039         with "maximum".
31040         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
31041
31042 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31043
31044         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
31045         forward declaration.
31046         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
31047         (add_upper_bounds_from_estimated_nit): New.
31048         (build_loop_iteration_domains): Use it.
31049
31050 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31051
31052         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
31053
31054 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31055
31056         PR middle-end/43306
31057         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
31058         should be an INTEGER_CST.  Also handle CASE_CONVERT.
31059
31060 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31061
31062         * graphite.c (graphite_initialize): To bound the number of bbs per
31063         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
31064         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
31065         * doc/invoke.texi: Document it.
31066
31067 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31068
31069         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
31070         * graphite-sese-to-poly.h (build_poly_scop): Same.
31071
31072 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
31073
31074         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
31075         the number of parameters in the scop.  Use as an upper bound
31076         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
31077         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
31078         * doc/invoke.texi: Document it.
31079
31080 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
31081
31082         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
31083         * doc/c-tree.texi: Remove.
31084         * doc/generic.texi: Merge c-tree.texi here.
31085         * doc/gccint.texi (Trees): Remove menu entry.
31086         (c-tree.texi): Remove @include.
31087         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
31088         * doc/languages.texi (Reading RTL): Ditto.
31089
31090 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
31091
31092         PR target/42869
31093         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
31094
31095 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
31096
31097         PR middle-end/42431
31098         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
31099         code added to work around reload clobbering CONST insns.
31100
31101 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
31102
31103         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
31104         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
31105         (cselib_preserve_only_values): Remove retain argument, don't
31106         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
31107         * cselib.h (cselib_preserve_only_values): Remove retain argument.
31108         * var-tracking.c (micro_operation): Move insn field before union.
31109         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
31110         (struct variable_tracking_info_def): Remove n_mos field, change
31111         mos into a vector of micro_operations.
31112         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
31113         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
31114         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
31115         changing into a vector.
31116         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
31117         come before all other uops generated by add_stores.
31118         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
31119         argument removal.
31120         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
31121         a vector.  Run just one pass over the bbs instead of separate counting
31122         and computation phase.
31123         (vt_finalize): Free VTI (bb)->mos vector instead of array.
31124
31125         PR debug/43329
31126         * tree-inline.c (remap_decls): Put old_var rather than origin_var
31127         into *nonlocalized_list vector.
31128         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
31129         even if origin is non-NULL.
31130         (gen_variable_die): Likewise.
31131         (process_scope_var): Don't change origin.
31132         (gen_decl_die): Likewise.
31133         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
31134         before adding new edges instead of after it, fix moving over
31135         debug stmts.
31136
31137 2010-03-11  David S. Miller  <davem@davemloft.net>
31138
31139         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
31140         of four.
31141         * configure: Rebuild.
31142
31143 2010-03-11  Martin Jambor  <mjambor@suse.cz>
31144
31145         PR tree-optimization/43257
31146         * tree.c (assign_assembler_name_if_neeeded): New function.
31147         (free_lang_data_in_cgraph): Assembler name assignment moved to the
31148         above new function.
31149         * tree.h (assign_assembler_name_if_neeeded): Declare.
31150         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
31151         the function if needed.
31152
31153 2010-03-11  Chris Demetriou  <cgd@google.com>
31154
31155         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
31156         include/stdint-gcc.h, and include/stdint.h world-readable.
31157
31158 2010-03-11  Richard Guenther  <rguenther@suse.de>
31159
31160         PR tree-optimization/43255
31161         * tree-vrp.c (process_assert_insertions_for): Do not insert
31162         asserts for trivial conditions.
31163
31164 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31165
31166         PR tree-optimization/43280
31167         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
31168         generation.  Move calculation of size out of the if branch.
31169         (find_bswap): Modify compare number generation.
31170
31171 2010-03-11  Richard Guenther  <rguenther@suse.de>
31172
31173         PR lto/43200
31174         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
31175         (input_gimple_stmt): Fixup handled component types during
31176         operand read.  Also fix up decls in ADDR_EXPRs.
31177
31178 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
31179
31180         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
31181         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
31182
31183 2010-03-10  Jan Hubicka  <jh@suse.cz>
31184
31185         PR c/43288
31186         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
31187         * varasm.c (get_variable_section): Don't do that here...
31188         (make_decl_rtl): ... and here.
31189         (do_assemble_alias): Produce decl RTL.
31190         (assemble_alias): Likewise.
31191
31192 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
31193
31194         PR debug/43290
31195         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
31196         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
31197         of fde->vdrap_reg.
31198         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
31199         (based_loc_descr): Only express drap or vdrap regno based expressions
31200         using DW_OP_fbreg when not optimizing.
31201         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
31202         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
31203         REG_CFA_SET_VDRAP note.
31204
31205 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
31206
31207         PR tree-optimization/43236
31208         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
31209         error in calculation of base address in reverse iteration case.
31210         (generate_builtin): Take number of latch executions if the statement
31211         is in the latch.
31212
31213 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
31214
31215         PR middle-end/42859
31216         * tree-eh.c: Include pointer-set.h.
31217         (lower_eh_dispatch): Filter out duplicate case labels and
31218         remove the unneeded edge when the label is unused.  Return
31219         true when some edges are removed.
31220         (execute_lower_eh_dispatch): When any lowering resulted in
31221         removing an edge, also delete unreachable blocks.
31222
31223 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
31224
31225         PR bootstrap/43287
31226         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
31227         UNSPEC_MACHOPIC_OFFSET.
31228
31229 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
31230
31231         PR target/43294
31232         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
31233         (m68k_delegitimize_address): New function.
31234
31235 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
31236
31237         PR debug/43299
31238         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
31239
31240         PR debug/43299
31241         * var-tracking.c (adjust_sets): New function.
31242         (count_with_sets, add_with_sets): Use it.
31243         (get_adjusted_src): New inline function.
31244         (add_stores): Use it.
31245
31246         PR debug/43304
31247         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
31248         call cselib_dummy_expand_value_rtx_cb instead of
31249         cselib_expand_value_rtx_cb.
31250
31251         PR debug/43293
31252         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
31253         * config/i386/i386.c: Include debug.h and dwarf2out.h.
31254         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
31255         and .cfi_endproc around the pic thunks.
31256         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
31257         all queued unwind info register saves are saved before the call.
31258         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
31259         considered as sp-=4 for unwind info and the pop as sp+=4 which
31260         also clobbers dest, but doesn't actually restore it.
31261
31262         PR debug/43290
31263         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
31264         RTX_FRAME_RELATED_P.
31265
31266 2010-03-09  Jie Zhang  <jie@codesourcery.com>
31267
31268         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
31269         whitespaces in output template.
31270
31271 2010-03-09  Jie Zhang  <jie@codesourcery.com>
31272
31273         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
31274         out array boundary.
31275
31276 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
31277
31278         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
31279         builtins.exp in a separate job.
31280
31281 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31282
31283         * graphite-sese-to-poly.c (add_param_constraints): Use
31284         lower_bound_in_type and upper_bound_in_type.
31285
31286 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31287
31288         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
31289         instead of unsigned_type_node.
31290
31291 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31292             Reza Yazdani  <reza.yazdani@amd.com>
31293
31294         PR middle-end/43065
31295         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
31296         on pointer type parameters.
31297
31298 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
31299
31300         PR middle-end/42644
31301         PR middle-end/42130
31302         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
31303         handle conversions from pointer to integers.
31304         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
31305         induction variable, to be able to work with code generated by CLooG.
31306         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
31307         (build_poly_scop): Bail out if we cannot codegen a loop.
31308
31309 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
31310
31311         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
31312         code generation with gloog_error.
31313
31314 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31315
31316         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
31317         Call fold_convert on all the returned values.
31318         (expand_scalar_variables_expr): Pass to
31319         expand_scalar_variables_ssa_name the type of the resulting expression.
31320
31321 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31322
31323         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
31324         ppl_min_for_le_pointset.
31325         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
31326         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
31327
31328 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31329
31330         * graphite-dependences.c (map_into_dep_poly): Removed.
31331         (dependence_polyhedron_1): Use combine_context_id_scat.
31332
31333 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31334
31335         * graphite-poly.h (struct poly_scattering): Add layout documentation.
31336         (struct poly_bb): Same.
31337         (combine_context_id_scat): New.
31338
31339 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31340
31341         PR middle-end/42326
31342         * sese.c (name_defined_in_loop_p): Return false for default
31343         definitions.
31344
31345 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31346
31347         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
31348         and clean up the logic.
31349
31350 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31351
31352         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
31353         early return.
31354
31355 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
31356
31357         * var-tracking.c (remove_cselib_value_chains): Define only for
31358         ENABLE_CHECKING.
31359         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
31360         delete_slot_part, emit_notes_for_differences_1): Don't call
31361         remove_cselib_value_chains here.
31362         (set_slot_part, emit_notes_for_differences_2): Don't call
31363         add_cselib_value_chains here.
31364         (preserved_values): New vector.
31365         (preserve_value): New function.
31366         (add_uses, add_stores, vt_add_function_parameters): Use it
31367         instead of cselib_preserve_value.
31368         (changed_values_stack): New vector.
31369         (check_changed_vars_0): New function.
31370         (check_changed_vars_1, check_changed_vars_2): Use it.
31371         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
31372         changed_values_stack VALUEs.
31373         (vt_emit_notes): For all preserved_values call
31374         add_cselib_value_chains.  If ENABLE_CHECKING call
31375         remove_cselib_value_chains before verifying value_chains is empty.
31376         Initialize and free changed_values_stack.
31377         (vt_initialize): Initialize preserved_values.
31378         (vt_finalize): Free preserved_values.
31379
31380 2010-03-08  Richard Guenther  <rguenther@suse.de>
31381
31382         PR tree-optimization/43269
31383         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
31384         region detection.
31385
31386 2010-03-08  Martin Jambor  <mjambor@suse.cz>
31387
31388         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
31389         (ipa_is_param_called): Removed.
31390         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
31391         (ipa_print_node_params): Do not print the called flag.
31392         (ipa_write_node_info): Do not stream the called flag.
31393         (ipa_read_node_info): Likewise.
31394
31395 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
31396
31397         PR debug/43176
31398         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
31399         * cselib.c (struct expand_value_data): Add dummy field.
31400         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
31401         dummy to false.
31402         (cselib_dummy_expand_value_rtx_cb): New function.
31403         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
31404         any rtl.
31405         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
31406         * var-tracking.c: Include pointer-set.h.
31407         (variable): Change n_var_parts to char from int.  Add
31408         cur_loc_changed and in_changed_variables fields.
31409         (variable_canonicalize): Remove.
31410         (shared_var_p): New inline function.
31411         (unshare_variable): Maintain cur_loc_changed and
31412         in_changed_variables fields.  If var was in changed_variables,
31413         replace it there with new_var.  Just copy cur_loc instead of
31414         resetting it to something else.
31415         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
31416         (dataflow_set_union): Don't call variable_canonicalize.
31417         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
31418         of their DEBUG_EXPR_TREE_DECLs.
31419         (canonicalize_loc_order_check): Verify that cur_loc is NULL
31420         and in_changed_variables and cur_loc_changed is false.
31421         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
31422         and cur_loc_changed.  Don't update cur_loc here.
31423         (variable_merge_over_src): Don't call variable_canonicalize.
31424         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
31425         removing loc that is equal to cur_loc, clear cur_loc,
31426         set cur_loc_changed and ensure variable_was_changed is called.
31427         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
31428         compare pointers in cur_loc check, if it is equal to loc,
31429         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
31430         (variable_different_p): Remove compare_current_location argument,
31431         don't compare cur_loc.
31432         (dataflow_set_different_1): Adjust variable_different_p caller.
31433         (variable_was_changed): If dv had some var in changed_variables
31434         already, reset in_changed_variables flag for it and propagate
31435         cur_loc_changed over to the new variable.  On empty var
31436         always set cur_loc_changed.  Set in_changed_variables on whatever
31437         var is added to changed_variables.
31438         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
31439         Use shared_var_p.  When removing loc that is equal to cur_loc,
31440         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
31441         end, don't set it to something else, just call variable_was_changed.
31442         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
31443         loc being removed, clear cur_loc and set cur_loc_changed.
31444         Set cur_loc_changed if all locations have been removed.
31445         (struct expand_loc_callback_data): New type.
31446         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
31447         allocated.  Always create SUBREGs if simplify_subreg failed.
31448         Prefer to use cur_loc, when that fails and still in
31449         changed_variables (and seen first time) recompute it.  Set
31450         cur_loc_changed of variables which had to change cur_loc and
31451         compute elcd->cur_loc_changed if any of the subexpressions used
31452         had to change cur_loc.
31453         (vt_expand_loc): Adjust to pass arguments in
31454         expand_loc_callback_data structure.
31455         (vt_expand_loc_dummy): New function.
31456         (emitted_notes): New variable.
31457         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
31458         that weren't used for any other decl in current
31459         emit_notes_for_changes call call vt_expand_loc_dummy to update
31460         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
31461         first loc_chain location if NULL before.  Always use just
31462         cur_loc instead of first loc_chain location.  When cur_loc_changed
31463         is false, when not --enable-checking=rtl just don't emit any note.
31464         When rtl checking, compute the note and assert it is the same
31465         as previous note.  Clear cur_loc_changed and in_changed_variables
31466         at the end before removing from changed_variables.
31467         (check_changed_vars_3): New function.
31468         (emit_notes_for_changes): Traverse changed_vars to call
31469         check_changed_vars_3 on each changed var.
31470         (emit_notes_for_differences_1): Clear cur_loc_changed and
31471         in_changed_variables.  Recompute cur_loc of new_var.
31472         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
31473         (vt_emit_notes): Initialize and destroy emitted_notes.
31474
31475 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
31476
31477         PR rtl-optimization/42220
31478         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
31479         Use verify_reg_tracked to determine if we should use OP_OUT rather
31480         than OP_INOUT.
31481         (build_def_use): If we see an in-out operand for a register that we
31482         know nothing about, treat is an output if possible, fail the block if
31483         not.
31484
31485 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31486
31487         PR debug/42897
31488         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
31489         permanently.
31490
31491 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31492
31493         PR debug/42897
31494         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
31495         uses of relevant DEFs that are dead outside the loop too.
31496
31497 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31498
31499         * var-tracking.c (dataflow_set_merge): Swap src and src2.
31500         Reverted:
31501         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
31502         PR debug/41371
31503         * var-tracking.c (values_to_unmark): New variable.
31504         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
31505         values_to_unmark vector.  Moved body to...
31506         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
31507         instead queue it into values_to_unmark vector.
31508         (vt_find_locations): Free values_to_unmark vector.
31509
31510 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
31511
31512         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
31513         (site.exp): Export them when plugins are enabled.
31514
31515 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
31516
31517         PR middle-end/42326
31518         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
31519         that contain scevs.
31520         (chrec_fold_multiply): Same.
31521
31522 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
31523
31524         PR c/43248
31525         * c-decl.c (build_compound_literal): Return early if init is
31526         an error_mark_node.
31527
31528 2010-03-04  Martin Jambor  <mjambor@suse.cz>
31529
31530         PR tree-optimization/43164
31531         PR tree-optimization/43191
31532         * tree-sra.c (type_consists_of_records_p): Reject records with
31533         zero-size bit-fields at the end.
31534
31535 2010-03-04  Mike Stump  <mikestump@comcast.net>
31536
31537         * Makefile.in (TAGS): Remove *.y.
31538
31539 2010-03-04  Richard Guenther  <rguenther@suse.de>
31540
31541         PR tree-optimization/40761
31542         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
31543         in reverse order.
31544         (my_rev_post_order_compute): New function.
31545         (init_pre): Call it.
31546
31547 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
31548
31549         PR middle-end/43209
31550         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
31551         decrease the cost of an IV candidate when the cost is infinite.
31552
31553 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31554
31555         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
31556         Use '3DNow!' for the extension of that name, ensure normal space
31557         after the string.
31558         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
31559
31560 2010-03-03  Jeff Law  <law@redhat.com>
31561
31562         * PR middle-end/32693
31563         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
31564         than gen_rtx_SUBREG.
31565         (extract_bit_field_1): Likewise.
31566
31567 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
31568
31569         * doc/sourcebuild.texi (Test directives): Document that arguments
31570         include-opts and exclude-opts are now optional for dg-skip-if,
31571         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
31572
31573 2010-03-03  Jason Merrill  <jason@redhat.com>
31574
31575         PR c++/12909
31576         * cgraph.h (varpool_node): Add extra_name field.
31577         * varpool.c (varpool_extra_name_alias): New.
31578         (varpool_assemble_decl): Emit extra name aliases.
31579         (varpool_mark_needed_node): Look past an extra name alias.
31580         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
31581         * lto-streamer-in.c (lto_input_tree): Read it.
31582         * lto-streamer-out.c (output_unreferenced_globals): Write it.
31583
31584 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
31585
31586         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
31587         (sparc*-*-solaris2*): ...this.
31588
31589 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
31590
31591         PR debug/43229
31592         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
31593         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
31594         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
31595         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
31596
31597         PR debug/43237
31598         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
31599         fallthrough to default handling, just with want_address 0 instead of 2.
31600         For single element lists, add_AT_loc directly, otherwise create an
31601         artificial variable DIE and stick location list to it.
31602
31603         PR debug/43177
31604         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
31605         (VAL_EXPR_HAS_REVERSE): Define.
31606         (reverse_op): New function.
31607         (add_stores): For reversible operations add an extra MO_VAL_USE.
31608
31609 2010-03-02  Jason Merrill  <jason@redhat.com>
31610
31611         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
31612
31613 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
31614
31615         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
31616         (sparc64-*-linux*): Likewise.
31617         (sparc64-*-solaris2*): Include assembler files before linker ones.
31618         (sparc-*-solaris2*): Simplify and reorder to match previous case.
31619         * config/sparc/gas.h: Delete.
31620         * config/sparc/sol2-64.h: Add copyright notice.
31621         * config/sparc/sol2-gas-bi.h: Likewise.
31622         * config/sparc/sol2-gld.h: Likewise.
31623         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
31624         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
31625         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
31626         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
31627         (sparc_elf_asm_named_section): Rename into...
31628         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
31629
31630 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
31631
31632         * config/alpha/alpha.c (override_options): Fix -mtune error message.
31633
31634 2010-03-02  Jeff Law  <law@redhat.com>
31635
31636         PR middle-end/42431
31637         * reload1.c (rtx_p, substitute_stack): Declare.
31638         (substitute): Record addresses of changed rtxs.
31639         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
31640         Restore the original rtx when complete.
31641         (reload): Free subsitute_stack when complete.
31642
31643 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
31644
31645         * doc/gccint.texi (menu): Add Testsuites as a chapter.
31646         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
31647         new chapter.
31648         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
31649         LTO Testing, gcov Testing, profopt Testing, compat Testing,
31650         Torture Tests): Change from subsection to section.
31651
31652 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
31653             Steven Bosscher  <steven@gcc.gnu.org>
31654
31655         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
31656         instead of bb.
31657
31658 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
31659
31660         PR middle-end/42640
31661         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
31662         the assignment from the new induction variable to the assignment
31663         of the value from the original loop PHI function.
31664
31665 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
31666             Daniel Jacobowitz  <dan@codesourcery.com>
31667
31668         * doc/sourcebuild.texi (Test directives): Clarify options to
31669         dg-skip-if.
31670
31671 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31672
31673         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
31674         Disable cfi directives unless GCC and gas agree on using read-only
31675         .eh_frame sections for 64-bit.
31676         * configure: Regenerate.
31677
31678 2010-03-01  Richard Guenther  <rguenther@suse.de>
31679
31680         PR tree-optimization/43220
31681         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
31682         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
31683
31684 2010-03-01  Richard Guenther  <rguenther@suse.de>
31685             Martin Jambor  <mjambor@suse.cz>
31686
31687         PR middle-end/41250
31688         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
31689         gimplified parameters.
31690
31691 2010-03-01  Christian Bruel  <christian.bruel@st.com>
31692
31693         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
31694
31695 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
31696
31697         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
31698
31699 2010-03-01  Richard Guenther  <rguenther@suse.de>
31700
31701         PR middle-end/43213
31702         * expr.c (expand_assignment): Use the alias-oracle to tell
31703         if the rhs aliases the result decl.
31704
31705 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31706
31707         PR pch/14940
31708         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
31709         to sol_gt_pch_get_address.
31710         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
31711         64-bit, SPARC and x86.
31712         (sol_gt_pch_get_address): New function.
31713
31714 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
31715
31716         * toplev.h (inform_n, error_n): Declare.
31717         * diagnostic.c (inform_n, error_n): New function.
31718
31719 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
31720
31721         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
31722         has no rtl yet when processing local_decls, queue it and recheck
31723         if deferred stack allocation hasn't assigned it rtl.
31724
31725 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
31726
31727         * config/sh/sh.c (unspec_bbr_uid): New.
31728         (gen_block_redirect): Use it instead of INSN_UID.
31729         (gen_far_branch): Likewise.
31730
31731 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
31732
31733         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
31734         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
31735
31736 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31737
31738         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
31739         (Warning Options): -Wno-conversion-null is valid for
31740         Objective-C++ as well.
31741         * doc/tm.texi (Named Address Spaces): Likewise.
31742         * doc/plugins.texi (Plugins): Replace TABs with spaces.
31743         * doc/tree-ssa.texi (Tree SSA): Likewise.
31744
31745 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31746
31747         PR bootstrap/43202
31748         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
31749         by default.  Don't set the default arch for
31750         i[34567]86-*-darwin*|x86_64-*-darwin*.
31751
31752 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31753
31754         PR bootstrap/43202
31755         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
31756         default.  Set the default 32bit/64bit archs with $with_arch
31757         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
31758
31759 2010-02-27  Richard Guenther  <rguenther@suse.de>
31760
31761         PR tree-optimization/43186
31762         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
31763         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
31764         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
31765         unroller iterations.
31766
31767 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31768
31769         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
31770         required and i[34567]86-*-* targets don't support 64bit ISA.
31771
31772 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
31773
31774         PR ada/43096
31775         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31776         the same alias set.
31777
31778 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
31779
31780         * config.gcc: Set the default arch at least to Prescott for
31781         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
31782         if SSE math is enabled.
31783
31784 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31785
31786         * diagnostic.c (diagnostic_initialize): Update.
31787         (diagnostic_report_diagnostic): Test inhibit_notes_p for
31788         informative notes.
31789         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
31790         (diagnostic_inhibit_notes): New.
31791         * toplev.c (process_options): inhibit notes with -fcompare-debug.
31792
31793 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31794
31795         PR c/20631
31796         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
31797         * doc/standards.texi: Likewise.
31798         * doc/extend.texi: Likewise.
31799         * doc/trouble.texi: Likewise.
31800         * doc/cppopts.texi: Likewise.
31801         * doc/install.texi: Likewise.
31802         * c.opt (std=c90,std=gnu90): New options.
31803         * c-opts.c (c_common_handle_option): Handle them.
31804
31805 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31806
31807         PR c/24577
31808         * c-decl.c (undeclared_variable): Use an informative note.
31809
31810 2010-02-26  Richard Guenther  <rguenther@suse.de>
31811
31812         PR tree-optimization/43186
31813         * gimple.h (gimple_fold): Remove.
31814         * gimple.c (gimple_fold): Remove.  Inline into single user ...
31815         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
31816         Try harder for conditions.
31817
31818 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
31819
31820         PR debug/43190
31821         * function.c (used_types_insert): Don't skip through named pointer
31822         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
31823         and it is different from the main variant's type.
31824
31825 2010-02-26  Nick Clifton  <nickc@redhat.com>
31826
31827         * config/rx/rx.md (sminsi3): Remove bogus alternative.
31828
31829 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
31830
31831         * config.gcc: Support --with-fpmath=sse for x86.
31832
31833         * config/i386/ssemath.h: New.
31834
31835         * doc/install.texi (--with-fpmath=sse): Documented.
31836
31837 2010-02-26  Richard Guenther  <rguenther@suse.de>
31838
31839         PR tree-optimization/43188
31840         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
31841         vector types of over-aligned element type.
31842
31843 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
31844
31845         PR target/43175
31846         * config/i386/i386.c (expand_vec_perm_blend): Use correct
31847         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
31848
31849 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
31850
31851         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
31852
31853 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
31854
31855         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
31856         * var-tracking.c: Include diagnostic.h.
31857         (debug_dv): New function.
31858         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
31859
31860         PR debug/43160
31861         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
31862         (add_value_chain, add_value_chains, remove_value_chain,
31863         remove_value_chains): Handle DEBUG_EXPRs.
31864         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
31865
31866         PR debug/43161
31867         * regcprop.c (struct queued_debug_insn_change): New type.
31868         (struct value_data_entry): Add debug_insn_changes field.
31869         (struct value_data): Add n_debug_insn_changes field.
31870         (debug_insn_changes_pool): New variable.
31871         (free_debug_insn_changes, apply_debug_insn_changes,
31872         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
31873         (kill_value_one_regno): Call free_debug_insn_changes if needed.
31874         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
31875         fields.
31876         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
31877         changes for them.
31878         (copyprop_hardreg_forward_1): Don't call apply_change_group for
31879         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
31880         changes, call cprop_find_used_regs via note_stores.
31881         (copyprop_hardreg_forward): When copying vd from predecessor
31882         which has any queued DEBUG_INSN changes, make sure the pointers are
31883         cleared.  At the end call df_analyze and then if there are any
31884         DEBUG_INSN changes queued at the end of some basic block for still
31885         live registers, apply them.
31886         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
31887
31888 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
31889
31890         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
31891         (arm*-*-*): Ditto.
31892
31893 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
31894
31895         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
31896         targets.  Set the default with_cpu/with_arch from arch/cpu.
31897         Allow x86-64 and native for with_cpu/with_arch.
31898
31899 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
31900
31901         * ebitmap.c: Change calls to verify_popcount with calls to
31902         sbitmap_verify_popcount.
31903         (ebitmap_clear_bit): Fixed map->cacheindex test and
31904         map>cache update when bit clearing results in an empty
31905         element.
31906
31907 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
31908
31909         PR target/43154
31910         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
31911         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
31912         and support both V2DF and V2DI modes.
31913         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
31914         support both V2DF and V2DI modes.
31915         (general): Delete trailing whitespace from a few patterns.
31916
31917         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31918         V2DF/V2DI interleave high/low builtins.
31919
31920         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
31921         new VSX builtins.
31922
31923         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
31924         interleave high/low functions.
31925
31926 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
31927
31928         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
31929         #pragma extern_prefix.
31930
31931 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
31932
31933         PR debug/43166
31934         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
31935         BLKmode, assert op0 is a MEM and just adjust its mode.
31936
31937         PR debug/43165
31938         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
31939         if bitpos isn't multiple of mode's bitsize.
31940
31941 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31942
31943         * c.opt (-ftemplate-depth=): New.
31944         (-ftemplate-depth-): Deprecate.
31945         * optc-gen.awk: Handle -ftemplate-depth=.
31946         * opth-gen.awk: Likewise.
31947         * c-opts.c (c_common_handle_option): Likewise.
31948         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
31949
31950 2010-02-24  Jason Merrill  <jason@redhat.com>
31951
31952         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
31953
31954 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31955
31956         * cfg.c (alloc_aux_for_block): Remove inline.
31957         (alloc_aux_for_edge): Likewise.
31958
31959 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31960
31961         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
31962
31963 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31964
31965         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
31966         * config/i386/sol2-gas.h: New file.
31967         * config.gcc (i[34567]86-*-solaris2*): Use it.
31968
31969 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31970
31971         PR c/43128
31972         * c-typeck.c (ep_convert_and_check): New.
31973         (build_conditional_expr): Use it.
31974         (build_binary_op): Likewise.
31975
31976 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
31977
31978         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
31979
31980         PR debug/43150
31981         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
31982         bounds even for -O+.
31983         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
31984         expr needs to have DECL_NAME set.
31985
31986 2010-02-24  Nick Clifton  <nickc@redhat.com>
31987
31988         * config/mep/mep.c: Include gimple.h.
31989         (mep_function_uses_sp): Delete unused function.
31990         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
31991         parameters.  Use unsigned integers to count args.  Return a
31992         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
31993
31994 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
31995
31996         PR target/43107
31997         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
31998         greater or equal to nelt instead of 2 * nelt.
31999         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
32000         with nelt - 1.
32001
32002 2010-02-23  Jason Merrill  <jason@redhat.com>
32003
32004         PR debug/42800
32005         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
32006         in cfun->local_decls even if they have register types.
32007
32008         PR c++/42837
32009         * stor-layout.c (place_field): Don't warn about unnecessary
32010         DECL_PACKED if the type is packed.
32011
32012 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
32013
32014         PR target/43139
32015         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
32016         GOTOFF relocs, even when the base reg isn't pic pointer.
32017
32018 2010-02-23  Michael Matz  <matz@suse.de>
32019
32020         PR debug/43077
32021         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
32022         (expand_gimple_basic_block): Generate and use debug temps if there
32023         are debug uses left after the last real use of TERed ssa names.
32024         Unlink debug immediate uses when they are expanded.
32025
32026 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32027
32028         PR 43123
32029         * config/i386/i386.c (override_options): Reorganise to provide
32030         better error messages.
32031
32032 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
32033
32034         PR middle-end/43083
32035         * graphite-scop-detection.c (create_single_exit_edge): Move
32036         the call to find_single_exit_edge to....
32037         (create_sese_edges): ...here.  Don't handle multiple edges
32038         exiting the function.
32039         (build_graphite_scops): Don't handle multiple edges
32040         exiting the function.
32041
32042 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
32043
32044         PR middle-end/43097
32045         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
32046         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
32047
32048 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
32049
32050         PR middle-end/43026
32051         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
32052
32053 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32054
32055         PR c++/43126
32056         * c-typeck.c (convert_arguments): Print declaration location.
32057         * c-common.c (validate_nargs): Rename as
32058         builtin_function_validate_nargs.
32059         (check_builtin_function_arguments): Update.
32060
32061 2010-02-22  Richard Guenther  <rguenther@suse.de>
32062
32063         PR lto/43045
32064         * tree-inline.c (declare_return_variable): Use the type of
32065         the call stmt lhs if available.
32066
32067 2010-02-22  Duncan Sands  <baldrick@free.fr>
32068
32069         * passes.c (register_pass): Always consider all pass lists when
32070         ref_pass_instance_number is zero.
32071
32072 2010-02-22  Richard Guenther  <rguenther@suse.de>
32073
32074         PR tree-optimization/42749
32075         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
32076         parameter.  Do arithmetic in the original type.
32077         (update_accumulator_with_ops): Likewise.
32078         (adjust_accumulator_values): Adjust.
32079
32080 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32081
32082         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
32083         (QI to BLKmode splitter): New splitter.
32084
32085 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
32086
32087         * config/i386/i386.c (initial_ix86_tune_features): Turn on
32088         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
32089
32090 2010-02-22  Richard Guenther  <rguenther@suse.de>
32091
32092         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
32093
32094 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
32095
32096         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
32097         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
32098         ($(T)crti.o, $(T)crtn.o): Remove rules.
32099
32100 2010-02-21  Tobias Burnus  <burnus@net-b.de>
32101
32102         PR fortran/35259
32103         * doc/invoke.texi (-fassociative-math): Document that this
32104         option is automatically enabled for Fortran.
32105
32106 2010-02-20  David S. Miller  <davem@davemloft.net>
32107
32108         * configure.ac: Test if linker and assembler properly support
32109         GOTDATA_OP relocations.
32110         * configure: Rebuild.
32111         * config.in: Likewise.
32112         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
32113         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
32114         (movsi_high_pic): Likewise.
32115         (movdi_lo_sum_pic): Likewise.
32116         (movdi_high_pic): Likewise.
32117         (movsi_pic_gotdata_op): New pattern.
32118         (movdi_pic_gotdata_op): Likewise.
32119         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
32120         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
32121
32122 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
32123
32124         PR target/43067
32125         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
32126         attribute to ssemul.
32127         (xop_mulv2div2di3_high): Ditto.
32128
32129 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32130
32131         PR c++/35669
32132         * c.opt (Wconversion-null): New option.
32133         * doc/invoke.texi (Wconversion-null): Document.
32134
32135 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32136
32137         * common.opt (Wlarger-than-): Add Undocumented.
32138
32139 2010-02-19  Mike Stump  <mikestump@comcast.net>
32140
32141         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
32142
32143 2010-02-19  Jason Merrill  <jason@redhat.com>
32144
32145         PR target/40332
32146         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
32147         * configure: Likewise.
32148
32149 2010-02-20  Alan Modra  <amodra@gmail.com>
32150
32151         PR middle-end/42344
32152         * cgraph.h (cgraph_make_decl_local): Declare.
32153         * cgraph.c (cgraph_make_decl_local): New function.
32154         (cgraph_make_node_local): Use it.
32155         * cgraphunit.c (cgraph_function_versioning): Likewise.
32156         * ipa.c (function_and_variable_visibility): Likewise.
32157
32158 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
32159
32160         PR bootstrap/43121
32161         * except.c (sjlj_emit_function_enter): Don't call
32162         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
32163         directly.
32164         * rtl.h (add_reg_br_prob_note): Remove prototype.
32165
32166 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
32167
32168         PR 41779
32169         * c-common.c (conversion_warning): Remove widening conversions
32170         before checking the conversion of integers to reals.
32171
32172 2010-02-19  Mike Stump  <mikestump@comcast.net>
32173
32174         PR middle-end/43125
32175         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
32176
32177         PR objc/43061
32178         * cgraphunit.c (process_function_and_variable_attributes): Check
32179         DECL_PRESERVE_P instead of looking up attribute "used".
32180         * ipa-pure-const.c (check_decl): Likewise.
32181         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
32182         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
32183         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
32184         instead of attribute "used".
32185         * config/sol2-c.c (solaris_pragma_init): Likewise.
32186         (solaris_pragma_fini): Likewise.
32187
32188 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
32189
32190         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
32191         Use XCNEW instead of xcalloc.
32192         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
32193         XNEW instead of xmalloc.
32194         (get_fields): Use XNEWVEC instead of xmalloc.
32195
32196         PR debug/43084
32197         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
32198         populate vars array.
32199         (create_new_general_access): For debug stmts just reset value.
32200         (get_stmt_accesses): For accesses within debug stmts just record them
32201         using add_access_to_acc_sites instead of preventing the peeling or
32202         counting them as accesses.
32203
32204         PR middle-end/42233
32205         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
32206
32207 2010-02-19  Richard Guenther  <rguenther@suse.de>
32208
32209         PR tree-optimization/42916
32210         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
32211         instructions.
32212
32213 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
32214
32215         * configure.ac: Replace all uses of changequote in macro arguments
32216         with proper quoting.
32217
32218 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
32219
32220         PR middle-end/42233
32221         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
32222
32223 2010-02-19  Richard Guenther  <rguenther@suse.de>
32224
32225         PR tree-optimization/42944
32226         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
32227         test for aliasing with errno.
32228
32229 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
32230
32231         PR middle-end/42233
32232         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
32233         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
32234         * dojump.c: Include output.h.
32235         (inv): New inline function.
32236         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
32237         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
32238         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
32239         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
32240         argument, pass it down to other calls.
32241         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
32242         add REG_BR_PROB note to the conditional jump.
32243         * cfgexpand.c (add_reg_br_prob_note): Removed.
32244         (expand_gimple_cond): Don't call it, add the probability
32245         as last argument to jumpif_1/jumpifnot_1.
32246         * Makefile.in (dojump.o): Depend on output.h.
32247         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
32248         callers.
32249         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
32250         * stmt.c (do_jump_if_equal): Likewise.
32251         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
32252         * loop-unswitch.c (compare_and_jump_seq): Likewise.
32253         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
32254         Likewise.
32255         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
32256         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
32257         jumpifnot_1 callers.
32258         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
32259         callers.
32260         (store_expr): Adjust jumpifnot caller.
32261         (store_constructor): Adjust jumpif caller.
32262
32263         PR middle-end/42233
32264         * gimplify.c (gimple_boolify): For __builtin_expect call
32265         gimple_boolify also on its first argument.
32266
32267 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
32268
32269         * configure.ac (gnu-unique-object): Wrap regexps using [] in
32270         changequote block.
32271         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
32272         * configure: Regenerated.
32273
32274 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
32275
32276         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
32277         lang_hooks.types_compatible_p instead of comptypes.
32278
32279 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32280
32281         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
32282         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
32283         if __prefer_thumb__ is defined.
32284
32285 2010-02-18  Martin Jambor  <mjambor@suse.cz>
32286
32287         PR tree-optimization/43066
32288         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
32289         array with zero-sized element type.
32290
32291 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
32292
32293         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
32294         rtx, allocate struct var_loc_node here and return it to the
32295         caller, and only if it is actually needed.
32296         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
32297         move it earlier and return immediately if it returns NULL.
32298
32299 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
32300
32301         * config/sparc/gas.h: New file.  Restore
32302         TARGET_ASM_NAMED_SECTION to its ELF default.
32303         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
32304         check !HAVE_GNU_AS.
32305         * config/sparc/sparc.c (sparc_elf_asm_named_section):
32306         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
32307         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
32308         after sparc/sysv4.h.
32309
32310 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
32311
32312         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
32313
32314 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
32315
32316         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
32317         patterns from predicated pattern.
32318
32319 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
32320
32321         PR target/43103
32322         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
32323         for insn mnemonic suffix.
32324
32325 2010-02-17  Richard Guenther  <rguenther@suse.de>
32326
32327         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
32328         to loop PHI nodes.
32329
32330 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
32331
32332         PR debug/42918
32333         * caller-save.c (save_call_clobbered_regs): If BB ends with
32334         a DEBUG_INSN, move any notes in between last real insn and the last
32335         DEBUG_INSN after the last DEBUG_INSN.
32336
32337 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
32338
32339         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
32340         Fix return type.  Fix argument type.  Explain meaning of return value.
32341
32342 2010-02-16  Richard Guenther  <rguenther@suse.de>
32343
32344         PR tree-optimization/41043
32345         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
32346         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
32347         statements ...
32348         (vrp_visit_phi_node): ... but only for loop PHI nodes.
32349
32350 2010-02-16  Ira Rosen  <irar@il.ibm.com>
32351
32352         PR tree-optimization/43074
32353         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
32354         * tree-vect-loop.c (vect_analyze_loop_operations): Add
32355         vectorizable cycles in hybrid SLP check.
32356         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
32357
32358 2010-02-16  Richard Guenther  <rguenther@suse.de>
32359
32360         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
32361         (true_dependence): If memrefs_conflict_p computes must-alias
32362         trust it.  Move TBAA check after offset-based disambiguation.
32363         (canon_true_dependence): Likewise.
32364
32365 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
32366
32367         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
32368         * doc/invoke.texi: Document it.
32369         * var-tracking.c: Include toplev.h and params.h.
32370         (vt_find_locations): Return bool indicating success.  Compute
32371         hash sizes unconditionally.  Check new parameter, report.
32372         (variable_tracking_main_1): Check vt_find_locations results and
32373         retry.  Renamed from...
32374         (variable_tracking_main): ... this.  New wrapper to preserve
32375         flag_var_tracking_assignments.
32376         * Makefile.in (var-tracking.o): Adjust dependencies.
32377
32378 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
32379             Jakub Jelinek  <jakub@redhat.com>
32380
32381         PR target/42854
32382         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
32383         if weak_import attribute is present.
32384         * config/darwin.c (machopic_select_section): Likewise.
32385
32386 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
32387
32388         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
32389         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
32390         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
32391         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
32392
32393         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
32394         types.
32395
32396         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
32397         Fix argument types.
32398
32399         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
32400         Rewrite text to refer to the names.
32401
32402 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
32403
32404         * config/i386/i386-builtin-types.def
32405         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
32406         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
32407         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
32408         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
32409         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
32410         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
32411         IX86_BUILTIN_VPERMIL2PS256.
32412         (MULTI_ARG_4_DF2_DI_I): Defined.
32413         (MULTI_ARG_4_DF2_DI_I1): Defined.
32414         (MULTI_ARG_4_SF2_SI_I): Defined.
32415         (MULTI_ARG_4_SF2_SI_I1): Defined.
32416         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
32417         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
32418         __builtin_ia32_vpermil2ps256.
32419         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
32420         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
32421         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
32422         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
32423         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
32424         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
32425         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
32426         CODE_FOR_xop_vpermil2v8sf3.
32427         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
32428         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
32429         * config/i386/xopintrin.h (_mm_permute2_pd): New.
32430         (_mm256_permute2_pd): New.
32431         (_mm_permute2_ps): New.
32432         (_mm256_permute2_ps): New.
32433
32434 2010-02-15  Nick Clifton  <nickc@redhat.com>
32435
32436         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
32437         boolean parameters.  Use emit_jump_insn when emitting a pop
32438         instruction containing a return insn.
32439         (push): Use 'true' rather than '1' as second parameter to F.
32440         (h8300_expand_prologue): Likewise.
32441         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
32442         (h8300_expand_epilogue): Likewise.
32443
32444 2010-02-15  Richard Guenther  <rguenther@suse.de>
32445
32446         PR middle-end/43068
32447         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
32448         if that is zero.
32449
32450 2010-02-15  Nick Clifton  <nickc@redhat.com>
32451
32452         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
32453         delta.
32454
32455 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
32456
32457         * intl.c (fake_ngettext): New function.
32458         * intl.h (fake_ngettext): Declare.
32459         (ngettext): Define macro.
32460         * collect2.c (notice_translated): New function.
32461         (main): Use notice_translated and ngettext.
32462         * collect2.h (notice_translated): Declare.
32463
32464 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
32465
32466         * reorg.c (delete_computation): Comment fixes.
32467         * caller-save.c (setup_save_areas): Idem.
32468         * sel-sched-dump.c (dump_lv_set): Idem.
32469         * rtl.def: Idem.
32470
32471 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32472
32473         * config/s390/s390.c (s390_sched_init): New function.
32474         (TARGET_SCHED_INIT): Target hook defined.
32475
32476 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
32477             Jack Howarth  <howarth@bromo.med.uc.edu>
32478             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
32479
32480         PR target/42982
32481         Partial revert of unintended change in fix for PR41605.
32482         * config/darwin.h: Fix typo.
32483         * config/darwin9.h: Same.
32484
32485 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
32486
32487         * c-pch.c (pch_init): Clear v.
32488
32489 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32490
32491         PR middle-end/42930
32492         * graphite-scop-detection.c (graphite_can_represent_scev): Call
32493         graphite_can_represent_init for MULT_EXPR.
32494
32495 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32496
32497         PR middle-end/42914
32498         PR middle-end/42530
32499         * graphite-sese-to-poly.c (remove_phi): New.
32500         (translate_scalar_reduction_to_array): Call remove_phi.
32501
32502 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32503
32504         PR middle-end/42771
32505         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
32506         * graphite-clast-to-gimple.h (gloog): Update declaration.
32507         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
32508         * graphite-poly.h (struct poly_bb): Add missing comments.
32509         (struct scop): Add poly_scop_p field.
32510         (POLY_SCOP_P): New.
32511         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
32512         * graphite.c (graphite_transform_loops): Build the polyhedral
32513         representation for each scop before code generation.
32514         * sese.c (rename_variables_in_operand): Removed.
32515         (rename_variables_in_expr): Return the renamed expression.
32516         (rename_sese_parameters): New.
32517         * sese.h (rename_sese_parameters): Declared.
32518
32519 2010-02-11  Richard Guenther  <rguenther@suse.de>
32520
32521         PR tree-optimization/42998
32522         * tree-ssa-pre.c (create_expression_by_pieces): Treat
32523         POINTER_PLUS_EXPR properly.
32524
32525 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32526             Changpeng Fang  <changpeng.fang@amd.com>
32527
32528         PR middle-end/40886
32529         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
32530         the cost of an IV candidate when the IV is used in a test against zero.
32531
32532         * gcc.dg/tree-ssa/ivopts-3.c: New.
32533
32534 2010-02-11  Richard Guenther  <rguenther@suse.de>
32535
32536         PR lto/41664
32537         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
32538         pointer-vs-decl case by swapping refs.  Handle some cases
32539         of pointer-vs-decl disambiguations more conservatively.
32540         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
32541         to false after expanding.
32542
32543 2010-02-11  Richard Guenther  <rguenther@suse.de>
32544
32545         PR driver/43021
32546         * gcc.c (process_command): Handle LTO file@offset case more
32547         appropriately.
32548
32549 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
32550
32551         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
32552         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
32553         of DEBUG_INSNs.
32554         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
32555
32556         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
32557         if MEM's mode size isn't DWARF2_ADDR_SIZE.
32558         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
32559         Optimize eq/ne comparisons when both arguments are known to be
32560         zero-extended.
32561         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
32562         Don't mask operands unnecessarily if they are known to be already
32563         zero-extended.
32564
32565 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
32566
32567         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
32568         instead of loop.
32569
32570 2010-02-10  Richard Guenther  <rguenther@suse.de>
32571
32572         PR tree-optimization/43017
32573         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
32574         for wrapping signed arithmetic.
32575
32576 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
32577
32578         PR debug/43010
32579         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
32580         if no debug info should be emitted for it.
32581
32582 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
32583
32584         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
32585         note when flag_exceptions is set.
32586
32587 2010-02-10  Duncan Sands  <baldrick@free.fr>
32588
32589         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
32590
32591 2010-02-10  Richard Guenther  <rguenther@suse.de>
32592
32593         PR c/43007
32594         * tree.c (get_unwidened): Handle constants.
32595         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
32596
32597 2010-02-10  Martin Jambor  <mjambor@suse.cz>
32598
32599         PR lto/42985
32600         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
32601         check for variable argument counts independently.
32602
32603 2010-02-10  Christian Bruel  <christian.bruel@st.com>
32604
32605         PR target/42841
32606         * config/sh/sh.c (find_barrier): Increase length for non delayed
32607         conditional branches.
32608
32609 2010-02-10  Christian Bruel  <christian.bruel@st.com>
32610
32611         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
32612
32613 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
32614
32615         * builtins.c (set_builtin_user_assembler_name): Also handle
32616         ffs if int is smaller than word.
32617
32618 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
32619
32620         PR middle-end/42973
32621         * ira-conflicts.c (get_dup): Remove.
32622         (process_reg_shuffles): Add new parameter.  Use it as an
32623         additional guard for copy generation.
32624         (add_insn_allocno_copies): Rewrite.
32625
32626 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
32627
32628         * common.opt (fsched2-use-traces): Preserved for backward
32629         compatibility.
32630         * doc/invoke.texi: Remove the documentation about option
32631         -fsched2-use-traces.
32632         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
32633         flag_sched2_use_traces.
32634         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
32635         the backward compatibility flag section.
32636
32637 2010-02-09  Richard Guenther  <rguenther@suse.de>
32638
32639         PR tree-optimization/43008
32640         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
32641         make HEAP variables initialized from global memory if they
32642         are not known builtin functions.
32643         (find_func_aliases): Adjust.
32644
32645 2010-02-09  Richard Guenther  <rguenther@suse.de>
32646
32647         PR tree-optimization/43000
32648         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
32649         arithmetic manually.
32650
32651 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
32652
32653         PR tree-optimization/42931
32654         * tree-loop-linear.c (try_interchange_loops): Don't call
32655         double_int_mul if estimated_loop_iterations failed.
32656
32657 2010-02-08  Martin Jambor  <mjambor@suse.cz>
32658
32659         PR middle-end/42898
32660         * tree-sra.c (build_accesses_from_assign): Do not mark in
32661         should_scalarize_away_bitmap if stmt has volatile ops.
32662         (sra_modify_assign): Do not process assigns piecemeal if if stmt
32663         has volatile ops.
32664
32665 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
32666
32667         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
32668
32669 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
32670
32671         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
32672         before the pattern.
32673
32674 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
32675
32676         PR middle-end/42946
32677         * df-core.c (df_finish_pass): Change type of saved_flags to int.
32678
32679 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
32680
32681         PR middle-end/42988
32682         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
32683         to unknown_dependence.
32684         (graphite_legal_transform_dr): Handle the unknown_dependence.
32685         (graphite_carried_dependence_level_k): Same.
32686
32687 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
32688
32689         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
32690
32691 2010-02-07  Richard Guenther  <rguenther@suse.de>
32692
32693         PR middle-end/42991
32694         * expr.c (get_inner_reference): Always initialize *pbitsize.
32695
32696 2010-02-07  Richard Guenther  <rguenther@suse.de>
32697
32698         PR middle-end/42956
32699         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
32700         new ARRAY_REFs on variable size element or minimal index arrays.
32701         Complete.
32702         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
32703         gimple_fold_indirect_ref.
32704
32705 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
32706
32707         PR target/42957
32708         * arm.c (arm_override_options): Just return if the user has specified
32709         an invalid fpu name.
32710
32711 2010-02-03  Jason Merrill  <jason@redhat.com>
32712
32713         PR c++/42870
32714         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
32715         i386_pe_maybe_record_exported_symbol.
32716
32717 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
32718
32719         PR target/42924
32720         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32721         (pa_delegitimize_address): New function.
32722
32723 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
32724
32725         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
32726         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
32727
32728 2010-02-05  Richard Guenther  <rguenther@suse.de>
32729
32730         PR lto/42762
32731         * lto-streamer-in.c (get_resolution): Deal with references
32732         to undefined functions.
32733
32734 2010-02-05  Richard Guenther  <rguenther@suse.de>
32735
32736         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
32737         (fold_const_aggregate_ref): Likewise.
32738         (ccp_fold_stmt): Substitute loads.
32739         (maybe_fold_reference): Verify types before substituting.
32740         Unshare properly.
32741         (fold_gimple_assign): Unshare properly.
32742         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
32743
32744 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
32745
32746         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
32747         for rs6000_gen_cell_microcode.
32748
32749 2010-02-04  Richard Guenther  <rguenther@suse.de>
32750
32751         PR rtl-optimization/42952
32752         * dse.c (const_or_frame_p): Remove MEM handling.
32753
32754 2010-02-04  Nick Clifton  <nickc@redhat.com>
32755
32756         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
32757         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
32758         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
32759         (mn10300_asm_output_mi_thunk): New function.
32760         (mn10300_can_output_mu_thunk): New function.
32761         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
32762         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
32763         (FUNCTION_ARG): Delete incorrect comment.
32764
32765 2010-02-03  Jason Merrill  <jason@redhat.com>
32766
32767         PR c++/40138
32768         * fold-const.c (operand_equal_p): Handle erroneous types.
32769
32770 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
32771
32772         * config/h8300/h8300.md (can_delay): Fix attibute condition.
32773
32774 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
32775
32776         PR rtl-optimization/42941
32777         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
32778         of xmalloc.
32779
32780 2010-02-03  Jason Merrill  <jason@redhat.com>
32781
32782         PR c++/35652
32783         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
32784
32785 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
32786
32787         PR debug/42896
32788         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
32789         (cselib_reset_table): Renamed from...
32790         (cselib_reset_table_with_next_value): ... this.
32791         (cselib_get_next_uid): Renamed from...
32792         (cselib_get_next_unknown_value): ... this.
32793         * cselib.c (next_uid): Renamed from...
32794         (next_unknown_value): ... this.
32795         (cselib_clear_table): Adjust.
32796         (cselib_reset_table): Adjust.  Renamed from...
32797         (cselib_reset_table_with_next_value): ... this.
32798         (cselib_get_next_uid): Adjust.  Renamed from...
32799         (cselib_get_next_unknown_value): ... this.
32800         (get_value_hash): Use hash.
32801         (cselib_hash_rtx): Likewise.
32802         (new_cselib_val): Adjust.  Set and dump uid.
32803         (cselib_lookup_mem): Pass next_uid as hash.
32804         (cselib_subst_to_values): Likewise.
32805         (cselib_log_lookup): Dump uid.
32806         (cselib_lookup): Pass next_uid as hash.  Adjust.
32807         (cselib_process_insn): Adjust.
32808         (cselib_init): Initialize next_uid.
32809         (cselib_finish): Adjust.
32810         (dump_cselib_table): Likewise.
32811         * dse.c (canon_address): Dump value uid.
32812         * print-rtl.c (print_rtx): Print value uid.
32813         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
32814         (dvuid): New type.
32815         (dv_uid): New function, sort of renamed from...
32816         (dv_htab_hash): ... this, reimplemented in terms of it and...
32817         (dv_uid2hash): ... this.  New.
32818         (variable_htab_eq): Drop excess assertions.
32819         (tie_break_pointers): Removed.
32820         (canon_value_cmp): Compare uids.
32821         (variable_post_merge_New_vals): Print uids.
32822         (vt_add_function_parameters): Adjust.
32823         (vt_initialize): Reset table.  Adjust.
32824
32825 2010-02-03  Richard Guenther  <rguenther@suse.de>
32826
32827         PR tree-optimization/42944
32828         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
32829         (call_may_clobber_ref_p_1): Likewise.  Properly handle
32830         malloc and calloc clobbering errno.
32831
32832 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
32833
32834         * doc/invoke.texi: Fix name of sched1 dump.
32835
32836         * opts.c (decode_options): Set flag_tree_switch_conversion
32837         only conditionally on optimize >= 2.
32838
32839         * gcse.c: Assorted comment fixes in pass description.
32840
32841 2010-02-03  Anthony Green  <green@moxielogic.com>
32842
32843         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
32844         nop padding in order to maintain alignment of storage location of
32845         target function address.
32846         (moxie_trampoline_init): Store target function address at newly
32847         aligned location.
32848         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
32849         to 32.
32850         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
32851
32852 2010-02-03  Richard Guenther  <rguenther@suse.de>
32853
32854         PR middle-end/42927
32855         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
32856
32857 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32858
32859         * config.gcc: Reenable check for obsolete targets.
32860         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
32861         mips-sgi-irix6.[0-4]*.
32862
32863 2010-02-02  Nick Clifton  <nickc@redhat.com>
32864
32865         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
32866         constant size of 4 as being the same as 0.
32867         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
32868         can take values in the range 0..4.
32869
32870 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
32871
32872         PR java/41991
32873         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
32874         as _darwin10_Unwind_FindEnclosingFunction().
32875         * libgcc-libsystem.ver: New.
32876
32877 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
32878
32879         PR target/41399
32880         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
32881         implicitly set registers.
32882
32883 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
32884
32885         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
32886         (arm_override_options): Allow automatic selection of the thread
32887         pointer register if thumb2.
32888         (legitimize_pic_address): Improve code sequences for Thumb2.
32889         (arm_call_tls_get_addr): Likewise.
32890         (legitimize_tls_address): Likewise.
32891         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
32892         (pic_load_addr_32bit): ... this.  New named pattern.
32893         * thumb2.md (pic_load_addr_thumb2): Delete.
32894         (pic_load_dot_plus_four): Delete.
32895         (tls_load_dot_plus_four): New named pattern.
32896
32897 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32898
32899         PR libgomp/29986
32900         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
32901         Document fix for TLS bug.
32902
32903 2010-01-31  Richard Guenther  <rguenther@suse.de>
32904
32905         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
32906         conservatively correct.
32907
32908 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32909
32910         PR target/42850
32911         Revert:
32912         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32913
32914         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
32915
32916 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32917
32918         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
32919
32920 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
32921
32922         * config.gcc: Adjust order of makefile fragments for mingw targets.
32923
32924 2010-01-31  Richard Guenther  <rguenther@suse.de>
32925
32926         PR middle-end/42898
32927         * gimplify.c (gimplify_init_constructor): For volatile LHS
32928         initialize a temporary.
32929
32930 2010-01-31  Matthias Klose  <doko@ubuntu.com>
32931
32932         * configure.ac: Fix __stack_chk_fail check for cross builds configured
32933         --with-headers
32934         * configure: Regenerate.
32935
32936 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
32937
32938         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
32939         the same alias set and their sizes different constantness.
32940         (aliasing_component_refs_p): Revert 2009-10-24 change.
32941
32942 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32943
32944         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
32945         unused.
32946
32947 2010-01-29  Richard Guenther  <rguenther@suse.de>
32948
32949         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
32950         Assert we successfully updated the call.
32951
32952 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
32953
32954         PR rtl-optimization/42889
32955         * df.h (df_set_bb_dirty_nonlr): New prototype.
32956         * df-core.c (df_set_bb_dirty_nonlr): New function.
32957         * df-scan.c (df_insn_rescan): Call it instead of
32958         df_set_bb_dirty for DEBUG_INSNs.
32959
32960 2010-01-29  Richard Guenther  <rguenther@suse.de>
32961
32962         PR middle-end/37448
32963         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
32964         quadratic behavior in most cases.
32965
32966 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
32967
32968         PR target/42891
32969         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
32970         in the call to gen_x86_movsicc_0_m1.
32971
32972 2010-01-28  Richard Guenther  <rguenther@suse.de>
32973
32974         PR tree-optimization/42871
32975         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
32976
32977 2010-01-28  Richard Guenther  <rguenther@suse.de>
32978
32979         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
32980         into call arguments.
32981
32982 2010-01-28  Richard Guenther  <rguenther@suse.de>
32983
32984         PR middle-end/42883
32985         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
32986         the forwarder if the destination is an EH landing pad.
32987
32988 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
32989
32990         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
32991         block list passed to gimple_duplicate_sese_tail.
32992         (parallelize_loops): Avoid parallelization when the function
32993         has_nonlocal_label.
32994         Avoid parallelization when the preheader is IRREDUCIBLE.
32995         Try to optimize when estimated_loop_iterations_int is unresolved.
32996         Add the loop's location to the dump file.
32997         * tree-cfg.c (add_phi_args_after_redirect): Remove.
32998         (gimple_duplicate_sese_tail): Remove the check for the latch.
32999         Redirect nexits to the exit block.
33000         Remove handling of the incoming edges to the latch.
33001         Redirect the backedge from the copied latch to the exit bb.
33002
33003 2010-01-28  Michael Matz  <matz@suse.de>
33004
33005         PR target/42881
33006         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
33007         Wrap force_reg into a sequence, emit it before user.
33008
33009 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
33010
33011         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
33012         (arm_rev): New.
33013         (arm_legacy_rev): Likewise.
33014         (thumb_legacy_rev): Likewise.
33015
33016 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
33017
33018         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
33019         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
33020         on MEM's address failed, try avoid_constant_pool_reference and
33021         recurse if it returned something different.
33022         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
33023         address, try avoid_constant_pool_reference and recurse if it
33024         returned something different.
33025         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
33026         address and avoid_constant_pool_reference returned something
33027         different, don't set have_address.
33028
33029 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
33030
33031         PR debug/42861
33032         * var-tracking.c (val_store): Add modified argument, obey it.
33033         Adjust callers.
33034         (count_uses): Move down logging of main.
33035         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
33036         don't need resolution.
33037         (emit_notes_in_bb): Likewise.
33038
33039 2010-01-27  Richard Guenther  <rguenther@suse.de>
33040
33041         PR middle-end/42878
33042         * tree-inline.c (remap_decl): Delay remapping of SSA name
33043         default definitions until we need them.
33044
33045 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
33046
33047         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
33048         (rs6000_delegitimize_address): New function.
33049
33050         * config/s390/s390.c (s390_delegitimize_address): Call
33051         delegitimize_mem_from_attrs.
33052
33053         PR middle-end/42874
33054         * tree-inline.c (cannot_copy_type_1): Removed.
33055         (copy_forbidden): Don't forbid copying of functions containing
33056         records/unions with variable length fields.
33057
33058 2010-01-27  Christian Bruel  <christian.bruel@st.com>
33059
33060         Revert:
33061         PR target/42841
33062         * config/sh/sh.c (find_barrier): Increase length for non delayed
33063         conditional branches.
33064
33065 2010-01-27  Matthias Klose  <doko@ubuntu.com>
33066
33067         * configure.ac (gnu-unique-object): Fix ldd version check.
33068         * configure: Regenerate.
33069
33070 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33071
33072         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
33073         HAVE_GNU_AS value.
33074         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
33075         Test for HAVE_GNU_AS value.
33076
33077 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33078
33079         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
33080         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
33081         INT64_TYPE): Define.
33082         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
33083         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
33084         INT_LEAST64_TYPE): Define.
33085         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
33086         UINT_LEAST64_TYPE): Define.
33087         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
33088         INT_FAST64_TYPE): Define.
33089         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
33090         UINT_FAST64_TYPE): Define.
33091         (INTMAX_TYPE, UINTMAX_TYPE): Define.
33092         (INTPTR_TYPE, UINTPTR_TYPE): Define.
33093         (SIG_ATOMIC_TYPE): Define.
33094
33095 2010-01-26  Richard Guenther  <rguenther@suse.de>
33096
33097         * df-scan.c (df_scan_set_bb_info): Remove assert.
33098         (df_insn_rescan_debug_internal): Merge asserts.
33099         (df_install_ref): Likewise.
33100         (df_mark_reg): Use bitmap_set_range.
33101         (df_hard_reg_used_p): Remove assert.
33102         (df_hard_reg_used_count): Likewise.
33103
33104 2010-01-26  Richard Guenther  <rguenther@suse.de>
33105
33106         PR rtl-optimization/42685
33107         * web.c (web_main): Ignore DEBUG_INSNs.
33108
33109 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
33110
33111         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
33112
33113         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
33114         Fix types of fndecl and arglist parameters.
33115
33116 2010-01-26  Richard Guenther  <rguenther@suse.de>
33117
33118         PR middle-end/42806
33119         * tree-eh.c (unsplit_eh): Skip debug insns.
33120
33121 2010-01-26  Richard Guenther  <rguenther@suse.de>
33122
33123         PR tree-optimization/42250
33124         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
33125
33126 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
33127
33128         PR fortran/42866
33129         * omp-low.c (expand_omp_sections): Only use single_pred if
33130         l2_bb is single_pred_p.
33131
33132 2010-01-25  Christian Bruel  <christian.bruel@st.com>
33133
33134         PR target/42841
33135         * config/sh/sh.c (find_barrier): Increase length for non delayed
33136         conditional branches.
33137         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
33138
33139 2010-01-24  David S. Miller  <davem@davemloft.net>
33140
33141         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
33142         define if not using GAS.
33143         * config/sparc/sparc.c (sparc_elf_asm_named_section):
33144         Likewise.  Delete SECTION_MERGE code, which is only applicable
33145         when using GAS.
33146
33147 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
33148
33149         PR c++/42748
33150         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
33151         mangling of va_list in system headers.
33152
33153 2010-01-23  Toon Moene  <toon@moene.org>
33154
33155         * tree-predcom.c (combine_chains): Return NULL, not false.
33156
33157 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
33158
33159         * tree-loop-distribution.c (distribute_loop): Fix declaration and
33160         initialization of variable res to agree with return type.
33161
33162 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
33163
33164         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
33165         * tree-sra.c: Add include of expr.h.
33166
33167 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
33168
33169         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
33170         insert the debug stmt on the single non-EH edge from the stmt.
33171
33172 2010-01-22  Richard Henderson  <rth@redhat.com>
33173
33174         PR tree-opt/42833
33175         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
33176         the RHS until after generate_subtree_copies has insertted its
33177         code before the current statement.
33178
33179 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
33180
33181         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
33182
33183         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
33184
33185 2010-01-21  Martin Jambor  <mjambor@suse.cz>
33186
33187         PR tree-optimization/42585
33188         * tree-sra.c (struct access): New field grp_total_scalarization.
33189         (dump_access): Dump the new field.
33190         (should_scalarize_away_bitmap): New variable.
33191         (cannot_scalarize_away_bitmap): Likewise.
33192         (sra_initialize): Allocate new bitmaps.
33193         (sra_deinitialize): Free new bitmaps.
33194         (create_access_1): New function.
33195         (create_access): Parts moved to create_access_1.
33196         (type_consists_of_records_p): New function.
33197         (completely_scalarize_record): Likewise.
33198         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
33199         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
33200         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
33201         access.
33202         (analyze_all_variable_accesses): Completely scalarize small eligible
33203         records.
33204
33205 2010-01-21  Martin Jambor  <mjambor@suse.cz>
33206
33207         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
33208
33209 2010-01-21  Andrew Haley  <aph@redhat.com>
33210
33211         * gcc.c (process_command): Move lang_specific_driver before
33212         setting cc_libexec_prefix.
33213
33214 2010-01-21  Richard Guenther  <rguenther@suse.de>
33215
33216         PR middle-end/19988
33217         * fold-const.c (negate_expr_p): Pretend only negative
33218         real constants are easily negatable.
33219
33220 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
33221             Jason Merrill  <jason@redhat.com>
33222
33223         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
33224         (TYPE_TRANSPARENT_AGGR): this, for union and record.
33225         * calls.c (initialize argument_information): Handle it.
33226         * c-common.c (handle_transparent_union_attribute): Use new name.
33227         * c-decl.c (finish_struct): Ditto.
33228         * c-typeck.c (type_lists_compatible_p): Ditto.
33229         (convert_for_assignment): Use new name and also handle record.
33230         * function.c (aggregate_value_p): Handle it.
33231         (pass_by_reference): Ditto.
33232         (assign_parm_data_types): Ditto.
33233         * print-tree.c (print_node): Ditto.
33234         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
33235         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
33236         * tree.c (first_field): New fn.
33237
33238 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
33239
33240         PR target/42818
33241         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
33242         even when linking statically, for now.
33243
33244 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
33245
33246         PR debug/42715
33247         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
33248         without a cselib val.
33249         (count_uses): Accept MO_VAL_SET with no val on stores.
33250         (add_stores): Likewise.
33251
33252 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33253
33254         * var-tracking.c (check_value_val): Add a compile time assertion.
33255         (dv_is_decl_p): Simplify.
33256         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
33257         gcc_assert if ENABLE_CHECKING.
33258
33259 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
33260
33261         PR debug/42782
33262         * var-tracking.c: Include tree-flow.h.
33263         (mem_dies_at_call): New.
33264         (dataflow_set_preserve_mem_locs): Use it.
33265         (dataflow_set_remove_mem_locs): Likewise.
33266         (dump_var): Renamed from dump_variable.  Adjust all callers.
33267         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
33268         * Makefile.in (var-tracking.o): Adjust deps.
33269
33270 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
33271
33272         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
33273
33274 2010-01-20  Richard Guenther  <rguenther@suse.de>
33275
33276         PR tree-optimization/42717
33277         * tree-ssa-dce.c (get_live_post_dom): Remove.
33278         (forward_edge_to_pdom): Take an arbitrary edge to copy
33279         degenerate PHI args from.
33280         (remove_dead_stmt): Use the first post-dominator even if it
33281         does not contain live statements as redirection destination.
33282
33283 2010-01-20  Richard Guenther  <rguenther@suse.de>
33284
33285         * tree-inline.c (estimate_num_insns): Handle EH builtins.
33286
33287 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33288
33289         * sel-sched.c (create_speculation_check): Remove set but not used
33290         variable twin.
33291         (try_transformation_cache): Remove set but not used variable ds.
33292         (calculate_privileged_insns): Remove set but not used variables
33293         cur_insn and min_spec_insn.
33294         (find_best_expr): Remove set but not used variable avail_n.
33295         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
33296         variable e.
33297         * cgraphunit.c (assemble_thunk): Remove set but not used variable
33298         false_label.
33299         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
33300         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
33301         new_scop_exit_edge.
33302
33303 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
33304
33305         PR bootstrap/42786
33306         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
33307         cpu types.  Add support for *-sse3 cpu types.
33308         (x86_64-*-*): Ditto.
33309
33310 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33311
33312         PR middle-end/42803
33313         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
33314         argument, call initializer_constant_valid_p_1 instead of
33315         initializer_constant_valid_p, pass CACHE to it, return NULL
33316         immediately if first call returns NULL.
33317         (initializer_constant_valid_p_1): New function.
33318         (initializer_constant_valid_p): Use it.
33319
33320 2010-01-20  Thomas Quinot  <quinot@adacore.com>
33321
33322         * tree.def (PLACEHOLDER_EXPR): Fix comment.
33323
33324 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33325
33326         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
33327         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
33328         (loc_list_from_tree): Don't handle unsigned division.  Handle
33329         signed modulo using DW_OP_{over,over,div,mul,minus}.
33330         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
33331         modulo instead of signed.
33332
33333 2010-01-20  DJ Delorie  <dj@redhat.com>
33334
33335         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
33336         (Fpa): Pass it
33337         (h8300_emit_stack_adjustment): Propogate it.
33338         (push): Pass it.
33339         (h8300_expand_prologue): Likewise.
33340         (h8300_expand_epilogue): Likewise.
33341
33342 2010-01-19  Michael Matz  <matz@suse.de>
33343
33344         PR tree-optimization/41783
33345         * tree-data-ref.c (toplevel): Include flags.h.
33346         (dump_data_dependence_relation):  Also dump the inputs if the
33347         result will be unknown.
33348         (split_constant_offset_1): Look through some conversions.
33349         * tree-predcom.c (determine_roots_comp): Restart a new chain if
33350         the offset from last element is too large.
33351         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
33352         (reassociate_to_the_same_stmt): Handle vector registers.
33353         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
33354         (e.g. conversions).
33355         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
33356         wide_prolog_niters argument, emit widening instructions.
33357         (vect_do_peeling_for_alignment): Adjust caller, use widened
33358         variant of the iteration cound.
33359         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
33360
33361 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33362
33363         PR target/38697
33364         * config/arm/neon-testgen.m (emit_automatics): New parameter
33365         features. Adjust for Fixed_return_reg feature.
33366         (test_intrinsic): Call emit_automatics with new feature.
33367         * config/arm/neon.ml: Update copyright years.
33368         (features): New Fixed_return_reg feature.
33369         (ops): Update feature for Vget_low.
33370
33371 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
33372
33373         PR tree-optimization/42719
33374         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
33375         stmt uses.
33376
33377         PR debug/42728
33378         * fwprop.c (all_uses_available_at): Return false if def_set dest
33379         is a REG that is used in def_insn.
33380
33381 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
33382
33383         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
33384
33385         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
33386         Add argument names.
33387
33388         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
33389
33390         * target.h (struct gcc_target) <secondary_reload>: Change type
33391         of last argument to secondary_reload_info *.
33392
33393 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
33394
33395         PR target/42774
33396         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
33397         memory references with unaligned offsets.  Remove CQImode handling.
33398         (unaligned_memory_operand): Return 1 for memory references with
33399         unaligned offsets.  Remove CQImode handling.
33400
33401 2010-01-18  Richard Guenther  <rguenther@suse.de>
33402
33403         PR middle-end/39954
33404         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
33405         builtin calls.
33406
33407 2010-01-18  Richard Guenther  <rguenther@suse.de>
33408
33409         PR tree-optimization/42781
33410         * tree-ssa-structalias.c (find_what_var_points_to): Skip
33411         restrict processing only if the original variable was artificial.
33412
33413 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
33414
33415         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
33416         find number of popped argument bytes.
33417
33418         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
33419         Fix the text that describes the return value for invalid insns.
33420
33421         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
33422
33423         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
33424         Clarify what 'cost of the -dependence' is.  Fix quoting.
33425
33426         * toplev.c (default_get_pch_validity): Rename argument to "sz".
33427         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
33428
33429 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
33430
33431         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
33432         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
33433
33434 2010-01-17  Richard Guenther  <rguenther@suse.de>
33435
33436         PR middle-end/42248
33437         * function.c (split_complex_args): Take a VEC to modify.
33438         (assign_parms_augmented_arg_list): Build a VEC instead of
33439         a chain of PARM_DECLs.
33440         (assign_parms_unsplit_complex): Take a VEC of arguments.
33441         Do not fixup unmodified parms.
33442         (assign_parms): Deal with the VEC.
33443         (gimplify_parameters): Likewise.
33444
33445 2010-01-17  Richard Guenther  <rguenther@suse.de>
33446
33447         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
33448         node existence check.
33449         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
33450         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
33451         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
33452         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
33453         (gimple_execute_on_growing_pred): Likewise.
33454
33455 2010-01-17  Richard Guenther  <rguenther@suse.de>
33456
33457         PR tree-optimization/42773
33458         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
33459         (compute_antic_aux): Likewise.
33460         (compute_partial_antic_aux): Likewise.
33461
33462 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
33463
33464         PR debug/42767
33465         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
33466         and US_TRUNCATE.
33467
33468 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
33469
33470         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
33471         appearance.
33472
33473         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
33474         Fix markup for strict argument.
33475
33476         (TARGET_SCHED_REORDER2): Fix argument types.
33477
33478         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
33479         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
33480
33481         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
33482         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
33483
33484         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
33485         Add argument name.
33486
33487         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
33488         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
33489         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
33490         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
33491         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
33492
33493         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
33494
33495         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
33496
33497         (TARGET_ASM_RELOC_RW_MASK): Add return type.
33498         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
33499
33500         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
33501
33502         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
33503         Use prototype.
33504
33505         (TARGET_ASM_NAMED_SECTION): Fix argument list.
33506
33507         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
33508         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
33509
33510         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
33511
33512         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
33513
33514         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
33515         referring to it.  Fix language.
33516
33517         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
33518
33519         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
33520
33521         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
33522
33523         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
33524
33525         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
33526         '@var{stream}.  Remove stray 'and'.
33527
33528         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
33529
33530         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
33531
33532         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
33533
33534         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
33535         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
33536
33537         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
33538         Fix description of return value.
33539         Rename argument "sz" to "len."
33540
33541         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
33542         Clarify meaning of 'true' return value.
33543
33544         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
33545
33546         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
33547         rep_mode versus mode_rep.
33548
33549         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
33550
33551         (TARGET_BUILTIN_DECL): Fix name.
33552
33553         (TARGET_COMMUTATIVE_P): Fix type of first argument.
33554
33555         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
33556
33557         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
33558
33559         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
33560
33561         (TARGET_RELAXED_ORDERING): Use @deftypevr.
33562
33563         (TARGET_GET_DRAP_RTX): Note that this is a hook.
33564         Clarify language.
33565
33566         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
33567         Rename argument tm_fn to md_fn.
33568
33569         (TARGET_OPTION_PRINT): Fix argument list.
33570
33571 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
33572
33573         PR target/42664
33574         * config/i386/i386.c (ix86_fixup_binary_operands):
33575         Revert FMA4 fixup of operands.
33576
33577 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33578
33579         PR other/42525
33580         * Makefile.in (write_entries_to_file, install-plugin):
33581         Use \012 instead of \n with tr.
33582
33583 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
33584
33585         * configure.ac (HAVE_AS_REF): New C macro.
33586         * configure: Regenerate.
33587         * config.in: Likewise.
33588         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
33589         if HAVE_AS_REF.
33590         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
33591         if HAVE_AS_REF.
33592
33593 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
33594
33595         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
33596
33597         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
33598
33599         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
33600
33601         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
33602
33603         (TARGET_IN_SMALL_DATA_P): Fix argument type.
33604
33605         (TARGET_BINDS_LOCAL_P): Fix argument type.
33606
33607         (TARGET_ASM_FILE_END): Use prototype.
33608
33609         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
33610
33611         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
33612
33613         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
33614
33615         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
33616
33617         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
33618         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
33619
33620         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
33621         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
33622
33623         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
33624         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
33625         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
33626         (TARGET_ADDR_SPACE_CONVERT): Likewise.
33627
33628         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
33629
33630         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
33631
33632         (TARGET_INIT_BUILTINS): Use prototype.
33633
33634         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
33635         Put 'const char *' in braces.  Fix parameter types.
33636         (TARGET_INVALID_CONVERSION): Fix parameter types.
33637         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
33638         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
33639
33640         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
33641         Fix argument type.
33642
33643         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
33644
33645         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
33646
33647 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
33648
33649         * doc/tm.texi (TARGET_HELP): Fix return type.
33650
33651         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
33652         in braces.  Fix argument types.
33653
33654         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
33655
33656         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
33657
33658         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
33659
33660         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
33661         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
33662
33663         (TARGET_MANGLE_TYPE): Fix argument types.
33664
33665         (TARGET_IRA_COVER_CLASSES): Use prototype.
33666
33667         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
33668
33669         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
33670
33671         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
33672
33673         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
33674
33675         (TARGET_CALLEE_COPIES): Fix argument types.
33676
33677         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
33678
33679         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
33680
33681         (TARGET_FUNCTION_VALUE): Fix argument types.
33682
33683         (TARGET_RETURN_IN_MSB): Fix argument type.
33684
33685         (TARGET_RETURN_IN_MEMORY): Fix argument types.
33686
33687         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
33688
33689         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
33690
33691         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
33692         agree with return type.
33693
33694         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
33695
33696 2010-01-15  Jing Yu  <jingyu@google.com>
33697
33698         PR rtl-optimization/42691
33699         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
33700         a pseudo to a constant and are merged, and adjust comments.
33701
33702 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
33703
33704         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
33705
33706 2010-01-15  Richard Guenther  <rguenther@suse.de>
33707
33708         PR middle-end/42739
33709         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
33710         labels of computed or non-local gotos to the destination.
33711         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
33712         landing pad label is the first label.
33713
33714 2010-01-15  Richard Guenther  <rguenther@suse.de>
33715
33716         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
33717
33718 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
33719
33720         PR target/42747
33721         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
33722         to allow generation of the xssqrtdp instruction on power7.
33723         (sqrtdf2_fpr): Ditto.
33724
33725 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
33726
33727         PR middle-end/42674
33728         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
33729         functions with noreturn attribute.
33730
33731         PR c++/42608
33732         * varasm.c (declare_weak): Add weak attribute to decl if it
33733         doesn't have one already.
33734         (assemble_external): Only add decls to weak_decls if they also
33735         have weak attribute.
33736
33737 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
33738
33739         * var-tracking.c (var_reg_delete): Don't delete the association
33740         between REGs and values or one-part variables if the register
33741         isn't clobbered.
33742
33743 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
33744
33745         PR debug/42657
33746         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
33747         because its first operand is a non-localized variable.
33748
33749 2010-01-14  Martin Jambor  <mjambor@suse.cz>
33750
33751         PR tree-optimization/42706
33752         * tree-sra.c (encountered_recursive_call): New variable.
33753         (encountered_unchangable_recursive_call): Likewise.
33754         (sra_initialize): Initialize both new variables.
33755         (callsite_has_enough_arguments_p): New function.
33756         (scan_function): Call decl and flags check only for IPA-SRA, check
33757         whether there is a recursive call and whether it has enough arguments.
33758         (all_callers_have_enough_arguments_p): New function.
33759         (convert_callers): Look for recursive calls only when
33760         encountered_recursive_call is set.
33761         (ipa_early_sra): Bail out either if
33762         !all_callers_have_enough_arguments_p or
33763         encountered_unchangable_recursive_call.
33764
33765 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33766
33767         * sel-sched.c: Add 2010 to copyright years.
33768         * sel-sched-ir.c: Likewise.
33769         * sel-sched-ir.h: Likewise.
33770
33771 2010-01-14  Martin Jambor  <mjambor@suse.cz>
33772
33773         PR tree-optimization/42714
33774         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
33775         constructors specially.
33776
33777 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33778
33779         * config/i386/drivers-i386.c (detect_caches_intel):
33780         Add l2sizekb parameter and fill in.
33781         (host_detect_local_cpu): Add l2sizekb, fill in.
33782         Add Atom small cache heuristic.
33783
33784 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33785
33786         * config/i386/drivers-i386.c (detect_caches_cpuid4):
33787         Add level3 parameter and fill in.
33788         (detect_caches_intel): Handle level3 cache.
33789
33790 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33791
33792         * config/i386/drivers-i386.c (host_detect_local_cpu):
33793         Fix core duo detection.
33794
33795 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33796
33797         * config/i386/drivers-i386.c (host_detect_local_cpu):
33798         Fix Atom detection.
33799
33800 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33801
33802         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
33803         (rs6000_variable_issue_1): this.  Use...
33804         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
33805
33806 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33807
33808         * sel-sched-ir.c (sel_restore_other_notes): Rename to
33809         sel_restore_notes.  Update all callers.  Call reemit_notes
33810         for all insns.
33811
33812 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33813
33814         PR rtl-optimization/42246
33815         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
33816         loops.
33817
33818 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33819
33820         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
33821         all successors is the same as number of successors in current region.
33822
33823 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33824
33825         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
33826         to rename is not separable.  Otherwise check that its LHS is not NULL.
33827
33828 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33829
33830         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
33831
33832 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33833
33834         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
33835         available registers when failed to discover LHS register class.
33836         Fix indentation.  Update comment.
33837
33838 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33839             Alexander Monakov  <amonakov@ispras.ru>
33840
33841         PR rtl-optimization/42389
33842         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
33843         to can_issue_more.
33844         (advance_state_on_fence): Likewise.
33845         (sel_target_adjust_priority): Print debug output only when
33846         sched_verbose >= 4, not 2.
33847         (get_expr_cost): Do not issue all unique insns on the next cycle.
33848         (fill_insns): Initialize can_issue_more from the value saved
33849         with the fence.
33850         * sel-sched-ir.c (flist_add): New parameter issue_more.
33851         Init FENCE_ISSUE_MORE with it.
33852         (merge_fences): Likewise.
33853         (init_fences): Update call to flist_add.
33854         (add_to_fences, add_clean_fence_to_fences)
33855         (add_dirty_fence_to_fences): Likewise.
33856         (move_fence_to_fences): Update call to merge_fences.
33857         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
33858         sched groups.
33859         * sel-sched-ir.h (struct _fence): New field issue_more.
33860         (FENCE_ISSUE_MORE): New accessor macro.
33861
33862 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33863
33864         PR rtl-optimization/42388
33865         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
33866         that have no predecessors nor successors.  Do not call move_bb_info
33867         for empty blocks outside of current region.
33868
33869 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33870
33871         PR rtl-optimization/42294
33872         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
33873         * sel-sched.c (move_exprs_to_boundary): Transitively add all
33874         originators' originators.
33875
33876 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33877
33878         PR rtl-optimization/39453
33879         PR rtl-optimization/42246
33880         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
33881         for pipelining_p.
33882         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
33883
33884 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33885             Alexander Monakov  <amonakov@ispras.ru>
33886
33887         PR middle-end/42245
33888         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
33889         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
33890         argument.  Update all callers.
33891         (tidy_control_flow): ... and here.  Recompute topological order
33892         of basic blocks in region if necessary.
33893         (sel_redirect_edge_and_branch): Change return type.  Return true
33894         if topological order might have been invalidated.
33895         (purge_empty_blocks): Export and move from...
33896         * sel-sched.c (purge_empty_blocks): ... here.
33897         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
33898         (maybe_tidy_empty_bb): Delete prototype.
33899         (purge_empty_blocks): Declare.
33900
33901 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33902
33903         PR rtl-optimization/42249
33904         * sel-sched.c (try_replace_dest_reg): When chosen register
33905         and original register is the same, do not bail out early, but
33906         still check all original insns for validity of replacing destination
33907         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
33908         in this case.
33909
33910 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
33911
33912         PR c/42721
33913         Port from no-undefined-overflow branch:
33914         2009-03-09  Richard Guenther  <rguenther@suse.de>
33915
33916         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
33917
33918 2010-01-14  Richard Guenther  <rguenther@suse.de>
33919
33920         PR lto/42665
33921         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
33922
33923 2010-01-14  Ira Rosen  <irar@il.ibm.com>
33924
33925         PR tree-optimization/42709
33926         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
33927         as scalar type in creation of constant vector operand.
33928
33929 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33930
33931         PR testsuite/42414
33932         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
33933         (check-parallel-%): Match `testsuite' directory component only
33934         at the end.
33935
33936 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
33937
33938         PR translation/39521
33939         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
33940         strings with _().
33941
33942 2010-01-13  Richard Guenther  <rguenther@suse.de>
33943
33944         PR tree-optimization/42730
33945         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
33946         offset zero.
33947
33948 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
33949
33950         PR target/pr42542
33951         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
33952         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
33953         them signed.
33954
33955 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
33956
33957         * config/bfin/libgcc-bfin.ver: Regenerate based on current
33958         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
33959         ___umulsi3_highpart.
33960
33961         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
33962         rather than schedule_insns if the pass is enabled.
33963
33964 2010-01-13  Martin Jambor  <mjambor@suse.cz>
33965
33966         PR tree-optimization/42704
33967         * tree-sra.c (sra_modify_assign): Do not delete assignments to
33968         SSA_NAMEs.
33969
33970 2010-01-13  Martin Jambor  <mjambor@suse.cz>
33971
33972         PR tree-optimization/42703
33973         * tree-sra.c (analyze_access_subtree): Check that we can build a
33974         reference to the original data within the aggregate.
33975
33976 2010-01-13  Richard Guenther  <rguenther@suse.de>
33977
33978         PR tree-optimization/42705
33979         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
33980
33981 2010-01-13  Richard Guenther  <rguenther@suse.de>
33982
33983         PR middle-end/42716
33984         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
33985
33986 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
33987
33988         PR debug/41371
33989         * var-tracking.c (values_to_unmark): New variable.
33990         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
33991         values_to_unmark vector.  Moved body to...
33992         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
33993         instead queue it into values_to_unmark vector.
33994         (vt_find_locations): Free values_to_unmark vector.
33995
33996 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
33997
33998         * config/s390/s390.c (override_options): Set
33999         default of max-pending-list-length to 256
34000
34001 2010-01-13  Richard Guenther  <rguenther@suse.de>
34002
34003         PR lto/42678
34004         * tree-pass.h (PROP_gimple_lcx): New.
34005         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
34006         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
34007         before the final cleanup_eh.
34008         (dump_properties): Dump PROP_gimple_lcx.
34009         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
34010         (tree_lower_complex_O0): Remove.
34011         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
34012         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
34013         tree_lower_complex, schedule TODO_update_ssa.
34014         * lto-streamer-out.c (output_function): Stream the functions
34015         properties.
34016         * lto-streamer-in.c (input_function): Likewise.
34017         (lto_read_body): Do not override them here.
34018
34019 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
34020
34021         PR c/42708
34022         * c-typeck.c (build_c_cast): Fold value cast to union type before
34023         wrapping it in a CONSTRUCTOR.
34024
34025 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
34026
34027         PR rtl-optimization/42699
34028         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
34029         involved.
34030
34031 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34032
34033         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
34034         SUBTARGET_WARN_UNUSED_SPEC): Move ...
34035         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
34036         SUBTARGET_WARN_UNUSED_SPEC): ... here
34037         * config/mips/iris5.h (LIBGCC_SPEC): Define.
34038
34039 2010-01-12  Julian Brown  <julian@codesourcery.com>
34040
34041         * config/arm/neon-schedgen.ml (Utils): Don't try to
34042         open missing module.
34043         (find_with_result): New.
34044
34045 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
34046
34047         PR debug/42662
34048         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
34049         sharing when canonicalizing ({lt,ge}u (plus a b) b).
34050
34051         PR tree-optimization/42645
34052         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
34053         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
34054         decl_map, set processing_debug_stmt to -1 and return name without
34055         any remapping.
34056
34057 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
34058
34059         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
34060         binutils version, and reword target configuration description.
34061
34062 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
34063
34064         * config/avr/avr.h (LINKER_NAME): Remove.
34065
34066 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
34067
34068         PR target/42416
34069         * config/rs6000/rs6000.c (rs6000_override_options): On targets
34070         that support VSX, warn for -mno-altivec if vsx is not disabled,
34071         and disable vsx.
34072
34073 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
34074             Shujing Zhao  <pearly.zhao@oracle.com>
34075
34076         PR translation/42469
34077         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
34078         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
34079         character between option name and help text.
34080         * c.opt (imultilib): Likewise.
34081
34082 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
34083
34084         * lto-streamer-out.c (output_unreferenced_globals): Output static
34085         variables.
34086
34087 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
34088
34089         PR rtl-optimization/42621
34090         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
34091         optimizing for size.
34092         (duplicate_computed_gotos): Remove now-redundant check.
34093
34094 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
34095
34096         PR target/37454
34097         * configure.ac: Save and restore LDFLAGS and LIBS
34098         * configure: Regenerate.
34099
34100 2010-01-10  Richard Guenther  <rguenther@suse.de>
34101
34102         PR middle-end/42667
34103         * builtins.c (fold_builtin_strlen): Add type argument and
34104         convert the resulting length to it.
34105         (fold_builtin_1): Adjust.
34106
34107 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
34108
34109         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
34110         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
34111         1 insn.
34112         (num_insns_constant_wide): Adjust for that change.
34113
34114 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34115
34116         PR debug/42631
34117         * web.c (union_defs): Add used argument, to combine uses of
34118         uninitialized regs.
34119         (entry_register): Adjust type and tests of used argument.
34120         (web_main): Widen used for new use.  Pass it to union_defs.
34121         * df.h (union_defs): Adjust prototype.
34122
34123 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34124
34125         PR debug/42630
34126         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
34127         uses in new incoming argument.  Free body.
34128         (reset_debug_uses_in_loop): New.
34129         (analyze_insn_to_expand_var): Call the latter if the former found
34130         anything.  Fix whitespace.  Reject invalid dest overlaps before
34131         going through all insns in the loop.
34132
34133 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34134
34135         PR debug/42629
34136         * haifa-sched.c (dying_use_p): Debug insns don't count.
34137
34138 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34139
34140         PR middle-end/42363
34141         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
34142         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
34143         (verify_gimple_call): Reject LHS in noreturn calls.
34144
34145 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34146
34147         PR debug/42604
34148         PR debug/42395
34149         * tree-vect-loop-manip.c (adjust_info): New type.
34150         (adjust_vec): New pointer to vector.
34151         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
34152         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
34153         (slpeel_update_phis_for_duplicate_loop): Use them.
34154         (slpeel_update_phi_nodes_for_guard1): Likewise.
34155         (slpeel_update_phi_nodes_for_guard2): Likewise.
34156         (slpeel_tree_peel_loop_to_edge): Likewise.
34157         (vect_update_ivs_after_vectorizer): Likewise.
34158
34159 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34160
34161         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
34162         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
34163
34164 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
34165
34166         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
34167         bogus uninitialized warning.
34168
34169 2010-01-09  Richard Guenther  <rguenther@suse.de>
34170
34171         PR middle-end/42512
34172         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
34173         the evolution is compatible with the initial condition.
34174
34175 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
34176
34177         * gcc.c (process_command): Update copyright notice dates.
34178         * gcov.c (print_version): Likewise.
34179         * gcov-dump.c (print_version): Likewise.
34180         * mips-tfile.c (main): Likewise.
34181         * mips-tdump.c (main): Likewise.
34182
34183 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
34184
34185         PR target/41885
34186         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
34187         (rotlhi3): Delete.
34188         (rotlhi3_8): Delete.
34189         (rotlsi3): Delete.
34190         (rotlsi3_8): Delete.
34191         (rotlsi3_16): Delete.
34192         (rotlsi3_24): Delete.
34193         (rotl<mode>3): New.
34194         (*rotw<mode>3): New.
34195         (*rotb<mode>3): New.
34196         * config/avr/avr.c (avr_rotate_bytes): New function.
34197         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
34198
34199 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
34200
34201         PR target/37454
34202         * configure.ac: Modify -rdynamic check.
34203         * configure: Regenerate.
34204
34205 2010-01-08  DJ Delorie  <dj@redhat.com>
34206
34207         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
34208         register popping order.
34209
34210 2010-01-08  Richard Guenther  <rguenther@suse.de>
34211
34212         PR lto/42528
34213         * c.opt (fsigned-char): Also let LTO handle this option.
34214         (funsigned-char): Likewise.
34215
34216 2010-01-07  Richard Guenther  <rguenther@suse.de>
34217
34218         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
34219         (gimple_op): Likewise.
34220         (gimple_op_ptr): Likewise.
34221         (gimple_assign_set_lhs): Remove gcc_assert.
34222         (gimple_assign_set_rhs1): Likewise.
34223         (gimple_assign_set_rhs2): Likewise.
34224         (gimple_call_set_lhs): Likewise.
34225         (gimple_call_set_fn): Likewise.
34226         (gimple_call_set_fndecl): Likewise.
34227         (gimple_call_fndecl): Likewise.
34228         (gimple_call_return_type): Likewise.
34229         (gimple_call_set_chain): Likewise.
34230         (gimple_call_num_args): Likewise.
34231         (gimple_call_set_arg): Likewise.
34232         (gimple_cond_set_code): Likewise.
34233         (gimple_cond_set_lhs): Likewise.
34234         (gimple_cond_set_rhs): Likewise.
34235         (gimple_cond_set_true_label): Likewise.
34236         (gimple_cond_set_false_label): Likewise.
34237         (gimple_label_set_label): Likewise.
34238         (gimple_goto_set_dest): Likewise.
34239         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
34240         (gimple_debug_bind_get_value): Likewise.
34241         (gimple_debug_bind_get_value_ptr): Likewise.
34242         (gimple_debug_bind_set_var): Likewise.
34243         (gimple_debug_bind_set_value): Likewise.
34244         (gimple_debug_bind_reset_value): Likewise.
34245         (gimple_debug_bind_has_value_p): Likewise.
34246         (gimple_return_retval_ptr): Remove gcc_assert.
34247         (gimple_return_retval): Likewise.
34248         (gimple_return_set_retval): Likewise.
34249         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
34250         (safe_referenced_var_iterator): Remove.
34251         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
34252         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
34253         (fill_referenced_var_vec): Remove.
34254         (first_readonly_imm_use): Remove redundant gcc_assert.
34255         (phi_arg_index_from_use): Combine gcc_asserts.
34256         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
34257         (first_imm_use_stmt): Remove redundant gcc_assert.
34258         * tree-cfg.c (verify_gimple_call): Verify function and chain
34259         operands.  Verify arguments.
34260         (verify_types_in_gimple_stmt): Verify condition code and labels.
34261
34262 2010-01-07  Richard Guenther  <rguenther@suse.de>
34263
34264         PR tree-optimization/42641
34265         * sese.c (rename_map_elt_info): Use the SSA name version, do
34266         not hash pointers.
34267
34268 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
34269
34270         PR tree-optimization/42625
34271         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
34272         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
34273
34274 2010-01-07  Duncan Sands  <baldrick@free.fr>
34275
34276         * Makefile.in (PLUGIN_HEADERS): Add version.h.
34277
34278 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
34279
34280         PR target/42511
34281         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
34282         note itself is not function_invariant_p.
34283
34284 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
34285
34286         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
34287         Do not add the DF_NOTE problem.
34288         * store-motion.c (execute_rtl_store_motion): Likewise.
34289
34290 2010-01-07  Martin Jambor  <mjambor@suse.cz>
34291
34292         PR tree-optimization/42157
34293         * tree-sra.c (compare_access_positions): Stabilize sort if both
34294         accesses have integer types, return zero immediately if they are the
34295         same.
34296
34297 2010-01-06  Richard Henderson  <rth@redhat.com>
34298
34299         PR middle-end/41883
34300         * haifa-sched.c (add_to_note_list): Merge into ...
34301         (concat_note_lists): ... here, and ...
34302         (unlink_other_notes, rm_other_notes): Merge into...
34303         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
34304         NOTE_INSN_EPILOGUE_BEG.
34305
34306 2010-01-06  Richard Guenther  <rguenther@suse.de>
34307
34308         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
34309         not inline regular functions into always-inline functions.
34310
34311 2010-01-06  Nick Clifton  <nickc@redhat.com>
34312
34313         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
34314         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
34315         used together.
34316         (OVERRIDE_OPTIONS): Delete.
34317         (OPTIMIZATION_OPTIONS): Define.
34318         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
34319         * config/rx/rx.c (rx_handle_option): Issue an error message if
34320         -mcpu=rx200 and -fpu are used together.
34321         (rx_set_optimization_options): New function.  Issue an error
34322         message if an optimization attribute attempts to reset the FPU/
34323         math optimization pairing.
34324         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
34325         * config/rx/rx.opt: Set the default to 32-bit doubles.
34326         * config/rx/t-rx: Add multilibs for -nofpu option.
34327         * doc/invoke.texi: Update documentation of RX options.
34328
34329 2010-01-06  Richard Guenther  <rguenther@suse.de>
34330
34331         * tree-ssa-pre.c (name_to_id): New global.
34332         (alloc_expression_id): Simplify SSA name handling.
34333         (lookup_expression_id): Likewise.
34334         (init_pre): Zero name_to_id.
34335         (fini_pre): Free it.
34336
34337 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
34338
34339         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
34340
34341 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
34342
34343         PR target/42542
34344         * config/i386/sse.md (smaxv2di3): New.
34345         (umaxv2di3): Likewise.
34346         (sminv2di3): Likewise.
34347         (uminv2di3): Likewise.
34348
34349 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
34350
34351         PR target/42564
34352         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
34353         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
34354         (legitimize_tls_address): Likewise.
34355         (sparc_tls_referenced_p): Likewise.
34356         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
34357         and adjust calls to legitimize_pic_address.
34358         (legitimate_constant_p) Use sparc_tls_referenced_p.
34359         (legitimate_pic_operand_p): Likewise.
34360         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
34361         (sparc_tls_symbol_ref_1): Delete.
34362         (sparc_tls_referenced_p): Make static, recognize specific patterns.
34363         (legitimize_tls_address): Make static, handle CONST patterns.
34364         (legitimize_pic_address): Make static, remove unused parameter and
34365         adjust recursive calls.
34366         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
34367         and adjust call to legitimize_pic_address.
34368         (sparc_output_mi_thunk): Likewise.
34369
34370 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
34371             H.J. Lu  <hongjiu.lu@intel.com>
34372
34373         PR target/42542
34374         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
34375         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
34376         operands to make them signed.
34377
34378         Revert:
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-05  Martin Jambor  <mjambor@suse.cz>
34391
34392         PR tree-optimization/42462
34393         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
34394         current_function_decl to helper functions and macros.
34395
34396 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34397
34398         PR bootstrap/41771
34399         * flags.h: Don't include real.h.
34400         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
34401         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
34402         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
34403         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
34404         * dominance.c: Update copyright.
34405         * gimple.c (walk_gimple_op): Remove inline.
34406         * tree-ssa-reassoc.c: Include real.h.
34407         * Makefile.in (FLAGS_H): Remove $(REAL_H).
34408         (tree-ssa-reassoc.o): Depend on $(REAL_H).
34409
34410 2010-01-05  Nick Clifton  <nickc@redhat.com>
34411
34412         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
34413         register to push into the stack frame when the accumulator has to
34414         be saved during interrupts.
34415
34416 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
34417
34418         * doc/invoke.texi: Remove the documentation about option
34419         -Wunreachable-code.
34420         * common.opt (Wunreachable-code):  Preserved for backward
34421         compatibility.
34422         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
34423         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
34424         the backward compatibility flag section.
34425
34426 2010-01-05  Richard Guenther  <rguenther@suse.de>
34427
34428         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
34429
34430 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
34431
34432         PR other/42611
34433         * cfgexpand.c (expand_one_var): Diagnose too large variables.
34434
34435         PR tree-optimization/42508
34436         * tree-sra.c (convert_callers): Check for recursive call
34437         by comparing cgraph nodes instead of decls.
34438         (modify_function): Call ipa_modify_formal_parameters also
34439         on all same_body aliases.
34440
34441         * cgraphunit.c (cgraph_materialize_all_clones): Compare
34442         cgraph nodes when checking for same_body aliases.
34443
34444 2010-01-05  Richard Guenther  <rguenther@suse.de>
34445
34446         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
34447         allocation and lookup.
34448         (get_or_alloc_expr_for_constant): Likewise.
34449         (phi_translate): Sink allocation.
34450
34451 2010-01-04  Richard Guenther  <rguenther@suse.de>
34452
34453         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
34454         a new entry only if needed.
34455         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
34456         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
34457         hashtable lookup.
34458         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
34459         the result array.
34460         (phi_translate): Handle CONSTANTs early.
34461
34462 2010-01-04  Martin Jambor  <mjambor@suse.cz>
34463
34464         PR tree-optimization/42398
34465         * tree-sra.c (struct access): Removed flag grp_different_types.
34466         (dump_access): Do not dump the removed flag.
34467         (sort_and_splice_var_accesses): Do not set the removed flag.
34468         (sra_modify_expr): Check for type compatibility directly.
34469
34470 2010-01-04  Martin Jambor  <mjambor@suse.cz>
34471
34472         PR tree-optimization/42366
34473         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
34474         edges with variable number of parameters.
34475         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
34476         flag instead of asserting it.
34477         (ipa_read_node_info): Read uses_analysis_done flag.
34478
34479 2010-01-04  Richard Guenther  <rguenther@suse.de>
34480
34481         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
34482         iterative_hash_* as intended.
34483         (vn_reference_compute_hash): Likewise.  Simplify hashing
34484         SSA names.
34485         (vn_reference_lookup_2): Likewise.
34486         (vn_nary_op_compute_hash): Likewise.
34487         (vn_phi_compute_hash): Likewise.
34488         (expressions_equal_p): Remove strange code.
34489         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
34490         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
34491         (bitmap_insert_into_set_1): Take value-id as parameter.
34492         (add_to_value): Pass it.
34493         (bitmap_insert_into_set): Likewise.
34494         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
34495
34496 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
34497
34498         PR driver/42442
34499         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
34500         (do_self_spec): For switches with SWITCH_IGNORE set set also
34501         SWITCH_IGNORE_PERMANENTLY.
34502         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
34503         of SWITCH_IGNORE.
34504
34505 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
34506
34507         * lto-streamer-out.c (output_unreferenced_globals): Output the full
34508         tree of an unreferenced global var.
34509
34510 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
34511
34512         PR target/42542
34513         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
34514         GTU to GT for V4SI and V2DI.
34515
34516         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
34517         (umin<mode>3): Removed.
34518         (uminv8hi3): New.
34519         (uminv4si3): Likewise.
34520
34521 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
34522
34523         PR lto/42581
34524         * collect2.c (main): Turn on trace in collect2 if -v is passed
34525         to gcc with LTO.
34526
34527 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
34528
34529         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
34530         description of expression operand.
34531
34532 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
34533
34534         * configure.ac: Add install-html to target_list for Make-hooks.
34535         * configure: Regenerate.
34536         * fortran/Make-lang.in (F95_HTMLFILES): New.
34537         (fortran.html): Use it.
34538         (fortran.install-html): New.
34539         * Makefile.in (install-html): Add lang.install-html.
34540         * java/Make-lang.in (JAVA_HTMLFILES): New.
34541         (java.html): Use it.
34542         (java.install-html): New.
34543         * objc/Make-lang.in (objc.install-html): New.
34544         * objcp/Make-lang.in (obj-c++.install-html): New.
34545         * cp/Make-lang.in (c++.install-html): New.
34546         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
34547         * lto/Make-lang.in (lto.install-html): New.
34548
34549 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
34550
34551         PR lto/42520
34552         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
34553
34554 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
34555
34556         PR rtl-optimization/41862
34557         * store-motion.c (store_killed_in_insn, compute_store_table,
34558         remove_reachable_equiv_notes, replace_store_insn,
34559         build_store_vectors): Ignore all DEBUG_INSNs.
34560
34561 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
34562
34563         PR lto/41564
34564         * common.opt: Add dumpdir.
34565
34566         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
34567         isn't specified.
34568         (option_map): Add --dumpdir.
34569
34570         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
34571
34572         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
34573
34574         * opts.c (decode_options): Try dump_dir_name first if
34575         dump_base_name isn't an absolute path.
34576         (common_handle_option): Handle OPT_dumpdir.
34577
34578         * toplev.c (dump_dir_name): New.
34579         (print_switch_values): Also ignore -dumpdir.
34580
34581         * toplev.h (dump_dir_name): New.
34582
34583 2010-01-03  Richard Guenther  <rguenther@suse.de>
34584
34585         PR tree-optimization/42589
34586         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
34587         double-word expansion of bswap32.
34588
34589 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
34590
34591         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
34592         with BLOCK_FOR_INSN.
34593         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
34594         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
34595         noce_process_if_block): Likewise.
34596         * gcse.c (compute_local_properties, insert_expr_in_table,
34597         insert_set_in_table, canon_list_insert, find_avail_set,
34598         pre_insert_copy_insn): Likewise.
34599
34600         * basic-block.h (BLOCK_NUM): Move from here...
34601         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
34602
34603 2010-01-03  Richard Guenther  <rguenther@suse.de>
34604
34605         PR tree-optimization/42438
34606         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
34607         contains_may_not_return_call flag.
34608         (BB_MAY_NOTRETURN): New.
34609         (valid_in_sets): Trapping nary operations are not valid
34610         in blocks that may not return.
34611         (insert_into_preds_of_block): Remove check for trapping expressions.
34612         (compute_avail): Compute also BB_MAY_NOTRETURN.
34613
34614 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
34615
34616         * doc/invoke.texi: Add 2010 to copyright years.
34617
34618 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
34619
34620         * config/sparc/sparc.c: Fix formatting nits.
34621
34622 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
34623             Alexander Monakov  <amonakov@ispras.ru>
34624
34625         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
34626
34627 2010-01-02  Richard Guenther  <rguenther@suse.de>
34628
34629         PR middle-end/42577
34630         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
34631         (simplify_switch_using_ranges): Mark to be removed edges
34632         as non-executable.
34633
34634 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34635
34636         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
34637
34638         * collect2.c (scan_libraries): Add missing argument in call to
34639         scan_prog_file.
34640
34641 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
34642
34643         PR target/42448
34644         * config/alpha/predicates.md (aligned_memory_operand): Return false
34645         for CQImode.
34646         (unaligned_memory_operand): Return true for CQImode.
34647         * config/alpha/alpha.c (get_aligned_mem): Assert that location
34648         doesn not cross aligned SImode word boundary.
34649
34650 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
34651
34652         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
34653         Remove.
34654         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
34655         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
34656
34657 2010-01-02  Richard Guenther  <rguenther@suse.de>
34658
34659         PR lto/41597
34660         * toplev.c (compile_file): Emit LTO marker properly.  Change
34661         it to __gnu_lto_v1.
34662         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
34663
34664 2010-01-01  Richard Guenther  <rguenther@suse.de>
34665
34666         PR debug/42455
34667         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
34668
34669 2010-01-01  Richard Guenther  <rguenther@suse.de>
34670
34671         PR c/42570
34672         * c-decl.c (grokdeclarator): For zero-size arrays force
34673         structural equality checks as layout_type does.
34674
34675 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
34676
34677         * builtins.c: Update copyright to 2010.
34678
34679 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
34680
34681         PR lto/42531
34682         * lto-streamer-out.c (produce_asm): Revert the last change.
34683         (copy_function): Likewise.
34684
34685         * lto-streamer.c (lto_get_section_name): Skip any leading
34686         asterisk in name.
34687
34688 2010-01-01  Richard Guenther  <rguenther@suse.de>
34689
34690         PR middle-end/42559
34691         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
34692         for LABEL_DECLs.
34693
34694 \f
34695 Copyright (C) 2010 Free Software Foundation, Inc.
34696
34697 Copying and distribution of this file, with or without modification,
34698 are permitted in any medium without royalty provided the copyright
34699 notice and this notice are preserved.