OSDN Git Service

2010-11-08 Joern Rennecke <amylaar@spamcop.net>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-11-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
2
3         PR target/46378
4         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5         turn on ISA 2.04 rounding instructions for power5.
6
7         * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
8         not ISA 2.02.
9
10         PR target/45585
11         * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
12         in FPR registers.
13         (movdi_low_st): Ditto.
14
15 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
16             Richard Henderson <rth@redhat.com>
17
18         PR target/44758
19         * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
20         (attribute acc_group): Cast value to enum attr_acc_group.
21         (*movdi_nodouble+6): Use gen_int_mode.
22         * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
23         if RTX_CODE is defined or not.
24         * config/frv/frv.c (enum frv_io_type): New enum, broken out of
25         struct frv_io.
26         (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
27         (frv_frame_access, frv_expand_prologue): Remove unused variables.
28         (frv_expand_block_clear): Likewise.
29         (frv_trampoline_init): Use LCT_NORMAL.
30         (struct frv_packet_group): New struct, broken out of type of
31         frv_packet.
32         (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
33         use cast in loop counter increment.
34         (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
35         assigning to io->type.
36         (bdesc_set): Use rtx_code UNKNOWN in initializer.
37         (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
38         (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
39         (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
40         (frv_read_argument): Use expand_normal.
41
42         PR target/44757 
43         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
44         lm32_legitimate_constant_p.
45         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
46         * config/lm32/lm32.c (gen_int_relational): Make new block for
47         LE / LT / LEU / LTU case.  Declare variables at start of block.
48         (lm32_block_move_inline): Use XALLOCAVEC.
49
50 2010-11-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
51
52         * config/i386/i386.c (ix86_function_arg_boundary): Fix warning
53         message.
54
55 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
56
57         * gengtype (get_output_file_for_structure): Ensure type is union
58         or struct.
59         (write_splay_tree_allocator_def): Use
60         get_output_file_with_visibility.
61
62 2010-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
63
64         * config/s390/s390.c (s390_handle_arch_option): Set type and flags
65         to defined values in case of an error.
66         (s390_option_override): Skip further processing if the -march
67         parameter wasn't recognized.
68
69 2010-11-08  Joern Rennecke  <amylaar@spamcop.net>
70
71         * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
72         assert that REG is a hard register number before using it as an index.
73
74         PR bootstrap/46358
75         * config/i386/i386.c (ix86_expand_split_stack_prologue):
76         Avoid warnings when HOST_WIDE_INT is 32 bit.
77
78 2010-11-08  Eric Botcazou  <ebotcazou@adacore.com>
79
80         PR target/46208
81         * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
82         (sparc_promote_prototypes): Likewise.
83         (sparc_promote_function_mode): Promote in 32-bit mode as well.
84         (sparc_return_in_memory): Remove superfluous parentheses.
85         (sparc_struct_value_rtx): Fix long lines.
86         (sparc_function_value_1): Promote in 32-bit mode as well.
87
88 2010-11-08  Andrey Belevantsev  <abel@ispras.ru>
89
90          PR rtl-optimization/45352
91         * sel-sched.c (find_best_expr): Do not set pneed_stall when
92         the variable_issue hook is not implemented.
93         (fill_insns): Remove dead variable stall_iterations.
94         (init_seqno_1): Force EBB start for resetting sched cycles on any
95         successor blocks of the rescheduled region.
96         (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
97         (reset_sched_cycles_in_current_ebb): Add debug printing.
98         New variable issued_insns.  Advance state when we have issued
99         issue_rate insns.
100
101 2010-11-08  Basile Starynkevitch  <basile@starynkevitch.net>
102
103         * gengtype (main): Get here's position using POS_HERE macro for
104         do*typedef calls.
105
106 2010-11-07  Ian Lance Taylor  <iant@google.com>
107
108         PR target/46089
109         * config/i386/i386.c (split_stack_fn_large): New static variable.
110         (ix86_expand_split_stack_prologue): Handle large model.
111
112 2010-11-07  Andreas Schwab  <schwab@linux-m68k.org>
113
114         * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
115         all possible addressing modes.
116
117 2010-11-07  Uros Bizjak  <ubizjak@gmail.com>
118
119         PR tree-optimization/46346
120         * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
121
122 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
123
124         * config/mips/mips.c: Revert previous patch.
125         * config/mips/mips.md: Likewise.
126
127 2010-11-07  Richard Sandiford  <rdsandiford@googlemail.com>
128
129         * config/mips/mips.c (mips_rtx_costs): Handle FMA.
130         * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
131         (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
132         (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
133         (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
134         to use FMA.
135         (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
136         (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
137         (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
138         (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
139
140 2010-11-06  Simon Martin  <simartin@users.sourceforge.net>
141
142         PR c/43384
143         * c-decl.c (lookup_label): Labels can only be referenced in a
144         function's scope.
145         (store_parm_decls_oldstyle): Skip erroneous parameters.
146
147 2010-11-06  Anatoly Sokolov  <aesok@post.ru>
148
149         * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
150         LIBCALL_VALUE): Remove macros.
151         * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
152         TARGET_FUNCTION_VALUE_REGNO_P): Define.
153         (fr30_function_value_regno_p, fr30_function_value,
154         fr30_libcall_value): New functions.
155
156 2010-11-06  Joern Rennecke  <amylaar@spamcop.net>
157
158         PR middle-end/46314
159         * target.def (generate_internal_label): New asm_out hook.
160         * output.h (default_generate_internal_label): Declare.
161         * varasm.c (default_generate_internal_label): Define.
162
163 2010-11-06  Iain Sandoe  <iains@gcc.gnu.org>
164
165         PR target/44981
166         * doc/extend.tex (format): Document NSString extension.
167         (format_arg): Likewise.
168         (Darwin Format Checks): New section.
169         * doc/tm.texi: Document string object hooks (generated).
170         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
171         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
172         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
173         * target.def (objc_construct_string_object): Rename, amend
174         documentation.
175         (string_object_ref_type_p): New hook.
176         (check_string_object_format_arg): New hook.
177         * c-parser.c (c_parser_attributes): Allow objective-c class names as
178         attribute identifiers.
179         * config/darwin-c.c (darwin_cfstring_ref_p): New.
180         (darwin_check_cfstring_format_arg): New.
181         (darwin_additional_format_types): New.
182         * config/darwin-protos.h (darwin_cfstring_ref_p) New.
183         (darwin_check_cfstring_format_arg): New.
184         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
185         (TARGET_STRING_OBJECT_REF_TYPE_P): New.
186         (TARGET_N_FORMAT_TYPES): New.
187         (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
188
189 2010-11-06  Eric Botcazou  <ebotcazou@adacore.com>
190             Pascal Obry  <obry@adacore.com>
191
192         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine.  Use 33
193         in 64-bit mode and 17 otherwise.
194
195 2010-11-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
196
197         PR debug/45939
198         * var-tracking.c (emit_note_insn_var_location): Make sure that
199         call related var location notes come before the normal ones.
200
201 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
202
203         PR target/46326
204         * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
205         in the last change.
206
207 2010-11-05  Ian Lance Taylor  <iant@google.com>
208
209         * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
210
211 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
212
213         PR c/44772
214         * c-decl.c (warn_cxx_compat_finish_struct): Don't call
215         pointer_set_contains if DECL_NAME is NULL.
216
217 2010-11-05  Ian Lance Taylor  <iant@google.com>
218
219         PR target/46084
220         * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
221         request enough additional space for alignment, and force alignment.
222
223 2010-11-05  Kai Tietz  <kai.tietz@onevision.com>
224
225         * config/i386/i386.c (legitimate_pic_address_disp_p):
226         Handle UNSPEC_PCREL.
227         (ix86_legitimate_address_p): Likewise.
228         (legitimize_pic_address): Likewise.
229         (output_pic_addr_const): Likewise.
230         (ix86_delegitimize_address): Likewise.
231         (ix86_find_base_term): Likewise.
232         (memory_address_length): Likewise.
233         (x86_output_mi_thunk): Handle special case x64
234         for non local binding.
235         * config/i386/i386.md (UNSPEC_PCREL): New.
236         * config/i386/winnt.c (i386_pe_binds_local_p):
237         Allow weak symbol for x64 windows with non-local binding.
238
239 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
240
241         PR target/45670
242         * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
243         instead of EXPAND_NORMAL for base expansion.
244
245 2010-11-05  Uros Bizjak  <ubizjak@gmail.com>
246
247         * config.gcc: Support --with-fpmath=avx for x86.
248         * config/i386/avxmath.h: New.
249         * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
250
251 2010-11-05  Ian Lance Taylor  <iant@google.com>
252
253         * tree.h (struct tree_type): Don't use descbits in GTY annotation.
254         * gengtype.c (walk_type): Don't recognize descbits option.
255
256 2010-11-05  Joseph Myers  <joseph@codesourcery.com>
257
258         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
259         WORD_SWITCH_TAKES_ARG): Remove.
260         * doc/options.texi (Args): Document.
261         * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
262         * doc/tm.texi: Regenerate.
263         * opt-functions.awk (switch_flags): Handle Args.
264         * opts-common.c: Update comment on tm.h include.
265         (decode_cmdline_option): Handle options with multiple arguments.
266         Don't check WORD_SWITCH_TAKES_ARG for unknown options.
267         * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
268         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
269         CL_COMMON): Update values.
270         * system.h (WORD_SWITCH_TAKES_ARG): Poison.
271         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
272         * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
273         sectobjectsymbols, sectorder, segcreate, segprot): New.
274
275 2010-11-05  H.J. Lu  <hongjiu.lu@intel.com>
276             Uros Bizjak  <ubizjak@gmail.com>
277
278         * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
279         256bit AVX register is used.
280         (ix86_expand_vector_move_misalign): Likewise.
281         (ix86_expand_vector_move): Replace use_avx256_p with
282         VALID_AVX256_REG_MODE.
283
284 2010-11-05  Joern Rennecke  <amylaar@spamcop.net>
285
286          PR target/44750
287         * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
288         change.  Set $@-warn.o to -Wno-error.
289
290         PR bootstrap/44756
291         * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
292         comparing it to a signed value.
293
294         PR bootstrap/44756
295         * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
296         * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
297         to i.
298
299         PR target/44754
300         * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
301         (m32c_function_arg).  Add comma between arguments two and three.
302         (m32c_promote_prototypes): Remove declaration.
303         (current_function_special_page_vector): Likewise.
304         (m32c_regno_reg_class): Change return type to enum reg_class.
305         (m32c_pushm_popm): Use add_reg_note.
306         (m32c_push_rounding): Change return type to unsigned int.
307         (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
308         enum reload_type.
309         (m32c_insert_attributes): Constify variable name.
310         (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
311         (m32c_prepare_shift): Remove variable lref.
312         (m32c_expand_movcc): Remove variable cmp.
313         (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
314         (m32c_compare_redundant): Remove variable op2.
315         * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
316         (m32c_pragma_memregs): Assign the number to target_memregs.
317         (m32c_pragma_address): Remove variable var_str.
318         * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
319         enum reg_class.
320         (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
321         * config/m32c/bitops.md (andsi3): Add default case to switch.
322         (iorsi3, xorsi3): Likewise.
323         * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
324         * config/m32c/jump.md (call, call_value): Likewise.
325         * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
326         (m32c_regno_reg_class): Likewise.
327         (current_function_special_page_vector): Declare.
328
329 2010-11-05  Jakub Jelinek  <jakub@redhat.com>
330
331         * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
332
333         PR tree-optimization/46099
334         * tree-parloops.c (take_address_of): Add GSI argument.  Return NULL
335         if it is NULL and uid wasn't found in the hash table.  Just fold the
336         result if it is NULL otherwise.  Insert other potentially needed
337         stmts right before current stmt instead of on the entry edge.
338         (struct elv_data): Add gsi and reset fields.
339         (eliminate_local_variables_1): Adjust caller.  If take_address_of
340         failed for debug stmt, set dta->reset and return.
341         (eliminate_local_variables_stmt): Change STMT argument for GSI,
342         pass GSI through to the callback, handle resetting of debug stmts.
343         (eliminate_local_variables): Adjust caller.  Process debug stmts
344         in second phase.
345
346         PR middle-end/43690
347         * gimplify.c (gimplify_asm_expr): If a "m" input is a
348         {pre,post}{in,de}crement, fail.
349
350         PR debug/46307
351         * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
352         * tree-pretty-print.c (dump_generic_node): Likewise.
353         (op_code_prio): Likewise.
354         * cfgexpand.c (expand_debug_expr): Likewise.
355
356 2010-11-04  Paul Koning  <ni1d@arrl.net>
357
358         * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
359         constraints.
360
361 2010-11-04  Chao-ying Fu  <fu@mips.com>
362
363         * configure.ac: Test assembler support for DSP Rev1 mult.
364         * configure: Regenerate.
365         * config.in: Regenerate.
366         * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
367         * config/mips/mips.c (CODE_FOR_mips_mult): New define.
368         (CODE_FOR_mips_multu): New define.
369         (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
370         dspr2_32 to dsp_32.
371         (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
372         Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
373         * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
374         New define_expand patterns.
375         * config/mips/constraints.md (ka): Update the constraint to test
376         ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
377         * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
378         mips_multu): Delete.
379         * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
380         Change target constraint to "ka".
381         Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
382         (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
383         Emit the accumulator destination when ISA_HAS_DSP_MULT.
384         (<u>msubsidi4): Add comments.  Test ISA_HAS_DSP.
385         Emit the accumulator destination when ISA_HAS_DSP_MULT.
386         (<u>maddsidi4): Likewise.
387         * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
388         msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
389
390 2010-11-04  Paul Koning  <ni1d@arrl.net>
391
392         * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
393
394 2010-11-04  Paul Koning  <ni1d@arrl.net>
395
396         * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
397
398 2010-11-04  Nicola Pero  <nicola.pero@meta-innovation.com>
399
400         Fixed using the Objective-C 2.0 dot-syntax with class names.
401         * c-parser.c (c_parser_next_token_starts_declspecs): In
402         Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
403         (c_parser_next_token_starts_declaration): Same.
404         (c_parser_postfix_expression): Parse the Objective-C 2.0
405         dot-syntax with a class name.
406
407 2010-11-04  Pat Haugen  <pthaugen@us.ibm.com>
408
409         * final.c (compute_alignments): Compute/free loop info all the time.
410         * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
411         * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
412         * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
413         * config/rs6000/rs6000.c (cfgloop.h): Include.
414         (can_override_loop_align): New.
415         (rs6000_option_override_internal): Set it.
416         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
417         (rs6000_loop_align): New function.
418         (rs6000_loop_align_max_skip): Likewise.
419
420 2010-11-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
421
422         PR driver/45703
423         * collect2.c (main): Print --help output to stdout.  Do not
424         exit right away, so ld --help is appended.  Add empty lines
425         to separate output suitably.
426
427 2010-11-04  Jakub Jelinek  <jakub@redhat.com>
428
429         PR tree-optimization/46233
430         * ipa-pure-const.c (local_pure_const): Do noreturn discovery
431         after calling analyze_function, not before.
432
433         PR target/46234
434         * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
435         instead of build_va_arg_indirect_ref.
436         * config/spu/spu.c (spu_va_start): Likewise.
437         * config/s390/s390.c (s390_va_start): Likewise.
438
439 2010-11-03  Uros Bizjak  <ubizjak@gmail.com>
440
441         PR middle-end/46292
442         * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
443         if the innermode is not vector mode, determine the mode of a subreg
444         by using mode_for_size of inner_size.
445
446 2010-11-04  Richard Guenther  <rguenther@suse.de>
447
448         PR rtl-optimization/46183
449         * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
450         (execute_rtl_pre): Likewise.
451         (execute_rtl_hoist): Likewise.
452
453 2010-11-04  Richard Guenther  <rguenther@suse.de>
454
455         PR tree-optimization/46068
456         * ipa-split.c (consider_split): Remove gcc_unreachable.
457
458 2010-11-04  Richard Guenther  <rguenther@suse.de>
459
460         * tree-nested.c (build_addr): Use build_fold_addr_expr.
461
462 2010-11-04  Richard Guenther  <rguenther@suse.de>
463
464         PR tree-optimization/45991
465         * gimplify.c (force_gimple_operand_1): Use the provded test
466         function in the initial test.
467
468 2010-11-04  Jeff Law  <law@redhat.com>
469
470         * ira.c (validate_equiv_mem): Remove code to avoid invalidation
471         of readonly memory equivalances for const/pure calls.
472
473 2010-11-04  Richard Guenther  <rguenther@suse.de>
474
475         PR tree-optimization/45733
476         * tree-vect-stmts.c (reverse_vec_elements): Honor the
477         permute builtins function return type.
478
479 2010-11-04  Joern Rennecke  <amylaar@spamcop.net>
480
481         PR middle-end/44765
482         * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
483         as an index, check it is not INVALID_REGNUM.
484
485         PR bootstrap/44756
486         * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
487         unsignedp.
488         * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
489
490         PR bootstrap/44756
491         * function.c (thread_prologue_and_epilogue_insns): Add
492         ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
493
494         PR bootstrap/44756
495         * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
496
497         PR target/44750
498         * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
499         (pdp11_preferred_reload_class): Rename class to rclass.
500         (pdp11_preferred_output_reload_class): Likewise.
501         * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
502         ALL_COMPILERFLAGS .
503         (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
504
505         PR bootstrap/44756
506         * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
507         iteration variables to enum machine_mode.
508
509         PR target/44751
510         * config/h8300/h8300.c: Include df.h.
511         (push, pop): Use add_reg_note.
512         (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
513         (compute_a_shift_cc): Likewise.
514         (expand_a_shift): Argument code has type enum rtx_code.
515         (struct shift_insn): Member cc_valid has type enum attr_cc.
516         (struct shift_info) <cc_inline, cc_special>: Likewise.
517         enum attr_cc.
518         * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
519         (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
520
521 2010-11-04  Ira Rosen  <irar@il.ibm.com>
522
523         PR tree-optimization/46213
524         * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
525         MINUS_EXPR only if the first operand is reduction operand.
526
527 2010-11-04  Richard Guenther  <rguenther@suse.de>
528             Richard Henderson  <rth@redhat.com>
529
530         * tree.def (FMA_EXPR): New tree code.
531         * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
532         * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
533         * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
534         * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
535         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
536         * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
537         (execute_optimize_widening_mul): Call it.  Reorganize to allow
538         dead stmt removal.  Move TODO flags ...
539         (pass_optimize_widening_mul): ... here.
540         * flag-types.h (enum fp_contract_mode): New enum.
541         * common.opt (flag_fp_contract_mode): New variable.
542         (-ffp-contract): New option.
543         * opts.c (common_handle_option): Handle it.
544         * doc/invoke.texi (-ffp-contract): Document.
545         * tree.h (fold_fma): Declare.
546         * builtins.c (fold_fma): New function.
547         (fold_builtin_fma): Likewise.
548         (fold_builtin_3): Call it for fma.
549         * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
550         * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
551         * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
552         New expanders.
553         * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
554         named patterns.
555         * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
556         * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
557         (fms_optab, fnma_optab, fnms_optab): New defines.
558         * gimplify.c (gimplify_expr): Handle binary truth expressions
559         explicitly.  Handle FMA_EXPR.
560         * tree-vect-stmts.c (vectorizable_operation): Handle ternary
561         operations.
562
563 2010-11-04  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
564             Richard Guenther  <rguenther@suse.de>
565
566         * passes.c (init_optimization_passes): Move veclower after SSA.
567         * tree-vect-generic.c (uniform_vector_p): New function.
568         (expand_vector_operations_1): Handle conversion.
569         (pass_lower_vector): Update SSA form.
570
571 2010-11-04  Iain Sandoe  <iains@gcc.gnu.org>
572
573         * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
574         plugin capabilities.
575         * configure: Regenerate.
576
577 2010-11-03  Xinliang David Li  <davidxl@google.com>
578
579         PR target/46200
580         * tree-ssa-loop-ivopts.c (get_computation_cost_at):
581         Adjust cbase if the use stmt is after iv update.
582
583 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
584
585         * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
586
587 2010-11-03  Kaz Kojima  <kkojima@gcc.gnu.org>
588
589         * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
590         comment.  Pass true to the last argument of output_stack_adjust.
591
592 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
593
594         PR target/46295
595         * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
596         if 256bit AVX register is used.
597
598 2010-11-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
599
600         * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
601         xsmindp/xsmaxdp on VSX for single precision min/max.
602         * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
603         (vsx_sminsf3): Ditto.
604
605 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
606
607         * combine.c (try_combine): Fix formatting issues, improve comments and
608         fix a pasto.
609
610 2010-11-03  Eric Botcazou  <ebotcazou@adacore.com>
611
612         * tree-tailcall.c (find_tail_calls): Convert the operands to the type
613         of the result before building binary expressions.
614
615 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
616
617         PR rtl-optimization/45865
618         * Makefile.in (df-problems.o): Revert revision 164552.
619         * basic-block.h (enum bb_flags): Likewise.
620         * cfgcleanup.c (block_was_dirty): Likewise.
621         (try_forward_edges): Likewise.
622         (try_crossjump_bb): Likewise.
623         (try_head_merge_bb): Likewise.
624         (try_optimize_cfg): Likewise.
625         (cleanup_cfg): Likewise.
626         * df-core.c (df_set_bb_dirty): Likewise.
627         * df-problems.c: Likewise.
628         (df_simulate_find_uses): Likewise.
629         (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
630         (find_memory, find_memory_store): Likewise.
631         (can_move_insns_across): Likewise.
632         * df.h (can_move_insns_across): Likewise.
633         * ifcvt.c (find_memory): Likewise.
634         (dead_or_predicable): Likewise.
635
636 2010-11-03  Richard Guenther  <rguenther@suse.de>
637
638         PR middle-end/46288
639         * predict.c (strip_predict_hints): Simply DCE builtin expect if
640         the result is unused.
641
642 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
643
644         PR tree-optimization/46009
645         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
646         cond_if_else_store_replacement if bb1 and bb2 have the same
647         single successor.
648         (cond_store_replacement): Use gimple_assign_single_p, don't
649         check if rhs is SSA_NAME or invariant.  Call release_defs for
650         assign.
651         (cond_if_else_store_replacement): New function.
652
653 2010-11-03  Richard Guenther  <rguenther@suse.de>
654
655         * opts.c (finish_options): Properly check for all WHOPR
656         flags before complaining about -flto-partition.
657
658 2010-11-04  Alan Modra  <amodra@gmail.com>
659
660         * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
661         (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
662         TARGET_SECURE_PLT.
663         * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
664         * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
665         on input, "r" on output.
666
667 2010-11-03  Nicola Pero  <nicola.pero@meta-innovation.com>
668
669         Implemented -fobjc-std=objc1 flag.
670         * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
671         option.
672         * doc/standards.texi (Standards): Updated the section on
673         Objective-C; mention support for Objective-C 2.0 features and the
674         new -fstd-objc=objc1 flag to disable them.
675
676 2010-11-03  Richard Guenther  <rguenther@suse.de>
677
678         PR middle-end/46241
679         * dwarf2out.c (scope_die_for): Properly detect global scope.
680
681 2010-11-03  Richard Guenther  <rguenther@suse.de>
682
683         PR tree-optimization/46190
684         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
685         Properly compute peel iterations.
686
687 2010-11-03  Richard Guenther  <rguenther@suse.de>
688
689         PR tree-optimization/46286
690         * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
691         re-allocated vector data.
692
693 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
694
695         PR target/46285
696         * config/i386/i386.c (ix86_expand_call): Conditionally decorate
697         calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
698         is completed.
699
700 2010-11-03  Richard Guenther  <rguenther@suse.de>
701
702         PR tree-optimization/46217
703         * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
704         flag matches.
705         (execute_update_addresses_taken): Likewise.
706
707 2010-11-03  Joern Rennecke  <joern.rennecke@embecosm.com>
708
709         PR bootstrap/44335
710         * targhooks.c (targhook_words_big_endian): New function.
711         (targhook_float_words_big_endian): Likewise.
712         * targhooks.h (targhook_words_big_endian): Declare.
713         (targhook_float_words_big_endian): Likewise.
714         * target.def (words_big_endian, float_words_big_endian): New hooks.
715
716 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
717
718         PR tree-optimization/46165
719         * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
720         a normal call into noreturn call.
721
722 2010-11-03  Richard Guenther  <rguenther@suse.de>
723
724         PR middle-end/46251
725         * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
726         not INDIRECT_REFs.
727
728 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
729
730         PR tree-optimization/46107
731         * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
732         if cfg_hook_duplicate_loop_to_header_edge failed.
733
734 2010-11-03  Ian Lance Taylor  <iant@google.com>
735
736         PR lto/46273
737         * config.gcc: Don't set lto_binary_reader.
738         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
739         (Configuration): Mention --disable-lto.  Remove --with-libelf
740         paragraph.
741
742 2010-11-03  Jakub Jelinek  <jakub@redhat.com>
743
744         PR debug/46252
745         * reload1.c (delete_dead_insn): Use prev_active_insn instead of
746         prev_real_insn.
747         * gcse.c (insert_insn_end_basic_block): Likewise.
748
749         PR rtl-optimization/46034
750         PR rtl-optimization/46212
751         PR rtl-optimization/46248
752         * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
753         and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
754         before i0dest -> i0src substitution and pass 1 instead of 0 as last
755         argument to subst on i2pat.
756
757 2010-11-02  Ian Lance Taylor  <iant@google.com>
758
759         * configure.ac: Use AC_SYS_LARGEFILE.
760         * configure: Rebuild.
761         * config.in: Rebuild.
762
763 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
764
765         * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
766         fold_convert.
767         * c-typeck.c (build_function_call_vec): Likewise.
768         * cfgexpand.c (expand_debug_expr): Likewise.
769         * cgraphunit.c (assemble_thunk): Likewise.
770         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
771         * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
772         (fold_binary_loc, fold_ternary_loc): Likewise.
773         * gimple-fold.c (get_symbol_constant_value): Likewise.
774         * gimple-low.c (lower_builtin_setjmp): Likewise.
775         * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
776         * gimplify.c (gimplify_init_constructor): Likewise.
777         * lambda.h (build_linear_expr): Likewise.
778         * omp-low.c (omp_reduction_init): Likewise.
779         * tree-inline.c (remap_ssa_name): Likewise.
780         * tree-object-size.c (compute_object_sizes): Likewise.
781         * tree-sra.c (init_subtree_with_zero): Likewise.
782         (sra_ipa_modify_assign): Likewise.
783         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
784         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
785         (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
786         (undistribute_ops_list): Likewise.
787         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
788         * tree-vect-stmts.c (vectorizable_call): Likewise.
789         * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
790         (build_zero_cst): Handle more cases directly.  Update comment.
791
792 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
793
794         * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
795         * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
796
797         * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
798         and call ix86_split_call_vzeroupper instead of
799         ix86_split_call_pop_vzeroupper.
800         (*call_pop_1_vzeroupper): Likewise.
801         (*sibcall_pop_1_vzeroupper): Likewise.
802         (*call_value_pop_0_vzeroupper): Likewise.
803         (*call_value_pop_1_vzeroupper): Likewise.
804         (*sibcall_value_pop_1_vzeroupper): Likewise.
805
806 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
807
808         * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
809
810 2010-11-02  Eric Botcazou  <ebotcazou@adacore.com>
811
812         * basic-block.h (insert_insn_end_bb_new): Delete.
813         * cfgrtl.c (insert_insn_end_bb_new): Likewise.
814
815 2010-11-02  Uros Bizjak  <ubizjak@gmail.com>
816             H.J. Lu  <hongjiu.lu@intel.com>
817
818         * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
819         (ix86_split_call_pop_vzeroupper): Likewise.
820
821         * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
822         (ix86_expand_call): Conditionally decorate calls with
823         UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
824         (ix86_split_call_vzeroupper): New.
825         (ix86_split_call_pop_vzeroupper): Likewise.
826
827         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
828         (*call_pop_0_vzeroupper): New insn_and_split pattern.
829         (*call_pop_1_vzeroupper): Likewise.
830         (*sibcall_pop_1_vzeroupper): Likewise.
831         (*call_0_vzeroupper): Likewise.
832         (*call_1_vzeroupper): Likewise.
833         (*sibcall_1_vzeroupper): Likewise.
834         (*call_1_rex64_vzeroupper): Likewise.
835         (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
836         (*call_1_rex64_large_vzeroupper): Likewise.
837         (*sibcall_1_rex64_vzeroupper): Likewise.
838         (*call_value_pop_0_vzeroupper): Likewise.
839         (*call_value_pop_1_vzeroupper): Likewise.
840         (*sibcall_value_pop_1_vzeroupper): Likewise.
841         (*call_value_0_vzeroupper): Likewise.
842         (*call_value_0_rex64_vzeroupper): Likewise.
843         (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
844         (*call_value_1_vzeroupper): Likewise.
845         (*sibcall_value_1_vzeroupper): Likewise.
846         (*call_value_1_rex64_vzeroupper): Likewise.
847         (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
848         (*call_value_1_rex64_large_vzeroupper): Likewise.
849         (*sibcall_value_1_rex64_vzeroupper): Likewise.
850
851 2010-11-02  Ian Lance Taylor  <iant@google.com>
852
853         PR lto/46273
854         * config.gcc: Revert last patch: set lto_binary_reader.
855
856 2010-11-02  Richard Guenther  <rguenther@suse.de>
857
858         PR tree-optimization/46149
859         * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
860         non-indirect MEM_REF variants.
861
862 2010-11-02  Richard Guenther  <rguenther@suse.de>
863
864         PR tree-optimization/46216
865         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
866         Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
867
868 2010-11-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
869
870         * configure.ac (*-*-irix6*): Disable set_have_as_tls.
871         (*-*-osf*): Likewise.
872         * configure: Regenerate.
873
874 2010-11-02  H.J. Lu  <hongjiu.lu@intel.com>
875
876         * config/i386/driver-i386.c (host_detect_local_cpu): Updated
877         for Intel Core 2 and Core i7.
878
879 2010-11-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
880
881         Model decoder of Core 2/i7 for multipass scheduling.
882
883         * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
884         New type to hold target-specific data for multipass scheduling.
885         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
886         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
887         Core 2/i7.
888         (core2i7_secondary_decoder_max_insn_size,)
889         (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
890         New static variables.
891         ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
892         ([_]ix86_first_cycle_multipass_data): New static variable.
893         (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
894         Implement targetm.sched hooks.
895         (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
896         of ...
897         (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
898         Implement new targetm.sched hooks.
899         (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
900         targetm.sched hook to install multipass scheduling hooks on demand.
901
902         * doc/tm.texi.in: Document new targetm.sched hooks.
903         * doc/tm.texi: Regenerate.
904
905         * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
906         (first_cycle_multipass_data_t): New typedef.
907         (struct choice_entry: target_data): New field.
908         (max_issue): Add first_cycle_insn_p parameter.  Call new target hooks
909         to allow target model restrictions not represented in DFA.
910         (choose_ready, schedule_block): Update.
911         (sched_extend_ready_list, sched_finish_ready_list): Call new target
912         hooks to initialize target-specific data for multipass scheduling.
913         * sched-int.h (max_issue): Update declaration.
914         * sel-sched.c (choose_best_insn): Update.
915         * target.def (first_cycle_multipass_{begin, issue, backtrack},)
916         (first_cycle_multipass_{init, fini}): Define and document new
917         targetm.sched hooks.
918
919 2010-11-02  Richard Guenther  <rguenther@suse.de>
920
921         PR tree-optimization/46184
922         * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
923         input vector type from the reduction operand as well.
924
925 2010-11-02  Richard Guenther  <rguenther@suse.de>
926
927         PR tree-optimization/46177
928         * tree-loop-distribution.c (prop_phis): Use
929         mark_virtual_phi_result_for_renaming.
930
931 2010-11-02  Martin Jambor  <mjambor@suse.cz>
932
933         PR middle-end/46120
934         * tree.c (get_binfo_at_offset): Bail out on artificial
935         fields.  Identify primary bases according to their offsets.
936
937 2010-11-02  Martin Jambor  <mjambor@suse.cz>
938
939         PR tree-optimization/45875
940         * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
941         (gimple_get_relevant_ref_binfo): Detect primary bases according to
942         their field offset.
943
944 2010-11-02  Ian Lance Taylor  <iant@google.com>
945
946         * doc/install.texi (Configuration): Note in two places that Java
947         is not enabled by default.
948
949 2010-11-02  Ian Lance Taylor  <iant@google.com>
950
951         * doc/install.texi (Prerequisites): Remove libelf paragraphs.
952         (Configuration): Mention --disable-lto.  Remove --with-libelf
953         paragraph.
954
955 2010-11-02  Ian Lance Taylor  <iant@google.com>
956
957         * configure.ac: Remove elf_getshdrstrndx test.  Don't substitute
958         LTO_BINARY_READER or LTO_USE_LIBELF.  Remove LIBELFLIBS and
959         LIBELFINC.  Remove HAVE_libelf.
960         * config.gcc: Don't set lto_binary_reader.
961         * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
962         (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
963         (LIBS): Remove $(LIBELFLIBS).
964         (INCLUDES): Remove $(LIBELFINC).
965         * configure: Rebuild.
966         * config.in: Rebuild.
967
968 2010-11-02  Nathan Froyd  <froydnj@codesourcery.com>
969
970         * config/microblaze/microblaze-protos.h (function_arg): Delete.
971         (function_arg_advance): Delete.
972         * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
973         (FUNCTION_ARG): Delete.
974         * config/microblaze/microblaze.c (function_arg_advance): Rename to...
975         (microblaze_function_arg_advance): ...this.  Make static.  Take a
976         const_tree and a bool.
977         (function-arg): Rename to...
978         (microblaze_function_arg): ...this.  Make static.  Take a const_tree
979         and a bool.
980         (microblaze_expand_prologue): Call targetm.calls.function_arg and
981         targetm.calls.function_arg_advance.
982         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
983
984 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
985
986         Merge from FSF "apple/trunk" branch.
987
988         * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
989         * config/darwin.opt: .. to here.
990         (matt-stubs): New option.
991         * config/i386/darwin.opt: Delete.
992         * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
993         (MACHO_DYNAMIC_NO_PIC_P): New.
994         (MACHOPIC_INDIRECT): New.
995         (MACHOPIC_PURE): New.
996         * config/i386/darwin.h (DARWIN_X86) Define to 1.
997         (MACHOPIC_ATT_STUB): New.
998         (CC1_SPEC): Do not remove mdynamic-no-pic.
999         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
1000         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
1001         (FUNCTION_PROFILER): Correct over-length line.
1002         (SUBTARGET_OVERRIDE_OPTIONS): New.
1003         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
1004         * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
1005         (legitimate_constant_p): Handle mdynamic-no-pic.
1006         (ix86_legitimate_address_p): Likewise.
1007         (ix86_legitimize_address): Likewise.
1008         (ix86_expand_move): Likewise.
1009         (machopic_output_stub): Update for ATT-style stubs and
1010         mdynamic-no-pic.
1011         * config/darwin-protos.h (machopic_symbol_defined_p): New.
1012         * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
1013         TARGET_DYNAMIC_NO_PIC: Remove.
1014         Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
1015         UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
1016         * config/rs6000/rs6000.c (darwin_rs6000_override_options):
1017         Remove handling of mdynamic-no-pic.
1018         * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
1019         Define if required.
1020         (machopic_symbol_defined_p): Do not try to use current_function_decl
1021         when generating _get_pc thunks within stubs.
1022         (machopic_indirect_data_reference): Rework for direct conditionals
1023         rather than #ifdefs, add x86 mdynamic-no-pic
1024         (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
1025         defined value.
1026         (darwin_override_options): Handle mdynamic-no-pic here.
1027         * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
1028         (machopic_lazy_symbol_ptr3_section): New.
1029         (machopic_picsymbol_stub2_section): New.
1030         (machopic_picsymbol_stub3_section): New.
1031         * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
1032         (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
1033         (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
1034         Moved common definition from x86 and rs6000.
1035         (MACHO_DYNAMIC_NO_PIC_P): Override value.
1036         (MACHOPIC_INDIRECT): Likewise.
1037         (MACHOPIC_PURE): Likewise.
1038         * config.gcc (x86-darwin-*): Remove darwin.opt.
1039
1040 2010-11-02  Jakub Jelinek  <jakub@redhat.com>
1041
1042         PR debug/46255
1043         * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
1044         instead of gsi_last_bb.
1045
1046 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
1047             Maxim Kuvyrkov  <maxim@codesourcery.com>
1048
1049         * config/i386/i386.c (cpu_names): Add "corei7".
1050         * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
1051
1052 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
1053             Maxim Kuvyrkov  <maxim@codesourcery.com>
1054
1055         Tune alignment for Intel Core i7
1056
1057         * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
1058         (enum processor_type): Update comment.  Add entries for Core i7.
1059         * config/i386-c.c (ix86_target_macros_internal): Update.
1060         * config/i386.c (m_COREI7{_32,_64}): New macros.
1061         (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
1062         (processor_target_table): Tune alignment for Core i7.
1063         (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
1064
1065         * doc/invoke.texi: Document "corei7" option value.
1066
1067 2010-11-02  Bernd Schmidt  <bernds@codesourcery.com>
1068             Maxim Kuvyrkov  <maxim@codesourcery.com>
1069             H.J. Lu  <hjl.tools@gmail.com>
1070
1071         Basic support for Intel Core i7
1072
1073         * i386.c (ix86_option_override_internal): Add entry for corei7, use
1074         generic tuning.  Use generic32 when compiling for 32-bit ABI.
1075
1076 2010-11-02  Iain Sandoe  <iains@gcc.gnu.org>
1077
1078         * config/darwin.c (darwin_asm_named_section): Check for __DWARF
1079         sections and call darwin_asm_dwarf_section() to handle them.
1080         (darwin_asm_dwarf_section): New.
1081         (darwin_file_start): Remove code emitting dwarf section symbols.
1082
1083 2010-11-02  Chung-Lin Tang <cltang@codesourcery.com>
1084
1085         * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
1086         explicitly disable stack protection when building libgcc.
1087         (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
1088
1089 2010-11-01  Jason Merrill  <jason@redhat.com>
1090
1091         * fold-const.c (fold_indirect_ref_1): Handle folding
1092         POINTER_PLUS_EXPR to ARRAY_REF.
1093
1094 2010-11-01  Kaz Kojima  <kkojima@gcc.gnu.org>
1095
1096         * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
1097         (sh_delegitimize_address): New function.
1098
1099 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
1100
1101         * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
1102         * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
1103         (CC1_SPEC): Don't handle -target.
1104         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
1105         options.
1106         * config/darwin.opt (Zallowable_client, Zbundle_loader,
1107         Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
1108         Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
1109         Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
1110         Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
1111         Zweak_reference_mismatches, client_name, compatibility_version,
1112         current_version, dylinker_install_name, pagezero_size,
1113         read_only_relocs, seg1addr, segs_read_only_addr,
1114         segs_read_write_addr, sub_library, sub_umbrella): New.
1115         * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
1116         * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
1117         * config/freebsd.opt: New.
1118         * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
1119         * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
1120         * config/rpath.opt: New.
1121         * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
1122         (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
1123         Use rpath.opt.
1124
1125 2010-11-01  Joseph Myers  <joseph@codesourcery.com>
1126
1127         * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
1128         * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
1129         (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
1130         * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
1131         (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
1132         Document that options in .opt files do not need to be included.
1133         * doc/tm.texi: Regenerate.
1134         * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
1135         * opts-common.c: Update comment on tm.h include.
1136         (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
1137         * system.h (SWITCH_TAKES_ARG): Poison.
1138         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
1139         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
1140         in darwin.opt.
1141         (LINK_COMMAND_SPEC_A): Don't include %{x}.
1142         * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1143         * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
1144         * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
1145         * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1146         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
1147         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
1148         * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
1149         * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
1150         * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1151         * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
1152         * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
1153         * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
1154         * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
1155         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
1156         * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
1157         * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
1158         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
1159         * config/score/score.h (SWITCH_TAKES_ARG): Remove.
1160         * config/sol2.h (SWITCH_TAKES_ARG): Remove.
1161         * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
1162         * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
1163         * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
1164         * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
1165
1166 2010-11-01  Paul Koning  <ni1d@arrl.net>
1167
1168         * config/pdp11/pdp11.md: Use iterators.
1169         (addqi3, subqi3, iorsi3, xorsi3): Delete.
1170
1171 2010-11-01  Steve Ellcey  <sje@cup.hp.com>
1172
1173         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
1174         GCC_INSN_FLAGS_H.
1175         * libgcov.c (__gcov_indirect_call_profiler): Set
1176         VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
1177         defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
1178
1179 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
1180
1181         PR tree-optimization/46259
1182
1183         Revert:
1184         2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1185
1186         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
1187         build_vector_from_val.
1188
1189 2010-11-01  DJ Delorie  <dj@redhat.com>
1190
1191         * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
1192         as well as an assertion.
1193
1194 2010-11-01  Paul Koning  <ni1d@arrl.net>
1195
1196         * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
1197         complex modes in memory.
1198
1199 2010-11-01  Nathan Froyd  <froydnj@codesourcery.com>
1200
1201         * tree.c (build_vector_from_val): Use useless_type_conversion_p.
1202
1203 2010-11-01  Jakub Jelinek  <jakub@redhat.com>
1204
1205         PR target/45250
1206         * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
1207         (cfa_base_offset): New variable.
1208         (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
1209         (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
1210         is NULL.
1211         (vt_init_cfa_base): Initialize cfa_base_offset.
1212
1213 2010-11-01  Alan Modra  <amodra@gmail.com>
1214
1215         PR target/46030
1216         * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
1217         and savres_strategy.
1218         (stack_info): New file scope var.
1219         (rs6000_init_machine_status): Init stack_info.
1220         (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
1221         SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
1222         SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
1223         (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
1224         SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
1225         REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this.  Update all refs.
1226         (rs6000_savres_strategy): Rewrite.
1227         (rs6000_stack_info): Use "stack_info" in place of local "info".
1228         Return cached stack info when reload_completed unless ENABLE_CHECKING
1229         in which case confirm newly calculated stack info matches old info.
1230         Delay calculation of lr_save_p, set it for out of line gp save/restore
1231         as well as fp.  Call rs6000_savres_strategy from here..
1232         (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
1233         (rs6000_output_function_prologue): Use info->savres_strategy to
1234         determine whether fp save/restore externs need to be emitted.
1235
1236 2010-10-31  Jason Merrill  <jason@redhat.com>
1237
1238         * tree.h (EXPR_LOC_OR_HERE): New macro.
1239         * builtins.c (c_strlen): Use it.
1240         * c-decl.c (build_enumerator): Likewise.
1241         * gimplify.c (internal_get_tmp_var): Likewise.
1242         (shortcut_cond_expr): Likewise.
1243         (gimplify_one_sizepos): Likewise.
1244
1245 2010-10-31  Richard Henderson  <rth@redhat.com>
1246
1247         * config/i386/cygming.h (TARGET_SEH): New.
1248         (MAX_STACK_ALIGNMENT): New.  Disable alignment for SEH.
1249         (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
1250         TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
1251         (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
1252         (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
1253         (ASM_DECLARE_FUNCTION_SIZE): New.
1254         * config/i386/i386-protos.h: Update.
1255         * config/i386/i386.c (ix86_option_override_internal): Enable
1256         flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
1257         restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
1258         (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
1259         (ix86_compute_frame_layout): For SEH, disable
1260         use_fast_prologue_epilogue, move frame pointer to the end of
1261         the frame.  Initialize hfp_save_offset.
1262         (ix86_expand_prologue): Honor hfp_save_offset.  Emit blockage
1263         at end of prologue for SEH.
1264         (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
1265         emit blockage at beginning of epilogue.
1266         (ix86_expand_binary_operator): After reload, emit LEA if needed.
1267         (ix86_output_call_insn): New.
1268         * config/i386/i386.h (TARGET_SEH): New.
1269         (struct machine_function): Add member seh.
1270         * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
1271         * config/i386/winnt.c (struct seh_frame_state): New.
1272         (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
1273         seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
1274         seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
1275         i386_pe_start_function, i386_pe_end_function): New.
1276
1277         * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
1278         as CFA_STORE in rules 12 and 13.
1279
1280 2010-10-31  Uros Bizjak  <ubizjak@gmail.com>
1281
1282         PR tree-optimization/46142
1283         * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
1284         accommodate third function argument.
1285
1286 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1287
1288         * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
1289
1290 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1291
1292         * fold-const.c (build_zero_vector): Use build_vector_from_val.
1293         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1294         (get_initial_def_for_reduction): Likewise.
1295         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1296         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1297         * tree.c (build_one_cst): Likewise.
1298         (build_vector_from_val): Use types_compatible_p for assert.
1299
1300 2010-10-30  Nathan Froyd  <froydnj@codesourcery.com>
1301
1302         * emit-rtl.c (mark_used_flags): New function.
1303         (set_used_flags, reset_used_flags): Call it.
1304
1305 2010-10-30  Uros Bizjak  <ubizjak@gmail.com>
1306
1307         PR middle-end/44569
1308         * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
1309         determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
1310
1311 2010-10-30  H.J. Lu  <hongjiu.lu@intel.com>
1312
1313         PR target/46195
1314         * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
1315         (ix86_compat_aligned_value_p): This.
1316         (ix86_old_function_arg_boundary): Renamed to ...
1317         (ix86_compat_function_arg_boundary): This.  Updated.
1318         (ix86_contains_aligned_value_p): New.
1319         (ix86_function_arg_boundary): Align long double parameters on
1320         stack to 4byte in 32bit.
1321
1322 2010-10-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1323
1324         Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1325         * c-parser.c (c_parser_objc_at_property_declaration): Removed
1326         parsing of RID_COPIES and RID_IVAR.  Updated call to
1327         objc_add_property_declaration.
1328         * c-typecheck.c (build_component_ref): Call
1329         objc_maybe_build_component_ref instead of objc_build_setter_call.
1330         Use objc_is_property_ref to improve Objective-C checks.
1331         (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
1332         of objc_build_getter_call.
1333
1334 2010-10-29  Paul Koning  <ni1d@arrl.net>
1335
1336         * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
1337         REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
1338         REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
1339         (REG_OK_STRICT): Move description.
1340
1341 2010-10-29  Paul Koning  <ni1d@arrl.net>
1342
1343         * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
1344
1345 2010-10-29  Paul Koning  <ni1d@arrl.net>
1346
1347         * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
1348
1349 2010-10-29  Paul Koning  <ni1d@arrl.net>
1350
1351         PR/41822
1352         * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
1353
1354 2010-10-29  Richard Henderson  <rth@redhat.com>
1355
1356         PR rtl-opt/46226
1357         * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
1358         for asm goto.
1359
1360 2010-10-29  Paul Koning  <ni1d@arrl.net>
1361
1362         * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
1363         register to register move.
1364
1365 2010-10-29  Paul Koning  <ni1d@arrl.net>
1366
1367         * config/pdp11/pdp11.c (print_operand_address): Correct handling
1368         of integer constant addresses, delete vax-only logic.
1369
1370 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
1371
1372         * config/picochip/picochip.c (picochip_is_short_branch): Simplify
1373         a conditional expression.
1374
1375 2010-10-29  Paul Koning  <ni1d@arrl.net>
1376
1377         * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
1378         instruction encoding.
1379
1380 2010-10-29  Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1381             Andrew Pinski <pinskia@gmail.com>
1382
1383         * tree.h (build_vector_from_val): Declare.
1384         * tree.c (build_vector_from_val): New function.
1385         * c-typeck.c (build_binary_op): Handle vector shifting.
1386         * doc/extend.texi: Description of the vector shifting operation.
1387
1388 2010-10-29  Paul Koning  <pkoning@equallogic.com>
1389
1390         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
1391         pdp11_secondary_memory_needed): Declare.
1392         * config/pdp11/predicates.md (float_operand): New predicate.
1393         * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
1394         (cbranchdf4, movdf): Change predicate.
1395         (movsf): Handle FPU register case.
1396         (truncdfsf2, extendsfdf2): Add FPU register case.
1397         * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
1398         TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
1399         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1400         (pdp11_register_move_cost): Update cost matrix.
1401         (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
1402         pdp11_preferred_output_reload_class, pdp11_secondary_reload,
1403         pdp11_secondary_memory_needed): New function.
1404         (pdp11_return_in_memory): Add other float types.
1405         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
1406         (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
1407         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
1408         REGISTER_MOVE_COST): Delete.
1409         (BASE_RETURN_VALUE_REG): Add other float types.
1410
1411 2010-10-29  Nick Clifton<nickc@redhat.com>
1412
1413         * doc/invoke.texi: Document -mam34 and -mtune options.
1414         * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
1415         (mn10300_tune_cpu): New variable.
1416         (mn10300_handle_option): Handle -mam34 and -mtune options.
1417         (mn10300_option_override): Convert tune string into tune cpu variable.
1418         (mn10300_legitimate_constant_p): Delete unused local variable.
1419         (is_load_insn): New function.
1420         (is_store_insn): New function.
1421         (mn10300_adjust_schedule_cost): New function.
1422         (TARGET_SCHED_ADJUST_COST): Define.
1423         * config/mn10300/mn10300.opt (mam34): New option.
1424         (mtune): New option.
1425         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
1426         (enum processor_type): Add AM34.
1427         (TARGET_AM34): Define.
1428         * config/mn10300/mn10300.md (attr cpu): Add am34.
1429         Add pipeline description.
1430         (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
1431         Remove unneeded alternatives.  Add timing attribute.
1432         (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
1433         mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
1434         mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
1435         mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
1436         mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
1437         bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
1438         bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
1439         float_conditional_branch, jump, indirect_jump, tablejump,
1440         call_internal, call_value_internal, zero_extendqisi2_am33,
1441         zero_extendqisi2_mn10300, zero_extendhisi2_am33,
1442         zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
1443         extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
1444         mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
1445         mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
1446         addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
1447         fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
1448         return_internal_regs, store_movm, return, call_next_insn):
1449         Add timing attribute.
1450         (am33_subsi3): Add missing clobber of CC_REG.
1451         (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
1452         (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
1453         subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
1454         extendqisi2): Fix predicates.
1455         (call_internal, call_internal_value): Separate alternatives.
1456         * config/mn10300/t-mn10300: Add AM34 multilib.
1457
1458 2010-10-29  Paolo Bonzini  <bonzini@gnu.org>
1459
1460         * config/sh/sh.c (sh_promote_function_mode): Use
1461         default_promote_function_mode if !sh_promote_prototypes.
1462
1463 2010-10-28  Paolo Bonzini  <bonzini@gnu.org>
1464
1465         * recog.c (split_all_insns): Remove dead code.
1466
1467 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1468
1469         * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1470
1471 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1472
1473         * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1474         (FUNCTION_ARG_ADVANCE): Delete.
1475         * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
1476         functions.
1477         (cris_function_incoming_arg, cris_function_arg_advance): New functions.
1478         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1479         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1480
1481 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1482
1483         * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
1484         * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1485         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
1486         Take a const_tree and a bool.
1487         (mcore_function_arg_advance): New function.
1488         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1489
1490 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1491
1492         * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
1493         * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1494         * config/mcore/mcore.c (mcore_function_arg): Declare.  Make static.
1495         Take a const_tree and a bool.
1496         (mcore_function_arg_advance): New function.
1497         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1498
1499 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1500
1501         * config/h8300/h8300-protos.h (function_arg): Delete.
1502         * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1503         * config/h8300/h8300.c (function_arg): Rename to...
1504         (h8300_function_arg): ...this.  Make static.  Take a const_tree and
1505         a bool.
1506         (h8300_function_arg_advance): New function.
1507         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1508
1509 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1510
1511         * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
1512         to...
1513         * config/arc/arc.c (arc_function_arg): ...here and...
1514         (arc_function_arg_advance): ...here.  New functions.
1515         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1516
1517 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1518
1519         * config/crx/crx-protos.h (crx_function_arg): Delete.
1520         (crx_function_arg_advance): Delete.
1521         * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1522         * config/crx/crx.c (crx_function_arg): Make static.  Take a
1523         const_tree and a bool.
1524         (crx_function_arg_advance): Make static.  Take a const_tree and a bool.
1525         (enough_regs_for_param): Take a const_tree.
1526         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1527
1528 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1529
1530         * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
1531         (m68hc11_function_arg_advance): Delete.
1532         * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
1533         (FUNCTION_ARG_ADVANCE): Delete.
1534         * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
1535         Take a const_tree and a bool.
1536         (m68hc11_function_arg_advance): Likewise.
1537         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1538
1539 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1540
1541         * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
1542         (xstormy16_function_arg_advance): Delete.
1543         * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
1544         (FUNCTION_ARG_ADVANCE): Delete.
1545         * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
1546         Take a const_tree and a bool.
1547         (xstormy16_function_arg_advance): Likewise.  Return void, updating
1548         the CUM parameter instead.
1549         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1550
1551 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1552
1553         * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
1554         * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1555         (MOXIE_FUNCTION_ARG_SIZE): Move to...
1556         * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
1557         (moxie_function_arg): Make static.  Take a const_tree and a bool.
1558         (moxie_function_arg_advance): New function.
1559         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1560
1561 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1562
1563         * config/mn10300/mn10300-protos.h (function_arg): Delete.
1564         * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
1565         (FUNCTION_ARG_ADVANCE): Delete.
1566         * config/mn10300/mn10300.c (function_arg): Rename to...
1567         (mn10300_function_arg): ...this.  Make static.  Take a const_tree
1568         and a bool.
1569         (mn10300_function_arg_advance): New function.
1570         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1571
1572 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1573
1574         * config/iq2000/iq2000-protos.h (function_arg): Delete.
1575         (function_arg_advance): Delete.
1576         * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1577         * config/iq2000/iq2000.c (function_arg): Rename to...
1578         (iq2000_function_arg): ...this.  Make static.  Take a const_tree and
1579         a bool.
1580         (function_arg_advance): Rename to...
1581         (iq2000_function_arg_advance): ...this.  Make static.  Take a
1582         const_tree and a bool.
1583         (iq2000_expand_prologue): Call iq2000_function_arg_advance and
1584         iq2000_function_arg.
1585         (iq2000_pass_by_reference): Call iq2000_function_arg).
1586         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1587
1588 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1589
1590         * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
1591         * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1592         * config/fr30/fr30.c (fr30_num_arg_regs): Make static.  Take a
1593         const_tree.
1594         (fr30_function_arg): New function.
1595         (fr30_function_arg_advance): New function.
1596         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1597
1598 2010-10-28  Nathan Froyd  <froydnj@codesourcery.com>
1599
1600         * config/frv/frv-protos.h (frv_function_arg): Delete.
1601         (frv_function_arg_advance): Delete.
1602         * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1603         * config/frv/frv.c (frv_function_arg): Rename to...
1604         (frv_function_arg_1): Make static.  Take const_tree and bool arguments.
1605         (frv_function_arg, frv_function_incoming_arg): New functions.
1606         (frv_function_arg_advance): Make static.  Take a const_tree and a bool.
1607         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1608         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1609
1610 2010-10-28  Uros Bizjak  <ubizjak@gmail.com>
1611
1612         PR target/46153
1613         * config/i386/sse.md (sse_movhlps_exp): Use destination
1614         returned from ix86_fixup_binary_operands to expand insn.
1615         (sse_movlhps_exp): Ditto.
1616         (sse_loadhps_exp): Ditto.
1617         (sse_loadlps_exp): Ditto.
1618         (sse2_loadhpd_exp): Ditto.
1619         (sse2_loadlpd_exp): Ditto.
1620
1621 2010-10-28  Andrew Stubbs  <ams@codesourcery.com>
1622
1623         * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
1624         constants in thumb2.
1625
1626 2010-10-28  Eric Botcazou  <ebotcazou@adacore.com>
1627
1628         * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
1629         arithmetics in masking operations.
1630         (contains_muldiv): Likewise.
1631         (try_combine): Likewise.
1632         (find_split_point): Likewise.
1633         (combine_simplify_rtx): Likewise.
1634         (simplify_if_then_else): Likewise.
1635         (simplify_set): Likewise.
1636         (expand_compound_operation): Likewise.
1637         (expand_field_assignment): Likewise.
1638         (make_extraction): Likewise.
1639         (extract_left_shift): Likewise.
1640         (make_compound_operation): Likewise.
1641         (force_to_mode): Likewise.
1642         (make_field_assignment): Likewise.
1643         (reg_nonzero_bits_for_combine): Likewise.
1644         (simplify_shift_const_1): Likewise.
1645         (simplify_comparison): Likewise.
1646
1647 2010-10-27  Nathan Froyd  <froydnj@codesourcery.com>
1648
1649         * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
1650         (ia64_function_arg_advance): Delete.
1651         * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1652         (FUNCTION_ARG_ADVANCE): Delete.
1653         * config/ia64/ia64.c (ia64_function_arg): Rename to...
1654         (ia64_function_arg_1): ...this.  Make static.  Take const_tree and
1655         bool arguments.
1656         (ia64_function_arg, ia64_function_incoming_arg): New functions.
1657         (ia64_function_arg_advance): Make static.  Take a const_tree and
1658         a bool.
1659         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1660         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1661
1662 2010-10-27  Steve Ellcey  <sje@cup.hp.com>
1663
1664         * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
1665         (TARGET_GET_RAW_ARG_MODE): New.
1666         * doc/tm.texi: Regenerate.
1667         * target.def (get_raw_result_mode): New.
1668         (get_raw_arg_mode): New.
1669         * targhooks.c (default_get_reg_raw_mode): New.
1670         * targhooks.h (default_get_reg_raw_mode): New.
1671         * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
1672         (apply_result_size): Ditto.
1673         * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
1674         (TARGET_GET_RAW_RESULT_MODE): Define.
1675         (TARGET_GET_RAW_ARG_MODE): Ditto.
1676
1677 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1678
1679         * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
1680         for newer Solaris 10 release.
1681         (sparc_fallback_frame_state): Likewise.
1682
1683 2010-10-27  Jason Merrill  <jason@redhat.com>
1684
1685         * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
1686         variables sooner.
1687
1688 2010-10-27  Jie Zhang  <jie@codesourcery.com>
1689             Maxim Kuvyrkov  <maxim@codesourcery.com>
1690
1691         * haifa-sched.c (ISSUE_POINTS): Remove.
1692         (max_issue): Don't issue more than issue_rate instructions.
1693
1694 2010-10-27  Ian Lance Taylor  <iant@google.com>
1695
1696         PR target/46197
1697         * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
1698         (split_stack_return): Replace UNSPEC_STACK_CHECK with
1699         UNSPECV_SPLIT_STACK_RETURN.
1700
1701 2010-10-27  H.J. Lu  <hongjiu.lu@intel.com>
1702
1703         * config/i386/i386-protos.h (init_cumulative_args): Add an int.
1704
1705         * config/i386/i386.c (block_info): New.
1706         (BLOCK_INFO): Likewise.
1707         (call_avx256_state): Likewise.
1708         (check_avx256_stores): Likewise.
1709         (move_or_delete_vzeroupper_2): Likewise.
1710         (move_or_delete_vzeroupper_1): Likewise.
1711         (move_or_delete_vzeroupper): Likewise.
1712         (use_avx256_p): Likewise.
1713         (function_pass_avx256_p): Likewise.
1714         (flag_opts): Add -mvzeroupper.
1715         (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
1716         default for TARGET_AVX.  Turn off MASK_VZEROUPPER if TARGET_AVX
1717         is disabled.
1718         (ix86_function_ok_for_sibcall): Disable sibcall if we need to
1719         generate vzeroupper.
1720         (init_cumulative_args): Add an int to indicate caller.  Set
1721         use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
1722         based on return type.
1723         (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
1724         caller_pass_avx256_p based on argument type.
1725         (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
1726         is used, but not returned by caller.
1727         (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
1728         (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
1729         is used.
1730         (ix86_minimum_alignment): Likewise.
1731         (ix86_expand_special_args_builtin): Set target to
1732         GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
1733         (ix86_reorg): Run the vzeroupper optimization if needed.
1734
1735         * config/i386/i386.h (ix86_args): Add caller.
1736         (INIT_CUMULATIVE_ARGS): Updated.
1737         (machine_function): Add use_vzeroupper_p, use_avx256_p,
1738         caller_pass_avx256_p, caller_return_avx256_p,
1739         callee_pass_avx256_p and callee_return_avx256_p.
1740
1741         * config/i386/i386.opt (-mvzeroupper): New.
1742
1743         * config/i386/predicates.md (vzeroupper_operation): Removed.
1744
1745         * config/i386/sse.md (avx_vzeroupper): Removed.
1746         (*avx_vzeroupper): Removed.
1747         (avx_vzeroupper): New.
1748
1749         * doc/invoke.texi: Document -mvzeroupper.
1750
1751 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1752
1753         * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
1754         * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
1755         * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
1756
1757 2010-10-27  Eric Botcazou  <ebotcazou@adacore.com>
1758             Olivier Hainque  <hainque@adacore.com>
1759
1760         * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
1761         of EBP.  Do not restore reg #9.  Remove +1 adjustment to EIP and set
1762         fs->signal_frame instead.
1763
1764 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1765
1766         * c-parser.c (cp_parser_objc_at_property_declaration): Removed
1767         parsing of RID_COPIES and RID_IVAR.
1768
1769 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1770
1771         * c-parser.c (c_parser_objc_at_property_declaration): Recognize
1772         RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
1773         Do not use objc_set_property_attr, but use local variables
1774         instead.  Detect repeated usage of setter, getter and ivar
1775         attributes.  Improved error processing when a setter name does not
1776         end in ':'.  Do not check for CPP_CLOSE_PAREN after we determined
1777         that the token is a keyword.  Updated call to
1778         objc_add_property_declaration.
1779
1780 2010-10-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1781
1782         * c-parser.c (c_parser_objc_at_property): Renamed to
1783         c_parser_objc_at_property_declaration.  Updated calls to
1784         objc_add_property_variable, now objc_add_property_declaration.
1785         Code rewritten to be much more robust in recovering from syntax
1786         errors.  Added comments.
1787         (c_parser_objc_property_attrlist): Removed.
1788         (c_parser_external_declaration): Updated calls to
1789         c_parser_objc_at_property, now
1790         c_parser_objc_at_property_declaration.
1791         (c_parser_objc_methodprotolist): Same change.
1792
1793 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1794
1795         * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
1796
1797 2010-10-26  Jan Hubicka  <jh@suse.cz>
1798
1799         * ipa.c (process_references): Enqueue all referenced nodes;
1800         mark as reachable only non-external nodes.
1801         (cgraph_remove_unreachable_nodes): All referenced nodes should
1802         be enqueued; remove bogues node->needed check.
1803
1804 2010-10-26  Jan Hubicka  <jh@suse.cz>
1805
1806         * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
1807         to represent OMP.
1808
1809 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1810
1811         * config/i386/i386.md (split_stack_return): Replace
1812         unspec_volatile with unspec.
1813
1814 2010-10-26  Jonathan Wakely  <jwakely.gcc@gmail.com>
1815
1816         * doc/install.texi: Fix typo in --with-sysroot description.
1817
1818 2010-10-26  Jan Hubicka  <jh@suse.cz>
1819
1820         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1821         Use info provided by linker plugin.
1822
1823 2010-10-26  Jason Merrill  <jason@redhat.com>
1824
1825         * varasm.c (constructor_static_from_elts_p): Don't require a
1826         CONSTRUCTOR to have elements to be suitable for static
1827         initialization.  Allow ARRAY_TYPE as well.
1828
1829 2010-10-26  Jan Hubicka  <jh@suse.cz>
1830
1831         PR middle-end/45736
1832         * cgraph.c (cgraph_set_readonly_flag): Rename to...
1833         (cgraph_set_const_flags) ... this one; get also looping argument;
1834         clear constructor/destructor flags.
1835         (cgraph_set_pure_flag): Likewise.
1836         (cgraph_set_looping_const_or_pure_flag): Remove.
1837         (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
1838         to optimize away static ctors/dtors; it does not work on inline clones;
1839         external functions can always be rmeoved.
1840         (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
1841         inline clones; in LTO external functions always can go.
1842         (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
1843         (cgraph_mark_address_taken_node): Assert that we are not taking
1844         address of inline clone.
1845         (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
1846         external functions.
1847         * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
1848         address taken.
1849         (ipcp_initialize_node_lattices): Only local functions can be
1850         handled without cloning.
1851         * cgraph.h (cgraph_set_readonly_flag,
1852         cgraph_set_looping_const_or_pure_flag): Remove.
1853         (cgraph_set_const_flag): Declare.
1854         (cgraph_set_pure_flag): Update.
1855         * ipa-pure-const (propagate_pure_const, local_pure_const): Update
1856         flags setting code.
1857         * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
1858         look at inline clones; fix handling of external definitions.
1859         (cgraph_postorder): Do not look at inline clones in the first pass.
1860         (function_and_variable_visibility): Drop constructors/destructor
1861         flags at pure and const functions.
1862         * tree-profile.c (tree_profiling): Update.
1863         * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
1864         address taken; external functions do not account to whole program size.
1865         (cgraph_decide_inlining): Likewise; do not try to inline
1866         functions already inlined.
1867
1868 2010-10-26  Jie Zhang  <jie@codesourcery.com>
1869
1870         * doc/invoke.texi: Improve documentation of
1871         -fstrict-volatile-bitfields.
1872
1873 2010-10-26  Ira Rosen  <irar@il.ibm.com>
1874
1875         PR tree-optimization/46167
1876         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
1877         is basic block for the statement.
1878
1879 2010-10-26  Paul Koning  <ni1d@arrl.net>
1880
1881         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
1882         current definition of struct_real_format.
1883
1884 2010-10-26  H.J. Lu  <hongjiu.lu@intel.com>
1885
1886         PR target/44948
1887         * config/i386/i386.c (ix86_old_function_arg_boundary): New.
1888         (ix86_function_arg_boundary): Always align parameters on stack
1889         in 64bit and align parameters with alignment >= 16byte on stack
1890         in 32bit.  Warn alignment change.
1891
1892 2010-10-26  Ian Lance Taylor  <iant@google.com>
1893
1894         PR middle-end/45687
1895         * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
1896         offset.
1897
1898 2010-10-25  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
1899
1900         Implement opaque-enum-specifiesr for C++0x
1901         * tree.h (ENUM_IS_OPAQUE): New.
1902         * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
1903
1904 2010-10-26  Jie Zhang  <jie@codesourcery.com>
1905
1906         * stor-layout.c (layout_decl): Use the field's type to
1907         determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
1908         * config/arm/arm.c (arm_override_options): Default to
1909         -fstrict-volatile-bitfields.
1910
1911 2010-10-25  Paul Koning  <ni1d@arrl.net>
1912
1913         * config/pdp11/pdp11.md: Add define_constants for register
1914         numbers, branch offset limits.
1915         * config/pdp11/pdp11.c: Use named constants instead of numbers.
1916         * config/pdp11.pdp11.h: Ditto.
1917
1918 2010-10-25  Eric Botcazou  <ebotcazou@adacore.com>
1919
1920         * configure.ac: Use $cpu_type instead of $target to define the nop.
1921         * configure: Regenerate.
1922
1923 2010-10-25  Jie Zhang  <jie@codesourcery.com>
1924
1925         * combine.c (try_combine): If insns need to be kept around, check that
1926         they can be copied in the merged instruction.
1927
1928 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1929
1930         * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
1931         has been modified.
1932         (convert_regs_2): Likewise.  Adjust calls to convert_regs_1.
1933         (convert_regs): Adjust calls to convert_regs_2.  Clean up the CFG if
1934         it has been modified.
1935
1936 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1937
1938         * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
1939
1940 2010-10-24  Paul Koning  <ni1d@arrl.net>
1941
1942         * config/pdp11/pdp11.md: Change length attribute to be in bytes.
1943         * config/pdp11/pdp11.c (output_jump): Ditto.
1944
1945 2010-10-24  Ian Lance Taylor  <iant@google.com>
1946
1947         * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
1948
1949 2010-10-24  Eric Botcazou  <ebotcazou@adacore.com>
1950
1951         * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
1952         least one insn with a locus corresponding to an edge's goto_locus,
1953         disregard non-fallthru edges to the exit block and merge the blocks
1954         created for the same goto_locus.
1955
1956 2010-10-23  Joseph Myers  <joseph@codesourcery.com>
1957
1958         * gcc.c (n_switches_alloc_debug_check): New.
1959         (set_option_handlers): New.
1960         (process_command): Use set_option_handlers.
1961         (do_self_spec): Pass spec-generated options through option handlers.
1962         (main): Also save and restore n_switches_alloc when swapping
1963         switch arrays.
1964
1965 2010-10-23  Richard Henderson  <rth@redhat.com>
1966
1967         PR target/46144
1968         * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
1969         (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
1970         Honor matching operands when splitting to XOR.
1971
1972 2010-10-23  Ian Lance Taylor  <iant@google.com>
1973
1974         * tree-vrp.c (extract_range_from_binary_expr): If
1975         flag_non_call_exceptions don't eliminate division by zero.
1976         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1977
1978 2010-10-23  Nathan Froyd  <froydnj@codesourcery.com>
1979
1980         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1981         __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
1982         __ORDER_PDP_ENDIAN__.
1983         * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1984         (struct DWstruct): Define based on __BYTE_ORDER__.
1985         * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1986         (struct INTstruct): Define based on __BYTE_ORDER__.
1987         * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1988         (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
1989         * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
1990         * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1991         * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1992         * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1993         * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1994         * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1995         * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1996         * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1997         * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1998         * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1999         * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2000         * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2001         * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2002         * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2003         * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2004         * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2005         * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
2006         * doc/tm.texi: Regenerate.
2007         * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
2008         (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
2009
2010 2010-10-23  Jie Zhang  <jie@codesourcery.com>
2011
2012         PR rtl-optimization/37360
2013         * config/mips/mips.c (cached_can_issue_more): New local variable.
2014         (mips_sched_reorder_1): New.
2015         (mips_sched_reorder): Use mips_sched_reorder_1.
2016         (mips_sched_reorder2): New.
2017         (mips_variable_issue): Set cached_can_issue_more.
2018         (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
2019         instead of mips_sched_reorder.
2020
2021         Revert:
2022         2008-09-09  Andrey Belevantsev  <abel@ispras.ru>
2023         PR rtl-optimization/37360
2024         * haifa-sched.c (max_issue): Do not assert that we never issue more
2025         insns than issue_rate.  Add comment.
2026
2027 2010-10-22  Eric Botcazou  <ebotcazou@adacore.com>
2028
2029         * gimplify.c (gimplify_variable_sized_compare): Preserve the source
2030         location info of the expression.
2031
2032 2010-10-22  DJ Delorie  <dj@redhat.com>
2033
2034         * doc/extend.texi (Named Address Spaces): Document the M32C named
2035         address space.
2036
2037         * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
2038         __far address space.
2039         * config/m32c/m32c.h (ADDR_SPACE_FAR): New.  Add support for
2040         "__far" address space for R8C and M16C processor variants.
2041         * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
2042         (far_addr_space_p): New.
2043         (encode_pattern_1): Add sign and zero extend support.
2044         (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
2045         (m32c_extra_constraint_p2): Add SF constraint.
2046         (m32c_legitimate_address_p): Support __far addresses.
2047         (m32c_addr_space_pointer_mode): New.
2048         (m32c_addr_space_address_mode): New.
2049         (m32c_addr_space_legitimate_address_p): New.
2050         (m32c_addr_space_legitimize_address): New.
2051         (m32c_addr_space_subset_p): New.
2052         (m32c_addr_space_convert): New.
2053         (conversions): Add __far operand patterns.
2054         (m32c_prepare_move): Force constants into registers for __far moves.
2055         (m32c_split_move): __far moves are always split.
2056         * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
2057         * config/m32c/mov.md (mov<mode>_far_op1): New.
2058         (mov<mode>_far_op2): New.
2059         (movqi_op): Add __far (SF) support.
2060         (movhi_op): Likewise.
2061         (movsi_splittable): Split A1A0 also.
2062
2063 2010-10-22  Artjoms Sinkarovs  <artyom.shinakroff@gmail.com>
2064             Andrew Pinski  <pinskia@gmail.com>
2065
2066         * c-typeck.c (build_array_ref): Handle subscripting of vectors.
2067         * doc/extend.texi: New paragraph
2068
2069 2010-10-22  Paul Koning  <ni1d@arrl.net>
2070
2071         * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
2072
2073 2010-10-22  DJ Delorie  <dj@redhat.com>
2074
2075         * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
2076
2077 2010-10-22  Paul Koning  <ni1d@arrl.net>
2078
2079         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
2080
2081 2010-10-22  Richard Henderson  <rth@redhat.com>
2082
2083         * config/i386/i386.c (ix86_builtin_vectorized_function): Add
2084         cases for __builtin_fma and __builtin_fmaf.
2085
2086 2010-10-22  Richard Henderson  <rth@redhat.com>
2087
2088         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
2089         NEG+USE for vectors as well.
2090         * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
2091         and splitter.
2092
2093 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
2094
2095         * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
2096         SWITCH_CURTAILS_COMPILATION): Remove.
2097         * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
2098         * doc/tm.texi: Regenerate.
2099         * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
2100
2101 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
2102
2103         * config/i386/bdver1.md: New file.
2104         * config/i386/i386.md (include "bdver1.md"): Invoke the
2105         pipeline description for bdver1.
2106         (x86_sahf_1): Add "bdver1_decode" attribute.
2107         (*cmpfp_i_mixed): Likewise.
2108         (*cmpfp_i_sse): Likewise.
2109         (*cmpfp_i_i387): Likewise.
2110         (*cmpfp_iu_mixed): Likewise.
2111         (*cmpfp_iu_sse): Likewise.
2112         (*cmpfp_iu_387): Likewise.
2113         (*swap<mode>,*swap<mode>_1): Likewise.
2114         (fixuns_trunc<mode>hi2): Likewise.
2115         (fix_trunc<mode>si_sse): Likewise.
2116         (x86_fnstcw_1): Likewise.
2117         (x86_fldcw_1): Likewise.
2118         (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
2119         (*floatsi<mode>2_vector_mixed): Likewise.
2120         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
2121         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
2122         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
2123         (*floatsi<mode>2_vector_sse_with_temp): Likewise.
2124         (*floatsi<mode>2_vector_sse): Likewise.
2125         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
2126         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
2127         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
2128         (*mul<mode>3_1): Likewise.
2129         (*mulsi3_1_zext): Likewise.
2130         (*mulhi3_1): Likewise.
2131         (*mulqi3_1): Likewise.
2132         (*<u>mul<mode><dwi>3_1): Likewise.
2133         (*<u>mulqihi3_1): Likewise.
2134         (*<s>muldi3_highpart_1): Likewise.
2135         (*<s>mulsi3_highpart_1): Likewise.
2136         (*<s>mulsi3_highpart_zext): Likewise.
2137         (x86_64_shld): Likewise.
2138         (x86_shld): Likewise.
2139         (x86_64_shrd): Likewise.
2140         (x86_shrd): Likewise.
2141         (sqrtxf2): Likewise.
2142         (sqrt_extend<mode>xf2_i387): Likewise.
2143         (*sqrt<mode>2_sse): Likewise.
2144         * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
2145         (sse_cvtsi2ssq): Likewise.
2146         (sse_cvtss2si): Likewise.
2147         (sse_cvtss2si_2): Likewise.
2148         (sse_cvtss2siq): Likewise.
2149         (sse_cvtss2siq_2): Likewise.
2150         (sse_cvttss2si): Likewise.
2151         (sse_cvttss2siq): Likewise.
2152         (sse2_cvtpi2pd): Likewise.
2153         (sse2_cvttpd2pi): Likewise.
2154         (sse2_cvtsi2sd): Likewise.
2155         (sse2_cvtsi2sdq): Likewise.
2156         (sse2_cvtsd2si): Likewise.
2157         (sse2_cvtsd2si_2): Likewise.
2158         (sse2_cvtsd2siq): Likewise.
2159         (sse2_cvtsd2siq_2): Likewise.
2160         (sse2_cvttsd2si): Likewise.
2161         (sse2_cvttsd2siq): Likewise.
2162         (*sse2_cvtpd2dq): Likewise.
2163         (*sse2_cvttpd2dq): Likewise.
2164         (sse2_cvtsd2ss): Likewise.
2165         (sse2_cvtss2sd): Likewise.
2166         (*sse2_cvtpd2ps): Likewise.
2167         (sse2_cvtps2pd): Likewise.
2168
2169 2010-10-22  Richard Guenther  <rguenther@suse.de>
2170
2171         PR middle-end/46137
2172         * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
2173         remove the virtual operands if they are not needed.
2174
2175 2010-10-22  Changpeng Fang  <changpeng.fang@amd.com>
2176
2177         * config/i386/i386.c (processor_costs bdver1_cost): Update
2178         insn costs and architectural parameters for bdver1.
2179
2180 2010-10-22  Richard Guenther  <rguenther@suse.de>
2181
2182         * gimple.h (gimple_register_canonical_type): Declare.
2183         * gimple.c (gimple_canonical_types): New global hashtable.
2184         (struct gimple_type_leader_entry_s): New type.
2185         (gimple_type_leader): New global cache.
2186         (gimple_lookup_type_leader): New function.
2187         (gtc_visit): Query the proper cache.
2188         (gimple_types_compatible_p): Likewise.
2189         (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
2190         (gimple_canonical_type_eq): New function.
2191         (gimple_register_canonical_type): Likewise.
2192         (print_gimple_types_stats): Adjust for gimple_canonical_types.
2193         (free_gimple_type_tables): Likewise.  Free gimple_type_leader.
2194         * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
2195         gimple_types_compatible_p for LTO.
2196
2197 2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
2198
2199         PR target/46098
2200         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
2201         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
2202         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
2203         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
2204         (<sse>_movu<ssemodesuffix>): New expander.
2205         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
2206         (avx_movdqu<avxmodesuffix>): New expander.
2207         (*sse2_movdqu): Rename from sse2_movdqu.
2208         (sse2_movdqu): New expander.
2209
2210 2010-10-22  Richard Guenther  <rguenther@suse.de>
2211
2212         PR tree-optimization/45720
2213         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
2214         Handle negative step.
2215         (vect_enhance_data_refs_alignment): Likewise.
2216         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
2217         (vect_create_cond_for_align_checks): Likewise.
2218         (vect_create_cond_for_alias_checks): Likewise.
2219
2220 2010-10-22  Ira Rosen  <irar@il.ibm.com>
2221
2222         PR tree-optimization/46126
2223         * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
2224         vectorizable_shift in case of basic block vectorization.
2225
2226 2010-10-22  Joseph Myers  <joseph@codesourcery.com>
2227
2228         * target.h (enum opt_levels, struct default_options): New.
2229         * target.def (handle_ofast): Remove hook.
2230         (target_option.optimization): Change to
2231         target_option.optimization_table.
2232         * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
2233         TARGET_OPTION_OPTIMIZATION_TABLE.
2234         (CAN_DEBUG_WITHOUT_FP): Remove.
2235         * doc/tm.texi: Regenerate.
2236         * opts.c (maybe_default_option, maybe_default_options,
2237         default_options_table): New.
2238         (default_options_optimization): Take extra parameters.  Don't
2239         assert that global_options and global_options_set are in use.  Use
2240         maybe_default_options.
2241         (decode_options): Pass extra parameters to
2242         default_options_optimization.
2243         * common.opt (falign-loops): Use value 0 with Var.
2244         (frerun-cse-after-loop, ftree-ter): Remove Init.
2245         * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
2246         TARGET_OPTION_OPTIMIZATION): Remove.
2247         * targhooks.c (empty_optimization_table): New.
2248         * targhooks.h (empty_optimization_table): Declare.
2249         * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
2250         * config/alpha/alpha.c (alpha_option_optimization_table,
2251         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2252         * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
2253         * config/arm/arm.c (arm_option_optimization: Change to
2254         arm_option_optimization_table.
2255         (TARGET_OPTION_OPTIMIZATION): Change to
2256         TARGET_OPTION_OPTIMIZATION_TABLE.
2257         * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
2258         * config/avr/avr.c (avr_option_optimization_table,
2259         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2260         * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
2261         * config/cris/cris.c (cris_option_optimization): Change to
2262         cris_option_optimization_table.
2263         (TARGET_OPTION_OPTIMIZATION): Change to
2264         TARGET_OPTION_OPTIMIZATION_TABLE.
2265         * config/crx/crx.c (crx_option_optimization): Change to
2266         crx_option_optimization_table.
2267         (TARGET_OPTION_OPTIMIZATION): Change to
2268         TARGET_OPTION_OPTIMIZATION_TABLE.
2269         * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2270         * config/fr30/fr30.c (fr30_option_optimization_table,
2271         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2272         * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
2273         * config/frv/frv.c (frv_option_optimization_table,
2274         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2275         * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
2276         * config/h8300/h8300.c (h8300_option_optimization): Change to
2277         h8300_option_optimization_table.
2278         (TARGET_OPTION_OPTIMIZATION): Change to
2279         TARGET_OPTION_OPTIMIZATION_TABLE.
2280         * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2281         * config/i386/i386.c (ix86_option_optimization): Change to
2282         ix86_option_optimization_table.
2283         (TARGET_OPTION_OPTIMIZATION): Change to
2284         TARGET_OPTION_OPTIMIZATION_TABLE.
2285         * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2286         as initializer.
2287         * config/ia64/ia64.c (ia64_option_optimization): Change to
2288         ia64_option_optimization_table.
2289         (TARGET_OPTION_OPTIMIZATION): Change to
2290         TARGET_OPTION_OPTIMIZATION_TABLE.
2291         * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
2292         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
2293         initializer.
2294         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2295         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2296         * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2297         * config/lm32/lm32.c (lm32_option_optimization_table,
2298         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2299         * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
2300         * config/m32r/m32r.c (m32r_option_optimization): Change to
2301         m32r_option_optimization_table.
2302         (TARGET_OPTION_OPTIMIZATION): Change to
2303         TARGET_OPTION_OPTIMIZATION_TABLE.
2304         * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
2305         CAN_DEBUG_WITHOUT_FP): Remove.
2306         * config/mcore/mcore.c (mcore_option_optimization): Change to
2307         mcore_option_optimization_table.
2308         (TARGET_OPTION_OPTIMIZATION): Change to
2309         TARGET_OPTION_OPTIMIZATION_TABLE.
2310         * config/mep/mep.c (mep_option_optimization): Change to
2311         mep_option_optimization_table.
2312         (TARGET_OPTION_OPTIMIZATION): Change to
2313         TARGET_OPTION_OPTIMIZATION_TABLE.
2314         * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
2315         * config/microblaze/microblaze.c
2316         (microblaze_option_optimization_table,
2317         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2318         * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
2319         * config/mips/mips.c (mips_option_optimization_table,
2320         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2321         * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
2322         * config/mmix/mmix.c (mmix_option_optimization): Change to
2323         mmix_option_optimization_table.
2324         (TARGET_OPTION_OPTIMIZATION): Change to
2325         TARGET_OPTION_OPTIMIZATION_TABLE.
2326         * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
2327         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2328         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2329         * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2330         * config/pa/pa.c (pa_option_optimization_table,
2331         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2332         * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2333         * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
2334         pdp11_option_optimization_table.
2335         (TARGET_OPTION_OPTIMIZATION): Change to
2336         TARGET_OPTION_OPTIMIZATION_TABLE.
2337         * config/picochip/picochip.c (picochip_option_optimization_table,
2338         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2339         * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
2340         * config/rs6000/rs6000.c (rs6000_option_optimization_table,
2341         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2342         * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2343         * config/rx/rx.c (rx_option_optimization_table,
2344         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2345         * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2346         * config/s390/s390.c (s390_option_optimization): Change to
2347         s390_option_optimization_table.
2348         (s390_option_override): Update comment.
2349         (TARGET_OPTION_OPTIMIZATION): Change to
2350         TARGET_OPTION_OPTIMIZATION_TABLE.
2351         * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
2352         * config/score/score.c (score_option_optimization_table,
2353         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2354         * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
2355         * config/sh/sh.c (sh_option_optimization): Change to
2356         sh_option_optimization_table.
2357         (TARGET_OPTION_OPTIMIZATION): Change to
2358         TARGET_OPTION_OPTIMIZATION_TABLE.
2359         (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
2360         (sh_option_override, expand_block_move, multcosts, find_barrier,
2361         barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
2362         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
2363         (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
2364         STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
2365         instead of TARGET_SMALLCODE.
2366         * config/sh/sh.opt (mspace): Make into an alias for -Os.
2367         * config/sparc/sparc.c (sparc_option_optimization_table,
2368         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2369         * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
2370         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2371         TARGET_OPTION_OPTIMIZATION_TABLE): New.
2372         * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
2373         * config/v850/v850.c (v850_option_optimization): Change to
2374         v850_option_optimization_table.
2375         (TARGET_OPTION_OPTIMIZATION): Change to
2376         TARGET_OPTION_OPTIMIZATION_TABLE.
2377         * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
2378         * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
2379         xtensa_option_optimization_table.
2380         (TARGET_OPTION_OPTIMIZATION): Change to
2381         TARGET_OPTION_OPTIMIZATION_TABLE.
2382         * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2383
2384 2010-10-21  Iain Sandoe  <iains@gcc.gnu.org>
2385
2386         Based on the CFString implementation in FSF apple/trunk branch.
2387
2388         * target.def (objc_construct_string): New Hook.
2389         * doc/tm.texi (objc_construct_string): Document.
2390         * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
2391         * config/t-darwin: Amend build rules for darwin.o.
2392         * config/darwin.opt: Add cfstrings flags.
2393         * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
2394         (darwin_objc_construct_string): New.
2395         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
2396         * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
2397         * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
2398         (darwin_fold_builtin): Likewise.
2399         (darwin_build_constant_cfstring): Likewise.
2400         (darwin_objc_construct_string): Likewise.
2401         (darwin_cfstring_p): Likewise.
2402         (darwin_enter_string_into_cfstring_table): Likewise.
2403         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
2404         * config/darwin.c (darwin_running_cxx): New var.
2405         (machopic_select_section): Return cfstring_constant_object_section.
2406         (darwin_override_options): Set darwin_running_cxx.
2407         (add_builtin_field_decl): New.
2408         (darwin_init_cfstring_builtins): New.
2409         (darwin_build_constant_cfstring): New.
2410         (darwin_fold_builtin): New.
2411         (cfstring_hash): New.
2412         (cfstring_eq): New.
2413         (darwin_enter_string_into_cfstring_table): New.
2414         * config/darwin-sections.def (cfstring_constant_object_section): New.
2415         * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
2416         (TARGET_OBJC_CONSTRUCT_STRING): Define.
2417
2418 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2419
2420         * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
2421         TYPE_STUB_DECL instead of TREE_CHAIN.
2422         * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
2423         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
2424         * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
2425         * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
2426         * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
2427         * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
2428         Likewise.
2429         * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
2430
2431 2010-10-22  Jie Zhang  <jie@codesourcery.com>
2432
2433         * expr.c (emit_group_load_1): Update calls to extract_bit_field.
2434         (copy_blkmode_from_reg): Likewise.
2435         (read_complex_part): Likewise.
2436         (expand_expr_real_1): Calculate packedp and pass it to
2437         extract_bit_field.
2438         * expr.h (extract_bit_field): Update declaration.
2439         * calls.c (store_unaligned_arguments_into_pseudos): Update call
2440         to extract_bit_field.
2441         * expmed.c (extract_fixed_bit_field): Update calls to
2442         extract_fixed_bit_field.
2443         (store_split_bit_field): Likewise.
2444         (extract_bit_field_1): Add new argument packedp.
2445         (extract_bit_field): Add new argument packedp.
2446         (extract_fixed_bit_field): Add new argument packedp and let
2447         packed attribute override volatile.
2448         * stmt.c (expand_return): Update call to extract_bit_field.
2449
2450 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2451
2452         * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
2453
2454 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2455
2456         * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
2457         of gcc_checking_assert.
2458         * sel-sched.c (code_motion_process_successors): Likewise.
2459
2460 2010-10-21  Eric Botcazou  <ebotcazou@adacore.com>
2461
2462         * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
2463         when stopping because of a different locus on edge or insn.
2464         (try_optimize_cfg): Add comment.
2465         * cfgrtl.c (rtl_merge_blocks): Tweak log message.  If the destination
2466         block is a forwarder block, propagate locus on the edge.
2467         (cfg_layout_merge_blocks): Likewise.
2468
2469 2010-10-21  Uros Bizjak  <ubizjak@gmail.com>
2470
2471         PR target/45946
2472         * config/i386/i386.md (*pushti2): New insn pattern.
2473         (pushti2 splitter): New insn splitter.
2474         (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
2475         DWI mode iterator.
2476
2477 2010-10-21  Paul Koning  <ni1d@arrl.net>
2478
2479         * config/pdp11/pdp11-protos.md (arith_operand,
2480         const_immediate_operand, expand_shift_operand,
2481         immediate15_operand): Delete
2482         * config/pdp11/pdp11.c: Ditto.
2483         * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
2484         CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2485         EXTRA_CONSTRAINT): Delete.
2486         * config/pdp11/pdp11.md (various): Use standard constraints
2487         instead of removed ones.
2488         * config/pdp11/constraints.md: New file.
2489         * config/pdp11/predicates.md: New file.
2490
2491 2010-10-21  Bingfeng Mei  <bmei@broadcom.com>
2492
2493         PR c/45834
2494         * alias.c (true_dependence_1): Remove obsolete check for QImode.
2495         (may_alias_p): Ditto.
2496
2497 2010-10-21  Martin Jambor  <mjambor@suse.cz>
2498
2499         PR tree-optimization/45875
2500         * tree.c (get_binfo_at_offset): Remove initial zero offset test.
2501
2502 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2503
2504         * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
2505         variables.
2506         (create_new_def_for): Likewise.
2507
2508 2010-10-21  Nick Clifton  <nickc@redhat.com>
2509
2510         * config/mn10300/mn10300.c: Fold code to 80-character width.
2511         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
2512         MEM, CONST_INT and CONST_DOUBLE.
2513         (targetm): Move initialization to end of file.
2514         (print_operand): Rename to mn10300_print_operand.
2515         (print_operand_address): Rename to mn10300_print_operand_address.
2516         (can_use_return_insn): Rename to mn10300_can_use_return_insn.
2517         (expand_prologue): Rename to mn10300_expand_prologue.
2518         (expand_epilogue): Rename to mn10300_expand_epilogue.
2519         (initial_offset): Rename to mn10300_initial_offset.
2520         (function_arg): Rename to mn10300_function_arg.
2521         (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
2522         (symbolic_operand): Rename to mn10300_symbolic_operand.
2523         (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
2524         (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
2525         * config/mn10300/mn10300-protos.h: Update prototypes.
2526         * config/mn10300/mn10300.h: Fold code to 80-character width.
2527         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
2528         MEM, CONST_INT and CONST_DOUBLE.
2529         (CPP_SPEC): Move to...
2530         (TARGET_CPU_CPP_BUILTINS): ... here.
2531         * config/mn10300/mn10300.md: Fold code to 80-character width.
2532         Replace GET_CODE (foo) == REG with REG_P (foo).  Likewise for
2533         MEM, CONST_INT and CONST_DOUBLE.
2534
2535 2010-10-21  Ira Rosen  <irar@il.ibm.com>
2536
2537         PR tree-optimization/46049
2538         PR tree-optimization/46052
2539         * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
2540         (vect_get_slp_defs): Add arguments.
2541         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
2542         operands to vect_get_slp_defs.
2543         (vectorizable_reduction): Fix comment, pass scalar operands to
2544         vect_get_slp_defs.
2545         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
2546         type to determine number of units in the created vector.
2547         (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
2548         (vectorizable_conversion): Fix comment.
2549         (vectorizable_shift): New function.
2550         (vectorizable_operation): Move code that handles shifts to
2551         vectorizable_shift.
2552         (vectorizable_type_demotion): Fix comment, pass scalar operands to
2553         vect_get_slp_defs.
2554         (vectorizable_type_promotion, vectorizable_store): Likewise.
2555         (vectorizable_condition): Fix comment.
2556         (vect_analyze_stmt): Call vectorizable_shift.
2557         (vect_transform_stmt): Likewise.
2558         * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
2559         Use it as the operand to create vectors for, except reduction
2560         initial definition and store.  Use operands type.
2561         (vect_get_slp_defs): Add new arguments.  Pass them to
2562          vect_get_constant_vectors.
2563
2564 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2565
2566         * basic-block.h (single_succ_edge): Use gcc_checking_assert.
2567         (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
2568         * cfghooks.c (fixup_reorder_chain): Likewise.
2569         * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
2570         * cgraph.c (cgraph_add_thunk): Likewise.
2571         (cgraph_create_edge_1): Likewise.
2572         (cgraph_create_virtual_clone): Likewise.
2573         * ddg.c (add_cross_iteration_register_deps): Likewise.
2574         * dwarf2out.c (modified_type_die): Likewise.
2575         * emit-rtl.c (set_mem_alias_set): Likewise.
2576         * ggc-zone.c (zone_allocate_marks): Likewise.
2577         * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
2578         * gimple.c (iterative_hash_gimple_type): Likewise.
2579         * graphite-scop-detection.c (create_single_entry_edge): Likewise.
2580         (create_single_exit_edge): Likewise.
2581         * haifa-sched.c (choose_ready): Likewise.
2582         * lto-streamer-in.c (input_gimple_stmt): Likewise.
2583         * passes.c (execute_todo): Likewise.
2584         * sched-ebb.c (begin_schedule_ready): Likewise.
2585         * sel-sched.c (code_motion_process_successors): Likewise.
2586         * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
2587         * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
2588         * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
2589         (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
2590         * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
2591         * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
2592         (ssa_conflicts_add): Likewise.
2593         * tree-ssa-copy.c (replace_exp): Likewise.
2594         * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
2595         * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
2596         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2597         * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
2598         (compute_antic): Likewise.
2599         * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
2600         (add_dependence): Likewise.
2601         (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
2602         * tree-vrp.c (supports_overflow_infinity): Likewise.
2603         (make_overflow_infinity, negative_overflow_infinity): Likewise.
2604         (avoid_overflow_infinity, register_new_assert_for): Likewise.
2605         (process_assert_insertions_for): Likewise.
2606         * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
2607         (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
2608         (intersect_loc_chains, variable_merge_over_cur): Likewise.
2609
2610 2010-10-21  Nathan Froyd  <froydnj@codesourcery.com>
2611
2612         * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
2613         * reload1.c (has_nonexceptional_receiver): Likewise.
2614         * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
2615         (create_new_def_for): Likewise.
2616         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
2617         (merge_phi_nodes): Likewise.
2618         (has_abnormal_incoming_edge_p): Delete.
2619
2620 2010-10-21  H.J. Lu  <hongjiu.lu@intel.com>
2621
2622         * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
2623
2624 2010-10-21  Richard Guenther  <rguenther@suse.de>
2625             Michael Matz  <matz@suse.de>
2626
2627         PR tree-optimization/45764
2628         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2629         Adjust initial misalignment for negative DR_STEP.
2630         (vect_find_same_alignment_drs): Two DRs with different DR_STEP
2631         do not have the same alignment over the whole iteration domain.
2632
2633 2010-10-21  Richard Guenther  <rguenther@suse.de>
2634
2635         PR tree-optimization/46111
2636         * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
2637
2638 2010-10-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2639
2640         * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
2641
2642 2010-10-21  Tristan Gingold  <gingold@adacore.com>
2643
2644         * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
2645         * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
2646
2647 2010-10-21  Tristan Gingold  <gingold@adacore.com>
2648
2649         * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
2650         signal_frame.
2651         * config/alpha/alpha.c (alpha_function_arg): Adjust call.
2652
2653 2010-10-21  Tristan Gingold  <gingold@adacore.com>
2654
2655         * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
2656         * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
2657
2658 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
2659
2660         * basic-block.h (find_fallthru_edge): Define.
2661         * cfgcleanup.c (merge_blocks_move): Use it.
2662         (try_crossjump_bb): Likewise.
2663         * cfglayout.c (fixup_reorder_chains): Likewise.
2664         (fixup_fallthru_exit_predecessor): Likewise.
2665         * cfgrtl.c (rtl_split_edge): Likewise.
2666         (rtl_verify_flow_info): Likewise.
2667         * function.c (thread_prologue_and_epilogue_insns): Likewise.
2668         * gimple-pretty-print.c (dump_implicit_edges): Likewise.
2669         * ifcvt.c (block_fallthru): Likewise.
2670         * reload1.c (fixup_abnormal_edges): Likewise.
2671         * sched-ebb.c (being_schedule_ready): Likewise.
2672         (schedule_ebb): Likwise.
2673         * sched-rgn.c (find_single_block_region): Likewise.
2674         * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
2675         * tree-complex.c (expand_complex_move): Likewise.
2676         * sched-int.h (find_fallthru_edge): Rename to...
2677         (find_fallthru_edge_from): ...this.
2678         * haifa-sched.c (find_fallthru_edge): Rename to...
2679         (find_fallthru_edge_from): ...this.  Use new find_fallthru_edge.
2680         (init_before_recovery): Call find_fallthru_edge_from.
2681         * sel-sched-ir.c (merge_fences): Likewise.
2682         * sel-sched.c (in_fallthru_bb_p): Likewise.
2683         (move_cond_jump): Likewise.
2684
2685 2010-10-20  Paul Koning  <ni1d@arrl.net>
2686
2687         * config/pdp11/pdp11.md (various): Fix conditions on a number of
2688         insn to check for target 11/40 or higher.
2689
2690 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2691
2692         * parser.c (c_parser_objc_method_type): Mark inline.  Return a
2693         bool instead of a tree.
2694         (c_parser_objc_method_decl): Added bool argument.  Updated call to
2695         objc_build_method_signature.
2696         (c_parser_objc_method_definition): Do not call
2697         objc_set_method_type.  Updated calls to c_parser_objc_method_type,
2698         c_parser_objc_method_decl and objc_start_method_definition.
2699         (c_parser_objc_methodproto): Do not call objc_set_method_type.
2700         Updated calls to c_parser_objc_method_type,
2701         c_parser_objc_method_decl and objc_add_method_declaration.
2702
2703 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
2704
2705         PR tree-optimization/45919
2706         * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
2707         array members.
2708
2709         PR tree-optimization/46066
2710         * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
2711         instead of gsi_last_bb.
2712
2713 2010-10-20  DJ Delorie  <dj@redhat.com>
2714
2715         * config/m32c/m32c.c (m32c_option_override): Always disable
2716         function-cse in 16-bit mode.  Indirect calls are always worse than
2717         direct calls as there is no 16-bit indirect call opcode.
2718         (m32c_override_options_after_change): New, likewise.
2719
2720 2010-10-20  Nathan Froyd  <froydnj@codesourcery.com>
2721
2722         * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
2723         emitting the conditional move in the inner mode of the SUBREG.
2724
2725 2010-10-20  Anatoly Sokolov  <aesok@post.ru>
2726
2727         * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
2728         * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
2729         * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2730         (ia64_preferred_reload_class): Make static.  Change rclass argument
2731         and result types from enum reg_class to reg_class_t.
2732
2733 2010-10-20  Pat Haugen  <pthaugen@us.ibm.com>
2734
2735         * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
2736         call for single operand expression.
2737
2738 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
2739
2740         * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
2741         if there is a call statement to pure or const function in the block.
2742
2743 2010-10-20  Paul Koning  <pkoning@equallogic.com>
2744
2745         Fix several build errors for pdp11 target.
2746         * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
2747         (cbranchdf4): Conditional on TARGET_FPU.
2748         (movdf): Ditto; correct alternatives check.
2749         (movmemhi): Fix predicate and constraint.
2750         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
2751
2752 2010-10-20  Richard Guenther  <rguenther@suse.de>
2753
2754         PR lto/45667
2755         * lto-streamer-out.c (output_gimple_stmt): Fix typo.
2756         * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
2757         (verify_gimple_assign_single): Disable ADDR_EXPR type check
2758         when in LTO.
2759
2760 2010-10-20  Vladimir Makarov  <vmakarov@redhat.com>
2761
2762         PR fortran/42169
2763         * ira-emit.c (store_can_be_removed_p): Return false instead of
2764         gcc_unreachable.
2765
2766 2010-10-20  Dmitry Melnik  <dm@ispras.ru>
2767
2768         * fold-const.c (fold_binary_loc): New transformation.
2769
2770 2010-10-20  H.J. Lu  <hongjiu.lu@intel.com>
2771
2772         PR target/46085
2773         * config/i386/sse.md (reduc_splus_v8sf): Updated.
2774         (reduc_splus_v4df): Likewise.
2775
2776 2010-10-20  Richard Guenther  <rguenther@suse.de>
2777
2778         PR tree-optimization/45860
2779         * tree-ssa-phiopt.c (cond_store_replacement): Do not do
2780         conditional store replacement for non-register type stores.
2781
2782 2010-10-20  Eric Botcazou  <ebotcazou@adacore.com>
2783
2784         * stor-layout.c (skip_simple_constant_arithmetic): New function.
2785         (self_referential_size): Use it instead of skip_simple_arithmetic.
2786
2787 2010-10-20  Olivier Hainque  <hainque@adacore.com>
2788
2789         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
2790         If the current function calls eh_return, claim live all registers
2791         that we need to check for liveness otherwise.
2792
2793 2010-10-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2794
2795         * c-decl.c (c_write_global_declarations): Call
2796         objc_write_global_declarations when compiling Objective-C.
2797         * c-lang.c (finish_file): Removed.
2798
2799 2010-10-19  DJ Delorie  <dj@redhat.com>
2800
2801         * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
2802         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
2803         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2804         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2805         * doc/tm.texi: Regenerate.
2806         * targhooks.h (default_label_align_after_barrier_max_skip,
2807         default_loop_align_max_skip, default_label_align_max_skip,
2808         default_jump_align_max_skip): Declare.
2809         * target.def (label_align_after_barrier_max_skip): New.
2810         (loop_align_max_skip): New.
2811         (label_align_max_skip): New.
2812         (jump_align_max_skip): New.
2813         * system.h (poison): Add those macros to the list.
2814         * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
2815         (LOOP_ALIGN_MAX_SKIP): Remove.
2816         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
2817         (JUMP_ALIGN_MAX_SKIP): Remove.
2818         (default_label_align_after_barrier_max_skip): New.
2819         (default_loop_align_max_skip): New.
2820         (default_label_align_max_skip): New.
2821         (default_jump_align_max_skip): New.
2822         (compute_alignments): Use the new hooks.
2823         (shorten_branches): Likewise.
2824
2825 2010-10-19  Richard Henderson  <rth@redhat.com>
2826
2827         * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
2828         * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
2829         (fma4i_fmadd_<mode>): New.
2830         (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
2831         fma4_fm*_<mode> and adjust to be pre-reload splitters to the
2832         standard fma patterns.
2833         (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
2834         enable for FMA.
2835         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2836         (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2837         (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
2838
2839 2010-10-19  Paul Koning  <pkoning@equallogic.com>
2840
2841         * lower-subreg.c (resolve_shift_zext): Delete conditional code for
2842         WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
2843
2844 2010-10-19  Richard Henderson  <rth@redhat.com>
2845
2846         * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
2847         (fmadf4, *fmsdf4, *nfmadf4): New.
2848         (fmaxf4, *fmsxf4, *nfmaxf4): New.
2849
2850 2010-10-19  Michael Eager  <eager@eagercon.com>
2851
2852         * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
2853         Use sjlj unwind info for exceptions.
2854
2855 2010-10-19  Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
2856
2857         PR fortran/43414
2858         * dwarf2out.c (add_calling_convention_attribute): Flag main
2859         Fortran subroutine with DW_AT_main_subprogram.
2860
2861 2010-10-19  Nick Clifton  <nickc@redhat.com>
2862
2863         * config/rx/rx.c (rx_function_value): Small integer types are
2864         promoted to SImode.
2865         (rx_promote_function_mode): New function.
2866         (TARGET_PROMOTE_FUNCTION_MODE): Define.
2867
2868 2010-10-19  Nick Clifton  <nickc@redhat.com>
2869
2870         * config/mep/mep.c (mep_print_operand): Use
2871         targetm.strip_name_encoding.
2872         (mep_output_aligned_common): Likewise.
2873
2874 2010-10-19  Basile Starynkevitch  <basile@starynkevitch.net>
2875
2876         * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
2877
2878 2010-10-18  Richard Henderson  <rth@redhat.com>
2879
2880         * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
2881         (fma (neg a) (neg b) c) and (fma a (neg b) c).
2882
2883 2010-10-18  Richard Henderson  <rth@redhat.com>
2884
2885         * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
2886         IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
2887         IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
2888         IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
2889         IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
2890         IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
2891         IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
2892         IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
2893         IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
2894         IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
2895         (bdesc_multi_arg): Remove the corresponding builtins.
2896         * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
2897         (UNSPEC_FMA4_FMSUBADD): Remove.
2898         (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
2899         * config/i386/sse.md (FMA4MODEF4): Remove.
2900         (FMAMODE): Add.
2901         (fma<mode>4): New expander.
2902         (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
2903         and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
2904         (*fma4i_fmsub_<mode>): Similarly.
2905         (*fma4i_fnmadd_<mode>): Similarly.
2906         (*fma4i_fnmsub_<mode>): Similarly.
2907         (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
2908         with the first operand.
2909         (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
2910         of explicit arithmetic.  Macroize with AVXMODEF2P.
2911         (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
2912         (xop_frcz<mode>2): Macroize with FMAMODE.
2913         (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
2914         the first operand.
2915         * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
2916         extra negations.
2917         (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
2918         (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
2919         (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
2920         (_mm256_msub_ps, _mm256_msub_pd): Likewise.
2921         (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
2922         (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
2923         (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
2924         (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
2925
2926 2010-10-18  Bernd Schmidt  <bernds@codesourcery.com>
2927
2928         PR rtl-optimization/45966
2929         * combine.c (try_combine): If added_sets_2, deal with the case
2930         where i0 feeds i1 and i1 feeds i2.
2931
2932 2010-10-18  Jan Hubicka  <jh@suse.cz>
2933
2934         * ipa.c (cgraph_externally_visible_p): Handle externally visible and
2935         preserve flags before trying to guess on visibility.
2936         (varpool_externally_visible_p): New function.
2937         (function_and_variable_visibility): Use it.
2938
2939 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2940
2941         Implemented parsing @synthesize and @dynamic for Objective-C.
2942         * c-parser.c (c_parser_external_declaration): Recognize
2943         RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2944         (c_parser_objc_at_synthesize_declaration): New.
2945         (c_parser_objc_at_dynamic_declaration): New.
2946
2947 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2948
2949         * c-parser.c (c_parser_objc_class_declaration): After finding an
2950         error, parse the whole declaration then reset parser->error.
2951
2952 2010-10-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
2953
2954         PR target/46041
2955         * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
2956         * builtins.c (mode_has_fma): Ditto.
2957
2958 2010-10-18  Steve Ellcey  <sje@cup.hp.com>
2959
2960         PR target/36898
2961         PR middle-end/43760
2962         * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
2963
2964 2010-10-18  Joseph Myers  <joseph@codesourcery.com>
2965
2966         * config/i386/i386.c (ix86_option_override_internal): Define and
2967         use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
2968         default.
2969         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2970         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
2971
2972 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2973
2974         Merge from 'apple/trunk' branch on FSF servers.
2975         * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
2976         following Objective-C change:
2977
2978         2005-10-10  Fariborz Jahanian <fjahanian@apple.com>
2979
2980         Radar 4301047
2981         * c-parse.in (objc_quals): Build objc qualifier list same way
2982         as gcc-3.3
2983
2984 2010-10-18  Jan Hubicka  <jh@suse.cz>
2985
2986         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
2987         function_and_variable_visibility): Revert accidental commit.
2988
2989 2010-10-18  Nicola Pero  <nicola.pero@meta-innovation.com>
2990
2991         Merge from 'apple/trunk' branch on FSF servers.
2992         * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
2993         the following Objective-C change:
2994
2995         2005-10-07  Fariborz Jahanian <fjahanian@apple.com>
2996
2997         Radar 4204796
2998         * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
2999         'volatilized' type used in a typeof operator.
3000
3001 2010-10-18  Eric Botcazou  <ebotcazou@adacore.com>
3002
3003         * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
3004         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
3005         rewrite modelled on gimple_purge_dead_eh_edges.
3006         (gimple_purge_all_dead_abnormal_call_edges): New function.
3007         * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
3008         directly instead of through gimple_purge_dead_abnormal_call_edges.
3009         * tree-ssa-pre.c (need_ab_cleanup): New static variable.
3010         (eliminate): Set bit in need_ab_cleanup for the basic block if we have
3011         removed AB side-effects from one of its statements.
3012         (init_pre): Initialize need_ab_cleanup.
3013         (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
3014         are set in need_ab_cleanup.  Free need_ab_cleanup afterward.
3015
3016 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
3017
3018         PR c/46015
3019         * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
3020         on computed goto argument.
3021
3022 2010-10-18  Richard Guenther  <rguenther@suse.de>
3023
3024         PR tree-optimization/45967
3025         * tree-ssa-structalias.c (type_could_have_pointers): Remove.
3026         (could_have_pointers): Likewise.
3027         (handle_rhs_call, handle_const_call, handle_pure_call,
3028         find_func_aliases, intra_create_variable_infos): Remove calls to them.
3029         (struct fieldoff): Add must_have_pointers field.
3030         (type_must_have_pointers): New function.
3031         (field_must_have_pointers): Likewise.
3032         (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
3033         Adjust field merging.
3034         (create_function_info_for): May-have-pointers of varinfo is
3035         almost always true.
3036         (create_variable_info_for_1): Likewise.
3037
3038 2010-10-18  Tejas Belagod  <tejas.belagod@arm.com>
3039
3040         * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
3041         of operands to vec_concat.
3042
3043 2010-10-18  Richard Guenther  <rguenther@suse.de>
3044
3045         PR lto/44950
3046         * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
3047         also clear references to entries of it.
3048
3049 2010-10-18  Andi Kleen  <ak@linux.intel.com>
3050
3051         PR other/43448
3052         * gccbug.in: Remove.
3053         * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
3054         (doc, distclean, install-common): Remove reference to gccbug.
3055         * configure: Regenerate.
3056         * configure.ac (all_outputs): Remove gccbug.
3057         * doc/configfiles.texi: Remove references to gccbug.
3058         * doc/sourcebuild.texi: Dito.
3059
3060 2010-10-18  Jakub Jelinek  <jakub@redhat.com>
3061
3062         PR middle-end/46019
3063         * fold-const.c (fold_binary_loc): If integer_pow2p has
3064         TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
3065
3066 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
3067             Jeremie Salvucci  <jeremie.salvucci@free.fr>
3068
3069         * gengtype.c (verbosity_level): Add variable.
3070         (set_gc_used): Count variables for verbosity.
3071         (close_output_files): Backing up files, counting written ones
3072         verbosily.
3073         (write_types): Count emitted functions for verbosity. Added
3074         debug messages.
3075         (write_enum_defn): Count structures for verbosity. Added debug
3076         messages.
3077         (gengtype_long_options): Add "verbose" & "backupdir".
3078         (print_usage): Ditto.
3079         (main): Verbose display of parsed files.
3080
3081         * gengtype.h (verbosity_level): Add declaration.
3082
3083 2010-10-18  Basile Starynkevitch  <basile@starynkevitch.net>
3084
3085         * gengtype.c (parse_program_options): Add allocation of
3086         plugin_files, and correct test on nb_plugin_files.
3087
3088 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3089
3090         Merge from 'apple/trunk' branch on FSF servers.
3091
3092         2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
3093
3094         Radar 4133425
3095         * c-decl.c (undeclared_variable): Issue diagnostic on
3096         private 'ivar' access.
3097
3098 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
3099
3100         PR target/46051
3101         * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
3102         generated sequence to match *avx_vperm2f128<mode>_nozero.
3103         (vec_interleave_lowv4df): Ditto.
3104         (vec_interleave_highv8sf): Ditto.
3105         (vec_interleave_lowv8sf): Ditto.
3106
3107 2010-10-17  Kai Tietz  <kai.tietz@onevision.com>
3108
3109         * libgcov.c (create_file_directory): Enable it for win32 case.
3110         (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
3111         * doc/gcov.texi (GCOV_PREFIX): Adjusted.
3112         (GCOV_PREFIX_SKIP): Likewise.
3113
3114 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3115
3116         * doc/objc.texi (GNU Objective-C runtime API): New section.
3117         (Modern GNU Objective-C runtime API): New section.
3118         (Traditional GNU Objective-C runtime API): New section.
3119         (Executing code before main): Mention that this section is
3120         specific to the GNU Objective-C runtime.
3121         (Garbage Collection): Same.
3122
3123 2010-10-17  Uros Bizjak  <ubizjak@gmail.com>
3124
3125         * c-parser.c (c_parser_for_statement): Move initialization of
3126         cond and incr before if.
3127
3128 2010-10-17  Anatoly Sokolov  <aesok@post.ru>
3129
3130         * target.def (preferred_output_reload_class): New hook.
3131         * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
3132         * doc/tm.texi: Regenerate.
3133         * targhooks.c (default_preferred_output_reload_class): New function.
3134         * targhooks.h (default_preferred_output_reload_class): Declare.
3135         * reload.c (find_dummy_reload): Change rclass argument type from
3136         enum reg_class to reg_class_t. Change this_alternative array type
3137         from enum reg_class to reg_class_t.
3138         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
3139         (push_reload): Change preferred_class variable type to reg_class_t.
3140         Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
3141         * recog.c (reg_fits_class_p): Change result type to bool. Change cl
3142         argument type from enum reg_class to reg_class_t. Use
3143         HARD_REGISTER_NUM_P predicate.
3144         * recog.h (reg_fits_class_p): Update prototype.
3145
3146         * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
3147         * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
3148         Remove.
3149         * config/i386/i386.c (ix86_preferred_output_reload_class): Make
3150         static. Change regclass argument and result types from enum reg_class
3151         to reg_class_t.
3152         (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
3153
3154 2010-10-17  Iain Sandoe  <iains@gcc.gnu.org>
3155
3156         * c-parser.c (c_parser_objc_class_instance_variables): Update to use
3157         visibility enum, and handle @package.
3158
3159 2010-10-17  Nicola Pero  <nicola.pero@meta-innovation.com>
3160
3161         * doc/objc.texi (What you can and what you cannot do in +load):
3162         Document that sending messages to constant string objects in +load
3163         is not guaranteed to work.
3164
3165 2010-10-16  Jan Hubicka  <jh@suse.cz>
3166
3167         PR middle-end/44206
3168         * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
3169         existence of refrences before removing the function.
3170
3171 2010-10-16  Jan Hubicka  <jh@suse.cz>
3172
3173         * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
3174         only_called_at_startup and only_called_at_exit.
3175         (cgraph_propagate_frequency): Compute only_called_at_startup and
3176         only_called_at_exit.
3177         * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
3178         only_called_at_exit.
3179         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
3180         flags.
3181         * predict.c (compute_function_frequency): Initialize the new flags.
3182
3183 2010-10-16  Eric Botcazou  <ebotcazou@adacore.com>
3184
3185         * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
3186         ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
3187         on the bounds of its domain.
3188         * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
3189
3190 2010-10-16  Anatoly Sokolov  <aesok@post.ru>
3191
3192         * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
3193         * config/avr/avr-protos.h (preferred_reload_class): Remove.
3194         * config/avr/avr.c (preferred_reload_class): Remove.
3195         * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
3196         * config/pa/pa.c (emit_move_sequence): Update comment
3197         * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
3198         * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
3199         * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
3200         * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
3201         * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
3202         * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
3203         * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
3204         * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
3205         * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
3206         * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
3207         * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
3208         * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
3209         * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
3210
3211 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
3212
3213         * opts.c (set_fast_math_flags,
3214         set_unsafe_math_optimizations_flags): Make static.
3215         * toplev.h (set_fast_math_flags,
3216         set_unsafe_math_optimizations_flags): Remove prototypes.
3217
3218 2010-10-16  Joseph Myers  <joseph@codesourcery.com>
3219
3220         * config/arm/arm.c (arm_option_optimization): Set
3221         flag_section_anchors to 1 not 2.
3222         * config/i386/i386.c (ix86_option_override_internal): Check
3223         global_options_set.x_flag_zee and
3224         global_options_set.x_flag_omit_frame_pointer.
3225         (ix86_option_optimization): Don't set flag_omit_frame_pointer and
3226         flag_zee to 2.
3227         * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
3228         global_options_set.x_flag_omit_frame_pointer.
3229         * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
3230         opts->x_flag_section_anchors to 1 not 2.
3231         * config/sh/sh.c (sh_option_optimization): Don't set
3232         flag_schedule_insns to 2.
3233         (sh_option_override): Check
3234         global_options_set.x_flag_schedule_insns.
3235         * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
3236
3237 2010-10-16  Kai Tietz  <kai.tietz@onevision.com>
3238
3239         * configure.ac: Make sure inhibit_libc remains false for mingw targets
3240         as cross.
3241         * configure: Regenerated.
3242
3243 2010-10-15  Xinliang David Li  <davidxl@google.com>
3244
3245         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
3246         function.
3247         (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
3248         into a recursive function.
3249
3250 2010-10-15  Uros Bizjak  <ubizjak@gmail.com>
3251
3252         * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
3253         (*movdfcc_1): ditto.
3254
3255 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3256
3257         * target.def (target_option.init_struct): New hook.
3258         * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
3259         * doc/tm.texi: Regenerate.
3260         * hooks.c (hook_void_gcc_optionsp): New.
3261         * hooks.h (hook_void_gcc_optionsp): Declare.
3262         * langhooks-def.h (lhd_init_options_struct): Remove.
3263         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
3264         * langhooks.c (lhd_init_options_struct): Remove.
3265         * opts.c (init_options_struct): Also call
3266         targetm.target_option.init_struct.
3267         * config/i386/i386.c (ix86_option_init_struct,
3268         TARGET_OPTION_INIT_STRUCT): New.
3269         (ix86_option_optimization): Move some settings to
3270         ix86_option_init_struct.
3271         * config/pdp11/pdp11.c (pdp11_option_init_struct,
3272         TARGET_OPTION_INIT_STRUCT): New.
3273         (pdp11_option_optimization): Move some settings to
3274         pdp11_option_init_struct.
3275         * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
3276         rs6000_option_init_struct.  Use options structure pointer.
3277         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3278         * config/s390/s390.c (s390_option_init_struct,
3279         TARGET_OPTION_INIT_STRUCT): New.
3280         (s390_option_optimization): Don't set
3281         flag_asynchronous_unwind_tables here.
3282         * config/sh/sh.c (sh_option_init_struct,
3283         TARGET_OPTION_INIT_STRUCT): New.
3284         (sh_option_optimization): Don't set flag_finite_math_only here.
3285         * config/spu/spu.c (spu_option_optimization): Replace by
3286         spu_option_optimization.  Use options structure pointer.
3287         (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3288
3289 2010-10-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
3290
3291         * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
3292
3293         * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary.  Add
3294         SIGN_EXTRACT and ZERO_EXTRACT which were missing.
3295         (Standard names): Document fma.
3296
3297         * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
3298         __FP_FAST_FMAF, __FP_FAST_FMAL.
3299
3300         * builitns.c (expand_builtin_mathfn_ternary): New function for
3301         expanding ternary math functions, like fma.
3302         (expand_builtin): Call it for the fma builtins.
3303
3304         * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
3305         ops at present.
3306
3307         * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
3308         vectorizable functions to support vectorizing fma.
3309
3310         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
3311         Handle fma builtins.
3312
3313         * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
3314         (UNSPEC_VSX_MSUB): Ditto.
3315         (UNSPEC_VSX_NMADD): Ditto.
3316         (UNSPEC_VSX_NMSUB): Ditto.
3317         (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
3318         of UNSPEC. Renumber combiner patterns.
3319         (vsx_fmsub<mode>4*): Ditto.
3320         (vsx_fnmadd<mode>4*): Ditto.
3321         (vsx_fnmsub<mode>4*): Ditto.
3322
3323         * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
3324         (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
3325         multiply/add.  Rename combiner pattern, and add TARGET_FUSED_MADD test.
3326         (altivec_vmaddfp_1): Ditto.
3327         (altivec_vmaddfp_2): Ditto.
3328         (atlivec_mulv4sf3): Ditto.
3329         (altivec_vnmsubfp): Ditto.
3330         (altivec_vnmsubfp_1): Ditto.
3331         (altivec_vnmsubfp_2): Ditto.
3332         (altivec_vnmsubfp_3): Delete.
3333
3334         * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
3335         (fmasf4_fpr): Ditto.
3336         (fmssf4_fpr): Ditto.
3337         (fnmasf4_fpr): Ditto.
3338         (fnmssf4_fpr): Ditto.
3339         (fmadf4): Ditto.
3340         (fmadf4_fpr): Ditto.
3341         (fmsdf4_fpr): Ditto.
3342         (fnmadf4_fpr): Ditto.
3343         (fnmsdf4_fpr): Ditto.
3344
3345         * optabs.h (OTI_fma): Add fma optab.
3346         (fma_optab): Ditto.
3347
3348         * genopinit.c (optabs): Set fma optab.
3349
3350         * rtl.def (FMA): Add FMA rtl.
3351
3352         * tree.h (mode_has_fma): New function to return if MODE supports a
3353         fast multiply and add instruction.
3354         * builtins.c (mode_has_fma): Ditto.
3355
3356 2010-10-15  Jan Hubicka  <jh@suse.cz>
3357
3358         * lto-streamer-out.c (write_symbol): Use pointer set of seen
3359         objects instead of bitmap.
3360         (produce_symtab): Likewise; output defined symbols first.
3361
3362 2010-10-15  Jie Zhang  <jie@codesourcery.com>
3363
3364         * doc/invoke.texi: Add -fstrict-volatile-bitfields to
3365         Option Summary and Index.
3366
3367 2010-10-15  Richard Guenther  <rguenther@suse.de>
3368
3369         * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
3370         for automatic variables again.
3371
3372 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3373
3374         * doc/extend.texi (Variable Length): Don't refer to VLAs not
3375         conforming to C99.
3376
3377 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3378
3379         * config/rx/rx.c (rx_option_optimization): Change to
3380         rx_override_options_after_change.  Don't change
3381         flag_lto_compression_level.  Don't check for changes to whether
3382         FPU instructions can be used.  Check and set only
3383         flag_finite_math_only, not other fast-math flags.
3384         (rx_option_override): Call rx_override_options_after_change.
3385         (TARGET_OPTION_OPTIMIZATION): Remove.
3386         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3387
3388 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3389
3390         * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
3391         disable section anchors for lang_hooks.name[4] != 'O'.
3392
3393 2010-10-15  Joseph Myers  <joseph@codesourcery.com>
3394
3395         * config/frv/frv.c (frv_option_optimization,
3396         TARGET_OPTION_OPTIMIZATION): Remove.
3397         * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
3398
3399 2010-10-15  Michael Matz  <matz@suse.de>
3400
3401         * cgraphunit.c (clone_of_p): Define unconditionally.
3402
3403 2010-10-15  Richard Guenther  <rguenther@suse.de>
3404
3405         PR lto/45957
3406         * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
3407
3408 2010-10-15  Chung-Lin Tang  <cltang@codesourcery.com>
3409
3410         * ifcvt.c (find_active_insn_before): New function.
3411         (find_active_insn_after): New function.
3412         (cond_exec_process_if_block): Use new functions to replace
3413         prev_active_insn() and next_active_insn().
3414
3415 2010-10-14  Yao Qi  <yao@codesourcery.com>
3416
3417         PR target/45447
3418         * config/arm/arm.c (arm_build_builtin_va_list): Assign
3419         va_list_name to TYPE_STUB_DECL (va_list_type).
3420
3421 2010-10-14  Jan Hubicka  <jh@suse.cz>
3422
3423         PR middle-end/45621
3424         * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
3425         redirected to clone, be happy.
3426         * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
3427         * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
3428         former_clone_of unconditionally.
3429
3430 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3431
3432         Merge from FSF apple 'trunk' branch.
3433         2006 Fariborz Jahanian <fjahanian@apple.com>
3434
3435         Radars 4436866, 4505126, 4506903, 4517826
3436         * c-parser.c (c_parser, objc_property_attr_context) New flag.
3437         (c_lex_one_token): Handle property attributes.
3438         (c_parser_external_declaration): Handle @property.
3439         (c_parser_declaration_or_fndef): Warn on invalid attributes before
3440         @alias, @class, @end and @property objc keywords.
3441         (c_parser_objc_methodprotolist): Handle @property.
3442         (c_parser_objc_property_attrlist): New.
3443         (c_parser_objc_at_property): New.
3444         * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
3445         (build_modify_expr): Likewise.
3446
3447 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
3448
3449         PR tree-optimization/46008
3450         * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
3451
3452 2010-10-14  Richard Guenther  <rguenther@suse.de>
3453
3454         PR tree-optimization/44913
3455         * tree-data-ref.c (disjoint_objects_p): Remove.
3456         (dr_may_alias_p): Simplify.  Only hand the base object to
3457         the alias-oracle.
3458         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3459         some more trees, bail out instead of asserting.
3460         (ptr_derefs_may_alias_p): Likewise.  Export.
3461         (refs_may_alias_p_1): Handle STRING_CSTs.
3462         * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
3463
3464 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
3465
3466         PR c/45969
3467         * c-typeck.c (build_binary_op): Don't try to compute a semantic
3468         type with excess precision for boolean operations.
3469
3470 2010-10-14  Jeremie Salvucci  <jeremie.salvucci@free.fr>
3471             Basile Starynkevitch  <basile@starynkevitch.net>
3472
3473         * gengtype.c:  Include getopt.h and version.h.
3474
3475         (lang_bitmap, struct outf, outf_p)
3476         (get_output_file_with_visibility, oprintf): Definitions moved to
3477         gengtype.h
3478         (output_files, header_file, srcdir, srcdir_len, this_file)
3479         (do_dump): No more static variables.
3480         (do_debug): New.
3481         (dbgprint_count_type_at): Added new function.
3482         (gengtype_long_options): New.
3483         (print_usage, print_version, parse_program_options): New.
3484         (main): Call parse_program_options, and removed old option
3485         handling code.  Added some debug output.
3486
3487         * gengtype.h:  Updated copyright year.
3488         (lang_bitmap, struct outf, outf_p, header_file, oprintf)
3489         (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
3490         Moved from gengtype.c to here.
3491         (do_debug, read_state_filename, write_state_filename): New variables.
3492         (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
3493
3494         * Makefile.in:
3495         (REVISION): Always defined.
3496         (version.o): Removed ifdef REVISION_c.
3497         (s-gtype): Pass arguments to build/gengtype program.
3498         (build/version.o): Added building rule.
3499         (build/gengtype$(build_exeext)): Added build/version.o.
3500
3501 2010-10-14  Iain Sandoe  <iains@gcc.gnu.org>
3502
3503         Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
3504         * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
3505         __strong macros.
3506
3507 2010-10-14  Eric Botcazou  <ebotcazou@adacore.com>
3508
3509         * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
3510         may_trap_or_fault_p instead of may_trap_p predicate.
3511         * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
3512         (substitute_placeholder_in_expr): Likewise.
3513         * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
3514         flag on MEM_REF nodes.
3515         (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
3516         flags on INDIRECT_REF nodes.
3517
3518 2010-10-14  Nathan Froyd  <froydnj@codesourcery.com>
3519
3520         * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
3521         (arm*-*-uclinux*eabi) <tm_file>: Likewise.
3522         (arm*-*-eabi*) <tm_file>: Likewise.
3523         (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
3524         (frv-*-*linux*) <tm_file>: Likewise.
3525         * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
3526         and associated helper macros.
3527         * config/frv/frv-abi.h: Delete.
3528
3529 2010-10-14  Richard Guenther  <rguenther@suse.de>
3530
3531         PR lto/44561
3532         * tree.def (NULLPTR_TYPE): New tree code.
3533         * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
3534         * dwarf2out.c (is_base_type): Likewise.
3535         (gen_type_die_with_usage): Likewise.
3536         * sdbout.c (plain_type_1): Likewise.
3537         * tree.c (build_int_cst_wide): Likewise.
3538         * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
3539
3540 2010-10-14  Joseph Myers  <joseph@codesourcery.com>
3541
3542         * params.c (params_finished): New.
3543         (add_params): Assert !params_finished.
3544         (finish_params): New.
3545         (set_param_value_internal): Take params and params_set
3546         parameters.  Assert params_finished.
3547         (set_param_value, maybe_set_param_value): Take params and
3548         params_set parameters.  Update calls to set_param_value_internal.
3549         (set_default_param_value): Assert !params_finished.  Don't use
3550         set_param_value_internal.
3551         (default_param_value, init_param_values): New.
3552         * params.h (struct param_info): Change value to default_value.
3553         Remove set.
3554         (set_param_value, maybe_set_param_value): Add params and
3555         params_set parameters.
3556         (PARAM_VALUE): Get parameters from global_options.
3557         (PARAM_SET_P): Remove.
3558         (finish_params, default_param_value, init_param_values): New.
3559         * common.opt (param_values): New Variable.
3560         * config/arm/arm.c (arm_option_override): Pass extra arguments to
3561         maybe_set_param_value.
3562         * config/i386/i386.c (ix86_option_override_internal): Pass extra
3563         arguments to maybe_set_param_value.
3564         * config/picochip/picochip.c (picochip_option_override): Pass
3565         extra arguments to maybe_set_param_value.
3566         * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
3567         extra arguments to maybe_set_param_value.
3568         * config/s390/s390.c (s390_option_override): Use
3569         maybe_set_param_value instead of set_param_value.  Pass extra
3570         arguments to maybe_set_param_value.
3571         * config/sparc/sparc.c (sparc_option_override): Pass extra
3572         arguments to maybe_set_param_value.
3573         * config/spu/spu.c (spu_option_override): Pass extra arguments to
3574         maybe_set_param_value.
3575         * opts.c (handle_param): Take opts and opts_set parameters.
3576         Update call to set_param_value.
3577         (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
3578         initial_loop_invariant_max_bbs_in_loop): Remove.
3579         (init_options_once): Don't set them.
3580         (init_options_struct): Initialize parameters structures.
3581         (default_options_optimization): Use default_param_value when
3582         restoring defaults.  Update calls to maybe_set_param_value.
3583         (finish_options): Update calls to maybe_set_param_value.
3584         (common_handle_option): Update calls to handle_param and
3585         set_param_value.
3586         * toplev.c (DEFPARAM): Update definition for changes to param_info.
3587         (general_init): Call finish_params.
3588
3589 2010-10-14  Nick Clifton  <nickc@redhat.com>
3590
3591         * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
3592         (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
3593         (FIRST_PSEUDO_REGISTER): Increase by one.
3594         (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
3595         (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
3596         (MODES_TIEABLE): Call mn10300_modes_tieable.
3597         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
3598         (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
3599         (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
3600         (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
3601         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
3602         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3603         (mn10300_cc_status_mdep): Delete.
3604         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
3605         * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
3606         the combine-stack-adjust pass.
3607         (print_operand): Use the mode of the comparison operation to
3608         select the comparison suffix.
3609         (notice_update_cc): Delete.
3610         (mn10300_secondary_reload_class): Remove test for stack pointer
3611         based arithmetic.
3612         (output_tst): Rename to mn10300_output_cmp.
3613         (impossible_plus_operand): Move into predicates.md.
3614         (mn10300_legitimize_address): Make static.
3615         (mn10300_legitimate_address_p): Make static.  Only allow SI sized
3616         constant pic operands.
3617         (mn10300_legitimate_constant_p): New function.
3618         (mn10300_case_values_threshold): Make static.
3619         (mn10300_hard_regno_mode_ok): New function.
3620         (mn10300_modes_tieable): New function.
3621         (mn10300_select_cc_mode): New function.
3622         * config/mn10300/predicates.md (impossible_plus_operand): Define.
3623         * config/mn10300/mn10300-protos.h: Tidy.
3624         (mn10300_legitimate_constant_p, mn10300_modes_tieable)
3625         (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
3626         * config/mn10300/mn10300.md (cc attribute): Delete.  Replace
3627         with clobbers or sets of CC_REG.
3628         (CC_REG): Define.
3629         (mov*): Remove use of CLR instruction.
3630         (cbranch_si4_<code>): New pattern/split.
3631         (integer_conditional_branch): New pattern.
3632         (cbranch_sf4_<code>): New pattern/split.
3633         (float_conditional_branch): New pattern.
3634         (casesi): Use addsi3 pattern instead of movsi pattern to add and
3635         move a value at the same time.
3636         (cc0 peepholes): Remove.
3637
3638 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
3639
3640         * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
3641         on RTX_FRAME_RELATED_P insns and the insn to which
3642         NOTE_INSN_EPILOGUE_BEG is attached.
3643         * sched-vis.c (print_value): Allow NULL value.
3644
3645 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
3646
3647         PR rtl-optimization/45570
3648         * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
3649         assert that we are pipelining outer loops.  Allow returning
3650         zero predecessors.
3651
3652 2010-10-14  Andrey Belevantsev  <abel@ispras.ru>
3653
3654         * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
3655         (tidy_control_flow): Tidy vertical space.
3656         (sel_remove_bb): New variable idx.  Use it to remember the basic
3657         block index before deleting the block.
3658         (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
3659         (sel_merge_blocks): ... here.
3660         * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
3661
3662 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
3663
3664         * cse.c (is_dead_reg): Change into inline function that is not
3665         called through for_each_rtx.
3666         (set_live_p): Adjust caller.
3667         (insn_live_p): Don't reset DEBUG_INSNs here.
3668         (struct dead_debug_insn_data): New data.
3669         (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
3670         (delete_trivially_dead_insns): If there is just one setter for the
3671         dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
3672         and add DEBUG_INSN for it right before the removed setter and
3673         use the DEBUG_EXPR instead of the dead pseudo.
3674
3675 2010-10-14  Zdenek Dvorak  <rakdver@kam.uniff.cz>
3676
3677         * et-forest.c (et_nca): Return NULL immediately when
3678         the dominance forest has disjoint components.
3679
3680 2010-10-13  Vladimir Makarov  <vmakarov@redhat.com>
3681
3682         * ira.c (setup_class_hard_regs): Fix typo in indexing
3683         ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
3684
3685 2010-10-14  Tijs Wiebe Lefering  <twlevo@gmail.com>
3686
3687         * graph.c (inbb): New variable.
3688         (start_bb): Set inbb to 1 if output is inside of a building block.
3689         (end_bb): Check if output is inside of a building block.
3690
3691 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
3692
3693         PR rtl-optimization/45912
3694         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
3695         regno of registers instead of their index to compute the alignment.
3696
3697 2010-10-13  H.J. Lu  <hongjiu.lu@intel.com>
3698
3699         * config/i386/i386.c (ix86_build_const_vector): Check vector
3700         mode instead of scalar mode.
3701         (ix86_build_signbit_mask): Likewise.
3702         (ix86_expand_fp_absneg_operator): Updated.
3703         (ix86_expand_copysign): Likewise.
3704         (ix86_expand_int_vcond): Likewise.
3705         (ix86_emit_swdivsf): Likewise.
3706         (ix86_sse_copysign_to_positive): Likewise.
3707         (ix86_expand_sse_fabs): Likewise.
3708         * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
3709         * config/i386/sse.md (copysign<mode>3): Likewise.
3710         (sse2_cvtudq2ps): Likewise.
3711         (vec_unpacku_float_hi_v4si): Likewise.
3712         (vec_unpacku_float_lo_v4si): Likewise.
3713
3714         * config/i386/i386.c (ix86_builtins): Add
3715         IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
3716         (bdesc_args): Likewise.
3717         (ix86_builtin_vectorized_function): Support
3718         IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
3719         IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
3720         and IX86_BUILTIN_CVTPS2DQ256.
3721         (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
3722
3723         * config/i386/sse.md (STORENT_MODE): New.
3724         (VEC_FLOAT_MODE): Likewise.
3725         (VEC_EXTRACT_MODE): Likewise.
3726         (*avx_cvtdq2pd256_2): Likewise.
3727         (vec_pack_trunc_v4df): Likewise.
3728         (vec_interleave_highv8sf): Likewise.
3729         (vec_interleave_lowv8sf): Likewise.
3730         (storent<mode>): Macroized.
3731         (<code><mode>2: absneg): Likewise.
3732         (copysign<mode>3): Likewise.
3733         (vec_extract<mode>): Likewise.
3734
3735         PR target/44180
3736         * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
3737         for V8SFmode.
3738
3739 2010-10-13  Richard Guenther  <rguenther@suse.de>
3740             H.J. Lu  <hongjiu.lu@intel.com>
3741
3742         * config/i386/sse.md (reduc_splus_v8sf): Add.
3743         (reduc_splus_v4df): Likewise.
3744         (vec_unpacks_hi_v8sf): Likewise.
3745         (vec_unpacks_lo_v8sf): Likewise.
3746         (*avx_cvtps2pd256_2): Likewise.
3747         (vec_unpacks_float_hi_v8si): Likewise.
3748         (vec_unpacks_float_lo_v8si): Likewise.
3749         (vec_interleave_highv4df): Likewise.
3750         (vec_interleave_lowv4df): Likewise.
3751
3752 2010-10-13  Richard Guenther  <rguenther@suse.de>
3753
3754         PR objc/45878
3755         * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
3756         alone if there are no virtual methods.
3757
3758 2010-10-13  Richard Henderson  <rth@redhat.com>
3759
3760         * expr.c (build_personality_function): Take parameter LANG instead
3761         of parameter NAME.  Build the name based on the lang prefix and the
3762         unwind method in use.
3763         * tree.c (lhd_gcc_personality): Update call to
3764         build_personality_function.
3765
3766 2010-10-13  Richard Guenther  <rguenther@suse.de>
3767
3768         PR objc/45878
3769         * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
3770
3771 2010-10-13  Eric Botcazou  <ebotcazou@adacore.com>
3772
3773         * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
3774         Canonicalize input operands of ASM_OPERANDS insns.
3775
3776 2010-10-13  Richard Guenther  <rguenther@suse.de>
3777
3778         PR tree-optimization/45788
3779         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
3780         EH update until fixup-cfg.
3781
3782 2010-10-13  Julian Brown  <julian@codesourcery.com>
3783
3784         * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
3785         from CORE_REGS and GENERAL_REGS classes.
3786         * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
3787         final constraint for register preferencing.
3788
3789 2010-10-13  Richard Guenther  <rguenther@suse.de>
3790
3791         PR tree-optimization/45970
3792         * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
3793         * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
3794         (stmt_kills_ref_p): Likewise.
3795         * tree-ssa-dse.c (dse_optimize_stmt): Use it.
3796
3797 2010-10-13  Richard Guenther  <rguenther@suse.de>
3798
3799         PR tree-optimization/45982
3800         * tree-ssa-structalias.c (make_constraints_to): New function.
3801         (make_constraint_to): Implement in terms of make_constraints_to.
3802         (find_func_aliases): Properly make return values of pure/const
3803         functions escape if they assign to sth that is not a pointer.
3804
3805 2010-10-13  Richard Guenther  <rguenther@suse.de>
3806
3807         PR middle-end/45874
3808         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3809         Fixup the CFG when EH was fixed up.
3810
3811 2010-10-13  Ira Rosen  <irar@il.ibm.com>
3812
3813         * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
3814         Use operand's type for POINTER_PLUS_EXPR.
3815
3816 2010-10-13  Alexandre Oliva  <aoliva@redhat.com>
3817
3818         * c-parser.c (c_parser_for_statement): Initialize incr.
3819
3820 2010-10-12  Xinliang David Li  <davidxl@google.com>
3821
3822         PR tree-optimization/45972
3823         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
3824         with too many arguments.
3825
3826 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
3827
3828         PR fortran/45636
3829         * tree-ssa-forwprop.c: Include expr.h.
3830         (constant_pointer_difference, simplify_builtin_call): New functions.
3831         (tree_ssa_forward_propagate_single_use_vars): Call
3832         simplify_builtin_call on builtin calls.
3833
3834 2010-10-12  Eric Botcazou  <ebotcazou@adacore.com>
3835
3836         * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
3837         (*adddi3_extend_sp32): Likewise.
3838         (*subdi3_insn_sp32): Likewise.
3839         (*subdi3_extend_sp32): Likewise.
3840         (*negdi2_sp32): Use negative test for consistency.
3841
3842 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
3843
3844         * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
3845         (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3846         * config/fixed-bit.h: Likewise.
3847         * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3848         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3849         * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
3850         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
3851         (DF_SIZE): Likewise.
3852         * doc/tm.texi: Regenerate.
3853
3854 2010-10-12  Nathan Froyd  <froydnj@codesourcery.com>
3855
3856         * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
3857         * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
3858         (*isel_reversed_unsigned_<mode>): New.
3859         * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
3860         as valid comparisons and adjust operands and output appropriately.
3861         (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
3862
3863 2010-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
3864
3865         * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
3866         DATA_ALIGNMENT and add COND parameter. Update comments above.
3867         (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
3868         (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
3869
3870 2010-10-12  H.J. Lu  <hongjiu.lu@intel.com>
3871
3872         PR bootstrap/45958
3873         * exec-tool.in: Support '-plugin' as the second option to the linker.
3874
3875 2010-10-12  Richard Henderson  <rth@redhat.com>
3876
3877         PR middle-end/45962
3878         * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
3879         (expand_stack_vars): Assert large base allocated when used.
3880
3881 2010-10-12  Richard Guenther  <rguenther@suse.de>
3882
3883         * tree-ssa-structalias.c (get_constraint_for_1): Constants
3884         only point to nonlocal, not anything.
3885
3886 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
3887
3888         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
3889         unwind info for exceptions.
3890
3891 2010-10-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3892
3893         PR testsuite/45851
3894         * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
3895         Document optional target selector.
3896
3897 2010-10-12  Joseph Myers  <joseph@codesourcery.com>
3898
3899         * flag-types.h: New.
3900         * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
3901         (FLAGS_H): Include flag-types.h.  Include $(OPTIONS_H) instead of
3902         options.h.
3903         (OPTIONS_H): Define.
3904         (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
3905         of options.h.
3906         * configure.ac (tm_include_list): Include options.h not flags.h.
3907         * configure: Regenerate.
3908         * flags.h: Include flag-types.h.  Include options.h at top of file
3909         again.
3910         (enum debug_info_type, enum debug_info_level, enum
3911         debug_info_usage, enum symbol_visibility, struct visibility_flags,
3912         enum ira_algorithm, enum ira_region, enum excess_precision, enum
3913         graph_dump_types, enum stack_check_type,
3914         enum warn_strict_overflow_code): Move to flag-types.h
3915         * opth-gen.awk: Include flag-types.h in options.h.
3916
3917 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
3918
3919         * expr.c (store_expr): Share code for STRING_CST and
3920         MEM_REF of &STRING_CST cases.  Don't require BLKmode, instead
3921         check if target is a MEM.
3922
3923         * rtl.h: Include hashtab.h.
3924         (iterative_hash_rtx): New prototype.
3925         * rtl.c (iterative_hash_rtx): New function.
3926         * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
3927         (output_loc_list): Return immediately if emitted is set, set it.
3928         (hash_loc_operands, hash_locs, hash_loc_list,
3929         compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
3930         optimize_location_lists_1, optimize_location_lists): New function.
3931         (dwarf2out_finish): Call optimize_location_lists.
3932         * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
3933
3934 2010-10-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3935
3936         PR testsuite/45974
3937         Revert:
3938         * Makefile.in ($(lang_checks_parallel))
3939         ($(lang_checks_parallelized)): Use single quotes for
3940         $(RUNTESTFLAGS), to allow passing quoted content.
3941
3942 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3943
3944         * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
3945         actual_oldval.  Use __builtin_expect.
3946         (SUBWORD_VAL_CAS): Likewise.
3947
3948 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
3949
3950         * recog.c (nonmemory_operand): Call immediate_operand for
3951         CONSTANT_P operands.
3952
3953 2010-10-11  Uros Bizjak  <ubizjak@gmail.com>
3954
3955         * config/i386/i386.md (movmem<mode>): Macroize expander from
3956         movmem{si,di} using SWI48 mode iterator.
3957         (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
3958         *strmovsi_rex_1 using P mode iterator.
3959         (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
3960         (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
3961         (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
3962         (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
3963         (setmem<mode>): Macroize expander from setmem{si,di} using
3964         SWI48 mode iterator.
3965         (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
3966         *strsetsi_rex_1 using P mode iterator.
3967         (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
3968         (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
3969         (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
3970         (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
3971         (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
3972         (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
3973         (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
3974         mode iterator.
3975         (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
3976         *strlenqi_rex_1 using P mode iterator.
3977
3978 2010-10-11  Bernd Schmidt  <bernds@codesourcery.com>
3979
3980         PR bootstrap/45445
3981         * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
3982         static functions.
3983         (mark_ref_live, mark_ref_dead): Use them.
3984         (make_pseudo_conflict): New arg ORIG_DREG.  All callers changed.
3985         Save the original reg, and use the new functions.
3986         (check_and_make_def_use_conflict): New arg ORIG_DREG.  All callers
3987         changed.
3988         (check_and_make_def_conflict): Save the original reg.
3989
3990 2010-10-11  Martin Jambor  <mjambor@suse.cz>
3991
3992         PR middle-end/45699
3993         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
3994         thunks.
3995
3996 2010-10-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3997
3998         * Makefile.in ($(lang_checks_parallel))
3999         ($(lang_checks_parallelized)): Use single quotes for
4000         $(RUNTESTFLAGS), to allow passing quoted content.
4001
4002         PR bootstrap/35855
4003         * opt-functions.awk (BEGIN): New section.
4004         (lower, upper, digit, alnum): New variables.
4005         (static_var, opt_sanitized_name): Use alnum instead of character
4006         classes, for non-C locale.
4007         * optc-gen.awk: Likewise.
4008         * opth-gen.awk: Likewise.
4009
4010 2010-10-11  Anatoly Sokolov  <aesok@post.ru>
4011
4012         * target.def (preferred_reload_class): New hook.
4013         * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
4014         * doc/tm.texi: Regenerate.
4015         * targhooks.c (default_preferred_reload_class): New function.
4016         * targhooks.h (default_preferred_reload_class): Declare.
4017         * reload.c (find_dummy_reload): Change preferred_class variable type
4018         from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
4019         target hook.
4020         (find_reloads): Change goal_alternative array type from int to
4021         reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
4022         (push_reload, find_reloads_address_part): Use
4023         TARGET_PREFERRED_RELOAD_CLASS target hook.
4024         * reload1.c (emit_input_reload_insns): Ditto.
4025         * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
4026         hook. Change rclass argument and secondary_class variable types from
4027         'enum reg_class' to reg_class_t.
4028
4029         * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
4030         * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
4031         * config/i386/i386.c (ix86_preferred_reload_class): Make static.
4032         Change regclass argument and result types from enum reg_class to
4033         reg_class_t.
4034         (TARGET_PREFERRED_RELOAD_CLASS): Define.
4035
4036 2010-10-11  Eric Botcazou  <ebotcazou@adacore.com>
4037
4038         * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
4039         in masking operations.
4040         (simplify_const_unary_operation): Likewise.
4041         (simplify_binary_operation_1): Likewise.
4042         (simplify_const_binary_operation): Likewise.
4043         (simplify_const_relational_operation): Likewise.
4044         (simplify_ternary_operation): Likewise.
4045         (simplify_immed_subreg): Likewise.
4046
4047 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4048
4049         PR middle-end/45862
4050         * doc/tm.texi.in (SUPPORTS_WEAK): Update.
4051         (TARGET_SUPPORTS_WEAK): New.
4052         * doc/tm.texi: Regenerate.
4053         * defaults.h (SUPPORTS_WEAK): Update comment.
4054         (TARGET_SUPPORTS_WEAK): New.
4055         * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
4056         * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
4057         SUPPORTS_WEAK.
4058         (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
4059         make_decl_one_only): Likewise.
4060         * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
4061         TARGET_SUPPORTS_WEAK.
4062         (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
4063         instead of SUPPORTS_WEAK.
4064
4065 2010-10-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4066
4067         * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
4068
4069 2010-10-11  Nathan Froyd  <froydnj@codesourcery.com>
4070
4071         * vec.h (VEC_qsort): Define.
4072         * dbxout.c (output_used_types): Use it.
4073         * df-scan.c (df_sort_and_compress_refs): Likewise.
4074         (df_sort_and_compress_mws): Likewise.
4075         * genautomata.c (uniq_sort_alt_states): Likewise.
4076         (evaluate_equiv_classes): Likewise.
4077         (output_trans_table): Likewise.
4078         (output_state): Likewise.
4079         * gimplify.c (compare_case_labels): Likewise.
4080         * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
4081         * ipa.c (build_cdtor_fns): Likewise.
4082         * lto.c (lto_wpa_write_files): Likewise.
4083         * sel-sched.c (fill_vec_av_set): Likewise.
4084         * tree-predcom.c (determine_roots_comp): Likewise.
4085         * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
4086         (splice_param_accesses): Likewise.
4087         * tree-ssa-live.c (dump_enumerated_decls): Likewise.
4088         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
4089         (reassociate_bb): Likewise.
4090         * tree-ssa-sccvn.c (sort_scc): Likewise.
4091         * tree-ssa-structalias.c (sort_fieldstack): Likewise.
4092
4093 2010-10-11  Ian Lance Taylor  <iant@google.com>
4094
4095         * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
4096         * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
4097         TREE_THIS_NOTRAP when appropriate.
4098         (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
4099         * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
4100         newly created MEM_REF.
4101
4102 2010-10-11  Hariharan Sandanagobalane  <hariharan@picochip.com>
4103
4104         Nathan Froyds patch to hooks FUNCTION_ARG etc.
4105         * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
4106         (picochip_incoming_function_arg): Delete.
4107         (picochip_arg_advance): Delete.
4108         * config/picochip/picochip.h (FUNCTION_ARG): Delete.
4109         (FUNCTION_INCOMING_ARG): Delete.
4110         (FUNCTION_ARG_ADVANCE): Delete.
4111         * config/picochip/picochip.c (picochip_function_arg): Take a
4112         const_tree and a bool.
4113         (picochip_incoming_function_arg): Likewise.
4114         (picochip_arg_advance): Likewise.
4115         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4116         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4117
4118 2010-10-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4119
4120         PR middle-end/45955
4121         * ipa.c (build_cdtor): Delete endless loop.
4122
4123 2010-10-07  Andi Kleen  <ak@linux.intel.com>
4124
4125         * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
4126         checksum-options.
4127         (checksum-options): Add.
4128         (cc1-dummy): Remove.
4129         (cc1-checksum): Change to run checksum over object files
4130         and options only.
4131         * dummy-checksum.c: Remove.
4132         * genchecksum.c: Update copyright.
4133         (usage): Allow multiple arguments.
4134         (BLOCKSIZE): Add.
4135         (dosum): Change for incremental checksum. Remove C output.
4136         (main): Iterate over all argument files. Add C output.
4137
4138 2010-10-11  Joseph Myers  <joseph@codesourcery.com>
4139
4140         * params.c (set_param_value_internal): New.
4141         (set_param_value): Use set_param_value_internal.
4142         (maybe_set_param_value, set_default_param_value): New.
4143         * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
4144         (maybe_set_param_value, set_default_param_value): Declare.
4145         * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
4146         * config/i386/i386.c (ix86_option_override_internal): Use
4147         maybe_set_param_value.
4148         * config/ia64/ia64.c (ia64_option_default_params,
4149         TARGET_OPTION_DEFAULT_PARAMS): New.
4150         (ia64_option_optimization): Move some code to
4151         ia64_option_default_params.
4152         * config/picochip/picochip.c (picochip_option_override): Use
4153         maybe_set_param_value.
4154         * config/rs6000/rs6000.c (rs6000_option_default_params,
4155         TARGET_OPTION_DEFAULT_PARAMS): New.
4156         (rs6000_option_override_internal): Use maybe_set_param_value.
4157         (rs6000_option_optimization): Move some code to
4158         rs6000_option_default_params.
4159         * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
4160         * config/sh/sh.c (sh_option_default_params,
4161         TARGET_OPTION_DEFAULT_PARAMS): New.
4162         (sh_option_optimization): Move some code to sh_option_default_params.
4163         * config/sparc/sparc.c (sparc_option_override): Use
4164         maybe_set_param_value.
4165         * config/spu/spu.c (spu_option_default_params,
4166         TARGET_OPTION_DEFAULT_PARAMS): New.
4167         (spu_option_optimization): Move some code to spu_option_default_params.
4168         (spu_option_override): Use maybe_set_param_value.
4169         * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
4170         * doc/tm.texi: Regenerate.
4171         * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
4172         * opts.c (init_options_once): Use PARAM_VALUE not direct access to
4173         compiler_params.
4174         (default_options_optimization): Use maybe_set_param_value.
4175         (finish_options): Use maybe_set_param_value.
4176         * target.def (target_option.default_params): New hook.
4177         * toplev.c (general_init): Call targetm.target_option.default_params.
4178
4179 2010-10-11  Ira Rosen  <irar@il.ibm.com>
4180
4181         PR tree-optimization/45902
4182         * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
4183         vector type for constants, unless it's a pointer.
4184
4185 2010-10-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4186
4187         * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
4188
4189 2010-10-11  Jakub Jelinek  <jakub@redhat.com>
4190
4191         PR target/45870
4192         * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
4193         (ix86_delegitimize_address): Use it.
4194
4195 2010-10-10  Eric Botcazou  <ebotcazou@adacore.com>
4196
4197         * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
4198
4199 2010-10-10  Uros Bizjak  <ubizjak@gmail.com>
4200
4201         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
4202         to cum struct in the call to function_arg_advance.
4203         (alpha_function_arg_advance): Mark named as unused.
4204
4205 2010-10-10  Richard Sandiford  <rdsandiford@googlemail.com>
4206
4207         * config/mips/mips.c (mips_handle_option): Make "value" with
4208         ATTRIBUTE_UNUSED.
4209
4210 2010-10-09  Richard Henderson  <rth@redhat.com>
4211
4212         PR rtl-opt/33721
4213         * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
4214         remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN.  Honor
4215         required_align, tidy the code a bit.  Emit split_stack code in the
4216         right place.  Mark the return value with the alignment properly.
4217         * expr.h (allocate_dynamic_stack_space): Update decl.
4218         * builtins.c (expand_builtin_apply): Update call to
4219         allocate_dynamic_stack_space.
4220         (expand_builtin_alloca): Likewise.  Remove TARGET parameter.
4221         * calls.c (initialize_argument_information): Update call to
4222         allocate_dynamic_stack_space.
4223         (expand_call): Likewise.
4224
4225         * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
4226         Don't update_stack_alignment here.
4227         (alloc_stack_frame_space): Make ALIGN unsigned.
4228         (stack_var_cmp): Sort by alignment too.
4229         (partition_stack_vars): Don't merge large and small alignment vars.
4230         (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
4231         Take care when BASE is not virtual_stack_vars_rtx.
4232         (expand_stack_vars): Allocate dynamic stack space for large
4233         alignment variables.
4234         (expand_one_stack_var): Update all to expand_one_stack_var_at.
4235         (defer_stack_allocation): True for large alignment vars.
4236         (update_stack_alignment): Merge into ...
4237         (expand_one_var): ... here.
4238         (gimple_expand_cfg): Place code from expand_stack_vars.
4239
4240 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4241
4242         * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4243         * config/pdp11/pdp11.c (pdp11_function_arg): New function.
4244         (pdp11_function_arg_advance): New function.
4245         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4246
4247 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4248
4249         * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
4250         * libgcc2.c: Likewise.
4251
4252 2010-10-09  Richard Guenther  <rguenther@suse.de>
4253
4254         PR lto/45956
4255         * lto-streamer-in.c (lto_register_var_decl_in_symtab):
4256         Properly check if a decl is an automatic var.
4257
4258 2010-10-09  Richard Guenther  <rguenther@suse.de>
4259
4260         PR lto/45947
4261         * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
4262
4263 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4264
4265         * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
4266         * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4267         * config/mmix/mmix.c (mmix_function_arg): Rename to...
4268         (mmix_function_arg_1): ...this.  Make static.  Take a const_tree and
4269         bool arguments.
4270         (mmix_function_arg): New function.
4271         (mmix_function_incoming_arg): New function.
4272         (mmix_function_arg_advance): New function.
4273         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4274         (TARGET_FUNCTION_ARG_ADVANCE): Define.
4275
4276 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4277
4278         * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4279         * config/vax/vax.c (vax_function_arg): New function.
4280         (vax_function_arg_advance): New function.
4281         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4282
4283 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4284
4285         * config/pa/pa-protos.h (function_arg): Delete.
4286         * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4287         * config/pa/pa.c (function_arg): Rename to...
4288         (pa_function_arg): ...this.  Make static.  Take a const_tree and
4289         a bool.
4290         (pa_function_arg_advance): New function.
4291         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4292
4293 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4294
4295         * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4296         * config/m68k/m68k.c (m68k_function_arg): New function.
4297         (m68k_function_arg_advance): New function.
4298         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4299
4300 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4301
4302         * config/avr/avr-protos.h (function_arg): Delete.
4303         (function_arg_advance): Delete.
4304         * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4305         * config/avr/avr.c (function_arg): Rename to...
4306         (avr_function_arg): ...this.  Make static.  Take a const_tree and
4307         a bool.
4308         (function_arg_advance): Rename to...
4309         (avr_function_arg_advance): ...this.  Make static.  Take a
4310         const_tree and a bool.
4311         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4312
4313 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4314
4315         * config/alpha/alpha-protos.h (function_arg): Delete.
4316         * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4317         * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
4318         * config/alpha/alpha.c (function_arg): Rename to...
4319         (alpha_function_arg): ...this.  Make static.  Take a const_tree and
4320         a bool.  Delete TARGET_ABI_UNICOSMK code.
4321         (alpha_function_arg_advance): New function.
4322         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4323
4324 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4325
4326         * config/mep/mep-protos.h (mep_function_arg): Delete.
4327         (mep_function_arg_advance): Delete.
4328         * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4329         * config/mep/mep.c (mep_function_arg): Make static.  Take a
4330         const_tree and a bool.
4331         (mep_function_arg_advance): Likewise.
4332         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4333
4334 2010-10-09  Richard Guenther  <rguenther@suse.de>
4335
4336         PR tree-optimization/45945
4337         * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
4338
4339 2010-10-09  Eric Botcazou  <ebotcazou@adacore.com>
4340
4341         PR tree-optimization/45612
4342         * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
4343         Test LABEL_DECLs as well.  Fix formatting issues.
4344         (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
4345         whose label is present in NON_SSA_VARS.
4346         (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.  Handle LABEL_DECLs
4347         as well.  Fix formatting issues.
4348         (visit_bb): Fix typos and formatting issue.
4349
4350 2010-10-09  Nathan Froyd  <froydnj@codesourcery.com>
4351
4352         PR tree-optimization/45950
4353         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
4354         before initializing vno->op.
4355
4356 2010-10-09  Ralf Corsépius <ralf.corsepius@rtems.org>
4357
4358         * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
4359         * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
4360
4361 2010-10-08  H.J. Lu  <hongjiu.lu@intel.com>
4362
4363         PR target/45913
4364         * config/i386/i386.c (ix86_binary_operator_ok): Support
4365         "andhi/andsi/anddi" as a zero-extending move.
4366
4367 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4368
4369         * builtins.c (fold_call_stmt): Don't copy gimple call arguments
4370         into a temporary array.
4371
4372 2010-10-08  Jakub Jelinek  <jakub@redhat.com>
4373
4374         PR tree-optimization/45903
4375         * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
4376         of {A,L}SHIFTRT of MEM.
4377
4378 2010-10-08  Richard Guenther  <rguenther@suse.de>
4379
4380         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4381         Re-construct BLOCK_VARS.
4382         (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
4383         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4384         * tree.c (free_lang_data_in_block): Remove.
4385         (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
4386         Do not touch the BLOCK tree.
4387         * expr.c (expand_expr_real_1): Allow externals.
4388
4389 2010-10-08  Richard Guenther  <rguenther@suse.de>
4390
4391         * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
4392         Do not output BLOCK_SUBBLOCKS.
4393         * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
4394         Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
4395         Re-construct BLOCK_SUBBLOCKS of parent block.
4396         (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
4397         for BINFO_BASE_ACCESSES.
4398
4399 2010-10-08  Joseph Myers  <joseph@codesourcery.com>
4400
4401         * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
4402         (TREE_H): Include $(FLAGS_H) instead of options.h.
4403         (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
4404         * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4405         * common.opt (flag_complex_method, flag_evaluation_order,
4406         flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
4407         Variable declarations.
4408         * configure.ac (tm_include_list): Include flags.h instead of options.h.
4409         * configure: Regenerate.
4410         * flags.h: Condition out contents for target libraries.  Include
4411         options.h at end of file.
4412         (flag_complex_method, flag_ira_algorithm, flag_ira_region,
4413         flag_evaluation_order, flag_warn_unused_result): Remove.
4414         * gcc.c (main): Intialize global_options with global_options_init.
4415         * langhooks-def.h (lhd_init_options_struct): Declare.
4416         (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4417         (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
4418         * langhooks.c (lhd_init_options_struct): New.
4419         * langhooks.h (struct lang_hooks): Add init_options_struct.
4420         Update comment on init_options.
4421         * optc-gen.awk: Generate initializer for global_options_init, not
4422         global_options.
4423         * opth-gen.awk: Condition out structure declarations for target
4424         libraries.  Declare global_options_init.
4425         * opts-common.c: Include flags.h instead of options.h.
4426         * opts.c (flag_warn_unused_result): Remove.
4427         (read_cmdline_options): Take gcc_options parameters.  Pass them to
4428         read_cmdline_option.
4429         (initial_lang_mask, initial_min_crossjump_insns,
4430         initial_max_fields_for_field_sensitive,
4431         initial_loop_invariant_max_bbs_in_loop): Define at file scope.
4432         (init_options_once): New.  Split out of decode_options.
4433         (init_options_struct): New.  Split out of decode_options.
4434         (decode_cmdline_options_to_array_default_mask): New.
4435         (default_options_optimization): New.  Split out of decode_options.
4436         (decode_options): Move most code to other functions.  Update call
4437         to read_cmdline_options.
4438         (finish_options): New.  Split out of decode_options.
4439         * opts.h (decode_options): Add gcc_options parameters.
4440         (init_options_once, init_options_struct,
4441         decode_cmdline_options_to_array_default_mask): New.
4442         * toplev.c (flag_complex_method, flag_ira_algorithm,
4443         flag_ira_region, flag_evaluation_order): Remove.
4444         (general_init): Use global_options_init for initial flag values
4445         for global_dc.
4446         (toplev_main): Call init_options_once, init_options_struct,
4447         lang_hooks.init_options_struct,
4448         decode_cmdline_options_to_array_default_mask and
4449         lang_hooks.init_option before decode_options.  Update arguments to
4450         decode_options.
4451         * tree.h: Include flags.h instead of options.h.
4452
4453 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4454
4455         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4456
4457 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4458
4459         * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
4460         Delete.
4461         * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4462         (FUNCTION_INCOMING_ARG): Delete.
4463         * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
4464         (function_arg_slotno): Likewise.  Take bool arguments.
4465         (sparc_arg_partial_bytes): Update call to it.
4466         (function_arg): Rename to...
4467         (sparc_function_arg_1): ...this.  Take bool arguments.
4468         (sparc_function_arg, sparc_function_incoming_arg): New functions.
4469         (function_arg_advance): Rename to...
4470         (sparc_function_arg_advance): ...this.  Take bool argument.
4471         (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
4472         (TARGET_FUNCTION_INCOMING_ARG): Define.
4473
4474 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4475
4476         * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
4477         Delete.
4478         * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4479         * config/bfin/bfin.c (function_arg_advance): Rename to...
4480         (bfin_function_arg_advance): ...this.  Make static.  Take const_tree
4481         and bool arguments.
4482         (function_arg): Rename to...
4483         (bfin_function_arg): ...this.  Make static.  Take const_tree and bool
4484         arguments.
4485         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4486
4487 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4488
4489         * config/score/score-protos.h (score_function_arg): Delete.
4490         (score_function_arg_advance): Delete.
4491         * config/score/score3.h (score3_function_arg_advance): Take a
4492         const_tree and a bool.
4493         (score3_function_arg): Likewise.
4494         * config/score/score7.h (score7_function_arg_advance): Likewise.
4495         (score7_function_arg): Likewise.
4496         * config/score/score3.c (score3_classify_arg): Likewise.
4497         (score3_function_arg_advance, score3_function_arg): Likewise.
4498         * config/score/score7.c (score7_classify_arg): Likewise.
4499         (score7_function_arg_advance, score7_function_arg): Likewise.
4500         * config/score/score.c (score_function_arg_advance): Likewise.
4501         (score_function_arg): Likewise.  De-const-ify `cum' argument.
4502         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4503
4504 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4505
4506         * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
4507         (s390_function_arg): Delete.
4508         * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4509         * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
4510         (s390_function_arg_integer): Likewise.
4511         (s390_function_arg_advance): Make static.  Take a const_tree and
4512         a bool.
4513         (s390_function_arg): Likewise.
4514         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4515
4516 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4517
4518         * config/spu/spu-protos.h (spu_function_arg): Delete.
4519         * config/spu/spu.h (FUNCTION_ARG): Delete.
4520         (FUNCTION_ARG_ADVANCE): Move code to ...
4521         * config/spu/spu.c (spu_function_arg_advance): New function.
4522         (spu_function_arg): Make static.  Take a const_tree and a bool.
4523         (spu_setup_incoming_varargs): Call spu_function_arg_advance.
4524         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4525
4526 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4527
4528         * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4529
4530 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4531
4532         * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
4533         (init_vn_nary_op_from_op): New function.
4534         (init_vn_nary_op_from_stmt): New function.
4535         (vn_nary_op_lookup_1): New function.
4536         (sizeof_vn_nary_op): New function.
4537         (alloc_vn_nary_op_noinit): New function.
4538         (alloc_vn_nary_op): New function.
4539         (vn_nary_op_insert_into): New function.
4540         (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
4541         (vn_nary_op_lookup): Likewise.
4542         (vn_nary_op_lookup_stmt): Likewise.
4543         (vn_nary_op_insert_pieces): Likewise.
4544         (vn_nary_op_insert): Likewise.
4545         (vn_nary_op_insert_stmt): Likewise.
4546         (copy_nary): Likewise.
4547         (set_value_id_for_result): New function.
4548         (set_hashtable_value_ids): Call it.
4549
4550 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4551
4552         * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4553         * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
4554
4555 2010-10-08  Nathan Froyd  <froydnj@codesourcery.com>
4556
4557         * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
4558         * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4559
4560 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
4561
4562         PR debug/45656
4563         * cse.c (cse_extended_basic_block): Preserve cc0 info across
4564         debug isnsn.  Skip them when searching for cc0 setter.
4565         (set_live_p): Skip debug insns when searching for cc0 user.
4566
4567 2010-10-08  Alexandre Oliva  <aoliva@redhat.com>
4568
4569         PR debug/45673
4570         PR debug/45604
4571         PR debug/45419
4572         PR debug/45408
4573         * tree-pretty-print.c (dump_generic_node): Explicitly dump the
4574         type of MEM_REFs to INTEGER_CSTs.
4575
4576 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
4577
4578         * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
4579         m68hc11_print_operand_address.
4580
4581 2010-10-07  Nathan Froyd  <froydnj@codesourcery.com>
4582
4583         * builtins.c (rewrite_call_expr): Move code to...
4584         (rewrite_call_expr_valist): ...here.  Call build_call_expr_loc_array.
4585         (rewrite_call_expr_array): New function.
4586         (fold_builtin_sprintf_chk_1): New function.
4587         (fold_builtin_sprintf_chk): Call it.
4588         (gimple_fold_builtin_sprintf_chk): Likewise.
4589         (fold_builtin_snprintf_chk_1): New function.
4590         (fold_builtin_snprintf_chk): Call it.
4591         (gimple_fold_builtin_snprintf_chk): Likewise.
4592         (gimple_rewrite_call_expr): Delete.
4593
4594 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
4595
4596         * config.host: Update copyright year.
4597
4598 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
4599
4600         * config.host (host_lto_plugin_soname): New shell variable.
4601         * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
4602         * config.in: Regenerate.
4603         * configure: Regenerate.
4604         * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
4605         LTO plugin shared library.
4606
4607 2010-10-07  Richard Henderson  <rth@redhat.com>
4608
4609         * target.h (enum unwind_info_type): Move ...
4610         * coretypes.h: ... here.
4611
4612 2010-10-07  Nicola Pero  <nicola.pero@meta-innovation.com>
4613
4614         * doc/objc.texi (Fast enumeration protocol): Mention that
4615         'unsigned int' can also be used instead of 'unsigned long' in
4616         countByEnumeratingWithState:objects:count:.
4617
4618 2010-10-07  Martin Jambor  <mjambor@suse.cz>
4619
4620         * tree-sra.c (struct access): New field grp_assignment_write.
4621         (dump_access): Dump grp_assignment_write.
4622         (build_accesses_from_assign): Set grp_assignment_write.
4623         (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
4624         (mark_read_status): Renamed to mark_rw_status, individual values
4625         renamed too.
4626         (analyze_access_subtree): Changed type of mark_write to
4627         mark_read_status.  Fixed propagating of mark_read and
4628         mark_write.  Changed benefit estimate.  Updated comment.
4629
4630 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
4631
4632         PR Tree-Vect/45847
4633         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
4634         check for vectype_out returned by get_vectype_for_scalar_type().
4635
4636 2010-10-07  Tejas Belagod  <tejas.belagod@arm.com>
4637
4638         PR target/45805
4639         * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
4640         constraint, add register specifier in instruction template.
4641         (neon_vec_pack_trunc_<mode>): Likewise.
4642         (neon_vec_<US>mult_<mode>): Add register specifier to
4643         instruction template.
4644
4645 2010-10-07  Dave Korn  <dave.korn.cygwin@gmail.com>
4646
4647         * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
4648         cygwin2.o.
4649         (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
4650         (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
4651         * config/i386/t-cygwin (cygwin1.o): Delete build rule.
4652         (cygwin2.o): Likewise.
4653         * config/i386/cygwin1.c: Delete file.
4654         * config/i386/cygwin2.c: Likewise.
4655         * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
4656         make all {%!mno-cygwin} ones unconditional.
4657         (STARTFILE_SPEC): Likewise.
4658         (REAL_LIBGCC_SPEC): Likewise.
4659         (LIB_SPEC): Likewise.
4660         (CXX_WRAP_SPEC): Likewise.
4661         (LINK_SPEC): Likewise.
4662         (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
4663         (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
4664         (cygwin_gplusplus_include_dir): Delete now-unused array.
4665         (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
4666         (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
4667         (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
4668         (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
4669         (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
4670         (cygwin_local_include_dir): Delete now-unused array.
4671         (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
4672         (cygwin_cross_include_dir): Delete now-unused array.
4673         (CROSS_INCLUDE_DIR): Don't redefine to point to it.
4674         (cygwin_tool_include_dir): Delete now-unused array.
4675         (TOOL_INCLUDE_DIR): Don't redefine to point to it.
4676         (cygwin_standard_include_dir): Delete now-unused array.
4677         (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
4678         (GEN_CVT_ARRAY): Delete now-unused macro definition.
4679         (cvt_to_mingw): Delete now-unused array.
4680         (mingw_scan): Remove prototype of deleted function.
4681         (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
4682         * config/i386/cygming.opt (mcygwin): Delete target-specific option.
4683         * doc/invoke.texi (-mcygwin): Don't document removed option.
4684         (-mno-cygwin): Likewise.
4685
4686 2010-10-07  Richard Guenther  <rguenther@suse.de>
4687
4688         * machmode.h (mode_for_vector): Declare.
4689         * stor-layout.c (mode_for_vector): New function, split out from ...
4690         (layout_type): ... here.
4691         * tree-vectorizer.h (current_vector_size): Declare.
4692         * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
4693         mask vector type is available.
4694         (get_vectype_for_scalar_type): Rename to ...
4695         (get_vectype_for_scalar_type_and_size): ... this.  Get a vector
4696         size argument.
4697         (get_vectype_for_scalar_type): New wrapper around
4698         get_vectype_for_scalar_type_and_size using current_vector_size.
4699         (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
4700         * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
4701         of vect_analyze_loop here.
4702         (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
4703         * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
4704         to autodetect.
4705         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
4706         V8SF to V8SI conversion builtin.
4707
4708 2010-10-07  Richard Guenther  <rguenther@suse.de>
4709
4710         * target.def (autovectorize_vector_sizes): New target hook.
4711         * targhooks.c (default_autovectorize_vector_sizes): New function.
4712         * targhooks.h (default_autovectorize_vector_sizes): Declare.
4713         * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
4714         Document.
4715         * doc/tm.texi: Update.
4716         * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
4717         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4718
4719 2010-10-07  Richard Guenther  <rguenther@suse.de>
4720
4721         * target.def (units_per_simd_word): Rename to ...
4722         (preferred_simd_mode): ... this.  Return mode instead of size.
4723         * targhooks.c (default_units_per_simd_word): Rename to ...
4724         (default_preferred_simd_mode): ... this.  Return word_mode.
4725         * targhooks.h (default_preferred_simd_mode): Declare.
4726         * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
4727         (arm_preferred_simd_mode): ... this.  Re-implement.
4728         * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
4729         (ix86_preferred_simd_mode): ... this.  Re-implement.
4730         * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
4731         (sparc_preferred_simd_mode): ... this.  Re-implement.
4732         * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
4733         (mips_preferred_simd_mode): ... this.  Re-implement.
4734         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
4735         (rs6000_preferred_simd_mode): ... this.  Re-implement.
4736         * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
4737         * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
4738         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
4739         * doc/tm.texi: Update.
4740
4741 2010-10-07  Richard Guenther  <rguenther@suse.de>
4742
4743         PR middle-end/45869
4744         * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
4745         of pointers.
4746
4747 2010-10-07  Alan Modra  <amodra@gmail.com>
4748
4749         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
4750         rather than sign extension by hand.
4751
4752 2010-10-07  Jan Hubicka  <jh@suse.cz>
4753
4754         PR middle-end/45926
4755         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
4756
4757 2010-10-07  Richard Guenther  <rguenther@suse.de>
4758
4759         PR bootstrap/45914
4760         * configure.ac: Fix typo.
4761         * configure: Regenerated.
4762
4763 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4764
4765         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
4766         define_builtin_std where it's unnecessary.
4767         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
4768
4769 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
4770
4771         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
4772         * doc/tm.texi.in: Regenerate.
4773         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
4774         * targhooks.c (default_class_likely_spilled_p): Don't use the
4775         CLASS_LIKELY_SPILLED_P macro.
4776
4777         * config/arm/arm.md: Update comment.
4778
4779 2010-10-06  Jan Hubicka  <jh@suse.cz>
4780
4781         * ipa.c (cgraph_remove_unreachable_nodes): External references can
4782         always be removed.
4783         (cgraph_externally_visible_p): We can not bring local comdats that
4784         are known to linker; fix handling of internal visibility.
4785         (function_and_variable_visibility): Likewise.
4786
4787 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
4788
4789         PR rtl-optimization/45394
4790         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
4791         (struct rtx_subst_pair): Remove AFTER field.
4792         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
4793         (propagate_for_debug): Remove MOVE parameter and adjust.
4794         (try_combine): In the special case where I2 is a PARALLEL, combine only
4795         destinations of SETs and set I2SRC to the I2 source.
4796         Adjust calls to propagate_for_debug throughout.
4797         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
4798         insns.
4799
4800 2010-10-06  Olivier Hainque  <hainque@adacore.com>
4801
4802         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
4803         switch on insn codes as sequence of ifs.
4804
4805 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
4806
4807         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
4808         be UI_NONE for picochip.
4809         (picochip_option_override): Do not disable exception flags.
4810         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
4811         Declare.
4812
4813 2010-10-06  Richard Guenther  <rguenther@suse.de>
4814
4815         * Makefile.in (regmove.o): Depend on $(TARGET_H).
4816
4817 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
4818
4819         Implemented fast enumeration for Objective-C.
4820         * c-parser.c (objc_could_be_foreach_context): New.
4821         (c_lex_one_token): Recognize RID_IN keyword in a potential
4822         Objective-C foreach context.
4823         (c_parser_declaration_or_fndef): Added parameter.  Accept
4824         Objective-C RID_IN keyword as terminating a declaration; in that
4825         case, return the declaration in the new parameter.
4826         (c_parser_extenral_declaration): Updated calls to
4827         c_parser_declaration_or_fndef.
4828         (c_parser_declaration_or_fndef): Same change.
4829         (c_parser_compound_statement_nostart): Same change.
4830         (c_parser_label): Same change.
4831         (c_parser_objc_methodprotolist): Same change.
4832         (c_parser_omp_for_loop): Same change.
4833         (c_parser_for_statement): Detect and parse Objective-C foreach
4834         statements.
4835         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
4836         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
4837         fast enumeration parsing code to turn off the c99 error but still
4838         perform checks on the loop declarations.
4839         * c-tree.h (check_for_loop_decls): Updated declaration.
4840         * doc/objc.texi: Document fast enumeration.
4841
4842 2010-10-06  Nick Clifton  <nickc@redhat.com>
4843
4844         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
4845         (MDR_REGNUM): Define.
4846         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
4847         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
4848         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
4849         (REGISTER_NAMES): Add MDR.
4850         (DWARF2_DEBUGGING_INFO): Define to 1.
4851         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4852         (F): New function.  Sets RTX_FRAME_RELATED_P.
4853         (mn10300_gen_multiple_store): Use F.
4854         (expand_prologue): Use F.  Use gen_movsf() to push floating
4855         point registers.
4856         (expand_epilogue): Use gen_movsf() to pop floating point registers.
4857         (mn10300_option_override): Disable combine stack adjust pass.
4858
4859 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
4860
4861         PR target/45901
4862         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
4863         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
4864
4865 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
4866
4867         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
4868         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
4869         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
4870         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
4871         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
4872         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
4873         BUILT_IN_TOUPPER): Mark as leaf.
4874
4875         PR middle-end/45838
4876         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
4877         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
4878         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
4879         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
4880         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
4881         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
4882         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
4883
4884 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
4885
4886         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
4887         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4888         (m68hc11_class_likely_spilled_p): New function.
4889
4890 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
4891
4892         * c-parser.c (c_parser_objc_method_definition): Updated comment.
4893
4894 2010-10-05  Jan Hubicka  <jh@suse.cz>
4895
4896         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
4897         Document.
4898         * opts.c (decode_options): Handle lto partitions.
4899         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
4900         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
4901
4902 2010-10-05  Jan Hubicka  <jh@suse.cz>
4903
4904         * cgraphunit.c (assemble_function): Output thunks and aliases before
4905         the function itself.
4906
4907 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
4908
4909         * config/picochip/picochip.c (picochip_option_override): Disable
4910         exception flags for picochip.
4911
4912 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
4913
4914         * opts-common.c (handle_option, handle_generated_option,
4915         read_cmdline_option, set_option): Add diagnostic_context
4916         parameter.  Update calls among these functions.
4917         (set_option): Don't use global_dc.
4918         * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
4919         (decode_options): Pass global_dc to enable_warning_as_error.
4920         (common_handle_option): Pass global_dc to enable_warning_as_error.
4921         (enable_warning_as_error): Add diagnostic_context parameter.
4922         Document parameters.  Don't use global_dc.  Pass
4923         diagnostic_context parameter to handle_generated_option.
4924         * opts.h (set_option, handle_option, handle_generated_option,
4925         read_cmdline_option, enable_warning_as_error): Add
4926         diagnostic_context parameter.
4927         * Makefile.in (lto-opts.o): Update dependencies.
4928         * coretypes.h (struct diagnostic_context, diagnostic_context):
4929         Declare here.
4930         * diagnostic.h (diagnostic_context): Don't declare typedef here.
4931         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
4932         * langhooks-def.h (struct diagnostic_context): Don't declare here.
4933         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
4934         using diagnostic_context typedef.
4935         * langhooks.c (lhd_initialize_diagnostics): Declare using
4936         diagnostic_context typedef.
4937         * langhooks.h (struct diagnostic_context): Don't declare here.
4938         (initialize_diagnostics, print_error_function): Declare using
4939         diagnostic_context typedef.
4940         * lto-opts.c: Include diagnostic.h.
4941         (lto_reissue_options): Pass global_dc to set_option.  Pass
4942         DK_UNSPECIFIED not 0.
4943         * plugin.c (plugins_internal_error_function): Declare using
4944         diagnostic_context typedef.
4945         * plugin.h (struct diagnostic_context): Don't declare here.
4946         (plugins_internal_error_function): Declare using
4947         diagnostic_context typedef.
4948
4949 2010-10-05  Olivier Hainque  <hainque@adacore.com>
4950             Nicolas Roche  <roche@adacore.com>
4951
4952         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
4953         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
4954
4955 2010-10-05  Ira Rosen  <irar@il.ibm.com>
4956
4957         PR tree-optimization/45752
4958         * tree-vect-slp.c (vect_get_mask_element): Remove static
4959         variables, make them function arguments.
4960         (vect_transform_slp_perm_load): Pass new arguments to
4961         vect_get_mask_element.
4962
4963 2010-10-05  Richard Guenther  <rguenther@suse.de>
4964
4965         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
4966         (gimple_mod_pow2): Likewise.
4967         (gimple_mod_subtract): Likewise.
4968         (gimple_ic): Likewise.
4969         (gimple_stringop_fixed_value): Likewise.
4970         * tree-profile.c (tree_init_edge_profiler): Mark profile
4971         functions nothrow and leaf.
4972         (add_abnormal_goto_call_edges): Remove.
4973         (tree_gen_edge_profiler): Work on SSA form.
4974         (tree_gen_ic_profiler): Likewise.  Simplify.
4975         (do_tree_profiling): Update SSA form.
4976         (pass_tree_profile): Remove.
4977         (do_tree_profiling): Likewise.
4978         (gate_tree_profile_ipa): New function.
4979         (pass_ipa_tree_profile): New.
4980         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
4981         state of instrumented functions.
4982         * passes.c (init_optimization_passes): Remove early non-SSA
4983         inlining.  Move profiling after early optimizations.
4984         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
4985         (pass_ipa_early_inline): Likewise.
4986         * tree-pass.h (pass_ipa_early_inline): Remove.
4987         (pass_tree_profile): Likewise.
4988         (pass_ipa_tree_profile): Declare.
4989
4990 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4991             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
4992
4993         * config/s390/s390.c (z196_cost): New.
4994         (s390_handle_arch_option): Add -march=z196.
4995         (s390_option_override): Use the new cost function and use the z10
4996         defaults also for z196.
4997         (legitimate_reload_constant_p): Adjust comment.
4998         (legitimate_reload_fp_constant_p): New function.
4999         (s390_preferred_reload_class): Distingiush between FP and Int constants.
5000         (preferred_la_operand_p): Avoid la with index on z196.
5001         (s390_adjust_priority): Trigger also for z196.
5002         (s390_issue_rate): Issue rate for z196 is 3.
5003         (s390_z10_fix_long_loop_prediction): Rename to ...
5004         (s390_fix_long_loop_prediction): ... this.
5005         (s390_reorg): Apply the z10 adjustments also for z196.
5006         (s390_loop_unroll_adjust): Do this also for z196.
5007         * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
5008         (enum processor_flags): Add PF_Z196.
5009         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
5010         (TARGET_CPU_Z196, TARGET_Z196): New macros.
5011         * config.gcc: Enable z196 for --with-arch.
5012         * config/s390/2817.md: New file.
5013         * config/s390/2084.md: New type for multiply and add.
5014         * config/s390/2097.md: Likewise.
5015         * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
5016         (UNSPECV_ATOMIC_OP): New constants.
5017         (fmadddf, fmaddsf): New values for type attribute.
5018         (z196prop): New insn attribute.
5019         (cpu, cpu_facility): Add z196.
5020         (ATOMIC_Z196): New code iterator.
5021         (noxa): New code attribute.
5022         (gk): New mode attribute.
5023         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
5024         Support load zero for fp constants.
5025         (fixuns_truncdddi2, fixuns_trunctddi2)
5026         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
5027         for z196.
5028         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
5029         (popcounthi2, popcountqi2): New expander.
5030         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
5031         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
5032         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
5033         insn definition.
5034         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
5035         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
5036         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
5037         (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
5038         (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
5039         (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
5040         (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
5041         (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
5042         (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
5043         (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
5044         (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
5045         (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
5046         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
5047         Support new z196 instructions.
5048
5049 2010-10-05  Richard Guenther  <rguenther@suse.de>
5050
5051         PR middle-end/45877
5052         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
5053         case where gimplification optimizes away the stmt.
5054
5055 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
5056
5057         PR debug/45849
5058         * var-tracking.c (strip_pointer_flags): New function.
5059         (emit_note_insn_var_location): If rtx_equal_p check failed,
5060         retry on locations simplified with simplify_replace_fn_rtx
5061         and strip_pointer_flags as its callback.
5062
5063 2010-10-04  Jan Hubicka  <jh@suse.cz>
5064
5065         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
5066         (can_refer_decl_in_current_unit_p): ... this one; reverse return
5067         value; handle comdats too.
5068         (canonicalize_constructor_val): Use it; handle function_decls
5069         correctly.
5070         (gimple_fold_obj_type_ref_known_binfo): Likewise.
5071         * gimple.c (get_base_address): Accept all kinds of decls.
5072
5073 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5074
5075         * flags.h (g_switch_value, g_switch_set): Remove.
5076         * opts.c (g_switch_value, g_switch_set): Remove.
5077         * config/g.opt (G): Add Var(g_switch_value).
5078         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
5079         (alpha_option_override): Check global_options_set.x_g_switch_value
5080         instead of g_switch_set.
5081         (alpha_in_small_data_p): Remove cast in comparison with
5082         g_switch_value.
5083         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
5084         g_switch_value to unsigned HOST_WIDE_INT.
5085         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
5086         with g_switch_value.
5087         (frv_handle_option): Don't handle -G here.
5088         (frv_option_override): Check global_options_set.x_g_switch_value
5089         instead of g_switch_set.  Don't modify g_switch_set.
5090         (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
5091         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
5092         g_switch_value to unsigned HOST_WIDE_INT.
5093         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
5094         (ia64_option_override): Check global_options_set.x_g_switch_value
5095         instead of g_switch_set.
5096         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
5097         Remove.
5098         (lm32_in_small_data_p): Remove cast in comparison with
5099         g_switch_value.
5100         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
5101         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
5102         HOST_WIDE_INT.
5103         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
5104         (m32r_init): Check global_options_set.x_g_switch_value instead of
5105         g_switch_set.
5106         (m32r_in_small_data_p): Remove cast in comparison with
5107         g_switch_value.
5108         (m32r_file_start): Format g_switch_value with %d.
5109         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
5110         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
5111         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
5112         handle -G here.
5113         (microblaze_option_override): Check
5114         global_options_set.x_g_switch_value instead of g_switch_set.
5115         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
5116         (mips_option_override): Check global_options_set.x_g_switch_value
5117         instead of g_switch_set.
5118         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
5119         (rs6000_file_start): Format g_switch_value with %d.
5120         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
5121         comparisons with g_switch_value.
5122         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
5123         global_options_set.x_g_switch_value instead of g_switch_set.
5124         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
5125         global_options_set.x_g_switch_value instead of g_switch_set.
5126         * config/score/score.c (score_handle_option): Don't handle -G here.
5127         * config/score/score3.c (score3_option_override): Check
5128         global_options_set.x_g_switch_value instead of g_switch_set.
5129         * config/score/score7.c (score7_option_override): Check
5130         global_options_set.x_g_switch_value instead of g_switch_set.
5131
5132 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
5133
5134         * common.opt (fira-coalesce): Remove.
5135
5136         * doc/invoke.texi (flag_ira_coalesce): Remove.
5137
5138         * ira-color.c (allocno_coalesced_p): Move before
5139         copy_freq_compare_func.
5140         processed_coalesced_allocno_bitmap): Ditto.
5141         (update_conflict_hard_regno_costs): Don't use
5142         ALLOCNO_FIRST_COALESCED_ALLOCNO.
5143         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
5144         (assign_hard_reg): Assume no coalesced allocnos.
5145         (get_coalesced_allocnos_attributes): Remove.
5146         (bucket_allocno_compare_func): Assume no coalesced allocnos.
5147         (push_allocno_to_stack): Ditto.
5148         (remove_allocno_from_bucket_and_push): Use
5149         ira_print_expanded_allocno instead of print_coalesced_allocno.
5150         (push_allocnos_to_stack): Assume uncoalesced allocnos.
5151         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
5152         all_conflicting_hard_regs.
5153         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
5154         (setup_allocno_left_conflicts_size): Ditto.
5155         (put_allocno_into_bucket): Ditto.
5156         (copy_freq_compare_func): Remove.
5157         (copy_freq_compare_func, merge_allocnos): Move before
5158         coalesced_pseudo_reg_freq_compare.
5159         coalesced_allocno_conflict_p): Ditto.
5160         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
5161         parameter.  Assume it true.
5162         (color_allocnos): Assume uncoalesced allocnos.  Use
5163         ira_print_expanded_allocno instead of print_coalesced_allocno.
5164         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
5165         parameter.
5166
5167         * ira.c: Remove comment about coalescing.
5168
5169 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5170
5171         * config/mips/mips.h (target_flags_explicit): Declare for
5172         GENERATOR_FILE.
5173
5174 2010-10-04  Andi Kleen <ak@linux.intel.com>
5175
5176         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
5177         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
5178
5179 2010-10-04  Matthias Klose  <doko@ubuntu.com>
5180
5181         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
5182         multilib osdirname if it exists.
5183         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
5184
5185 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
5186
5187         PR middle-end/45876
5188         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
5189         arg0's type or its unsigned counterpart as utype.  Convert
5190         arg1 to utype unconditionally.
5191
5192 2010-10-04  Julian Brown  <julian@codesourcery.com>
5193
5194         * expr.c (expand_assignment): Add assertion to prevent emitting
5195         null rtx for movmisalign pattern.
5196         (expand_expr_real_1): Likewise.
5197         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
5198         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
5199         (arm_vector_alignment_reachable): New.
5200         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
5201         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
5202         (arm_print_operand): Include alignment qualifier in %A.
5203         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
5204         (movmisalign<mode>): New expander.
5205         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
5206         insn patterns.
5207
5208 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
5209
5210         * optc-gen.awk: Define global_options_set.  Don't define
5211         target_flags_explicit.
5212         * opth-gen.awk: Declare global_options_set.  Define
5213         target_flags_explicit as macro.
5214         * opts-common.c (handle_option): Take opts_set and generated_p
5215         parameters.
5216         (handle_generated_option, read_cmdline_option, set_option): Take
5217         opts_set parameter.
5218         (set_option): Use opts_set instead of hardcoding target_flags and
5219         target_flags_explicit.
5220         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
5221         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
5222         flag_value_profile_transformations_set, flag_peel_loops_set,
5223         flag_branch_probabilities_set, flag_inline_functions_set,
5224         flag_ipa_cp_set, flag_ipa_cp_clone_set,
5225         flag_predictive_commoning_set, flag_unswitch_loops_set,
5226         flag_gcse_after_reload_set): Remove.
5227         (common_handle_option, lang_handle_option, target_handle_option):
5228         Take opts_set parameter.  Assert that it is &global_options_set.
5229         (common_handle_option): Don't set _set variables.  Check opts_set
5230         instead of such variables.
5231         (enable_warning_as_error): Pass &global_options_set to
5232         handle_generated_option.
5233         * opts.h (cl_option_handler_func.handler, set_option,
5234         handle_option, handle_generated_option, read_cmdline_option): Add
5235         opts_set parameters.
5236         (handle_option): Add generated_p parameter.
5237         * config/i386/i386.c (ix86_function_specific_save,
5238         ix86_function_specific_restore): Updat for renaming of
5239         target_flags_explicit field.
5240         * config/i386/i386.opt (target_flags_explicit): Rename to
5241         ix86_target_flags_explicit.
5242         * config/ia64/ia64.c (ia64_override_options_after_change): Check
5243         global_options_set.x_flag_selective_scheduling and
5244         global_options_set.x_flag_selective_scheduling2, not
5245         sel_sched_switch_set.
5246         * flags.h (sel_sched_switch_set,
5247         flag_speculative_prefetching_set): Remove.
5248         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
5249         that it is &global_options_set.
5250         (process_command): Pass &global_options_set to read_cmdline_option.
5251         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
5252         set_option.
5253         * toplev.c (target_flags_explicit): Remove.
5254
5255 2010-10-04  Jan Hubicka  <jh@suse.cz>
5256
5257         PR middle-end/45871
5258         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
5259         use get_ref_base_and_offset to handle references.
5260         (fold_const_aggregate_ref): Update.
5261
5262 2010-10-04  Martin Jambor  <mjambor@suse.cz>
5263
5264         PR tree-optimization/45572
5265         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
5266         ipa_check_create_node_params.
5267         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
5268
5269 2010-10-04  Yao Qi  <yao@codesourcery.com>
5270
5271         * doc/passes.texi: Clean up.
5272
5273 2010-10-03  Ian Lance Taylor  <iant@google.com>
5274
5275         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
5276         referring to a field using a typedef name.
5277         (find_anonymous_field_with_type): New static function.
5278         (convert_to_anonymous_field): New static function.
5279         (convert_for_assignment): If -fplan9-extensions, permit converting
5280         pointer to struct to pointer to anonymous field.
5281         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
5282         (is_duplicate_field): New static function.
5283         (detect_field_duplicates_hash): If -fplan9-extensions, check for
5284         typedef names duplicating field names.
5285         (detect_field_duplicates): Likewise.
5286         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
5287         (C Dialect Options): Document -fplan9-extensions.
5288         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
5289
5290 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
5291
5292         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
5293         revision 164914.
5294         (vect_create_data_ref_ptr): Likewise.
5295         * tree-vect-stmts.c (vectorizable_store): Likewise.
5296         (perm_mask_for_reverse): Likewise.
5297         (reverse_vec_elements): Likewise.
5298         (vectorizable_load): Likewise.
5299
5300 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5301
5302         * cppbuiltin.c: New file.
5303         * cppbuiltin.h: New file.
5304         * Makefile.in: Take into account cppbuiltin.{h,c}.
5305
5306 2010-10-03  Andi Kleen <ak@linux.intel.com>
5307
5308         * lto-cgraph.c (input_cgraph): Check for missing sections.
5309
5310 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
5311
5312         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
5313         to nonimmediate_operand.  Force operand 2 to register when allowed.
5314         (*<shiftrt_insn><mode>3_mask): Ditto.
5315         (*<rotate_insn><mode>3_mask): Ditto.
5316
5317 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
5318
5319         PR tree-optimization/45720
5320         PR tree-optimization/45764
5321         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5322         Don't accept backwards consecutive accesses.
5323         (vect_create_data_ref_ptr): Disallow negative steps.
5324
5325         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
5326         (perm_mask_for_reverse): Removed.
5327         (reverse_vec_elements): Likewise.
5328         (vectorizable_load): Don't handle negative steps.
5329
5330 2010-10-02  Jan Hubicka  <jh@suse.cz>
5331
5332         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
5333         call destination is known.
5334
5335 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5336
5337         PR target/45820
5338         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
5339         earlier.
5340
5341 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5342
5343         * doc/install.texi (Configuration): Document build_configargs,
5344         host_configargs, target_configargs.
5345
5346 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
5347
5348         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
5349         (*<shiftrt_insn><mode>3_mask): Ditto.
5350         (*<rotate_insn><mode>3_mask): Ditto.
5351
5352 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
5353
5354         PR tree-optimization/44716
5355         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
5356         (HOT_TEXT_SECTION_NAME): Define.
5357
5358 2010-10-01  Nick Clifton  <nickc@redhat.com>
5359
5360         * common.opt: Add -fcombine-stack-adjustments.
5361         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
5362         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
5363         flag_combine_stack_adjustments.
5364         * doc/invoke.texi: Document the new option.
5365
5366 2010-10-01  Richard Guenther  <rguenther@suse.de>
5367
5368         PR tree-optimization/45854
5369         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
5370
5371 2010-10-01  Anthony Green  <green@moxielogic.com>
5372
5373         * config.gcc: Fix moxie-*-rtems* configuration.
5374
5375 2010-10-01  Richard Guenther  <rguenther@suse.de>
5376
5377         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
5378         (gen_decl_die): Likewise.
5379
5380 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5381
5382         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
5383         to the function code for SPU MD builtins.
5384         (spu_expand_builtin): Update.
5385         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
5386
5387 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5388
5389         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
5390         sjlj_except_unwind_info.
5391
5392 2010-10-01  Tristan Gingold  <gingold@adacore.com>
5393
5394         * configure.ac: Define the nop insn for avr*-*-*
5395         * configure: Regenerate.
5396
5397 2010-10-01  Alan Modra  <amodra@gmail.com>
5398
5399         PR target/45807
5400         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
5401         extend toc_restore_insn.
5402
5403 2010-09-30  Richard Guenther  <rguenther@suse.de>
5404
5405         PR tree-optimization/43959
5406         * function.c (gimplify_parameters): Use create_tmp_reg instead of
5407         create_tmp_var.
5408
5409 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
5410
5411         * config/sh/sh.c (sh_expand_prologue): Set
5412         current_function_static_stack_size.
5413
5414 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5415
5416         * configure.ac: Check for Solaris 8 ld with .hidden support.
5417         * configure: Regenerate.
5418
5419 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5420
5421         PR middle-end/45758
5422         * graphite.c (graphite_initialize): Call scev_reset.
5423
5424 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5425
5426         * sese.h (scev_analyzable_p): Return false for real or floating
5427         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
5428
5429 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5430
5431         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
5432         and ps.
5433         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
5434         domain.
5435         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
5436         Do not allocate ub_expr, it is passed in initialized.
5437
5438 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5439
5440         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
5441         (build_cloog_prog): Dump CLooG input file when
5442         flag_graphite_dump_cloog is set.  This is disabled on trunk.
5443         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
5444
5445 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5446
5447         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
5448         verify_dominators for CDI_POST_DOMINATORS.
5449         * sese.h: Remove comment about CDI_POST_DOMINATORS.
5450         (recompute_all_dominators): Remove call to free_dominance_info
5451         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
5452         for CDI_POST_DOMINATORS.
5453
5454 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5455
5456         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
5457         over pbb_dim_iter_domain.
5458
5459 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5460
5461         * graphite-flattening.c: Fix comments.
5462
5463 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5464
5465         * Makefile.in (OBJS-common): Add graphite-flattening.o.
5466         (graphite-flattening.o): New rule.
5467         * common.opt (floop-flatten): New flag.
5468         * doc/invoke.texi (-floop-flatten): Documented.
5469         * graphite-flattening.c: New.
5470         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
5471         * graphite-poly.h (flatten_all_loops): Declared.
5472         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
5473         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
5474         is set, also set flag_graphite.
5475
5476 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5477
5478         * graphite-poly.c (cloog_checksum): New.
5479         * graphite-poly.h (cloog_checksum): Declared.
5480
5481 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5482
5483         * graphite-poly.c (pbb_number_of_iterations): Removed.
5484         (pbb_number_of_iterations_at_time): Correctly compute the number
5485         of iterations in the transformed loop.
5486         * graphite-poly.h (pbb_number_of_iterations): Removed.
5487
5488 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5489
5490         * graphite-poly.h (lst_update_scattering_seq): Removed.
5491         (lst_update_scattering): Correctly handle outermost loop dewey
5492         renumbering.
5493
5494 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5495
5496         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
5497         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
5498         * graphite-poly.h (lst_niter_for_loop): New.
5499
5500 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5501
5502         * graphite-poly.c (apply_poly_transforms): Do not abort when the
5503         transform read from disk is not legal.  Call fatal_error instead.
5504
5505 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5506
5507         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
5508         (print_scop_header): Removed.  Inlined in the only call place...
5509         (print_scop): ... here.
5510
5511 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5512
5513         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
5514
5515 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5516
5517         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
5518
5519 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5520
5521         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
5522         (dot_deps_stmt): Same.
5523         * graphite-poly.c (dot_lst): Same.
5524
5525 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5526
5527         * graphite-blocking.c (scop_do_strip_mine): Do not call
5528         graphite_legal_transform.
5529         (scop_do_block): Same.
5530
5531 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
5532
5533         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
5534         description.
5535
5536 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5537
5538         * tree-scalar-evolution.c (instantiate_array_ref): New.
5539         (instantiate_scev_r): Also handle ARRAY_REFs.
5540
5541 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5542
5543         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5544         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
5545         RESULT_DECL, and FIELD_DECL.  Return false for an
5546         SSA_NAME_IS_DEFAULT_DEF.
5547         (compute_scalar_evolution_in_loop): Do not further analyze the
5548         scalar evolution when no_evolution_in_loop_p returns true.
5549
5550 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5551
5552         * tree-chrec.h (evolution_function_is_affine_p): Do not check
5553         whether CHREC_LEFT is invariant.  A function is affine when
5554         CHREC_RIGHT is invariant.
5555
5556 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5557
5558         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
5559         is_gimple_reg.
5560         (rewrite_degenerate_phi): Same.
5561         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
5562
5563 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
5564
5565         * graphite-scop-detection.c (graphite_can_represent_scev,
5566         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
5567         graphite_can_represent_loop): Remove outermost_loop.
5568
5569 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5570
5571         PR middle-end/45229
5572         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
5573         handle GIMPLE_CALLs with no LHS.
5574
5575 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
5576
5577         * graphite-poly.c (init_graphite_out_file): New.
5578         (init_graphite_in_file): New.
5579         (apply_poly_transforms): Updated to enable reading and writing of
5580         multiple scop files.
5581
5582 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
5583
5584         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
5585         redundant checks.
5586
5587 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5588
5589         * graphite-clast-to-gimple.c (precision_for_value): Adjust
5590         computation of precision by 1.
5591
5592 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
5593
5594         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
5595         (openscop_read_polyhedron_matrix): New.
5596         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
5597         (openscop_read_N_int): Same.
5598         * graphite-poly.c (openscop_read_N_int): New.
5599         (openscop_read_one_int): New.
5600         (openscop_read_N_string): New.
5601         (openscop_read_one_string): New.
5602         (openscop_read_powerset_matrix): New.
5603         (graphite_read_transforms): Remove.
5604         (graphite_read_scatt): New.
5605         (graphite_read_scop_file): New.
5606         (apply_poly_transforms): Updated to call graphite_read_scop_file.
5607
5608 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5609
5610         * graphite-poly.c: Change include order.
5611
5612 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
5613
5614         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
5615         (cloog_matrix_nrows): New.
5616
5617 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
5618
5619         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
5620         from matrix lines.
5621         * graphite-poly.c (openscop_print_scattering_function_1): Same.
5622         (print_scattering_function_1): Same.
5623         (openscop_print_pbb_domain): Same.
5624         (openscop_print_scop_context): Same.
5625         (print_scop_context): Same.
5626
5627 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
5628
5629         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
5630         (openscop_print_pdr_polyhedron): Print pph.
5631
5632 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5633
5634         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
5635         priority signed types.
5636
5637 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
5638
5639         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
5640         the call to lang_hooks.types.type_for_size.  Call
5641         build_nonstandard_integer_type.
5642
5643 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
5644
5645         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
5646         (openscop_print_polyhedron_matrix): New.
5647         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
5648         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
5649         (openscop_print_pdr_powerset): New.
5650         (openscop_print_powerset_matrix): New.
5651         (openscop_print_scattering_function_1): New.
5652         (print_scattering_function): Add support for scattering names and
5653         OpenScop format.
5654         (graphite_write_transforms): Remove.
5655         (print_pdr_access_layout): Updated to support OpenScop format.
5656         (print_pdr): Same.
5657         (openscop_print_pbb_domain): New.
5658         (print_pbb_body): Added a parameter to allow indicating that pbb_body
5659         is not provided.
5660         (print_pbb): Updated to call the new print_pbb_body.
5661         (openscop_print_scop_context): New.
5662         (print_scop_header): New.
5663         (print_scop): Updated to call print_scop_header.
5664         * graphite-poly.h: Document OpenScop format.
5665
5666 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
5667
5668         * config/cris/m32c.c (cris_memory_move_cost): New.
5669         (cris_register_move_cost): Make static. Change arguments type from
5670         enum reg_class to reg_class_t.
5671         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5672         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5673         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
5674
5675 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
5676
5677         PR target/45843
5678         * config/i386/i386.c (ix86_gimplify_va_arg): Use
5679         INTVAL (XEXP (slot, 1)) as prev_size.
5680
5681 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
5682
5683         PR target/45837
5684         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
5685         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
5686         defined.
5687         * config/rs6000/option-defaults.h (toplevel): Change #if
5688         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
5689         global option changes.
5690
5691 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
5692
5693         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
5694
5695         PR tree-optimization/31261
5696         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
5697         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
5698
5699 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5700
5701         PR bootstrap/45796
5702         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
5703         special-casing for generators and turn into ...
5704         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
5705         rule, for better error messages in case of toplevel dependency errors.
5706         (genprog): Add hooks, rename to ...
5707         (genprogerr): ... this, and let genprog also contain check,
5708         checksum, condmd.
5709         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
5710         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
5711         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
5712
5713 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
5714             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5715
5716         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
5717         for GMP, MPFR and MPC.
5718
5719 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5720
5721         * config/sparc/sparc.opt (mimpure-text): Move ...
5722         * config/sol2.opt: ... here.  Correct description.
5723         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
5724         * doc/invoke.texi (Option Summary, SPARC Options): Move
5725         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
5726         (Option Summary, Solaris 2 Options): ... here.
5727         (Submodel Options, Solaris 2 Options): New menu entry.
5728         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
5729         (Solaris 2 Options): ... here.
5730
5731 2010-09-30  Michael Eager  <eager@eagercon.com>
5732
5733         * extend.texi (interrupt_handler): Add MicroBlaze to list.
5734         (save_volatiles): Describe option for MicroBlaze.
5735         * invoke.texi: Add MicroBlaze Options.
5736         * contrib.texi: Add acknowledgment.
5737         * md.texi: Add MicroBlaze d and z constraints.
5738         * install.texi: Add microblaze-*-elf.
5739         * configure.ac: Add microblaze-*-* to target list.
5740         * configure: Regenerate.
5741         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
5742         * config/microblaze/microblaze-protos.h: New.
5743         * config/microblaze/crti.s: New.
5744         * config/microblaze/predicates.md: New.
5745         * config/microblaze/linux.h: New.
5746         * config/microblaze/microblaze.md: New.
5747         * config/microblaze/constraints.md: New.
5748         * config/microblaze/crtn.s: New.
5749         * config/microblaze/microblaze.opt: New.
5750         * config/microblaze/microblaze-c.c: New.
5751         * config/microblaze/t-microblaze: New.
5752         * config/microblaze/microblaze.c: New.
5753         * config/microblaze/microblaze.h: New.
5754
5755 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
5756
5757         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
5758         parse @optional/@required and set the flags as appropriate.
5759
5760 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
5761
5762         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
5763
5764 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
5765
5766         * opt-functions.awk (static_var): Update comment.
5767         (var_ref): Return offsetof expression or -1, not variable address.
5768         * optc-gen.awk: Generate structure field initializers instead of
5769         static variables.  Expect -1 for missing variables instead of null
5770         pointer.  Add gcc_options parameters to generated functions.
5771         * opth-gen.awk: Generate structure fields for static variables.
5772         Add gcc_options parameters to generated functions.
5773         * common.opt (optimize, optimize_size): Add variables.
5774         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
5775         &global_options to cl_target_option_restore.
5776         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
5777         &global_options to cl_optimization_restore, cl_target_option_save
5778         and cl_target_option_restore.
5779         (ix86_set_current_function): Pass &global_options to
5780         cl_target_option_restore.
5781         * config/pdp11/pdp11.h (optimize): Remove.
5782         * config/rs6000/rs6000.h (optimize): Remove.
5783         * config/sh/sh.h (optimize): Remove.
5784         * config/xtensa/xtensa.h (optimize): Remove.
5785         * coretypes.h (struct gcc_options): Declare.
5786         * diagnostic.c (diagnostic_initialize): Initialize
5787         context->option_state.
5788         (diagnostic_report_diagnostic): Pass option_state to
5789         option_enabled hook.
5790         * diagnostic.h (diagnostic_context.option_enabled): Add void *
5791         parameter.
5792         (diagnostic_context.option_state): New field.
5793         * final.c (final_start_function, final, final_scan_insn): Rename
5794         optimize parameter to optimize_p.
5795         * flags.h (optimize, optimize_size): Remove.
5796         * function.c (invoke_set_current_function_hook): Pass
5797         &global_options to cl_optimization_restore.
5798         * gcc.c (driver_handle_option): Take gcc_options parameter.
5799         Assert that it is &global_options.
5800         (process_command): Pass &global_options to read_cmdline_option.
5801         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
5802         option_enabled.
5803         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
5804         &global_options to set_option.
5805         * opts-common.c (handle_option, handle_generated_option,
5806         read_cmdline_option, set_option): Take explicit gcc_options
5807         parameters.  Use option_flag_var.
5808         (option_flag_var): New.
5809         * opts.c (common_handle_option, lang_handle_option,
5810         target_handle_option): Take gcc_options parameter.  Assert that it
5811         is &global_options.
5812         (read_cmdline_options): Pass &global_options to read_cmdline_option.
5813         (print_filtered_help): Use option_flag_var.  Pass &global_options
5814         to option_enabled.
5815         (common_handle_option): Use option_flag_var.
5816         (option_enabled): Take opts parameter.  Use option_flag_var.
5817         (get_option_state): Take gcc_options parameter.  Use
5818         option_flag_var.  Pass gcc_options parameter to option_enabled.
5819         (enable_warning_as_error): Pass &global_options to
5820         handle_generated_option.
5821         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
5822         (cl_option_handler_func.handler): Take gcc_options parameter.
5823         (option_enabled, get_option_state, set_option, handle_option,
5824         handle_generated_option, read_cmdline_option): Take gcc_options
5825         parameters.
5826         * toplev.c (optimize, optimize_size): Remove.
5827         (print_switch_values): Pass &global_options to option_enabled.
5828         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
5829         to get_option_state.
5830         (general_init): Initialize global_dc->option_state.
5831         * tree.c (build_optimization_node): Pass &global_options to
5832         cl_optimization_save.
5833         (build_target_option_node): Pass &global_options to
5834         cl_target_option_save.
5835
5836 2010-09-30  Martin Jambor  <mjambor@suse.cz>
5837
5838         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
5839         zero sized bit-fields.
5840
5841 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
5842
5843         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
5844         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
5845         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
5846         (c_parser_objc_class_declaration): Same change.
5847         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
5848         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5849         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
5850         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
5851         and RID_AT_PUBLIC instead of RID_PUBLIC.
5852         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
5853         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5854
5855 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
5856
5857         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
5858         Add links to current providers of packages for Solaris and IRIX.
5859
5860 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
5861
5862         Merge from 'apple/trunk' branch on FSF servers.
5863         * c-parser.c: Applied change originally in c-parse.in.
5864
5865         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
5866
5867         Radar 4281748
5868         * c-decl.c (start_decl): Check for redeclaration of class name.
5869         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
5870
5871 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
5872
5873         * config/ia64/ia64.c (ia64_builtin_decl): New.
5874         (TARGET_BUILTIN_DECL): Define.
5875         (ia64_builtins): New.
5876         (ia64_init_builtins): Save decls in ia64_builtins.
5877
5878 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
5879
5880         PR target/40457
5881         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
5882         (move2add_use_add3_insn): Likewise.
5883         (reload_cse_move2add): Likewise.
5884         * rtlanal.c (get_full_rtx_cost): New function.
5885         * rtl.h (struct full_rtx_costs): New.
5886         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
5887         costs_add_n_insns): New inline functions.
5888         (get_full_rtx_cost): Declare.
5889
5890         PR c/45054
5891         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
5892         invariants.  Check for reg_equiv_invariant.
5893         (reload): Assert that spilled_pseudos is empty when returning.
5894
5895 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
5896
5897         * config/i386/mingw32.h (TARGET_64BIT): replaced by
5898         TARGET_64BIT_DEFAULT in #if check.
5899
5900 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
5901
5902         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
5903
5904 2010-09-29  Mike Stump  <mikestump@comcast.net>
5905
5906         * config/darwin.h (flag_mkernel): Remove.
5907         (flag_apple_kext): Likewise.
5908
5909 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
5910             Jack Howarth <howarth@bromo.med.uc.edu>
5911
5912         * config/darwin.opt (undefined): Add.
5913
5914 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
5915
5916         PR testsuite/45664
5917         * configure.ac: Add --enable-indirect-function option.
5918         * config.gcc: Add default_gnu_indirect_function.
5919         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
5920         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
5921         * varasm.c (do_assemble_alias): Adjust for macro name change.
5922         * configure: Rebuilt.
5923         * doc/install.texi: Document --enable-indirect-function.
5924
5925 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
5926
5927         * doc/options.texi (Variable, Var, Init): Update documentation
5928         without reference to VarExists.
5929         (VarExists): Remove.
5930         * common.opt, config/i386/i386.opt, config/linux.opt,
5931         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
5932         Don't use VarExists.
5933
5934 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
5935
5936         * optc-gen.awk: Generate global_options initializer instead of
5937         individual variables.  Add x_ prefix to names of structure members.
5938         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
5939         names of structure members.
5940         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5941         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
5942         * doc/tm.texi: Regenerate.
5943         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5944         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5945         * c-parser.c (disable_extension_diagnostics,
5946         restore_extension_diagnostics): Update names of cpp_options members.
5947         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5948         * common.opt (fcompare-debug-second): Don't use Var.
5949         * config/alpha/alpha.h (target_flags): Remove.
5950         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5951         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5952         * config/bfin/bfin.h (target_flags): Remove.
5953         * config/cris/cris.h (target_flags): Remove.
5954         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
5955         cl_target_option members.
5956         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
5957         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
5958         ix86_can_inline_p): Update names of cl_target_option members.
5959         * config/i386/i386.h (ix86_isa_flags): Remove.
5960         * config/lm32/lm32.h (target_flags): Remove.
5961         * config/mcore/mcore.h (mcore_stack_increment): Remove.
5962         * config/mcore/mcore.md (addsi3): Remove extern declaration of
5963         flag_omit_frame_pointer.
5964         * config/mep/mep.h (target_flags): Remove.
5965         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5966         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5967         * config/mmix/mmix.h (target_flags): Remove.
5968         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
5969         flag_expensive_optimizations): Remove.
5970         * config/s390/s390.h (flag_pic): Remove.
5971         * config/score/score-conv.h (target_flags): Remove.
5972         * config/sh/sh.h (sh_fixed_range_str): Remove.
5973         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
5974         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5975         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5976         * diagnostic.c (diagnostic_initialize): Update names of
5977         diagnostic_context members.
5978         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
5979         warn_system_headers.
5980         (diagnostic_report_warnings_p): Update for new names.
5981         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5982         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
5983         HARD_FRAME_POINTER_IS_ARG_POINTER.
5984         * flags.h (flag_compare_debug): Declare.
5985         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5986         * opts.c (flag_compare_debug): Define.
5987         (common_handle_option): Update names of diagnostic_context
5988         members.  Handle -fcompare-debug-second.
5989         (fast_math_flags_struct_set_p): Update names of cl_optimization
5990         members.
5991         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5992         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5993         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5994         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5995         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5996         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5997         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
5998         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5999         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
6000
6001 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
6002
6003         * config/picochip/picochip.c (picochip_output_internal_label):
6004         This function can now be called for debug CFI labels, which can come
6005         in the middle of a vliw instruction.  Postpone until end of vliw.
6006
6007 2010-09-29  Richard Guenther  <rguenther@suse.de>
6008
6009         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
6010         (DECL_FILE_SCOPE_P): Use it.
6011         (TYPE_FILE_SCOPE_P): New macro.
6012
6013 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
6014
6015         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
6016         a CPP_NAME which is a reserved word, clearly separate cases for
6017         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
6018
6019 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
6020
6021         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
6022         token->value with the canonical spelling.  Do exactly like C and
6023         C++ and leave it as it is.
6024
6025 2010-09-28  Richard Henderson  <rth@redhat.com>
6026
6027         * config/alpha/alpha.c (alpha_builtins): New.
6028         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
6029         (alpha_builtin_function): New.
6030         (alpha_add_builtins, alpha_init_builtins): Use it.
6031
6032 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
6033
6034         * doc/standards.texi (Standards): Expanded the section on
6035         Objective-C and Objective-C++.
6036
6037 2010-09-28  DJ Delorie  <dj@redhat.com>
6038
6039         PR target/45800
6040         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
6041         volatile MEMs.
6042
6043 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
6044
6045         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
6046         attributes on methods.
6047          (c_parser_objc_method_definition): Handle attributes.
6048         (c_parser_objc_methodproto): Likewise.
6049         (c_parser_objc_maybe_method_attributes): New.
6050         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
6051         missing definition, similar to that in ObjC++.
6052
6053 2010-09-28  Richard Henderson  <rth@redhat.com>
6054
6055         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
6056         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
6057         (CONFIG_SJLJ_EXCEPTIONS): Remove.
6058         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
6059         (STACK_CHECK_PROTECT): Likewise.
6060         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
6061         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
6062         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
6063         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
6064         (dwarf2out_assembly_start): Likewise.
6065         * except.c (init_eh): Use targetm.except_unwind_info.
6066         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
6067         (output_one_function_exception_table): Likewise.
6068         * final.c: Unconditionally include dwarf2out.h.
6069         (final_start_function): Unconditionally call dwarf2out routines.
6070         (final_end_function, final_scan_insn): Likewise.
6071         * function.c (expand_function_end): Use targetm.except_unwind_info.
6072         * opts.c (decode_options): Use targetm.except_unwind_info.
6073         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
6074         * target.def (debug_unwind_info, except_unwind_info): New.
6075         * target.h (enum unwind_info_type): New.
6076         * targhooks.c (default_debug_unwind_info): New.
6077         (default_except_unwind_info): New.
6078         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
6079         * targhooks.h: Declare them.
6080         * tree-tailcall.c: Include "target.h"
6081         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
6082         * Makefile.in (tree-tailcall.o): Update.
6083         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
6084         (lhd_gcc_personality): Likewise.
6085
6086         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
6087         (TARGET_EXCEPT_UNWIND_INFO): New.
6088         (DWARF2_UNWIND_INFO): Update.
6089         (TARGET_DEBUG_UNWIND_INFO): New.
6090         * doc/tm.texi: Rebuild.
6091
6092         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
6093         targetm.except_unwind_info.
6094
6095         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
6096         (arm_except_unwind_info): New.
6097         (arm_compute_func_type): Use it.
6098         (arm_expand_prologue, thumb_pushpop): Likewise.
6099         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
6100         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
6101         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
6102         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
6103         (DWARF2_UNWIND_INFO): Remove.
6104         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
6105         (ARM_EABI_UNWIND_TABLES): Remove.
6106
6107         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
6108         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
6109         (ia64_except_unwind_info): New.
6110         (ia64_output_function_prologue): Use it.
6111         (ia64_add_bundle_selector_before): Likewise.
6112         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
6113         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
6114         (TARGET_UNWIND_INFO): Remove.
6115
6116         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
6117
6118 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
6119
6120         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
6121         (c_parser_objc_protocol_definition): Likewise.
6122         (c_parser_external_declaration): Provide dummy attribute arguments.
6123         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
6124         (c_parser_objc_class_definition): Handle attributes.
6125         (c_parser_objc_protocol_definition): Likewise.
6126
6127 2010-09-28  Tobias Burnus  <burnus@net-b.de>
6128
6129         PR fortran/40569
6130         PR fortran/40568
6131         * toplev.h (save_decoded_options, save_decoded_options_count):
6132         New global variables.
6133         * toplev.c (save_decoded_options, save_decoded_options_count):
6134         Export variables.
6135
6136 2010-09-28  Ian Lance Taylor  <iant@google.com>
6137
6138         * config/i386/i386.c (ix86_supports_split_stack): Test
6139         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
6140
6141 2010-09-28  Ian Lance Taylor  <iant@google.com>
6142
6143         PR target/45815
6144         * opts.c (decode_options): Don't test whether the target supports
6145         split stack if flag_split_stack == 0.
6146
6147 2010-09-28  Jan Hubicka  <jh@suse.cz>
6148
6149         * builtin-attrs.def (ATTR_LEAF): New attribute.
6150         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
6151         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
6152         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
6153         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
6154         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
6155         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
6156         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
6157         * sync-builtins.def: Annotate all builtins by leaf.
6158         * omp-builtins.def: Annotate all builtins by leaf.
6159         * builtins.def: Annotate relevant builtins with leaf attribute.
6160         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
6161         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
6162         leaf.
6163
6164 2010-09-28  Jan Hubicka  <jh@suse.cz>
6165
6166         * tree-ssa-ccp.c (fold_ctor_reference): New function.
6167         (fold_const_aggregate_ref): Use it.
6168         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
6169         into external static.
6170
6171 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6172
6173         PR target/44452
6174         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
6175         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
6176         (ix86_solaris_return_in_memory): Remove.
6177         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
6178         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
6179         (TARGET_SUBTARGET_DEFAULT): Redefine.
6180         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
6181         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
6182         (TARGET_SUBTARGET_DEFAULT): Redefine.
6183         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
6184         -mvect8-ret-in-mem.
6185         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
6186
6187 2010-09-29  Alan Modra  <amodra@gmail.com>
6188
6189         PR target/45807
6190         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
6191         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
6192         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
6193         Delete.
6194         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
6195         (rs6000_emit_prologue): Don't just create frame save info for r2,
6196         actually save r2.
6197
6198 2010-09-28  Richard Henderson  <rth@redhat.com>
6199
6200         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
6201         when 8 bytes are requested.
6202
6203 2010-09-28  Tristan Gingold  <gingold@adacore.com>
6204
6205         * config/avr/avr.c (expand_prologue): Set
6206         current_function_static_stack_size.
6207
6208 2010-09-28  Tristan Gingold  <gingold@adacore.com>
6209
6210         * config/alpha/alpha.md: Change the initial condition of the
6211         probing loop.
6212
6213 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
6214
6215         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
6216         Split from *avx_<maxmin:code><mode>3.
6217         (*avx_<smaxmin:code><mode>3): Ditto.
6218         * config/i386/i386.md (maxmin): Remove code iterator.
6219
6220 2010-09-27  Ian Lance Taylor  <iant@google.com>
6221
6222         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
6223         requires assembler support for CFI directives.
6224
6225 2010-09-27  Richard Henderson  <rth@redhat.com>
6226
6227         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
6228
6229 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
6230
6231         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
6232         that AFTER is not in the range FROM..TO, inclusive.
6233
6234 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
6235             Bernd Schmidt  <bernds@codesourcery.com>
6236
6237         PR rtl-optimization/45792
6238         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
6239         If not all insns are to be merged, for each edge, stash the
6240         next candidate after the to-be-merged insns before doing the
6241         merge, and use them for the retry at the new insertion point.
6242         Handle CC0 targets when retrying.
6243
6244 2010-09-27  Ian Lance Taylor  <iant@google.com>
6245
6246         * common.opt (fsplit-stack): New option.
6247         * opts.c (decode_options): Set flag_split_stack to final value.
6248         * target.def (supports_split_stack): New hook.
6249         * gcc.c (STACK_SPLIT_SPEC): Define.
6250         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
6251         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
6252         (Code Gen Options): Document -fsplit-stack.
6253         * doc/extend.texi (Function Attributes): Mention no_split_stack.
6254         (Function Attributes): Document no_split_stack.
6255         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
6256         TARGET_SUPPORTS_SPLIT_STACK.
6257         * doc/tm.texi: Rebuild.
6258         * function.c (thread_prologue_and_epilogue_insns): If
6259         flag_split_stack, add split stack prologue.
6260         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
6261         * varasm.c (saw_no_split_stack): New static variable.
6262         (assemble_start_function): Set saw_no_split_stack if the function
6263         has the no_split_stack attribute.
6264         (file_end_indicate_split_stack): New function.
6265         * output.h (file_end_indicate_split_stack): Declare.
6266         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
6267         and function.
6268         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
6269         routines.
6270         * config/i386/i386.c (ix86_option_override_internal): Don't set
6271         expand_builtin_va_start to NULL if -fsplit-stack.
6272         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
6273         -fsplit-stack.
6274         (ix86_va_start): If -fsplit-stack, get overflow pointer from
6275         scratch register set by prologue.
6276         (ix86_code_end): If -fsplit-stack, call
6277         file_end_indicate_split_stack.
6278         (ix86_supports_split_stack): New static function.
6279         (SPLIT_STACK_AVAILABLE): Define.
6280         (split_stack_prologue_scratch_regno): New static function.
6281         (split_stack_fn): New static variable.
6282         (ix86_expand_split_stack_prologue): New function.
6283         (ix86_live_on_entry): New static function.
6284         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
6285         (output_pic_addr_const): Likewise.
6286         (i386_asm_output_addr_const_extra): Likewise.
6287         (ix86_expand_call): Change return type to rtx.  Return the new
6288         call instruction.
6289         (TARGET_SUPPORTS_SPLIT_STACK): Define.
6290         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6291         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
6292         (split_stack_prologue, split_stack_return): New insns.
6293         (split_stack_space_check): New insn.
6294         * config/i386/i386.h (struct machine_function): Add
6295         split_stack_varargs_pointer field.
6296         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
6297         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6298         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
6299         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6300         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
6301         Declare.
6302         (ix86_expand_call): Update declaration.
6303
6304 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6305
6306         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
6307         code.  Added byref, which was missing in the list of codes.
6308         Explain that enumeration values are encoded as the integer type
6309         that the compiler uses to store them.  Explain and make examples
6310         of how 'const' interacts with pointers, and the complication of
6311         the encoding of 'const char *'.
6312         (Legacy type encoding): New subsection, explaining that GCC emits
6313         incorrect type encodings for the NeXT runtime for compatibility
6314         reasons.
6315         (@@encode): New subsection, explaining @encode and particularly
6316         that protocol qualifiers are not recognized inside an @encode()
6317         expression.
6318         (Method signatures): New subsection, explaining how method
6319         signatures are encoded.
6320
6321 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
6322
6323         Merge from 'apple/trunk' branch on FSF servers.  Removed small
6324         change in build_conditional_expr that had been added when fixing
6325         PR objc/27377 and which did the same check in a less complete way.
6326
6327         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
6328
6329         Radar 4229905
6330         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
6331         looking for objective-c common pointer types.
6332
6333         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
6334
6335         Radar 4154928
6336         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
6337         use their ObjC common type.
6338
6339 2010-09-27  Richard Guenther  <rguenther@suse.de>
6340
6341         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
6342
6343 2010-09-27  Jie Zhang  <jie@codesourcery.com>
6344
6345         * print-tree.c (print_node): Print in-constant-pool.
6346
6347 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
6348
6349         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
6350         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
6351         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
6352         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
6353
6354 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
6355
6356         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
6357         from pro_epilogue_adjust_stack_<mode>_{1,2}.
6358         (pro_epilogue_adjust_stack_<mode>_add): Rename from
6359         pro_epilogue_adjust_stack_<mode>_3.
6360         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
6361         renamed pro_epilogue_adjust_stack_{si,di}_add.
6362         (ix86_expand_prologue): Use indirect functions.  Update for renamed
6363         pro_epilogue_adjust_stack_{si,di}_sub.
6364
6365 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
6366
6367         * config/i386/i386.md (movmsk_df): New insn.
6368         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
6369         sequence for TARGET_SSE_MATH.
6370
6371 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
6372
6373         * config/mips/mips.c (mips_builtin_decls): Declare.
6374         (mips_init_builtins): Store function declarations in
6375         mips_builtin_decls.
6376         (mips_builtin_decl): New function.
6377         (TARGET_BUILTIN_DECL): Define.
6378
6379 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
6380             Richard Henderson  <rth@redhat.com>
6381
6382         * config/i386/cygwin.asm: Include auto-host.h.
6383         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
6384         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
6385         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
6386         alignment code from the 64-bit path.  Use gas local labels.
6387         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
6388         from _di_2.  Remove the useless constant integer argument.
6389         (pro_epilogue_adjust_stack_<mode>_3): New.
6390         (allocate_stack_worker_probe_<mode>): Macroize from
6391         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
6392         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
6393         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
6394         (__chkstk_ms): New function.
6395         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
6396         * config/i386/t-interix: Likewise.
6397         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
6398         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
6399         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
6400         * configure, config.in: Rebuild.
6401
6402 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
6403
6404         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
6405         statements because of the return slot optimization.
6406
6407 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
6408
6409         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
6410         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
6411         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6412         (class_likely_spilled_p): Rename to...
6413         (avr_class_likely_spilled_p): ...this. Make static. Change argument
6414         type to reg_class_t.
6415
6416 2010-09-24  Jan Hubicka  <jh@suse.cz>
6417
6418         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
6419         (lto_symtab_resolve_symbols): Set it.
6420         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
6421         store resolution field in cgraph/varpool.
6422         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
6423         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
6424         (cgraph_dump_node): Drop used_from_object_file.
6425         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
6426         (cgraph_function_body_availability): Use decl_replaceable_p.
6427         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
6428         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
6429         cgraph_used_from_object_file_p.
6430         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
6431         cgraph_used_from_object_file_p.
6432         (resolution_used_from_other_file_p): New functoin.
6433         (cgraph_used_from_object_file_p): New predicate.
6434         * cgraph.h: Include plugin-api.h
6435         (struct cgraph_local_info): Remove used_from_object_file.
6436         (struct cgraph_node): Add resolution field.
6437         (struct varpool_node): Likewise; remove used_from_object_file;
6438         reove const_value_known.
6439         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
6440         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
6441         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
6442         varpool_used_from_object_file_p): Declare.
6443         (varpool_get_node, varpool_extra_name_alias): Update prototype.
6444         * tree.h (DECL_REPLACEABLE_P): Remove.
6445         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
6446         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
6447         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6448         input_overwrite_node, input_node, input_varpool_node): Stream
6449         resolution.
6450         * expr.c (expand_expr_real_1): Use const_value_known_p
6451         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
6452         const_value_known.
6453         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
6454         (function_and_variable_visibility): Set resolution for local vars
6455         and functions; use varpool_used_from_object_file_p.
6456         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
6457         static functions.
6458         (default_binds_local_p_1): Use resolutoin info.
6459         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
6460         * varpool.c (varpool_get_node): Constify.
6461         (const_value_known_p): Do not use vnode->const_value_known;
6462         use decl_replaceable_p.
6463         (varpool_finalize_decl): Do not set const_value_known.
6464         (cgraph_variable_initializer_availability): Use decl_replaceable_p
6465         (varpool_extra_name_alias): Return new node.
6466         (varpool_used_from_object_file_p): New function.
6467
6468 2010-09-24  Richard Henderson  <rth@redhat.com>
6469
6470         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
6471         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
6472         (do_spill): Use REG_CFA_OFFSET.
6473         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
6474         as appropriate.
6475         (ia64_expand_epilogue): Likewise.
6476         (process_set): Split into ...
6477         (process_cfa_adjust_cfa): this,
6478         (process_cfa_register): this,
6479         (process_cfa_offset): and this new function.
6480         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
6481         instead of REG_FRAME_RELATED_EXPR.
6482
6483 2010-09-24  Olivier Hainque  <hainque@adacore.com>
6484
6485         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
6486
6487 2010-09-24  Jan Hubicka  <jh@suse.cz>
6488
6489         * doc/extend.texi: (attribute leaf): Document.
6490         * tree.c (local_define_builtin): Handle ECF_LEAF.
6491         (build_common_builtin_nodes): Set ECF_LEAF where needed.
6492         * tree.h (ECF_LEAF): New.
6493         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
6494         overwrittable and unavailable functions.
6495         (ipa_init): Put all_module_statics into optimization_summary_obstack.
6496         (copy_global_bitmap): Do not copy all_module_statics.
6497         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
6498         (propagate): Handle overwritable and unavailable leaf functions;
6499         initialize global info for overwritable and unavailable leaf functions;
6500         do not free all module statics.
6501         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
6502         local statics.
6503         * calls.c (flags_from_decl_or_type): Handle leaf.
6504         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
6505         abnormal gotos.
6506
6507 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
6508
6509         * gengtype.c: Reindented.
6510         * gengtype.h: Reindented.
6511         * gengtype-parse.c: Reindented.
6512
6513 2010-09-24  Jan Hubicka  <jh@suse.cz>
6514
6515         PR tree-optimization/45738
6516         PR tree-optimization/45741
6517         * expr.c (string_constant): Allow CONST_DECL too;
6518         check that DECL_INITIAL is set.
6519         * varpool.c (const_value_known_p): Only look into VAR_DECL
6520         and CONST_DECL.
6521
6522 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
6523
6524         * common.opt (undef): New.
6525
6526 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
6527
6528         PR middle-end/45234
6529         * rtl.h (enum global_rtl_index): Add
6530         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
6531         (LAST_VIRTUAL_POINTER_REGISTER): Define.
6532         (virtual_preferred_stack_boundary_rtx,
6533         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
6534         (LAST_VIRTUAL_REGISTER): Increase by one.
6535         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
6536         instead of LAST_VIRTUAL_REGISTER.
6537         * function.c (instantiate_new_reg): Handle
6538         virtual_preferred_stack_boundary_rtx.
6539         * emit-rtl.c (init_virtual_regs): Handle
6540         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6541         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
6542         * explow.c (round_push): If crtl->preferred_stack_boundary
6543         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
6544         virtual_preferred_stack_boundary_rtx alignment instead of
6545         crtl->preferred_stack_boundary alignment.
6546         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
6547         macros.  Never decrease crtl->preferred_stack_boundary,
6548         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
6549         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
6550         stack_pointer_delta in dynamic allocation, even when size
6551         is constant.
6552         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
6553         macro.
6554         * print-rtl.c (print_rtx): Handle
6555         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6556         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
6557         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
6558         * config/frv/frv.c (frv_emit_movsi): Likewise.
6559         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
6560         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
6561         Likewise.
6562
6563         Revert:
6564         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
6565
6566         PR middle-end/45234
6567         * calls.c (expand_call): Make sure that all variable sized
6568         adjustments are multiple of preferred stack boundary after
6569         stack alignment.
6570
6571 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
6572             Dominique Dhumieres  <dominiq@lps.ens.fr>
6573
6574         PR bootstrap/45751
6575         * config/darwin-driver.c (darwin_default_min_version):
6576         Adjust size passed to memcpy in two places.
6577
6578 2010-09-24  Richard Guenther  <rguenther@suse.de>
6579
6580         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
6581         Make sure to not call set_type_context with error_mark_node.
6582         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
6583
6584 2010-09-24  Richard Guenther  <rguenther@suse.de>
6585
6586         * Makefile.in (OBJS-onestep): Remove.
6587         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
6588         (libbackend.a): Remove onestep support.
6589         (libbackend.o): Remove.
6590         * configure.ac (--enable-intermodule): Remove.
6591         * configure: Regenerate.
6592
6593 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
6594
6595         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
6596         reaching the end of a block if it occurs at a DEBUG_INSN.
6597
6598 2010-09-09  Tristan Gingold  <gingold@adacore.com>
6599
6600         PR target/44242
6601         * config/vms/vms-crt0-64.c: Removed.
6602         * config/vms/vms-crt0.c: Removed.
6603         * config/vms/vms-psxcrt0-64.c: Removed.
6604         * config/vms/vms-psxcrt0.c: Removed.
6605         * config/vms/vms-ucrt0.c: New file.
6606         * config/vms/t-vms64: Removed.
6607         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
6608         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
6609         * config.gcc (alpha-dec-vms): Use t-vms.
6610
6611 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
6612
6613         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
6614         underfull hbox in DVI output.
6615         (-fobjc-class-cxx-cdtors): Same change.
6616         (-fobjc-exceptions): Tidied up documentation.  Explain what the
6617         option does, but moved the (lenghty) description of the exception
6618         syntax into objc.texi.
6619         (-fobjc-gc): Explain that the option is not useful with the GNU
6620         runtime.
6621         (-fzero-link): Explain that the GNU runtime always works in
6622         "zero-link" mode.
6623         * doc/objc.texi: All sections: simplified @node declarations
6624         removing specification of next, previous, up node.
6625         (Objective-C): Updated introduction.
6626         (Garbage Collection): Updated.  The bohem-gc library is now
6627         included in gcc itself.  Mention that this section only applies to
6628         the GNU Objective-C runtime.
6629         (compatibility_alias): Small tidy up.
6630         (Exceptions): New section mostly containing text previously in the
6631         description of the -fobjc-exception command-line option.
6632         (Synchronization): Same.
6633
6634 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
6635
6636         * config/i386/i386.md (ix86_code_end): Move the initialization of
6637         xops array near the consumer.  Use AX_REG and SP_REG instead of
6638         numerical constants.
6639
6640 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
6641
6642         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
6643         method [methodname]' for an Objective-C method instead of the less
6644         satisfactory 'too many arguments to function' (with no method name).
6645
6646 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
6647
6648         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
6649         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
6650         (execute_update_addresses_taken): Remove parameter.  Execute the
6651         optimization unconditionally.
6652         * passes.c (execute_function_todo): Call execute_update_addresses_taken
6653         unconditionally if TODO_rebuild_alias is set, else only when optimizing
6654         if TODO_update_address_taken is set.
6655
6656 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
6657
6658         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6659         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
6660         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6661         (arm_output_addr_const_extra): Make static.
6662
6663 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
6664
6665         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
6666         define as unspec_volatile.
6667         ("nops"): Define as unspec_volatile. Use fputs to write to
6668         asm_out_file directly.  Output NOPs on separate lines using while loop.
6669         * config/i386/i386.c (ix86_code_end): Use fputs to write to
6670         asm_out_file directly.  Output NOPs on separate lines using while loop.
6671
6672 2010-09-23  Richard Guenther  <rguenther@suse.de>
6673
6674         PR tree-optimization/45565
6675         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
6676         Make sure to adjust the fndecl before replacing the stmt.
6677
6678 2010-09-23  Richard Guenther  <rguenther@suse.de>
6679
6680         PR middle-end/45750
6681         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
6682         gimplifying MEM_REF.
6683
6684 2010-09-23  Alan Modra  <amodra@gmail.com>
6685
6686         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
6687         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
6688
6689 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
6690
6691         PR rtl-optimization/44374
6692         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
6693         * df-core.c (df_set_bb_dirty): Set it.
6694         * ifcvt.c (find_memory): Remove function.
6695         (dead_or_predicable): Use can_move_insns_across.
6696         * df.h (can_move_insns_across): Declare function.
6697         * cfgcleanup.c (block_was_dirty): New static variable.
6698         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
6699         than df_get_bb_dirty.
6700         (try_head_merge_bb): New static function.
6701         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
6702         is set.
6703         * df-problems.c: Include "target.h"
6704         (df_simulate_find_uses): New static function.
6705         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
6706         (find_memory, find_memory_store): New static functions.
6707         (can_move_insns_across): New function.
6708         * Makefile.in (df-problems.o): Update dependencies.
6709
6710 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
6711
6712         PR java/44095
6713         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
6714         is specified and the suffix of the file isn't ".c".
6715         * config/sparc/linux64.h (ASM_SPEC): Likewise.
6716
6717 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6718
6719         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
6720         * doc/cppopts.texi: Fix markup of index entry.
6721         * doc/extend.texi (Constructing Calls): Fix markup of
6722         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
6723         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
6724         (Vague Linkage, C++ Attributes): Fix markup of index entries and
6725         keywords.
6726         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
6727         avoid long lines.
6728         (C Dialect Options, C++ Dialect Options, Warning Options)
6729         (Debugging Options, Spec Files, Darwin Options)
6730         (i386 and x86-64 Options, MIPS Options)
6731         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
6732         index entries, avoid abbreviations, allow URLs to wrap, avoid
6733         long lines, avoid overlong pages from long @itemx lists.
6734         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
6735         * doc/standards.texi (Standards): Likewise.
6736         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
6737
6738 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
6739
6740         * opts-common.c (prune_options): Make static.  Work with decoded
6741         options.
6742         (decode_cmdline_options_to_array): Call prune_options.  Don't
6743         resize option array here.
6744         * opts.h (prune_options): Remove prototype.
6745         * gcc.c (process_command): Take decoded options; don't call
6746         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
6747         (main): Call decode_cmdline_options_to_array here instead of
6748         prune_options.  Update call to process_command.
6749         * config/darwin-driver.c: Include opts.h.
6750         (darwin_default_min_version): Work with decoded options.  Don't
6751         handle -b or -V here.
6752         * config/darwin.h (darwin_default_min_version): Update prototype.
6753         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
6754         darwin_default_min_version.
6755         * config/i386/cygwin.h (mingw_scan): Update prototype.
6756         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
6757         * config/i386/cygwin1.c: Include opts.h.
6758         (mingw_scan): Work with decoded options.
6759         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
6760         * config/t-darwin (darwin-driver.o): Update dependencies.
6761
6762 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
6763
6764         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
6765         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
6766         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
6767         -force-link, -force-link=, -language, -language=,
6768         -library-directory, -library-directory=, -no-canonical-prefixes,
6769         -no-standard-libraries, -no-warnings, -optimize, -output,
6770         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
6771         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
6772         -print-file-name=, -print-libgcc-file-name,
6773         -print-multi-directory, -print-multi-lib,
6774         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
6775         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
6776         -profile, -save-temps, -shared, -specs, -specs=, -static,
6777         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
6778         symbolic): New.
6779         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
6780         * gcc.c (A Short Introduction to Adding a Command-Line Option):
6781         Remove comment.
6782         (cc1_options): Correct specs for passing down --help,
6783         --target-help and --help=*.  Add spec for passing down --version.
6784         (struct option_map, option_map, target_option_translations,
6785         translate_options): Remove.
6786         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
6787         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
6788         OPT_fhelp_ and OPT_ftarget_help.
6789         (process_command): Don't call translate_options.  Call
6790         decode_cmdline_options_to_array before checking for
6791         -no-canonical-prefixes using decoded options.
6792         * opts-common.c (tm.h): Update comment on #include.
6793         (find_opt): Allow abbreviations of long options.
6794         (struct option_map, option_map): New.
6795         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
6796         and -mno handling.
6797         (target_option_translations): New.
6798         (decode_cmdline_options_to_array): Handle
6799         TARGET_OPTION_TRANSLATE_TABLE in driver.
6800         * opts.c (common_handle_option): Don't handle OPT_fhelp,
6801         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
6802
6803 2010-09-22  Richard Guenther  <rguenther@suse.de>
6804
6805         * tree-inline.c (optimize_inline_calls): Schedule cleanups
6806         only if we inlined something.  Block compaction and conditional
6807         folding are done by cfg cleanup.  Schedule update-address-taken.
6808         (tree_function_versioning): Remove redundant call to number_blocks.
6809         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
6810         folding is done by cfg cleanup.
6811         * passes.c (init_optimization_passes): Remove update-address-taken
6812         pass after IPA inlining.
6813
6814 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
6815
6816         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
6817         to update conditions. Fix reg_mode[] check.
6818
6819 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
6820
6821         * config/picochip/picochip.md (movhicc): Use expand to check whether
6822         movhicc is available and split it after reload.
6823
6824 2010-09-22  Richard Guenther  <rguenther@suse.de>
6825
6826         * tree-ssanames.c (release_dead_ssa_names): Do not remove
6827         callee edges here.
6828         * passes.c (init_optimization_passes): Remove early CFG cleanup.
6829         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
6830         (pass_cleanup_cfg): Likewise.
6831         (execute_fixup_cfg): Cleanup.
6832         * tree-pass.h (pass_cleanup_cfg): Remove.
6833
6834 2010-09-22  Martin Jambor  <mjambor@suse.cz>
6835
6836         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
6837         builtins if it is true.
6838         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
6839         parameter.
6840
6841 2010-09-22  Martin Jambor  <mjambor@suse.cz>
6842
6843         * tree-sra.c (struct access): New field grp_no_warning.
6844         (create_access_replacement): Set TREE_NO_WARNING according to
6845          grp_no_warning.
6846         (create_artificial_child_access): Use build_ref_for_model and set
6847         grp_no_warning if build_user_friendly_ref_for_offset fails.
6848         (propagate_subaccesses_across_link): Likewise.
6849
6850 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
6851
6852         PR target/35664
6853         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
6854         ('f'): Likewise.
6855
6856 2010-09-22  Tristan Gingold  <gingold@adacore.com>
6857
6858         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
6859
6860 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
6861
6862         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
6863         * config/i386/i386.c (decide_alg): Update for rename.
6864
6865 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
6866
6867         PR rtl-optimization/45739
6868         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
6869         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
6870
6871 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
6872
6873         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
6874         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
6875         Remove.
6876         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
6877         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6878
6879 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6880
6881         PR objc/23710
6882         * c-parser.c (c_parser_objc_method_definition): Check the return
6883         value of objc_start_method_definition and if false is returned,
6884         parse the method definition but emit no code.
6885
6886 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
6887
6888         PR objc/25965
6889         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
6890         call objc_get_interface_ivars ().
6891
6892 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
6893
6894         PR target/45694
6895         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
6896         static chain-register is used for 64-bit.
6897
6898 2010-09-21  Richard Guenther  <rguenther@suse.de>
6899
6900         * dwarf2out.c (is_cu_die): New function.
6901         (add_pubtype): Use it.
6902         (gen_subprogram_die): Likewise.
6903         (gen_struct_or_union_type_die): Likewise.
6904         (dwarf2out_finish): Likewise.
6905         (comp_unit_die): Rename to ...
6906         (single_comp_unit_die): ... this.
6907         (comp_unit_die): New function lazily constructing and
6908         returning single_comp_unit_die.
6909         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
6910         base_type_die, subrange_type_die, modified_type_die,
6911         lower_bound_default, add_bound_info, add_prototyped_attribute,
6912         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
6913         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
6914         force_decl_die, gen_namespace_die, dwarf2out_decl,
6915         dwarf2out_start_source_file, dwarf2out_end_source_file,
6916         prune_unused_types, dwarf2out_finish): Use it.
6917         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
6918         the global list of translation-unit decls.
6919         (dwarf2out_init): Do not create single_comp_unit_die here.
6920         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
6921
6922 2010-09-21  Richard Guenther  <rguenther@suse.de>
6923
6924         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
6925         for bool for C++.
6926
6927 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
6928
6929         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
6930         (qhs_extenddi_cstr): Likewise.
6931         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
6932         them for the source operand.
6933
6934 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
6935
6936         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
6937         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
6938         (ix86_split_ashr): Ditto.
6939         (ix86_split_lshr): Ditto.
6940
6941 2010-09-21  Richard Guenther  <rguenther@suse.de>
6942
6943         PR tree-optimization/45580
6944         * tree-ssa-propagate.c (substitute_and_fold): Always replace
6945         regular uses.
6946         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
6947         virtuals fold the call into a regular indirect one.
6948
6949 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
6950
6951         PR rtl-optimization/42775
6952         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
6953         scheduling is enabled.
6954
6955 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
6956
6957         PR rtl-optimization/45728
6958         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
6959         gen_lowpart_common first and if that fails, force_reg first
6960         before calling gen_lowpart.
6961
6962         PR middle-end/45678
6963         * cfgexpand.c (expand_one_stack_var_at): Use
6964         crtl->max_used_stack_slot_alignment as max_align, instead
6965         of maximum of that and PREFERRED_STACK_BOUNDARY.
6966         Don't call update_stack_alignment.
6967
6968 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
6969
6970         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
6971         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
6972         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
6973         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
6974         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
6975         (build_nonstandard_integer_type): Likewise.
6976         (build_range_type_1): New function, built from...
6977         (build_range_type): ...this.  Call build_range_type_1.
6978         (build_nonshared_range_type): New function.
6979         (build_array_type_1): New function, built from...
6980         (build_array_type: ...this.  Call build_array_type_1.
6981         (build_nonshared_array_type): New function.
6982         * tree.h (build_nonshared_range_type): Declare.
6983         (build_nonshared_array_type): Likewise.
6984
6985 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
6986
6987         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
6988         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6989         (arm_class_likely_spilled_p): New function.
6990
6991 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
6992
6993         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
6994         indirect functions.
6995         (ix86_split_ashl): Ditto.
6996         (ix86_split_ashr): Ditto.
6997         (ix86_split_lshr): Ditto.
6998         (ix86_adjust_counter): Ditto.
6999
7000 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
7001
7002         * c-family/c-common.h (constant_string_class): Documented with
7003         comment identical to the one already in c-common.c.
7004
7005 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
7006
7007         * dwarf2out.c (any_cfis_emitted): New static variable.
7008         (add_fde_cfi): Set it.
7009         (dwarf2out_frame_debug): Clear it before processing,
7010         if it is set afterwards, flush any queued reg saves.
7011
7012         PR debug/45124
7013         * dwarf2out.c (add_accessibility_attribute): Assume
7014         DW_ACCESS_private as the default for dwarf_version > 2
7015         and DW_TAG_class_type parent.
7016         (gen_inheritance_die): Assume DW_ACCESS_public as the default
7017         for dwarf_version > 2 and parent other than DW_TAG_class_type.
7018
7019 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
7020
7021         PR target/45726
7022         * arm.md (arm_movt): Only enable on machines with MOVT.
7023
7024 2010-09-20  Jie Zhang  <jie@codesourcery.com>
7025
7026         * config/arm/arm.c (arm_address_offset_is_imm): New.
7027         (arm_early_store_addr_dep): New.
7028         (arm_early_load_addr_dep): New.
7029         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
7030         (arm_early_load_addr_dep): Declare.
7031         (arm_address_offset_is_imm): Declare.
7032         * config/arm/cortex-m4.md: New file.
7033         * config/arm/cortex-m4-fpu.md: New file.
7034         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
7035         (attr generic_sched): Exclude cortexm4.
7036         (attr generic_vfp): Exclude cortexm4.
7037
7038 2010-09-20  Richard Guenther  <rguenther@suse.de>
7039
7040         PR middle-end/45704
7041         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
7042
7043 2010-09-20  Jan Hubicka  <jh@suse.cz>
7044
7045         PR tree-optimize/45605
7046         * cgraph.h (const_value_known_p): Declare.
7047         (varpool_decide_const_value_known): Remove.
7048         * tree-ssa-ccp.c (get_base_constructor): Use it.
7049         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
7050         * expr.c (string_constant): Likewise.
7051         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
7052         * ipa.c (ipa_discover_readonly_nonaddressable_var,
7053         function_and_variable_visibility): Likewise.
7054         * gimplify.c (gimplify_call_expr): Likewise.
7055         * gimple-fold.c (get_symbol_constant_value): Likewise.
7056         * varpool.c (varpool_decide_const_value_known): Replace by...
7057         (const_value_known_p): ... this one; handle other kinds of DECLs
7058         too and work for automatic vars.
7059         (varpool_finalize_decl): Use const_value_known_p.
7060
7061 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
7062
7063         PR target/45726
7064         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
7065
7066 2010-09-20  Richard Guenther  <rguenther@suse.de>
7067
7068         PR tree-optimization/45705
7069         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
7070
7071 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
7072
7073         PR rtl-optimization/45695
7074         * combine.c (try_combine): When splitting a two set pattern,
7075         make sure the pattern which will be put into i2 doesn't use REGs
7076         or MEMs set by insns in between i2 and i3.
7077
7078 2010-09-19  Jan Hubicka  <jh@suse.cz>
7079
7080         PR lto/44246
7081         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
7082         processing same node twice.
7083
7084 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
7085
7086         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
7087         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
7088         (bfin_class_likely_spilled_p): New function
7089
7090 2010-09-19  Ira Rosen  <irar@il.ibm.com>
7091
7092         PR tree-optimization/45714
7093         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
7094         created in vectorizable_call instead of the original statement in
7095         def stmt updates.
7096
7097 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
7098
7099         * config/i386/i386-protos.h (split_double_mode): New prototype.
7100         (split_di, split_ti): Remove prototypes.
7101         * config/i386/i386.c (split_double_mode): New function.
7102         (split_di, split_ti): Remove.
7103         (ix86_expand_branch): Use split_double_mode.
7104         (ix86_split_to_parts): Ditto.
7105         (ix86_split_ashl): Ditto.
7106         (ix86_split_ashr): Ditto.
7107         (ix86_split_lshr): Ditto.
7108         (ix86_force_to_memory): Ditto.
7109         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
7110
7111 2010-09-18  Jan Hubicka  <jh@suse.cz>
7112
7113         PR tree-optimization/45453
7114         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
7115         virtual functions are reachable.
7116         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
7117         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
7118         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
7119         when modifying function.
7120
7121 2010-09-18  Jan Hubicka  <jh@suse.cz>
7122
7123         PR tree-optimization/45605
7124         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
7125         * gimple-fold.c (static_object_in_other_unit_p): New function.
7126         (canonicalize_constructor_val): Use it.
7127         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
7128         returning NULL.
7129         (gimple_fold_obj_type_ref_known_binfo): Use
7130         static_object_in_other_unit_p.
7131
7132 2010-09-18  Richard Guenther  <rguenther@suse.de>
7133
7134         PR tree-optimization/45709
7135         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
7136         insertions until after all PHI nodes of the block are processed.
7137
7138 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
7139
7140         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
7141
7142 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
7143
7144         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
7145
7146 2010-09-18  Richard Guenther  <rguenther@suse.de>
7147
7148         PR tree-optimization/45709
7149         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
7150
7151 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
7152
7153         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
7154         (dot_deps_stmt): Same.
7155         * graphite-poly.c (dot_lst): Same.
7156         * graphite-scop-detection.c (dot_all_scops): Same.
7157         (dot_scop): Same.
7158
7159 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
7160
7161         Revert:
7162         2009-12-16  Ben Elliston  <bje@au.ibm.com>
7163
7164         * tree-data-ref.c (dot_rdg_1): Added back.
7165         (dot_rdg): Same.  Added "#if 0" around system call.
7166
7167 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7168             Richard Henderson  <rth@redhat.com>
7169
7170         * config/i386/i386.c (initial_ix86_tune_features): Add
7171         X86_TUNE_PAD_SHORT_FUNCTION.
7172         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
7173         (ix86_count_insn): New.
7174         (ix86_pad_short_function): Likewise.
7175         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
7176
7177         * config/i386/i386.h (ix86_tune_indices): Add
7178         X86_TUNE_PAD_SHORT_FUNCTION.
7179         (TARGET_PAD_SHORT_FUNCTION): New.
7180
7181         * config/i386/i386.md (UNSPEC_NOPS): New.
7182         (nops): Likewise.
7183
7184 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7185
7186         PR middle-end/45234
7187         * calls.c (expand_call): Make sure that all variable sized
7188         adjustments are multiple of preferred stack boundary after
7189         stack alignment.
7190
7191 2010-09-17  DJ Delorie  <dj@redhat.com>
7192
7193         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
7194         passed an invalid value, print an error instead of ICEing.
7195         (valid_psw_flag): New.
7196         (rx_expand_builtin): Call it for setpsw/clrpsw.
7197         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
7198
7199         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
7200         (bitclr_in_memory): Likewise.
7201         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
7202
7203 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
7204
7205         PR middle-end/45678
7206         * cfgexpand.c (update_stack_alignment): New.
7207         (get_decl_align_unit): Use it.
7208         (expand_one_stack_var_at): Call update_stack_alignment.
7209
7210 2010-09-17  Richard Guenther  <rguenther@suse.de>
7211
7212         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
7213         Properly copy the read string.
7214
7215 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
7216
7217         * doc/options.texi (Variable): Document.
7218         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
7219         generate target_flags declarations explicitly.  Don't define
7220         VarExists variables for the driver.
7221         * common.opt (target_flags): New Variable record.
7222         (flag_dump_unnumbered, flag_dump_unnumbered_links,
7223         flag_var_tracking, flag_var_tracking_assignments,
7224         flag_var_tracking_assignments_toggle): Don't mark variables with
7225         VarExists.
7226         * config/i386/i386.c (ix86_isa_flags): Don't define here.
7227         * config/i386/i386.opt (ix86_isa_flags): Define here.
7228         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
7229         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
7230         VarExists.
7231         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
7232         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
7233         Only define for generator programs.
7234         * rtlanal.c (target_flags): Remove.
7235         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
7236         flag_var_tracking_assignments_toggle): Remove.
7237
7238 2010-09-17  Michael Matz  <matz@suse.de>
7239
7240         PR tree-optimization/43432
7241         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
7242         Accept backwards consecutive accesses.
7243         (vect_create_data_ref_ptr): If step is negative generate
7244         decreasing IVs.
7245         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
7246         (perm_mask_for_reverse, reverse_vec_elements): New functions.
7247         (vectorizable_load): Handle loads with negative steps when easily
7248         possible.
7249
7250 2010-09-03  Jan Hubicka  <jh@suse.cz>
7251
7252         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
7253
7254 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
7255
7256         * config/v850/v850.c (v850_function_value_regno_p): Make static.
7257         Adjust comments. Declare.
7258         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
7259         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
7260
7261 2010-09-17  Richard Guenther  <rguenther@suse.de>
7262
7263         * common.opt (combine): Remove.
7264         * gcc.c (default_compilers): Remove specs testing combine.
7265         The C compilers no longer can combine.
7266         (option_map): Remove -combine.
7267         (display_help): Remove -combine.
7268         (driver_handle_option): Remove OPT_combine handling.
7269         (compile_input_file_p): Remove.
7270         (do_spec): Remove code concerning combine.
7271         (main): Likewise.
7272         * doc/invoke.texi: Remove traces of -combine.
7273         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
7274
7275 2010-09-17  Richard Guenther  <rguenther@suse.de>
7276
7277         PR middle-end/45678
7278         * builtins.c (fold_builtin_memory_op): Always properly adjust
7279         alignment of memory accesses.
7280
7281 2010-09-16  Jan Hubicka  <jh@suse.cz>
7282
7283         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
7284         processing clone.
7285
7286 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
7287
7288         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
7289
7290         * config/i386/i386.c (predict_jump): Add prototype.
7291         (flag_opts): Add -m8bit-idiv.
7292         (ix86_split_idivmod): New.
7293
7294         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
7295         Add 2 splitters for SI/DI mode divide.
7296         (divmod<mode>4_1): New pattern.
7297         (udivmod<mode>4_1): Likewise.
7298         (testdi_ccno_1): Likewise.
7299
7300         * config/i386/i386.opt (m8bit-idiv): New.
7301
7302         * doc/invoke.texi: Document -m8bit-idiv.
7303
7304 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
7305
7306         PR bootstrap/45680
7307         * config/i386/i386.c (min_insn_size): Moved out of the
7308         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
7309
7310 2010-09-16  Jan Hubicka  <jh@suse.cz>
7311
7312         * lto-cgraph.c (lto_output_node): Fix handling of clones.
7313         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
7314         unreachable clones with reachable clones.
7315         * tree-inline.c (copy_bb): Fix sanity checking when producing
7316         unreachable clone.
7317
7318 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
7319
7320         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
7321         (TARGET_MEMORY_MOVE_COST): Define.
7322         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
7323
7324 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
7325
7326         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
7327         maybe_tidy_empty_bb.
7328
7329         Revert:
7330         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
7331         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7332
7333 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
7334
7335         * target.def (target_option.optimization): New hook.
7336         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
7337         TARGET_OPTION_OPTIMIZATION hook.
7338         * doc/tm.texi: Regenerate.
7339         * hooks.c (hook_void_int_int): New.
7340         * hooks.h (hook_void_int_int): Declare.
7341         * opts.c: Don't include tm_p.h.
7342         (decode_options): Use targetm.target_option.optimization instead
7343         of OPTIMIZATION_OPTIONS.
7344         * system.h (OPTIMIZATION_OPTIONS): Poison.
7345         * config/arm/arm-protos.h (arm_optimization_options): Remove.
7346         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
7347         (arm_optimization_options): Rename to arm_option_optimization.
7348         Make static.
7349         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
7350         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
7351         (cris_option_optimization): New.
7352         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
7353         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
7354         (crx_option_optimization): New.
7355         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
7356         * config/frv/frv-protos.h (frv_optimization_options): Remove.
7357         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
7358         (frv_optimization_options): Rename to frv_option_optimization.
7359         Make static.
7360         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
7361         * config/h8300/h8300.c (h8300_option_optimization): New.
7362         (TARGET_OPTION_OPTIMIZATION): Define.
7363         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
7364         * config/i386/i386-protos.h (optimization_options): Remove.
7365         * config/i386/i386.c (optimization_options): Rename to
7366         ix86_option_optimization.  Make static.
7367         (TARGET_OPTION_OPTIMIZATION): Define.
7368         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
7369         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
7370         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
7371         (ia64_optimization_options): Rename to ia64_option_optimization.
7372         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
7373         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
7374         commented-out definition.
7375         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
7376         instead of OPTIMIZATION_OPTIONS.
7377         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
7378         (m32r_option_optimization): New.
7379         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
7380         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
7381         Remove.
7382         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
7383         (mcore_option_optimization): New.
7384         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
7385         * config/mep/mep-protos.h (mep_optimization_options): Remove.
7386         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
7387         (mep_optimization_options): Rename to mep_option_optimization.
7388         Make static.  Take unused level and size parameters.
7389         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
7390         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
7391         (mmix_option_optimization): New.
7392         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
7393         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
7394         (pdp11_option_optimization): New.
7395         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
7396         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
7397         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
7398         (optimization_options): Rename to rs6000_option_optimization.
7399         Make static.
7400         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
7401         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
7402         * config/rx/rx.c (rx_set_optimization_options): Rename to
7403         rx_option_optimization.  Make static.  Take unused level and size
7404         parameters.
7405         (TARGET_OPTION_OPTIMIZATION): Define.
7406         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
7407         * config/s390/s390-protos.h (optimization_options): Remove.
7408         * config/s390/s390.c (optimization_options): Rename to
7409         s390_option_optimization.  Make static.  Don't mark size parameter
7410         unused.
7411         (TARGET_OPTION_OPTIMIZATION): Define.
7412         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
7413         * config/sh/sh-protos.h (sh_optimization_options): Remove.
7414         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
7415         (sh_optimization_options): Rename to sh_option_optimization.  Make
7416         static.  Don't mark parameters unused.
7417         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
7418         * config/spu/spu-protos.h (spu_optimization_options): Remove.
7419         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
7420         (spu_optimization_options): Rename to spu_option_optimization.
7421         Make static.
7422         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
7423         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
7424         (v850_option_optimization): New.
7425         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
7426         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
7427         (xtensa_option_optimization): New.
7428         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
7429
7430 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
7431
7432         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
7433         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
7434         * doc/tm.texi: Regenerate.
7435         * system.h (OVERRIDE_OPTIONS): Poison.
7436         * target.def (override): Default to hook_void_void.
7437         * targhooks.c (default_target_option_override): Remove.
7438         * genmodes.c, machmode.def: Update comments mentioning
7439         OVERRIDE_OPTIONS.
7440         * config/alpha/alpha-modes.def: Update comment mentioning
7441         alpha_override_options.
7442         * config/alpha/alpha-protos.h (override_options): Remove.
7443         * config/alpha/alpha.c (override_options): Rename to
7444         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
7445         (TARGET_OPTION_OVERRIDE): Define.
7446         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
7447         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
7448         of OVERRIDE_OPTIONS.
7449         * config/arc/arc-protos.h (arc_init): Remove.
7450         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
7451         (arc_init): Rename to arc_option_override.  Make static.
7452         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
7453         (OVERRIDE_OPTIONS): Remove.
7454         * config/arm/arm-protos.h (arm_override_options): Remove.
7455         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
7456         (arm_override_options): Rename to arm_option_override.  Make
7457         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
7458         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
7459         * config/arm/arm.md: Update comment referring to arm_override_options.
7460         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7461         instead of OVERRIDE_OPTIONS.
7462         * config/avr/avr-protos.h (avr_override_options): Remove.
7463         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
7464         (avr_override_options): Rename to avr_option_override.  Make static.
7465         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
7466         * config/bfin/bfin-protos.h (override_options): Remove (twice).
7467         * config/bfin/bfin.c (override_options): Rename to
7468         bfin_option_override.  Make static.
7469         (TARGET_OPTION_OVERRIDE): Define.
7470         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
7471         * config/cris/cris-protos.h (cris_override_options): Remove.
7472         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
7473         (cris_override_options): Rename to cris_option_override.  Make static.
7474         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
7475         * config/frv/frv-protos.h (frv_override_options): Remove.
7476         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
7477         (frv_override_options): Rename to frv_option_override.  Make static.
7478         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
7479         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
7480         * config/h8300/h8300.c (h8300_init_once): Rename to
7481         h8300_option_override.  Make static.
7482         (TARGET_OPTION_OVERRIDE): Define.
7483         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
7484         * config/i386/i386-protos.h (override_options): Remove.
7485         * config/i386/i386.c (override_options): Rename to
7486         ix86_option_override_internal.  Make static.  Comments referring
7487         to this function and callers changed.
7488         (ix86_option_override): New.
7489         (TARGET_OPTION_OVERRIDE): Define.
7490         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
7491         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
7492         * config/ia64/ia64.c (ia64_file_start): Update comment referring
7493         to ia64_override_options.
7494         * config/iq2000/iq2000-protos.h (override_options): Remove.
7495         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
7496         (override_options): Rename to iq2000_option_override.  Make static.
7497         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
7498         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
7499         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
7500         (lm32_override_options): Rename to lm32_option_override.  Make static.
7501         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
7502         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
7503         (m32r_option_override): New.
7504         (m32r_init): Update comment.
7505         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
7506         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
7507         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
7508         (m68hc11_override_options): Rename to m68hc11_option_override.
7509         Make static.  Return void.
7510         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
7511         * config/m68k/m68k-protos.h (override_options): Remove.
7512         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
7513         (override_options): Rename to m68k_option_override.  Make static.
7514         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
7515         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
7516         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
7517         (mcore_override_options): Rename to mcore_option_override.  Make
7518         static.
7519         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
7520         * config/mep/mep-protos.h (mep_override_options): Remove.
7521         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
7522         (mep_override_options): Rename to mep_option_override.  Make static.
7523         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
7524         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
7525         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
7526         (mmix_override_options): Rename to mmix_option_override.  Make static.
7527         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
7528         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
7529         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
7530         (mn10300_override_options): Rename to mn10300_option_override.
7531         Make static.
7532         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
7533         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
7534         * config/moxie/moxie.c (moxie_override_options): Rename to
7535         moxie_option_override.  Make static.
7536         (TARGET_OPTION_OVERRIDE): Define.
7537         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
7538         * config/picochip/picochip-protos.h (picochip_override_options):
7539         Remove.  Update comment referring to picochip_override_options.
7540         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
7541         (picochip_override_options): Rename to picochip_option_override.
7542         Make static.  Update comment and definition of
7543         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
7544         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
7545         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7546         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7547         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7548         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7549         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7550         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
7551         instead of OVERRIDE_OPTIONS.
7552         * config/rs6000/rs6000-modes.def: Update comment referring to
7553         rs6000_override_options.
7554         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
7555         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
7556         (rs6000_override_options): Rename to
7557         rs6000_option_override_internal.  Make static.  Commented
7558         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
7559         (rs6000_option_override): New.
7560         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
7561         instead of OVERRIDE_OPTIONS.
7562         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7563         * config/s390/s390-protos.h (override_options): Remove.
7564         * config/s390/s390.c (override_options): Rename to
7565         s390_option_override.  Make static.
7566         (TARGET_OPTION_OVERRIDE): Define.
7567         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
7568         * config/score/score-protos.h (score_override_options): Remove.
7569         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
7570         (score_override_options): Rename to score_option_override.  Make
7571         static.
7572         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
7573         Update comment referring to override_options.
7574         * config/score/score3.c (score3_override_options): Rename to
7575         score3_option_override.
7576         * config/score/score3.h (score3_override_options): Rename to
7577         score3_option_override.
7578         * config/score/score7.c (score7_override_options): Rename to
7579         score7_option_override.
7580         * config/score/score7.h (score7_override_options): Rename to
7581         score7_option_override.
7582         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
7583         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
7584         (sparc_override_options): Rename to sparc_option_override.  Make
7585         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
7586         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
7587         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7588         instead of OVERRIDE_OPTIONS.
7589         * config/spu/spu-protos.h (spu_override_options): Remove.
7590         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
7591         (spu_override_options): Rename to spu_option_override.  Make
7592         static.
7593         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
7594         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
7595         OVERRIDE_OPTIONS.
7596         * config/vax/vax-protos.h (override_options): Remove.
7597         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
7598         (override_options): Rename to vax_option_override.  Make static.
7599         Call SUBTARGET_OVERRIDE_OPTIONS.
7600         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
7601         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
7602         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
7603         * config/xtensa/xtensa-protos.h (override_options): Remove.
7604         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
7605         (override_options): Rename to xtensa_option_override.  Make static.
7606         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
7607
7608 2010-09-16  Richard Guenther  <rguenther@suse.de>
7609
7610         PR tree-optimization/45623
7611         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
7612         (get_constraint_for_component_ref): If computing a constraint
7613         for the rhs handle type punning through unions.
7614         (get_constraint_for_address_of): Adjust.
7615         (get_constraint_for_1): Likewise.
7616         (get_constraint_for): Likewise.
7617         (get_constraint_for_rhs): New function.
7618         (do_structure_copy): Adjust.
7619         (make_constraint_to): Likewise.
7620         (handle_const_call): Likewise.
7621         (find_func_aliases): Likewise.
7622         (process_ipa_clobber): Likewise.
7623         (create_variable_info_for): Likewise.
7624
7625 2010-09-16  Ira Rosen  <irar@il.ibm.com>
7626
7627         * tree-vectorizer.c: Fix documentation.
7628         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
7629         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
7630         is_pattern_stmt_p, is_loop_header_bb_p,
7631         stmt_vinfo_set_inside_of_loop_cost,
7632         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
7633         known_alignment_for_access_p): Likewise.
7634         * tree-vect-loop.c: Fix documentation.
7635         (vect_get_cost): Start function name from new line.
7636         * tree-vect-data-refs.c: Fix documentation.
7637         * tree-vect_stmts.c: Likewise.
7638         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
7639         (vectorizable_store): Free vec_oprnds if allocated.
7640         (vectorizable_condition): Initialize several variables to avoid
7641         warnings.
7642         * tree-vect-slp.c: Fix documentation.
7643
7644 2010-09-16  Richard Guenther  <rguenther@suse.de>
7645
7646         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
7647         is TS_TRANSLATION_UNIT_DECL.
7648         (initialize_tree_contains_struct): Adjust.
7649         (all_translation_units): New global vector.
7650         (build_translation_unit_decl): New function.
7651         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
7652         (struct tree_translation_unit_decl): New.
7653         (all_translation_units): Declare.
7654         (union tree_node): Add translation_unit_decl member.
7655         (build_translation_unit_decl): Declare.
7656         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
7657         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
7658         New function.
7659         (pack_value_fields): Call it.
7660         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
7661         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
7662         (lto_output_tree_pointers): Call it.
7663         * lto-streamer-in.c (lto_input_tree_ref): Handle references
7664         to TRANSLATION_UNIT_DECL.
7665         (unpack_ts_translation_unit_decl_value_fields): New function.
7666         (unpack_value_fields): Call it.
7667         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
7668         (lto_input_tree_pointers): Call it.
7669         * lto-streamer.c (check_handled_ts_structures): Adjust.
7670         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
7671         * c-decl.c (all_translation_units): Remove.
7672         (pop_scope): Use build_translation_unit_decl.
7673         (collect_all_refs): Adjust.
7674         (for_each_global_decl): Likewise.
7675         (c_write_global_declarations): Likewise.
7676
7677 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
7678
7679         PR bootstrap/45686
7680         * fold-const.c (fold_checksum_tree): Change slot from const void **
7681         to void **, use CONST_CAST_TREE to store into *slot.
7682
7683 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
7684
7685         * config/i386/i386.md: Remove unneeded empty conditions and
7686         preparation statements from expanders.
7687         * config/i386/mmx.md: Ditto.
7688         * config/i386/sse.md: Ditto.
7689
7690 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
7691
7692         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
7693
7694 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7695
7696         PR rtl-optimization/45593
7697         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
7698         insns that were in delay slots as stand-alone insns.
7699
7700 2010-09-15  Ian Lance Taylor  <iant@google.com>
7701
7702         * incpath.c (remove_duplicates): If name is not a directory, issue
7703         a warning rather than an error.
7704
7705 2010-09-15  Martin Jambor  <mjambor@suse.cz>
7706
7707         PR middle-end/45644
7708         * tree-sra.c (create_access): Check for bit-fields directly.
7709
7710 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
7711
7712         PR tree-optimization/45633
7713         * tree-cfg.c (verify_gimple_assign_binary): Allow
7714         MINUS_EXPR with lhs and rhs1 pointer vector and
7715         rhs2 sizetype vector.
7716         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
7717         or vector pointer use TER to optimize pointer subtraction.
7718
7719 2010-09-15  Jie Zhang  <jie@codesourcery.com>
7720
7721         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
7722         fcmpd to fcmps.
7723
7724 2010-09-15  Ian Lance Taylor  <iant@google.com>
7725
7726         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
7727
7728 2010-09-15  Ian Lance Taylor  <iant@google.com>
7729
7730         * function.c (get_arg_pointer_save_area): Set
7731         arg_pointer_save_area_init to true.
7732
7733 2010-09-15  Martin Jambor  <mjambor@suse.cz>
7734
7735         * tree-sra.c (generate_subtree_copies): Updated comment.
7736         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
7737         obtained from the statement iterator instead.
7738         (load_assign_lhs_subreplacements): Removed parameters lhs and
7739         right_offset, which is obtained from top_racc instead.  Parameter lacc
7740         is now expected to be the root of the processed tree rather than root's
7741         first child.  Updated all callers.
7742
7743 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
7744
7745         * config/pdp11/pdp11.c (register_move_cost): Rename to
7746         pdp11_register_move_cost.
7747         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
7748         pdp11_register_move_cost.
7749         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
7750         pdp11_register_move_cost instead of register_move_cost.
7751
7752 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
7753
7754         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
7755         pattern for vmovn. Expansion in case of non
7756         -mvectorize-with-neon-quad.
7757         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
7758         non- -mvectorize-with-neon-quad case.
7759         (move_lo_quad_<mode>): New expansion to vmov into low part.
7760         (move_hi_quad_<mode>): New expansion to vmov into high part.
7761         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
7762         (move_lo_quad_v4sf): Likewise.
7763         (move_lo_quad_v8hi): Likewise.
7764         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
7765         low part.
7766         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
7767         high part.
7768         * config/arm/iterators.md (ANY128): New mode iterator.
7769         (V_narrow_pack): New mode attribute.
7770         (V_HALF): Add attribute.
7771         (V_DOUBLE): Add attribute.
7772         (V_mode_nunits): Add attribute.
7773
7774 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
7775
7776         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
7777         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
7778
7779 2010-09-15  Olivier Hainque  <hainque@adacore.com>
7780             Jose Ruiz  <ruiz@adacore.com>
7781
7782         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
7783         * config/alpha/osf5-unwind.h: New file.
7784
7785 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7786
7787         PR bootstrap/45672
7788         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
7789         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7790         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7791
7792 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7793
7794         * c-lang.h (struct lang_type): Add variable_size GTY option.
7795
7796 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7797
7798         PR bootstrap/45672
7799         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7800
7801 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7802
7803         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
7804         result isn't used in memory address.
7805
7806 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7807
7808         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
7809         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
7810         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7811         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7812         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7813         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7814
7815         * target.def: Add units_per_simd_word to vectorize.
7816
7817         * targhooks.c (default_units_per_simd_word): New.
7818         * targhooks.h (default_units_per_simd_word): Likewise.
7819         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
7820         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7821         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
7822         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7823         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7824         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7825         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7826         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7827
7828         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
7829         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
7830
7831         * tree-vect-stmts.c: Don't include "tm_p.h".
7832         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
7833         with targetm.vectorize.units_per_simd_word.
7834
7835         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
7836
7837         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
7838
7839         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
7840         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7841
7842         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
7843         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
7844
7845         * doc/tm.texi: Regenerated.
7846
7847 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7848
7849         * tree-vect-stmts.c: Include "tm_p.h".
7850
7851         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
7852         out of RTX_CODE.
7853
7854 2010-09-14  Martin Jambor  <mjambor@suse.cz>
7855
7856         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
7857         location of generated statement.  Changed all callers.
7858         (build_ref_for_model): New parameter loc which used to set location of
7859         all generated expressions.  Changed all callers.
7860         (generate_subtree_copies): Likewise.
7861         (init_subtree_with_zero): Likewise.
7862         (sra_modify_expr): Set locations of all generated statements and
7863         expressions to the location the original statement.
7864         (handle_unscalarized_data_in_subtree): Likewise.
7865         (load_assign_lhs_subreplacements): Likewise.
7866         (sra_modify_constructor_assign): Likewise.
7867         (sra_modify_assign): Likewise.
7868
7869 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
7870
7871         PR target/45277
7872         PR target/45363
7873         PR target/45407
7874         * doc/install.texi (sparc*-*-*): New section.
7875         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
7876
7877 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
7878
7879         PR middle-end/45567
7880         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
7881         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
7882         (expand_builtin): Adjust caller.
7883         (expand_builtin_unop): Only use subtarget if it has the right mode.
7884
7885 2010-09-14  Tristan Gingold  <gingold@adacore.com>
7886
7887         * configure.ac (plugins): Fix typos.
7888         * configure: Regenerate.
7889
7890 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
7891
7892         PR debug/45660
7893         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
7894         gen_type_die for function/method return type.
7895
7896 2010-09-14  Ira Rosen  <irar@il.ibm.com>
7897
7898         PR tree-optimization/45470
7899         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7900         can throw an exception.
7901         * tree-vect-stmts.c (vectorizable_call): Likewise.
7902
7903 2010-09-14  DJ Delorie  <dj@redhat.com>
7904
7905         PR target/44749
7906         * config/mep/mep-protos.h (mep_save_register_info,
7907         mep_reinit_regs, mep_init_regs): Declare.
7908
7909         * config/mep/mep.c: Move all target definitions to the end of the
7910         file to avoid the need for duplicate declarations.
7911         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
7912         (mep_reorg_erepeat): Remove unused variables.
7913         (mep_expand_builtin): Likewise.
7914
7915         * config/mep/mep-pragma.c: Don't include rtl.h.
7916         (INVALID_REGNUM): New.
7917         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
7918         functions.
7919         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
7920         Avoid enum/integer math.
7921
7922 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
7923
7924         PR target/44749
7925         * config/mep/t-mep (GTM_H): Add insn-constants.h.
7926         * config/mep/mep.c (mep_conditional_register_usage): Take no
7927         parameters.
7928         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
7929         prototype.
7930         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
7931         call to mep_conditional_register_usage.
7932
7933 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
7934
7935         PR debug/43937
7936         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
7937         the DECL as well.
7938
7939 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
7940
7941         PR rtl-optimization/45617
7942         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
7943         even if low N bits of X aren't known to be zero.
7944
7945 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7946
7947         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
7948
7949         * config/i386/i386.c (initial_ix86_tune_features): Add
7950         X86_TUNE_VECTORIZE_DOUBLE.
7951         (ix86_units_per_simd_word): New.
7952
7953         * config/i386/i386.h (ix86_tune_indices): Add
7954         X86_TUNE_VECTORIZE_DOUBLE.
7955         (TARGET_VECTORIZE_DOUBLE): New.
7956         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
7957
7958 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
7959
7960         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
7961         (new_temp_expr_table): Allocate call_cnt vector.
7962         (free_temp_expr_table): Free it.
7963         (process_replaceable): Add call_cnt parm and set in vector.
7964         (find_replaceable_in_bb): Skip replacement if def/use span a call.
7965         (debug_ter): Dump call_cnt value, remove stderr uses.
7966
7967 2010-09-13  Jan Hubicka  <jh@suse.cz>
7968
7969         * tree.c (build_zero_cst): New.
7970         * tree.h (build_zero_cst): Declare.
7971         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
7972         (get_base_constructor): Break out from ...
7973         (fold_const_aggregate_ref): Here; handle empty constructors.
7974
7975 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7976
7977         * config/arm/arm.md: (define_attr "conds"): Update comment.
7978         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
7979         conds attribute to clob.
7980         (arm_sync_compare_and_swapsi): Likewise.
7981         (arm_sync_compare_and_swap<mode>): Likewise.
7982         (arm_sync_lock_test_and_setsi): Likewise.
7983         (arm_sync_lock_test_and_set<mode>): Likewise.
7984         (arm_sync_new_<sync_optab>si): Likewise.
7985         (arm_sync_new_nandsi): Likewise.
7986         (arm_sync_new_<sync_optab><mode>): Likewise.
7987         (arm_sync_new_nand<mode>): Likewise.
7988         (arm_sync_old_<sync_optab>si): Likewise.
7989         (arm_sync_old_nandsi): Likewise.
7990         (arm_sync_old_<sync_optab><mode>): Likewise.
7991         (arm_sync_old_nand<mode>): Likewise.
7992
7993 2010-09-13  Olivier Hainque  <hainque@adacore.com>
7994
7995         * fwprop.c (forward_propagate_and_simplify): Only attach a
7996         REG_EQUAL note to an insn if the destination is a register.
7997         * gcse.c (try_replace_reg): Likewise.
7998
7999 2010-09-13  Richard Guenther  <rguenther@suse.de>
8000
8001         PR tree-optimization/45611
8002         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
8003         (copy_ref_info): Likewise.
8004
8005 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
8006
8007         PR debug/45604
8008         PR debug/45419
8009         PR debug/45408
8010         * tree-pretty-print.c (dump_generic_node): Disregard top-level
8011         types of MEM_REF pointer types to the same type.
8012
8013 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
8014
8015         PR rtl-optimization/41087
8016         * ifcvt.c (noce_get_condition): Don't allow conditions with
8017         side-effects.
8018
8019 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
8020
8021         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8022         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
8023         * config/frv/frv.c (frv_register_move_cost): Make static. Change
8024         arguments type to reg_class_t. Add mode argument.
8025         (frv_memory_move_cost): New.
8026         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
8027
8028 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
8029
8030         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
8031         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
8032
8033 2010-09-10  Jan Hubicka  <jh@suse.cz>
8034
8035         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
8036
8037 2010-09-10  Richard Guenther  <rguenther@suse.de>
8038
8039         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
8040         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
8041         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
8042         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
8043         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
8044
8045 2010-09-10  Richard Guenther  <rguenther@suse.de>
8046
8047         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
8048         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
8049         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
8050         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
8051
8052 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
8053
8054         PR middle-end/45634
8055         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
8056         of string folding is of integral type.
8057
8058 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
8059
8060         * doc/invoke.texi (-x): Fix typo.
8061
8062 2010-09-10  Richard Guenther  <rguenther@suse.de>
8063
8064         PR debug/44115
8065         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
8066         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
8067         Output DECL_DEBUG_EXPR.
8068         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
8069         Input DECL_DEBUG_EXPR.
8070
8071 2010-09-10  Richard Guenther  <rguenther@suse.de>
8072
8073         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
8074         (build_index_type): Implement in terms of build_range_type.
8075         (build_range_type): Do not allow NULL_TREE type, improve
8076         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
8077         if we didn't hash.
8078         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
8079         create a distinct copy of the type.
8080
8081 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
8082
8083         * configure: Regenerated.
8084         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
8085
8086 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8087
8088         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
8089         * config/arm/cortex-a9-neon.md: New and partially generated.
8090         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
8091
8092 2010-09-10  Richard Guenther  <rguenther@suse.de>
8093
8094         * tree.h (build_index_2_type): Remove.
8095         * tree.c (build_index_2_type): Remove.
8096
8097 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
8098
8099         PR bootstrap/45630
8100         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
8101         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
8102         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
8103
8104 2010-09-10  Martin Jambor  <mjambor@suse.cz>
8105
8106         PR tree-optimization/44972
8107         * tree-sra.c: Include toplev.h.
8108         (build_ref_for_offset): Entirely reimplemented.
8109         (build_ref_for_model): New function.
8110         (build_user_friendly_ref_for_offset): New function.
8111         (analyze_access_subtree): Removed build_ref_for_offset check.
8112         (propagate_subaccesses_across_link): Likewise.
8113         (create_artificial_child_access): Use
8114         build_user_friendly_ref_for_offset.
8115         (propagate_subaccesses_across_link): Likewise.
8116         (ref_expr_for_all_replacements_p): Removed.
8117         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
8118         (sra_modify_expr): Use build_ref_for_model.
8119         (load_assign_lhs_subreplacements): Likewise.
8120         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
8121         checks for return values of build_ref_for_offset.
8122         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
8123         build_ref_for_offset.
8124         * ipa-prop.h: Include gimple.h
8125         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
8126         (ipa_analyze_indirect_call_uses): Update comment.
8127         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
8128         (IPA_PROP_H): Likewise.
8129
8130 2010-09-10  Martin Jambor  <mjambor@suse.cz>
8131
8132         PR tree-optimization/44972
8133         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
8134         calling build_ref_for_offset.
8135
8136 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8137
8138         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
8139         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
8140         * config/arm/arm-tune.md: Regenerate.
8141         * doc/invoke.texi (ARM Options): Document it.
8142
8143 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
8144
8145         * config/i386/i386.c: Include sched-int.h.
8146         (TARGET_SCHED_DISPATCH): Defined.
8147         (TARGET_SCHED_DISPATCH_DO): Defined.
8148         (DISPATCH_WINDOW_SIZE): Defined.
8149         (MAX_DISPATCH_WINDOWS): Defined.
8150         (MAX_INSN): Defined.
8151         (MAX_IMM): Defined.
8152         (MAX_IMM_SIZE): Defined.
8153         (MAX_IMM_32): Defined.
8154         (MAX_IMM_64): Defined.
8155         (MAX_LOAD): Defined.
8156         (MAX_STORE): Defined.
8157         (BIG): Defined.
8158         (dispatch_group): New.
8159         (num_allowable_groups): New.
8160         (group_name): New.
8161         (sched_insn_info_s): New.
8162         (dispatch_windows_s): New.
8163         (imm_info_s): New.
8164         (dispatch_window_list): New.
8165         (dispatch_window_list1): New.
8166         (get_mem_group): New.
8167         (is_cmp): New.
8168         (dispatch_violation): New.
8169         (is_branch): New.
8170         (is_prefetch): New.
8171         (init_window): New.
8172         (allocate_window): New.
8173         (init_dispatch_sched): New.
8174         (is_end_basic_block): New.
8175         (process_end_window): New.
8176         (allocate_next_window): New.
8177         (find_constant_1): New.
8178         (find_constant): New.
8179         (get_num_immediates): New.
8180         (has_immediate): New.
8181         (get_insn_path): New.
8182         (get_insn_group): New.
8183         (count_num_restricted): New.
8184         (fits_dispatch_window): New.
8185         (add_insn_window): New.
8186         (add_to_dispatch_window): New.
8187         (debug_dispatch_window_file): New.
8188         (debug_dispatch_window): New.
8189         (debug_insn_dispatch_info_file): New.
8190         (debug_ready_dispatch): New.
8191         (do_dispatch): New.
8192         (has_dispatch): New.
8193         * config/i386/i386.h (debug_ready_dispatch): Declared.
8194         (debug_dispatch_window): Declared.
8195         * config/i386/i386.opt (mdispatch-scheduler): New flag.
8196         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
8197         (TARGET_SCHED_DISPATCH_DO): New.
8198         * doc/tm.texi: Regererated.
8199         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
8200         ready_remove_first_dispatch
8201         (schedule_block): Call targetm.sched.dispatch and
8202         targetm.sched.dispatch_do.
8203         (sched_init): Call targetm.sched.dispatch and
8204         targetm.sched.dispatch_do.
8205         (ready_remove_first_dispatch): New.
8206         (number_in_ready): New.
8207         (get_ready_element): New.
8208         * hooks.c (hook_bool_rtx_int_false): New.
8209         (hook_void_rtx_int): New.
8210         * hooks.h (hook_bool_rtx_int_false): Declared.
8211         (hook_void_rtx_int): Declared.
8212         * sched-int.h (IS_DISPATCH_ON): Defined.
8213         (IS_CMP): Defined.
8214         (DISPATCH_VIOLATION): Defined.
8215         (FITS_DISPATCH_WINDOW): Defined.
8216         (DISPATCH_INIT): Defined.
8217         (ADD_TO_DISPATCH_WINDOW): Defined.
8218         (get_ready_element): Declared.
8219         (number_in_ready): Declared.
8220         * target.def (dispatch): Defined.
8221         (dispatch_do): Defined.
8222
8223 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8224
8225         PR middle-end/45312
8226         * reload1.c (merge_assigned_reloads): Remove.
8227         (reload_as_needed): Don't call it.
8228
8229 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
8230
8231         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
8232         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8233         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8234
8235 2010-09-09  Matthias Klose  <doko@ubuntu.com>
8236
8237         PR bootstrap/43847
8238         * configure.ac (--enable-plugin): Enhance for cross builds.
8239         * configure: Regenerate.
8240
8241 2010-09-09  Jan Hubicka  <jh@suse.cz>
8242
8243         PR tree-optimization/45598
8244         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
8245         string folding is of integral type.
8246
8247 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
8248
8249         * configure.ac (gnu_indirect_function): New test.
8250         * configure: Rebuilt.
8251         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
8252         * defaults.h (IFUNC_ASM_TYPE): Provide default.
8253
8254         * doc/extend.texi (Function Attributes): Document ifunc.
8255         * varasm.c (do_assemble_alias): Deal with ifuncs too.
8256
8257 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
8258
8259         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
8260         epilogue instruction move.
8261
8262 2010-09-09  Jan Hubicka  <jh@suse.cz>
8263
8264         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
8265         command line to allow more partitions than input files.
8266
8267 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8268
8269         PR middle-end/44554
8270         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
8271
8272 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
8273
8274         PR middle-end/40386
8275         * ira.c (pseudo_for_reload_consideration_p): Don't use
8276         flag_ira_share_spill_slots.
8277
8278 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8279
8280         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
8281         point zero operands that fit into a single GPR.
8282         (s390_preferred_reload_class): Ensure we only return general-purpose
8283         register classes.
8284         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
8285         floating-point zero operands into GPRs.
8286         ("*mov<mode>_64"): Likewise.
8287         ("mov<mode>"): Likewise using lhi.
8288
8289 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8290
8291         * config/s390/s390.c (s390_symref_operand_p): Return false for
8292         literal pool references.
8293         (s390_check_qrst_address): Update caller.
8294
8295 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
8296
8297         * config/i386/predicates.md (ext_register_operand): Check that
8298         SUBREG_REG is really a register before looking for REGNO.
8299         (reg_not_xmm0_operand): Handle SUBREGs correctly.
8300         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
8301
8302 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
8303
8304         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
8305         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
8306         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
8307         * print-rtl.c (print_rtx): Likewise.
8308         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8309         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
8310         for ADDR_EXPR with non-addressable object.
8311         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
8312         (struct dw_val_struct): Add v.val_decl_ref.
8313         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
8314         Handle DW_OP_GNU_implicit_pointer.
8315         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
8316         (get_ref_die_offset_label): New function.
8317         (implicit_ptr_descriptor): New function.
8318         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
8319         (loc_descriptor): Likewise.
8320         (gen_variable_die): Put even definitions into decl_die_table.
8321         (resolve_addr_in_expr): Resolve still unresolved
8322         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
8323         return false.
8324         (dwarf2out_finish): Call output_location_lists after outputting
8325         .debug_info and .debug_abbrev instead of before.
8326
8327 2010-09-09  Roland McGrath  <roland@redhat.com>
8328
8329         * dwarf2out.c (DWARF_REF_SIZE): Define.
8330         (size_of_loc_descr): Use it for DW_OP_call_ref.
8331
8332 2010-09-09  Alan Modra  <amodra@gmail.com>
8333
8334         * doc/invoke.text: Reinstate mcmodel=medium.
8335         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8336         CMODEL_MEDIUM as default.
8337         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
8338         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
8339         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
8340         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
8341
8342 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8343
8344         PR target/45250
8345         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
8346         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
8347         (builtin_longjmp): Likewise.
8348         (allocate_stack): Use hard_frame_pointer_rtx instead of
8349         frame_pointer_rtx.
8350         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
8351         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
8352         (pa_can_eliminate): Likewise.
8353         (TARGET_INTERNAL_ARG_POINTER): Define.
8354         (TARGET_CAN_ELIMINATE): Define.
8355         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
8356         pointer.
8357         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
8358         (pa_internal_arg_pointer, pa_can_eliminate,
8359         pa_initial_elimination_offset): New.
8360         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
8361         (HARD_FRAME_POINTER_REGNUM): Set to register three.
8362         (INITIAL_FRAME_POINTER_OFFSET): Delete.
8363         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
8364         Define.
8365         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
8366         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
8367         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
8368         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
8369         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
8370         new soft frame pointer.
8371         * config/pa/pa64-regs.h: Likewise.
8372
8373 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
8374
8375         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
8376         numerical constant.
8377         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
8378
8379 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
8380
8381         PR debug/45531
8382         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
8383
8384 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
8385
8386         PR debug/45419
8387         PR debug/45408
8388         * tree-pretty-print.c (dump_generic_node): Disregard top-level
8389         qualifiers in otherwise equal MEM_REF pointer types.
8390         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
8391         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
8392
8393 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8394
8395         PR target/44392
8396         * config/arm/arm.md (bswapsi2): Handle condition correctly
8397         for armv6 and optimize_size.
8398
8399 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8400
8401         PR other/18555
8402         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
8403
8404 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
8405
8406         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
8407         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
8408         ix86_expand_strlen, legitimate_pic_address_disp_p,
8409         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
8410         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
8411         ix86_check_movabs, ix86_secondary_memory_needed): Change function
8412         prototype to bool.
8413         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
8414         return_in_memory_ms_64, ix86_check_movabs,
8415         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
8416         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
8417         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
8418         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
8419         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
8420         ix86_secondary_memory_needed): Change to bool.  Return
8421         "true" and "false" values.
8422         * config/i386/i386.md: Return "true" and "false" values.
8423
8424 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8425
8426         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8427         run_expensive_tests.
8428
8429 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8430
8431         * toplev.c (output_stack_usage): Use lbasename instead of basename.
8432
8433 2010-09-08  Martin Jambor  <mjambor@suse.cz>
8434
8435         PR other/45443
8436         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
8437         at -O3.
8438
8439 2010-09-08  Richard Guenther  <rguenther@suse.de>
8440
8441         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
8442         (visit): Adjust.
8443         (iterative_hash_gimple_type): Likewise.
8444         (gimple_type_hash): Likewise.
8445         (gimple_register_type): Likewise.
8446         (print_gimple_types_stats): Likewise.
8447         (free_gimple_type_tables): Likewise.
8448
8449 2010-09-08  Michael Matz  <matz@suse.de>
8450
8451         PR tree-optimization/43430
8452         * tree-vect-stmts.c (vectorizable_condition): Support multiple
8453         copies for conditional statements if it's not part of a reduction.
8454
8455 2010-09-08  Michael Matz  <matz@suse.de>
8456
8457         PR tree-optimization/33244
8458         * tree-ssa-sink.c (statement_sink_location): Don't sink into
8459         empty loop latches.
8460
8461 2010-09-08  Richard Guenther  <rguenther@suse.de>
8462
8463         PR tree-optimization/45578
8464         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
8465         Be more careful when transfering alignment information to
8466         the new induction variable.
8467         (copy_ref_info): Likewise.
8468
8469 2010-09-08  Richard Guenther  <rguenther@suse.de>
8470
8471         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
8472         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
8473
8474 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
8475
8476         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
8477         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
8478
8479 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
8480
8481         PR doc/45587
8482         * doc/md.texi: Fixed modes on several standard pattern names.
8483
8484 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
8485
8486         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
8487         (ashl<mode>3): ...this.
8488         (loongson_psra<V_suffix>): Rename to...
8489         (ashr<mode>3): ...this.
8490         (loongson_psrl<V_suffix>): Rename to...
8491         (lshr<mode>3): ...this.
8492         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
8493         (CODE_FOR_loongson_psllw): Define.
8494         (CODE_FOR_loongson_psrlh): Define.
8495         (CODE_FOR_loongson_psrlw): Define.
8496         (CODE_FOR_loongson_psrah): Define.
8497         (CODE_FOR_loongson_psraw): Define.
8498
8499 2010-09-07  Richard Henderson  <rth@redhat.com>
8500
8501         * tree-vect-data-refs.c: Include tm_p.h.
8502         * Makefile.in (tree-vect-data-refs.o): Update deps.
8503         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
8504         Move delarations outside #ifdef RTX_CODE.
8505
8506 2010-09-07  Richard Henderson  <rth@redhat.com>
8507
8508         * final.c (rest_of_handle_final): Unconditionally do
8509         output_function_exception_table before assemble_end_function.
8510
8511 2010-09-07  Jan Hubicka  <jh@suse.cz>
8512
8513         * tree-inline.c (tree_inlinable_function_p): Do not test
8514         DECL_REPLACEABLE_P.
8515         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
8516         update_callee_keys, cgraph_decide_inlining): Test function availability.
8517         * cif-code.def (OVERWRITABLE): New code.
8518
8519 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
8520             Jack Howarth  <howarth@bromo.med.uc.edu>
8521
8522         PR target/36502
8523         PR target/42313
8524         PR target/44651
8525         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
8526         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
8527         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
8528         MAX macro.
8529
8530 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8531
8532         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
8533         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
8534
8535 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8536
8537         * config.gcc: Don't append t-android for Android targets.
8538
8539         * config/t-android: Removed.
8540
8541 2010-09-07  Richard Henderson  <rth@redhat.com>
8542
8543         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
8544         * doc/tm.texi.in: Add doc marker.
8545         * doc/tm.texi: Rebuild.
8546         * except.c (switch_to_exception_section): Always build.
8547         (output_one_function_exception_table): Move section switch,
8548         personality output, and label output ...
8549         (output_function_exception_table): ... here.  Use the new
8550         personality hook.
8551
8552         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
8553         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
8554         TARGET_ASM_INIT_SECTIONS): New.
8555         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
8556         make static.
8557         (TARGET_ASM_UNWIND_EMIT): Update to match.
8558         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
8559
8560         * config/arm/arm.c (arm_asm_emit_except_personality): New.
8561         (arm_asm_init_sections): New.
8562         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
8563
8564 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8565
8566         * config/arm/arm.md: Remove unused variable.
8567
8568 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
8569
8570         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8571         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
8572         (m32r_memory_move_cost): New function.
8573
8574 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
8575
8576         * config.gcc: Append t-android for Android targets.
8577
8578         * config/t-android: New.
8579
8580 2010-09-07  Richard Henderson  <rth@redhat.com>
8581
8582         * target.def (unwind_emit_before_insn): New hook.
8583         * doc/tm.texi.in: Add @hook marker for it.
8584         * doc/tm.texi: Rebuild.
8585         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
8586
8587 2010-09-07  Martin Jambor  <mjambor@suse.cz>
8588
8589         PR fortran/43665
8590         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
8591         are any type attributes.
8592
8593 2010-09-07  Jan Hubicka  <jh@suse.cz>
8594
8595         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
8596         array_ref_low_bound in string access folding.
8597
8598 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
8599
8600         PR target/45206
8601         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
8602         eh_return fixup sequence.
8603
8604 2010-09-07  Jan Hubicka  <jh@suse.cz>
8605
8606         * gimple-fold.c (maybe_fold_reference): Verify that operand is
8607         gimple_min_invariant.
8608
8609 2010-09-07  Richard Guenther  <rguenther@suse.de>
8610
8611         PR middle-end/45569
8612         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
8613         nor CONSTRUCTOR can trap.
8614         * tree-complex.c (update_complex_assignment): Update EH info.
8615
8616 2010-09-07  Richard Guenther  <rguenther@suse.de>
8617
8618         PR middle-end/45569
8619         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
8620         * passes.c (execute_function_todo): Do not verify anything if
8621         we saw errors.
8622
8623 2010-09-07  Richard Guenther  <rguenther@suse.de>
8624
8625         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
8626
8627 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
8628
8629         PR target/43137
8630         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
8631         New define_mode_attrs.
8632         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
8633         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
8634         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
8635         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
8636         Remove pool_range attribute.
8637         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
8638         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
8639         pool_range and neg_pool_range attributes.
8640         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
8641         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
8642         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
8643
8644 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8645
8646         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
8647         check glibc.
8648
8649 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
8650
8651         PR target/22152
8652         * config/i386/mmx.md (*mov<mode>_internal_rex64,
8653         *mov<mode>_internal_avx, *mov<mode>_internal,
8654         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
8655         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
8656
8657 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
8658
8659         * c-typeck.c (do_warn_double_promotion): Remove.
8660         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
8661         Objective-C++ too.
8662
8663 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
8664
8665         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
8666         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
8667         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
8668         argument type to reg_class_t. Change result type to bool.
8669         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8670
8671 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
8672
8673         PR libobjc/19850
8674         * gthr-posix.h (__gthread_objc_thread_detach): Use
8675         _objc_thread_attribs when detaching a thread.
8676         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
8677
8678 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
8679
8680         PR target/45524
8681         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
8682         * configure: Regenerated.
8683
8684 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8685
8686         * combine.c (try_combine): Set subst_low_luid to i0.
8687
8688 2010-09-06  Richard Guenther  <rguenther@suse.de>
8689
8690         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
8691         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
8692         (build_aligned_type): Declare.
8693         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
8694         (check_aligned_type): New function.
8695         (build_aligned_type): Likewise.
8696         * expr.c (expand_assignment): Handle misaligned stores via
8697         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
8698         (expand_expr_real_1): Likewise.
8699         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
8700         * tree-vect-stmts.c (vectorizable_store): Do not build
8701         MISALIGNED_INDIRECT_REF but initialize alignment information.
8702         (vectorizable_load): Likewise.
8703         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
8704         handling.
8705         * cfgexpand.c (expand_debug_expr): Likewise.
8706         * dwarf2out.c (loc_list_from_tree): Likewise.
8707         * fold-const.c (maybe_lvalue_p): Likewise.
8708         (operand_equal_p): Likewise.
8709         (build_fold_addr_expr_with_type_loc): Likewise.
8710         * gimplify.c (gimplify_addr_expr): Likewise.
8711         (gimplify_expr): Likewise.
8712         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8713         (verify_gimple_assign_single): Likewise.
8714         * tree-dump.c (dequeue_and_dump): Likewise.
8715         (tree_could_trap_p): Likewise.
8716         * tree-predcom.c (ref_at_iteration): Likewise.
8717         * tree-pretty-print.c (dump_generic_node): Likewise.
8718         (op_code_prio): Likewise.
8719         (op_symbol_code): Likewise.
8720         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8721         * tree-ssa-loop-im.c (for_each_index): Likewise.
8722         (gen_lsm_tmp_name): Likewise.
8723         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
8724         (find_interesting_uses_address): Likewise.
8725         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8726         * tree-ssa-operands.c (get_expr_operands): Likewise.
8727         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8728         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8729         (ao_ref_init_from_vn_reference): Likewise.
8730         * tree.c (staticp): Likewise.
8731         (build1_stat): Likewise.
8732         (reference_alias_ptr_type): Likewise.
8733         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8734         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
8735         MISALIGNED_INDIRECT_REF handling.
8736
8737 2010-09-06  Richard Guenther  <rguenther@suse.de>
8738
8739         PR tree-optimization/45534
8740         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
8741         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
8742         on the target.
8743         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
8744         valid on the target.
8745
8746 2010-09-06  Andreas Schwab  <schwab@redhat.com>
8747
8748         * configure.ac: Quote argument of AC_MSG_WARN.
8749         * configure: Regenerate.
8750
8751 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
8752
8753         * sel-sched.c (move_cond_jump): Correct arguments to
8754         maybe_tidy_empty_bb.
8755         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
8756
8757 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
8758
8759         PR rtl-optimization/44919
8760         * sel-sched.c (move_cond_jump): Remove assert, check that
8761         the several blocks case can only happen with mutually exclusive
8762         insns instead.  Rewrite the movement code to support moving through
8763         several basic blocks.
8764
8765 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
8766
8767         * config/i386/i386.md (iptrsize): New mode attribute.
8768         (tp_seg): Ditto.
8769         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
8770         mode iterator.
8771         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
8772         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
8773         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
8774         (stack_tls_protect_set_<mode>): Ditto from
8775         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
8776         of thread base pointer load.
8777         (stack_tls_protect_test_<mode>): Ditto from
8778         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
8779         of thread base pointer load.
8780         (stack_protect_set): Rewrite using indirect functions.
8781         (stack_protect_test): Ditto.
8782         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
8783         (ix86_print_operand): Handle '@'.
8784
8785 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
8786
8787         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
8788         MINUS_EXPR.
8789
8790 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
8791
8792         * doc/invoke.texi: Document -Wdouble-promotion.
8793         * c-typeck.c (convert_arguments): Check for implicit conversions
8794         from float to double.
8795         (do_warn_double_promotion): New function.
8796         (build_conditional_expr): Use it.
8797         (build_binary_op): Likewise.
8798
8799 2010-09-05  Richard Guenther  <rguenther@suse.de>
8800
8801         PR tree-optimization/45535
8802         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
8803         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
8804         dereferencing it.
8805         (indirect_refs_may_alias_p): Likewise.
8806
8807 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
8808
8809         * config/sh/sh.c (sh_option_override): Make static.
8810         Adjust comments.  Declare.
8811         (sh_function_value_regno_p): Likewise.
8812         (sh_register_move_cost): Modify the arguments, make static.
8813         Adjust comments.  Declare.
8814         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
8815         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8816         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
8817         REGISTER_MOVE_COST): Delete.
8818         * config/sh/sh-protos.h (sh_override_options): Delete.
8819         (sh_register_move_cost): Delete.
8820         (sh_function_value_regno_p): Delete.
8821
8822 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
8823
8824         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
8825         m32r_function_value_regno_p): New functions.
8826         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8827         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
8828         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
8829         FUNCTION_VALUE_REGNO_P): Remove.
8830
8831 2010-09-04  Jan Hubicka  <jh@suse.cz>
8832
8833         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
8834         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
8835         fold_read_from_constant_string.
8836
8837         * gimple.h (canonicalize_constructor_val): Declare.
8838         * gimple-fold.c (canonicalize_constructor_val): New function.
8839         (get_symbol_constant_value):Use it.
8840         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
8841
8842 2010-09-04  Jan Hubicka  <jh@suse.cz>
8843
8844         * tree-switch-conversion.c (build_one_array): Set constructor to be
8845         static.
8846         * varpool.c (varpool_finalize_decl): Compute const_value_known.
8847
8848 2010-09-04  Richard Guenther  <rguenther@suse.de>
8849
8850         PR bootstrap/45519
8851         * tree-flow.h (force_gimple_operand_1): Declare.
8852         (force_gimple_operand_gsi_1): Likewise.
8853         * gimplify.c (force_gimple_operand_1): New worker taking a
8854         gimple predicate for ...
8855         (force_gimple_operand): ... which now wraps it.
8856         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
8857         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
8858         last change.
8859         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
8860         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
8861         (create_mem_ref): Likewise.
8862
8863 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
8864
8865         * config/i386/predicates.md (sse_reg_operand): New predicate.
8866         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
8867         predicate for operand 1.
8868         (XFmode push splitter): Use fp_register_operand predicate
8869         for operand 1.
8870         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
8871         (SF-DF float_extend push splitter): Add reload_completed insn
8872         predicate.
8873         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
8874         MODEF mode macro.  Add reload_completed insn predicate.
8875
8876 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
8877
8878         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
8879         (struct df_extract_ref): Remove.
8880         (union df_ref_d): Remove extract_ref member.
8881         (df_ref_create): Remove last three arguments.
8882         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
8883         * df-scan.c (df_ref_record): Remove last three arguments, do not
8884         pass them to df_ref_create_structure.
8885         (df_uses_record): Remove first and last three arguments.  Replace
8886         first argument with DF_REF_REGULAR, adjust calls to remove the
8887         width, offset and mode.  Always call recursively on the second
8888         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
8889         (df_ref_create_structure): Remove first argument.
8890         (struct df_scan_problem_data): Remove ref_extract_pool.
8891         (df_scan_free_internal): Do not free it.
8892         (df_scan_alloc): Do not allocate it.
8893         (df_ref_create): Remove last three arguments, do not pass them to
8894         df_ref_create_structure.
8895         (df_free_ref): Remove DF_REF_EXTRACT case.
8896         (df_notes_rescan): Adjust call to df_uses_record.
8897         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
8898         Remove DF_REF_EXTRACT case.
8899         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
8900         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
8901         and SUBREG definitions.
8902         (df_get_conditional_uses): Remove references to width/offset/mode,
8903         adjust call to df_ref_create_structure.
8904         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
8905         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
8906         calls to df_uses_record and df_ref_record.
8907         * fwprop.c (update_df): Remove references to width/offset/mode,
8908         adjust call to df_ref_create.
8909
8910 2010-09-03  Jan Hubicka  <jh@suse.cz>
8911
8912         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
8913         (build_cdtor_fns): Update use of build_cdtor.
8914
8915 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
8916
8917         * doc/options.texi (SeparateAlias): Document.
8918         * opt-functions.awk (switch_flags): Handle SeparateAlias.
8919         * opth-gen.awk: Generate enumeration names for options marked
8920         SeparateAlias, but not for those marked Ignore.
8921         * opts-common.c (generate_canonical_option): Don't output separate
8922         argument for options marked CL_SEPARATE_ALIAS.
8923         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
8924         * opts.h (CL_SEPARATE_ALIAS): New.
8925         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
8926         CL_COMMON): Adjust definitions.
8927         * config/i386/darwin.opt, config/mips/sde.opt: New.
8928         * common.opt (fdump-final-insns): New.
8929         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8930         i386/darwin.opt.
8931         (mips*-sde-elf*): Add mips/sde.opt.
8932         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
8933         -mno-data-in-code and -mcode-xonly here.
8934         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
8935         * gcc.c (option_map): Add "j" to --dump entry.
8936         (translate_options): Don't translate -d to -foutput-class-dir= here.
8937
8938 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
8939
8940         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
8941         DR_IS_WRITE.
8942         (compute_all_dependences): Same.
8943         (create_rdg_edge_for_ddr): Same.
8944         * tree-data-ref.h (DR_IS_WRITE): New.
8945         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
8946         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
8947         (write_memrefs_written_at_least_once): Same.
8948         * tree-predcom.c (suitable_component_p): Same.
8949         (determine_roots_comp): Same.
8950         (execute_load_motion): Same.
8951         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
8952         (vect_enhance_data_refs_alignment): Same.
8953         (vect_analyze_group_access): Same.
8954
8955 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
8956
8957         PR testsuite/42843
8958         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
8959         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
8960
8961 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
8962
8963         * dwarf2out.c (file scope): Remove #if0'd code.
8964         (gen_subprogram_die): Same.
8965
8966 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
8967
8968         PR middle-end/45484
8969         * dwarf2out.c (flush_queued_reg_saves): Rename to...
8970         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
8971         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
8972         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
8973         * config/i386/i386.c (output_set_got): Call it.
8974
8975 2010-09-03  Michael Matz  <matz@suse.de>
8976
8977         PR middle-end/45415
8978         * tree-sra.c (sra_modify_assign): If we modify the statement,
8979         say so.
8980
8981         * tree-ssa.c (verify_ssa): Check number of operands and links
8982         per statement to agree.
8983
8984 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
8985             Iain Sandoe  <iains@gcc.gnu.org>
8986
8987         PR target/45476
8988         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
8989         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
8990         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8991
8992 2010-09-03  Richard Guenther  <rguenther@suse.de>
8993
8994         * lto-streamer-out.c (output_function): Output function
8995         start and end loci.
8996         * lto-streamer-in.c (input_function): Input function start
8997         and end loci.
8998
8999 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9000
9001         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
9002         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
9003         * configure: Regenerate.
9004         * aclocal.m4: Regenerate.
9005
9006 2010-09-03  Jan Hubicka  <jh@suse.cz>
9007
9008         PR lto/44812
9009         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
9010         on functions/variables in other partition.
9011
9012 2010-09-03  Jan Hubicka  <jh@suse.cz>
9013
9014         * cgraph.h (struct varpool_node): Add const_value_known.
9015         (varpool_decide_const_value_known): Declare.
9016         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
9017         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
9018         (input_varpool_node): Restore const_value_known.
9019         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
9020         initializer folding.
9021         * ipa.c (ipa_discover_readonly_nonaddressable_var,
9022         function_and_variable_visibility): Compute const_value_known.
9023         * gimple-fold.c (get_symbol_constant_value): Use varpool for
9024         initializer folding.
9025         * varpool.c (varpool_decide_const_value_known): New function.
9026
9027 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
9028
9029         * config/i386/i386.md: Remove empty preparation statements
9030         from splitters.
9031
9032 2010-09-03  Jan Hubicka  <jh@suse.cz>
9033
9034         * passes.c (rest_of_decl_compilation): Do not add local vars into
9035         varpool.
9036         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
9037         static or extern vars are in varpool.
9038         (varpool_finalize_decl): Sanity check that only static vars are
9039         finalized.
9040
9041 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
9042
9043         PR debug/45500
9044         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
9045         not just generic vectors with BLKmode.
9046
9047 2010-09-03  Richard Guenther  <rguenther@suse.de>
9048
9049         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
9050         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
9051         * tree.h (TMR_SYMBOL): Remove.
9052         (TMR_BASE, TMR_OFFSET): Adjust.
9053         (TMR_INDEX2): New.
9054         * alias.c (ao_ref_from_mem): Use TMR_BASE.
9055         * builtins.c (get_object_alignment): Merge TMR_BASE and
9056         TMR_SYMBOL handling.
9057         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
9058         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
9059         handling.  Also allow TARGET_MEM_REF as base address.
9060         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
9061         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
9062         base.  Gimplify TMR_INDEX2.
9063         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
9064         * tree-dfa.c (get_ref_base_and_extent): Likewise.
9065         (get_addr_base_and_unit_offset): Likewise.
9066         * tree-eh.c (tree_could_trap_p): Likewise.
9067         * tree-pretty-print.c (dump_generic_node): Likewise.
9068         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
9069         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
9070         base to index2.
9071         (get_address_description): Reconstruct addres description
9072         from merged TMR_BASE and TMR_INDEX2.
9073         (maybe_fold_tmr): Fold propagated addresses.
9074         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
9075         MEM_REF and TARGET_MEM_REF paths.
9076         (indirect_refs_may_alias_p): Likewise.
9077         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
9078         instead of TMR_SYMBOL.
9079         * tree-ssa-operands.c (get_tmr_operands): Simplify.
9080         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
9081         according to changes ...
9082         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
9083         Split TARGET_MEM_REF into two fields plus the base.
9084         * tree.c (mem_ref_offset): Simplify.
9085         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
9086         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
9087         Strip NOPs when folding MEM_REF addresses.
9088         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
9089         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
9090         (fold_gimple_assign): ... not here.
9091
9092 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
9093
9094         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
9095         * config/mips/mips.c (mips_shift_truncation_mask): New function.
9096         (TARGET_SHIFT_TRUNCATION_MASK): Define.
9097
9098 2010-09-02  Richard Henderson  <rth@redhat.com>
9099
9100         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
9101         instead of readelf in the test.
9102         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
9103         in the .debug_frame section for coff targets.
9104         * configure: Rebuild.
9105
9106 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
9107
9108         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
9109         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
9110         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9111         (m32c_class_likely_spilled_p): Make static. Change argument type to
9112         reg_class_t. Change result type to bool.
9113
9114 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
9115
9116         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
9117         to convert (double)(long) into a single FRIZ instruction or not
9118         when -ffast-math is used.
9119
9120         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
9121         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
9122         or FRIZ instruction if -ffast-math.
9123         * config/rs6000/rs6000.md (friz): Ditto.
9124
9125         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
9126
9127 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9128
9129         * opth-gen.awk (quote, comma): Remove unused variables.
9130
9131 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
9132
9133         * arm.c (arm_override_options): Correct fall-back code to use
9134         SUBTARGET_CPU_DEFAULT.
9135
9136 2010-09-02  Julian Brown  <julian@codesourcery.com>
9137
9138         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
9139         unspecs.
9140         (vcond<mode>, vcondu<mode>): New expanders.
9141         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
9142         comparisons with zero.
9143         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
9144         * config/arm/constraints.md (Dz): New constraint.
9145
9146 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
9147
9148         * target.def (class_likely_spilled_p): New hook.
9149         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
9150         * doc/tm.texi: Regenerate.
9151         * targhooks.c (default_class_likely_spilled_p): New function.
9152         * targhooks.h (default_class_likely_spilled_p): Declare.
9153         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
9154         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
9155         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
9156         Use fixed_reg_set instead of fixed_regs.
9157         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
9158         * calls.c (avoid_likely_spilled_reg): Ditto.
9159         * ira-conflicts.c (ira_build_conflicts): Ditto.
9160         * ira.c (update_equiv_regs): Ditto.
9161         * mode-switching.c (create_pre_exit): Ditto.
9162         * regmove.c (find_matches): Ditto.
9163         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
9164         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
9165         (small_register_class_p): New inline function.
9166         (push_secondary_reload, find_reusable_reload, find_reloads): Use
9167         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
9168
9169         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
9170         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
9171         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9172
9173 2010-09-02  Richard Guenther  <rguenther@suse.de>
9174
9175         PR tree-optimization/44937
9176         PR tree-optimization/45412
9177         * ipa-split.c (split_function): Properly remove PHI nodes.
9178
9179 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9180
9181         * opts.h (struct cl_option): Add warn_message field.
9182         (struct cl_decoded_option): Add warn_message field.
9183         * doc/options.texi (Ignore, Warn): Document.
9184         * opt-functions.awk (needs_state_p): Don't consider aliases or
9185         ignored options to need state saved.
9186         * optc-gen.awk: Handle Warn and Ignore.
9187         * opth-gen.awk: Output OPT_SPECIAL_ignore.
9188         * opts-common.c (decode_cmdline_option): Set warn_message field.
9189         Handle ignored options.
9190         (decode_cmdline_options_to_array, generate_option,
9191         generate_option_input_file): Set warn_message field.
9192         (read_cmdline_option): Generate warnings from warn_message field.
9193         Handle ignored options.
9194         * common.opt (Wunreachable-code, fargument-alias,
9195         fargument-noalias, fargument-noalias-global,
9196         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
9197         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
9198         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
9199         ftree-salias): Mark Ignore.
9200         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
9201         -mintel-syntax and -mno-intel-syntax here.
9202         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
9203         using Warn.
9204         * opts.c (common_handle_option): Don't handle options marked as
9205         ignored.
9206         (enable_warning_as_error): Handle ignored options.
9207
9208 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
9209
9210         PR driver/44076
9211         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
9212         alias_target fields.
9213         * opt-functions.awk (opt_sanitized_name): Don't handle
9214         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
9215         * optc-gen.awk: Generate alias fields.
9216         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
9217         Don't generate such constants for aliases.
9218         * opts-common.c (generate_canonical_option): New.
9219         (decode_cmdline_option): Handle aliases.  Use
9220         generate_canonical_option for known options instead of copying the
9221         input option text.
9222         * doc/options.texi (Alias): Document.
9223         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
9224         fstack-check, specs): Mark as aliases.
9225         * gcc.c (driver_handle_option): Canonicalize -L options to joined
9226         arguments.
9227         (driver_handle_option): Don't handle OPT_specs.
9228         * opts.c (common_handle_option): Don't handle options marked as
9229         aliases.
9230         (enable_warning_as_error): Handle aliases.
9231         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
9232         OPT_Wlarger_than_eq.
9233         * tree-optimize.c (tree_rest_of_compilation): Use
9234         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
9235
9236 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
9237
9238         * config/i386/i386.md (nonmemory_operand): New mode attribute.
9239         (push memory peephole2): Macroize peepholes using SWI mode iterator.
9240         (move immediate to memory peephole2): Macroize peepholes using
9241         SWI124 mode iterator.
9242         (non-pairable NOT peephole2): Macroize peepholes using SWI124
9243         mode iterator.
9244         (simple lea add peephole2): Macroize peepholes using SWI48
9245         mode iterator.
9246         (simple lea mult peephole2): Ditto.
9247         (imul by 3,5,9 to lea peephole2): Ditto.
9248         (mov $-1, reg peephole2): Macroize peepholes using SWI248
9249         mode iterator.
9250         (imul $32bit_imm,mem,reg peephole2): Ditto.
9251         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
9252
9253 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
9254
9255         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
9256
9257 2010-09-02  Olivier Hainque  <hainque@adacore.com>
9258
9259         PR middle-end/44763
9260         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
9261         (allocno_priority_compare_func): Use it instead of a straight
9262         difference computation over priorities.
9263
9264 2010-09-02  Andi Kleen  <ak@linux.intel.com>
9265
9266         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
9267
9268 2010-09-02  Ira Rosen  <irar@il.ibm.com>
9269
9270         * tree-vectorizer.h (get_later_stmt): New function.
9271         (vect_analyze_data_ref_dependences): Add argument.
9272         * tree-vect-loop.c (vect_analyze_loop): Update call to
9273         vect_analyze_data_ref_dependences.
9274         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
9275         New function.
9276         (vect_analyze_data_ref_dependence): Add argument for basic block
9277         dependencies. Check dependencies in basic block vectorization.
9278         (vect_analyze_data_ref_dependences): Add argument and update call to
9279         vect_analyze_data_ref_dependences.
9280         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
9281         (vect_bb_vectorizable_with_dependencies): New.
9282         (vect_slp_analyze_bb): Check dependencies in basic block.
9283         (vect_schedule_slp_instance): Insert stores before the last store in
9284         SLP instance.
9285
9286 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
9287
9288         PR target/45476
9289         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
9290         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
9291
9292 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
9293
9294         PR middle-end/45458
9295         * bb-reorder.c (add_labels_and_missing_jumps): Treat
9296         bbs ending with throwing insns like blocks ending with a call.
9297         (fix_up_fall_thru_edges): Likewise.
9298
9299 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
9300
9301         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
9302         (m32c_function_arg_advance): Delete.
9303         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9304         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
9305         comments.  Take a const_tree and a bool.  Declare.
9306         (m32c_function_arg_advance): Likewise.
9307         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9308
9309 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
9310
9311         PR target/45476
9312         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
9313         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
9314         * config/i386/mingw32.h: ... here.
9315
9316 2010-09-01  Andi Kleen  <ak@linux.intel.com>
9317
9318         PR lto/45475
9319         * lto-streamer-in.c (lto_input_ts_target_option): Add.
9320         (lto_input_tree_pointers): Call lto_input_ts_target_option.
9321         * lto-streamer-out (lto_output_ts_target_option): Add.
9322         (lto_output_tree_pointers): Call lto_output_ts_target_option.
9323
9324 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
9325
9326         PR/target 45452
9327         * config/i386/cygwin.h: Change order of specified import libraries.
9328         * config/i386/mingw32.h: Likewise.
9329         * config/i386/t-cygwin: Likewise.
9330         * config/i386/t-mingw32: Likewise.
9331         * config/i386/t-mingw-w32: Likewise.
9332         * config/i386/t-mingw-w64: Likewise.
9333
9334 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9335
9336         * config/arm/neon-schedgen.ml (core): New type.
9337         (allCores): List of supported cores.
9338         (availability_table): Add supported cores.
9339         (collate_bypasses): Accept core as a parameter.
9340         (worst_case_latencies_and_bypasses): Accept core as a parameter.
9341         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
9342         and coreStr to get tune attribute and prefix for functional units.
9343         (emit_bypasses): Accept core name and use it.
9344         (calculate_per_core_availability_table): New.
9345         (filter_core): New.
9346         (calculate_core_availability_table): New.
9347         (main): Use calculate_core_availablity_table.
9348         * config/arm/cortex-a8-neon.md: Update copyright year.
9349         Regenerated from ml file and merged in.
9350         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
9351         cortex_a8_neon_mrc.
9352
9353 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
9354
9355         * Makefile.in (tree-switch-conversion.o): Update dependencies.
9356
9357 2010-09-01  Richard Guenther  <rguenther@suse.de>
9358
9359         * alias.c (ao_ref_from_mem): Adjust.
9360         * builtins.c (get_object_alignment): Likewise.
9361         * cfgexpand.c (expand_debug_expr): Likewise.
9362         * gimple.c (get_base_address): Likewise.
9363         * tree-dfa.c (get_ref_base_and_extent): Likewise.
9364         (get_addr_base_and_unit_offset): Likewise.  Fix for
9365         both TMR_SYMBOL and TMR_BASE being set.
9366         * tree-eh.c (tree_could_trap_p): Likewise.
9367         * gimplify.c (gimplify_expr): Do not attempt to gimplify
9368         TMR_SYMBOL.  Always gimplify TMR_BASE.
9369         * tree-cfg.c (verify_types_in_gimple_reference): Verify
9370         TMR_BASE if there is a TMR_SYMBOL.
9371         * tree-pretty-print.c (dump_generic_node): Adjust.
9372         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
9373         (tree_mem_ref_addr): Likewise.
9374         (create_mem_ref_raw): Likewise.
9375         (move_fixed_address_to_symbol): Likewise.
9376         (create_mem_ref): Likewise.
9377         (dump_mem_address): Likewise.
9378         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
9379         Fix for both TMR_SYMBOL and TMR_BASE being set.
9380         (indirect_refs_may_alias_p): Likewise.
9381         * tree-ssa-operands.c (get_tmr_operands): Adjust.
9382         * tree.def (TARGET_MEM_REF): Adjust documentation.
9383
9384 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
9385
9386         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
9387         Rename from X86_TUNE_ADD_ESP_4.
9388         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
9389         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
9390         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
9391         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
9392         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
9393         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
9394         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
9395         * config/i386/i386.c (initial_ix86_tune_features)
9396         <X86_TUNE_SINGLE_POP>: Invert members.
9397         <X86_TUNE_DOUBLE_POP>: Ditto.
9398         <X86_TUNE_SINGLE_PUSH>: Ditto.
9399         <X86_TUNE_DOUBLE_PUSH>: Ditto.
9400         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
9401         No longer exported.
9402         (push peephole2 patterns): Macroize peepholes using P mode iterator.
9403         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
9404         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
9405         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
9406
9407 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
9408
9409         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
9410         a volatile LHS if the constructor has only one element.
9411
9412 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
9413
9414         PR bootstrap/45321
9415         * tree.c (stdarg_p): Make fntype parameter const.
9416         * tree.h (stdarg_p): Likewise.
9417         (function_args_iterator): Remove unused fntype field.
9418         (function_args_iter_init): Do not initialize fntype
9419         field.  Make fntype parameter const.
9420
9421 2010-09-01  Richard Guenther  <rguenther@suse.de>
9422
9423         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
9424         estimate.
9425         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
9426         (execute_vrp): Compute number of iteration estimates.
9427         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
9428         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9429         * tree-data-ref.c (estimated_loop_iterations): Adjust.
9430         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9431         Infer loop bounds from undefined behavior based on a new parameter.
9432         (estimate_numbers_of_iterations): Likewise.
9433         (scev_probably_wraps_p): Adjust.
9434         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9435
9436 2010-09-01  Nick Clifton  <nickc@redhat.com>
9437
9438         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
9439         where appropriate.
9440         (xstormy16_legitimate_address_p): Use true and false instead of 1
9441         and 0.
9442         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
9443         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
9444         magic constant 2.
9445         (xstormy16_expand_call): Fix comment at start of function.
9446
9447 2010-09-01  Nick Clifton  <nickc@redhat.com>
9448
9449         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
9450         when pushing accumulator register.
9451         (rx_get_stack_layout): Always save call clobbered registers inside
9452         interrupt handlers.
9453         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
9454
9455 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
9456
9457         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
9458         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
9459
9460         * libgcc-std.ver (GCC_4.6.0): Define version.
9461
9462 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
9463
9464         * tree-nested.c (convert_all_function_calls): Iterate until after the
9465         sum of static chains in the nest doesn't change.
9466
9467 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
9468
9469         * config/m32c/m32c.c (classes_intersect): Remove.
9470         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
9471         reg_classes_intersect_p instead of classes_intersect.
9472         (class_can_hold_mode): Change arguments type from enum reg_class to
9473         reg_class_t.  Use reg_class_contents instead of class_contents.
9474         (m32c_register_move_cost): Make static. Change arguments type from
9475         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
9476         classes_intersect. Use reg_class_contents instead of class_contents.
9477         (m32c_memory_move_cost): Make static. Change arguments type from
9478         enum reg_class to reg_class_t.
9479         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9480         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9481         * config/m32c/m32c-protos.h (m32c_register_move_cost,
9482         m32c_memory_move_cost): Remove.
9483
9484 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9485
9486         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
9487         (arm_function_arg): Delete.
9488         (arm_needs_doubleword_align): Take a const_tree.
9489         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9490         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
9491         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
9492         (arm_function_arg): Make static.  Take a const_tree and a bool.
9493         (arm_function_arg_advance): Likewise.
9494         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9495
9496 2010-08-31  Andi Kleen  <ak@linux.intel.com>
9497
9498         * common.opt (fwhopr=): Update for -fwhopr=jobserver
9499         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
9500         * lto-wrapper.c (run_gcc): Add jobserver mode.
9501         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
9502         argument.
9503
9504 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
9505
9506         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
9507         (popsi1): Ditto.
9508         (*popdi1_epilogue): Ditto.
9509         (*popsi1_epilogue): Ditto.
9510         (popsi, popdi peephole2 patterns): Update peepholes for changed
9511         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
9512
9513         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
9514         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
9515
9516         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
9517         (override_options): Do not initialize removed ix86_gen_pop1.
9518         (gen_pop): New static function.
9519         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
9520         (release_scratch_register_on_entry): Ditto.
9521         (ix86_restore_reg_using_pop): Ditto.
9522         (ix86_expand_epilogue): Ditto.
9523
9524 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
9525
9526         PR middle-end/45461
9527         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
9528
9529 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9530
9531         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
9532         semicolons.
9533
9534 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
9535
9536         * doc/extend.texi: Fix documentation of the return value of
9537         __builtin_choose_expr.
9538
9539 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9540
9541         * config/v850/v850-protos.h (function_arg): Delete.
9542         * config/v850/v850.h (FUNCTION_ARG): Delete.
9543         (FUNCTION_ARG_ADVANCE): Move code to...
9544         * config/v850/v850.c (v850_function_arg_advance): ...here.
9545         (v850_function_arg): Make static.  Take a const_tree and a bool.
9546         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9547
9548 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9549
9550         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
9551         these...
9552         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9553         ...and these...
9554         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
9555         ..to here..
9556         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9557         ...and here.
9558         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9559
9560 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
9561
9562         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
9563         Delete.
9564         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9565         * config/rx/rx.c (rx_function_arg_size): Make static.
9566         (rx_function_arg): Likewise.
9567         (rx_function_arg_advance): New function.
9568         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9569
9570 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
9571
9572         * config/arm/arm.c (arm_override_options): Remove superfluous test.
9573         Fix indentation.
9574
9575 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
9576
9577         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
9578         (dwarf2out_decl) <CONST_DECL>: Likewise.
9579
9580 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
9581
9582         Stack usage support
9583         * common.opt (-fstack-usage): New option.
9584         * doc/invoke.texi (Debugging options): Document it.
9585         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
9586         allocate_dynamic_stack_space.
9587         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
9588         and propagate it to allocate_dynamic_stack_space.
9589         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
9590         * calls.c (initialize_argument_information): Pass TRUE as 4th
9591         argument to allocate_dynamic_stack_space.
9592         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
9593         to 1 when pushing a variable-sized argument onto the stack.  Pass
9594         TRUE as 4th argument to allocate_dynamic_stack_space.
9595         Update current_function_pushed_stack_size.
9596         (emit_library_call_value_1): Likewise.
9597         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
9598         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
9599         attempt to find an upper bound.  Remove redundant code for the
9600         SETJMP_VIA_SAVE_AREA case.
9601         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
9602         * function.h (struct stack_usage): New structure.
9603         (current_function_static_stack_size): New macro.
9604         (current_function_dynamic_stack_size): Likewise.
9605         (current_function_pushed_stack_size): Likewise.
9606         (current_function_dynamic_alloc_count): Likewise.
9607         (current_function_has_unbounded_dynamic_stack_size): Likewise.
9608         (current_function_allocates_dynamic_stack_space): Likewise.
9609         (struct function): Add new field 'su'.
9610         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
9611         add the value of the dynamic offset to the dynamic stack usage.
9612         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
9613         for variable-sized objects.
9614         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
9615         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
9616         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
9617         BUILT_IN_ALLOCA for variable-sized objects.
9618         * output.h (output_stack_usage): Declare.
9619         * toplev.c (stack_usage_file): New file pointer.
9620         (output_stack_usage): New function.
9621         (open_auxiliary_file): Likewise.
9622         (lang_dependent_init): Open file if flag_stack_usage is set.
9623         (finalize): Close file if stack_usage_file is not null.
9624         * tree.h (ALLOCA_FOR_VAR_P): New macro.
9625         * config/alpha/alpha.c (compute_frame_size): New function.
9626         (alpha_expand_prologue): Use it.
9627         (alpha_start_function): Likewise.
9628         (alpha_expand_epilogue): Likewise.  Set stack usage info.
9629         * config/i386/i386.c (ix86_expand_prologue): Likewise.
9630         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9631         * config/mips/mips.c (mips_expand_prologue): Likewise.
9632         * config/pa/pa.c (hppa_expand_prologue): Likewise.
9633         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9634         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9635
9636 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
9637
9638         PR tree-optimization/45427
9639         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
9640         Handle the case that the exit is never taken correctly.
9641         (number_of_iterations_ne): Pass exit_must_be_taken to
9642         number_of_iterations_ne_max.
9643
9644 2010-08-30  Catherine Moore  <clm@codesourcery.com>
9645
9646         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
9647         Infer -mdspr2 for the the 74K.
9648
9649 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
9650
9651         PR debug/45419
9652         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
9653
9654         PR middle-end/45423
9655         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
9656         and TRUTH_{AND,OR,XOR}_EXPR.
9657         * c-parser.c (c_parser_omp_atomic): Handle boolean
9658         {PRE,POST}_{INC,DEC}REMENT.
9659
9660 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
9661
9662         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
9663         (function_arg): Delete.
9664         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9665         (FUNCTION_INCOMING_ARG): Delete.
9666         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
9667         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
9668         and a bool.
9669         (function_arg): Rename to...
9670         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
9671         a bool.
9672         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
9673         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9674         (TARGET_FUNCTION_INCOMING_ARG): Define.
9675
9676 2010-08-30  Richard Guenther  <rguenther@suse.de>
9677
9678         PR tree-optimization/21602
9679         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
9680         using points-to information.
9681
9682 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
9683
9684         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
9685
9686 2010-08-30  Richard Guenther  <rguenther@suse.de>
9687
9688         PR tree-optimization/45449
9689         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
9690         variables.
9691
9692 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
9693
9694         * opts.h (CL_ERR_NEGATIVE): Define.
9695         * opts.c (unknown_option_callback): Don't postpone warnings for
9696         options marked with CL_ERR_NEGATIVE.
9697         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
9698         for negative versions of CL_REJECT_NEGATIVE options.
9699
9700 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
9701
9702         * config/i386/i386.md (zero_extendsidi2_1): Rename from
9703         zero_extendsidi2_32.
9704         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
9705         using SWI12 mode iterator.
9706         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
9707         to define_insn_and_split pattern.
9708         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
9709         using SWI24 mode iterator.
9710         (*zero_extendqi<mode>2_and): Macroize insn from
9711         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
9712         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
9713         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
9714         SWI24 mode iterator.
9715         (*zero_extendqi<mode>2_movzbl): Ditto from
9716         *zero_extendqi{hi,si}2_movzbl.
9717         (extendsidi2_1): Rename from extendsidi2_32.
9718         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
9719         SWI12 mode iterator.
9720
9721 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
9722
9723         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
9724         general purpose registers.
9725         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
9726         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
9727         with general purpose registers and memory operands.  Add associated
9728         CCImode post-reload splitter.
9729         * config/ia64/div.md: Change BImode to CCImode throughout.
9730
9731 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
9732
9733         * config/ia64/ia64.md (cstorebi4): Fix thinko.
9734
9735 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
9736
9737         * config/picochip/picochip.c (reorder_var_tracking_notes): This
9738         function was dropping debug insns which caused PR45299.
9739
9740 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
9741
9742         * config/i386/sse.md (extsuffix): New code attribute.
9743         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
9744         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
9745         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
9746         and sse4_1_zero_extendv4qiv4si2.
9747         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
9748         and sse4_1_zero_extendv2qiv2di2.
9749         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
9750         and sse4_1_zero_extendv4hiv4si2.
9751         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
9752         and sse4_1_zero_extendv2hiv2di2.
9753         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
9754         and sse4_1_zero_extendv2siv2di2
9755
9756         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
9757         using any_extend code iterator.
9758         (*avx_<s>mulv8hi3_highpart): Macroize insn from
9759         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
9760         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
9761
9762         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
9763         gen_sse4_1_sign_extend* functions.
9764         (struct builtin_description bdesc_args): Ditto.
9765
9766 2010-08-27  Xinliang David Li  <davidxl@google.com>
9767
9768         PR/45422
9769         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
9770         (iv_ca_set_no_cp): Update used inv expr count.
9771         (iv_ca_set_cp): Ditto.
9772         (iv_ca_new): Initialize new member.
9773         (iv_ca_free): Free memory.
9774
9775 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
9776
9777         * config/sh/sh-protos.h (sh_function_arg): Delete.
9778         (sh_function_arg_advance): Delete.
9779         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9780         (PASS_IN_REG_P): Eliminate cast.
9781         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
9782         const_tree and a bool.
9783         (sh_function_arg): Likewise.
9784         (sh_output_mi_thunk): Call sh_function_arg_advance) and
9785         sh_function_arg.
9786         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9787
9788 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
9789             Kaz Kojima  <kkojima@gcc.gnu.org>
9790
9791         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
9792         when possible.
9793         (sh_expand_epilogue): Likewise.
9794         * config/sh/sh.md (movml_push_banked): New insn.
9795         (movml_pop_banked): Likewise.
9796
9797 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
9798
9799         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
9800         gen_regexp_oneof, gen_regexp_sequence): Use the string found
9801         in vector element 0 rather than the original string when there's
9802         only one element.
9803         (gen_regexp): Remove extra semicolon.
9804
9805         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
9806         thumb2_movsf_vfp): Set attribute "insn".
9807         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
9808         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
9809         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
9810         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
9811         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
9812         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
9813         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
9814         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
9815         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
9816         if_not_arith, if_arith_not, cond_move_not): Likewise.
9817
9818 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9819
9820         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
9821         New declaration.
9822         (rs6000_allocate_stack_temp): Ditto.
9823         (rs6000_expand_convert_si_to_sfdf): Ditto.
9824
9825         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
9826         line.  Update the options set if power6 or power7 server/embedded
9827         type options are used.  If we give a warning for no vsx under
9828         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
9829         (rs6000_allocate_stack_temp): New function to allocate a stack
9830         tempoary and adjust the address so it meets either REG+OFFSET or
9831         REG+REG addressing requirements.
9832         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
9833         that they can be used with the LFIWAX/LFIWZX instrucitons.
9834         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
9835         converting signed/unsigned SImode to either SFmode/DFmode.
9836
9837         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
9838         whether certain instructions can be generated.
9839         (TARGET_FCTIDZ): Ditto.
9840         (TARGET_STFIWX): Ditto.
9841         (TARGET_LFIWAX): Ditto.
9842         (TARGET_LFIWZX): Ditto.
9843         (TARGET_FCFIDS): Ditto.
9844         (TARGET_FCFIDU): Ditto.
9845         (TARGET_FCFIDUS): Ditto.
9846         (TARGET_FCTIDUZ): Ditto.
9847         (TARGET_FCTIWUZ): Ditto.
9848
9849         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
9850         (UNSPEC_FCTID): Ditto.
9851         (UNSPEC_LFIWAX): Ditto.
9852         (UNSPEC_LFIWZX): Ditto.
9853         (UNSPEC_FCTIWUZ): Ditto.
9854         (rreg): Use correct constraints.
9855         (SI_CONVERT_FP): New mode attribute for floating point conversion
9856         tests.
9857         (E500_CONVERT): Ditto.
9858         (lfiwax): New insns for converting from integer to floating point
9859         utilizing newer instructions.  Attempt to optimize conversions
9860         that come from memory so that we don't load the value into a GPR,
9861         spill it to the stack and reload it into a FPR.
9862         (floatsi<mode>2_lfiwax): Ditto.
9863         (floatsi<mode>2_lfiwax_mem): Ditto.
9864         (floatsi<mode>2_lfiwax_mem2): Ditto.
9865         (lfiwzx): Ditto.
9866         (floatunssi<mode>2_lfiwzx): Ditto.
9867         (floatunssi<mode>2_lfiwzx_mem): Ditto.
9868         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
9869         (floatdidf2_mem): Ditto.
9870         (floatunsdidf2_fcfidu): Ditto.
9871         (floatunsdidf2_mem): Ditto.
9872         (floatunsdisf2): Ditto.
9873         (floatunsdisf2_fcfidus): Ditto.
9874         (floatunsdisf2_mem): Ditto.
9875         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
9876         Use FCFID on 32-bit hosts that support it.
9877         (floatsidf2_internal): Ditto.
9878         (floatunssisf2): Ditto.
9879         (floatunssidf2): Ditto.
9880         (floatunssidf2_internal): Ditto.
9881         (floatsisf2): Ditto.
9882         (floatdidf2): Ditto.
9883         (floatdidf2_fpr): Ditto.
9884         (floatunsdidf2): Ditto.
9885         (floatdisf2): Ditto.
9886         (floatdisf2_fcfids): Ditto.
9887         (floatdisf2_internal1): Ditto.
9888         (fixuns_truncsfsi2): Delete, merge into common pattern for both
9889         SF/DF.  Add power7 support.
9890         (fix_truncsfsi2): Ditto.
9891         (fixuns_truncdfsi2): Ditto.
9892         (fixuns_truncdfdi2): Ditto.
9893         (fix_truncdfsi2): Ditto.
9894         (fix_truncdfsi2_internal): Ditto.
9895         (fix_truncdfsi2_internal_gfxopt): Ditto.
9896         (fix_truncdfsi2_mfpgpr): Ditto.
9897         (fctiwz): Ditto.
9898         (btruncdf2): Ditto.
9899         (btruncdf2_fpr): Ditto.
9900         (btructsf2): Ditto.
9901         (ceildf2): Ditto.
9902         (ceildf2_fpr): Ditto.
9903         (ceilsf2): Ditto.
9904         (floordf2): Ditto.
9905         (floordf2_fpr): Ditto.
9906         (floorsf2): Ditto.
9907         (rounddf2): Ditto.
9908         (rounddf2_fpr): Ditto.
9909         (roundsf2): Ditto.
9910         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
9911         (fix_trunc<mode>di2): Ditto.
9912         (fixuns_trunc<mode>si2): Ditto.
9913         (fixuns_trunc<mode>di2): Ditto.
9914         (fctiwz_<mode>): Ditto.
9915         (btrunc<mode>2): Ditto.
9916         (btrunc<mode>2_fpr): Ditto.
9917         (ceil<mode>2): Ditto.
9918         (ceil<mode>2_fpr): Ditto.
9919         (floor<mode>2): Ditto.
9920         (float<mode>2_fpr): Ditto.
9921         (round<mode>2): Ditto.
9922         (round<mode>2_fpr): Ditto.
9923         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
9924         (fixuns_trunc<mode>si2_stfiwx): Ditto.
9925         (fix_truncdfsi2_internal): Ditto.
9926         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
9927         converted value on stack, loaded into GPR, and then stored into
9928         the final destination.
9929         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
9930         FCTIDZ.
9931         (lrint<mode>di2): New insn, provide the lrint builtin functions.
9932         (ftruncdf2): Delete, unused.
9933         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
9934
9935         * config/rs6000/vsx.md (toplevel): Update copyright year.
9936         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
9937         (VSr3): Ditto.
9938
9939 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
9940             Jeremie Salvucci  <jeremie.salvucci@free.fr>
9941
9942         * gengtype.c (output_type_enum): Test the right union member.
9943
9944 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
9945
9946         PR target/41484
9947         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
9948         operands for operand 1.
9949         (sse4_1_extendv4qiv4si2): Ditto.
9950         (sse4_1_extendv2qiv2di2): Ditto.
9951         (sse4_1_extendv4hiv4si2): Ditto.
9952         (sse4_1_extendv2hiv2di2): Ditto.
9953         (sse4_1_extendv2siv2di2): Ditto.
9954         (sse4_1_zero_extendv8qiv8hi2): Ditto.
9955         (sse4_1_zero_extendv4qiv4si2): Ditto.
9956         (sse4_1_zero_extendv2qiv2di2): Ditto.
9957         (sse4_1_zero_extendv4hiv4si2): Ditto.
9958         (sse4_1_zero_extendv2hiv2di2): Ditto.
9959         (sse4_1_zero_extendv2siv2di2): Ditto.
9960         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
9961         (*sse4_1_extendv4qiv4si2): Ditto.
9962         (*sse4_1_extendv2qiv2di2): Ditto.
9963         (*sse4_1_extendv4hiv4si2): Ditto.
9964         (*sse4_1_extendv2hiv2di2): Ditto.
9965         (*sse4_1_extendv2siv2di2): Ditto.
9966         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
9967         (*sse4_1_zero_extendv4qiv4si2): Ditto.
9968         (*sse4_1_zero_extendv2qiv2di2): Ditto.
9969         (*sse4_1_zero_extendv4hiv4si2): Ditto.
9970         (*sse4_1_zero_extendv2hiv2di2): Ditto.
9971         (*sse4_1_zero_extendv2siv2di2): Ditto.
9972
9973 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
9974
9975         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
9976         (mips_function_arg): Delete.
9977         (mips_function_arg_boundary): Take a const_tree.
9978         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
9979         (mips_arg_info): Likewise.
9980         (mips_setup_incoming_varargs): Call mips_function_arg_advance
9981         instead of FUNCTION_ARG_ADVANCE.
9982         (mips_function_arg_advance): Adjust prototype.  Make static.
9983         (mips_function_arg): Likewise.
9984         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9985         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
9986
9987 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
9988
9989         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9990         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
9991         (function_arg): Delete.
9992         (function_arg_boundary): Take a const_tree.
9993         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
9994         (rs6000_spe_function_arg): Likewise.
9995         (rs6000_parm_start): Likewise.
9996         (rs6000_arg_size): Likewise.
9997         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
9998         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
9999         (rs6000_mixed_function_arg): Likewise.
10000         (function_arg): Rename to...
10001         (rs6000_function_arg): ...this.
10002         (function_arg_advance): Rename to...
10003         (rs6000_function_arg_advance_1): ...this
10004         (rs6000_function_arg_advance): New function.  Call it.
10005         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
10006         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
10007         (rs6000_function_value): Likewise.
10008         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
10009
10010 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10011
10012         * config/arm/arm.md (enabled): Test the value of arch_enabled
10013         rather than just using it.
10014
10015 2010-08-27  Olivier Hainque  <hainque@adacore.com>
10016             Eric Botcazou  <ebotcazou@adacore.com>
10017
10018         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
10019         cover all the possible offsets from this base.
10020         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
10021
10022 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
10023
10024         PR tree-optimization/44485
10025         * calls.c (flags_from_decl_or_type): For const or pure
10026         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
10027         together with ECF_CONST resp. ECF_PURE.
10028         * builtins.c (expand_builtin): Use flags_from_decl_or_type
10029         instead of querying flags directly.
10030         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
10031         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
10032
10033 2010-08-26  Richard Guenther  <rguenther@suse.de>
10034
10035         PR tree-optimization/45255
10036         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
10037         and externals are also invariant.
10038
10039 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
10040
10041         PR rtl-optimization/44858
10042         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
10043         newi2pat, make sure they don't affect newpat.
10044
10045         PR rtl-optimization/45400
10046         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
10047         SUBREG_REG if both modes are of MODE_INT class.
10048
10049 2010-08-25  Julian Brown  <julian@codesourcery.com>
10050
10051         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
10052         * config/arm/arm.md (generic_sched): No for Cortex-A5.
10053         (generic_vfp): Likewise.
10054         (cortex-a5.md): Include.
10055         * config/arm/cortex-a5.md: New.
10056
10057 2010-08-25  Richard Guenther  <rguenther@suse.de>
10058
10059         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
10060         * gimple.c (gimple_get_alias_set): Remove special handling
10061         for pointers.
10062
10063 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
10064
10065         PR middle-end/45355
10066         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
10067         dead_or_set_p when computing i0_feeds_i2_n.
10068
10069         * combine.c (find_split_point): Undo canonicalization of multiply-add
10070         to (minus x (mult)) when it seems likely that this will increase the
10071         chances of a split.
10072
10073 2010-08-25  Richard Guenther  <rguenther@suse.de>
10074
10075         PR lto/44562
10076         * lto-streamer.c (lto_record_common_node): Do not mess with
10077         TYPE_CANONICAL when not in lto.
10078         * gimple.c (gimple_register_type): Likewise.
10079
10080 2010-08-25  Richard Guenther  <rguenther@suse.de>
10081
10082         PR tree-optimization/45316
10083         * tree-ssa-pre.c (eliminate): Properly clean EH info.
10084
10085 2010-08-25  Richard Guenther  <rguenther@suse.de>
10086
10087         PR tree-optimization/45393
10088         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
10089         and clean EH info.  Avoid SSA update.
10090         (execute_cse_sincos): Cleanup the CFG if it has changed.
10091
10092 2010-08-25  Richard Guenther  <rguenther@suse.de>
10093
10094         PR middle-end/45379
10095         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
10096         TARGET_MEM_REF in alignment computation.
10097
10098 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
10099
10100         PR tree-optimization/45059
10101         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
10102         type conversions from newop{1,2}.  Assert t is a comparison and
10103         newop{1,2} after the stripping are gimple vals.
10104
10105 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
10106
10107         * config/arm/iterators.md (VU, SE, V_widen_l): New.
10108         (V_unpack, US): New.
10109         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
10110         (vec_unpack<US>_lo_<mode>): Likewise.
10111         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
10112         (neon_vec_unpack<US>_lo_<mode>): Likewise.
10113         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
10114         (vec_widen_<US>mult_hi_<mode>): Likewise.
10115         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
10116         (neon_vec_<US>mult_hi_<mode>"): Likewise.
10117         (neon_unpack<US>_<mode>): Widening move intermediate step for
10118         vectorizing without -mvectorize-with-neon-quad.
10119         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
10120         for vectorizing without -mvectorize-with-neon-quad.
10121         * config/arm/predicates.md (vect_par_constant_high): Check for
10122         high-half lanes of a vector.
10123         (vect_par_constant_low): Check for low-half lanes of a vector.
10124
10125 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
10126
10127         * tree-if-conv.c (struct ifc_dr): New.
10128         (IFC_DR): New.
10129         (DR_WRITTEN_AT_LEAST_ONCE): New.
10130         (DR_RW_UNCONDITIONALLY): New.
10131         (memref_read_or_written_unconditionally): Use the cached values
10132         when possible.
10133         (write_memref_written_at_least_once): Same.
10134         (if_convertible_loop_p): Initialize and free DR->aux fields.
10135
10136 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
10137
10138         * gimple.c (gimple_could_trap_p_1): Not static anymore.
10139         Pass an extra bool parameter include_mem.
10140         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
10141         (gimple_assign_rhs_could_trap_p): Same.
10142         * gimple.h (gimple_could_trap_p_1): Declared.
10143         * tree-data-ref.h (same_data_refs_base_objects): New.
10144         (same_data_refs): New.
10145         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
10146         (write_memrefs_written_at_least_once): New.
10147         (ifcvt_memrefs_wont_trap): New.
10148         (operations_could_trap): New.
10149         (ifcvt_could_trap_p): New.
10150         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
10151         Gets a vector of data refs.
10152         (if_convertible_stmt_p): Same.
10153         (if_convertible_loop_p_1): New.
10154         (if_convertible_loop_p): Call if_convertible_loop_p_1.
10155
10156 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
10157
10158         * common.opt (ftree-loop-if-convert-stores): New flag.
10159         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
10160         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
10161         the created statement before GSI.
10162         (if_convertible_phi_p): Allow virtual phi nodes when
10163         flag_loop_if_convert_stores is set.
10164         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
10165         Do not handle types that do not match is_gimple_reg_type.
10166         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
10167         when flag_loop_if_convert_stores is set, as LHS can contain
10168         memory refs.
10169         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
10170         to if_convertible_gimple_assign_stmt_p.
10171         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
10172         (replace_phi_with_cond_gimple_assign_stmt): Renamed
10173         predicate_scalar_phi.  Do not handle virtual phi nodes.
10174         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
10175         Call predicate_scalar_phi.
10176         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
10177         just after the labels for flag_loop_if_convert_stores, otherwise
10178         insert the predicate in the end of the BB.
10179         (predicate_mem_writes): New.
10180         (combine_blocks): Call predicate_all_scalar_phis.  When
10181         flag_loop_if_convert_stores is set, call predicate_mem_writes.
10182         (tree_if_conversion): Call mark_sym_for_renaming when
10183         flag_loop_if_convert_stores is set.
10184         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
10185         flag_loop_if_convert_stores is set.
10186
10187 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
10188
10189         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
10190         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
10191         (pa_function_value): Make static.
10192         (override_options): Rename to...
10193         (pa_option_override): ...this. Make static.
10194         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
10195         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
10196         TARGET_OPTION_OVERRIDE): Define.
10197         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
10198         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
10199         Remove.
10200         * config/pa/pa-protos.h (override_options): Remove.
10201
10202 2010-08-24  Richard Guenther  <rguenther@suse.de>
10203
10204         PR middle-end/45379
10205         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
10206         if addr->index is NULL or zero.
10207         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
10208         TARGET_MEM_REF more properly.
10209         (indirect_ref_may_alias_decl_p): Likewise.
10210         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
10211         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
10212
10213 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
10214
10215         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
10216         (m32c_override_options): Rename to...
10217         (m32c_option_override): ...this. Make static.
10218         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
10219         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
10220         Remove.
10221         * config/m32c/m32c-protos.h (m32c_override_options,
10222         m32c_function_value_regno_p): Remove.
10223
10224 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
10225
10226         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
10227         Fix a typo in a previous commit.
10228
10229 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
10230
10231         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
10232         Pre-initialize innerloop_iters to one.
10233
10234 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
10235
10236         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
10237         existing static function global.
10238
10239         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
10240         is changed to global.
10241
10242         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
10243         may_be_nonaddressable_p on base, and don't collect this reference
10244         if the address of the base could not be taken.
10245
10246 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
10247
10248         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
10249         enable the compiler to autovectorize mathmetical functions for
10250         power7 using the Mathematical Acceleration Subsystem library.
10251
10252         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
10253         handle which vector math library we have.
10254         (rs6000_override_options): Add -mveclibabi=mass support.
10255         (rs6000_builtin_vectorized_libmass): New function to handle auto
10256         vectorizing math functions that are in the MASS library.
10257         (rs6000_builtin_vectorized_function): Call it.
10258
10259         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10260         -mveclibabi=mass.
10261
10262 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10263
10264         PR boehm-gc/34544
10265         * gthr-posix.h (__gthread_active_init): Delete.
10266         (__gthread_active_p): Do activity check here.
10267         Don't include errno.h on hppa-hpux.  Update comment.
10268         * gthr-posix95.h (__gthread_active_init): Delete.
10269         (__gthread_active_p): Do activity check here.
10270         Don't include errno.h on hppa-hpux.  Update comment.
10271         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
10272         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
10273         add -lpthread when -mt or -pthread is specified.
10274         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
10275         (LINK_GCC_C_SEQUENCE_SPEC): Define.
10276         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
10277         (stublib.c, pthread_default_stacksize_np-stub.o,
10278         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
10279         $(T)libgcc_stub.a): Add methods.
10280         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
10281         (stublib.c, pthread_default_stacksize_np-stub.o,
10282         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
10283         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10284         pthread_mutex_unlock): New stubs.
10285
10286 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
10287
10288         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
10289         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
10290         options.
10291         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
10292         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
10293         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
10294         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
10295         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
10296         "-l".
10297         * cppspec.c: Include opts.h.
10298         (lang_specific_driver): Use cl_decoded_option structures.
10299         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
10300         * doc/tm.texi: Regenerate.
10301         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
10302         (driver_handle_option): Allow driver options needing no special
10303         processing.
10304         (process_command): Decode options before call to
10305         lang_specific_driver.  Pass decoded options to
10306         lang_specific_driver.
10307         * gcc.h (lang_specific_driver): Update prototype.
10308         * gccspec.c: Include opts.h.
10309         (lang_specific_driver): Use cl_decoded_option structures.
10310         * opts-common.c (option_ok_for_language, generate_option,
10311         generate_option_input_file): New.
10312         (decode_cmdline_option): Use option_ok_for_language.
10313         (decode_cmdline_options_to_array): Use generate_option_input_file.
10314         (handle_generated_option): Use generate_option.
10315         * opts.h (generate_option, generate_option_input_file): Declare.
10316
10317 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
10318
10319         * config/mips/mips.c (mips_override_options): Rename to...
10320         (mips_option_override): ...this. Make static.
10321         (TARGET_OPTION_OVERRIDE): Define.
10322         (mips_in_small_data_p): Update comment.
10323         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
10324         (FIXED_REGISTERS): Update comment.
10325         * config/mips/mips-protos.h (mips_override_options): Remove.
10326
10327 2010-08-21  Olivier Hainque  <hainque@adacore.com>
10328
10329         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
10330
10331 2010-08-21  Olivier Hainque  <hainque@adacore.com>
10332
10333         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
10334         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
10335
10336 2010-08-20  Jan Hubicka  <jh@suse.cz>
10337
10338         * tree-pass.h (pass_ipa_cdtor_merge): New function.
10339         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
10340         heap allocated.
10341         (record_cdtor_fn): Move to ipa.c; do not test for
10342         have_ctors_dtors.
10343         (build_cdtor): Move to ipa.c; add code avoiding construction
10344         when target have ctors/dtors and there is only one ctor/dtor at given
10345         priority.
10346         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
10347         sort; reverse order of constructors.
10348         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
10349         (cgraph_finalize_function): Do not call record_cdtor_fn.
10350         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
10351         (cgraph_build_static_cdtor): Move to ipa.c.
10352         * ipa.c: Include target.h and tree-iterator.h.
10353         (cgraph_build_static_cdtor, static_ctors, static_dtors,
10354         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
10355         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
10356         pass_ipa_cdtor_merge): New.
10357         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
10358         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
10359         bounds access.
10360
10361 2010-08-20  Jan Hubicka  <jh@suse.cz>
10362
10363         PR c++/45307
10364         PR c++/17736
10365         * cgraph.h (cgraph_only_called_directly_p,
10366         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
10367         static cdtors.
10368         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
10369         are not needed.
10370         (cgraph_finalize_function): Static cdtors are reachable.
10371         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
10372
10373 2010-08-20  Jan Hubicka  <jh@suse.cz>
10374
10375         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
10376         flag_wpa.
10377         * lto-streamer-out.c (lto_output): Likewise.
10378         * passes.c (ipa_write_optimization_summaries): Initialize statement
10379         uids.
10380
10381 2010-08-20  Olivier Hainque  <hainque@adacore.com>
10382
10383         * tree.h (alias_diag_flags): New enum.
10384         (alias_pair): Add an 'emitted_diags' field.
10385         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
10386         (assemble_alias): Initialize emitted_diags of new pairs.
10387
10388 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
10389
10390         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10391         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10392         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10393         (STACK_CHECK_PROTECT): Define.
10394         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
10395         (output_probe_stack_range): Likewise.
10396         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
10397         builtin stack checking is enabled.
10398         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
10399         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10400         (probe_stack_range): New insn.
10401
10402 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
10403
10404         PR target/45336
10405         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
10406         short first.
10407
10408         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
10409         char first.
10410
10411 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10412
10413         PR target/45336
10414         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
10415         to cover zero extension into 64-bit register.
10416         (*sse2_pextrw): Likewise.
10417         (*sse4_1_pextrd_zext): New insn.
10418
10419 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
10420
10421         revert r163410, partially revert r163267.
10422         * config/rs6000/darwin.h (LIB_SPEC): Remove.
10423         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
10424         Darwin versions.
10425
10426 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10427
10428         PR middle-end/44974
10429         * builtins.c (expand_builtin): Don't optimize away
10430         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
10431
10432 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
10433
10434         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
10435         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
10436         alternative 1 of operand 2.
10437
10438 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10439             Paolo Bonzini  <bonzini@gnu.org>
10440
10441         * simplify-rtx.c (simplify_unary_operation_1): Optimize
10442         (sign_extend (zero_extend (...)) and
10443         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
10444
10445 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10446
10447         PR rtl-optimization/45353
10448         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
10449         after bb_note is a BARRIER.
10450
10451 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
10452
10453         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
10454         linking libgcc.a.
10455
10456 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
10457             Michael Matz  <matz@suse.de>
10458
10459         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
10460
10461 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
10462
10463         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
10464         (ggc_mark_roots): ...here.
10465
10466 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
10467
10468         * vec.h (FOR_EACH_VEC_ELT): Define.
10469         * c-decl.c: Use it.
10470         * cfgloop.c: Likewise.
10471         * cfgloopmanip.c: Likewise.
10472         * cgraph.c: Likewise.
10473         * cgraphunit.c: Likewise.
10474         * combine.c: Likewise.
10475         * config/bfin/bfin.c: Likewise.
10476         * config/mips/mips.c: Likewise.
10477         * config/rs6000/rs6000.c: Likewise.
10478         * dbxout.c: Likewise.
10479         * df-scan.c: Likewise.
10480         * dominance.c: Likewise.
10481         * dse.c: Likewise.
10482         * dwarf2out.c: Likewise.
10483         * except.c: Likewise.
10484         * expr.c: Likewise.
10485         * function.c: Likewise.
10486         * gcse.c: Likewise.
10487         * genattr.c: Likewise.
10488         * ggc-common.c: Likewise.
10489         * gimplify.c: Likewise.
10490         * graphite-blocking.c: Likewise.
10491         * graphite-clast-to-gimple.c: Likewise.
10492         * graphite-dependences.c: Likewise.
10493         * graphite-interchange.c: Likewise.
10494         * graphite-poly.c: Likewise.
10495         * graphite-scop-detection.c: Likewise.
10496         * graphite-sese-to-poly.c: Likewise.
10497         * graphite.c: Likewise.
10498         * haifa-sched.c: Likewise.
10499         * ifcvt.c: Likewise.
10500         * implicit-zee.c: Likewise.
10501         * ipa-prop.c: Likewise.
10502         * ipa-struct-reorg.c: Likewise.
10503         * ipa.c: Likewise.
10504         * ira-build.c: Likewise.
10505         * ira-color.c: Likewise.
10506         * ira-emit.c: Likewise.
10507         * lambda-code.c: Likewise.
10508         * loop-invariant.c: Likewise.
10509         * loop-unroll.c: Likewise.
10510         * lower-subreg.c: Likewise.
10511         * lto-cgraph.c: Likewise.
10512         * lto-opts.c: Likewise.
10513         * lto-streamer-in.c: Likewise.
10514         * lto-streamer-out.c: Likewise.
10515         * lto-streamer.c: Likewise.
10516         * lto-symtab.c: Likewise.
10517         * matrix-reorg.c: Likewise.
10518         * opts.c: Likewise.
10519         * predict.c: Likewise.
10520         * print-tree.c: Likewise.
10521         * sdbout.c: Likewise.
10522         * sel-sched-dump.c: Likewise.
10523         * sel-sched-ir.c: Likewise.
10524         * sel-sched.c: Likewise.
10525         * sese.c: Likewise.
10526         * stor-layout.c: Likewise.
10527         * tree-cfg.c: Likewise.
10528         * tree-cfgcleanup.c: Likewise.
10529         * tree-chrec.c: Likewise.
10530         * tree-data-ref.c: Likewise.
10531         * tree-emutls.c: Likewise.
10532         * tree-inline.c: Likewise.
10533         * tree-into-ssa.c: Likewise.
10534         * tree-loop-distribution.c: Likewise.
10535         * tree-loop-linear.c: Likewise.
10536         * tree-mudflap.c: Likewise.
10537         * tree-outof-ssa.c: Likewise.
10538         * tree-parloops.c: Likewise.
10539         * tree-predcom.c: Likewise.
10540         * tree-pretty-print.c: Likewise.
10541         * tree-scalar-evolution.c: Likewise.
10542         * tree-ssa-live.c: Likewise.
10543         * tree-ssa-loop-im.c: Likewise.
10544         * tree-ssa-loop-ivcanon.c: Likewise.
10545         * tree-ssa-loop-ivopts.c: Likewise.
10546         * tree-ssa-loop-manip.c: Likewise.
10547         * tree-ssa-loop-niter.c: Likewise.
10548         * tree-ssa-loop-prefetch.c: Likewise.
10549         * tree-ssa-phiprop.c: Likewise.
10550         * tree-ssa-pre.c: Likewise.
10551         * tree-ssa-reassoc.c: Likewise.
10552         * tree-ssa-sccvn.c: Likewise.
10553         * tree-ssa-structalias.c: Likewise.
10554         * tree-ssa.c: Likewise.
10555         * tree-vect-data-refs.c: Likewise.
10556         * tree-vect-loop-manip.c: Likewise.
10557         * tree-vect-loop.c: Likewise.
10558         * tree-vect-patterns.c: Likewise.
10559         * tree-vect-slp.c: Likewise.
10560         * tree-vect-stmts.c: Likewise.
10561         * tree-vrp.c: Likewise.
10562         * tree.c: Likewise.
10563         * value-prof.c: Likewise.
10564         * var-tracking.c: Likewise.
10565         * varasm.c: Likewise.
10566         * vmsdbgout.c: Likewise.
10567
10568 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
10569             Richard Guenther  <richard.guenther@gmail.com>
10570
10571         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
10572         copy the src value and return a copy.
10573         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
10574         (C++ Volatiles): Adjust to describe C++ semantics only.
10575
10576 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
10577
10578         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
10579         be zero or nonzero.
10580         * doc/tm.texi: Regenerate.
10581         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
10582         * df-scan.c (df_get_exit_block_use_set), reginfo.c
10583         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
10584         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
10585         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
10586         to 1.
10587
10588 2010-08-20  Olivier Hainque  <hainque@adacore.com>
10589
10590         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
10591         an extra nop past a sibling call at the very end.
10592
10593 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
10594
10595         PR bootstrap/45350
10596         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
10597         a comment.
10598
10599 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
10600
10601         * target.def (function_arg, function_incoming_arg): Remove const
10602         qualifier on CUMULATIVE_ARGS parameter.
10603         * targhooks.h (default_function_arg, default_function_incoming_arg):
10604         Likewise.
10605         * targhooks.c (default_function_arg, default_function_incoming_arg):
10606         Likewise.
10607         * config/i386/i386.c (ix86_function_arg): Likewise.
10608
10609 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
10610
10611         PR target/45336
10612         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
10613         SIGN_EXTENDs or ZERO_EXTENDs.
10614
10615 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
10616
10617         PR target/42172
10618         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
10619         Take its cost into account if nonnull.
10620         (insn_a_feeds_b): New static function.
10621         (combine_instructions): Look for four-insn combinations.
10622         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
10623         them into account when computing all_adjacent and looking for other
10624         uses.
10625         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
10626         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
10627         (try_combine): New arg I0.  Handle four-insn combinations.
10628         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
10629         like ELIM_I1.
10630
10631 2010-08-19  Jason Merrill  <jason@redhat.com>
10632
10633         PR c++/45307
10634         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
10635         if ctor is empty.
10636         (gimplify_modify_expr_rhs): Adjust.
10637
10638 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
10639
10640         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
10641         bitmap_bit_p.
10642         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
10643         * dominance.c (iterate_fix_dominators): Likewise.
10644         * dse.c (set_usage_bits): Likewise.
10645         (set_position_unneeded, record_store): Likewise.
10646         * gimple-fold.c (get_maxval_strlen): Likewise.
10647         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
10648         * ipa-inline.c (update_caller_keys): Likewise.
10649         * ipa-split.c (verify_non_ssa_vars): Likewise.
10650         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
10651         (close_type_exposed_parameter, close_type_full_escape): Likewise.
10652         (close_addressof_down): Likewise.
10653         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
10654         (setup_allocno_left_conflicts_size): Likewise.
10655         (ira_reassign_conflict_allocnos): Likewise.
10656         (ira_reassign_pseudos): Likewise.
10657         * ira-emit.c (change_loop): Likewise.
10658         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
10659         * lto-streamer-out.c (write_symbol): Likewise.
10660         * predict.c (expr_expected_value_1): Likewise.
10661         * regstat.c (regstat_bb_compute_ri): Likewise.
10662         * sel-sched.c (create_block_for_bookkeeping): Likewise.
10663         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
10664         * stmt.c (expand_case): Likewise.
10665         * tree-eh.c (emit_eh_dispatch): Likewise.
10666         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
10667         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
10668         Likewise.
10669         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
10670         (rdg_build_components): Likewise.
10671         * tree-object-size.c (collect_object_sizes_for): Likewise.
10672         * tree-sra.c (convert_callers): Likewise.
10673         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
10674         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
10675         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
10676
10677 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
10678
10679         * config/i386/i386.md (*lea_1): Use P mode iterator.
10680         (lea add splitter): Also handle DImode operands.
10681         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
10682         predicate.  Do not use ix86_lea_for_add_ok.
10683         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
10684         (lea ashift splitter): Also handle DImode operands.
10685         (DImode lea ashift splitter): Remove splitter.
10686
10687 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
10688
10689         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
10690         ix86_binary_operator_ok.
10691
10692 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
10693
10694         PR rtl-optimization/44691
10695         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
10696         is not a register.
10697
10698 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
10699
10700         PR target/45070
10701         * config/arm/arm.c (arm_output_epilogue): Ensure that return
10702          value of size 1-3 is handled correctly.
10703
10704 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
10705
10706         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
10707         type for the conditional has wide enough range.
10708
10709 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
10710
10711         PR target/45327
10712         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
10713         ix86_binary_operator_ok.
10714
10715 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
10716
10717         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
10718         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
10719         code to output insn mnemonic.  Fix comment.
10720         (*addsi_1_zext): Add r-r-0 alternative 1.
10721         <TYPE_LEA>: Split insn to lea.
10722         <default>: Handle alternative 1.
10723         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
10724         multi-level if_then_else RTX to set "type" attribute.
10725         <default>: Handle alternative 2.
10726         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
10727         Use cond RTX instead of multi-level if_then_else RTX to set
10728         "type" attribute.
10729         <default>: Handle alternatives 2 and 4.
10730         (lea splitters): Update calls to ix86_lea_for_add_ok.
10731
10732         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
10733         argument.
10734         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
10735
10736 2010-08-18  Richard Guenther  <rguenther@suse.de>
10737
10738         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
10739         use operand helpers.
10740
10741 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
10742
10743         PR middle-end/45292
10744         * optabs.c (expand_bool_compare_and_swap): Expand pending
10745         pops before trying the optab.
10746
10747 2010-08-18  Yao Qi  <yao@codesourcery.com>
10748
10749         PR target/45094
10750         * config/arm/arm.c (output_move_double): Fix typo generating
10751         instructions ('ldr'->'str').
10752
10753 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10754
10755         PR rtl-optimization/42575
10756         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
10757         live ranges.
10758
10759 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
10760
10761         * config/arm/arm-protos.h (arm_expand_sync): New.
10762         (arm_output_memory_barrier, arm_output_sync_insn): New.
10763         (arm_sync_loop_insns): New.
10764         * config/arm/arm.c (FL_ARCH7): New.
10765         (FL_FOR_ARCH7): Include FL_ARCH7.
10766         (arm_arch7): New.
10767         (arm_print_operand): Support %C markup.
10768         (arm_legitimize_sync_memory): New.
10769         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
10770         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
10771         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
10772         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
10773         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
10774         (arm_process_output_sync_insn, arm_output_sync_insn): New.
10775         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
10776         * config/arm/arm.h (struct arm_sync_generator): New.
10777         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
10778         (TARGET_HAVE_MEMORY_BARRIER): New.
10779         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
10780         * config/arm/arm.md: Include sync.md.
10781         (UNSPEC_MEMORY_BARRIER): New.
10782         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
10783         (VUNSPEC_SYNC_OP):New.
10784         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
10785         (sync_result, sync_memory, sync_required_value): New attributes.
10786         (sync_new_value, sync_t1, sync_t2): Likewise.
10787         (sync_release_barrier, sync_op): Likewise.
10788         (length): Add logic to length attribute defintion to call
10789         arm_sync_loop_insns when appropriate.
10790         * config/arm/sync.md: New file.
10791
10792 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
10793
10794         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
10795         ENABLE_TREE_CHECKING.
10796         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
10797         and GCC >= 4.3.
10798
10799 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
10800
10801         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
10802         or optimizing for size, always avoid lea if possible.
10803
10804         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
10805
10806 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
10807
10808         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
10809         Dunmmy function with NULL return unless the target is
10810         OSX >= 10.6 (Darwin10).
10811
10812 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
10813
10814         * gcc.c (spec_function): Add remove-outfile.
10815         (remove_outfile_spec_function): New function.
10816         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
10817         * invoke.texi (replace-outfile): Document.
10818
10819 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
10820
10821         PR target/45296
10822         * reginfo.c (globalize_reg): Reject stack registers.
10823
10824 2010-08-17  Richard Guenther  <rguenther@suse.de>
10825
10826         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
10827         list of conditional equivalences.
10828         (free_all_edge_infos): Adjust.
10829         (record_equivalences_from_incoming_edge): Likewise.
10830         (record_cond): Likewise.
10831         (build_and_record_new_cond): Likewise.
10832         (record_conditions): Likewise.
10833         (dom_opt_leave_block): Likewise.
10834
10835 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
10836
10837         * doc/invoke.texi (ms-extension): Add documentation.
10838
10839 2010-08-17  Richard Guenther  <rguenther@suse.de>
10840
10841         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
10842
10843 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
10844
10845         PR c/40563
10846         * c-decl.c (diagnose_uninitialized_cst_member): New function.
10847         (finish_decl): Use it to issue a -Wc++-compat warning about
10848         uninitialized const field in struct or union.
10849
10850         (finish_struct): Use strip_array_types.
10851
10852 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
10853
10854         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
10855         functions.
10856         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
10857         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
10858         call block_nreverse here.
10859         (blocks_nreverse): Rename decl temporary to block.
10860
10861 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
10862
10863         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
10864         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
10865         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
10866         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
10867         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
10868         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
10869         thumb2_iorsi3): Delete.
10870         (orsi_notsi_si): No longer a named pattern.
10871         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
10872         * config/arm/predicates.md (shift_amount_operand): New.
10873         (mult_operator): New.
10874         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
10875         attr enabled): New.
10876         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
10877         arch matches t2.
10878         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
10879         (not_shiftsi_compare0): Likewise, renamed from
10880         arm_notsi_shiftsi_compare0.
10881         (not_shiftsi_compare0_scratch): Likweise, renamed from
10882         arm_notsi_shiftsi_compare0_scratch.
10883         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
10884         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
10885         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
10886         so that the register alternative is disabled when the shift_operator
10887         is MULT.  Use "M" as the constraint for constants.
10888         (arith_shiftsi splitter): Enable for TARGET_32BIT.
10889         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
10890         constraint for constants.
10891         (arith_shiftsi_compare0_scratch): Likewise.
10892         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
10893         Handle Thumb2 alternative.
10894
10895 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
10896
10897         * doc/options.texi (NoDriverArg): Document.
10898         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
10899         -MDX and -MMDX.
10900         * opt-functions.awk (switch_flags): Handle NoDriverArg.
10901         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
10902         marking for CL_NO_DRIVER_ARG options when in the driver.
10903         * opts.h (CL_NO_DRIVER_ARG): Define.
10904         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10905         CL_COMMON): Update values.
10906
10907 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
10908
10909         * common.opt: Add driver options.
10910         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
10911         * doc/options.texi (Driver, RejectDriver): Document.
10912         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
10913         print_prog_name, print_multi_directory, print_sysroot,
10914         print_multi_os_directory, print_multi_lib,
10915         print_sysroot_headers_suffix, report_times, combine_flag,
10916         use_pipes, wrapper_string): Remove.
10917         (save_switch, driver_unknown_option_callback,
10918         driver_wrong_lang_callback, driver_post_handling_callback,
10919         driver_handle_option): New.
10920         (spec_lang, last_language_n_infiles): Make file-scope static
10921         instead of local to process_command.
10922         (process_command): Use decode_cmdline_options_to_array and
10923         read_cmdline_option for option processing.  Compute have_c in
10924         prescan of decoded options.
10925         * opt-functions.awk (switch_flags): Handle Driver and
10926         RejectDriver.
10927         (var_type, var_type_struct): Handle Separate options as generating
10928         const char * variables.
10929         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
10930         CL_TARGET to be passed by caller if required.
10931         (decode_cmdline_options_to_array): Update comment.
10932         * opts.c (complain_wrong_lang): Handle options only valid for the
10933         driver.
10934         (decode_options): Update call to decode_cmdline_options_to_array.
10935         (print_filtered_help): Ignore driver-only options.
10936         (print_specific_help): Ignore CL_DRIVER.
10937         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
10938         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
10939         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
10940         Update values.
10941
10942 2010-08-16  Richard Guenther  <rguenther@suse.de>
10943
10944         * tree-cfg.c (verify_types_in_gimple_reference): Verify
10945         TARGET_MEM_REF a bit.
10946         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
10947         (create_mem_ref_raw): Always create TMR_OFFSET, store the
10948         alias pointer type via it.
10949         (copy_mem_ref_info): Adjust.
10950         (maybe_fold_tmr): Likewise.
10951         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
10952         (reference_alias_ptr_type): Likewise.
10953         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
10954         adjust documentation of TMR_OFFSET operand.
10955         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
10956         use the alias pointer type.
10957         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
10958         initialize mem attrs but the TMR itself.
10959         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
10960         similar to MEM_REF.
10961         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
10962         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
10963         (unshare_and_remove_ssa_names): Likewise.
10964         (copy_ref_info): Adjust.
10965         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
10966         TARGET_MEM_REF case.
10967         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
10968         at TMR_ORIGINAL.
10969         * tree.h (TMR_ORIGINAL): Remove.
10970         * gimple.c (get_base_address): For TARGET_MEM_REF with a
10971         symbol return that.
10972         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
10973         with a symbol.
10974         (get_addr_base_and_unit_offset): Likewise.
10975         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
10976         TARGET_MEM_REFs.
10977         (indirect_ref_may_alias_decl_p): Likewise.
10978         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
10979
10980 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
10981
10982         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
10983         with GCC version 4.6, the default setting (when not optimizing
10984         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
10985         been changed to -fomit-frame-pointer.
10986
10987 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
10988
10989         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
10990         Darwin10.  Do not link libgcc.a for Darwin >= 9.
10991
10992 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
10993
10994         * doc/invoke.texi (Warning Options): Fix terminology and markup
10995         in the description of how unknown warning options are handled.
10996
10997 2010-08-15  Ira Rosen  <irar@il.ibm.com>
10998
10999         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
11000         in basic blocks.
11001         (vect_supportable_dr_alignment): Check alignment for basic blocks.
11002         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
11003         data references.
11004         (vect_bb_vectorization_profitable_p): New function.
11005         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
11006         check if it's worthwhile to vectorize the basic block.
11007
11008 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
11009
11010         * reload.h (register_move_cost, memory_move_secondary_cost,
11011         secondary_reload_class): Adjust prototype.
11012         * rtl.h (reg_class_subset_p): Adjust prototype.
11013         * reload.c (secondary_reload_class): Change arguments type from
11014         enum reg_class to reg_class_t. Change result type to reg_class_t.
11015         * reginfo.c (register_move_cost, reg_class_subset_p): Change
11016         arguments type from enum reg_class to reg_class_t.
11017         (memory_move_secondary_cost): Change arguments type from
11018         enum reg_class to reg_class_t. Change type of saved_flags to
11019         reg_class_t.
11020
11021         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11022         Remove macros.
11023         (mips_cost): Remove.
11024         (struct mips_rtx_cost_data): Moved to mips.c.
11025         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
11026         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
11027         (mips_cost): Make static.
11028         (mips_canonicalize_move_class): Change argument type to reg_class_t.
11029         Change result type to reg_class_t.
11030         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
11031         type from enum reg_class to reg_class_t.
11032         (mips_register_move_cost): Make static. Change arguments
11033         type from enum reg_class to reg_class_t.
11034         (mips_memory_move_cost): New function.
11035         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
11036
11037 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
11038
11039         PR rtl-optimization/43358
11040         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
11041         of a single hard register, using simplify_subreg_regno to decide
11042         what that register should be.
11043
11044 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
11045
11046         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
11047         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
11048         (loongson_pmull<V_suffix>): Rename to...
11049         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
11050
11051 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
11052
11053         * configure.ac: Enable -fomit-frame-pointer on darwin
11054         which support dwarf2.
11055         * config/i386/i386.c (override_options): Same.
11056
11057 2010-08-13  Jie Zhang  <jie@codesourcery.com>
11058
11059         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
11060
11061 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
11062
11063         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
11064         -MMD.
11065
11066 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
11067
11068         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
11069         up dot_prod pattern searching if a stmt is outside the loop.
11070
11071 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
11072             Uros Bizjak  <ubizjak@gmail.com>
11073
11074         * config.gcc: Handle --enable-frame-pointer.
11075
11076         * configure.ac: Add --enable-frame-pointer.
11077         * configure: Regenerated.
11078
11079         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
11080         (override_options): If not configured with --enable-frame-pointer,
11081         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
11082         optimizing for size), -fasynchronous-unwind-tables and
11083         -maccumulate-outgoing-args by default.
11084
11085 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
11086
11087         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
11088
11089         PR middle-end/45262
11090         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
11091         -a overflows.  Normalize the range.
11092
11093 2010-08-12  Richard Guenther  <rguenther@suse.de>
11094
11095         PR tree-optimization/45232
11096         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
11097         for types with undefined overflow.
11098         (reassociate_bb): Allow re-associating of bit and min/max
11099         operations for types with undefined overflow.
11100         * tree-ssa-forwprop.c (associate_plusminus): New function.
11101         (tree_ssa_forward_propagate_single_use_vars): Call it.
11102
11103 2010-08-12  Richard Guenther  <rguenther@suse.de>
11104
11105         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
11106         * tree-ssa-alias.c (get_ptr_info): Move ...
11107         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
11108         align and misalign fields conservatively.
11109         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
11110         derive alignment information.
11111         (evaluate_stmt): Derive alignment information from memory
11112         allocation functions.
11113         * tree.h (get_pointer_alignment): Make unsigned.
11114         * builtins.c (get_object_alignment): Use alignment information we
11115         have computed for pointers.
11116         (get_pointer_alignment): Likewise.  Make conservative, return
11117         and unsigned value.
11118         (expand_builtin_strlen): Adjust.
11119         (expand_builtin_memcmp): Likewise.
11120         (expand_builtin_strcmp): Likewise.
11121         (expand_builtin_strncmp): Likewise.
11122         (get_builtin_sync_mem): Use at least mode alignment.
11123         (fold_builtin_memset): Adjust.
11124         (fold_builtin_memory_op): Likewise.
11125         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
11126         information also dump pointer alignment knowledge.
11127         (dump_gimple_stmt): Likewise.
11128
11129 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
11130
11131         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
11132         (EMPTY_FIELD_BOUNDARY): Remove.
11133         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
11134
11135 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
11136
11137         PR debug/45259
11138         * caller-save.c (save_call_clobbered_regs): Only swap notes with
11139         DEBUG_INSNs if n_regs_saved.
11140
11141 2010-08-12  Wei Guozhi  <carrot@google.com>
11142
11143         PR target/44999
11144         * config/arm/arm.md (andsi3): Change to zero extension if possible.
11145         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
11146
11147 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
11148
11149         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
11150
11151         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
11152
11153 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11154
11155         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
11156         the case removed in the previous patch, when the only phi argument
11157         is defined in the same loop as the phi node itself.  Handle it
11158         separately from the invariant case by both propagating it outside
11159         the region and replacing the phi node with an assign.
11160
11161 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11162
11163         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
11164         constant phi nodes with one argument are is_gimple_min_invariant
11165         and SSA_NAME_IS_DEFAULT_DEF.
11166
11167 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11168
11169         * graphite-cloog-util.c (oppose_constraint):
11170         Extend loop counter's value range (CLOOG_ORG).
11171         (cloog_matrix_to_ppl_constraint): Same.
11172         (new_Constraint_System_from_Cloog_matrix): Same.
11173         * graphite-cloog-compat.h (matrix_num_type): New.
11174
11175 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11176
11177         * graphite.c (graphite_initialize): Do not initialize
11178         CLooG and initialize the Parma Polyhedra Library
11179         manually when using CLOOG_ORG.
11180         (graphite_finalize): Do not finalize CLooG and finalize
11181         the Parma Polyhedra Library manually when using CLOOG_ORG.
11182         * graphite-cloog-compat.h (cloog_initialize): Hide function
11183         when using CLOOG_ORG.
11184         (cloog_finalize): Same.
11185
11186 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11187
11188         * graphite-clast-to-gimple.c (free_scattering): Change
11189         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
11190         (CLOOG_ORG).
11191         (build_cloog_prog): Same.
11192         * graphite-cloog-compat.h (cloog_domain): Removed.
11193         (cloog_scattering): New.
11194         (cloog_set_domain): Removed.
11195         (cloog_set_scattering): New.
11196         (cloog_next_domain): Removed.
11197         (cloog_next_scattering): New.
11198         (cloog_set_next_domain): Removed.
11199         (cloog_set_next_scattering): New.
11200         (CloogScatteringList): New.
11201         (CloogScattering): New.
11202         (cloog_scattering_free): New.
11203         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
11204         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
11205         New.
11206
11207 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11208
11209         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
11210         CloogState.
11211         (set_cloog_options): Same.
11212         (print_clast_stmt): Same.
11213         (scop_to_clast): Same.
11214         (print_generated_program): Same.
11215         (gloog): Same.
11216         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
11217         (scop_to_clast): Extend with CloogState.
11218         * graphite-cloog-util.c: Include graphite-cloog-compat.h
11219         (new_Cloog_Domain_from_ppl_Polyhedron):
11220         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
11221         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
11222         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11223         * graphite-cloog-util.h (build_cloog_prog): Same.
11224         * graphite-cloog-copat.h (build_cloog_prog): New.
11225         (CloogState): New.
11226         (cloog_state_malloc): New.
11227         (cloog_state_free): New.
11228         (cloog_loop_malloc): New.
11229         (cloog_options_malloc): New.
11230         (cloog_statement_alloc): New.
11231         (cloog_domain_from_cloog_matrix): New.
11232         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
11233         (new_Cloog_Domain_from_ppl_Polyhedron): New.
11234
11235 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11236
11237         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
11238         type of NAME now depends on used CLooG version.
11239         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
11240         (gcc_type_for_clast_expr): Same.
11241         (print_clast_stmt): Replace pprint with clast_pprint.
11242         * graphite-cloog-compat.h: Provide compatibility macros for
11243         CLooG Legacy.
11244         (clast_name_p): New.
11245         (clast_expr_term): New.
11246         (clast_expr_red): New.
11247         (clast_expr_bin): New.
11248         (clast_pprint): New.
11249
11250 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11251
11252         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
11253         compatible to newer CLooG releases (CLOOG_ORG).
11254         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
11255         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
11256         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
11257         (build_cloog_prog) : New.
11258         (cloog_program_extract_scalars): New.
11259         (cloog_program_scatter): New.
11260
11261 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11262
11263         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
11264         conditionally (CLOOG_ORG).
11265         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
11266         (cloog_statement_usr): New.
11267         (cloog_domain): Same.
11268         (cloog_set_domain): Same.
11269         (cloog_next_domain): Same.
11270         (cloog_set_next_domain): Same.
11271         (cloog_program_nb_scattdims): Same.
11272         (cloog_program_set_nb_scattdims): Same.
11273         (cloog_program_names): Same.
11274         (cloog_program_set_names): Same.
11275         (cloog_program_set_context): Same.
11276         (cloog_program_set_loop): Same.
11277         (cloog_program_blocklist): Same.
11278         (cloog_program_set_blocklist): Same.
11279         (cloog_program_scaldims): Same.
11280         (cloog_program_set_scaldims): Same.
11281         (cloog_names_nb_parameters): Same.
11282         (cloog_names_set_nb_parameters): Same.
11283         (cloog_names_parameters): Same.
11284         (cloog_names_set_parameters): Same.
11285         (cloog_names_set_nb_iterators): Same.
11286         (cloog_names_set_iterators): Same.
11287         (cloog_names_set_nb_scattering): Same.
11288         (cloog_names_set_scattering): Same.
11289         (cloog_statement_set_usr): Same.
11290         (cloog_loop_set_next): Same.
11291         (cloog_loop_set_domain): Same.
11292         (cloog_loop_set_block): Same.
11293         (cloog_block_list_next): Same.
11294         (cloog_block_list_set_next):
11295         (cloog_block_list_set_block): Same.
11296
11297 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11298
11299         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
11300         a bool.
11301         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
11302         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
11303         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
11304         when something has been changed.
11305         (rewrite_commutative_reductions_out_of_ssa): Same.
11306
11307 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11308
11309         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
11310         handle the case when def is in the sese region.
11311         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
11312         for invariant expressions.
11313         (rewrite_cross_bb_phi_deps): Removed.
11314         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
11315         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
11316         rewrite_cross_bb_phi_deps.
11317
11318 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11319
11320         * graphite-sese-to-poly.c
11321         (rewrite_commutative_reductions_out_of_ssa_loop): Call
11322         scev_analyzable_p only on is_gimple_reg
11323
11324 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11325
11326         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
11327         (rewrite_close_phi_out_of_ssa): Propagate constant values or
11328         parametric expressions outside the scop region.
11329         (rewrite_cross_bb_scalar_deps): Same.
11330         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
11331
11332 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11333
11334         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
11335         SSA_NAME_DEF_STMT only on SSA_NAMEs.
11336
11337 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11338
11339         * tree-scalar-evolution.c (instantiate_scev_name): Do not
11340         instantiate default definitions.
11341
11342 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
11343             Sebastian Pop  <sebastian.pop@amd.com>
11344
11345         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
11346         (loop_exits_from_bb_p): New.
11347         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
11348         (loop_exits_from_bb_p): Declared.
11349         * graphite-scop-detection.c (scopdet_basic_block_info): Call
11350         loop_exits_to_bb_p.
11351
11352 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11353
11354         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
11355         extra parameter for the region.  Call scev_analyzable_p.
11356         (rewrite_reductions_out_of_ssa): Update call to
11357         rewrite_close_phi_out_of_ssa.
11358         (rewrite_cross_bb_phi_deps): Same.
11359         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
11360         parameter for the region.  Call scev_analyzable_p.
11361         (rewrite_commutative_reductions_out_of_ssa): Update call to
11362         rewrite_commutative_reductions_out_of_ssa_loop.
11363
11364 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11365
11366         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
11367
11368 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11369
11370         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
11371         SSA scalar phi nodes that can be scev_analyzable_p.
11372
11373 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11374
11375         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
11376         handle SSA_NAME_IS_DEFAULT_DEF.
11377
11378 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11379
11380         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
11381
11382 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11383
11384         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
11385         case non close-phi nodes with one argument.
11386
11387 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11388
11389         * sese.h (scev_analyzable_p): Scevs could be expressions without
11390         chrecs and still be scev_analyzable_p.
11391
11392 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11393
11394         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11395
11396 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11397
11398         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
11399         * cfgloop.h (struct loop): Remove single_iv field.
11400         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
11401         (scop_canonicalize_loops): Removed.
11402         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
11403         over all the loop phi nodes in loop->header.
11404         (build_poly_scop): Remove use of scop_canonicalize_loops.
11405
11406 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11407
11408         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
11409         handle GIMPLE_CALL.
11410
11411 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11412
11413         * tree-chrec.c (chrec_apply): Should only apply to the specified
11414         variable.  Also handle multivariate chains of recurrences that
11415         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
11416
11417 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11418
11419         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
11420         (debug_clast_name_indexes_1): Removed.
11421         (debug_clast_name_indexes): Removed.
11422         (pbb_to_depth_to_oldiv): Removed.
11423         (build_iv_mapping): Replace the use of rename_map with iv_map.
11424         (translate_clast_user): Remove uses of rename_map.  Allocate and
11425         free iv_map.
11426         (translate_clast_for_loop): Remove uses of rename_map.
11427         (translate_clast_for): Same.
11428         (translate_clast_guard): Same.
11429         (translate_clast): Same.
11430         (gloog): Same.
11431         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
11432         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
11433         * sese.c (set_rename): Now static.
11434         (rename_variables_in_stmt): Removed.
11435         (rename_uses): New.
11436         (is_parameter): Removed.
11437         (is_iv): Removed.
11438         (expand_scalar_variables_call): Removed.
11439         (expand_scalar_variables_ssa_name): Removed.
11440         (expand_scalar_variables_expr): Removed.
11441         (expand_scalar_variables_stmt): Removed.
11442         (expand_scalar_variables): Removed.
11443         (rename_variables): Removed.
11444         (remove_condition): Removed.
11445         (get_true_edge_from_guard_bb): Removed.
11446         (get_false_edge_from_guard_bb): Removed.
11447         (struct igp): Removed.
11448         (default_before_guard): Removed.
11449         (convert_for_phi_arg): Removed.
11450         (add_guard_exit_phis): Removed.
11451         (insert_guard_phis): Removed.
11452         (graphite_copy_stmts_from_block): Now also uses iv_map and a
11453         region.  Do not copy conditions.  Do not copy induction variables.
11454         Call rename_uses.
11455         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
11456         the translated statement.  Use the iv_map for the induction
11457         variable renaming.
11458         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
11459         (set_rename): Removed declaration.
11460         (scev_analyzable_p): ...here.
11461         * tree-chrec.c (chrec_apply_map): New.
11462         * tree-chrec.h (chrec_apply_map): Declared.
11463
11464 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11465
11466         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
11467         insert_loop_close_phis.
11468         * sese.c (name_defined_in_loop_p): Removed.
11469         (expr_defined_in_loop_p): Removed.
11470         (alive_after_loop): Removed.
11471         (close_phi_not_yet_inserted_p): Removed.
11472         (struct alep): Removed.
11473         (add_loop_exit_phis): Removed.
11474         (insert_loop_close_phis): Removed.
11475
11476 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11477
11478         * graphite-cloog-util.c
11479         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
11480         * graphite-poly.c
11481         (psct_scattering_dim_for_loop_depth): Same.
11482
11483 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11484
11485         * graphite-cloog-util.h: Added cloog.h.
11486         * graphite-blocking.c: Removed cloog.h.
11487         * graphite-dependences.c: Same.
11488         * graphite-interchange.c: Same.
11489         * graphite-poly.c: Same.
11490         * graphite-ppl.c: Same.
11491         * graphite-scop-detection.c: Same.
11492         * graphite-sese-to-poly.c:
11493         Removed cloog.h.
11494         Removed graphite-clast-to-gimple.h.
11495         (check_poly_representation): Removed (unused).
11496         * graphite-sese-to-poly.h
11497         (check_poly_representation): Removed (unused).
11498
11499 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11500
11501         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
11502         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
11503         (graphite-cloog-util.o): New.
11504         (graphite-ppl.o): Added graphite-cloog-util.h.
11505         * graphite-clast-to-gimple.c:
11506         Added graphite-cloog-util.h to include statements.
11507         * graphite-cloog-util.c: New.
11508         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
11509         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11510         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11511         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11512         (insert_constraint_into_matrix): Same.
11513         (ppl_Constrain_System_number_of_constraints): Same.
11514         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11515         (oppose_constraint): Same.
11516         (cloog_matrix_to_ppl_constraint): Same.
11517         (new_Constraint_System_from_Cloog_Matrix): Same.
11518         * graphite-cloog-util.h: New.
11519         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
11520         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11521         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11522         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11523         (insert_constraint_into_matrix): Same.
11524         * graphite-ppl.c:
11525         Added graphite-cloog-util.h to include statements.
11526         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
11527         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11528         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11529         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11530         (insert_constraint_into_matrix): Same.
11531         (ppl_Constrain_System_number_of_constraints): Same.
11532         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11533         (oppose_constraint): Same.
11534         (cloog_matrix_to_ppl_constraint): Same.
11535         (new_Constraint_System_from_Cloog_Matrix): Same.
11536         * graphite-ppl.h:
11537         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
11538         graphite-cloog-util.h.
11539         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11540         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11541         (new_C_Polyhedron_from_Cloog_Matrix): Same.
11542         (insert_constraint_into_matrix): Same.
11543
11544 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
11545
11546         * graphite-clast-to-gimple.c
11547         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
11548         (precision_for_interval): Same.
11549         (gcc_type_for_interval): Same.
11550         (compute_type_for_level): Same.
11551         * graphite-interchange.c
11552         (lst_interchange_profitable_p): Same.
11553         * graphite-poly.c
11554         (psct_scattering_dim_for_loop_depth): Same.
11555         * graphite-ppl.c
11556         (ppl_max_for_le_pointset): Same.
11557         (ppl_min_for_le_pointset): Same.
11558
11559 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11560
11561         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
11562         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
11563
11564 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11565
11566         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
11567         rewrite_close_phi_out_of_ssa.
11568
11569 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11570
11571         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
11572
11573 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11574
11575         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
11576         rename_map.
11577         * sese.c (debug_rename_map): Same.
11578         (get_rename): Same.
11579         (set_rename): Same.
11580         (rename_variables_in_stmt): Same.
11581         (expand_scalar_variables_call): Same.
11582         (expand_scalar_variables_ssa_name): Same.
11583         (expand_scalar_variables_expr): Same.
11584         (expand_scalar_variables_stmt): Same.
11585         (expand_scalar_variables): Same.
11586         (rename_variables): Same.
11587         (graphite_copy_stmts_from_block): Same.
11588         (copy_bb_and_scalar_dependences): Same.
11589
11590 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11591
11592         * graphite-clast-to-gimple.c (copy_renames): Removed.
11593         (translate_clast_for): Do not call copy_renames.
11594         (translate_clast_guard): Same.
11595
11596 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11597
11598         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
11599         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
11600         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
11601         before rewrite_cross_bb_scalar_deps.
11602
11603 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11604
11605         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
11606         Early return in when flag_associative_math is not set.
11607
11608 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11609
11610         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
11611         of SSA copies on edges except for loop->latch.
11612
11613 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11614
11615         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
11616         Split out of rewrite_reductions_out_of_ssa.
11617         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
11618         Declared.
11619         * graphite.c (graphite_transform_loops): Call it.
11620
11621 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11622
11623         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
11624
11625 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
11626
11627         * dbgcnt.def (graphite_scop): New counter.
11628         * graphite.c: Include dbgcnt.h.
11629         (graphite_transform_loops): Use new counter to limit transformations.
11630         * Makefile.in (graphite.o): Depend on DBGCNT_H.
11631
11632 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11633
11634         * passes.c (init_optimization_passes): Add pass_graphite.
11635         Schedule a pass_copy_prop before pass_graphite_transforms.
11636         * timevar.def (TV_GRAPHITE): Declared.
11637         * tree-pass.h (pass_graphite): Declared.
11638         * tree-ssa-loop.c (pass_graphite): New.
11639
11640 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11641
11642         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
11643         Remove calls to rename_nb_iterations and rename_sese_parameters.
11644         * graphite-clast-to-gimple.h (gloog): Update declaration.
11645         * graphite.c (graphite_transform_loops): Update call to gloog.
11646         * sese.c (rename_variables_in_expr): Removed.
11647         (rename_nb_iterations): Removed.
11648         (rename_sese_parameters): Removed.
11649         * sese.h (rename_nb_iterations): Removed.
11650         (rename_sese_parameters): Removed.
11651
11652 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11653
11654         * graphite-clast-to-gimple.c (gloog): Remove call to
11655         sese_adjust_liveout_phis.
11656         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
11657         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
11658         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
11659         rewrite_phi_out_of_ssa.
11660         * sese.c (get_vdef_before_sese): Removed.
11661         (sese_adjust_vphi): Removed.
11662         (sese_adjust_liveout_phis): Removed.
11663         * sese.h (sese_adjust_liveout_phis): Removed.
11664
11665 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11666
11667         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
11668         argument for the place after which to insert the out of SSA copy.
11669         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
11670         (rewrite_phi_out_of_ssa): Same.
11671         (rewrite_cross_bb_scalar_deps): Same.
11672         (insert_copyout): Removed.
11673         (insert_copyin): Removed.
11674         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
11675         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
11676         insert_copyin.
11677
11678 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11679
11680         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
11681         (rewrite_reductions_out_of_ssa): Same.
11682         (rewrite_commutative_reductions_out_of_ssa): Same.
11683         (build_poly_scop): Do not call these functions.
11684         * graphite-sese-to-poly.h (build_poly_scop): Declared.
11685         (rewrite_reductions_out_of_ssa): Declared.
11686         (rewrite_commutative_reductions_out_of_ssa): Declared.
11687         * graphite.c (graphite_transform_loops): Call on every scop
11688         rewrite_commutative_reductions_out_of_ssa before calling
11689         rewrite_reductions_out_of_ssa and build_scop_bbs.
11690
11691 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11692
11693         * graphite-dependences.c (dot_deps): Make system call to dotty run
11694         in background.
11695         (dot_deps_stmt): Same.
11696         * graphite-poly.c (dot_lst): Same.
11697
11698 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
11699
11700         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
11701         phi_arg_in_outermost_loop.
11702         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
11703         (remove_invariant_phi): Same.
11704
11705 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
11706
11707         * target.def (output_addr_const_extra): New hook.
11708         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
11709         * doc/tm.texi: Regenerate.
11710         * targhooks.c (default_asm_output_addr_const_extra): New function.
11711         * targhooks.h (default_asm_output_addr_const_extra): Declare.
11712         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
11713         target hook.
11714
11715         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11716         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
11717         * config/i386/i386.h (output_addr_const_extra): Rename to...
11718         (i386_asm_output_addr_const_extra): ...this. Make static.
11719         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11720
11721 2010-08-11  Richard Henderson  <rth@redhat.com>
11722
11723         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
11724
11725 2010-08-11  Nick Clifton  <nickc@redhat.com>
11726
11727         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
11728         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
11729         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11730         stormy16-lib2-cmpsi.c.
11731
11732         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
11733         -O2.
11734
11735 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
11736
11737         * opts.h (struct cl_option_handler_func): Make handler take
11738         cl_decoded_option structure as parameter, not individual elements.
11739         (struct cl_option_handlers): Make callbacks take cl_decoded_option
11740         structure as parameter, not individual elements.
11741         (handle_option): Take cl_decoded_option structure as parameter,
11742         not individual elements.
11743         (handle_generated_option): Declare.
11744         * opts-common.c (handle_option): Take cl_decoded_option structure
11745         as parameter, not individual elements.  Update calls to callback
11746         and handler functions.
11747         (handle_generated_option): New.
11748         (read_cmdline_option): Update calls to callback functions and
11749         handle_option.
11750         * opts.c (common_handle_option, complain_wrong_lang,
11751         unknown_option_callback, post_handling_callback,
11752         lang_handle_option, target_handle_option): Take cl_decoded_option
11753         structure as parameter, not individual elements.
11754         (lang_handle_option, target_handle_option, common_handle_option):
11755         Assert option has at most one argument.
11756         (enable_warning_as_error): Call handle_generated_option instead of
11757         handle_option.  Do not pass -Werror argument as argument of
11758         generated option.
11759
11760 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11761
11762         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11763         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11764         (SUBWORD_BOOL_CAS): Likewise.
11765         (SUBWORD_SYNC_OP): Likewise.
11766         (SUBWORD_TEST_AND_SET): Likewise.
11767         (FETCH_AND_OP_WORD): Parenthesise INF_OP
11768         (SUBWORD_SYNC_OP): Likewise.
11769         (OP_AND_FETCH_WORD): Likewise.
11770
11771 2010-08-10  Xinliang David Li  <davidxl@google.com>
11772
11773         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
11774         compute max/min offset in address.
11775
11776 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
11777
11778         * ira-live.c: Include sbitmap.h.
11779         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
11780         Compress live ranges even more.
11781
11782 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
11783
11784         * coverage.c (ctr_labels): Delete.
11785
11786 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
11787
11788         PR bootstrap/45177
11789         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
11790         test here from arm_gen_load_multiple_1.
11791         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
11792         multiple_operation_profitable_p.
11793
11794 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
11795
11796         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
11797         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
11798
11799 2010-08-10  Richard Henderson  <rth@redhat.com>
11800
11801         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
11802         after saving registers.  Assert that SSE registers are only saved
11803         with a sufficiently aligned frame.
11804         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
11805         remove stack_realign_fp handling.
11806         (ix86_expand_prologue): Save int registers before stack_realign_fp,
11807         and do not mark the stack alignment as frame related.
11808         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
11809
11810         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
11811         saves when re-aligning the stack.
11812
11813 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
11814
11815         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
11816         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
11817         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
11818
11819 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
11820
11821         * dwarf2out.c (struct die_struct): Move die_tag to the end.
11822
11823 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
11824
11825         * config/arm/iterators.md: New file.
11826         * config/arm/arm.md: Include iterators.md.
11827         (QHSI): Move to new file.
11828         (LTUGEU, cnb, optab, ior_xor): Likewise.
11829         * config/arm/iwmmxt.md (VMMX): Move to new file.
11830         (VSHFT, MMX_char): Likewise.
11831         * config/arm/neon.md (VD): Move to new file.
11832         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
11833         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
11834         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
11835         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
11836         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
11837         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
11838         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
11839         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
11840         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
11841         (Is_d_reg, V_mode_nunits): Likewise.
11842         * config/arm/vec-common.md (VALL): Move to new file.
11843         (VALLW, VINT, VINTW): Likewise.
11844
11845 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
11846
11847         PR middle-end/45182
11848         * combine.c (make_compound_operation): Don't try to convert
11849         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
11850
11851 2010-08-10  Richard Guenther  <rguenther@suse.de>
11852
11853         * tree.h (get_object_alignment): Adjust prototype.
11854         * builtins.c (get_object_alignment): Return unsigned int,
11855         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
11856         and TARGET_MEM_REF properly.
11857         (get_pointer_alignment): Adjust.
11858         * emit-rtl.c (get_mem_align_offset): Adjust comment.
11859         (set_mem_attributes_minus_bitpos): Adjust.
11860         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
11861
11862 2010-08-10  Richard Guenther  <rguenther@suse.de>
11863
11864         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
11865         (copy_prop_visit_assignment): Simplify.
11866         (copy_prop_visit_stmt): Also visit assignments from
11867         constants.
11868         (copy_prop_visit_phi_node): Use operand_equal_p.
11869
11870 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
11871
11872         * ipa-split.c (find_split_points): Free stack.
11873
11874 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
11875
11876         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
11877         * tree.c (tree_node_kind): Delete corresponding entries.
11878
11879 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
11880
11881         * alias.c (may_alias_p): Remove unused ret.
11882
11883 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
11884
11885         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
11886         alias_sets_conflict_p.
11887         (walk_mems_1): Moved from alias.c.
11888         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
11889         in alias.c.
11890         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
11891         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
11892         * alias.c (walk_mems_2): Moved to ddg.c.
11893         (walk_mems_1): Ditto.
11894         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
11895         to ddg.c.
11896         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
11897         disambiguation.
11898         *(may_alias_p): New function to check whether two memory expression
11899         may alias or not. Currently used in buidling inter-iteration memory
11900         dependence.
11901         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
11902         (insn_alias_sets_conflict_p): Removed
11903         *rtl.h (may_alias_p): New function prototype.
11904
11905 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
11906
11907         * tree.c (nreverse): Assert that we don't have a BLOCK.
11908
11909 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
11910
11911         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
11912         * config/arm/arm.c (arm_get_pcs_model): Likewise.
11913         * config/avr/avr.c (init_cumulative_args): Likewise.
11914         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11915         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11916         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
11917         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
11918         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
11919         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11920         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
11921         * dwarf2out.c (gen_subprogram_die): Likewise.
11922         * function.c (allocate_struct_function): Likewise.
11923         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
11924         (deserves_ellipsis): Delete.
11925
11926 2010-08-09  Richard Guenther  <rguenther@suse.de>
11927
11928         * tree-ssa-copy.c (cached_last_copy_of): Remove.
11929         (valueize_val): New function.
11930         (get_last_copy_of): Remove.
11931         (set_copy_of_val): Simplify.
11932         (dump_copy_of): Likewise.
11933         (copy_prop_visit_cond_stmt): Use valueize_val.
11934         (copy_prop_visit_phi_node): Properly handle unvisited names.
11935         Drop code managing copy-of chains.
11936         (init_copy_prop): Adjust.
11937         (fini_copy_prop): Likewise.
11938         (execute_copy_prop): Remove obsolete comment.
11939
11940 2010-08-09  Richard Guenther  <rguenther@suse.de>
11941
11942         PR middle-end/44632
11943         * function.c (gimplify_parameters): Do not clear addressable
11944         bit of the original parameter.
11945
11946 2010-08-09  Richard Guenther  <rguenther@suse.de>
11947
11948         PR middle-end/45212
11949         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
11950         alignment from MEM_REF offset only if we took it from the
11951         base object.
11952
11953 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
11954
11955         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
11956
11957 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
11958
11959         * c-tree.h (build_arg_info): Declare.
11960         * c-decl.c (build_arg_info): Define.
11961         (get_parm_info): Call it.  Delete initialization code.
11962         * c-parser.c (c_parser_parms_declarator): Likewise.
11963         (c_parser_parms_list_declaractor): Likewise.
11964
11965 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
11966
11967         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
11968         (struct c_arg_info): Change type of tags field.
11969         * c-decl.c (grokdeclarator): Update for changed type of tags field.
11970         (get_parm_info): Likewise.
11971         (store_parm_decls_newstyle): Likewise.
11972
11973 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
11974
11975         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
11976         (branch_island_list): Delete.
11977         (branch_islands): Declare.
11978         (add_compiler_branch_island): Adjust for branch_islands instead of
11979         branch_island_list.
11980         (macho_branch_islands): Likewise.
11981         (no_previous_def): Likewise.
11982         (get_prev_label): Likewise.
11983
11984 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11985
11986         PR boehm-gc/34544
11987         * gthr-posix.h (__gthread_start): Delete.
11988         (__gthread_active_init): Use pthread_default_stacksize_np instead of
11989         pthread_create to determine if hpux pthreads are active.
11990         * gthr-posix95.h (__gthread_start): Delete.
11991         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
11992
11993 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
11994
11995         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
11996         _WIN64 not expanded.
11997
11998 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
11999             H.J. Lu  <hongjiu.lu@intel.com>
12000
12001         PR target/45213
12002         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
12003         to output 32bit SFmode immediate as 8 byte sign extended value.
12004
12005 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12006
12007         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
12008         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
12009         (SUBWORD_BOOL_CAS): Likewise.
12010         (SUBWORD_SYNC_OP): Likewise.
12011         (SUBWORD_TEST_AND_SET): Likewise.
12012         (FETCH_AND_OP_WORD): Parenthesise INF_OP
12013         (SUBWORD_SYNC_OP): Likewise.
12014         (OP_AND_FETCH_WORD): Likewise.
12015
12016 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12017
12018         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
12019         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
12020         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
12021         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
12022         generic part.
12023         (cortex_a9_sched_adjust_cost): New function.
12024         (xscale_sched_adjust_cost): New function.
12025         * config/arm/arm-protos.h (struct tune_params): New field
12026         sched_adjust_cost.
12027         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
12028
12029 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
12030
12031         PR target/44942
12032         * config/sparc/sparc.c (function_arg_advance): Always take into account
12033         the padding, if any.
12034
12035 2010-08-06  Richard Guenther  <rguenther@suse.de>
12036
12037         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
12038         (dump_lattice_value): Dump it.
12039         (get_default_value): Adjust.
12040         (get_constant_value): Likewise.
12041         (set_value_varying): Likewise.
12042         (set_lattice_value): Make sure to not go up the lattice
12043         with bitwise constant values.
12044         (get_value_for_expr): Handle ADDR_EXPRs.
12045         (value_to_double_int): New function.
12046         (get_value_from_alignment): Likewise.
12047         (do_dbg_cnt): Adjust.
12048         (ccp_lattice_meet): Handle partially constant values.
12049         (bit_value_unop_1): New function.
12050         (bit_value_binop_1): Likewise.
12051         (bit_value_unop): Likewise.
12052         (bit_value_binop): Likewise.
12053         (evaluate_stmt): Track partially constant values if
12054         flag_tree_bit_ccp is set.
12055         (ccp_fold_stmt): Dump if we folded a predicate.
12056         (ccp_visit_stmt): Adjust.
12057         * common.opt (ftree-bit-ccp): New flag.
12058         * doc/invoke.texi (ftree-bit-ccp): Document.
12059         * opts.c (decode_options): Enable bit-CCP at -O1.
12060
12061 2010-08-06  Alan Modra  <amodra@gmail.com>
12062
12063         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
12064         and -mrelocatable-lib description.
12065
12066 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
12067
12068         From Martin Thuresson  <martint@google.com>
12069         * postreload.c (reload_cse_simplify_operands): Use
12070         SET_REGNO_RAW instead of SET_REGNO.
12071         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
12072         SET_REGNO.
12073         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
12074         instead of SET_REGNO.
12075         * rtl.h (SET_REGNO_RAW): New macro.
12076
12077 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
12078
12079         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
12080         computations.  Fix formatting issues.
12081         (num_sign_bit_copies1): Likewise.
12082         (canonicalize_condition): Likewise.
12083
12084 2010-08-05  Richard Henderson  <rth@redhat.com>
12085
12086         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
12087         (floor_log2): Use clz_hwi.
12088         (exact_log2): Use ctz_hwi.
12089         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
12090         * builtins.c (fold_builtin_bitop): Use them.
12091         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
12092         * combine.c (get_pos_from_mask): Use ctz_hwi.
12093         * double-int.c (double_int_ctz): Likewise.
12094         * explow.c (force_reg): Likewise.
12095         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
12096
12097 2010-08-05  Richard Henderson  <rth@redhat.com>
12098
12099         PR target/45189
12100         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
12101         the alignment constant is properly sign-extended.
12102
12103 2010-08-05  Richard Guenther  <rguenther@suse.de>
12104
12105         * expr.c (store_expr): Use emit_block_move only if both
12106         source and target are MEMs.  Use store_bit_field if only
12107         the target is a MEM.
12108
12109 2010-08-05  Richard Henderson  <rth@redhat.com>
12110
12111         PR debug/45188
12112         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
12113         (INCOMING_RETURN_ADDR_RTX): Likewise.
12114         (dwarf2out_do_frame): Remove conditional compilation.
12115         (dwarf2out_frame_init): Likewise.
12116
12117 2010-08-05  Nicolas Setton  <setton@adacore.com>
12118
12119         * gcov.c (flag_display_progress): New static variable.
12120         (main): Display progress info on standard output if requested.
12121         (options): Add -d/--display-progress.
12122         (print_usage): Print them.
12123         (process_args): Handle them.
12124         * doc/gcov.texi: Document them.
12125
12126 2010-08-05  Martin Jambor  <mjambor@suse.cz>
12127
12128         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
12129         (ipcp_insert_stage): Redirect only edges not flagged with
12130         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
12131         discovered constants.
12132
12133 2010-08-05  Martin Jambor  <mjambor@suse.cz>
12134
12135         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
12136         (struct ipa_param_descriptor): New fields types and
12137         cannot_devirtualize.
12138         (ipa_param_cannot_devirtualize_p): New function.
12139         (ipa_param_types_vec_empty): Likewise.
12140         (ipa_make_edge_direct_to_target): Declare.
12141         * ipa-cp.c: Fixed first stage driver name in initial comment,
12142         described devirtualization there too.
12143         (ipcp_analyze_node): Call ipa_analyze_params_uses.
12144         (ipcp_print_all_lattices): Print devirtualization info.
12145         (ipa_set_param_cannot_devirtualize): New function.
12146         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
12147         lattice to BOTTOM.
12148         (ipcp_init_stage): Merged into...
12149         (ipcp_generate_summary): ...its caller.
12150         (ipcp_change_tops_to_bottom): Also process type lists.
12151         (ipcp_add_param_type): New function.
12152         (ipcp_copy_types): Likewise.
12153         (ipcp_propagate_types): Likewise.
12154         (ipcp_propagate_stage): Also propagate types.
12155         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
12156         Also return true if propagated types require it.
12157         (ipcp_update_callgraph): Dump redirection info.
12158         (ipcp_process_devirtualization_opportunities): New function.
12159         (ipcp_const_param_count): Include known type information.
12160         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
12161         on new node.  Fixed formatting.
12162         * ipa-prop.c (make_edge_direct_to_target): Renamed to
12163         ipa_make_edge_direct_to_target and changed all callers.  Made
12164         externally visible.
12165         (ipa_node_duplication_hook): Duplicate types vector.
12166         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
12167         redirect outgoing calls for which we can't get a decl from the
12168         statement.  Check that we can get a decl from the call statement.
12169         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
12170         ipa_analyze_params_uses only when ipa-cp is disabled.
12171         * tree-inline.c (get_indirect_callee_fndecl): Removed.
12172         (expand_call_inline): Do not call get_indirect_callee_fndecl.
12173         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
12174         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
12175
12176 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
12177
12178         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
12179         temporary. Emit move from temporary to accum, so REG_EQUAL note will
12180         be attached to this insn in correct mode.
12181
12182 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
12183
12184         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
12185         using REGNO of base_reg directly.
12186
12187 2010-08-05  Jie Zhang  <jie@codesourcery.com>
12188
12189         PR tree-optimization/45144
12190         * tree-sra.c (type_consists_of_records_p): Return false
12191         if the record contains bit-field.
12192
12193 2010-08-04  Richard Henderson  <rth@redhat.com>
12194
12195         * config/i386/i386.c (struct ix86_frame): Remove padding and
12196         to_allocate members.
12197         (ix86_compute_frame_layout): Don't store them.
12198         (ix86_can_use_return_insn_p): Use a more direct and more obviously
12199         correct condition for the position of the stack pointer.
12200         (ix86_expand_prologue): Compute remaining stack allocation based
12201         on the ultimate stack pointer offset.
12202         (ix86_expand_epilogue): Use more obvious expressions testing for
12203         the stack pointer already pointing to the saved registers.
12204
12205         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
12206         duplication deconstructing the frame pointer.  Simplify
12207         deallocation of the local stack frame.
12208
12209         * reg-notes.def (CFA_EXPRESSION): New.
12210         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
12211         (dwarf2out_frame_debug_cfa_expression): New.
12212         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
12213
12214         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
12215         * config/i386/i386.c (ix86_expand_prologue): Set it.
12216         (ix86_expand_epilogue): Clear it.
12217         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
12218         context, add REG_CFA_EXPRESSION notes.
12219
12220         * config/i386/i386.h (struct machine_frame_state): Rename from
12221         machine_cfa_state.  Add members tracking SP and FP regardless
12222         of the current CFA register.
12223         (ix86_cfa_state): Remove.
12224         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
12225         and sse_reg_save_offset members.
12226         (ix86_compute_frame_layout): Set them.
12227         (gen_push): Increment sp_offset too.
12228         (choose_baseaddr_len, choose_baseaddr): New.
12229         (ix86_emit_save_reg_using_mov): New.
12230         (ix86_emit_save_regs_using_mov): Use it.
12231         (ix86_emit_save_sse_regs_using_mov): Likewise.
12232         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
12233         compare vs the saved red_zone_offset.
12234         (pro_epilogue_adjust_stack): Adjust sp_offset.
12235         (ix86_adjust_stack_and_probe): Likewise.
12236         (ix86_expand_prologue): Set up, use, and validate the new
12237         frame_state_info members.  Use gen_frame_mem.
12238         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
12239         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
12240         new frame_state_info members.
12241         (ix86_emit_leave): Likewise.
12242         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
12243         out-of-range stack pointer offsets here.
12244         (ix86_emit_restore_sse_regs_using_mov): Likewise.
12245         (ix86_expand_epilogue): Use and validate the new frame_state_info
12246         members.  Break up and simplify the logic selecting the
12247         restore_regs_via_mov code path.  Ensure that there will be no
12248         out-of-range stack pointer offsets.
12249
12250         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
12251
12252         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
12253         argument name to reflect the expected tree; fix indentation.
12254         (ix86_asm_output_function_label): Output the entire 32-bit
12255         ms_hook here as bytes ...
12256         (ix86_expand_prologue): ... not here as insns.  Attach the
12257         unwind info for the ms_hook to a blockage insn.
12258         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
12259         (ix86_ms_bitfield_layout_p): Fix indentation.
12260         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
12261
12262         * config/i386/i386.c (ix86_using_red_zone): New.
12263         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
12264         ix86_expand_prologue, ix86_force_to_memory): Use it.
12265
12266         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
12267         saving the int registers.
12268
12269         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
12270         and DWARF2_UNWIND_INFO conditional compilation.
12271
12272 2010-08-04  Richard Henderson  <rth@redhat.com>
12273
12274         PR debug/45171
12275         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
12276         an is_naming_typedef_decl.
12277
12278 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
12279
12280         PR rtl-optimization/45162
12281         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
12282         * dce.c (word_dce_process_block): Likewise.
12283
12284 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
12285
12286         PR target/44583
12287         * config/ia64/constraints.md (Z): New.
12288         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
12289         (xfreg_or_signed_fp01_operand): New.
12290         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
12291         with fr_reg_or_signed_fp01_operand and constraint G with Z.
12292         (subsf3): Ditto.
12293         (*maddsf4): Ditto.
12294         (*msubsf4): Ditto.
12295         (adddf3): Ditto.
12296         (adddf3_trunc): Ditto.
12297         (subdf3): Ditto.
12298         (*subdf3_trunc): Ditto.
12299         (*madddf4): Ditto.
12300         (*madddf4_trunc): Ditto.
12301         (*msubdf4): Ditto.
12302         (*msubdf4_trunc): Ditto.
12303         (addxf3): Replace xfreg_or_fp01_operand with
12304         xfreg_or_signed_fp01_operand and constraint G with Z.
12305         (*addxf3_truncsf): Ditto.
12306         (*addxf3_truncdf): Ditto.
12307         (subxf3): Ditto.
12308         (*subxf3_truncsf): Ditto.
12309         (*subxf3_truncdf): Ditto.
12310         (*maddxf4): Ditto.
12311         (*maddxf4_truncsf): Ditto.
12312         (*maddxf4_truncdf): Ditto.
12313         (*msubxf4): Ditto.
12314         (*msubxf4_truncsf): Ditto.
12315         (*msubxf4_truncdf): Ditto.
12316
12317 2010-08-04  Richard Guenther  <rguenther@suse.de>
12318
12319         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
12320         if either alias-set is zero.
12321
12322 2010-08-04  Richard Guenther  <rguenther@suse.de>
12323
12324         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
12325         * tree-ssa-ccp.c: ... here.
12326         * tree-ssa-copy.c: ... and here.
12327         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
12328         value_range_t): Move ...
12329         * tree-vrp.c: ... here.
12330         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
12331         (substitute_and_fold): Adjust prototype.
12332         * tree-ssa-propagate.c (replace_uses_in): Adjust.
12333         (replace_phi_args_in): Likewise.
12334         (substitute_and_fold): Take callback to query lattice instead
12335         of pointer to lattice.  Replace SSA name defs with lattice
12336         values first.
12337         * tree-ssa-ccp.c (ccp_finalize): Adjust.
12338         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
12339         (get_value): New function.
12340         (fini_copy_prop): Adjust.
12341         * tree-vrp.c (vrp_finalize): Adjust.
12342
12343 2010-08-04  Richard Guenther  <rguenther@suse.de>
12344
12345         PR middle-end/45176
12346         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
12347         points-to set for original MEM_REF.
12348
12349 2010-08-04  Richard Guenther  <rguenther@suse.de>
12350
12351         * tree-ssa-ccp.c (get_constant_value): New function.
12352         (get_rhs_assign_op_for_ccp): Remove.
12353         (valueize_op): New function.
12354         (ccp_fold): Use get_constant_value and valueize_op.
12355         (fold_const_aggregate_ref): Likewise.
12356         (ccp_fold_stmt): Likewise.
12357         (visit_assignment): Simplify.
12358
12359 2010-08-04  Richard Guenther  <rguenther@suse.de>
12360
12361         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
12362         * double-int.h (double_int_ctz): Declare.
12363         * double-int.c (double_int_ctz): New function.
12364
12365 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
12366
12367         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
12368         Define.
12369         picochip_expand_movmemhi : Expand movmem pattern.
12370         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
12371         Declare.
12372         * config/picochip/picochip.md (movmemhi) : New pattern.
12373
12374 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
12375
12376         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
12377
12378 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
12379
12380         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
12381         NEG as operand of a MULT by merging it with the other operand.
12382         * combine.c (make_compound_operation): Use trunc_int_for_mode when
12383         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
12384         MULT.
12385         * config/arm/constraints.md (M): Examine only 32 bits of a
12386         HOST_WIDE_INT.
12387         * config/arm/predicates.md (power_of_two_operand): Likewise.
12388
12389 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12390
12391         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
12392         non-NOTE insns.
12393
12394 2010-08-03  Jan Hubicka  <jh@suse.cz>
12395
12396         * ipa-split.c (struct split_point): Add split_part_set_retval.
12397         (find_retval): Forward declare.
12398         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
12399         (consider_split): Compute current->split_part_set_retval.
12400         (visit_bb): Do not look into return value.
12401         (split_function): Handle !split_part_set_retval
12402
12403 2010-08-03  Martin Jambor  <mjambor@suse.cz>
12404
12405         * tree-sra.c (completely_scalarize_record): New parameter REF, create
12406         its own access->expr intead of using build_ref_for_offset.
12407
12408 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
12409
12410         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
12411         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
12412         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
12413         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
12414         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
12415         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
12416         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
12417         DEFAULT_SWITCH_TAKES_ARG.
12418         * config/rx/rx.opt (-patch=): Remove option.
12419         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
12420         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
12421         * doc/invoke.texi (RX Options): Remove -patch=.
12422         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
12423         (option_map): Remove --profile-blocks, --quiet and --silent.
12424
12425 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
12426
12427         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
12428         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
12429         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
12430         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12431         Update calls to ix86_expand_compare and ix86_expand_branch.
12432         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
12433         ix86_expand_compare.
12434         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
12435         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12436         Make static.
12437         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
12438         and ix86_compare_op1.  Update calls to ix86_expand_compare.
12439         (ix86_expand_int_movcc): Ditto.
12440         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
12441         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
12442         (ix86_expand_setcc): Ditto.
12443         (ix86_expand_compare): Remove prototype.
12444         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
12445         ix86_compare_op0 and ix86_compare_op1.  Update calls
12446         to ix86_expand_branch to directly pass operands[1] and operands[2].
12447         (cbranchxf4): Ditto.
12448         (cbranch<MODEF:mode>4): Ditto.
12449         (cbranchcc4): Ditto.
12450         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
12451         Update calls to ix86_expand_setcc to directly pass operands[2] and
12452         operands[3].
12453         (cstorexf4): Ditto.
12454         (cstore<MODEF:mode>4): Ditto.
12455         (cstorecc4): Ditto.
12456
12457 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
12458
12459         PR target/45063
12460         * caller-save.c (save_call_clobbered_regs): Remove regs from
12461         hard_regs_saved when they are set.
12462
12463 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
12464
12465         PR target/41089
12466         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
12467         as volatile.
12468
12469 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
12470
12471         * common.opt (ftree-loop-distribute-patterns): New.
12472         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
12473         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
12474         at -O3.
12475         * tree-data-ref.c (stores_zero_from_loop): New.
12476         * tree-data-ref.h (stores_zero_from_loop): Declared.
12477         * tree-loop-distribution.c (tree_loop_distribution): Call
12478         stores_zero_from_loop.
12479         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
12480
12481 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
12482
12483         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
12484         into account.
12485
12486         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
12487         * config/arm/arm.c (thumb1_code): New variable.
12488         (arm_override_options): Set it.
12489         (thumb1_final_prescan_insn): Keep track of condition code status.
12490         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
12491         jumps that depend on them.
12492         * config/arm/arm.h (thumb1_code): Declare variable.
12493         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
12494         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
12495         thumb1_cc_mode.
12496         (CC_STATUS_INIT): New macro.
12497         * config/arm/constraints.md (Pd): New constraint.
12498         * config/arm/predicates.md (noov_comparison_operator): New predicate.
12499         * config/arm/arm.md (is_thumb1): New define_attr.
12500         (conds): Set default to "clob" when generating Thumb1 code.
12501         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
12502         code are set.  Use two-operand assembly syntax.
12503         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
12504         pattern.
12505         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
12506         codes are set.  Use two-operand assembly syntax.
12507         (zero_extendhisi splitter): Remove constraints.
12508         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
12509         thumb1_movsf_insn): Set conds attribute as appropriate.
12510         (cbranchsi4_insn): Use condition code status from struct
12511         machine_function to determine whether the comparison can be eliminated.
12512         Discourage the alternative using high registers.
12513         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
12514         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
12515         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
12516         subsi3_cbranch): Delete.
12517         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
12518         one subtract and one cbranch insn.
12519
12520         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
12521         thumb2_movdf_soft_insn): Delete patterns.
12522         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
12523         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
12524         (pool_range, neg_pool_range): Use them to define defaults.
12525         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
12526         and allow for TARGET_32BIT.
12527
12528         PR target/40457
12529         * config/arm/arm.h (arm_regs_in_sequence): Declare.
12530         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
12531         load_multiple_sequence, store_multiple_sequence): Delete
12532         declarations.
12533         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
12534         declarations.
12535         * config/arm/ldmstm.md: New file.
12536         * config/arm/arm.c (arm_regs_in_sequence): New array.
12537         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
12538         CHECK_REGS.  All callers changed.
12539         If SAVED_ORDER is nonnull, copy the computed order into it.
12540         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
12541         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
12542         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
12543         If SAVED_ORDER is nonnull, copy the computed order into it.
12544         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
12545         like REGS.  Handle Thumb mode.
12546         (arm_gen_load_multiple_1): New function, broken out of
12547         arm_gen_load_multiple.
12548         (arm_gen_store_multiple_1): New function, broken out of
12549         arm_gen_store_multiple.
12550         (arm_gen_multiple_op): New function, with code from
12551         arm_gen_load_multiple and arm_gen_store_multiple moved here.
12552         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
12553         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
12554         changed.
12555         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
12556         * config/arm/predicates.md (commutative_binary_operator): New.
12557         (load_multiple_operation, store_multiple_operation): Handle more
12558         variants of these patterns with different starting offsets.  Handle
12559         Thumb-1.
12560         * config/arm/arm.md: Include "ldmstm.md".
12561         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
12562         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
12563         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
12564         peepholes): Delete.
12565         * config/arm/ldmstm.md: New file.
12566         * config/arm/arm-ldmstm.ml: New file.
12567
12568         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
12569         if statement which adds extra costs to frame-related expressions.
12570
12571 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12572
12573         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
12574
12575 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
12576
12577         PR target/45142
12578         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
12579         alternative 2.
12580         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
12581         split V4SI operands.
12582
12583 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
12584
12585         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12586         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
12587         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
12588         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12589
12590 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
12591
12592         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
12593         LOCAL_INCLUDE_DIR.
12594
12595 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
12596
12597         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
12598         used in the call to optab_for_tree_code.  Fix the second
12599         is_widening_mult_p call.  Check that both unwidened operands
12600         have the same sign.
12601
12602 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
12603
12604         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
12605
12606 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
12607
12608         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12609
12610 2010-07-30  DJ Delorie  <dj@redhat.com>
12611
12612         * config/rx/predicates.md (rx_constshift_operand): New.
12613         * config/rx/rx.md (zs_cond): New.
12614         (cbranchsi4): Remove mode.
12615         (*cbranchsi4_<code>): Likewise.
12616         (*tstbranchsi4_<code>): New.
12617         (*tstbranchsi4r_<code>): New.
12618         (*tstbranchsi4m_eq): New.
12619         (*tstbranchsi4m_ne): New.
12620         (cbranchsf4): Remove mode.
12621         (*cbranchsf4_<code>): Likewise.
12622
12623 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
12624
12625         * rtlanal.c (simplify_subreg_regno): Don't treat
12626         HARD_FRAME_POINTER_REGNUM specially.
12627
12628 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
12629
12630         * common.opt (-G): Don't define option here.
12631         * config/g.opt: New.
12632         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
12633         rs6000/powerpc and score targets.
12634         * opts.c (common_handle_option): Don't handle -G here.
12635         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
12636         * config/frv/frv.c (frv_handle_option): Handle -G.
12637         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
12638         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
12639         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
12640         * config/mips/mips.c (mips_handle_option): Handle -G.
12641         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
12642         * config/score/score.c (score_handle_option): Handle -G.
12643
12644 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
12645
12646         * config/mmix/mmix.c: Include basic-block.h.
12647
12648 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
12649
12650         PR debug/45055
12651         PR rtl-optimization/45137
12652         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
12653         prototypes.
12654         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
12655         New functions.
12656         * combine.c (next_nonnote_nondebug_insn): Removed.
12657         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
12658         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
12659         * sched-deps.c (sched_analyze_insn): Likewise.
12660         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
12661         * rtlanal.c (canonicalize_condition): Likewise.
12662         * postreload.c (reload_combine_recognize_pattern): Likewise.
12663         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
12664
12665 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
12666
12667         * config/i386/i386.md (int_cond): Remove code iterator.
12668         (fp_cond): Ditto.
12669         (cbranch<mode>4): Use ordered_comparison_operator predicate
12670         for operator0.
12671         (cstore<mode>4): Ditto for operator1.
12672         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
12673         (add<mode>cc): ditto.
12674
12675 2010-07-30  Richard Guenther  <rguenther@suse.de>
12676
12677         PR middle-end/45141
12678         * expr.c (expand_expr_real_1): Check for not handled base address.
12679
12680 2010-07-30  Richard Guenther  <rguenther@suse.de>
12681
12682         * ipa-prop.c (ipa_modify_formal_parameters): Use
12683         build_distinct_type_copy.
12684
12685 2010-07-30  Anthony Green  <green@moxielogic.com>
12686
12687         * config/moxie/rtems.h: New file.
12688         * config.gcc: Add moxie-rtems support.
12689
12690 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
12691
12692         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
12693         df flags as in run_fast_df_dce.
12694
12695 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
12696
12697         Revert:
12698         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
12699
12700         * rtl.def (NOTE): Swap operands 4 and 5.
12701         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
12702         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
12703         Adjust accordingly.
12704         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
12705
12706 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
12707
12708         PR debug/45110
12709         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
12710         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
12711         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
12712         formal parameters.
12713         (gen_decl_die): Change return type to dw_die_ref, return what
12714         gen_formal_parameter_die returned.
12715
12716 2010-07-29  Martin Jambor  <mjambor@suse.cz>
12717
12718         * dbgcnt.def (eipa_sra): New counter.
12719         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
12720
12721 2010-07-29  Xinliang David Li  <davidxl@google.com>
12722
12723         PR bootstrap/45119
12724         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
12725         in revision 162652.
12726
12727 2010-07-29  Richard Guenther  <rguenther@suse.de>
12728
12729         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
12730         (TV_TREE_STORE_CCP): Likewise.
12731         (TV_TREE_REDPHI): Likewise.
12732
12733 2010-07-29  Richard Guenther  <rguenther@suse.de>
12734
12735         * double-int.h (double_int_and_not): New function.
12736         * combine.c (try_combine): Use it.
12737         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
12738
12739 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
12740
12741         PR rtl-optimization/42575
12742         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
12743         Argument AU removed.  All callers changed.  Ignore artificial refs.
12744         Use return value of df_word_lr_simulate_defs to decide whether an insn
12745         is necessary.
12746         (fast_dce): Rename arg to WORD_LEVEL.
12747         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
12748         static.
12749         (pass_fast_rtl_byte_dce): Delete.
12750         * dce.h (run_word_dce): Declare.
12751         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
12752         All callers changed.  Simplify code to only deal with two-word regs.
12753         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
12754         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
12755         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
12756         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
12757         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
12758         (df_word_lr_mark_ref): Declare.
12759         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
12760         df_word_lr_simulate_uses): Declare or rename from byte variants.
12761         (df_byte_lr_simulate_artificial_refs_at_top,
12762         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12763         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
12764         declarations.
12765         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
12766         (enum df_mm): Delete.
12767         * df-byte-scan.c: Delete file.
12768         * df-problems.c (df_word_lr_problem_data): Renamed from
12769         df_byte_lr_problem_data, all members deleted except for
12770         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
12771         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
12772         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12773         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
12774         df_byte_lr_confluence_0): Delete functions.
12775         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
12776         callers changed.
12777         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
12778         Don't initialize members that were deleted, don't try to discover data
12779         about registers.  Ignore hard regs.
12780         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
12781         (df_word_lr_mark_ref): New function.
12782         (df_word_lr_bb_local_compute): Renamed from
12783         df_byte_bb_lr_local_compute; all callers changed.  Use
12784         df_word_lr_mark_ref.  Assert that artificial refs don't include
12785         pseudos.  Ignore hard registers.
12786         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
12787         Assert that exit block uses don't contain pseudos.
12788         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
12789         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
12790         callers changed.  Ignore hard regs.
12791         (df_word_lr_transfer_function): Renamed from
12792         df_byte_lr_transfer_function; all callers changed.
12793         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
12794         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
12795         changed.
12796         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
12797         callers changed.
12798         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
12799         confluence operator 0 set to NULL.
12800         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
12801         callers changed.
12802         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
12803         Return bool, true if bitmap changed or insn otherwise necessary.
12804         All callers changed.  Simplify using df_word_lr_mark_ref.
12805         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
12806         all callers changed.  Simplify using df_word_lr_mark_ref.
12807         * lower-subreg.c: Include "dce.h"
12808         (decompose_multiword_subregs): Call run_word_dce if df available.
12809         * Makefile.in (lower-subreg.o): Adjust dependencies.
12810         (df-byte-scan.o): Delete.
12811         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
12812
12813 2010-07-29  Richard Guenther  <rguenther@suse.de>
12814
12815         * tree.c (build_vector): Assert that the vector constant
12816         has enough elements.
12817         (build_vector_from_ctor): Pad with trailing zeros.
12818
12819 2010-07-29  Richard Guenther  <rguenther@suse.de>
12820
12821         PR tree-optimization/45120
12822         * tree-ssa-structalias.c (get_constraint_for_component_ref):
12823         Handle offset in DEREFs properly.
12824         (get_constraint_for_1): Handle MEM_REF offset properly.
12825
12826 2010-07-29  Richard Guenther  <rguenther@suse.de>
12827
12828         PR middle-end/45034
12829         * convert.c (convert_to_integer): Always use an unsigned
12830         type for narrowed negate and bitwise not.
12831
12832 2010-07-29  Ira Rosen  <irar@il.ibm.com>
12833
12834         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
12835         to outer loop when creating reduction epilogue for double reduction,
12836         and switch back to the inner loop when updating the phi nodes.
12837         Update uses of outer loop exit phi nodes in double reduction (instead
12838         of uses of reduction).
12839
12840 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
12841
12842         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
12843         popcount on power7 and parity on power6 systems.
12844         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
12845         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
12846         instructions.
12847
12848         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
12849         (UNSPEC_PARITY): Ditto.
12850         (SFDF): New iterator for SF/DF.
12851         (rreg2): New mode attribute for floating register constraint.
12852         (TARGET_FLOAT): New mode attribute for whether single/double float
12853         is supported.
12854         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
12855         pattern.
12856         (parity<mode>2_cmpb): New insn for parity on power6 and newer
12857         machines.
12858         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
12859         pattern.  Add support for fcpsgn instruction added in power6.
12860         (copysignsf3): Delete.
12861         (copysigndf3): Delete.
12862         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
12863         instead of if_then_else in RTL to avoid problems with -0.
12864
12865         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
12866         of if_then_else to mirror scalar code.
12867         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
12868         rs6000.md.
12869
12870         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
12871         instead of if_then_else.
12872
12873 2010-07-28  Xinliang David Li  <davidxl@google.com>
12874
12875         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
12876         (dump_cand): Dump var_before/after.
12877         (htab_inv_expr_eq): New function.
12878         (htab_inv_expr_hash): New function.
12879         (tree_ssa_iv_optimize_init): Support pseudo invariants.
12880         (add_candidate_1): consider base type precision.
12881         (set_use_iv_cost): New parameter.
12882         (adjust_setup_cost): Use profile information.
12883         (get_address_cost): Do not hard code width in computing address
12884         offset limits.
12885         (compare_aff_trees): New function.
12886         (get_loop_invariant_expr_id): New function.
12887         (get_computation_cost_at): New parameter and use profile information.
12888         (get_computation_cost): New parameter.
12889         (determine_use_iv_cost_generic): Pass new parameter.
12890         (determine_use_iv_cost_address): Ditto.
12891         (determine_use_iv_cost_condition): Ditto.
12892         (autoinc_possible_for_pair): Ditto.
12893         (determine_use_iv_costs): More dumps.
12894         (iv_ca_get_num_inv_exprs): New function.
12895         (iv_ca_recount_cost): Consider loop invariants in register pressure
12896         cost.
12897         (iv_ca_add_use): New parameter.
12898         (iv_ca_dump): Better dumping.
12899         (iv_ca_extend): New parameter.
12900         (try_add_cand_for): Attempt to get better partial solution.
12901         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
12902         (create_new-ivs): More dumps.
12903         (rewrite_use_compare): Ditto.
12904         (free_loop_data): More cleanup.
12905         (treee_ssa_iv_optimize_finalize): Ditto.
12906
12907 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
12908
12909         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
12910         * config/i386/i386.c (ix86_profile_before_prologue): New.
12911         (override_options): Add special handling for -mfentry.
12912         (ix86_function_regparm): Likewise.
12913         (ix86_function_sseregparm): Likewise.
12914         (ix86_frame_pointer_required): Likewise.
12915         (ix86_expand_prologue): Check for ms_hook_prologue.
12916         (x86_function_profiler): Adjust mcount output.
12917         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
12918         * config/i386/i386.opt (mfentry): New.
12919         * doc/invoke.texi (mfentry): Add documentation.
12920         * doc/tm.texi: Regenerated..
12921         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
12922         * final.c (final_start_function): Replace macro
12923         PROFILE_BEFORE_PROLOGUE by target hook.
12924         * function.c (thread_prologue_and_epilogue_insns): Likewise.
12925         * target.def (profile_before_prologue): New hook.
12926         * targhooks.c (default_profile_before_prologue): New.
12927         * targhooks.h (default_profile_before_prologue): New.
12928
12929 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
12930
12931         PR debug/45105
12932         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
12933
12934         PR debug/45103
12935         * dwarf2out.c (dwarf2out_var_location): Always consider
12936         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
12937
12938 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12939
12940         PR rtl-optimization/45107
12941         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
12942
12943 2010-07-28  Richard Guenther  <rguenther@suse.de>
12944
12945         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
12946         (set_lattice_value): Do not query an old default value.
12947         (get_value_for_expr): New function.  Properly canonicalize
12948         float values.
12949         (ccp_visit_phi_node): Use it.
12950
12951 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
12952
12953         * config/arm/arm.c (arm_pcs_default): Remove static.
12954         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
12955         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
12956         (arm_pcs_default): Declare.
12957
12958 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
12959
12960         * config/rs6000/rs6000.c (rs6000_override_options):
12961         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
12962         ... to darwin_rs6000_override_options.
12963         (rs6000_return_in_memory): Update preceding comment for darwin
12964         64 bit ABI.  Use TARGET_MACHO inline.
12965         (rs6000_darwin64_struct_check_p): New.
12966         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
12967         (function_arg): Likewise.
12968         (rs6000_arg_partial_bytes): Likewise.
12969         (rs6000_function_value): Likewise.
12970
12971 2010-07-28  Andi Kleen  <ak@linux.intel.com>
12972
12973         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
12974
12975 2010-07-28  Richard Guenther  <rguenther@suse.de>
12976
12977         PR middle-end/44903
12978         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
12979         targets try harder to not generate unaligned accesses.
12980
12981 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
12982
12983         PR rtl-optimization/45101
12984         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
12985         for gcse-las.
12986
12987 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
12988
12989         PR tree-optimization/44885
12990         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
12991         with non-aliased component.
12992
12993 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
12994
12995         * config/darwin-driver.c (SWITCH_TAKES_ARG,
12996         WORD_SWITCH_TAKES_ARG): Remove.
12997         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
12998         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
12999         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
13000         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
13001         definitions from gcc.c.
13002         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
13003         defaults.h.
13004         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
13005         Move to defaults.h.
13006         * opts-common.c: Include tm.h.
13007         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
13008         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
13009         Handle more than one argument.  Set canonical_option_num_elements.
13010         (decode_cmdline_options_to_array): Set
13011         canonical_option_num_elements and trailing elements of
13012         canonical_option.
13013         * opts.h (struct cl_decoded_option): Allow four elements in
13014         canonical_option.  Add field canonical_option_num_elements.
13015         * Makefile.in (opts-common.o): Update dependencies.
13016
13017 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
13018
13019         PR middle-end/44790
13020         PR middle-end/44993
13021         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
13022         sure the base has address_mode before adding the offset.
13023
13024 2010-07-27  Xinliang David Li  <davidxl@google.com>
13025
13026         * tree-flow.h (create_mem_ref): Add one new parameter.
13027         * tree-ssa-address.c (create_mem_ref): New parameter.
13028         (addr_to_parts): Ditto.
13029         (move_variant_to_index): New function.
13030         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
13031
13032 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13033
13034         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
13035         4 and 5.
13036         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
13037         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
13038         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
13039         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
13040         CODE_LABELs and NOTEs.
13041         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
13042         * combine.c (try_combine): Likewise.
13043         * ira.c (setup_prohibited_mode_move_regs): Likewise.
13044         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
13045
13046 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
13047
13048         * coretypes.h (struct cl_option_handlers): Declare.
13049         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
13050         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
13051         * langhooks-def.h (lhd_handle_option): Declare.
13052         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
13053         * langhooks.c (lhd_handle_option): New.
13054         * langhooks.h (struct lang_hooks): Update prototype and return
13055         value type of handle_option hook.
13056         * optc-gen.awk: Generate target_flags_explicit definition for the
13057         driver.
13058         * opts-common.c: Include diagnostic.h.
13059         (handle_option): Move from opts.c.  Update prototype and return
13060         value type.  Use handlers structure.
13061         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
13062         handlers structure.
13063         (set_option): Move from opts.c.
13064         * opts.c (common_handle_option): Update prototype and return value
13065         type.  Update calls to handle_option and enable_warning_as_error.
13066         (unknown_option_callback, post_handling_callback,
13067         lang_handle_option, target_handle_option): New.
13068         (handle_option, read_cmdline_option): Move to opts-common.c.
13069         (read_cmdline_options): Update prototype.  Update call to
13070         read_cmdline_option.
13071         (decode_options): Initialize and use handlers structure.
13072         (set_option): Move to opts-common.c.
13073         (enable_warning_as_error): Update prototype.  Update call to
13074         handle_option.
13075         * opts.h (struct cl_option_handler_func, struct
13076         cl_option_handlers): New.
13077         (handle_option, enable_warning_as_error): Update prototypes.
13078         (read_cmdline_option): Declare.
13079         * Makefile.in (opts-common.o): Update dependencies.
13080
13081 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13082
13083         * config/arm/arm.c (params.h): Include.
13084         (arm_override_options): Tune gcse-unrestricted-cost.
13085         * config/arm/t-arm (arm.o): Define dependencies.
13086
13087 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13088
13089         PR target/42495
13090         PR middle-end/42574
13091         * basic-block.h (get_dominated_to_depth): Declare.
13092         * dominance.c (get_dominated_to_depth): New function, use
13093         get_all_dominated_blocks as a base.
13094         (get_all_dominated_blocks): Use get_dominated_to_depth.
13095
13096         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
13097         (hoist_exprs): Remove.
13098         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
13099         (compute_code_hoist_vbeinout): Add debug print outs.
13100         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
13101
13102         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
13103         quadratic behavior.
13104         * params.h (MAX_HOIST_DEPTH): New macro.
13105         * doc/invoke.texi (max-hoist-depth): Document.
13106
13107 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13108
13109         PR rtl-optimization/40956
13110         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
13111         constants.
13112
13113 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13114
13115         PR target/42495
13116         PR middle-end/42574
13117         * config/arm/arm.c (legitimize_pic_address): Use
13118         gen_calculate_pic_address pattern to emit calculation of PIC address.
13119         (will_be_in_index_register): New function.
13120         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
13121         (thumb1_legitimate_address_p): Use it provided !strict_p.
13122         * config/arm/arm.md (calculate_pic_address): New expand and split.
13123
13124 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13125
13126         PR target/42495
13127         PR middle-end/42574
13128         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
13129         * config/arm/arm.md (define_split "J", define_split "K"): Make
13130         IRA/reload friendly.
13131
13132 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13133
13134         * gcse.c (insert_insn_end_basic_block): Update signature, remove
13135         unused checks.
13136         (pre_edge_insert, hoist_code): Update.
13137
13138 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13139
13140         PR target/42495
13141         PR middle-end/42574
13142         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
13143
13144 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13145
13146         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
13147
13148 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13149
13150         PR rtl-optimization/40956
13151         PR target/42495
13152         PR middle-end/42574
13153         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
13154         for hoisting.
13155         (hoist_code): Count occurences in current block too.
13156
13157 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13158
13159         * gcse.c (struct expr:max_distance): New field.
13160         (doing_code_hoisting_p): New static variable.
13161         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
13162         simple expressions, don't change behavior for PRE.  Set max_distance.
13163         (insert_expr_in_table): Set new max_distance field.
13164         (hash_scan_set): Update.
13165         (hoist_expr_reaches_here_p): Stop search after max_distance
13166         instructions.
13167         (find_occr_in_bb): New static function.  Use it in ...
13168         (hoist_code): Calculate sizes of basic block before any changes are
13169         done.  Pass max_distance to hoist_expr_reaches_here_p.
13170         (one_code_hoisting_pass): Set doing_code_hoisting_p.
13171
13172         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
13173         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
13174         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
13175         macros.
13176         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
13177         Document.
13178
13179 2010-07-27  Jeff Law  <law@redhat.com>
13180             Maxim Kuvyrkov  <maxim@codesourcery.com>
13181
13182         * gcse.c (compute_transpout, transpout): Remove, move logic
13183         to prune_expressions.
13184         (compute_pre_data): Move pruning of trapping expressions ...
13185         (prune_expressions): ... here.  New static function.
13186         (compute_code_hoist_data): Use it.
13187         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
13188
13189 2010-07-27  Xinliang David Li  <davidxl@google.com>
13190
13191         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
13192         (rewrite_use_address): Adjust iv update position when needed.
13193
13194 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
13195
13196         * dbgcnt.def (hoist_insn): New debug counter.
13197         * gcse.c (hoist_code): Use it.
13198
13199 2010-07-27  Xinliang David Li  <davidxl@google.com>
13200
13201         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
13202         (niter_for_single_dom_exit): Passes additional parameter.
13203         (iv_period): Fix comments.
13204         (may_eliminate_iv): Handles multiple exit loops properly.
13205         (free_tree_niter_desc): New function.
13206         (free_loop_data): Frees up loop iteration descriptors.
13207
13208 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13209
13210         PR target/44542
13211         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
13212         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
13213         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
13214         (expand_one_var): Don't consider DECL_ALIGN for variables for
13215         which expand_one_stack_var_at has been already called.
13216
13217         PR testsuite/44701
13218         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
13219         constraints on IA-64.
13220
13221 2010-07-27  Jie Zhang  <jie@codesourcery.com>
13222
13223         PR target/44290
13224         Revert:
13225         2010-07-23  Jie Zhang  <jie@codesourcery.com>
13226
13227         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13228         false if ! tree_versionable_function_p.
13229
13230 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13231
13232         * dwarf2out.c (add_data_member_location_attribute): Use
13233         add_AT_unsigned instead of add_AT_int if offset is non-negative.
13234
13235 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13236
13237         * postreload.c (try_replace_in_use): New static function.
13238         (reload_combine_recognize_const_pattern): Use it here.  Allow
13239         substituting into a final add insn, and substituting into a memory
13240         reference in an insn that sets the reg.
13241
13242 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
13243
13244         * common.opt (o): Add MissingArgError.
13245         * doc/options.texi (MissingArgError): Document.
13246         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
13247         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
13248         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
13249         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
13250         * langhooks.h (struct lang_hooks): Remove missing_argument.
13251         * optc-gen.awk: Handle MissingArgError and output new structure
13252         field initializers.
13253         * opts.c (read_cmdline_option): Use missing_argument_error field
13254         instead of missing_argument langhook.
13255         * opts.h (struct cl_option): Add missing_argument_error field.
13256         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
13257
13258 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
13259
13260         PR target/29090
13261         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
13262         Darwin64 ABI, for zero-sized objects.
13263
13264 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
13265
13266         PR target/35491
13267         PR target/29090
13268
13269         Merge from Apple local 4.2.1.
13270         2005-05-11  Stan Shebs  <shebs@apple.com>
13271         Fix 64-bit varargs for Darwin (Radar 4028089).
13272         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
13273         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
13274         Add argument, add case for 8-byte register half-filled with a float.
13275         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
13276         single-precision floats specially.
13277
13278 2010-07-27  Ira Rosen  <irar@il.ibm.com>
13279
13280         PR tree-optimization/44152
13281         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
13282         complex numbers for further check.
13283         (vect_supported_load_permutation_p): Check nodes with
13284         complex numbers.
13285
13286 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
13287
13288         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
13289         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
13290         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
13291         (LANG_HOOKS_INITIALIZER): Add new hooks.
13292         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
13293         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
13294         and complain_wrong_lang_p.  Update init_options prototype.
13295         * c-objc-common.c (c_initialize_diagnostics): First call
13296         c_common_initialize_diagnostics.
13297         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
13298         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
13299         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
13300         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
13301         (hook_uint_void_0): New.
13302         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
13303         (hook_uint_void_0): New.
13304         * opts-common.c (decode_cmdline_option,
13305         decode_cmdline_options_to_array): Also fill in canonical_option field.
13306         * opts.c (complain_wrong_lang): Use langhook to determine whether
13307         to complain instead of special-casing LTO.
13308         (decode_options): Separate lang_mask determination with
13309         option_lang_mask hook from call of init_options hook.
13310         * opts.h (struct cl_decoded_option): Add canonical_option.
13311
13312 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
13313
13314         PR tree-optimization/45083
13315         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
13316
13317 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
13318
13319         * postreload.c (reload_combine_recognize_const_pattern): Move test
13320         for limiting the insn movement to the right scope.
13321
13322         PR rtl-optimization/45051
13323         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
13324         than reg_mentioned_p.
13325
13326 2010-07-26  Richard Henderson  <rth@redhat.com>
13327
13328         PR target/44132
13329         * tree-emutls.c: New file.
13330         * Makefile.in (OBJS-common): Add it.
13331         * tree-pass.h (pass_ipa_lower_emutls): Declare.
13332         * passes.c (init_optimization_passes): Add it.
13333
13334         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
13335         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
13336         * expr.c (emutls_var_address): Delete.
13337         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
13338         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
13339         (emutls_finish): Delete.
13340         * toplev.c (compile_file): Don't call it.
13341         * tree.h (emutls_decl): Delete.
13342         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
13343         (emutls_finish, emutls_finalize_control_var): Delete.
13344         (emutls_object_type): Move to tree-emutls.c.
13345         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
13346         default_emutls_var_fields, get_emutls_object_type,
13347         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
13348         default_emutls_var_init): Likewise.
13349         (get_variable_section): Don't special case emutls.
13350         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
13351         default_elf_select_section, default_unique_section,
13352         default_encode_section_info): Likewise.
13353         * varpool.c (decide_is_variable_needed): Likewise.
13354         * gimple-iterator.c (update_call_edge_frequencies): New
13355         (gsi_insert_on_edge_immediate): Use it.
13356         (gsi_insert_seq_on_edge_immediate): Likewise.
13357         (gsi_commit_one_edge_insert): Likewise.
13358
13359         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
13360         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
13361         (x86_64_elf_unique_section): Likewise.
13362
13363 2010-07-26  Jan Hubicka  <jh@suse.cz>
13364
13365         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
13366         GTY((skip)).
13367
13368 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
13369
13370         * target.def (output_source_filename): New hook.
13371         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
13372         * doc/tm.texi: Regenerate.
13373         * toplev.c (output_file_directive) Remove function.
13374         * toplev.h (output_file_directive) Remove.
13375         * output.h (default_asm_output_source_filename,
13376         output_file_directive): Declare.
13377         * varasm.h (default_asm_output_source_filename,
13378         output_file_directive): New functions.
13379
13380         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
13381         * config/mips/mips-protos.h (mips_output_filename): Remove.
13382         * config/mips/mips.c (mips_output_filename): Make Static.
13383         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
13384
13385 2010-07-26  Richard Guenther  <rguenther@suse.de>
13386
13387         PR tree-optimization/43784
13388         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
13389         if the destination is used by the call.
13390
13391 2010-07-26  Richard Guenther  <rguenther@suse.de>
13392
13393         PR middle-end/45073
13394         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
13395         SSA updating on being in SSA form.
13396
13397 2010-07-26  Richard Guenther  <rguenther@suse.de>
13398
13399         PR middle-end/45056
13400         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
13401
13402 2010-07-26  Richard Guenther  <rguenther@suse.de>
13403
13404         PR tree-optimization/45071
13405         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
13406         adjust op->opcode.
13407
13408 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
13409
13410         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
13411         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
13412         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
13413         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
13414         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
13415         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
13416         save_r31, return_r31, save_interrupt, return_interrupt,
13417         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
13418         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
13419         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
13420         new ABI requirements.
13421         (save_r6_r9, L_callt_save_r6_r9): Remove.
13422         * config/v850/predicates.md (even_reg_operand, disp23_operand,
13423         const_float_1_operand const_float_0_operand): New Predicates.
13424         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
13425         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
13426         * config/v850/t-v850: Update multilibs for new target variants.
13427         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
13428         * config/v850/t-v850e: Likewise.
13429         * config/v850/v850.c (v850_issue_rate): New.
13430         (v850_strict_argument_naming): New.
13431         (function_arg): Modify to generate a different ABI.
13432         (print_operand): Update case 'z' to support float modes.
13433         (output_move_single): Modify to generate appropriate and better
13434         assembly.
13435         (v850_float_z_comparison_operator, v850_select_cc_mode,
13436         v850_float_nz_comparison_operator,  v850_gen_float_compare,
13437         v850_gen_compare): New functions to support comparison of float values.
13438         (ep_memory_offset): Add support for V850E2 targets.
13439         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
13440         (INTERRUPT_REGPARM_NUM): Remove.
13441         (compute_register_save_size): Add extra case to save/restore long call.
13442         (use_prolog_function): New function to support prologue.
13443         (expand_prologue): Add support for V850E2 targets and modified
13444         as per the current ABI requirements.
13445         (expand_epilogue): Likewise.
13446         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
13447         (construct_save_jarl): Likewise.
13448         (construct_dispose_instruction): Update as per the current ABI
13449         requirements.
13450         (construct_prepare_instruction): Likewise.
13451         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
13452         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
13453         (CPP_SPEC): Updated to support v850e2 targets.
13454         (STRICT_ALIGNMENT): Modified.
13455         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
13456         (FIXED_REGISTERS): Likewise.
13457         (CALL_USED_REGISTERS): Likewise.
13458         (CONDITIONAL_REGISTER_USAGE): Updated.
13459         (HARD_REGNO_MODE_OK): Updated.
13460         (reg_class): Updated to add even registers.
13461         (REG_CLASS_NAMES): Likewise.
13462         (REG_CLASS_CONTENTS): Likewise.
13463         (REGNO_REG_CLASS): Updated for CC registers.
13464         (REG_CLASS_FROM_LETTER): Added support for even registers.
13465         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
13466         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
13467         ARG_POINTER_REGNUM): Updated.
13468         (FUNCTION_ARG_ADVANCE): Define.
13469         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
13470         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
13471         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
13472         (GO_IF_LEGITIMATE_ADDRESS): Updated.
13473         (SELECT_CC_MODE): Define.
13474         (REGISTER_NAMES): Updated to add psw and fcc registers.
13475         (ADDITIONAL_REGISTER_NAMES): Updated.
13476         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
13477         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
13478         * config/v850/v850.md (define_constants): Define new constants.
13479         (type): Update store,bit1,macc,div,fpu and single attributes.
13480         (cpu): New attribute.
13481         (cc): Add set_z attribute.
13482         (unsign23byte_load, sign23byte_load, unsign23hword_load,
13483         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
13484         23word_store): New instructions for 23-bit displacement load and store.
13485         (movqi_internal, movhi_internal): Update the attributes.
13486         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
13487         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
13488         the attributes.
13489         (v850_tst1): Modified using CC_REGNUM.
13490         (tstsi): Remove.
13491         (cmpsi): Modified as define_expand from define_insn.
13492         (cmpsi_insn, cmpsf, cmpdf): New instructions.
13493         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
13494         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
13495         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
13496         one_cmplsi2): Clobber the CC_REGNUM register.
13497         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
13498         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
13499         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
13500         (setf_insn, set_z_insn, set_nz_insn): New instructions for
13501         v850e2v3 target.
13502         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
13503         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
13504         targets.
13505         (sasf_1, sasf_2): Remove.
13506         (sasf): New instruction.
13507         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
13508         targets. CC_REGNUM register is clobbered and attributes are
13509         updated.
13510         (branch_z_normal, branch_z_invert, branch_nz_normal,
13511         branch_nz_invert): New branch related instructions.
13512         (jump): Updated the attributes.
13513         (switch): Update to support new targets. CC_REGNUM register is
13514         clobbered and attributes are updated.
13515         (call_internal_short, call_internal_long, call_value_internal_short,
13516         call_value_internal_long): Updated the attributes.
13517         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
13518         clobbered and attributes are updated.
13519         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
13520         Update to support new targets. CC_REGNUM register is clobbered.
13521         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
13522         instructions.
13523         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
13524         are updated.
13525         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
13526         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
13527         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
13528         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
13529         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
13530         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
13531         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
13532         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
13533         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
13534         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
13535         point instructions defined for V850e2v3 target.
13536         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
13537         Add support for V850E2 targets and CC_REGNUM register is clobbered.
13538         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
13539         support for new targets.
13540         * config/v850/v850-modes.def: New file.
13541         * config/v850/v850.opt(mstrict-align): Remove.
13542         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
13543         mv850e2v3): New command line options for V850.
13544         * config.gcc: Update the newly added files.
13545         * doc/invoke.texi: Update the newly added command line options for
13546         V850 target.
13547
13548 2010-07-26  Richard Guenther  <rguenther@suse.de>
13549
13550         PR tree-optimization/45052
13551         * ipa-pure-const.c (check_stmt): Check volatileness.
13552
13553 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
13554
13555         PR target/44707
13556         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
13557         * config/sparc/sparc.c: Include reload.h.
13558         (legitimize_tls_address): Rename into...
13559         (sparc_legitimize_tls_address): ...this.
13560         (legitimize_pic_address): Rename into...
13561         (sparc_legitimize_pic_address): ...this.
13562         (sparc_expand_move): Adjust to above renaming.
13563         (sparc_tls_referenced_p): Likewise.
13564         (sparc_legitimize_tls_address): Likewise.
13565         (sparc_legitimize_pic_address): Likewise.
13566         (sparc_legitimize_address): Likewise.
13567         (sparc_output_mi_thunk): Likewise.
13568         (sparc_legitimize_reload_address): New global function.  Recognize
13569         (lo_sum (high ...) ...) patterns generated by earlier passes.
13570         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
13571
13572 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
13573
13574         PR target/44484
13575         * config/sparc/predicates.md (memory_reg_operand): Delete.
13576         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
13577         (*sync_compare_and_swap): Encode the address form in the pattern.
13578         (*sync_compare_and_swapdi_v8plus): Likewise.
13579
13580 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
13581
13582         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
13583         Streamline paragraph on compatibility with the system compiler.
13584
13585 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
13586
13587         PR middle-end/45035
13588         * alias.c (true_dependence_1): Fix thinko in merge of old
13589         true_dependence and canon_true_dependence.
13590
13591 2010-07-23  Jan Hubicka  <jh@suse.cz>
13592
13593         * lto-streamer-out.c (write_symbol): Fix visibilities of external
13594         references.
13595
13596 2010-07-23  Le-Chun Wu  <lcwu@google.com>
13597
13598         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
13599         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
13600         and an unnecessary assignment.
13601         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
13602         self-assign warning.
13603         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
13604         unnecessary self-init.
13605
13606 2010-07-23  Richard Guenther  <rguenther@suse.de>
13607
13608         PR lto/43071
13609         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
13610         for -flto and -fwhopr.
13611
13612 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
13613
13614         PR target/41943
13615         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
13616         (stmp-int-hdrs): Prefix/postfix headers by include_next.
13617         * config.gcc (user_headers_inc_next_pre): New.
13618         (user_headers_inc_next_post): Likewise.
13619         (*-w64-mingw*): Use for float.h post-fixing, and for
13620         stddef.h/stdarg.h pre-fixing by include_next.
13621         * configure.ac (user_headers_inc_next_post): New.
13622         (user_headers_inc_next_pre): New.
13623         * configure: Regenerated.
13624
13625 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13626
13627         * configure.ac: Don't disable TLS on Solaris 8/9 by default
13628         Set tga_func for Solaris 2/x86 resp. SPARC.
13629         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
13630         (LIB_THREAD_LDFLAGS_SPEC): Define.
13631         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
13632         * configure: Regenerate.
13633         * config.in: Regenerate.
13634         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
13635         -pthread, -threads, LIB_TLS_SPEC with -pthread.
13636         * doc/install.texi (Specific, *-*-solaris2*): Document use of
13637         alternate thread libraries on Solaris 8.
13638         Document TLS patch requirements.
13639         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
13640         Document tls.
13641
13642         PR target/18788
13643         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
13644         -shared.
13645
13646 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
13647
13648         * tree.h (struct tree_base): Add nameless_flag bitfield.
13649         (TYPE_NAMELESS, DECL_NAMELESS): Define.
13650         * omp-low.c (create_omp_child_function, scan_omp_parallel,
13651         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
13652         DECL_ARTIFICIAL where needed.
13653         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
13654         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
13655         has DECL_NAMELESS set.
13656
13657 2010-07-23  Martin Jambor  <mjambor@suse.cz>
13658
13659         PR tree-optimization/44915
13660         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
13661         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
13662         (analyze_function): Likewise.
13663
13664 2010-07-23  Martin Jambor  <mjambor@suse.cz>
13665
13666         PR tree-optimization/44914
13667         * tree-sra.c (sra_modify_function_body): Return true if CFG was
13668         changed, add purging dead eh edges.
13669         (ipa_sra_modify_function_body): Return true if CFG was changed,
13670         simplify purging dead eh edges.
13671         (modify_function): Return true if CFG was changed.
13672         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
13673         was changed.
13674         (ipa_early_sra): Likewise.
13675
13676 2010-07-23  Jie Zhang  <jie@codesourcery.com>
13677
13678         PR target/44290
13679         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
13680         if "naked".
13681         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13682         false if ! tree_versionable_function_p.
13683
13684 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
13685
13686         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
13687         * ipa-pure-const.c (special_builtlin_state): Remove
13688         BUILT_IN_ARGS_INFO case.
13689         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13690         * builtins.c (expand_builtin): Likewise.
13691         (expand_builtin_args_info): Remove.
13692         * doc/tm.texi (__builtin_args_info): Remove.
13693         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
13694         * doc/tm.text.in: Likewise.
13695
13696 2010-07-23  Richard Guenther  <rguenther@suse.de>
13697
13698         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
13699         (lto_symtab_merge_decls_2): Likewise.
13700         * tree-ssa.c (useless_type_conversion_p): Likewise.
13701         * lto-streamer-in.c (input_gimple_stmt): Likewise.
13702         * gimple.c (gtc_visited2, gtc_ob2): Remove.
13703         (struct type_pair_d): Make same_p an array indexed by mode.
13704         Update comment.
13705         (lookup_type_pair): Update initialization.
13706         (struct sccs): Adjust same_p type.
13707         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
13708         Adjust.
13709         (print_gimple_types_stats): Likewise.
13710         * gimple.h (enum gtc_mode): New.
13711         (gimple_types_compatible_p): Adjust prototype.
13712
13713 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
13714
13715         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
13716         again after processing insn.
13717
13718 2010-07-23  Jie Zhang  <jie@codesourcery.com>
13719
13720         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
13721         proper words when !tree_versionable_function_p.
13722
13723 2010-07-23  Richard Guenther  <rguenther@suse.de>
13724
13725         PR tree-optimization/45037
13726         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
13727
13728 2010-07-23  Jie Zhang  <jie@codesourcery.com>
13729
13730         * doc/extend.texi: Remove IP2K from the description of naked attribute.
13731         Add MCORE instead.
13732
13733 2010-07-10  Andi Kleen  <ak@linux.intel.com>
13734
13735         PR lto/44992
13736         * lto-opts.c (lto_write_options): Add NULL file_data argument to
13737         lto_get_section_name.
13738         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13739         * lto-streamer-out.c (produce_asm): Likewise.
13740         (copy_function): Likewise.
13741         (produce_symtab): Likewise.
13742         (produce_asm_for_decls): Likewise.
13743         * lto-streamer.c (lto_get_section_name): Add file_data argument.
13744         Rewrite to add random postfix to LTO sections.
13745         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
13746         (lto_get_section_name): Add file_data argument to prototype.
13747
13748 2010-07-10  Andi Kleen  <ak@linux.intel.com>
13749
13750         * lto-section-in.c (lto_section_name): Synchronize names
13751         with lto_get_section_name.
13752
13753 2010-07-10  Andi Kleen  <ak@linux.intel.com>
13754
13755         * lto-opts.c (lto_read_file_options): Check for missing section.
13756
13757 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
13758
13759         * ira.c (check_allocation): Correctly handle the case where an allocno
13760         with two objects was allocated to a single reg.
13761
13762 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
13763
13764         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
13765         (is_widening_mult_p): Likewise.
13766         (convert_to_widen): Use them.
13767         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
13768         well as integer ones.
13769
13770 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
13771
13772         * alias.c (true_dependence_1): New function, merged version of
13773         true_dependence and canon_true_dependence.
13774         (true_dependence): Simplify.
13775         (canon_true_dependence): Simplify.
13776
13777 2010-07-22  Richard Henderson  <rth@redhat.com>
13778
13779         PR target/45027
13780         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
13781         of V4SFmode for the SSE saves; increase stack alignment if needed.
13782         (ix86_gimplify_va_arg): Don't increase stack alignment here.
13783
13784 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
13785
13786         PR bootstrap/45028
13787         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
13788         call cprop_find_used_regs again via note_uses.
13789
13790 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
13791
13792         * alias.c (get_alias_set): Fix formatting issues.
13793
13794 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
13795
13796         PR middle-end/44878
13797         * stmt.c (expand_value_return):  Call promote_function_mode with
13798         a for_return argument of 2 when returning by reference.
13799
13800 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
13801
13802         PR debug/45024
13803         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
13804         unit DIE if we can find the scope DIE.
13805
13806 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
13807
13808         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
13809         changed.  Initialize OBJECT_SUBWORD.
13810         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
13811         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
13812         all callers changed.
13813         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
13814         (finish_allocno): Likewise.
13815         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
13816         (remove_low_level_allocnos): Likewise.
13817         (update_bad_spill_attribute): Likewise.
13818         (setup_min_max_allocno_live_range_point): Likewise.
13819         (sort_conflict_id_map): Likewise.
13820         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
13821         (ior_hard_reg_conflicts): New function.
13822         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
13823         (compress_conflict_vecs): Iterate over objects, not allocnos.
13824         (ira_add_live_range_to_object): New function.
13825         (object_range_compare_func): Renamed from allocno_range_compare_func.
13826         All callers changed.
13827         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
13828         subobjects, widen the min/max range of the lowest-order object to
13829         potentially include all other such low-order objects.
13830         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
13831         (check_allocation): Likewise.  Use more fine-grained tests for register
13832         conflicts.
13833         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
13834         allocno subobjects.
13835         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
13836         choices about which bits to set in each set.  Don't use
13837         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
13838         using the multiple sets we computed.
13839         (push_allocno_to_stack): Iterate over allocno subobjects.
13840         (all_conflicting_hard_regs_coalesced): New static function.
13841         (setup_allocno_available_regs_num): Use it.
13842         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
13843         subobjects.
13844         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
13845         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13846         by ALLOCNO_NUM_OBJECTS.
13847         (calculate_spill_cost): Likewise.
13848         (color_pass): Express if statement in a more normal way.
13849         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
13850         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
13851         (setup_slot_coalesced_allocno_live_ranges): Likewise.
13852         (allocno_reload_assign): Likewise.
13853         (ira_reassign_pseudos): Likewise.
13854         (fast_allocation): Likewise.
13855         * ira-conflicts.c (build_conflict_bit_table): Likewise.
13856         (print_allocno_conflicts): Likewise.
13857         (ira_build_conflicts): Likewise.
13858         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
13859         callers changed.  Test subword 0 of each allocno for conflicts.
13860         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
13861         callers changed.  Iterate over allocno subobjects.
13862         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
13863         * ira-int.h (struct ira_allocno): New member: num_objects.
13864         Rename object to objects and change it into an array.
13865         (ALLOCNO_OBJECT): Add new argument N.
13866         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
13867         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
13868         (ior_hard_reg_conflicts): Declare.
13869         (ira_add_live_range_to_object): Declare.
13870         (ira_allocno_object_iterator): New.
13871         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
13872         (FOR_EACH_ALLOCNO_OBJECT): New macro.
13873         * ira-lives.c (objects_live): Renamed from allocnos_live; all
13874         uses changed.
13875         (allocnos_processed): New sparseset.
13876         (make_object_born): Renamed from make_allocno_born; take an
13877         ira_object_t argument.  All callers changed.
13878         (make_object_dead): Renamed from make_allocno_dead; take an
13879         ira_object_t argument.  All callers changed.
13880         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
13881         All callers changed.
13882         (mark_pseudo_regno_live): Iterate over allocno subobjects.
13883         (mark_pseudo_regno_dead): Likewise.
13884         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
13885         functions.
13886         (mark_ref_live): Detect subword accesses and call
13887         mark_pseudo_regno_subword_live as appropriate.
13888         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
13889         (process_bb_nodes_live): Deal with object-related updates first; set
13890         and test bits in allocnos_processed to avoid computing allocno
13891         statistics more than once.
13892         (create_start_finish_chains): Iterate over objects, not allocnos.
13893         (print_object_live_ranges): New function.
13894         (print_allocno_live_ranges): Use it.
13895         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
13896         and objects_live.
13897
13898 2010-07-22  Richard Guenther  <rguenther@suse.de>
13899
13900         PR lto/42451
13901         * gimple.c (gtc_next_dfs_num): New global.
13902         (struct sccs): Make value a union, add integer same_p member.
13903         (gtc_visit): New function.
13904         (gimple_types_compatible_p_1): New function, split out from ...
13905         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
13906         (iterative_hash_gimple_type): Adjust for sccs change.
13907
13908 2010-07-22  Martin Jambor  <mjambor@suse.cz>
13909
13910         PR tree-optimization/44891
13911         * tree-sra.c: Include gimple-pretty-print.h.
13912         (replace_uses_with_default_def_ssa_name): Renamed to
13913         get_repl_default_def_ssa_name, return the new SSA name instead of
13914         replacing the old one.
13915         (sra_modify_assign): Dump a message when removing a load, if the LHS
13916         is an SSA_NAME, do not do any propagation, just set the RHS to a
13917         default definition SSA NAME, type convert if necessary.
13918         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
13919
13920 2010-07-22  Richard Guenther  <rguenther@suse.de>
13921
13922         PR tree-optimization/45017
13923         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
13924         TYPE_PRECISION of integral types in addition to size.
13925
13926 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
13927
13928         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
13929         when no C library is specified.
13930
13931 2010-07-22  Martin Jambor  <mjambor@suse.cz>
13932
13933         * ipa-prop.h (struct ipa_node_params): Updated comment.
13934         (struct ipa_edge_args): Likewise.
13935         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
13936
13937 2010-07-22  Martin Jambor  <mjambor@suse.cz>
13938
13939         * cgraphunit.c (verify_edge_count_and_frequency): New function.
13940         (verify_cgraph_node): Verify frequencies of indirect edges.
13941         * tree-inline.c (tree_function_versioning): Update frequencies of
13942         indirect edges.
13943
13944 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13945
13946         PR target/43698
13947         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
13948         Set *arm_rev to be predicable.
13949
13950 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
13951
13952         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
13953         (LINK_COMMAND_SPEC_A): New.
13954         (DSYMUTIL): New.
13955         (DSYMUTIL_SPEC): New.
13956         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
13957         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
13958
13959 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
13960
13961         * calls.c (load_register_parameters): Move check for zero
13962         sized items so that only the call to
13963         mem_overlaps_already_clobbered_arg_p () is protected.
13964
13965 2010-07-22  Jan Hubicka  <jh@suse.cz>
13966
13967         * ipa-pure-const.c (varying_state): Break out from ...
13968         (get_function_state): ... here; always return varying_state
13969         when state would be NULL otherwise.
13970         (remove_node_data): Do not free varying state.
13971
13972 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
13973
13974         PR bootstrap/44970
13975         PR middle-end/45009
13976         * postreload.c: Include "target.h".
13977         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
13978         into account.
13979         (fixup_debug_insns): Don't copy the rtx.
13980         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
13981         Don't copy when replacing.  Call fixup_debug_insns in the case where
13982         we merged one add with another.
13983         (reload_combine_recognize_pattern): Fail if there aren't any uses.
13984         Try harder to determine whether we're picking a valid index register.
13985         Don't set store_ruid for an insn we're going to scan in the
13986         next iteration.
13987         (reload_combine): Remove unused code.
13988         (reload_combine_note_use): When updating use information for
13989         an old insn, ignore a use that occurs after store_ruid.
13990         * Makefile.in (postreload.o): Update dependencies.
13991
13992         * function.c (record_hard_reg_sets): Restrict the previous change
13993         to cases where the incoming nominal mode is the same as the
13994         incoming promoted mode and everything happens in MODE_INT.
13995
13996 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
13997
13998         PR debug/45015
13999         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
14000         ASM_OPERANDS_OUTPUT_IDX.
14001         (adjust_insn): For inline asm with multiple sets ensure first
14002         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
14003         the insn.
14004
14005 2010-07-21  Richard Henderson  <rth@redhat.com>
14006
14007         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
14008         comparison for avoiding xmm register saves.  Emit the xmm register
14009         saves explicitly.
14010         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
14011         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
14012         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
14013         Remove patterns and the associated splitters.
14014
14015 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
14016
14017         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
14018         and imagine parts of a complex, so that they can have the same
14019         base and fall into the same group.
14020
14021 2010-07-21  Richard Guenther  <rguenther@suse.de>
14022
14023         PR lto/45018
14024         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
14025         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
14026         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
14027
14028 2010-07-21  Martin Jambor  <mjambor@suse.cz>
14029
14030         PR tree-optimization/44900
14031         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
14032         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
14033
14034 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
14035
14036         PR middle-end/44738
14037         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
14038
14039 2010-07-21  Richard Guenther  <rguenther@suse.de>
14040
14041         PR middle-end/45013
14042         * tree-ssa.c (useless_type_conversion_p): Dispatch to
14043         gimple_types_compatible_p only when in lto.
14044         * gimple.c (gimple_types_compatible_p): Use canonical types
14045         to speed up comparison.
14046
14047 2010-07-21  Richard Guenther  <rguenther@suse.de>
14048
14049         * tree-flow.h (referenced_var): Move define ...
14050         * tree-flow-inline.h (referenced_var): ... here as an inline
14051         function.  Assert here ...
14052         * tree-dfa.c (referenced_var_lookup): ... instead of here.
14053         * tree-ssa.c (maybe_optimize_var): Check if the variable
14054         is in referenced vars.
14055         (execute_update_addresses_taken): Remove old broken check.
14056         * gimple-pretty-print.c (pp_points_to_solution): Use
14057         referenced_var_lookup.
14058         * tree-into-ssa.c (dump_decl_set): Likewise.
14059
14060 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
14061
14062         PR debug/45003
14063         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
14064         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
14065         ZERO_EXTEND here.
14066
14067 2010-07-20  Richard Henderson  <rth@redhat.com>
14068
14069         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
14070
14071 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
14072
14073         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
14074         computing the sum of the stack pointer and a large constant.
14075         * config/arm/constraints.md (M): Remove superfluous parentheses.
14076         (Pc): New constraint.
14077
14078 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
14079
14080         PR debug/45006
14081         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
14082         operand's type if exp is tcc_unary class tree.
14083
14084 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
14085
14086         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
14087         Reverse sense of if_then_else condition.
14088
14089 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
14090
14091         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
14092         * config/rs6000/rs6000.c (rs6000_override_options): Set
14093         rs6000_block_move_inline_limit appropriately.
14094         (expand_block_move): Use rs6000_block_move_inline_limit.
14095         * doc/invoke.texi (mblock-move-inline-limit): Document.
14096
14097 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
14098
14099         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
14100         FROM and TO.  All callers changed.  Don't look for tracked uses,
14101         just scan the RTL for DEBUG_INSNs and substitute.
14102         (reload_combine_recognize_pattern): Call fixup_debug_insns.
14103         (reload_combine): Ignore DEBUG_INSNs.
14104
14105 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
14106
14107         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
14108         depth to 8 from 5.
14109
14110         PR debug/45003
14111         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
14112         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
14113         instead of the result's type.
14114
14115 2010-07-20  Richard Guenther  <rguenther@suse.de>
14116
14117         PR tree-optimization/44977
14118         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
14119         SSA form.
14120
14121 2010-07-20  Richard Guenther  <rguenther@suse.de>
14122
14123         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
14124         (lto_symtab_merge_decls_2): Likewise.
14125         * gimple.h (gimple_types_compatible_p): Declare.
14126         * gimple.c (gimple_queue_type_fixup): Remove.
14127         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
14128         (gimple_compatible_complete_and_incomplete_type_p): New function.
14129         (gimple_types_compatible_p): Adjust.
14130         (gimple_register_type): Remove type fixup code.
14131         (print_gimple_types_stats): Adjust.
14132         (free_gimple_type_tables): Likewise.
14133         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
14134         * tree-ssa.c (useless_type_conversion_p): Likewise.
14135
14136 2010-07-20  Richard Guenther  <rguenther@suse.de>
14137
14138         PR middle-end/44971
14139         PR middle-end/44988
14140         * tree-ssa.c (maybe_optimize_var): New function split out from ...
14141         (execute_update_addresses_taken): ... here.
14142         (non_rewritable_mem_ref_base): Likewise.
14143         (execute_update_addresses_taken): Do not iterate over all referenced
14144         vars but just all local decls and parms.
14145         Properly check call and asm arguments and rewrite call arguments.
14146
14147 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
14148
14149         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
14150         to top level.
14151         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
14152         definitions ...
14153         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
14154         New macro.
14155         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
14156
14157 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
14158
14159         * gengtype.c (start_root_entry): New function, split out from
14160         write_root.  Check whether V is null and raise an error if so.
14161         (write_field_root): Check for V being null.  Don't raise an error here;
14162         set V to null instead.
14163         (write_root): Update comment above function.  Use start_root_entry.
14164
14165 2010-07-19  Xinliang David Li  <davidxl@google.com>
14166
14167         PR testsuite/44932
14168         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
14169         def edges.
14170         (find_uninit_use): Add dump.
14171         (is_use_properly_guarded): Ditto.
14172         (warn_uninitialized_phi): Ditto.
14173         (execute_late_warn_uninitialized): Ditto.
14174
14175 2010-07-19  Richard Guenther  <rguenther@suse.de>
14176
14177         PR middle-end/44941
14178         * expr.c (emit_block_move_hints): Move zero size check first.
14179         Move asserts to more useful places.
14180         * calls.c (load_register_parameters): Check for zero size.
14181
14182 2010-07-19  Richard Henderson  <rth@redhat.com>
14183
14184         * tree-optimize.c (execute_all_early_local_passes): New.  Change
14185         cgraph_state here ...
14186         (execute_early_local_optimizations): ... not here.  Remove.
14187         (pass_early_local_passes, pass_all_early_optimizations): Update.
14188
14189 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
14190
14191         * postreload.c (reload_combine_closest_single_use): Ignore the
14192         number of uses for DEBUG_INSNs.
14193         (fixup_debug_insns): New static function.
14194         (reload_combine_recognize_const_pattern): Use it.  Don't let the
14195         main loop be affected by DEBUG_INSNs.
14196         Really disallow moving adds past a jump insn.
14197         (reload_combine_recognize_pattern): Don't update use_ruid here.
14198         (reload_combine_note_use): Do it here.
14199         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
14200
14201 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
14202
14203         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
14204         of a loop.
14205         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
14206
14207 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
14208
14209         * config/i386/darwin.h: Define darwin_emit_branch_islands.
14210         (TARGET_MACHO_BRANCH_ISLANDS): New.
14211         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
14212         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
14213         default value.
14214         * config/i386/i386.c (output_pic_addr_const): Do not emit
14215         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
14216         (x86_output_mi_thunk): Adjust symbol creation.
14217         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
14218         Remove out of date comment.
14219         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
14220         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14221         (DARWIN_GENERATE_ISLANDS): Ditto.
14222         (output_call):  Do not emit branch islands unless
14223         darwin_emit_branch_islands is set.
14224         * config/darwin.c: Declare darwin_emit_branch_islands.
14225         (machopic_indirect_data_reference): Do not emit unless
14226         darwin_emit_branch_islands is set.
14227         (darwin_override_options): Set darwin_emit_branch_islands
14228         where it is needed.
14229         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
14230
14231 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14232
14233         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14234         sse_runtime, sse2_runtime.
14235
14236 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
14237
14238         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
14239         low half of a single-register SCmode return value before ORing
14240         it with the high half.
14241         * config/mips/mips16.S (MERGE_GPRf): Likewise.
14242
14243 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14244
14245         PR target/44805
14246         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
14247         on all targets.
14248
14249 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
14250
14251         PR target/42235
14252         * postreload.c (reload_cse_move2add): Return bool, true if anything.
14253         changed.  All callers changed.
14254         (move2add_use_add2_insn): Likewise.
14255         (move2add_use_add3_insn): Likewise.
14256         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
14257         reload_combine.
14258         (RELOAD_COMBINE_MAX_USES): Bump to 16.
14259         (last_jump_ruid): New static variable.
14260         (struct reg_use): New members CONTAINING_MEM and RUID.
14261         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
14262         (reload_combine_split_one_ruid, reload_combine_split_ruids,
14263         reload_combine_purge_insn_uses, reload_combine_closest_single_use
14264         reload_combine_purge_reg_uses_after_ruid,
14265         reload_combine_recognize_const_pattern): New static functions.
14266         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
14267         is true for our reg and that we have available index regs.
14268         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
14269         callers changed.  Use them to initialize fields in struct reg_use.
14270         (reload_combine): Initialize last_jump_ruid.  Be careful when to
14271         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
14272         Call reload_combine_recognize_const_pattern.
14273         (reload_combine_note_store): Update REAL_STORE_RUID field.
14274
14275 2010-07-16  Jason Merrill  <jason@redhat.com>
14276
14277         * Makefile.in (opts-common.o): Depend on options.h.
14278
14279 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
14280
14281         * tree.c (build_common_builtin_nodes): Use build_function_type_list
14282         instead of build_function_type.
14283         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
14284         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
14285
14286 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
14287
14288         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
14289         do all the work.
14290         (rs6000_emit_int_cmove): Use function pointers for insn generation.
14291         Don't force values into registers unnecessarily.
14292         (output_isel): Assert that we're not given conditions we can't handle.
14293         Delete corresponding code.
14294         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
14295         scc_comparison_operator constraint.  Permit 0 for the consequent
14296         operand.  Permit any GPR for the alternative operand.
14297         (isel_unsigned_<mode>): Likewise.
14298
14299 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
14300
14301         PR target/44942
14302         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
14303         argument to const_tree.
14304         * config/i386/i386.c (function_arg_advance): If padding needs to be
14305         inserted before argument, increment cum->words by number of padding
14306         words as well.
14307         (contains_aligned_value_p): Change argument to const_tree.
14308         (ix86_function_arg_boundary): Change second argument to const_tree.
14309
14310 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
14311
14312         PR target/42235
14313         * function.c (record_hard_reg_sets): New static function.
14314         (assign_parm_setup_reg): If an optab for extending exists and the
14315         generated code clobbbers no hard regs, emit the insn directly and
14316         create a REG_EQUIV note.
14317
14318 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14319
14320         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
14321         TREE_CHAIN.
14322         * c-typeck.c (push_init_level): Likewise.
14323         (process_init_element): Likewise.
14324
14325 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
14326
14327         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
14328         (integer_three_node): Add.
14329         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
14330         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
14331         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
14332         of call build_int_cst.
14333         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
14334         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
14335         (find_interesting_uses_address): Ditto.
14336         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
14337         * tree-eh.c (lower_eh_constructs_2): Ditto.
14338         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
14339         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
14340         * expmed.c (expand_divmod): Ditto.
14341         * tree-mudflap.c (mx_register_decls): Ditto.
14342         * varasm.c (array_size_for_constructor): Ditto.
14343         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
14344         * c-parser.c (c_parser_postfix_expression): Ditto.
14345
14346 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
14347
14348         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
14349         New static variables.
14350         (reload_combine_recognize_pattern): New static function, broken out
14351         of reload_combine.
14352         (reload_combine): Use it.  Only initialize first_index_reg and
14353         last_index_reg once.
14354
14355 2010-07-15  Richard Henderson  <rth@redhat.com>
14356
14357         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
14358         when done.
14359
14360 2010-07-15  Jan Hubicka  <jh@suse.cz>
14361
14362         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
14363         comdats for broken gold.
14364         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
14365
14366 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14367
14368         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
14369
14370 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
14371
14372         * tree.h (DECL_CHAIN): Define.
14373         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
14374         * c-decl.c: Likewise.
14375         * c-parser.c: Likewise.
14376         * c-typeck.c: Likewise.
14377         * cfgexpand.c: Likewise.
14378         * cgraph.c: Likewise.
14379         * cgraphunit.c: Likewise.
14380         * combine.c: Likewise.
14381         * config/alpha/alpha.c: Likewise.
14382         * config/arm/arm.c: Likewise.
14383         * config/frv/frv.c: Likewise.
14384         * config/i386/i386.c: Likewise.
14385         * config/i386/winnt-cxx.c: Likewise.
14386         * config/ia64/ia64.c: Likewise.
14387         * config/iq2000/iq2000.c: Likewise.
14388         * config/mep/mep.c: Likewise.
14389         * config/mips/mips.c: Likewise.
14390         * config/pa/som.h: Likewise.
14391         * config/rs6000/rs6000.c: Likewise.
14392         * config/s390/s390.c: Likewise.
14393         * config/sh/sh.c: Likewise.
14394         * config/sh/symbian-cxx.c: Likewise.
14395         * config/sparc/sparc.c: Likewise.
14396         * config/spu/spu.c: Likewise.
14397         * config/stormy16/stormy16.c: Likewise.
14398         * config/vxworks.c: Likewise.
14399         * config/xtensa/xtensa.c: Likewise.
14400         * coverage.c: Likewise.
14401         * dbxout.c: Likewise.
14402         * dwarf2out.c: Likewise.
14403         * emit-rtl.c: Likewise.
14404         * expr.c: Likewise.
14405         * function.c: Likewise.
14406         * gimple-low.c: Likewise.
14407         * gimple-pretty-print.c: Likewise.
14408         * gimplify.c: Likewise.
14409         * integrate.c: Likewise.
14410         * ipa-inline.c: Likewise.
14411         * ipa-prop.c: Likewise.
14412         * ipa-split.c: Likewise.
14413         * ipa-struct-reorg.c: Likewise.
14414         * ipa-type-escape.c: Likewise.
14415         * langhooks.c: Likewise.
14416         * lto-cgraph.c: Likewise.
14417         * omp-low.c: Likewise.
14418         * stor-layout.c: Likewise.
14419         * tree-cfg.c: Likewise.
14420         * tree-complex.c: Likewise.
14421         * tree-dfa.c: Likewise.
14422         * tree-dump.c: Likewise.
14423         * tree-inline.c: Likewise.
14424         * tree-mudflap.c: Likewise.
14425         * tree-nested.c: Likewise.
14426         * tree-object-size.c: Likewise.
14427         * tree-pretty-print.c: Likewise.
14428         * tree-sra.c: Likewise.
14429         * tree-ssa-live.c: Likewise.
14430         * tree-ssa-loop-niter.c: Likewise.
14431         * tree-ssa-math-opts.c: Likewise.
14432         * tree-ssa-reassoc.c: Likewise.
14433         * tree-ssa-sccvn.c: Likewise.
14434         * tree-ssa-structalias.c: Likewise.
14435         * tree-tailcall.c: Likewise.
14436         * tree-vrp.c: Likewise.
14437         * tree.c: Likewise.
14438         * var-tracking.c: Likewise.
14439         * varasm.c: Likewise.
14440
14441 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14442
14443         PR target/44877
14444         * config/spu/spu.c (spu_expand_builtin_1): Allow references
14445         (as well as pointers) as argument to mask_for_load builtins.
14446
14447 2010-07-15  Richard Guenther  <rguenther@suse.de>
14448
14449         PR tree-optimization/44946
14450         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
14451         with accessing only padding properly.
14452
14453 2010-07-15  Jan Hubicka  <jh@suse.cz>
14454
14455         * ipa.c (function_and_variable_visibility): Variables marked as used
14456         should not be localized.
14457
14458 2010-07-15  Jan Hubicka  <jh@suse.cz>
14459
14460         * cgraph.c: Include lto-streamer.h
14461         (change_decl_assembler_name): Work when assembler name hash is at place.
14462         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
14463         be sure to rename it to avoid name clash.
14464         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
14465         Localize hidden symbols only when locally defined.
14466
14467 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
14468
14469         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
14470
14471 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
14472             Kevin F. Quinn  <kevquinn@gentoo.org>
14473
14474         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
14475         * common.opt: Add -Wtrampolines.
14476         * doc/invoke.texi: Add -Wtrampolines.
14477
14478 2010-07-15  Jie Zhang  <jie@codesourcery.com>
14479
14480         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
14481         cortex_a8_issue_ls.
14482
14483 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
14484
14485         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
14486         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
14487
14488 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14489
14490         * config/spu/spu.c (reg_names): Remove prototype.
14491         (call_used_regs): Likewise.
14492
14493 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
14494
14495         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
14496         "unused" with attribute "used".
14497         (__JCR_END__): Likewise.
14498         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
14499         "used" attribute.
14500         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
14501
14502 2010-07-14  Richard Guenther  <rguenther@suse.de>
14503
14504         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
14505         (maybe_fixup_decls): Likewise.
14506         (input_gimple_stmt): Do not fixup anything.
14507         * lto-streamer-out.c (output_gimple_stmt): Make sure all
14508         non-automatic variable uses are wrapped inside a MEM_REF.
14509
14510 2010-07-14  Richard Henderson  <rth@redhat.com>
14511
14512         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
14513         for functions.
14514         * varasm.c (assemble_variable): Remove early exit for functions;
14515         assert that we're given a variable.
14516
14517 2010-07-14  Jie Zhang  <jie@codesourcery.com>
14518
14519         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
14520         cortex_a8_default when neon_type is not none.
14521
14522 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14523
14524         * lower-subreg.c (subreg_context): New static bitmap.
14525         (decompose_multiword_subregs): Allocate and free it.
14526         (find_decomposable_subregs): Set a bit in it for a register that
14527         occurs in a subreg that changes mode but not size.
14528         (can_decompose_p): Test it instead of non_decomposable_context.
14529
14530 2010-07-14  Richard Guenther  <rguenther@suse.de>
14531
14532         PR tree-optimization/44824
14533         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
14534         is_gimple_mem_ref_addr.
14535         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
14536         non-decl_address_invariant_p addresses.
14537
14538 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14539
14540         * reload.c (find_reloads): Revert code to penalize small register
14541         classes that was brought in with the IRA merge.
14542
14543 2010-07-14  Richard Guenther  <rguenther@suse.de>
14544
14545         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
14546         as base of ARRAY_REFs.
14547
14548 2010-07-14  Richard Guenther  <rguenther@suse.de>
14549
14550         PR middle-end/44930
14551         * tree-pretty-print.c (do_niy): Do not print a newline.
14552
14553 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
14554
14555         * ira-int.h (struct ira_object): New.
14556         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
14557         (struct ira_allocno): Remove members min, max,
14558         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
14559         conflict_allocnos_num and conflict_vec_p.  Add new member object.
14560         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
14561         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
14562         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
14563         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
14564         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
14565         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
14566         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
14567         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
14568         an ira_object_t rather than ira_allocno_t.  All uses changed.
14569         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14570         contains a vector of ira_object_t; all uses changed.
14571         (ira_objects_num): Declare variable.
14572         (ira_create_allocno_object): Declare function.
14573         (ira_conflict_vector_profitable_p): Adjust prototype.
14574         (ira_allocate_conflict_vec): Renamed from
14575         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
14576         (ira_allocate_object_conflicts): Renamed from
14577         ira_allocate_allocno_conflicts; first arg now ira_object_t.
14578         (struct ira_object_iterator): New.
14579         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
14580         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
14581         to conflict_vec_p.  All uses changed.
14582         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
14583         Changed to take into account that conflicts are now tracked for
14584         objects.
14585         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
14586         Args changed to accept ira_object_t.  All uses changed.
14587         (allocnos_conflict_p): New static function.
14588         (collected_conflict_objects): Renamed from collected_allocno_objects;
14589         now a vector of ira_object_t.  All uses changed.
14590         (build_conflict_bit_table): Changed to take into account that
14591         conflicts are now tracked for objects.
14592         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
14593         (print_allocno_conflicts, ira_build_conflicts): Likewise.
14594         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
14595         setup_allocno_left_conflicts_size, allocno_reload_assign,
14596         fast_allocation): Likewise.
14597         * ira-lives.c (make_hard_regno_born, make_allocno_born)
14598         process_single_reg_class_operands, process_bb_node_lives): Likewise.
14599         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
14600         Likewise.
14601         * ira-build.c (ira_objects_num): New variable.
14602         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14603         contains a vector of ira_object_t; all uses changed.
14604         (ira_object_id_map_vec): Corresponding change.
14605         (object_pool): New static variable.
14606         (initiate_allocnos): Initialize it.
14607         (finish_allocnos): Free it.
14608         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
14609         New functions.
14610         (ira_create_allocno): Don't set members that were removed.
14611         (ira_set_allocno_cover_class): Don't change conflict hard regs.
14612         (merge_hard_reg_conflicts): Changed to take into account that
14613         conflicts are now tracked for objects.
14614         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
14615         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
14616         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
14617         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
14618         setup_min_max_conflict_allocno_ids, ):  Likewise.
14619         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
14620         to ira_object_t; all callers changed.
14621         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
14622         to ira_object_t, all callers changed.
14623         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
14624         to ira_object_t, all callers changed.
14625         (conflict_check, curr_conflict_check_tick): Renamed from
14626         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
14627         changed.
14628         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
14629         arg changed to ira_object_t, all callers changed.
14630         (create_cap_allocno): Call ira_create_allocno_object.
14631         (finish_allocno): Free the corresponding object.
14632         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
14633         callers changed.  Adjusted for dealing with objects.
14634         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
14635         dealing with objects.
14636         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
14637
14638         * ira-int.h (struct live_range): Rename allocno member to object
14639         and change type to ira_object_t.
14640         (struct ira_object): New member live_ranges.
14641         (struct ira_allocno): Remove member live_ranges.
14642         (ALLOCNO_LIVE_RANGES): Remove.
14643         (OBJECT_LIVE_RANGES): New macro.
14644         (ira_create_live_range, ira_copy_live_range_list,
14645         ira_merge_live_range_list, ira_live_ranges_intersect_p,
14646         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
14647         * ira-build.c (ira_create_object): Initialize live ranges here.
14648         (ira_create_allocno): Not here.
14649         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
14650         changed to ira_object_t, all callers changed.
14651         (copy_live_range): Rename from copy_allocno_live_range, all callers
14652         changed.
14653         (ira_copy_live_range_list): Rename from
14654         ira_copy_allocno_live_range_list, all callers changed.
14655         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
14656         all callers changed.
14657         (ira_live_ranges_intersect_p): Rename from
14658         ira_allocno_live_ranges_intersect_p, all callers changed.
14659         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
14660         callers changed.
14661         (ira_finish_live_range_list): Rename from
14662         ira_finish_allocno_live_range_list, all callers changed.
14663         (change_object_in_range_list): Rename from change_allocno_in_range_list,
14664         last arg changed to ira_object_t, all callers changed.
14665         (finish_allocno): Changed to expect live ranges in the allocno's object.
14666         (move_allocno_live_ranges, copy_allocno_live_ranges,
14667         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
14668         ira_flattening, ira_build): Likewise.
14669         * ira-color.c (allocnos_have_intersected_live_ranges_p,
14670         slot_coalesced_allocno_live_ranges_intersect,
14671         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
14672         * ira-conflicts.c (build_conflict_bit_table): Likewise.
14673         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14674         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
14675         make_allocno_dead, create_start_finish_chains,
14676         remove_some_program_points_and_update_live_ranges,
14677         ira_debug_live_range_list): Likewise.
14678
14679         * ira-int.h (ira_object_conflict_iterator): Rename from
14680         ira_allocno_conflict_iterator.
14681         (ira_object_conflict_iter_init): Rename from
14682         ira_allocno_conflict_iter_init, second arg changed to
14683         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
14684         FOR_EACH_ALLOCNO_CONFLICT.
14685         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
14686         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
14687         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
14688         * ira-conflicts.c (print_allocno_conflicts): Likewise.
14689
14690 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
14691
14692         PR other/44874
14693         * tree-dump.c (dump_options): Add enumerate_locals entry.
14694         Add TDF_NOID exclusion to all entry.
14695         * tree-dump.h (dump_enumerated_decls): Declare.
14696         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
14697         Don't display type uid.
14698         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
14699         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
14700         * tree-ssa-live.c: Include gimple.h.
14701         (numbered_tree_d): New struct.
14702         (numbered_tree): New typedef.
14703         (DEF_VEC_O (numbered_tree): New.
14704         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
14705         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
14706         (dump_enumerated_decls): Likewise.
14707         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
14708         debug info and flag_dump_final_insns, call dump_enumerated_decls.
14709         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
14710         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
14711
14712 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
14713
14714         * expmed.h (MAX_BITS_PER_WORD): Move to...
14715         * defaults.h (MAX_BITS_PER_WORD): ...here.
14716
14717 2010-07-13  DJ Delorie  <dj@redhat.com>
14718
14719         * config/h8300/h8300.c (h8300_init_once): Default to
14720         -fstrict_volatile_bitfields.
14721
14722         * config/sh/sh.c (sh_override_options): Default to
14723         -fstrict_volatile_bitfields.
14724
14725         * config/rx/rx.c (rx_option_override): New.
14726
14727         * config/m32c/m32c.c (m32c_override_options): Default to
14728         -fstrict_volatile_bitfields.
14729
14730 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
14731
14732         * tree.h (build_function_call_expr): Delete.
14733         (build_call_expr_loc_array): New function.
14734         (build_call_expr_loc_vec): New function.
14735         * tree-flow.h (struct omp_region): Change type of ws_args field
14736         to a VEC.
14737         * builtins.c (build_function_call_expr): Delete.
14738         (build_call_expr_loc_array): New function.
14739         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
14740         (build_call_expr): Likewise.
14741         (build_call_expr_loc_vec): New function.
14742         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
14743         build_function_call_expr.
14744         * expr.c (emutls_var_address): Likewise.
14745         * varasm.c (emutls_common_1): Likewise.
14746         * omp-low.c (expand_omp_atomic_mutex): Likewise.
14747         (expand_omp_taskreg): Adjust for new type of region->ws_args.
14748         (get_ws_args_for): Return a VEC instead of a tree.
14749         (expand_parallel_call): Call build_call_expr_loc_vec instead of
14750         build_function_call_expr.
14751         * stor-layout.c (self_referential_size): Likewise.
14752
14753 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
14754
14755         PR testsuite/44701
14756         * recog.c (constrain_operands): Allow side-effects in memory
14757         operands if either < or > constraint is used, rather than if
14758         both < and > is used.
14759
14760 2010-07-13  Richard Guenther  <rguenther@suse.de>
14761
14762         PR middle-end/44911
14763         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
14764         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
14765         without name.
14766
14767 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
14768
14769         PR target/44761
14770         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
14771         to variable emited.
14772         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
14773         * config/sh/sh.md (symGOT_load): Likewise.
14774         (symDTPOFF2reg): Likewise.
14775         (symTPOFF2reg): Likewise.
14776
14777 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14778
14779         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
14780         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
14781
14782 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14783
14784         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
14785         explanation.
14786         Find ucontext_t * on Solaris 11.
14787         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
14788         Handle new Solaris 11 __sighndlr patterns.
14789
14790 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
14791
14792         PR debug/44901
14793         * vec.h (VEC_block_remove): Fix comment.
14794         * tree-ssa-live.c (remove_unused_locals): Don't use
14795         VEC_unordered_remove on local_decls, instead replace a single
14796         vector element in each iteration if at least one element had
14797         to be removed and VEC_truncate at the end.
14798         * omp-low.c (expand_omp_taskreg): Likewise.
14799
14800 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14801
14802         * c-decl.c (finish_function): Fix typo in comment.
14803
14804 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
14805
14806         PR bootstrap/44921
14807         * postreload.c (move2add_use_add3_insn): Silence gcc warning
14808         on min_regno.
14809
14810 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
14811
14812         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
14813         (simplify_stmt_using_ranges): Use it.
14814
14815 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14816
14817         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
14818         member.  Do not mark as GTY(()).
14819         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
14820         (spu_builtin_decls): New static variable.
14821         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
14822         (spu_init_builtins): Likewise.
14823         (spu_builtin_mul_widen_even): Likewise.
14824         (spu_builtin_mul_widen_odd): Likewise.
14825         (spu_builtin_mask_for_load): Likewise.
14826         (spu_builtin_vec_perm): Likewise.
14827         * config/spu/spu-c.c: Include "target.h".
14828         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
14829         of using spu_builtins[].fndecl.
14830
14831 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14832
14833         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
14834         imply -minterlink-mips16.
14835
14836 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14837
14838         * config/mips/mips.h (mips16_globals): Declare.
14839         (SWITCHABLE_TARGET): Define.
14840         * config/mips/mips.c: Include target-globals.h.
14841         (mips16_globals): New variable.
14842         (mips_set_mips16_mode): Use save_target_globals and
14843         restore_target_globals instead of target_reinit.
14844
14845 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14846
14847         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
14848         to say that the function can be called more than once.
14849         * target-globals.c (save_target_globals): Call init_reg_sets.
14850
14851 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14852
14853         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
14854         * bb-reorder.h: New file.
14855         * bb-reorder.c (default_target_bb_reorder): New variable.
14856         (this_target_bb_reorder): New conditional variable.
14857         (uncond_jump_length): Redefine as a macro.
14858         * target-globals.h (this_target_bb_reorder): Declare.
14859         (target_globals): Add a bb_reorder field.
14860         (restore_target_globals): Copy the bb_reorder field to
14861         this_target_bb-reorder.
14862         * target-globals.c: Include bb-reorder.h.
14863         (default_target_globals): Initialize the bb_reorder field.
14864         (save_target_globals): Likewise.
14865
14866 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14867
14868         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
14869         * gcse.h: New file.
14870         * gcse.c: Include gcse.h.
14871         (default_target_gcse): New variable.
14872         (this_target_gcse): New conditional variable.
14873         (can_copy): Redefine as a macro.
14874         (can_copy_init_p): New macro.
14875         (can_copy_p): Remove can_copy_init_p.
14876         * target-globals.h (this_target_gcse): Declare.
14877         (target_globals): Add a gcse field.
14878         (restore_target_globals): Copy the gcse field to this_target_gcse.
14879         * target-globals.c: Include gcse.h.
14880         (default_target_globals): Initialize the gcse field.
14881         (save_target_globals): Likewise.
14882
14883 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14884
14885         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
14886         and x_ira_prohibited_mode_move_regs_initialized_p.
14887         (ira_prohibited_mode_move_regs): Redefine as a macro.
14888         * ira.c (ira_prohibited_mode_move_regs): Delete.
14889         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
14890
14891 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14892
14893         * reload.h (target_reload): Add x_cached_reg_save_code and
14894         x_cached_reg_restore_code.
14895         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
14896         Redefine as macros.
14897
14898 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14899
14900         * Makefile.in (target-globals.o): Depend on builtins.h.
14901         * builtins.h: New file.
14902         * builtins.c: Include builtins.h.
14903         (default_target_builtins): New variable.
14904         (this_target_builtins): New conditional variable.
14905         (apply_args_mode, apply_result_mode): Redefine as macros.
14906         * target-globals.h (this_target_builtins): Declare.
14907         (target_globals): Add a builtins field.
14908         (restore_target_globals): Copy the builtins field to
14909         this_target_builtins.
14910         * target-globals.c: Include builtins.h.
14911         (default_target_globals): Initialize the builtins field.
14912         (save_target_globals): Likewise.
14913
14914 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14915
14916         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
14917         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
14918         from expmed.c.
14919         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
14920         (alg_hash, alg_hash_used_p): New macros.
14921         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
14922         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
14923         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
14924
14925 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14926
14927         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
14928         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
14929         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
14930         (this_op_costs, costs_classes): Redefine as macros.
14931         (record_reg_classes): Don't take op_costs as a parameter.
14932         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
14933         (scan_one_insn): Update call to record_operand_costs.
14934
14935 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14936
14937         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
14938         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
14939         (target_ira_int): New structure.
14940         (default_target_ira_int): Declare.
14941         (this_target_ira_int): Declare as a variable or define as a macro.
14942         (ira_reg_mode_hard_regset, ira_register_move_cost)
14943         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
14944         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
14945         (prohibited_class_mode_regs, ira_important_classes_num)
14946         (ira_important_classes, ira_reg_class_intersect)
14947         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
14948         (ira_reg_class_union): Redefine as macros.
14949         * ira.h (target_ira): New structure.
14950         (default_target_ira): Declare.
14951         (this_target_ira): Declare as a variable or define as a macro.
14952         (ira_available_class_regs, ira_hard_regno_cover_class)
14953         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
14954         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
14955         (ira_class_hard_regs_num): Redefine as macros.
14956         * ira.c (default_target_ira, default_target_ira_int): New variables.
14957         (this_target_ira, this_target_ira_int): New conditional variables.
14958         (ira_reg_mode_hard_regset, ira_memory_move_cost)
14959         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
14960         (ira_class_subset_p): Delete.
14961         (no_unit_alloc_regs): Redefine as a macro.
14962         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
14963         (ira_class_hard_regs_num, ira_class_hard_reg_index)
14964         (ira_available_class_regs): Delete.
14965         (alloc_reg_class_subclasses): Redefine as a macro.
14966         (ira_reg_class_cover_size, ira_reg_class_cover)
14967         (ira_important_classes_num, ira_important_classes)
14968         (ira_important_class_nums, ira_class_translate): Delete.
14969         (cover_class_order): Document the variable's lifetime.
14970         (reorder_important_classes): Don't set ira_important_class_nums.
14971         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
14972         (ira_reg_class_super_classes, ira_reg_class_union)
14973         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
14974         Delete.
14975         (setup_reg_class_nregs): Don't set ira_max_regs.
14976         (prohibited_class_mode_regs): Delete.
14977         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
14978         (target_globals): Add ira and ira_int fields.
14979         (restore_target_globals): Copy the ira field to this_target_ira
14980         and the ira_int field to this_target_ira_int.
14981         * target-globals.c: Include ira-int.h.
14982         (default_target_globals): Initialize the ira and ira_int fields.
14983         (save_target_globals): Likewise.
14984
14985 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
14986
14987         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
14988         * cfgloop.h (target_cfgloop): New structure.
14989         (default_target_cfgloop): Declare.
14990         (this_target_cfgloop): Declare as a variable or define as a macro.
14991         (target_avail_regs, target_clobbered_regs, target_res_regs)
14992         (target_reg_cost, target_spill_cost): Redefine as macros.
14993         * cfgloopanal.c (default_target_cfgloop): New variable.
14994         (this_target_cfgloop): New conditional variable.
14995         (target_avail_regs, target_clobbered_regs, target_res_regs)
14996         (target_reg_cost, target_spill_cost): Delete.
14997         * target-globals.h (this_target_cfgloop): Declare.
14998         (target_globals): Add a cfgloop field.
14999         (restore_target_globals): Copy the cfgloop field to
15000         this_target_cfgloop.
15001         * target-globals.c: Include cfgloop.h.
15002         (default_target_globals): Initialize the cfgloop field.
15003         (save_target_globals): Likewise.
15004
15005 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15006
15007         * regs.h (target_regs): Add x_direct_load, x_direct_store and
15008         x_float_extend_from_mem.
15009         (direct_load, direct_store, float_extend_from_mem): New macros.
15010         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
15011
15012 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15013
15014         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
15015         (target-globals.o): Depend on $(LIBFUNCS_H).
15016         * libfuncs.h: Include hashtab.h.
15017         (libfunc_entry): Moved from optabs.c.
15018         (target_libfuncs): New structure.
15019         (default_target_libfuncs): Declare.
15020         (this_target_libfuncs): Declare as a variable or define as a macro.
15021         (libfunc_table): Redefine as a macro.
15022         * optabs.c (default_target_libfuncs): New variable.
15023         (this_target_libfuncs): New conditional variable.
15024         (libfunc_table): Delete.
15025         (libfunc_entry): Moved to optabs.h.
15026         (libfunc_hash): Redefine as a macro.
15027         (hash_libfunc, eq_libfunc): Fix comments.
15028         (init_optabs): Use libfunc_hash to detect cases where the function
15029         has already been called.  Clear the hash table instead of
15030         recreating it.
15031         * target-globals.h (this_target_libfuncs): Declare.
15032         (target_globals): Add a libfuncs field.
15033         (restore_target_globals): Copy the libfuncs field to
15034         this_target_libfuncs.
15035         * target-globals.c: Include libfuncs.h.
15036         (default_target_globals): Initialize the libfuncs field.
15037         (save_target_globals): Likewise.
15038
15039 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15040
15041         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
15042         in all dependency lists.
15043
15044 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15045
15046         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
15047         * optabs.h (target_optabs): New structure.
15048         (default_target_optabs): Declare.
15049         (this_target_optabs): Declare as a variable or define as a macro.
15050         (optab_table, convert_optab_table, direct_optab_table): Redefine
15051         as macros.
15052         * optabs.c (default_target_optabs): New variable.
15053         (this_target_optabs): New conditional variable.
15054         (optab_table, convert_optab_table, direct_optab_table): Delete.
15055         * target-globals.h (this_target_optabs): Declare.
15056         (target_globals): Add a optabs field.
15057         (restore_target_globals): Copy the optabs field to
15058         this_target_optabs.
15059         * target-globals.c: Include expr.h and optabs.h.
15060         (default_target_globals): Initialize the optabs field.
15061         (save_target_globals): Likewise.
15062
15063 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15064
15065         * flags.h (target_flagstate): Add x_flag_excess_precision.
15066         (flag_excess_precision): Redefine as a macro.
15067         * toplev.c (flag_excess_precision): Delete.
15068
15069 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15070
15071         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
15072         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
15073         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
15074         (no_caller_save_reg_set): Redefine as a macro.
15075         * reload.h (target_reload): Add x_caller_save_initialized_p and
15076         x_regno_save_mode.
15077         (caller_save_initialized_p): Redefine as a macro.
15078         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
15079         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
15080         (regno_save_mode): Redefine as a macro.
15081
15082 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15083
15084         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
15085         * expmed.h: New file.
15086         * expmed.c (default_target_costs): New variable.
15087         (this_target_costs): New conditional variable.
15088         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
15089         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
15090         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
15091         * target-globals.h (this_target_expmed): Declare.
15092         (target_globals): Add a expmed field.
15093         (restore_target_globals): Copy the expmed field to
15094         this_target_expmed.
15095         * target-globals.c: Include expmed.h.
15096         (default_target_globals): Initialize the expmed field.
15097         (save_target_globals): Likewise.
15098
15099 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15100
15101         * Makefile.in (target-globals.o): Depend on reload.h.
15102         * reload.h (target_reload): New structure.
15103         (default_target_reload): Declare.
15104         (this_target_reload): Declare as a variable or define as a macro.
15105         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
15106         * reload1.c (default_target_reload): New variable
15107         (this_target_reload): New conditional variable.
15108         (indirect_symref_ok, double_reg_address_ok): Delete.
15109         (spill_indirect_levels): Redefine as a macro.
15110         * target-globals.h (this_target_reload): Declare.
15111         (target_globals): Add a reload field.
15112         (restore_target_globals): Copy the reload field to
15113         this_target_reload.
15114         * target-globals.c: Include hard-reg-set.h.
15115         (default_target_globals): Initialize the reload field.
15116         (save_target_globals): Likewise.
15117
15118 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15119
15120         * rtl.h (target_rtl): Add x_static_reg_base_value.
15121         * alias.c (static_reg_base_value): Redefine as a macro.
15122
15123 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15124
15125         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
15126         (GTFILES): Remove reginfo.c.
15127         * rtl.h (target_rtl): Add x_top_of_stack.
15128         (top_of_stack): New macro.
15129         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
15130         (top_of_stack): Delete.
15131
15132 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15133
15134         * regs.h (target_regs): Add x_hard_regs_of_mode,
15135         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
15136         x_may_move_out_cost and x_last_mode_for_init_move_cost.
15137         (have_regs_of_mode, contains_reg_of_mode, move_cost)
15138         (may_move_in_cost, may_move_out_cost): Redefine as macros.
15139         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
15140         (may_move_in_cost, may_move_out_cost): Delete.
15141         (last_mode_for_init_move_cost): Redefine as a macro.
15142
15143 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15144
15145         * hard-reg-set.h (target_hard_regs): New structure.
15146         (default_target_hard_regs): Declare.
15147         (this_target_hard_regs): Declare as a variable or define as a macro.
15148         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
15149         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
15150         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
15151         (reg_class_size, reg_class_subclasses, reg_class_subunion)
15152         (reg_class_superunion, reg_names): Redefine as macros.
15153         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
15154         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
15155         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
15156         (reg_class_contents, reg_class_size, reg_class_subclasses)
15157         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
15158         (default_target_hard_regs): New variable
15159         (this_target_hard_regs, initial_call_really_used_regs)
15160         (initial_reg_alloc_order): New conditional variables.
15161         (initial_reg_names): New variable.
15162         (init_reg_sets): Assert that initial_call_really_used_regs,
15163         initial_reg_alloc_order and initial_reg_names
15164         are all the same size as their variable counterparts.  Use them to
15165         initialize those counterparts.
15166         * target-globals.h (this_target_hard_regs): Declare.
15167         (target_globals): Add a hard_regs field.
15168         (restore_target_globals): Copy the hard_regs field to
15169         this_target_hard_regs.
15170         * target-globals.c: Include hard-reg-set.h.
15171         (default_target_globals): Initialize the hard_regs field.
15172         (save_target_globals): Likewise.
15173
15174 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15175
15176         * Makefile.in (target-globals.o): Depend on $(RTL_H).
15177         * rtl.h (target_rtl): New structure.
15178         (default_target_rtl): Declare.
15179         (this_target_rtl): Declare as a variable or define as a macro.
15180         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
15181         Redefine as macros.
15182         * emit-rtl.c (default_target_rtl): New variable.
15183         (this_target_rtl): New conditional variable.
15184         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
15185         (return_address_pointer_rtx): Delete.
15186         (initial_regno_reg_rtx): New macro.
15187         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
15188         (init_emit_regs): Likewise.
15189         * target-globals.h (this_target_rtl): Declare.
15190         (target_globals): Add a rtl field.
15191         (restore_target_globals): Copy the rtl field to this_target_rtl.
15192         * target-globals.c: Include rtl.h.
15193         (default_target_globals): Initialize the rtl field.
15194         (save_target_globals): Likewise.
15195
15196 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15197
15198         * Makefile.in (target-globals.o): Depend on $(REGS_H).
15199         * regs.h (target_reg_modes): New structure.
15200         (default_target_reg_modes): Declare.
15201         (this_target_reg_modes): Declare as a variable or define as a macro.
15202         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
15203         * reginfo.c (default_target_reg_modes): New variable.
15204         (this_target_reg_modes): New conditional variable.
15205         (hard_regno_nregs, reg_raw_mode): Delete.
15206         * target-globals.h (this_target_regs): Declare.
15207         (target_globals): Add a regs field.
15208         (restore_target_globals): Copy the regs field to this_target_regs.
15209         * target-globals.c: Include regs.h.
15210         (default_target_globals): Initialize the regs field.
15211         (save_target_globals): Likewise.
15212
15213 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
15214
15215         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
15216         * doc/tm.texi: Regenerate.
15217         * Makefile.in (OBJS-common): Add target-globals.o.
15218         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
15219         and target-globals.h.
15220         (target-globals.o): New rule.
15221         (GTFILES): Include $(srcdir)/target-globals.h.
15222         * defaults.h (SWITCHABLE_TARGET): Define.
15223         * gengtype.c (open_base_files): Add target-globals.h to the
15224         list of includes.
15225         * target-globals.h: New file.
15226         * target-globals.c: Likewise.
15227
15228         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
15229         * flags.h (target_flag_state): New structure.
15230         (default_target_flag_state): Declare.
15231         (this_target_flag_state): Declare as a variable or define as a macro.
15232         (align_loops_log): Redefine as a macro.
15233         (align_loops_max_skip, align_jumps_log): Likewise.
15234         (align_jumps_max_skip, align_labels_log): Likewise.
15235         (align_labels_max_skip, align_functions_log): Likewise.
15236         * toplev.c (default_target_flag_state): New variable.
15237         (this_target_flag_state): New conditional variable.
15238         (align_loops_log): Delete.
15239         (align_loops_max_skip, align_jumps_log): Likewise.
15240         (align_jumps_max_skip, align_labels_log): Likewise.
15241         (align_labels_max_skip, align_functions_log): Likewise.
15242         * target-globals.h (this_target_flag_state): Declare.
15243         (target_globals): Add a flag_state field.
15244         (restore_target_globals): Copy the flag_state field to
15245         this_target_flag_state.
15246         * target-globals.c: Include flags.h.
15247         (default_target_globals): Initialize the flag_state field.
15248         (save_target_globals): Likewise.
15249
15250 2010-07-12  Jie Zhang  <jie@codesourcery.com>
15251
15252         * postreload.c (reg_symbol_ref[]): New.
15253         (move2add_use_add2_insn): New.
15254         (move2add_use_add3_insn): New.
15255         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
15256         (move2add_note_store): Likewise.
15257
15258 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
15259
15260         PR rtl-optimization/44752
15261         * genautomata.c (main): Don't emit an empty file even if there
15262         is no automaton.
15263
15264 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15265
15266         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
15267         ix86_solaris_return_in_memory.
15268         * config/i386-protos.h: Reflect this.
15269         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15270         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15271         Move ...
15272         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
15273
15274 2010-07-12  Jie Zhang  <jie@codesourcery.com>
15275
15276         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
15277         align the stack when it's going to be saved.
15278
15279 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15280
15281         PR pch/14940
15282         * config/host-solaris.c (mmap_fixed): New function.
15283         (sol_gt_pch_get_address): Use it.
15284         (sol_gt_pch_use_address): Likewise.
15285
15286 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15287
15288         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
15289         pentiumpro on Solaris 8 and 9/x86.
15290         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
15291         Document SSE/SSE2 support.
15292         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
15293
15294 2010-07-12  Andi Kleen  <ak@linux.intel.com>
15295
15296         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
15297         instead of gcc_assert to print better error message for multiple
15298         prevailing defs.
15299
15300 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
15301
15302         * config/i386/i386.c (ix86_asm_output_function_label): Change format
15303         string placeholder from 0x%x to %#x.
15304         (ix86_code_end): Use putc to output '\n'.
15305         (ix86_print_operand) <case ';'>: Use putc to output ';'.
15306
15307 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
15308
15309         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
15310         in directive -export.
15311
15312 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
15313
15314         * reginfo.h (reg_classes_intersect_p): Change arguments type to
15315         reg_class_t.
15316         * rtl.h (reg_classes_intersect_p): Adjust prototype.
15317
15318         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15319         Remove macros.
15320         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
15321         rs6000_memory_move_cost): Remove
15322         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
15323         TARGET_MEMORY_MOVE_COST): Define.
15324         (rs6000_register_move_cost): Make static. Change arguments type from
15325         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
15326         (rs6000_memory_move_cost): Make static. Change arguments type from
15327         'enum reg_class' to reg_class_t.
15328
15329 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
15330
15331         PR middle-end/42505
15332         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
15333         lookup code into....
15334         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
15335         new functions.
15336         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
15337         * cfgloopanal.c (target_clobbered_regs): Define.
15338         (init_set_costs): Initialize target_clobbered_regs.
15339         (estimate_reg_pressure_cost): Add call_p argument.  When true,
15340         adjust the number of available registers to exclude the
15341         call-clobbered registers.
15342         * cfgloop.h (target_clobbered_regs): Declare.
15343         (estimate_reg_pressure_cost): Adjust declaration.
15344         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
15345         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
15346         (determine_set_costs): Dump target_clobbered_regs.
15347         (loop_body_includes_call): New function.
15348         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
15349         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
15350         call_p flag through.
15351         (best_gain_for_invariant): Likewise.
15352         (find_invariants_to_move): Likewise.
15353         (move_single_loop_invariants): Likewise, using already-computed
15354         has_call field.
15355
15356 2010-07-10  Richard Guenther  <rguenther@suse.de>
15357             Joern Rennecke  <joern.rennecke@embecosm.com>
15358
15359         PR debug/44832
15360         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
15361         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
15362         unless they have DECL_IGNORED_P set.
15363
15364 2010-07-10  Richard Guenther  <rguenther@suse.de>
15365
15366         PR lto/44889
15367         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
15368         helper function.
15369         (gimple_types_compatible_p): Similar to pointed-to
15370         types allow and merge a mix of complete and incomplete aggregate.
15371         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
15372         (iterative_hash_gimple_type): Adjust for that.
15373
15374 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
15375
15376         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
15377
15378 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
15379
15380         PR objc/44140
15381         * config/darwin.c (output_objc_section_asm_op): Save and restore
15382         section when outputting ObjC section list.
15383
15384 2010-07-09  Jan Hubicka  <jh@suse.cz>
15385
15386         * lto-streamer-out.c (produce_symtab): Do not write alias
15387         cgraph/varpool nodes.
15388
15389 2010-07-09  Jan Hubicka  <jh@suse.cz>
15390
15391         * tree-inline.c (declare_return_variable): Fix ICE while
15392         inlining DECL_BY_VALUE function not in SSA form
15393
15394 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
15395
15396         PR tree-optimization/44576
15397         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
15398         New.  Pull out from is_loop_prefetching_profitable to implement
15399         the trip count to ahead ratio heuristic.
15400         (mem_ref_count_reasonable_p): New.  Pull out from
15401         is_loop_prefetching_profitable to implement the instruction to
15402         memory reference ratio heuristic.  Also consider not reasonable if
15403         the memory reference count is above a threshold (to avoid
15404         explosive compilation time.
15405         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
15406         is_loop_prefetching_profitable to implement the instruction to
15407         prefetch ratio heuristic.
15408         (is_loop_prefetching_profitable): Removed.
15409         (loop_prefetch_arrays): Distribute the cost analysis across the
15410         function to allow early exit of the prefetch analysis.
15411         is_loop_prefetching_profitable is splitted into three functions,
15412         with each one called as early as possible.
15413         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
15414         number of memory references in a loop is considered too many.
15415
15416 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
15417
15418         * reload.c (find_reloads): Don't clear badop if we have a winreg
15419         alternative, but not win, and the class only has fixed regs.
15420         * hard-reg-set.h (class_only_fixed_regs): Declare.
15421         * reginfo.c (class_only_fixed_regs): New array.
15422         (init_reg_sets_1): Initialize it.
15423         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
15424         discourage alternatives using the stack pointer.
15425
15426         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
15427
15428         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
15429
15430         * config/arm/arm.md (cbranchqi4): Fix array size.
15431         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
15432         calculating length.
15433
15434 2010-07-09  Richard Guenther  <rguenther@suse.de>
15435
15436         * gimple.c (struct type_fixup_s): New struct and VEC type.
15437         (gimple_register_type_fixups): New static global.
15438         (gimple_queue_type_fixup): New function.
15439         (gimple_types_compatible_p): Queue type fixups instead of
15440         applying them here.
15441         (gimple_register_type): Apply queued fixups for the
15442         canonical type.  Empty the type fixup queue.
15443
15444 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
15445
15446         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
15447         * configure: Regenerate.
15448         * config.in: Ditto.
15449
15450 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
15451             Denys Vlasenko  <dvlasenk@redhat.com>
15452             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
15453
15454         PR tree-optimization/28632
15455         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
15456         (extract_range_from_binary_expr): Further optimize
15457         BIT_AND_EXPR and BIT_IOR_EXPR.
15458
15459 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
15460
15461         * tree-if-conv.c (fold_or_predicates): New.
15462         (add_to_predicate_list): Call it.
15463
15464 2010-07-09  Richard Guenther  <rguenther@suse.de>
15465
15466         PR middle-end/44890
15467         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
15468         if base is a pointer.
15469         * tree-cfg.c (verify_expr): Update MEM_REF checking.
15470
15471 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
15472
15473         PR target/44877
15474         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
15475         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
15476         builtin mask for load/store builtins.
15477
15478 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
15479
15480         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
15481         for "lock addl".
15482         * configure: Regenerate.
15483         * config/i386/i386.c (ix86_print_operand) <case ';'>:
15484         Remove TARGET_MACHO.
15485
15486 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
15487
15488         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
15489         default ISA flags.
15490         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
15491
15492 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
15493
15494         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
15495
15496 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
15497
15498         * config/picochip/picochip.md (commsTestPort): Emit more
15499         efficient sequence for tstport instruction.
15500
15501 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
15502
15503         * config/i386/i386.c (ix86_veclib_handler): Make static.
15504
15505 2010-07-09  Richard Guenther  <rguenther@suse.de>
15506
15507         PR tree-optimization/44852
15508         * tree-ssa-alias.c: Include toplev.h for exact_log2.
15509         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
15510         in MEM_REF.
15511         (indirect_refs_may_alias_p): Likewise.
15512         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
15513
15514 2010-07-09  Richard Guenther  <rguenther@suse.de>
15515
15516         PR tree-optimization/44882
15517         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
15518         sets do conflict.
15519         (vectorizable_load): Likewise.
15520
15521 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
15522
15523         PR target/40657
15524         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
15525         All callers changed.
15526         Handle the case when we're called for the epilogue.
15527         (thumb_unexpanded_epilogue): Use it.
15528         (thumb1_expand_epilogue): Likewise.
15529
15530 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
15531
15532         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
15533         both ranges are range_int_cst_p with non-negative minimum,
15534         try harder to derive smaller range.
15535
15536 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15537
15538         * genrecog.c: Include diagnostic-core.h before toplev.h.
15539         * genoutput.c: Likewise.
15540         * genextract.c: Likewise.
15541         * genautomata.c: Likewise.
15542         * genemit.c: Likewise.
15543         * genpeep.c: Likewise.
15544         * genattrtab.c: Likewise.
15545         * genconditions.c: Likewise.
15546         * genpreds.c: Likewise.
15547
15548 2010-07-08  Andi Kleen  <ak@linux.intel.com>
15549
15550         * lto-section-in.c (lto_section_name): Add missing comma.
15551
15552 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
15553
15554         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
15555         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
15556         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
15557         (ia64_override_options): Rename to...
15558         (ia64_option_override): ... this one. Make static.
15559
15560 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15561
15562         PR middle-end/44843
15563         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
15564         pointed-to type of the offset in a MEM_REF to compute the alignment.
15565
15566 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
15567
15568         * final.c (final_scan_insn): Replace
15569         TARGET_UNWIND_INFO macro check by unwind_emit
15570         hook NULL check.
15571         * targhooks.c (default_unwind_emit): Removed.
15572         * targhooks.h (default_unwind_emit): Likewise.
15573         * target.def (unwind_emit): Set default value to NULL.
15574
15575         * config/i386/i386-protos.h (ix86_asm_output_function_label):
15576         New prototype.
15577         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
15578         for NULL fntype argument and allow 64-bit targets.
15579         (ix86_asm_output_function_label): New function.
15580         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
15581         (ix86_handle_fndecl_attribute): Likewise.
15582         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
15583         * doc/doc/tm.texi: Regenerated.
15584         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
15585         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
15586         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
15587         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
15588         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15589         * config/elfos.h: Likewise.
15590         * config/i386/cygming.h: Likewise.
15591         * config/netbsd-aout.h: Likewise.
15592         * config/openbsd.h: Likewise.
15593         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
15594         by ix86_asm_output_function_label function call.
15595         * varasm.c (assemble_start_function): Use
15596         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15597
15598 2010-07-08  Jan Hubicka  <jh@suse.cz>
15599
15600         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
15601         New function.
15602         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
15603         Declare.
15604         * ipa-cp.c (ipcp_estimate_growth): Use it.
15605         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
15606         Likewise.
15607
15608 2010-07-08  Jan Hubicka  <jh@suse.cz>
15609
15610         * tree-inline.c (declare_return_variable): Allocate annotation for new
15611         temporary.
15612
15613 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
15614
15615         PR tree-optimization/44710
15616         * tree-if-conv.c (parse_predicate): New.
15617         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
15618         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
15619
15620 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
15621
15622         * common.opt (ftree-loop-if-convert): New flag.
15623         * doc/invoke.texi (ftree-loop-if-convert): Documented.
15624         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
15625         when flag_tree_loop_if_convert is set.
15626
15627 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
15628
15629         * config/i386/i386.c: Use short syntax for function calls
15630         through function pointers.
15631         * config/i386/i386.md: Ditto.
15632
15633 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15634
15635         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
15636
15637 2010-07-08  Richard Guenther  <rguenther@suse.de>
15638
15639         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
15640         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
15641
15642 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
15643
15644         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
15645         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
15646         (loc_list_from_tree): Likewise.
15647         (output_loc_operands): Handle outputting DW_OP_const[48]u
15648         with loc->dtprel set.
15649         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
15650
15651 2010-07-08  Jan Hubicka  <jh@suse.cz>
15652
15653         * ipa.c: Include pointer-set.h
15654         (cgraph_externally_visible_p): New attribute ALIASED;
15655         when in LTO, hidden symbols are local unless they are aliased.
15656         (function_and_variable_visibility): Compute aliased nodes;
15657         handle LTO and hidden symbol on functions and vars.
15658         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
15659         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
15660
15661 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15662
15663         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15664         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15665         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15666         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15667         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15668         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
15669         (ix86_gen_probe_stack_range): Likewise.
15670         (override_options): Set them.
15671         (ix86_target_stack_probe): New function.
15672         (ix86_compute_frame_layout): Force use of push instructions to
15673         save registers if stack checking with probes is enabled.
15674         (get_scratch_register_on_entry): New function.
15675         (release_scratch_register_on_entry): Likewise.
15676         (ix86_adjust_stack_and_probe): Likewise.
15677         (output_adjust_stack_and_probe): Likewise.
15678         (ix86_emit_probe_stack_range): Likewise.
15679         (output_probe_stack_range): Likewise.
15680         (ix86_expand_prologue): Emit stack checking code if static built-in
15681         stack checking is enabled.
15682         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
15683         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
15684         (output_adjust_stack_and_probe): Likewise.
15685         (output_probe_stack_range): Likewise.
15686         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15687         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
15688         TARGET_STACK_PROBE.
15689         (allocate_stack_worker_64): Likewise.
15690         (allocate_stack): Likewise.
15691         (adjust_stack_and_probe): New insn.
15692         (probe_stack_range): Likewise.
15693
15694 2010-07-08  Richard Guenther  <rguenther@suse.de>
15695
15696         PR tree-optimization/44831
15697         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
15698         a MEM_REF preserving TBAA info of the original dereference.
15699         Dereference the original pointer if the address is not invariant.
15700         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
15701         at least one invariant address that we are going to dereference.
15702
15703 2010-07-08  Richard Guenther  <rguenther@suse.de>
15704
15705         PR tree-optimization/44861
15706         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
15707         information when building MEM_REFs.
15708         (vectorizable_load): Likewise.
15709         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
15710
15711 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15712
15713         * config/sol2-c.c: Do not include diagnostic-core.h.
15714
15715 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15716
15717         PR bootstrap/44768
15718         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
15719         with respect to current_function_decl. Pass decl of the function.
15720         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
15721         * ipa-inline.c (compute_inline_parameters): Pass decl to
15722         estimated_stack_frame_size.
15723
15724 2010-07-08  Richard Guenther  <rguenther@suse.de>
15725
15726         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15727         New function.
15728         (valueize_refs): Call it.
15729
15730 2010-07-08  Richard Guenther  <rguenther@suse.de>
15731
15732         PR rtl-optimization/44838
15733         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
15734         SSA form do not use pointer equivalence.
15735
15736 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
15737
15738         * dwarf2out.c (AT_linkage_name): Delete.
15739         (add_linkage_attr): New function.
15740         (add_linkage_name): Call it to emit the linkage attribute.
15741         (dwarf2out_finish): Likewise.
15742         (move_linkage_attr): Explicitly accept both attribute variants.
15743
15744 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15745
15746         * toplev.h: Do not include diagnostic-core.h.
15747         Include diagnostic-core.h in every file that includes toplev.h.
15748         * c-tree.h: Do not include toplev.h.
15749         * pretty-print.h: Update comment.
15750         * Makefile.in: Update dependencies.
15751         * alias.c: Include diagnostic-core.h in every file that includes
15752         toplev.h.
15753         * attribs.c: Likewise.
15754         * auto-inc-dec.c: Likewise.
15755         * bb-reorder.c: Likewise.
15756         * bt-load.c: Likewise.
15757         * caller-save.c: Likewise.
15758         * calls.c: Likewise.
15759         * cfg.c: Likewise.
15760         * cfganal.c: Likewise.
15761         * cfgbuild.c: Likewise.
15762         * cfgcleanup.c: Likewise.
15763         * cfghooks.c: Likewise.
15764         * cfgloop.c: Likewise.
15765         * combine.c: Likewise.
15766         * config/alpha/alpha.c: Likewise.
15767         * config/arc/arc.c: Likewise.
15768         * config/arm/arm.c: Likewise.
15769         * config/arm/pe.c: Likewise.
15770         * config/avr/avr.c: Likewise.
15771         * config/bfin/bfin.c: Likewise.
15772         * config/cris/cris.c: Likewise.
15773         * config/crx/crx.c: Likewise.
15774         * config/darwin-c.c: Likewise.
15775         * config/darwin.c: Likewise.
15776         * config/fr30/fr30.c: Likewise.
15777         * config/frv/frv.c: Likewise.
15778         * config/h8300/h8300.c: Likewise.
15779         * config/host-darwin.c: Likewise.
15780         * config/i386/i386.c: Likewise.
15781         * config/i386/netware.c: Likewise.
15782         * config/i386/nwld.c: Likewise.
15783         * config/i386/winnt-cxx.c: Likewise.
15784         * config/i386/winnt-stubs.c: Likewise.
15785         * config/i386/winnt.c: Likewise.
15786         * config/ia64/ia64-c.c: Likewise.
15787         * config/ia64/ia64.c: Likewise.
15788         * config/iq2000/iq2000.c: Likewise.
15789         * config/lm32/lm32.c: Likewise.
15790         * config/m32c/m32c-pragma.c: Likewise.
15791         * config/m32c/m32c.c: Likewise.
15792         * config/m32r/m32r.c: Likewise.
15793         * config/m68hc11/m68hc11.c: Likewise.
15794         * config/m68k/m68k.c: Likewise.
15795         * config/mcore/mcore.c: Likewise.
15796         * config/mep/mep-pragma.c: Likewise.
15797         * config/mep/mep.c: Likewise.
15798         * config/mmix/mmix.c: Likewise.
15799         * config/mn10300/mn10300.c: Likewise.
15800         * config/moxie/moxie.c: Likewise.
15801         * config/pa/pa.c: Likewise.
15802         * config/pdp11/pdp11.c: Likewise.
15803         * config/picochip/picochip.c: Likewise.
15804         * config/rs6000/rs6000-c.c: Likewise.
15805         * config/rs6000/rs6000.c: Likewise.
15806         * config/rx/rx.c: Likewise.
15807         * config/s390/s390.c: Likewise.
15808         * config/score/score.c: Likewise.
15809         * config/score/score3.c: Likewise.
15810         * config/score/score7.c: Likewise.
15811         * config/sh/sh.c: Likewise.
15812         * config/sh/symbian-base.c: Likewise.
15813         * config/sh/symbian-c.c: Likewise.
15814         * config/sh/symbian-cxx.c: Likewise.
15815         * config/sol2-c.c: Likewise.
15816         * config/sol2.c: Likewise.
15817         * config/sparc/sparc.c: Likewise.
15818         * config/spu/spu.c: Likewise.
15819         * config/stormy16/stormy16.c: Likewise.
15820         * config/v850/v850-c.c: Likewise.
15821         * config/v850/v850.c: Likewise.
15822         * config/vax/vax.c: Likewise.
15823         * config/vxworks.c: Likewise.
15824         * config/xtensa/xtensa.c: Likewise.
15825         * convert.c: Likewise.
15826         * cse.c: Likewise.
15827         * cselib.c: Likewise.
15828         * dbgcnt.c: Likewise.
15829         * dbxout.c: Likewise.
15830         * ddg.c: Likewise.
15831         * dominance.c: Likewise.
15832         * emit-rtl.c: Likewise.
15833         * explow.c: Likewise.
15834         * expmed.c: Likewise.
15835         * fixed-value.c: Likewise.
15836         * fold-const.c: Likewise.
15837         * fwprop.c: Likewise.
15838         * gcse.c: Likewise.
15839         * ggc-common.c: Likewise.
15840         * ggc-page.c: Likewise.
15841         * ggc-zone.c: Likewise.
15842         * gimple-low.c: Likewise.
15843         * gimplify.c: Likewise.
15844         * graph.c: Likewise.
15845         * haifa-sched.c: Likewise.
15846         * ifcvt.c: Likewise.
15847         * implicit-zee.c: Likewise.
15848         * integrate.c: Likewise.
15849         * ira-build.c: Likewise.
15850         * ira-color.c: Likewise.
15851         * ira-conflicts.c: Likewise.
15852         * ira-costs.c: Likewise.
15853         * ira-lives.c: Likewise.
15854         * ira.c: Likewise.
15855         * lists.c: Likewise.
15856         * loop-doloop.c: Likewise.
15857         * loop-iv.c: Likewise.
15858         * lto-opts.c: Likewise.
15859         * lto-symtab.c: Likewise.
15860         * main.c: Likewise.
15861         * modulo-sched.c: Likewise.
15862         * optabs.c: Likewise.
15863         * params.c: Likewise.
15864         * plugin.c: Likewise.
15865         * postreload-gcse.c: Likewise.
15866         * postreload.c: Likewise.
15867         * predict.c: Likewise.
15868         * profile.c: Likewise.
15869         * real.c: Likewise.
15870         * regcprop.c: Likewise.
15871         * reginfo.c: Likewise.
15872         * regmove.c: Likewise.
15873         * reorg.c: Likewise.
15874         * resource.c: Likewise.
15875         * rtl.c: Likewise.
15876         * rtlanal.c: Likewise.
15877         * sched-deps.c: Likewise.
15878         * sched-ebb.c: Likewise.
15879         * sched-rgn.c: Likewise.
15880         * sdbout.c: Likewise.
15881         * sel-sched-dump.c: Likewise.
15882         * sel-sched-ir.c: Likewise.
15883         * simplify-rtx.c: Likewise.
15884         * stmt.c: Likewise.
15885         * stor-layout.c: Likewise.
15886         * store-motion.c: Likewise.
15887         * targhooks.c: Likewise.
15888         * tree-cfg.c: Likewise.
15889         * tree-cfgcleanup.c: Likewise.
15890         * tree-dump.c: Likewise.
15891         * tree-eh.c: Likewise.
15892         * tree-inline.c: Likewise.
15893         * tree-nomudflap.c: Likewise.
15894         * tree-object-size.c: Likewise.
15895         * tree-optimize.c: Likewise.
15896         * tree-outof-ssa.c: Likewise.
15897         * tree-phinodes.c: Likewise.
15898         * tree-profile.c: Likewise.
15899         * tree-ssa-ccp.c: Likewise.
15900         * tree-ssa-coalesce.c: Likewise.
15901         * tree-ssa-live.c: Likewise.
15902         * tree-ssa-loop-niter.c: Likewise.
15903         * tree-ssa-loop-prefetch.c: Likewise.
15904         * tree-ssa-loop.c: Likewise.
15905         * tree-ssa-structalias.c: Likewise.
15906         * tree-ssa-uninit.c: Likewise.
15907         * tree-ssa.c: Likewise.
15908         * tree-vect-data-refs.c: Likewise.
15909         * tree-vect-loop-manip.c: Likewise.
15910         * tree-vect-loop.c: Likewise.
15911         * tree-vect-patterns.c: Likewise.
15912         * tree-vect-stmts.c: Likewise.
15913         * tree-vrp.c: Likewise.
15914         * varasm.c: Likewise.
15915         * vec.c: Likewise.
15916         * web.c: Likewise.
15917         * xcoffout.c: Likewise.
15918
15919 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
15920
15921         * gengtype.c (write_field_root): New function.
15922         (write_root): Use it.
15923
15924 2010-07-07  Wei Guozhi  <carrot@google.com>
15925
15926         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15927         of lowest bits to lshift/compare): Add a missing line.
15928
15929 2010-07-07  Wei Guozhi  <carrot@google.com>
15930
15931         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15932         of lowest bits to lshift/compare): New.
15933
15934 2010-07-07  Tom Tromey  <tromey@redhat.com>
15935
15936         * doc/tm.texi: Update.
15937         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
15938         Add @hook.
15939         * target.def (want_debug_pub_sections): New hook.
15940         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
15941         * dwarf2out.c (add_pubname_string): Check
15942         targetm.want_debug_pub_sections.
15943         (add_pubname): Likewise.
15944         (add_pubtype): Likewise.
15945
15946 2010-07-07  Jie Zhang  <jie@codesourcery.com>
15947
15948         * genautomata.c (output_automata_list_min_issue_delay_code):
15949         Correctly decompress min_issue_delay.
15950
15951 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
15952
15953         PR rtl-optimization/44404
15954         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
15955         possible, use reg_overlap_mentioned_p instead.
15956
15957 2010-07-07  Duncan Sands  <baldrick@free.fr>
15958
15959         PR middle-end/41355
15960         * tree.c (build_function_type_skip_args): Copy the original type using
15961         build_distinct_type_copy rather than copy_node.
15962
15963 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15964
15965         PR target/44850
15966         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
15967         revision 161876.
15968         (ix86_expand_prologue): Likewise.
15969         (ix86_handle_fndecl_attribute): Likewise.
15970         (ix86_asm_declare_function_name): Likewise.
15971         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15972         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15973         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
15974         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
15975         * doc/extend.texi: Likewise.
15976
15977 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
15978
15979         PR target/44844
15980         * config/i386/i386.md (rdrand<mode>): Changed to expand to
15981         retry if the carry flag isn't valid.
15982         (rdrand<mode>_1): New.
15983
15984 2010-07-07  Richard Guenther  <rguenther@suse.de>
15985
15986         PR middle-end/44790
15987         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
15988         for expanding the constant offset for MEM_REFs.
15989
15990 2010-07-07  Richard Guenther  <rguenther@suse.de>
15991
15992         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
15993         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
15994         * gimple.h (is_gimple_operand): Remove.
15995         * gimple.c (is_gimple_operand): Likewise.
15996         (walk_gimple_op): Fix wi->val_only setting for calls.
15997         * tree-cfg.c (verify_gimple_call): Fix argument validation.
15998         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
15999         invalid gimple calls.
16000
16001 2010-07-06  Jan Hubicka  <jh@suse.cz>
16002
16003         * lto-cgraph.c (output_cgraph): Add missing declaration.
16004
16005 2010-07-06  Jan Hubicka  <jh@suse.cz>
16006
16007         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
16008         partition.
16009
16010 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
16011
16012         * doc/gimple.texi (GIMPLE_DEBUG): Document.
16013         * doc/rtl.texi (Debug Information): New node.
16014         (NOTE_INSN_VAR_LOCATION): Document.
16015         (debug_insn): Likewise.
16016         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
16017
16018 2010-07-07  Jan Hubicka  <jh@suse.cz>
16019
16020         With parts by Richard Guenther.
16021
16022         PR middle-end/44813
16023         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
16024         for functions passed by reference.
16025         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
16026         in memory when passed by reference.
16027         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
16028         beggining.
16029         * ipa-split.c (split_function): Cleanup way return value is passed;
16030         handle SSA DECL_BY_REFERENCE retvals.
16031         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
16032         DECL_BY_REFERENCE is set.
16033         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
16034         find_what_p_points_to): Handle RESULT_DECL.
16035         * tree-inline.c (declare_return_variable): Get new entry_block argument;
16036         when passing by reference ensure that RESULT_DECL is gimple_val.
16037         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
16038         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
16039
16040 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
16041
16042         PR rtl-optimization/44787
16043         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
16044         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
16045
16046 2010-07-06  Jan Hubicka  <jh@suse.cz>
16047
16048         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
16049         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
16050         with body can prevail.
16051         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
16052         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
16053         * cgraph.c (cgraph_get_node_or_alias): New function.
16054         * cgraph.h (cgraph_get_node_or_alias): Declare.
16055
16056 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
16057
16058         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
16059         support.
16060         (ix86_expand_prologue): Likewise.
16061         (ix86_handle_fndecl_attribute): Likewise.
16062         (ix86_asm_declare_function_name): New function for
16063         ASM_DECLARE_FUNCTION_NAME.
16064         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
16065         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
16066         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
16067         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
16068         * doc/extend.texi: Adjust documentation about ms_hook_prologue
16069         attribute.
16070
16071 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
16072
16073         * config/i386/i386.md (immediate_operand): New mode attribute.
16074
16075         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
16076         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
16077         using P mode iterator.
16078         (pro_epilogue_adjust_stack_di_2): Rename from
16079         pro_epilogue_adjust_stack_rex64_2.
16080
16081         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
16082
16083 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
16084
16085         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
16086         through gen_mov_insv_1 function pointer.
16087         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
16088         gen_truncxf<mode>2 through gen_truncxf function pointer.
16089         (remainder<mode>3): Ditto.
16090         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
16091         (allocate_stack): Call gen_allocate_stack_worker_64 or
16092         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
16093         function pointer.
16094         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
16095         function pointer.
16096
16097 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
16098
16099         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
16100         operand constraint instead of <r><i>m.
16101
16102 2010-07-06  Richard Guenther  <rguenther@suse.de>
16103
16104         PR middle-end/44828
16105         * convert.c (convert_to_integer): Watch out for overflowing
16106         MULT_EXPR as well.
16107
16108 2010-07-05  Jan Hubicka  <jh@suse.cz>
16109
16110         * lto-streamer.c (write_symbol_vec): Rename to ...
16111         (write_symbol) ... this one; write only symbol given and when
16112         present in cache. Sanity check that what is defined is present
16113         in cgraph/varpool with body/finalized decl.
16114         (write_symbols_of_kind): Remove.
16115         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
16116         pairs to produce symtab.
16117         (produce_asm_for_decls): Update call of produce_symtab; don't do so
16118         when doing WPA streaming.
16119
16120 2010-07-05  Jan Hubicka  <jh@suse.cz>
16121
16122         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
16123         function is still available to fold into.
16124
16125 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
16126
16127         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
16128         * function.h (struct_function): Change type of local_decls field
16129         to a VEC.
16130         (add_local_decl): New function.
16131         (FOR_EACH_LOCAL_DECL): New macro.
16132         * cfgexpand.c (init_vars_expansion): Adjust for new type of
16133         cfun->local_decls.
16134         (estimated_stack_frame_size): Likewise.
16135         (expand_used_vars): Likewise.
16136         * cgraphbuild.c (build_cgraph_edges): Likewise.
16137         * function.c (instantiate_decls_1): Likewise.
16138         * ipa-struct-reorg.c (build_data_structure): Likewise.
16139         * ipa-type-escape.c (analyze_function): Likewise.
16140         * lto-streamer-in.c (input_function): Likewise.
16141         * lto-streamer-out.c (output_function): Likewise.
16142         * tree-ssa-live.c (remove_unused_locals): Likewise.
16143         * tree.c (free_lang_data_in_decl): Likewise.
16144         (find_decls_types_in_node): Likewise.
16145         * omp-low.c (remove_exit_barrier): Likewise.
16146         (expand_omp_taskreg): Likewise.
16147         (list2chain): Rename to...
16148         (vec2chain): ...this.  Adjust.
16149         * cgraphunit.c (assemble_thunk): Call add_local_decl.
16150         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
16151         * gimple-low.c (record_vars_into): Likewise.
16152         * tree-inline.c (remap_decls): Likewise.
16153         (declare_return_variable): Likewise.
16154         (declare_inline_vars): Likewise.
16155         (copy_forbidden): Adjust for new type of cfun->local_decls.
16156         (add_local_variables): New function.
16157         (expand_call_inline): Call it.
16158         (tree_function_versioning): Likewise.
16159
16160 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
16161
16162         AVX Programming Reference (June, 2010)
16163         * config/i386/cpuid.h (bit_F16C): New.
16164         (bit_RDRND): Likewise.
16165         (bit_FSGSBASE): Likewise.
16166
16167         * config/i386/i386-builtin-types.def: Add
16168         "DEF_FUNCTION_TYPE (UINT16)", function types for
16169         float16 <-> float conversions and
16170         "DEF_FUNCTION_TYPE (VOID, UINT64)".
16171
16172         * config/i386/i386-c.c (ix86_target_macros_internal): Support
16173         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
16174         OPTION_MASK_ISA_F16C.
16175
16176         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
16177         (OPTION_MASK_ISA_RDRND_SET): Likewise.
16178         (OPTION_MASK_ISA_F16C_SET): Likewise.
16179         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
16180         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
16181         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
16182         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
16183         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
16184         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
16185         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
16186         (override_options): Handle them.
16187         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
16188         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
16189         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
16190         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
16191         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
16192         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
16193         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
16194         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
16195         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
16196         (bdesc_args): Likewise.
16197         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
16198         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
16199         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
16200         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
16201         Handle non-memory store.
16202
16203         * config/i386/i386.h (TARGET_FSGSBASE): New.
16204         (TARGET_RDRND): Likewise.
16205         (TARGET_F12C): Likewise.
16206
16207         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
16208         (UNSPEC_VCVTPS2PH): Likewise.
16209         (UNSPECV_RDFSBASE): Likewise.
16210         (UNSPECV_RDGSBASE): Likewise.
16211         (UNSPECV_WRFSBASE): Likewise.
16212         (UNSPECV_WRGSBASE): Likewise.
16213         (UNSPECV_RDRAND): Likewise.
16214         (rdfsbase<mode>): Likewise.
16215         (rdgsbase<mode>): Likewise.
16216         (wrfsbase<mode>): Likewise.
16217         (wrgsbase<mode>): Likewise.
16218         (rdrand<mode>): Likewise.
16219
16220         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
16221
16222         * config/i386/immintrin.h (_rdrand_u16): New.
16223         (_rdrand_u32): Likewise.
16224         (_readfsbase_u32): Likewise.
16225         (_readfsbase_u64): Likewise.
16226         (_readgsbase_u32): Likewise.
16227         (_readgsbase_u64): Likewise.
16228         (_writefsbase_u32): Likewise.
16229         (_writefsbase_u64): Likewise.
16230         (_writegsbase_u32): Likewise.
16231         (_writegsbase_u64): Likewise.
16232         (_rdrand_u64): Likewise.
16233         (_cvtsh_ss): Likewise.
16234         (_mm_cvtph_ps): Likewise.
16235         (_mm256_cvtph_ps): Likewise.
16236         (_cvtss_sh): Likewise.
16237         (_mm_cvtps_ph): Likewise.
16238         (_mm256_cvtps_ph): Likewise.
16239
16240         * config/i386/sse.md (vcvtph2ps): New.
16241         (*vcvtph2ps_load): Likewise.
16242         (vcvtph2ps256): Likewise.
16243         (vcvtps2ph): Likewise.
16244         (*vcvtps2ph): Likewise.
16245         (*vcvtps2ph_store): Likewise.
16246         (vcvtps2ph256): Likewise.
16247
16248         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
16249
16250         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
16251
16252 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
16253
16254         PR bootstrap/44512
16255         * genenums.c (main): Output include of insn-constants.h
16256         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
16257
16258 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
16259
16260         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
16261         (override_options): Initialize it.
16262         (ix86_expand_prologue): Use it.
16263
16264 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
16265
16266         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
16267
16268 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
16269
16270         * double-int.h (fit_double_type): Remove declaration.
16271         * double-int.c (fit_double_type): Remove function.
16272         * tree.h (int_fits_type_p): Adjust prototype.
16273         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
16274         instead of fit_double_type.
16275         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
16276         instead of fit_double_type and build_int_cst_wide.
16277         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
16278         instead of fit_double_type and build_int_cst_wide.
16279         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
16280         of fit_double_type.
16281
16282 2010-07-05  Jan Hubicka  <jh@suse.cz>
16283
16284         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
16285         in_other_partition.
16286         * lto-cgraph.c (referenced_from_other_partition_p,
16287         reachable_from_other_partition_p): Use in_other_partition flags.
16288         (output_node, output_varpool_node): COMDAT nodes always have private
16289         copies and thus are never used from other partition.
16290
16291 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
16292
16293         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
16294         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
16295         * config/ia64/ia64.c Include reload.h.
16296         (ia64_memory_move_cost): New function.
16297         (TARGET_MEMORY_MOVE_COST): Define.
16298         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
16299         memory_move_cost.
16300
16301 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
16302
16303         PR middle-end/42505
16304         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
16305         comments about cost model.
16306         (try_add_cand_for):  Add second strategy for choosing initial set
16307         based on original IVs, controlled by ORIGINALP argument.
16308         (get_initial_solution): Add ORIGINALP argument.
16309         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
16310         (find_optimal_iv_set): Try two different strategies for choosing
16311         the IV set, and return the one with lower cost.
16312
16313 2010-07-05  Richard Guenther  <rguenther@suse.de>
16314
16315         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
16316
16317 2010-07-05  Richard Guenther  <rguenther@suse.de>
16318
16319         * tree.c (reference_alias_ptr_type): New function.
16320         * tree.h (reference_alias_ptr_type): Declare.
16321         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
16322         allow non-TARGET_MEM_REF new refs.
16323         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
16324         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
16325         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
16326         (create_mem_ref): Get alias pointer type.  Adjust calls to
16327         create_mem_ref_raw.
16328         (maybe_fold_tmr): Likewise.
16329         * tree-flow.h (create_mem_ref): Adjust prototype.
16330
16331 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
16332
16333         PR c++/44808
16334         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
16335         *from_p is VAR_DECL.
16336
16337 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
16338
16339         * tree.h (build_call_list): Remove.
16340         * tree.c (build_call_list): Remove.
16341
16342 2010-07-05  Richard Guenther  <rguenther@suse.de>
16343
16344         * double-int.h (double_int_sub): Declare.
16345         * double-int.c (double_int_sub): New function.
16346         * dwarf2out.c (field_byte_offset): Use it.
16347         * fixed-value.c (do_fixed_add): Likewise.
16348         (do_fixed_multiply): Likewise.
16349         (do_fixed_divide): Likewise.
16350         * tree-predcom.c (add_ref_to_chain): Likewise.
16351         (determine_roots_comp): Likewise.
16352         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16353
16354 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
16355
16356         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
16357         implementations.
16358
16359 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
16360
16361         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
16362         * arm-modes.def (CC_NOTB): Don't define.
16363         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
16364         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
16365         (LTUGEU): New code_iterator.
16366         (cnb, optab): New corresponding code_attrs.
16367         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
16368         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
16369         using LTUGEU.
16370         (addsi3_carryin_shift_<optab>): Likewise.
16371         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
16372         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
16373         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
16374         (subsi3_compare): Renamed from subsi3_compare0_c.
16375         Change CC_NOTB to CC.
16376         (arm_subsi3_insn): Allow constants for operand 0.
16377         (compare_scc peephole for eq case): New.
16378         (compare_scc splitters): Change CC_NOTB to CC.
16379
16380 2010-07-05  Richard Guenther  <rguenther@suse.de>
16381
16382         * tree-ssa-loop-im.c (for_each_index): Do not handle
16383         ALIGN_INDIRECT_REF.
16384         (gen_lsm_tmp_name): Likewise.
16385         * tree-dump.c (dequeue_and_dump): Likewise.
16386         * tree-pretty-print.c (dump_generic_node): Likewise.
16387         (op_code_prio): Likewise.
16388         (op_symbol_code): Likewise.
16389         * tree.c (staticp): Likewise.
16390         (build1_stat): Likewise.
16391         * tree.h (INDIRECT_REF_P): Likewise.
16392         * fold-const.c (maybe_lvalue_p): Likewise.
16393         (operand_equal_p): Likewise.
16394         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16395         (ao_ref_init_from_vn_reference): Likewise.
16396         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
16397         (find_interesting_uses_address): Likewise.
16398         * dwarf2out.c (loc_list_from_tree): Likewise.
16399         * gimplify.c (gimplify_expr): Likewise.
16400         * tree-eh.c (tree_could_trap_p): Likewise.
16401         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16402         * cfgexpand.c (expand_debug_expr): Likewise.
16403         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16404         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
16405         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
16406         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
16407         * tree-ssa-operands.c (get_expr_operands): Likewise.
16408         * expr.c (safe_from_p): Likewise.
16409         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
16410         * tree-vect-data-refs.c (vect_setup_realignment): Build
16411         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
16412         * tree-vect-stmts.c (vectorizable_load): Likewise.
16413         * tree.def (ALIGN_INDIRECT_REF): Remove.
16414
16415 2010-07-05  Richard Guenther  <rguenther@suse.de>
16416
16417         PR tree-optimization/44784
16418         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
16419         for inserted stmts.
16420         (find_or_generate_expression): Fix SCCVN insertion check.
16421
16422 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
16423
16424         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
16425         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
16426         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
16427         directives.
16428
16429 2010-07-05  Ira Rosen  <irar@il.ibm.com>
16430
16431         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
16432         statements that are not vectorized.
16433         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
16434         in INSIDE_COST.
16435
16436 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
16437
16438         PR bootstrap/44820
16439         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
16440
16441 2010-07-05  Richard Guenther  <rguenther@suse.de>
16442
16443         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
16444         RESULT_DECLs properly.
16445
16446 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
16447
16448         PR rtl-optimization/44695
16449         * config/i386/i386.md (extract_code): Removed.
16450         (<u>divmodqi4): Likewise.
16451         (divmodqi4): New.
16452         (udivmodqi4): Likewise.
16453         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
16454         (udivmodhiqi3): Likewise.
16455
16456 2010-07-04  Jan Hubicka  <jh@suse.cz>
16457
16458         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
16459
16460 2010-07-04  Jan Hubicka  <jh@suse.cz>
16461
16462         * cgraphunit.c (init_cgraph): Only initialize dump file if it
16463         is not already initialized.
16464
16465 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
16466
16467         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
16468         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
16469         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
16470         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
16471         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
16472         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
16473         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
16474         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
16475         (sync_new_nand_optab): Redefine as macros.
16476         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
16477         Delete.
16478         (direct_optab_index): New enum.
16479         (direct_optab_d): New structure.
16480         (direct_optab): New typedef.
16481         (direct_optab_table): Declare.
16482         (direct_optab_handler, set_direct_optab_handler): New functions.
16483         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
16484         (sync_lock_release_optab): New macros.
16485         * optabs.c (direct_optab_table): New variable.
16486         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
16487         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
16488         cmpstr_optab and cmpstrn_optab.
16489         (emit_conditional_move): Likewise for movcc_optab.
16490         (can_conditionally_move_p): Likewise for movcc_gen_code.
16491         (init_insn_codes): Clear direct_optab_table.
16492         (init_optabs): Don't initialize the new "direct optabs" here.
16493         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
16494         vcond_gen_code.
16495         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
16496         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
16497         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
16498         (expand_sync_operation): Likewise other sync_*_optabs.
16499         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
16500         to sync_compare_and_swap_optab.
16501         (expand_sync_lock_test_and_set): Use direct_optab_handler for
16502         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
16503         to the names of both.
16504         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
16505         cmpstr_optab and cmpstrn_optab.
16506         (expand_builtin_lock_release): Likewise sync_lock_release.
16507         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
16508         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
16509         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
16510         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
16511         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
16512         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
16513         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
16514         (sync_lock_test_and_set, sync_lock_release): Delete.
16515         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
16516         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
16517         * genopinit.c (optabs): Use set_direct_optab_handler for the new
16518         macro optabs.
16519         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
16520         the "optab" local variable.  Use direct_optab_handler for optab and
16521         sync_compare_and_swap_optab.
16522         * reload1.c (reload_in_optab, reload_out_optab): Delete.
16523         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
16524         reload_in_optab and reload_out_optab.
16525         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16526         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
16527         * config/pa/pa.c (pa_secondary_reload): Likewise.
16528         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
16529         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
16530         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
16531         (VMSupportsCS8_builtin): Likewise.
16532
16533 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
16534
16535         * optabs.h (optab_handlers): Change type of insn_code to int.
16536         (optab_handler, set_optab_handler, convert_optab_handler)
16537         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
16538         CODE_FOR_nothing".
16539         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
16540         (init_insn_codes): Zero both the above arrays.
16541         (init_optabs): Never call init_insn_codes first time around.
16542
16543 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
16544
16545         * optabs.h (optab_handler, convert_optab_handler): Turn into
16546         inline functions that return an insn code.
16547         (set_optab_handler, set_convert_optab_handler): New functions.
16548         * builtins.c: Replace optab_handler(X)->insn_code with
16549         optab_handler or set_optab_handler thoughout.  Likewise
16550         convert_optab_handler(X)->insn_code with convert_optab_handler
16551         and set_convert_optab_handler.
16552         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
16553         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
16554         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
16555         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
16556         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
16557         config/spu/spu.c: Likewise.
16558
16559 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
16560
16561         PR target/44531
16562         * config.gcc (sh*-*-*): Use regular expressions instead of
16563         the 'i' modifier for sed substitutions.
16564
16565 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
16566
16567         * gimple.c (gimple_body): Comments added.
16568
16569 2010-07-04  Richard Guenther  <rguenther@suse.de>
16570
16571         PR middle-end/44809
16572         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
16573         of an INDIRECT_REF.
16574
16575 2010-07-04  Richard Guenther  <rguenther@suse.de>
16576
16577         PR tree-optimization/44479
16578         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
16579         extra SSA name copy statements which preserves points-to
16580         information.
16581         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16582         Copy points-to information for all pointers.  Properly handle
16583         MEM_REFs.
16584         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
16585         copy statements.
16586         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
16587         dependency.
16588
16589 2010-07-04  Richard Guenther  <rguenther@suse.de>
16590
16591         PR middle-end/44785
16592         * tree-inline.c (initialize_inlined_parameters): Do not
16593         re-use pointer-map slot over remap_type call.
16594
16595 2010-07-04  Richard Guenther  <rguenther@suse.de>
16596
16597         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
16598
16599 2010-07-04  Richard Guenther  <rguenther@suse.de>
16600
16601         PR tree-optimization/44656
16602         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
16603         again after value-replacing in the defintions lhs.
16604
16605 2010-07-04  Ira Rosen  <irar@il.ibm.com>
16606             Revital Eres  <eres@il.ibm.com>
16607
16608         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
16609         Document new arguments.
16610         * doc/tm.texi: Regenerate.
16611         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
16612         Handle unaligned store.
16613         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
16614         * target.def (builtin_vectorization_cost): Add new arguments.
16615         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
16616         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
16617         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
16618         (vect_vfa_segment_size): Fix indentation.
16619         * tree-vectorizer.h (struct _vect_peel_info): New.
16620         (struct _vect_peel_extended_info): New.
16621         (struct _loop_vec_info): Add new field for peeling hash table and a
16622         macro for its access.
16623         (VECT_MAX_COST): Define.
16624         (vect_get_load_cost): Declare.
16625         (vect_get_store_cost, vect_get_known_peeling_cost,
16626         vect_get_single_scalar_iteraion_cost): Likewise.
16627         (vect_supportable_dr_alignment): Add new argument.
16628         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
16629         field.
16630         (destroy_loop_vec_info): Free peeling hash table.
16631         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
16632         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
16633         vect_analyze_slp. Fix indentation.
16634         (vect_get_single_scalar_iteraion_cost): New function.
16635         (vect_get_known_peeling_cost): Likewise.
16636         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
16637         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
16638         statement. Move outside cost calculation inside unknown peeling case.
16639         Call vect_get_known_peeling_cost for known amount of peeling.
16640         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
16641         reference to the print message of forced alignment.
16642         (vect_verify_datarefs_alignment): Update call to
16643         vect_supportable_dr_alignment.
16644         (vect_get_data_access_cost): New function.
16645         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
16646         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
16647         vect_peeling_hash_choose_best_peeling): Likewise.
16648         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
16649         to store all the accesses in the loop and find best possible access to
16650         align using peeling for known alignment case. For unknown alignment
16651         check if stores are preferred or if peeling is worthy.
16652         (vect_find_same_alignment_drs): Analyze pairs of loads too.
16653         (vect_supportable_dr_alignment): Add new argument and check aligned
16654         accesses according to it.
16655         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
16656         (cost_for_stmt): Call vect_get_stmt_cost.
16657         (vect_model_simple_cost): Likewise.
16658         (vect_model_store_cost): Call vect_get_stmt_cost. Call
16659         vect_get_store_cost to calculate the cost of the statement.
16660         (vect_get_store_cost): New function.
16661         (vect_model_load_cost): Call vect_get_stmt_cost. Call
16662         vect_get_load_cost to calculate the cost of the statement.
16663         (vect_get_load_cost): New function.
16664         (vectorizable_store): Update call to vect_supportable_dr_alignment.
16665         (vectorizable_load): Likewise.
16666         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
16667         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
16668         arguments. Handle unaligned store.
16669         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
16670         (rs6000_builtin_support_vector_misalignment): Return true for word and
16671         double word alignments for VSX.
16672         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
16673         vect_supportable_dr_alignment and builtin_vectorization_cost.
16674
16675 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16676
16677         PR target/44597
16678         * config/pa/predicates.md (prefetch_cc_operand): Remove.
16679         (prefetch_nocc_operand): Likewise.
16680         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
16681         (prefetch_20): New insn.
16682         (prefetch_cc): Remove.
16683         (prefetch_nocc): Likewise.
16684
16685 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16686
16687         * expr.c (vector_mode_valid_p): Move to c-common.c.
16688         * expr.h (vector_mode_valid_p): Do not declare here.
16689         * system.h: Poison GCC_EXPR_H in front-ends.
16690         * Makefile.in: Update dependencies.
16691
16692 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16693
16694         PR target/44705
16695         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
16696
16697 2010-07-03  Jan Hubicka  <jh@suse.cz>
16698
16699         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
16700         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
16701         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
16702         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
16703         Likewise.
16704
16705         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
16706         Update timevars.V
16707         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
16708         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
16709         TV_IPA_LTO_DECL_OUT): New.
16710         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
16711
16712 2010-07-03  Jan Hubicka  <jh@suse.cz>
16713
16714         * ipa-inline.c (update_edge_key): Break out from ...
16715         update_callers_keys): ... here;
16716         (update_callee_keys): Update only the edges from caller to callee.
16717         (update_all_calle_keys): Do what update_calle_keys did.
16718         (decide_inlining_of_small_functions): Avoid recomputing of all
16719         callees when badness increase.
16720
16721 2010-07-03  Jie Zhang  <jie@codesourcery.com>
16722
16723         * config/arm/arm.c (arm_attr_length_move_neon): New.
16724         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
16725         * config/arm/neon.md (define_mode_attr V_slen): Remove.
16726         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
16727         to compute length attribute.
16728
16729 2010-07-03  Jie Zhang  <jie@codesourcery.com>
16730
16731         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
16732         as predicate for operand 1 and remove its constraint.
16733         * config/arm/predicates.md (vfp_register_operand): New.
16734         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
16735         (*push_fp_multi): Likewise.
16736
16737 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
16738
16739         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
16740
16741 2010-07-03  Jan Hubicka  <jh@suse.cz>
16742
16743         * config/i386/i386.c (override_options): Revert accidental commit.
16744
16745 2010-07-02  Le-Chun Wu  <lcwu@google.com>
16746
16747         PR c++/44128
16748         * doc/invoke.texi: Update documentation of -Wshadow.
16749
16750 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
16751             Julian Brown  <julian@codesourcery.com>
16752             Sandra Loosemore  <sandra@codesourcery.com>
16753
16754         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
16755         comparisons.  Adjust to take both operands.
16756         (arm_select_cc_mode): Handle DImode comparisons.
16757         (arm_gen_compare_reg): Generate a scratch register for DImode
16758         comparisons which require one.  Use xor for Thumb equality checks.
16759         (arm_const_double_by_immediates): New.
16760         (arm_print_operand): Allow 'Q' and 'R' for constants.
16761         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
16762         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
16763         arm_canonicalize_comparison.
16764         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
16765         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
16766         prototype.
16767         (arm_const_double_by_immediates): Declare.
16768         * config/arm/constraints.md (Di): New constraint.
16769         * config/arm/predicates.md (arm_immediate_di_operand)
16770         (arm_di_operand, cmpdi_operand): New.
16771         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
16772         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
16773         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
16774         (cstoredi4): Handle non-Cirrus also.
16775
16776 2010-07-02  Julian Brown  <julian@codesourcery.com>
16777             Sandra Loosemore  <sandra@codesourcery.com>
16778
16779         PR target/43703
16780         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
16781         (smax<mode>3): Disable for NEON float modes when
16782         flag_unsafe_math_optimizations is false.
16783         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
16784         (*mul<mode>3_neon)
16785         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
16786         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
16787         for NEON float modes when flag_unsafe_math_optimizations is false.
16788         (quad_halves_<code>v4sf): Only enable if
16789         flag_unsafe_math_optimizations is true.
16790         * doc/invoke.texi (ARM Options): Add note about floating point
16791         vectorization requiring -funsafe-math-optimizations.
16792
16793 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
16794             Julian Brown  <julian@codesourcery.com>
16795
16796         * config/arm/neon.md (UNSPEC_VABA): Delete.
16797         (UNSPEC_VABAL): Delete.
16798         (UNSPEC_VABS): Delete.
16799         (UNSPEC_VMUL_N): Delete.
16800         (adddi3_neon): New.
16801         (subdi3_neon): New.
16802         (mul<mode>3add<mode>_neon): Make the pattern named.
16803         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16804         (neon_vadd<mode>): Replace with define_expand, and move the remaining
16805         unspec parts...
16806         (neon_vadd<mode>_unspec): ...to this.
16807         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
16808         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
16809         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
16810         (neon_vaba<mode>): Rewrite in terms of vabd.
16811         (neon_vabal<mode>): Rewrite in terms of vabdl.
16812         (neon_vabs<mode>): Rewrite without unspec.
16813         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
16814         (*arm_subdi3): Likewise.
16815         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
16816         No_op attribute to disable assembly output checks.
16817         * config/arm/arm_neon.h: Regenerated.
16818         * doc/arm-neon-intrinsics.texi: Regenerated.
16819
16820 2010-07-02  Jan Hubicka  <jh@suse.cz>
16821
16822         * ipa-split.c (split_function): For aggregate values, set the return
16823         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
16824         *<retval> = fncall.part ().
16825         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
16826
16827 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
16828
16829         * config/arm/neon.md (UNSPEC_VAND): Delete.
16830         (UNSPEC_VBIC): Delete.
16831         (UNSPEC_VCLZ): Delete.
16832         (UNSPEC_VCNT): Delete.
16833         (UNSPEC_VEOR): Delete.
16834         (UNSPEC_VORN): Delete.
16835         (UNSPEC_VORR): Delete.
16836         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
16837         core registers too.
16838         (anddi3_neon): Likewise.
16839         (orndi3_neon): Likewise.
16840         (bicdi3_neon): Likewise.
16841         (xordi3_neon): Likewise.
16842         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
16843         rid of unspec and handle unused operand.
16844         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
16845         * config/arm/predicates.md (imm_for_neon_logic_operand):
16846         Require TARGET_NEON.
16847         (imm_for_neon_inv_logic_operand): Likewise.
16848         * config/arm/arm.md (define_split for logical_binary_operator):
16849         Disable for NEON registers.
16850         (anddi3): Add new define_expand, and rename the insn.  Disable
16851         this insn for NEON, where anddi3_neon now applies.
16852         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
16853         (iordi3): As for anddi3.
16854         (xordi3): Likewise.
16855         * config/arm/neon.ml (Vand): Split DImode variants and mark them
16856         as No_op to disable testing for exact instruction match.
16857         (Vorr): Likewise.
16858         (Veor): Likewise.
16859         (Vbic): Likewise.
16860         (Vorn): Likewise.
16861         * config/arm/arm_neon.h: Regenerated.
16862         * doc/arm-neon-intrinsics.texi: Regenerated.
16863
16864 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
16865
16866         * expr.h (emit_stack_probe): Declare.
16867         * explow.c (emit_stack_probe): Make global.
16868         (anti_adjust_stack_and_probe): Fix comments.
16869         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16870         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16871         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16872         * config/sparc/sparc.c: Include except.h.
16873         (sparc_emit_probe_stack_range): New function.
16874         (output_probe_stack_range): Likewise.
16875         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
16876         built-in stack checking is enabled.
16877         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
16878         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16879         (probe_stack_range): New insn.
16880
16881 2010-07-02  Richard Guenther  <rguenther@suse.de>
16882
16883         PR target/43958
16884         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
16885         for argument alignment.
16886
16887 2010-07-02  Jan Hubicka  <jh@suse.cz>
16888
16889         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
16890         walk backwards from entry_bb to check only those basic block of header
16891         that might lead to execution of split part.
16892         (consider_split) ... here.
16893         (find_return_bb): Allow assignment in return BB.
16894         (find_retval): New.
16895         (split_function): Fix name of cloned function; take care of updating
16896         return value in return_bb containing move.
16897
16898 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
16899
16900         PR target/44771
16901         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
16902         used variable insn.
16903
16904 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
16905
16906         * implicit-zee.c (combine_reaching_defs): Fix long lines.
16907         (is_set_with_extension_DI): Delete.
16908         (struct zero_extend_info): New structure.
16909         (add_removable_zero_extend): New function.
16910         (find_removable_zero_extends): Use note_stores to find SETs.
16911         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
16912
16913 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
16914
16915         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
16916         is_miss_rate_acceptable. Pull total_positions computation
16917         out of the loops.  Early return if miss_positions exceeds
16918         the acceptable threshold.
16919         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
16920         is_miss_rate_acceptable after renaming of compute_miss_rate.
16921
16922 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
16923
16924         PR middle-end/44576
16925         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
16926         of 1000) for miss rate if the address diference is greater than or
16927         equal to the cache line size (the two reference will never hit the
16928         same cache line).
16929
16930 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
16931
16932         PR target/42835
16933         * config/arm/arm-modes.def (CC_NOTB): New mode.
16934         * config/arm/arm.c (get_arm_condition_code): Handle it.
16935         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
16936         * config/arm/arm.md (subsi3_compare0_c): New pattern.
16937         (compare_scc): Now a define_and_split.  Add a number of extra
16938         splitters before it.
16939
16940         PR target/42172
16941         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
16942         and ZERO_EXTEND.
16943         (arm_rtx_costs_1): Likewise.
16944         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
16945         * config/arm/arm.md (is_arch6): New attribute.
16946         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
16947         extendqisi2): Tighten the code somewhat, avoiding invalid
16948         RTL to occur in the expander patterns.
16949         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
16950         (thumb1_zero_extendhisi2_v6): Delete.
16951         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
16952         (thumb1_extendhisi2_v6): Delete.
16953         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
16954         (thumb1_extendqisi2_v6): Delete.
16955         (zero_extendhisi2 for register input splitter): New.
16956         (zero_extendqisi2 for register input splitter): New.
16957         (thumb1_extendhisi2 for register input splitter): New.
16958         (extendhisi2 for register input splitter): New.
16959         (extendqisi2 for register input splitter): New.
16960         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
16961         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
16962         and add support for a register alternative requiring a split.
16963         (thumb1_zero_extendqisi2): Likewise.
16964         (arm_zero_extendqisi2): Likewise.
16965         (arm_extendhisi2): Likewise.
16966         (arm_extendqisi2): Likewise.
16967
16968 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
16969
16970         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
16971         instead of an unspec.
16972         (neon_expand_vector_init): Likewise.
16973         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
16974         (UNSPEC_VDUP_LANE): Delete.
16975         (UNSPEC VDUP_N): Delete.
16976         (UNSPEC_VGET_HIGH): Delete.
16977         (UNSPEC_VGET_LANE): Delete.
16978         (UNSPEC_VGET_LOW): Delete.
16979         (UNSPEC_VMVN): Delete.
16980         (UNSPEC_VSET_LANE): Delete.
16981         (V_double_vector_mode): New.
16982         (vec_set<mode>_internal): Make code emitted match that for the
16983         corresponding intrinsics.
16984         (vec_setv2di_internal): Likewise.
16985         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
16986         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
16987         (neon_vset_lane<mode>): Combine double and quad patterns and
16988         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
16989         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
16990         (neon_vdup_n<mode>): Rewrite RTL without unspec.
16991         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
16992         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
16993         with neon_vdup_lanev2di, adjusting the pattern from the latter
16994         to be predicable for consistency.
16995         (neon_vdup_lane<mode>_internal): New.
16996         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
16997         to avoid using an unspec.
16998         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
16999         (neon_vdup_lanev2di): Turn into a define_expand.
17000         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
17001         (neon_vget_high<mode>): Replace with....
17002         (neon_vget_highv16qi): New pattern using canonical RTL.
17003         (neon_vget_highv8hi): Likewise.
17004         (neon_vget_highv4si): Likewise.
17005         (neon_vget_highv4sf): Likewise.
17006         (neon_vget_highv2di): Likewise.
17007         (neon_vget_low<mode>): Replace with....
17008         (neon_vget_lowv16qi): New pattern using canonical RTL.
17009         (neon_vget_lowv8hi): Likewise.
17010         (neon_vget_lowv4si): Likewise.
17011         (neon_vget_lowv4sf): Likewise.
17012         (neon_vget_lowv2di): Likewise.
17013
17014         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
17015         test for this emitting vmov.
17016         (Vset_lane): Likewise.
17017         (Vdup_n): Likewise.
17018         (Vmov_n): Likewise.
17019
17020         * doc/arm-neon-intrinsics.texi: Regenerated.
17021
17022 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
17023
17024         * config/arm/neon.md (vec_extractv2di): Correct error in register
17025         numbering to reconcile with neon_vget_lanev2di.
17026
17027 2010-07-02  Richard Guenther  <rguenther@suse.de>
17028
17029         * tree-ssa-structalias.c (pt_solution_set_var): New function.
17030         * tree-ssa-alias.h (pt_solution_set_var): Declare.
17031         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
17032         points-to information.
17033
17034 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
17035
17036         * config/s390/s390.c (override_options): Adopt prefetching
17037         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
17038
17039 2010-07-02  Jan Hubicka  <jh@suse.cz>
17040
17041         * df-problems.c (df_kill_notes): Do not collect dead  notes.
17042         (df_set_note): Just call add_reg_note.
17043         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
17044         df_create_unused_note): Do not deal with lists of old notes.
17045         (df_note_bb_compute): Likewise.
17046
17047 2010-07-02  Richard Guenther  <rguenther@suse.de>
17048
17049         * tree-ssa-structalias.c (find_func_aliases): Handle
17050         pointer alignment via BIT_AND_EXPR.
17051         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
17052
17053 2010-07-02  Richard Guenther  <rguenther@suse.de>
17054
17055         * tree-data-ref.c (initialize_data_dependence_relation): Handle
17056         mismatching number of dimensions properly.
17057
17058 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17059
17060         PR target/44707
17061         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
17062         (lo_sum (high ...) ...) patterns generated by earlier passes.
17063
17064 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17065
17066         * doc/install.texi (Prerequisites): Document Perl requirement on
17067         Solaris 2.
17068         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
17069
17070 2010-07-02  Richard Guenther  <rguenther@suse.de>
17071
17072         PR middle-end/44777
17073         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
17074
17075 2010-07-02  Jan Hubicka  <jh@suse.cz>
17076
17077         PR middle-end/44706
17078         * predict.c (predict_paths_for_bb): Handle case when control dependence
17079         BB has only abnormal edges.
17080
17081 2010-07-02  Richard Guenther  <rguenther@suse.de>
17082
17083         PR tree-optimization/44748
17084         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
17085         the embedded conversion in MEM_REFs.
17086
17087 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
17088
17089         * reload.c: Include toplev.h.
17090         * recog.c:  Likewise.
17091         * Makefile.in: Adjust dependencies.
17092
17093 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
17094
17095         PR debug/44694
17096         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
17097         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
17098
17099 2010-07-01  Richard Guenther  <rguenther@suse.de>
17100
17101         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
17102         types for offsets.
17103
17104 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
17105
17106         PR target/44732
17107         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
17108         Fix argument types.
17109
17110 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
17111
17112         PR target/44727
17113         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17114         Make sure operand 0 dies.
17115
17116 2010-07-01  Richard Guenther  <rguenther@suse.de>
17117
17118         PR middle-end/42834
17119         PR middle-end/44468
17120         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
17121         * doc/generic.texi (References to storage): Document MEM_REF.
17122         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
17123         (print_call_name): Likewise.
17124         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
17125         (build_simple_mem_ref_loc): New function.
17126         (mem_ref_offset): Likewise.
17127         * tree.h (build_simple_mem_ref_loc): Declare.
17128         (build_simple_mem_ref): Define.
17129         (mem_ref_offset): Declare.
17130         * fold-const.c: Include tree-flow.h.
17131         (operand_equal_p): Handle MEM_REF.
17132         (build_fold_addr_expr_with_type_loc): Likewise.
17133         (fold_comparison): Likewise.
17134         (fold_unary_loc): Fold
17135         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
17136         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
17137         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
17138         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
17139         (ptr_deref_may_alias_ref_p_1): Likewise.
17140         (ao_ref_base_alias_set): Properly differentiate base object for
17141         offset and TBAA.
17142         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
17143         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
17144         (indirect_refs_may_alias_p): Likewise.
17145         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
17146         chasing code.
17147         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
17148         (call_may_clobber_ref_p_1): Likewise.
17149         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
17150         * expr.c (expand_assignment): Handle MEM_REF.
17151         (store_expr): Handle MEM_REFs from STRING_CSTs.
17152         (store_field): If expanding a MEM_REF of a non-addressable
17153         decl use bitfield operations.
17154         (get_inner_reference): Handle MEM_REF.
17155         (expand_expr_addr_expr_1): Likewise.
17156         (expand_expr_real_1): Likewise.
17157         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
17158         * alias.c (ao_ref_from_mem): Handle MEM_REF.
17159         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
17160         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
17161         (dr_analyze_indices): Likewise.
17162         (dr_analyze_alias): Likewise.
17163         (object_address_invariant_in_loop_p): Likewise.
17164         * gimplify.c (mark_addressable): Handle MEM_REF.
17165         (gimplify_cond_expr): Build MEM_REFs.
17166         (gimplify_modify_expr_to_memcpy): Likewise.
17167         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
17168         (gimple_fold_indirect_ref): Adjust.
17169         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
17170         * tree.def (MEM_REF): New tree code.
17171         * tree-dfa.c: Include toplev.h.
17172         (get_ref_base_and_extent): Handle MEM_REF.
17173         (get_addr_base_and_unit_offset): New function.
17174         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
17175         * gimple-fold.c (may_propagate_address_into_dereference): Handle
17176         MEM_REF.
17177         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
17178         accesses if the array has just one dimension.  Remove always true
17179         parameter.  Do not require type compatibility here.
17180         (maybe_fold_offset_to_component_ref): Remove.
17181         (maybe_fold_stmt_indirect): Remove.
17182         (maybe_fold_reference): Remove INDIRECT_REF handling.
17183         Fold back to non-MEM_REF.
17184         (maybe_fold_offset_to_address): Simplify.  Deal with type
17185         mismatches here.
17186         (maybe_fold_reference): Likewise.
17187         (maybe_fold_stmt_addition): Likewise.  Also handle
17188         &ARRAY + I in addition to &ARRAY[0] + I.
17189         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
17190         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
17191         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
17192         * tree-ssa.c (useless_type_conversion_p): Make most pointer
17193         conversions useless.
17194         (warn_uninitialized_var): Handle MEM_REF.
17195         (maybe_rewrite_mem_ref_base): New function.
17196         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
17197         to SSA form.
17198         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
17199         INDIRECT_REF handling.
17200         (copy_tree_body_r): Handle MEM_REF.
17201         * gimple.c (is_gimple_addressable): Adjust.
17202         (is_gimple_address): Likewise.
17203         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
17204         invariant base are invariant.
17205         (is_gimple_min_lval): Adjust.
17206         (is_gimple_mem_ref_addr): New function.
17207         (get_base_address): Handle MEM_REF.
17208         (count_ptr_derefs): Likewise.
17209         (get_base_loadstore): Likewise.
17210         * gimple.h (is_gimple_mem_ref_addr): Declare.
17211         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
17212         * tree-cfg.c (verify_address): New function, split out from ...
17213         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
17214         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
17215         INDIRECT_REFs.
17216         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
17217         INDIRECT_REF.  Allow conversions.
17218         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
17219         a register does not change its size.
17220         (verify_types_in_gimple_reference): Verify MEM_REF.
17221         (verify_gimple_assign_single): Disallow INDIRECT_REF.
17222         Handle MEM_REF.
17223         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
17224         New.
17225         (mark_address_taken): Handle MEM_REF.
17226         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
17227         (get_asm_expr_operands): Pass opf_not_non_addressable.
17228         (get_expr_operands): Handle opf_[not_]non_addressable.
17229         Handle MEM_REF.  Remove INDIRECT_REF handling.
17230         * tree-vrp.c (check_array_ref): Handle MEM_REF.
17231         (search_for_addr_array): Likewise.
17232         (check_array_bounds): Likewise.
17233         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
17234         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
17235         (ref_always_accessed_p): Likewise.
17236         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
17237         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
17238         Handle MEM_REF.
17239         * cgraphbuild.c (mark_load): Properly check for NULL result
17240         from get_base_address.
17241         (mark_store): Likewise.
17242         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
17243         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
17244         handling for MEM_REF.
17245         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
17246         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
17247         * builtins.c (stabilize_va_list_loc): Use the function ABI
17248         valist type if we couldn't canonicalize the argument type.
17249         Always dereference with the canonical va-list type.
17250         (maybe_emit_free_warning): Handle MEM_REF.
17251         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
17252         memmove to memcpy.
17253         * builtins.c (fold_builtin_memory_op): Use ref-all types
17254         for all memcpy foldings.
17255         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
17256         (build_outer_var_ref): Likewise.
17257         (scan_omp_1_op): Likewise.
17258         (lower_rec_input_clauses): Likewise.
17259         (lower_lastprivate_clauses): Likewise.
17260         (lower_reduction_clauses): Likewise.
17261         (lower_copyprivate_clauses): Likewise.
17262         (expand_omp_atomic_pipeline): Likewise.
17263         (expand_omp_atomic_mutex): Likewise.
17264         (create_task_copyfn): Likewise.
17265         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
17266         Remove old union trick.  Initialize constant offsets.
17267         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
17268         INDIRECT_REF.  Init base_alias_set properly.
17269         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
17270         (vn_reference_fold_indirect): Adjust for MEM_REFs.
17271         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
17272         for ARRAY_REFs.
17273         (may_insert): Remove.
17274         (visit_reference_op_load): Do not test may_insert.
17275         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
17276         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17277         a field to store the constant offset this op applies.
17278         (run_scc_vn): Adjust prototype.
17279         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
17280         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
17281         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
17282         bother about volatile qualifiers on pointers.
17283         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
17284         * tree-ssa-loop-ivopts.c
17285         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
17286         (strip_offset_1): Likewise.
17287         (find_interesting_uses_address): Replace INDIRECT_REF handling with
17288         MEM_REF handling.
17289         (get_computation_cost_at): Likewise.
17290         * ipa-pure-const.c (check_op): Handle MEM_REF.
17291         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
17292         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
17293         and constants.
17294         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
17295         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
17296         (eliminate_local_variables_1): Likewise.
17297         (create_call_for_reduction_1): Likewise.
17298         (create_loads_for_reductions): Likewise.
17299         (create_loads_and_stores_for_name): Likewise.
17300         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
17301         (ssa_accessed_in_tree): Handle MEM_REF.
17302         (ssa_accessed_in_assign_rhs): Likewise.
17303         (update_type_size): Likewise.
17304         (analyze_accesses_for_call_stmt): Likewise.
17305         (analyze_accesses_for_assign_stmt): Likewise.
17306         (transform_access_sites): Likewise.
17307         (transform_allocation_sites): Likewise.
17308         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
17309         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
17310         not handle INDIRECT_REF.
17311         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
17312         (cond_store_replacement): Likewise.
17313         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17314         MEM_REF, no not handle INDIRECT_REFs.
17315         (insert_into_preds_of_block): Properly initialize avail.
17316         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
17317         for ARRAY_REFs.  Properly handle reference lookups that
17318         require a bit re-interpretation.
17319         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
17320         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
17321         (build_ref_for_offset_1): Remove.
17322         (build_ref_for_offset): Build MEM_REFs.
17323         (gate_intra_sra): Disable for now.
17324         (sra_ipa_modify_expr): Handle MEM_REF.
17325         (ipa_early_sra_gate): Disable for now.
17326         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
17327         MEM_REF handling.
17328         (disqualify_base_of_expr): Likewise.
17329         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
17330         MEM_REF handling.
17331         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
17332         Use mem_ref_offset.  Remove bogus folding.
17333         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
17334         (make_fancy_name_1): Add support for MEM_REF.
17335         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
17336         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
17337         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
17338         (compute_complex_ancestor_jump_func): Likewise.
17339         (ipa_analyze_virtual_call_uses): Likewise.
17340         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
17341         INDIRECT_REF folding with more generalized MEM_REF folding.
17342         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
17343         (forward_propagate_addr_into_variable_array_index): Also handle
17344         &ARRAY + I in addition to &ARRAY[0] + I.
17345         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
17346         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
17347         creates assignments with overlap.
17348         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
17349         (get_frame_field): Likewise.
17350         (get_nonlocal_debug_decl): Likewise.
17351         (convert_nonlocal_reference_op): Likewise.
17352         (struct nesting_info): Add mem_refs pointer-set.
17353         (create_nesting_tree): Allocate it.
17354         (convert_local_reference_op): Insert to be folded mem-refs.
17355         (fold_mem_refs): New function.
17356         (finalize_nesting_tree_1): Perform defered folding of mem-refs
17357         (free_nesting_tree): Free the pointer-set.
17358         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
17359         (vectorizable_load): Likewise.
17360         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
17361         (propagate_with_phi): Likewise.
17362         * tree-object-size.c (addr_object_size): Handle MEM_REFs
17363         instead of INDIRECT_REFs.
17364         (compute_object_offset): Handle MEM_REF.
17365         (plus_stmt_object_size): Handle MEM_REF.
17366         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
17367         for &MEM_REF.
17368         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
17369         (symbol_marked_for_renaming): Likewise.
17370         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
17371         (fold-const.o): Add $(TREE_FLOW_H).
17372         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
17373         (find_func_clobbers): Likewise.
17374         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
17375         (decompose_access): Likewise.
17376         (replace_field_acc): Likewise.
17377         (replace_field_access_stmt): Likewise.
17378         (insert_new_var_in_stmt): Likewise.
17379         (get_stmt_accesses): Likewise.
17380         (reorg_structs_drive): Disable.
17381         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
17382         (ix86_canonical_va_list_type): Likewise.
17383
17384 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17385
17386         PR other/44566
17387         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
17388         * target.def (struct gcc_target): Replace enum reg_class with
17389         reg_class_t in hook argument / return types.
17390         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
17391         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
17392         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
17393         * targhooks.h (default_branch_target_register_class): Likewise.
17394         (default_ira_cover_classes, default_secondary_reload): Likewise.
17395         (default_memory_move_cost, default_register_move_cost): Likewise.
17396         * targhooks.c (default_branch_target_register_class): Likewise.
17397         (default_ira_cover_classes, default_secondary_reload): Likewise.
17398         (default_memory_move_cost, default_register_move_cost): Likewise.
17399         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
17400         * bt-load.c (branch_target_load_optimize): Likewise.
17401         * ira.c (setup_cover_and_important_classes): Likewise.
17402         * ira-costs.c (copy_cost): Likewise.
17403         * reload1.c (emit_input_reload_insns): Likewise.
17404         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
17405         * config/frv/frv.c (frv_secondary_reload): Likewise.
17406         * config/s390/s390.c (s390_secondary_reload): Likewise.
17407         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
17408         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
17409         (ix86_register_move_cost): Likewise.
17410         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
17411         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
17412         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
17413         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
17414         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
17415         (rs6000_ira_cover_classes): Likewise.
17416         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
17417         * config/picochip/picochip-protos.h (picochip_secondary_reload):
17418         Likewise.
17419         * config/pa/pa.c (pa_secondary_reload): Likewise.
17420         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
17421         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
17422         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
17423         * doc/tm.texi: Regenerate.
17424
17425 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
17426
17427         PR bootstrrap/44726
17428         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
17429         use.
17430         (build_alias_set_optimal_p): Likewise.
17431         (build_base_obj_set_for_drs): Likewise.
17432
17433 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
17434
17435         * target.def: Remove comment about licensing problems of function
17436         declarations.
17437
17438         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
17439         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
17440         * doc/tm.texi: Regenerate.
17441
17442         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
17443         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
17444
17445         * target.def (enum_va_list_p): Use DEFHOOK.
17446         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
17447         Rename ptype to ptree.
17448         * doc/tm.texi: Regenerate.
17449
17450         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
17451         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
17452         * doc/tm.texi: Regenerate.
17453
17454         * target.def (memory_move_cost): Use DEFHOOK.
17455         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
17456         Rename regclass AKA class to rclass.
17457         * doc/tm.texi: Regenerate.
17458
17459         * target.def (pragma_parse): Use DEFHOOK.
17460         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
17461         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
17462         * doc/tm.texi: Regenerate.
17463
17464         * target.def (pass_by_reference): Use DEFHOOK.
17465         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
17466         * doc/tm.texi: Regenerate.
17467
17468         * target.def (resolve_overloaded_builtin): Rename params to arglist.
17469         Use DEFHOOK.
17470         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
17471         * doc/tm.texi: Regenerate.
17472
17473         * target.def (return_pops_args): Use DEFHOOK.
17474         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
17475         Rename stack-size to size.
17476         * doc/tm.texi: Regenerate.
17477
17478         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
17479         last-sched_cycle to last_clock, cur_cycle to clock.
17480         * doc/tm.texi.in: Use @hook.
17481         * doc/tm.texi: Regenerate.
17482
17483         * target.def (print_operand, print_operand_address): Update comment.
17484         (print_operand_punct_valid_p): Likewise.
17485
17486 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17487
17488         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
17489         to rtl.h.
17490         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
17491         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
17492         * rtl-error.h: New.
17493         * regrename.c: Do not include toplev.h. Include rtl-error.h.
17494         * rtl-error.c: Likewise.
17495         * reload.c: Likewise.
17496         * recog.c:  Likewise.
17497         * sel-sched.c: Likewise.
17498         * function.c: Likewise.
17499         * reg-stack.c: Likewise.
17500         * cfgrtl.c: Likewise.
17501         * reload1.c: Likewise.
17502         * final.c: Include rtl-error.
17503         * Makefile.in: Adjust dependencies.
17504
17505 2010-06-30  Jan Hubicka  <jh@suse.cz>
17506
17507         PR middle-end/PR44706
17508         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
17509         to return the value.
17510
17511 2010-06-30  Michael Matz  <matz@suse.de>
17512
17513         PR bootstrap/44699
17514         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
17515         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
17516         a gimple reg, attach the original VDEF to the last store in the
17517         sequence.
17518
17519 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
17520
17521         PR other/44034
17522         * config/darwin.c (darwin_override_options): Use renamed
17523         targetm.asm_out.emit_unwind_label.
17524
17525 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
17526
17527         PR tree-optimization/39799
17528         * tree-inline.c (remap_ssa_name): Initialize variable only if
17529         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17530
17531 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
17532
17533         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
17534
17535 2010-06-30  Richard Guenther  <rguenther@suse.de>
17536
17537         PR target/44722
17538         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
17539         against oscillation with reverse peephole2.
17540
17541 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
17542
17543         PR target/44721
17544         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17545         Fix last commit.
17546
17547 2010-06-30  Nick Clifton  <nickc@redhat.com>
17548
17549         * config/rx/rx-modes.def: New file.
17550         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
17551         (CC_REGNUM): Define.
17552         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
17553         register.
17554         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
17555         (SELECT_CC_MODE): Define.
17556         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
17557         (reg:CC CC_REG) instead of (cc0).
17558         (attr "cc"): Delete.
17559         (cbranchsi4): Do not split compare and branch here. Instead move
17560         it to...
17561         (cbranchsi4_<code>): ... here.  New patterns.
17562         (cmpsi): Call rx-compare_redundant to find out if it is necessary
17563         to emit the compare instruction.
17564         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
17565         cc_status flags.
17566         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
17567         FIRST_PSEUDO_REGNUM.
17568         (rx_expand_prologue, rx_expand_epilogue): Likewise.
17569         (rx_notice_update_cc): Delete.
17570         (rx_cc_modes_compatible): New function.
17571         (flags_needed_for_conditional): New function.
17572         (flags_from_mode): New function.
17573         (rx_compare_redundant): New function - scans backwards through
17574         insn list to find out if condition flags are already set correctly.
17575         (TARGET_CC_MODES_COMPATIBLE): Define.
17576         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
17577
17578         * config/rx/rx.h (BRANCH_COST): Define.
17579         (REGISTER_MOVE_COST): Define.
17580         * config/rx/predicates (rx_source_operand): Allow all constant types.
17581         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
17582         (tstsi4): New pattern.
17583         * config/rx/rx.c (rx_memory_move_cost): Define.
17584         (TARGET_MEMORY_MOVE_COST): Define.
17585
17586 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
17587
17588         * tree.h (block_may_fallthru): Declare here.
17589         * tree-flow.h (block_may_fallthru): Do not declare here.
17590         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
17591         bitmap.h
17592         * Makefile.in (c-typeck.o): Update dependencies.
17593
17594 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
17595
17596         PR debug/44694
17597         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
17598         * cselib.c (cfa_base_preserved_regno): New static variable.
17599         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
17600         of REGNO (cfa_base_preserved_val->locs->loc).
17601         (cselib_preserve_cfa_base_value): Add regno argument, set
17602         cfa_base_preserved_regno to it.
17603         (cselib_invalidate_regno): Allow removal of registers other than
17604         cfa_base_preserved_regno from cfa_base_preserved_val.
17605         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
17606         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
17607         of MEM addresses, if not on LHS.
17608         (reverse_op): Don't add reverse ops for cfa_base_rtx.
17609         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
17610
17611 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
17612
17613         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
17614         static variables.
17615         (peep2_buf_position): New static function.
17616         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
17617         peephole2_optimize): Use it.
17618         (peep2_attempt, peep2_update_life): New static functions, broken out
17619         of peephole2_optimize.
17620         (peep2_fill_buffer): New static function.
17621         (peephole2_optimize): Change the main loop to try to fill the buffer
17622         with the maximum number of insns before matching them against
17623         peepholes.  Use a forward scan.  Remove special case for targets with
17624         conditional execution.
17625         * genrecog.c (change_state): Delete dead code.
17626         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17627         Rewrite so as not to expect the second insn to have had a peephole
17628         applied yet.
17629
17630 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
17631
17632         * genhooks.c (emit_findices): Cast field precision to int.
17633         (emit_documentation): Likewise.
17634
17635 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
17636
17637         PR tree-optimization/43801
17638         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
17639         if old_decl was DECL_ONE_ONLY.
17640
17641         PR debug/44668
17642         * dwarf2out.c (add_accessibility_attribute): New function.
17643         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
17644         instead of adding DW_AT_accessibility manually.
17645         (gen_enumeration_type_die, gen_struct_or_union_type_die,
17646         gen_typedef_die): Use it.
17647
17648 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17649
17650         * vmsdbgout.c (full_name): Just output the file name if not native.
17651
17652 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17653
17654         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
17655         (funcnam_table): New static table.
17656         (funcnum_table): New static table.
17657         (write_rtnbeg): Write value saved in funcnum_table.
17658         (write_rtnend): Write value saved in funcnum_table.
17659         (vmsdbgout_begin_function): Save current function info in
17660         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
17661         (vmsdbgout_finish): Iterate over funcnum_table.
17662
17663 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17664
17665         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
17666         (vmsdbgout_type_decl): Declare
17667         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
17668         (FUNC_EPILOGUE_LABEL): New macro
17669         (vmsdbgout_begin_epilogue): New function.
17670         (vmsdbgout_type_decl): New function.
17671
17672 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17673
17674         * vmsdbg.h: Update copyright.
17675
17676 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
17677
17678         * vmsdbg.h (DST_K_TBG): New DST constant.
17679         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
17680         (write_modbeg): Cast module_language to avoid warning.
17681         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
17682
17683 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
17684
17685         PR other/44034
17686         * target.def, doc/tm.texi.in, genhooks.c: New files.
17687         * target.h: Instead of defining individual hook members,
17688         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
17689         include target.def.
17690         * target-def.h: Instead of defining individual hook initializers,
17691         include target-hooks-def.h.
17692         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
17693         targetm.live_on_entry -> targetm.extra_live_on_entry
17694         targetm.sched.md_finish ->targetm.sched.finish
17695         targetm.sched.md_init -> targetm.sched.init
17696         targetm.sched.md_init_global -> targetm.sched.init_global
17697         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
17698         targetm.asm_out.except_table_label ->
17699           targetm.asm_out.emit_except_table_label
17700         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
17701         targetm.target_help -> targetm.help
17702         targetm.vectorize.builtin_support_vector_misalignment ->
17703           targetm.vectorize.support_vector_misalignment
17704         targetm.file_start_app_off -> targetm.asm_file_start_app_off
17705         targetm.file_start_file_directive ->
17706          targetm.asm_file_start_file_directive
17707         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
17708         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
17709         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
17710         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
17711           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
17712         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
17713           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
17714         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
17715         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
17716         * Makefile.in (TARGET_H): Depend on target.def.
17717         (TARGET_DEF_H): Depend on target-hooks-def.h.
17718         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
17719         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
17720         * doc/tm.texi: Regenerate.
17721
17722         * Makefile.in (s-tm-texi): Remove stray tab / rule.
17723
17724         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
17725         (targetm.sched.init): Likewise.
17726
17727 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
17728
17729         PR bootstrap/44713
17730         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
17731         (function_arg_advance_32): Const-ify TYPE parameter.
17732         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
17733         (ix86_function_arg_advance): Change type of NAMED to bool.
17734         (function_arg_32): Const-ify CUM and TYPE parameters.
17735         (function_arg_64): Likewise.  Change type of NAMED to bool.
17736         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
17737         to bool.
17738         (ix86_function_arg): Change type of NAMED to bool.
17739         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
17740         last argument as a bool.
17741
17742 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
17743
17744         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
17745         (OVERRIDE_OPTIONS): Add note of obsolescence.
17746         Replace references with references to TARGET_OPTION_OVERRIDE.
17747         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
17748          the macro).
17749         * targhooks.c (default_target_option_override): New function.
17750         * targhooks.h (default_target_option_override): Declare.
17751         * target.h (struct gcc_target): Add override member to
17752         target_option member.
17753         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
17754         targetm.target_option.override call.
17755         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
17756         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
17757
17758 2010-06-29  Jan Hubicka  <jh@suse.cz>
17759
17760         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
17761
17762 2010-06-29  Jan Hubicka  <jh@suse.cz>
17763
17764         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
17765         unreachable.
17766         (rebuild_frequencies): New function.
17767         * predict.h (rebuild_frequencies): Declare.
17768         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
17769         entry block and edge reaching new_entry.
17770         (tree_function_versioning): When doing partial cloning, rebuild
17771         frequencies when done.
17772         * passes.c (execute_function_todo): Use rebild_frequencies.
17773
17774 2010-06-29  Richard Guenther  <rguenther@suse.de>
17775
17776         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
17777         * tree-flow.h (enum noalias_state): Remove.
17778         (struct var_ann_d): Remove noalias_state member.
17779
17780 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
17781
17782         PR target/43902
17783         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
17784         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
17785         (maddhidi4): Likewise.
17786
17787         Revert parts of the change for PR25130.
17788         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17789         MEM_ALIAS_SET.
17790
17791 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
17792
17793         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
17794         targetm.calls.function_incoming_arg, and
17795         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
17796         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
17797         * target.h (struct gcc_target): Add function_arg_advance,
17798         function_arg, and function_incoming_arg fields.
17799         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
17800         (TARGET_FUNCTION_INCOMING_ARG): Define.
17801         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
17802         and TARGET_FUNCTION_INCOMING_ARG.
17803         * targhooks.h (default_function_arg_advance): Declare.
17804         (default_function_arg, default_function_incoming_arg): Declare.
17805         * targhooks.c (default_function_arg_advance): New function.
17806         (default_function_arg, default_function_incoming_arg): New function.
17807         * config/i386/i386.c (function_arg_advance): Rename to...
17808         (ix86_function_arg_advance): ...this.  Make static.
17809         (function_arg): Rename to...
17810         (ix86_function_arg): ...this.  Make static.
17811         (TARGET_FUNCTION_ARG_ADVANCE): Define.
17812         (TARGET_FUNCTION_ARG): Define.
17813         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
17814         (FUNCTION_ARG): Delete.
17815         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
17816         (function_arg): Delete prototype.
17817
17818 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
17819
17820         * reginfo.c (init_reg_sets_1): Adjust comments.
17821         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
17822         * calls.c (prepare_call_address): Likewise.
17823         (emit_call_1): Use targetm.calls.return_pops_args.
17824         (expand_call): Likewise.
17825         * function.c (assign_parms): Likewise.
17826         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
17827         * target.h (struct gcc_target) [struct calls]: Add
17828         return_pops_args field.
17829         * targhooks.h (default_return_pops_args): Declare.
17830         * targhooks.c (default_return_pops_args): Define.
17831         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
17832         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
17833         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
17834         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
17835         documentation.
17836         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
17837         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
17838         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
17839         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
17840         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
17841         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
17842         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
17843         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
17844         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
17845         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
17846         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
17847         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
17848         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
17849         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
17850         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
17851         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
17852         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
17853         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
17854         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
17855         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
17856         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
17857         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
17858         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
17859         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
17860         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
17861         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
17862         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
17863         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
17864         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
17865         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
17866         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
17867         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
17868         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
17869         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
17870         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
17871         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
17872         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
17873         * config/i386/i386.c (ix86_return_pops_args): Make static.
17874         Constify arguments.
17875         (TARGET_RETURN_POPS_ARGS): Define.
17876         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
17877         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
17878         (TARGET_RETURN_POPS_ARGS): Define.
17879         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
17880         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
17881         (TARGET_RETURN_POPS_ARGS): Define.
17882
17883 2010-06-29  Richard Guenther  <rguenther@suse.de>
17884
17885         PR middle-end/44667
17886         * tree-inline.c (initialize_inlined_parameters): Make sure
17887         to remap the inlined parameter variable substitutions types.
17888
17889 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
17890
17891         PR rtl-optimization/44659
17892         * combine.c (make_compound_operation) <SUBREG>: Do not return the
17893         result of force_to_mode if it partially re-expanded the compound.
17894
17895 2010-06-28  Jan Hubicka  <jh@suse.cz>
17896
17897         PR middle-end/44671
17898         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
17899         RESULT_DECL.
17900
17901 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
17902
17903         * double-int.h (force_fit_type_double): Remove declaration.
17904         * double-int.c (force_fit_type_double): Move to tree.c.
17905         * tree.h (force_fit_type_double): Declare.
17906         * tree.h (force_fit_type_double): Moved from double-int.c. Use
17907         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
17908         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
17909         * convert.c (convert_to_pointer): Adjust call to
17910         force_fit_type_double.
17911         * tree-vrp.c (extract_range_from_assert,
17912         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
17913         * fold-const.c: Update comment.
17914         (int_const_binop, fold_convert_const_int_from_int,
17915         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
17916         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
17917         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
17918         round_up_loc): Adjust call to force_fit_type_double.
17919
17920 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17921
17922         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
17923
17924 2010-06-28  Martin Jambor  <mjambor@suse.cz>
17925
17926         * tree-sra.c (convert_callers): New parameter, change fndecls of
17927         recursive calls.
17928         (modify_function): Pass the old decl to convert_callers.
17929
17930 2010-06-28  Martin Jambor  <mjambor@suse.cz>
17931
17932         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
17933         ipa_check_create_node_params and ipa_initialize_node_params with
17934         checking asserts they are not necessary.
17935
17936 2010-06-28  Jan Hubicka  <jh@suse.cz>
17937
17938         PR tree-optimization/44687
17939         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
17940
17941 2010-06-28  Martin Jambor  <mjambor@suse.cz>
17942
17943         PR c++/44535
17944         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
17945         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
17946         instead of BINFO_BASE_BINFO.
17947
17948 2010-06-28  Michael Matz  <matz@suse.de>
17949
17950         PR middle-end/44592
17951         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
17952         proper VDEF chain for intermediate stores in the sequence.
17953
17954 2010-06-28  Jan Hubicka  <jh@suse.cz>
17955
17956         PR tree-optimization/44357
17957         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
17958         uninlinable functions.
17959
17960 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
17961
17962         * config.gcc (powerpc*-*-*): Handle titan.
17963         * config/rs6000/rs6000.c (titan_cost): New costs.
17964         (rs6000_override_options): Add "titan" to processor_target_table.
17965         Add Titan to branch alignment logic.
17966         Correctly set rs6000_cost for titan.
17967         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
17968         * config/rs6000/titan.md: New file.
17969         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
17970
17971 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
17972
17973         * tree-browser.c (TB_history_stack): Convert to a VEC.
17974         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
17975         (TB_history_prev): Likewise.
17976
17977 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
17978
17979         * vec.h (vec_heap_free): Add parentheses around free.
17980
17981 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
17982
17983         * system.h: Poison GCC_EXCEPT_H for front-end files.
17984
17985         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
17986         langhook.
17987         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
17988         Define to NULL by default.
17989         * except.h: Define GCC_EXCEPT_H.
17990         (doing_eh): Remove prototype.
17991         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
17992         (lang_protect_cleanup_actions): Remove.
17993         * except.c (lang_protect_cleanup_actions): Remove.
17994         (doing_eh): Remove.
17995         (gen_eh_region): Don't check doing_eh here.
17996         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
17997         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
17998         instead of lang_protect_cleanup_actions.
17999         * omp-low.c (maybe_catch_exception): Likewise.
18000         * Makefile.in: Update dependencies.
18001
18002 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
18003
18004         * cgraph.h (struct varpool_node): new used_from_object_file flag.
18005         (struct cgraph_local_info): new used_from_object_file flag.
18006         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
18007         (cgraph_clone_node): initialize used_from_object_file.
18008         (cgraph_create_virtual_clone): initialize used_from_object_file.
18009         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
18010         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
18011         when compiling with -fwhole-program.
18012         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
18013         internal resolver.
18014         * ipa.c (function_and_variable_visibility): Set externally_visible
18015         flag of varpool_node if used_from_object_file flag is set.
18016         (cgraph_externally_visible_p): check used_from_object_file flag.
18017         * doc/invoke.texi (-fwhole-program option): Change description of
18018         externally_visible attribute accordingly.
18019         * doc/extend.texi (externally_visible): Ditto.
18020
18021 2010-06-27  Jan Hubicka  <jh@suse.cz>
18022
18023         * params.def (max-inline-insns-auto): Default to 40.
18024         * doc/invoke.texi (max-inline-insns-auto): Document the change.
18025
18026 2010-06-27  Jan Hubicka  <jh@suse.cz>
18027
18028         PR middle-end/44671
18029         PR middle-end/44686
18030         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
18031         signature change.
18032         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
18033         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
18034
18035 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
18036
18037         * target.h (struct gcc_target): Add register_move_cost field.
18038         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
18039         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
18040         * targhooks.c (default_register_move_cost): New function.
18041         * targhooks.h (default_register_move_cost): Declare function.
18042         * defaults.h (REGISTER_MOVE_COST): Delete.
18043         * ira-int.h (ira_register_move_cost): Update comment.
18044         * ira.c (ira_register_move_cost): Update comment.
18045         * reload.h (register_move_cost): Declare.
18046         * reginfo.c (register_move_cost): New function.
18047         (move_cost): Update comment.
18048         (init_move_cost, memory_move_secondary_cost): Replace
18049         REGISTER_MOVE_COST with register_move_cost.
18050         * postreload.c (reload_cse_simplify_set): (Ditto.).
18051         * reload.c (find_valid_class, find_reloads): (Ditto.).
18052         * reload1.c (choose_reload_regs): (Ditto.).
18053         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
18054         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
18055         * doc/md.texi (can_create_pseudo_p): Update documentation.
18056
18057         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
18058         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
18059         * config/i386/i386.h (ix86_memory_move_cost): Make static.
18060         (TARGET_MEMORY_MOVE_COST): Define.
18061
18062         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
18063         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
18064         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
18065         (TARGET_MEMORY_MOVE_COST): Define.
18066
18067 2010-06-27  Richard Guenther  <rguenther@suse.de>
18068
18069         PR tree-optimization/44683
18070         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
18071         false edge from the inverted condition.
18072
18073 2010-06-27  Richard Guenther  <rguenther@suse.de>
18074
18075         PR middle-end/44684
18076         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
18077         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
18078         for register LHS.  Or non-store assignments.
18079
18080 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
18081
18082         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
18083         (sparc_emit_set_const64): Likewise.  Remove disabled code.
18084         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
18085         (sparc_emit_set_const64): Likewise.
18086
18087 2010-06-26  Catherine Moore  <clm@codesourcery.com>
18088
18089         * config/mips/mips.md (alu_type): New attribute.
18090         (type): Infer type from alu_type.
18091         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
18092         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
18093         *subsi3_extended, negsi2, negdi2, *low<mode>,
18094         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
18095         xor<mode>3, *nor<mode>3,
18096         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
18097         *zero_extendhi_truncqi):  Set alu_type instead of type.
18098
18099 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
18100
18101         * config/alpha/alpha.c (alpha_need_linkage): Adjust
18102         splay_tree_new_ggc call.
18103         (alpha_use_linkage): Likewise.
18104
18105 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
18106
18107         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
18108         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
18109         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
18110         (static_specs): Remove switches_need_spaces.
18111         (process_command, do_self_spec): Hardcode handling "-o" instead of
18112         checking switches_need_spaces.
18113         * system.h (SWITCHES_NEED_SPACES): Poison.
18114
18115 2010-06-26  Richard Guenther  <rguenther@suse.de>
18116
18117         PR tree-optimization/44393
18118         * tree-loop-distribution.c (generate_loops_for_partition): Fix
18119         stmt removal and VOP renaming.
18120         (generate_memset_zero): Remove redundant stmt updating.
18121         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
18122         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
18123
18124 2010-06-26  Jan Hubicka  <jh@suse.cz>
18125
18126         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
18127         edges comming from header are equivalent.
18128         (visit_bb): Handle PHIs correctly.
18129         * tree-inline.c (copy_phis_for_bb): Be able to copy
18130         PHI from entry edge.
18131         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
18132
18133 2010-06-26  Richard Guenther  <rguenther@suse.de>
18134
18135         PR middle-end/44674
18136         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
18137         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
18138
18139 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
18140
18141         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
18142         add_infile, alloc_switch): New.
18143         (process_command): Remove variable lang_n_infiles.  Process
18144         options in a single pass.  Use new functions for allocating
18145         infiles and switches arrays.  Properly skip operands of
18146         -Xpreprocessor and -Xassembler.
18147
18148 2010-06-26  Jan Hubicka  <jh@suse.cz>
18149
18150         PR middle-end/44671
18151         * cgraphunit.c (cgraph_function_versioning): Remove wrong
18152         cgraph_make_decl_local call; fix typo copying RTL data.
18153
18154 2010-06-25  DJ Delorie  <dj@redhat.com>
18155
18156         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
18157         (m32c_output_aligned_common): Likewise.
18158         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
18159         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
18160         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
18161         (m32c_register_pragmas): Register it.
18162         * config/m32c/m32c.c (m32c_get_pragma_address): New.
18163         (m32c_insert_attributes): Set #pragma address decls volatile.
18164         (pragma_entry_eq): New.
18165         (pragma_entry_hash): New.
18166         (m32c_note_pragma_address): New.
18167         (m32c_get_pragma_address): New.
18168         (m32c_output_aligned_common): New.
18169         * doc/extend.texi: Document the new pragma.
18170
18171         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
18172         also.
18173         * config/m32c/predicates.md (m32c_any_operand): Check the code
18174         instead of memory_operand so as to allow matching volatile MEMs.
18175         (m32c_nonimmediate_operand): Likewise.
18176         (mra_operand): Allow volatiles.
18177
18178 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
18179
18180         PR debug/44610
18181         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
18182         address if the offset is unknown.
18183
18184 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
18185
18186         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
18187         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
18188         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
18189         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
18190         to ia64_start_function. Invoke it.
18191         * config/ia64/ia64.c (ia64_start_function): Call new function
18192         dwarf2out_vms_debug_main_pointer.
18193
18194 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18195
18196         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
18197         statements computing the true predicate.
18198
18199 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18200
18201         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
18202         to boolean_true_node.
18203         (reset_bb_predicate): New.
18204         (predicate_bbs): Call reset_bb_predicate.
18205
18206 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18207
18208         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
18209         (tree_if_conversion): Returns true when something has been changed.
18210         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
18211         changed something.
18212
18213 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
18214
18215         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
18216         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
18217         * tree-if-conv.c: Include dbgcnt.h.
18218         (tree_if_conversion): Use if_conversion_tree to count the number of
18219         if-convertible loops.
18220
18221 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
18222
18223         * common.opt (fprefetch-loop-arrays): Re-define
18224         -fprefetch-loop-arrays as a tri-state option with the initial
18225         value of -1.
18226         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
18227         pass only when flag_prefetch_loop_arrays > 0.
18228         * toplev.c (process_options): Note that, with tri-states,
18229         flag_prefetch_loop_arrays>0 means prefetching is enabled.
18230         * config/i386/i386.c (override_options): Enable prefetching at -O3
18231         for a set of CPUs that sw prefetching is helpful.
18232         (software_prefetching_beneficial_p): New.  Return TRUE if software
18233         prefetching is beneficial for the given CPU.
18234
18235 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18236
18237         PR rtl-optimization/44326
18238         * implicit-zee.c (find_removable_zero_extends): Replace
18239         INSN_P with NONDEBUG_INSN_P.
18240
18241 2010-06-25  Martin Jambor  <mjambor@suse.cz>
18242
18243         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
18244         (struct ipa_node_params): Removed the modification_analysis_done flag.
18245         (ipa_is_param_modified): Removed.
18246         (ipa_analyze_node): Declare.
18247         (ipa_compute_jump_functions): Remove declaration.
18248         (ipa_count_arguments): Likewise.
18249         (ipa_detect_param_modifications): Likewise.
18250         (ipa_analyze_params_uses): Likewise.
18251         * ipa-prop.c (struct param_analysis_info): New type.
18252         (visit_store_addr_for_mod_analysis): Removed.
18253         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
18254         moved down in the file.
18255         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
18256         (ipa_count_arguments): Made static.
18257         (mark_modified): New function.
18258         (is_parm_modified_before_call): New function.
18259         (compute_pass_through_member_ptrs): New parameter parms_info, call
18260         is_parm_modified_before_call instead of ipa_is_param_modified.
18261         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
18262         it to compute_pass_through_member_ptrs.
18263         (ipa_compute_jump_functions): New parameter parms_info, pass it to
18264         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
18265         on the callee if it is analyzed.  Made static.
18266         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
18267         is_parm_modified_before_call instead of ipa_is_param_modified.
18268         (ipa_analyze_call_uses): New parameter parms_info, pass it to
18269         ipa_analyze_indirect_call_uses.
18270         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
18271         ipa_analyze_call_uses.
18272         (ipa_analyze_params_uses): New parameter parms_info, pass it to
18273         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
18274         (ipa_analyze_node): New function.
18275         (ipa_print_node_params): Do not dump the modified flag.
18276         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
18277         it.  Do not stream the modified parameter flag.
18278         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
18279         it.  Do not stream the modified parameter flag.
18280         * ipa-cp.c (ipcp_analyze_node): Removed.
18281         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
18282         with only a call to ipa_analyze_node.
18283         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
18284         node with only a call to ipa_analyze_node.
18285
18286 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18287
18288         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
18289
18290 2010-06-25  Jan Hubicka  <jh@suse.cz>
18291
18292         * tree-pass.h (pass_split_functions): Declare.
18293         * opts.c (decode_options): Enable function splitting at -O2
18294         * timevar.def (TV_IPA_FNSPLIT): New macro.
18295         * ipa-split.c: New file.
18296         * common.opt (-fpartial-inlining): New flag.
18297         * Makefile.in (ipa-split.o): New object file.
18298         * passes.c (init_optimization_passes): Add ipa-split.
18299         * params.def (partial-inlining-entry-probability): New parameters.
18300         * doc/invoke.texi (-fpartial-inlining): New.
18301
18302 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18303
18304         PR 44665
18305         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
18306         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
18307         (gimplify_expr): Likewise.
18308
18309 2010-06-25  Martin Jambor  <mjambor@suse.cz>
18310
18311         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
18312         statements instead of bailing out on them.
18313         (ipa_analyze_indirect_call_uses): Do not require that loads from the
18314         parameter are in the same BB as the condition.  Update comments.
18315
18316 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
18317
18318         PR middle-end/43866
18319         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
18320         true or always false, return NULL_TREE.
18321         (tree_unswitch_single_loop): Optimize conditions even when reaching
18322         max-unswitch-level parameter.  If num > 0, optimize first all conditions
18323         using entry checks, then do still reachable block discovery and consider
18324         only conditions in still reachable basic blocks in the loop.
18325
18326         PR tree-optimization/44539
18327         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
18328         the call doesn't have LHS, but has VDEF.
18329
18330 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
18331
18332         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
18333         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
18334         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
18335         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
18336         * system.h (MODIFY_TARGET_NAME): Poison.
18337
18338 2010-06-25  Alan Modra  <amodra@gmail.com>
18339
18340         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
18341         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
18342         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
18343         CMODEL_LARGE as default.
18344         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
18345         (offsettable_ok_by_alignment): Delete.
18346         (rs6000_emit_move): Remove mcmodel=medium optimization.
18347
18348 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
18349
18350         With large parts from Jim Wilson:
18351         PR target/43902
18352         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
18353         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18354         * optabs.c (optab_for_tree_code): Likewise.
18355         (expand_widen_pattern_expr): Likewise.
18356         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
18357         out of execute_optimize_widening_mul.
18358         (convert_plusminus_to_widen): New function.
18359         (execute_optimize_widening_mul): Use the two new functions.
18360         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
18361         Remove code to generate widening multiply-accumulate.  Add support
18362         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18363         * gimple-pretty-print.c (dump_ternary_rhs): New function.
18364         (dump_gimple_assign): Call it when appropriate.
18365         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
18366         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
18367         (expand_gimple_stmt_1): Likewise.
18368         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
18369         WIDEN_MULT_MINUS_EXPR.
18370         * tree-ssa-operands.c (get_expr_operands): Likewise.
18371         * tree-inline.c (estimate_operator_cost): Likewise.
18372         * gimple.c (extract_ops_from_tree_1): Renamed from
18373         extract_ops_from_tree.  Add new arg for a third operand; fill it.
18374         (gimple_build_assign_stat): Support operations with three operands.
18375         (gimple_build_assign_with_ops_stat): Likewise.
18376         (gimple_assign_set_rhs_from_tree): Likewise.
18377         (gimple_assign_set_rhs_with_ops_1): Renamed from
18378         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
18379         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
18380         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
18381         WIDEN_MULT_MINUS_EXPR.
18382         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
18383         (extract_ops_from_tree_1): Adjust declaration.
18384         (gimple_assign_set_rhs_with_ops_1): Likewise.
18385         (gimple_build_assign_with_ops): Pass NULL for last operand.
18386         (gimple_build_assign_with_ops3): New macro.
18387         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
18388         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
18389         functions.
18390         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
18391         (verify_gimple_assign): Call it.
18392         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
18393         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
18394         functions for dealing with three-operand statements.
18395         * tree.c (commutative_ternary_tree_code): New function.
18396         * tree.h (commutative_ternary_tree_code): Declare it.
18397         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
18398         ternary statements.
18399         (gimple_assign_nonzero_warnv_p): Likewise.
18400         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
18401         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
18402         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
18403         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
18404         (struct hashtable_expr): New member ternary in the union.
18405         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
18406         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
18407         (iterative_hash_hashable_expr): Likewise.
18408         (print_expr_hash_elt): Handle EXPR_TERNARY.
18409         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
18410         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
18411         statements.  Handle GIMPLE_TERNARY_RHS.
18412
18413 2010-06-25  Jan Hubicka  <jh@suse.cz>
18414
18415         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
18416
18417 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
18418
18419         PR c/44517
18420         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
18421         parameters are not good.
18422         (c_parser_parameter_declaration): Error unknown type name if the type
18423         name can't start declaration specifiers.
18424
18425 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
18426
18427         * gcc.c (translate_options): Don't mention +e in comment.
18428         (process_command): Don't handle +e specially.
18429
18430 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
18431
18432         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
18433
18434         * ira-build.c (merge_hard_reg_conflicts): New function.
18435         (create_cap_allocno, copy_info_to_removed_store_destinations,
18436         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
18437         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
18438         (remove_unnecessary_allocnos, remove_low_level_allocnos)
18439         copy_nifo_to_removed_store_destination): Use them.
18440         * ira-lives.c (make_hard_regno_born): New function, split out of
18441         make_regno_born.
18442         (make_allocno_born): Likewise.
18443         (make_hard_regno_dead): New function, split out of make_regno_dead.
18444         (make_allocno_dead): Likewise.
18445         (inc_register_pressure): New function, split out of set_allocno_live.
18446         (dec_register_pressure): New function, split out of clear_allocno_live.
18447         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
18448         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
18449         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
18450         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
18451         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
18452         mark_pseudo_regno_live.
18453         (process_bb_node_lives): Use mark_pseudo_regno_live,
18454         make_hard_regno_born and make_allocno_dead.
18455         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
18456         set_allocno_live, clear_allocno_live): Delete functions.
18457
18458         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
18459         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
18460         functions.
18461         (ira_flattening): Use ira_parent_allocno.
18462         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
18463         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
18464
18465         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
18466         statement.
18467
18468         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
18469         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
18470         minmax_set_iter_cond, minmax_set_iter_next,
18471         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
18472         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
18473         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
18474         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
18475         uses changed.
18476
18477         * ira-int.h (struct live_range, live_range_t): Renamed from struct
18478         ira_allocno_live_range and allocno_live_range_t; all uses changed.
18479         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
18480         All uses changed.
18481
18482 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
18483
18484         * thumb2.md (thumb2_tlobits_cbranch): Delete.
18485         (peephole2 to convert zero_extract/compare of single bit to
18486          lshift/compare): New.
18487
18488 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
18489
18490         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
18491         recursive call and call to 'int_const_binop'.
18492         (build_range_check, fold_cond_expr_with_comparison, unextend,
18493         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
18494         multiple_of_p): Adjust call to const_binop.
18495
18496 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
18497
18498         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
18499         determine size of XFmode operand.
18500         (XFmode extended DFmode push splitter): Ditto.
18501         (XFmode extended SFmode push splitter): Ditto.
18502
18503 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
18504
18505         PR target/44588
18506         * config/i386/i386.md (extract_code): New.
18507         (<u>divmodqi4): Likewise.
18508         (divmodhiqi3): Likewise.
18509         (udivmodhiqi3): Likewise.
18510         (<u>divqi3): Remvoved.
18511
18512 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
18513
18514         PR middle-end/44492
18515         * recog.h (struct recog_data): Add is_asm field.
18516         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
18517         present in constraints of inline-asm operand and memory operand
18518         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
18519         (extract_insn): Initialize recog_data.is_asm.
18520         * doc/md.texi (Constraints): Document operand side-effect rules.
18521
18522 2010-06-24  Andi Kleen  <ak@linux.intel.com>
18523
18524         * c-parser.c (c_parser_conditional_expression): Call
18525         warn_for_omitted_condop.
18526         * doc/invoke.texi: Document omitted condop warning.
18527
18528 2010-06-24  Nick Clifton<nickc@redhat.com>
18529
18530         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
18531         insn in the sequence is a jump insn before setting its label.
18532
18533 2010-06-24  Alan Modra  <amodra@gmail.com>
18534
18535         * collect2.c (main): Match exactly --version and --help.
18536
18537 2010-06-24  DJ Delorie  <dj@redhat.com>
18538
18539         * config/m32c/m32c-pragma.c: Don't include rtl.h.
18540
18541 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
18542
18543         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
18544         using X87MODEF mode iterator.
18545         (pushsf splitter): Macroize splitter using P mode iterator.
18546         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
18547         mode iterator.
18548
18549         (*movxf_internal): Rename from *movxf_integer.
18550         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
18551         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
18552         (*movdf_internal): Rename from *movdf_integer.
18553         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
18554         (*movsf_internal): Rename from *movdf_1.
18555
18556 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
18557
18558         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
18559         (const_gimple_seq_node): Removed typedefs.
18560
18561         * gimple.h (gimple_seq_node_d, gimple_seq_node)
18562         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
18563
18564 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
18565
18566         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
18567         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
18568         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
18569         and CODE_FOR_vec_extract_lo_v4df.
18570
18571         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
18572         Changed to define_insn_and_split.
18573         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
18574         (vec_extract_lo_v16hi): Likewise.
18575         (vec_extract_lo_v32qi): Likewise.
18576         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
18577         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
18578
18579 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
18580
18581         PR target/44640
18582         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
18583         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
18584         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
18585         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
18586         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
18587
18588         PR target/44640
18589         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
18590
18591         PR other/44644
18592         * df-core.c (struct df): Rename to df_d.
18593         * df.h (struct df): Likewise.
18594         * dse.h (struct df): Remove forward declaration.
18595         * recog.h (struct insn_data): Rename to:
18596         (struct_insn_data_d).  Adjusted all users.
18597
18598 2010-06-23  Arnaud Charlet  <charlet@adacore.com
18599
18600         PR ada/22220
18601         * doc/install.texi: Update requirements to build GNAT.
18602
18603 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
18604
18605         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
18606         enum type.
18607         (m68k_sched_attr_opx_type): Remove unreachable return.
18608         (m68k_sched_attr_opy_type): Likewise.
18609         (m68k_sched_attr_size): Likewise.
18610         (sched_get_opxy_mem_type): Likewise.
18611         (m68k_sched_attr_op_mem): Likewise.
18612
18613 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
18614
18615         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
18616         new statement and adjust VDEF only if necessary.  Remove superfluous
18617         call to maybe_clean_or_replace_eh_stmt.
18618         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
18619         copy the flags.
18620         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
18621         * tree-inline.c (copy_bb): ...and not there.
18622
18623 2010-06-22  Cary Coutant  <ccoutant@google.com>
18624
18625         * dwarf2out.c (is_nested_in_subprogram): New function.
18626         (should_move_die_to_comdat): Use it.
18627         (copy_ancestor_tree): Don't mark DIEs here.
18628         (copy_decls_walk): Start walk from root of newly-added tree;
18629         mark DIEs here instead.
18630
18631 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
18632
18633         * config/i386/i386.md (unit): Also check sseishft1.
18634
18635 2010-06-22  Jan Hubicka  <jh@suse.cz>
18636
18637         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
18638         enabled.
18639
18640 2010-06-22  Jan Hubicka  <jh@suse.cz>
18641
18642         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
18643         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
18644         Return true if something changed.
18645         * df.h (df_confluence_function_n): Return bool.
18646         * df-core.c (df_worklist_propagate_forward,
18647         df_worklist_propagate_backward): Track changes and ages.
18648         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
18649         track ages.
18650         * dse.c (dse_confluence_n): Return always true.
18651
18652 2010-06-22  Jan Hubicka  <jh@suse.cz>
18653
18654         * bitmap.c (bitmap_clear_bit): Micro optimize.
18655
18656 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
18657
18658         * config/i386/i386.md (SWI1248x): New mode iterator.
18659         (SWI48x): Ditto.
18660         (SWI12): Ditto.
18661         (SWI24): Ditto.
18662
18663         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
18664         SWI1248x mode iterator.
18665         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
18666         using SWI124 mode iterator.
18667         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
18668         mode iterator.
18669         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
18670         *pushdi2_prologue_rex64 using P mode iterator.
18671         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
18672         using SWI48 mode iterator.
18673         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
18674         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
18675         using SWI1248x mode iterator.
18676         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
18677         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
18678         SWI48 mode iterator.
18679         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
18680         iterator.
18681         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
18682         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
18683         SWI12 mode iterator.
18684         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
18685         SWI12 mode iterator.
18686         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
18687         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
18688         SWI24 mode iterator.
18689         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
18690         SWI48 mode iterator.
18691         (mov<mode>_insn_1): New expander.
18692         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
18693         using SWI48x mode iterator.
18694
18695         (*movoi_internal_avx): Rename from *movoi_internal.
18696         (*movti_internal_rex64): Rename from *movti_rex64.
18697         (*movti_internal_sse): Rename from *movti_sse.
18698         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
18699         (*movdi_internal): Rename from *movdi_2.
18700         (*movsi_internal): Rename from *movsi_1.
18701         (*movhi_internal): Rename from *movhi_1.
18702         (*movqi_internal): Rename from *movqi_1.
18703
18704         (insv): Update the call to gen_movsi_insv_1 for rename.
18705         * config/i386/i386.c (promote_duplicated_reg): Ditto.
18706
18707 2010-06-22  Jan Hubicka  <jh@suse.cz>
18708
18709         * passes.c (execute_function_todo): Move call of statistics_fini_pass
18710         to ...
18711         (execute_todo) ... this one.
18712
18713 2010-06-22  Alan Modra  <amodra@gmail.com>
18714
18715         PR target/44364
18716         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18717         * caller-save.c (insert_restore, insert_save): Use non-validate
18718         form of adjust_address.
18719
18720 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18721
18722         PR target/39690
18723         * config/pa/pa.c (override_options): Disable
18724         -freorder-blocks-and-partition.
18725
18726 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
18727
18728         PR target/44615
18729         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
18730
18731         * config/i386/i386.md (type): Add sseishft1
18732
18733         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
18734         (ppro_insn_load): Likewise.
18735         (ppro_insn_store): Likewise.
18736         (ppro_insn_both): Likewise.
18737
18738         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
18739         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
18740         for type.
18741         (*vec_extractv2di_1_avx): Likewise.
18742         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
18743         type.  Remove atom_unit.
18744         (*vec_extractv2di_1_sse2): Likewise.
18745
18746 2010-06-21  DJ Delorie  <dj@redhat.com>
18747
18748         * diagnostic.h (diagnostic_classification_change_t): New.
18749         (diagnostic_context): Add history and push/pop list.
18750         (diagnostic_push_diagnostics): Declare.
18751         (diagnostic_pop_diagnostics): Declare.
18752         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
18753         from pragmas in a history chain instead of the global table.
18754         (diagnostic_push_diagnostics): New.
18755         (diagnostic_pop_diagnostics): New.
18756         (diagnostic_report_diagnostic): Scan history chain to find state
18757         of diagnostics as of the diagnostic location.
18758         * opts.c (set_option): Pass UNKNOWN_LOCATION to
18759         diagnostic_classify_diagnostic.
18760         (enable_warning_as_error): Likewise.
18761         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
18762         use in the history chain.
18763         * doc/extend.texi: Document pragma GCC diagnostic changes.
18764
18765 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
18766
18767         * dwarf2out.c (add_linkage_name): New function.  Don't add
18768         anything to DW_TAG_member DIEs.
18769         (add_name_and_src_coords_attributes): Use it.
18770         (gen_variable_die): Call it for C++ static data members if
18771         specification is DW_TAG_member.
18772
18773         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
18774         C++ char16_t and char32_t.
18775
18776         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
18777         * genattrtab.c: Include vecprim.h.
18778         (cached_attrs, cached_attr_count, attrs_seen_once,
18779         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
18780         attrs_cached_after): New variables.
18781         (find_attrs_to_cache): New function.
18782         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
18783         (write_test_expr): Add attrs_cached argument, return it too,
18784         attempt to cache non-const attributes used more than once in
18785         a single case handling.
18786         (write_attr_get): Use find_attrs_to_cache, for caching candidates
18787         emit cached_* variables.  Adjust write_attr_set callers.
18788         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
18789         to find attributes that should be cached in this block.  Adjust
18790         write_test_expr callers.
18791         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
18792         callers.
18793         (make_automaton_attrs): Adjust write_test_expr caller.
18794
18795         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
18796         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
18797         (make_automaton_attrs): If find_tune_attr returns non-NULL,
18798         write separate internal_dfa_insn_code_* and insn_default_latency_*
18799         functions for each attribute's value and emit init_sched_attrs
18800         function and function pointers.
18801         * genattr.c (const_attrs, reservations): New variables.
18802         (gen_attr): Add const attributes to const_attrs vector.
18803         (check_tune_attr, find_tune_attr): New functions.
18804         (main): Add reservations to reservations vector.  If find_tune_attr
18805         returns true, add prototype for init_sched_attrs and make
18806         internal_dfa_insn_code and insn_default_latency function pointers,
18807         otherwise define init_sched_attrs as dummy macro.
18808         * cfgexpand.c: Include insn-attr.h.
18809         (gimple_expand_cfg): Call init_sched_attrs.
18810
18811         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
18812
18813         PR target/44575
18814         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
18815         va_arg from a set of register save slots into a temporary,
18816         if the container is bigger than type size, do the copying
18817         using smaller mode or using memcpy.
18818
18819         PR bootstrap/44426
18820         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
18821         prototype.
18822         (sel_print_to_dot): Remove macro.
18823         (sel_print): Likewise.  New prototype.
18824         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
18825         (sel_print): New function.
18826
18827 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18828
18829         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
18830         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
18831
18832 2010-06-21  Nick Clifton  <nickc@redhat.com>
18833
18834         * config/rx/rx.h (PTRDIFF_TYPE): Define.
18835         (SMALL_REGISTER_CLASS): Define (to zero).
18836         (PRINT_OPERAND): Delete.
18837         (PRINT_OPERAND_ADDRESS): Delete.
18838         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
18839         (rx_print_operand_address): Delete prototype.
18840         * config/rx/rx.c (rx_print_operand): Make static.
18841         Allow %H and %L to handle CONST_DOUBLEs.
18842         (rx_print_operand_address): Make static.
18843         (rx_gen_move_template): Rename local variable 'template' to
18844         out_template.
18845         (rx_function_arg): Do not pass unknown sized objects in registers.
18846         (TARGET_PRINT_OPERAND): Define.
18847         (TARGET_PRINT_OPERAND_ADDRESS): Define.
18848
18849 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
18850
18851         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
18852
18853 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
18854
18855         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
18856         stack-alignment for simple leaf-functions.
18857
18858 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
18859
18860         * doc/install.texi: Document bootstrap-lto.
18861
18862 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
18863
18864         PR debug/44248
18865         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
18866         (input_function): Drop them here, if VTA is disabled.
18867
18868 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
18869
18870         PR target/44546
18871         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
18872         New predicate.
18873         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
18874         ix86_swapped_fp_comparsion_operator instead of
18875         ix86_fp_comparison_operator.
18876
18877         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
18878         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
18879         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
18880         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
18881         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
18882         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
18883
18884 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
18885
18886         PR other/32998
18887         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
18888         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
18889         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
18890         (decode_cmdline_option): Update for this return value.  Set
18891         orig_option_with_args_text field.  Set arg field for unknown
18892         options.  Make static.
18893         (decode_cmdline_options_to_array): New.
18894         (prune_options): Update handling of find_opt return value.
18895         * opts.c (read_cmdline_option): Take decoded option.  Return void.
18896         (read_cmdline_options): Take decoded options.
18897         (decode_options): Add parameters for decoded options.  Use
18898         decode_cmdline_options_to_array.  Use decoded options for -O
18899         scan.  Use integral_argument for -O parameters.  Update call to
18900         read_cmdline_options.
18901         (enable_warning_as_error): Update handling of find_opt return value.
18902         * opts.h: Update comment on unknown options.
18903         (struct cl_decoded_option): Update comments on opt_index and arg.
18904         Add orig_option_with_args_text.
18905         (decode_cmdline_option): Remove.
18906         (decode_cmdline_options_to_array): Declare.
18907         (decode_options): Update prototype.
18908         * toplev.c (save_argv): Remove.
18909         (save_decoded_options, save_decoded_options_count): New.
18910         (read_integral_parameter): Remove.
18911         (print_switch_values): Use decoded options.
18912         (toplev_main): Don't set save_argv.  Update call to decode_options.
18913         * toplev.h (read_integral_parameter): Remove.
18914         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
18915
18916 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
18917
18918         PR target/44072
18919         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
18920         immediate.
18921         * constraints.md (Pw, Px): New constraints.
18922         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
18923
18924 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
18925
18926         * config/i386/sse.md (fma4modesuffixf4): Removed.
18927         (ssemodesuffixf2s): Likewise.
18928         (ssemodesuffixf4): Likewise.
18929         (ssemodesuffixf2c): Likewise.
18930         (ssescalarmodesuffix2s): Likewise.
18931         (avxmodesuffixf2c): Likewise.
18932         (ssemodesuffix): New.
18933         (ssescalarmodesuffix): Likewise.
18934         Update patterns with ssemodesuffix and ssescalarmodesuffix.
18935
18936 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
18937
18938         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
18939
18940 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18941
18942         * stor-layout.c (debug_rli): Remove unused local variables.
18943
18944 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
18945
18946         PR rtl-optimization/40900
18947         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
18948         original expression for later reuse.
18949         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
18950         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
18951
18952 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
18953
18954         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
18955         double_int_fits_in_uhwi_p): Implement as static inline.
18956         (double_int_xor): New inline function.
18957         (double_int_lrotate, double_int_rrotate, double_int_max,
18958         double_int_umax, double_int_smax, double_int_min, double_int_umin,
18959         double_int_smin): Declare.
18960         (lrotate_double, rrotate_double): Remove declaration.
18961         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
18962         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
18963         (double_int_lrotate, double_int_rrotate, double_int_max,
18964         double_int_umax, double_int_smax, double_int_min, double_int_umin,
18965         double_int_smin): New function.
18966         * fold-const.c (int_const_binop): Clean up, use double_int_*
18967         functions.
18968         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
18969         double_int_* and immed_double_int_const functions.
18970
18971 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
18972
18973         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
18974         * function.c (types_used_by_cur_var_decl): Likewise.
18975         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
18976
18977 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
18978
18979         * tree.h (record_layout_info): Change type of pending_statics field
18980         to a VEC.
18981         * stor-layout.c (start_record_layout): Store NULL into
18982         pending_statics.
18983         (debug_rli): Call debug_vec_tree instead of debug_tree.
18984         (place_field): Likewise.
18985         (finish_record_layout): Likewise.
18986
18987 2010-06-18  Alan Modra  <amodra@gmail.com>
18988
18989         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
18990
18991 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18992
18993         PR target/43740
18994         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
18995         for SET source operand from SET destination operand.
18996
18997 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
18998
18999         PR rtl-optimization/39871
19000         * reload1.c (init_eliminable_invariants): For flag_pic, disable
19001         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
19002         (function_invariant_p): Rule out a plus of frame or arg pointer with
19003         a SYMBOL_REF.
19004         * ira.c (find_reg_equiv_invariant_const): Likewise.
19005
19006 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
19007
19008         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
19009         print_operand_address and puts to output the operand for CONST.
19010
19011 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
19012
19013         PR debug/44572
19014         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
19015         hook.
19016
19017 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19018
19019         * v850-protos.h (print_operand): Delete.
19020         (print_operand_address): Delete.
19021         * v850.h (PRINT_OPERAND): Delete.
19022         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19023         (PRINT_OPERAND_ADDRESS): Delete.
19024         * v850.c (print_operand_address): Rename to...
19025         (v850_print_operand_address): ...this.  Make static. Call
19026         v850_print_operand.
19027         (print_operand): Rename to...
19028         (v850_print_operand): ...this.  Make static.  Call
19029         v850_print_operand_address.
19030         (v850_print_operand_punct_valid_p): New function.
19031         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19032         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19033
19034 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19035
19036         * config/sh/sh-protos.h (print_operand): Delete.
19037         (print_operand_address): Delete.
19038         * config/sh/sh.h (PRINT_OPERAND): Delete.
19039         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19040         (PRINT_OPERAND_ADDRESS): Delete.
19041         * config/sh/sh.c (sh_print_operand_address): Make static.
19042         (sh_print_operand): Make static.  Call sh_print_operand_address
19043         and sh_print_operand.
19044         (sh_print_operand_punct_valid_p): New function.
19045         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19046         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19047
19048 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19049
19050         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
19051         (mcore_print_operand_address): Delete.
19052         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
19053         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19054         (PRINT_OPERAND_ADDRESS): Delete.
19055         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
19056         (mcore_print_operand): Make static.
19057         (mcore_print_operand_punct_valid_p): New function.
19058         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
19059         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
19060
19061 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19062
19063         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
19064         (print_operand_address): Delete.
19065         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
19066         (PRINT_OPERAND_ADDRESS): Delete.
19067         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
19068         static.
19069         (m68hc11_print_operand): Make static.
19070         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
19071
19072 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19073
19074         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
19075         (m32r_print_operand_address): Delete.
19076         * config/m32r/m32r.h (m32r_punct_chars): Delete.
19077         (PRINT_OPERAND): Delete.
19078         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19079         (PRINT_OPERAND_ADDRESS): Delete.
19080         * config/m32r/m32r.c (m32r_punct_chars): Make static.
19081         (m32r_print_operand_address): Make static.
19082         (m32r_print_operand): Make static.
19083         (m32r_print_operand_punct_valid_p): New function.
19084         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19085         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19086
19087 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19088
19089         * config/iq2000/iq2000-protos.h (print_operand): Delete.
19090         (print_operand_address): Delete.
19091         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
19092         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19093         (PRINT_OPERAND_ADDRESS): Delete.
19094         (iq2000_print_operand_punct): Delete.
19095         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
19096         (iq2000_print_operand_address): Make static.
19097         (iq2000_print_operand): Make static.
19098         (iq2000_print_operand_punct_valid_p): New function.
19099         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19100         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19101
19102 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19103
19104         * config/frv/frv-protos.h (frv_print_operand): Delete.
19105         (frv_print_operand_address): Delete.
19106         * config/frv/frv.h (PRINT_OPERAND): Delete.
19107         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19108         (PRINT_OPERAND_ADDRESS): Delete.
19109         * config/frv/frv.c (frv_print_operand_address): Make static.
19110         (frv_print_operand): Make static.
19111         (frv_print_operand_punct_valid_p): New function.
19112         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19113         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19114
19115 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
19116
19117         * tree.h (vec_member): Declare.
19118         * tree.c (vec_member): Define.
19119
19120 2010-06-17  Richard Guenther  <rguenther@suse.de>
19121
19122         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
19123         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
19124
19125 2010-06-17  Richard Guenther  <rguenther@suse.de>
19126
19127         * tree-inline.c (declare_return_variable): Remove bogus code.
19128
19129 2010-06-17  Richard Guenther  <rguenther@suse.de>
19130
19131         * gimplify.c (gimplify_bind_expr): Always promote complex
19132         and vector variables to registers if possible.
19133
19134 2010-06-17  Richard Guenther  <rguenther@suse.de>
19135
19136         * expr.c (get_inner_reference): Use double_int for bit_offset
19137         calculation.
19138
19139 2010-06-16  DJ Delorie  <dj@redhat.com>
19140
19141         * common.opt (-fstrict-volatile-bitfields): new.
19142         * doc/invoke.texi: Document it.
19143         * fold-const.c (optimize_bit_field_compare): For volatile
19144         bitfields, use the field's type to determine the mode, not the
19145         field's size.
19146         * expr.c (expand_assignment): Likewise.
19147         (get_inner_reference): Likewise.
19148         (expand_expr_real_1): Likewise.
19149         * expmed.c (store_fixed_bit_field): Likewise.
19150         (extract_bit_field_1): Likewise.
19151         (extract_fixed_bit_field): Likewise.
19152
19153 2010-06-16  Richard Guenther  <rguenther@suse.de>
19154
19155         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
19156
19157 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
19158
19159         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
19160         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
19161         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
19162         * debug.c: Likewise.
19163         * sdbout.c: Likewise.
19164         * vmsdbgout.c: Likewise.
19165         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
19166         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
19167         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
19168         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
19169         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
19170         * dwarf2out.c (dw_fde_struct): New fields
19171         dw_fde_vms_{end,begin}_prologue.
19172         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
19173         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
19174         (dwarf2out_vms_end_prologue): New function.
19175         (dwarf2out_vms_begin_epilogue): New function.
19176         (dw_val_struct): New value dw_val_class_vms_delta.
19177         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
19178         begin_epilogue for VMS.
19179         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
19180         new static functions.
19181         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
19182         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
19183         static functions.
19184         (print_die): New case dw_val_class_vms_delta.
19185         (attr_checksum): Likewise.
19186         (same_dw_val_p: Likewise.
19187         (size_of_die): Likewise.
19188         (value_format): Likewise.
19189         (output_die): Likewise.
19190         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
19191         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
19192         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
19193         dwarf2out_cfi_begin_epilogue
19194         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
19195
19196 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
19197
19198         * config/cris/cris-protos.h (cris_print_operand): Delete.
19199         (cris_print_operand_address): Delete.
19200         * config/cris/cris.h (PRINT_OPERAND): Delete.
19201         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19202         (PRINT_OPERAND_ADDRESS): Delete.
19203         * config/cris/cris.c (cris_print_operand_address): Make static.
19204         (cris_print_operand): Make static.
19205         (cris_print_operand_punct_valid_p): New function.
19206         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19207         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19208
19209 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
19210
19211         * config/arm/arm-protos.h (arm_print_operand): Delete.
19212         (arm_print_operand_address): Delete.
19213         * config/arm/arm.h (PRINT_OPERAND): Delete.
19214         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
19215         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
19216         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
19217         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
19218         (arm_print_operand): Make static.
19219         (arm_print_operand_punct_valid_p): New function.
19220         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
19221         (TARGET_PRINT_OPERAND_ADDRESS): Define.
19222
19223 2010-06-16  Nick Clifton  <nickc@redhat.com>
19224
19225         * config/rx/constraints.md (NEGint4): New constraint.
19226         * config/rx/rx.md (attr cc): Add set_zsc.
19227         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
19228         initialised.
19229         (cmpsf): Likewise.
19230         (call_internal): Clobber the cc0 register.
19231         (call_value_internal): Likewise.
19232         (cstoresi4): Likewise.
19233         (movsieq): Likewise.
19234         (movsine): Likewise.
19235         (addsi3): Add alternative to handle small negative constants.
19236         (sunsi3): Likewise.
19237         (addsi3): Do not set the O bit in the cc0 register.
19238         (adddi3): Likewise.
19239         (subsi3): Likewise.
19240         (subdi3): Likewise.
19241         (andsi3): Reorder alternatives to prefer shorter forms.
19242         (mulsi3): Likewise.
19243         (iorsi3): Likewise.
19244         (negsi2): Note that the cc0 flags are set.
19245         (rotlsi3): Note that only the Z and S bits are set in cc0.
19246         (lshrsi3): Likewise.
19247         (ashlsi3): Likewise.
19248         (subsf3): Use %Q for the MEM operand.
19249         (fix_truncsfsi2): Likewise.
19250         (floatsisf2): Likewise.
19251         (bitset): Remove early clobber from destination.
19252         (bitset_in_memory): Likewise.
19253         (lrintsf2): Clobber the cc0 register.
19254         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
19255         (rx_print_operand): Handle %N.
19256
19257 2010-06-16  Jan Hubicka  <jh@suse.cz>
19258
19259         * df-core.c (df_compact_blocks): Free problem_temps vector.
19260
19261 2010-06-16  Martin Jambor  <mjambor@suse.cz>
19262
19263         PR tree-optimization/43905
19264         * tree-sra.c: Include tree-inline.h.
19265         (create_abstract_origin): Removed.
19266         (modify_function): Version the call graph node instead of creating
19267         abstract origins and dealing with same_body aliases.
19268         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
19269         function is versionable.
19270         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
19271
19272 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
19273
19274         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
19275         (CHOOSE_DYNAMIC_LINKER): Update.
19276
19277 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
19278
19279         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
19280         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
19281         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
19282         *prefetch_3dnow_rex.
19283
19284 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
19285
19286         * target.h (struct asm_out):Add declare_constant_name field.
19287         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19288         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
19289         * output.h (default_asm_declare_constant_name): Declare.
19290         (assemble_label): Update prototype.
19291         * varasm.c (assemble_constant_contents): Use
19292         targetm.asm_out.declare_constant_name target hook.
19293         (assemble_label): Add 'file' argument.
19294         (default_asm_declare_constant_name): New function.
19295         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
19296         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
19297         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
19298
19299         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
19300         * config/darwin.c (darwin_asm_declare_constant_name): New function.
19301         (machopic_output_indirection): Update assemble_label argument list.
19302         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
19303         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19304
19305 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
19306
19307         PR middle-end/44391
19308         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19309         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
19310
19311 2010-06-15  Richard Guenther  <rguenther@suse.de>
19312
19313         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
19314
19315 2010-06-15  Paul Brook  <paul@codesourcery.com>
19316
19317         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
19318         hard-float ABI.
19319
19320 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
19321
19322         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
19323         don't get a vector type for output.
19324
19325 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
19326
19327         PR fortran/44536
19328         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
19329         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
19330         (LANG_HOOKS_DECLS): Add it.
19331         * gimplify.c (omp_notice_variable): Call
19332         lang_hooks.decls.omp_report_decl.
19333
19334 2010-06-15  Martin Jambor  <mjambor@suse.cz>
19335
19336         PR lto/44464
19337         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
19338         on the newly dead SSA name.
19339
19340 2010-06-15  Alan Modra  <amodra@gmail.com>
19341
19342         * doc/invoke.texi: Add mcmodel to powerpc options.
19343         * configure.ac: Add HAVE_LD_LARGE_TOC test.
19344         * configure: Regenerate.
19345         * config.in: Regenerate.
19346         * config/rs6000/linux64.opt (mcmodel): New.
19347         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
19348         (TARGET_CMODEL, SET_CMODEL): Define.
19349         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
19350         select CMODEL_MEDIUM default.
19351         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
19352         (TARGET_CMODEL): Define default.
19353         * config/rs6000/rs6000.c (cmodel): New variable.
19354         (rs6000_explicit_options): Add cmodel field.
19355         (rs6000_handle_option): Handle -mcmodel.
19356         (create_TOC_reference): Add largetoc_reg param.  Generate high,
19357         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
19358         (rs6000_delegitimize_address): Recognise new toc reference rtl
19359         and minimal-toc rtl.
19360         (rs6000_legitimize_reload_address): Handle new toc references.
19361         (print_operand_address): Handle legitimate_constant_pool_address_p
19362         match before lo_sum.
19363         (rs6000_eliminate_indexed_memrefs): Tidy.
19364         (rs6000_emit_move): Tweak threshold for inlining constants.
19365         Keep rs6000_emit_allocate_stack large stack frame offsets
19366         loaded into r0 inline.
19367         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
19368         (tocrel_base, tocrel_offset): New variables.
19369         (toc_relative_expr_p): Set them here.
19370         (print_operand_address): Skip over any offset on constant pool address.
19371         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
19372         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
19373         (offsettable_ok_by_alignment): New function.
19374         (rs6000_emit_move): Address suitably aligned local symbol_refs
19375         relative to the toc pointer for -mcmodel=medium.
19376         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
19377         strict param.  Allow lo_sum version of addressing.  Verify reg
19378         used for -mminimal-toc and -mcmodel != small.  Update all callers.
19379         * config/rs6000/constraints.md: Update for above change.
19380         * config/rs6000/predicates.md: Likewise.
19381         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
19382         code.
19383         (tls_gd): Split for -mcmodel=medium/large.
19384         (tls_gd_high, tls_gd_low): New.
19385         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
19386         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
19387         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
19388         (largetoc_high, largetoc_low): New.
19389         (cmptf_internal2): Add clobber.
19390         * config/rs6000/rs6000-protos.h: Update.
19391
19392 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
19393
19394         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
19395         true if no prefetch is going to be generated for a given group.
19396         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
19397         estimate the prefetch_count.
19398         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
19399         prefetch count by considering the unroll_factor and prefetch_mod
19400         for is_loop_prefetching_profitable.
19401
19402 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
19403
19404         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
19405         anything if the argument is not a MEM.
19406
19407 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
19408
19409         PR debug/43650
19410         PR debug/44181
19411         PR debug/44247
19412         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
19413         debug stmts.
19414         (canonicalize_loop_ivs): Likewise.
19415
19416 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
19417
19418         PR debug/43656
19419         * haifa-sched.c (setup_insn_reg_pressure_info,
19420         update_register_pressure): Reject debug insns.
19421         (ready_sort): Don't setup reg pressure for debug insns.
19422         (schedule_insn): Don't update reg pressure for debug insns.
19423
19424 2010-06-14  Richard Guenther  <rguenther@suse.de>
19425
19426         * lto-streamer.c (cached_bp): Remove.
19427         (bitpack_delete): Likewise.
19428         (bitpack_create): Likewise.
19429         (bp_get_next_word): Likewise.
19430         (bp_pack_value, bp_unpack_value): Move ...
19431         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
19432         Re-implement.
19433         (struct bitpack_d): Likewise.
19434         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
19435         New inline functions.
19436         * lto-streamer-out.c (lto_output_bitpack): Remove.
19437         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
19438         (pack_value_fields): Adjust.
19439         (lto_write_tree): Likewise.
19440         (output_gimple_stmt): Likewise.
19441         (output_function): Likewise.
19442         * lto-streamer-in.c (input_gimple_stmt): Adjust.
19443         (input_function): Likewise.
19444         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
19445         (lto_input_bitpack): Remove.
19446         (lto_materialize_tree): Adjust.
19447         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
19448         * lto-cgraph.c (lto_output_edge): Adjust.
19449         (lto_output_node): Likewise.
19450         (lto_output_varpool_node): Likewise.
19451         (lto_output_ref): Likewise.
19452         (input_node): Likewise.
19453         (input_varpool_node): Likewise.
19454         (input_ref): Likewise.
19455         (input_edge): Likewise.
19456         (output_node_opt_summary): Likewise.
19457         (input_node_opt_summary): Likewise.
19458         * ipa-pure-const.c (pure_const_write_summary): Likewise.
19459         (pure_const_read_summary): Likewise.
19460         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
19461         (ipa_read_indirect_edge_info): Likewise.
19462         (ipa_write_node_info): Likewise.
19463         (ipa_read_node_info): Likewise.
19464
19465 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
19466
19467         PR target/44534
19468         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
19469         (vec_extract_lo_v16hi): Likewise.
19470         (vec_extract_lo_v32qi): Likewise.
19471
19472 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
19473
19474         PR bootstrap/44426
19475         * tree.h (build_call_expr): Don't define as vararg macro, instead
19476         add a prototype.
19477         * builtins.c (build_call_nofold): Remove.
19478         (expand_builtin_int_roundingfn, expand_builtin_pow,
19479         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
19480         expand_builtin_memset_args, expand_builtin_strcmp,
19481         expand_builtin_strncmp, expand_builtin_memory_chk): Use
19482         build_call_nofold_loc instead of build_call_nofold.
19483         (build_call_expr): New function.
19484
19485         PR tree-optimization/44508
19486         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
19487         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
19488         don't eliminate trivially dead stmts.
19489         * tree-vrp.c (vrp_finalize): Pass false as last argument
19490         to substitute_and_fold.
19491         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
19492         to substitute_and_fold.
19493         * tree-ssa-ccp.c (ccp_finalize): Likewise.
19494
19495         PR bootstrap/44509
19496         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
19497
19498 2010-06-14  Ira Rosen  <irar@il.ibm.com>
19499
19500         PR tree-optimization/44507
19501         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
19502         to build initial vector for BIT_AND_EXPR.
19503         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
19504
19505 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
19506
19507         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
19508         adjust z10prop set_attr.
19509
19510 2010-06-13  Jan Hubicka  <jh@suse.cz>
19511
19512         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
19513         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
19514         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
19515         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
19516         datastructure checks into checking asserts.
19517         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
19518         * tree-ssa-sccvn.c (VN_INFO): Likewise.
19519         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
19520         df_ref_create_structure): Likewise.
19521         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
19522         pool_free): Use gcc_checking_assert.
19523         * alias.c (get_alias_set): Likewise.
19524         * var-tracking.c (variable_htab_free, shared_hash_copy,
19525         canonicalize_values_mark, variable_merge_over_cur): Likewise.
19526         * lto-streamer.c (bp_unpack_value): Likewise.
19527
19528 2010-06-13  Richard Guenther  <rguenther@suse.de>
19529
19530         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
19531         Do not stream but initialize TYPE_CANONICAL to NULL.
19532         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
19533         * gimple.c (gimple_types_compatible_p): Disregard
19534         TYPE_STRUCTURAL_EQUALITY_P.
19535         (gimple_register_type): Use TYPE_CANONICAL as cache.
19536         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
19537         before registering common types.
19538         * config/i386/i386.c (ix86_function_arg_boundary): Do not
19539         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
19540         * tree.h (TYPE_CANONICAL): Clarify documentation.
19541
19542 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
19543
19544         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19545         LIBCALL_VALUE): Remove macros.
19546         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
19547         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19548         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19549         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
19550         (ia64_function_value): Make static. Handle receiving the function
19551         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
19552
19553 2010-06-12  Jan Hubicka  <jh@suse.cz>
19554
19555         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
19556         at correct place.
19557
19558 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
19559
19560         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
19561
19562 2010-06-12  Jan Hubicka  <jh@suse.cz>
19563
19564         * df-core.c (df_clear_bb_info): New function.
19565         (df_set_blocks): bb_info is always allocated.
19566         (df_get_bb_info): Use block_info_elt_size.
19567         (df_set_bb_info): Likewise.
19568         (df_compact_blocks): Update for new block_info.
19569         (grow_bb_info): New function.
19570         * df-problems.c (df_grow_bb_info): Move to df-core.c
19571         (df_rd_set_bb_info): Remove.
19572         (df_rd_free_bb_info): Do not free block pool.
19573         (df_rd_alloc): Do not create pool, use check for
19574         obstack presence instead of NULL pointer for new blocks.
19575         (df_rd_free): DO not free alloc pool; clear block_info.
19576         (problem_RD): Add size of block info structure.
19577         (df_lr_set_bb_info): Remove.
19578         (df_lr_free_bb_info): Do not free block pool.
19579         (df_lr_alloc): Do not create pool, use check for
19580         obstack presence instead of NULL pointer for new blocks.
19581         (df_lr_free): DO not free alloc pool; clear block_info.
19582         (problem_LR): Add size of block info structure.
19583         (df_live_set_bb_info): Remove.
19584         (df_live_free_bb_info): Do not free block pool.
19585         (df_live_alloc): Do not create pool, use check for
19586         obstack presence instead of NULL pointer for new blocks.
19587         (df_live_free): DO not free alloc pool; clear block_info.
19588         (problem_LIVE): Add size of block info structure.
19589         (problem_CHAIN): Add size of block info structure.
19590         (df_byte_lr_set_bb_info): Remove.
19591         (df_byte_lr_free_bb_info): Do not free block pool.
19592         (df_byte_lr_alloc): Do not create pool, use check for
19593         obstack presence instead of NULL pointer for new blocks.
19594         (df_byte_lr_free): DO not free alloc pool; clear block_info.
19595         (problem_BYTE_LR): Add size of block info structure.
19596         (problem_NOTE): Add size of block info structure.
19597         (df_byte_MD_set_bb_info): Remove.
19598         (df_byte_MD_free_bb_info): Do not free block pool.
19599         (df_byte_MD_alloc): Do not create pool, use check for
19600         obstack presence instead of NULL pointer for new blocks.
19601         (df_byte_MD_free): DO not free alloc pool; clear block_info.
19602         (problem_BD): Add size of block info structure.
19603         * df-scan.c (df_scan_free_internal): Free block pool.
19604         (df_scan_set_bb_info): Remove.
19605         (df_scan_free_bb_info): Check for artificial_defs instead
19606         of bb_info being non-NULL.
19607         (df_scan_alloc): DO not create df_scan_block pool.
19608         (problem_SCAN): Set size of block info.
19609         (df_bb_refs_record): Do not allocate bb_info.
19610         * df.h (df_problem): Add block_info_elt_size.
19611         (struct dataflow): Change block_info to void *.
19612         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
19613         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
19614         in-line structures.
19615
19616 2010-06-12  Jan Hubicka  <jh@suse.cz>
19617
19618         PR tree-optimize/44485
19619         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
19620         containing use of return value of noreturn function.
19621
19622 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
19623
19624         * targhooks.c (default_function_value): Don't use
19625         FUNCTION_OUTGOING_VALUE.
19626         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
19627         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
19628
19629 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
19630
19631         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
19632         Add crtfastmath.o to extra_parts.
19633         * config/mips/crtfastmath.c: New.
19634         * config/mips/linux.h (ENDFILE_SPEC): New.
19635
19636 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
19637
19638         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
19639         old_type in parameter.
19640         (gcc_type_for_value): Update call to gcc_type_for_interval.
19641         (compute_type_for_level_1): Renamed compute_type_for_level.
19642         Update call to gcc_type_for_interval.
19643
19644 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
19645
19646         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
19647         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
19648
19649 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
19650
19651         * opts-common.c: Include options.h.
19652         (integral_argument): Move from opts.c.
19653         (decode_cmdline_option): New.  Based on read_cmdline_option.
19654         * opts.c (integral_argument): Move to opts-common.c.
19655         (read_cmdline_option): Move most contents to
19656         decode_cmdline_option.  Use %qs in diagnostics.
19657         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
19658         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
19659         decode_cmdline_option): New.
19660
19661 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
19662
19663         PR target/44481
19664         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
19665         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
19666         (partiysi2_cmp): Ditto.
19667         (*partiyhi2_cmp): Ditto.
19668         (*parityqi2_cmp): Remove.
19669
19670 2010-06-11  Jan Hubicka  <jh@suse.cz>
19671
19672         * bitmap.h (bmp_iter_next_bit): New.
19673         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
19674
19675 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
19676             Eric Botcazou  <ebotcazou@adacore.com>
19677
19678         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
19679         computed cost.
19680
19681 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
19682
19683         * config/i386/i386.md (unspec): New define_c_enum.
19684         (unspecv): Ditto.
19685
19686 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
19687
19688         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
19689
19690 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
19691
19692         PR middle-end/44483
19693         * tree-if-conv.c (bb_predicate_s): New struct.
19694         (bb_predicate_p): New.
19695         (bb_has_predicate): New.
19696         (bb_predicate): New.
19697         (set_bb_predicate): New.
19698         (bb_predicate_gimplified_stmts): New.
19699         (set_bb_predicate_gimplified_stmts): New.
19700         (add_bb_predicate_gimplified_stmts): New.
19701         (init_bb_predicate): New.
19702         (free_bb_predicate): New.
19703         (is_predicated): Use bb_predicate.
19704         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
19705         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
19706         before processing their successors.
19707         (clean_predicate_lists): Removed.
19708         (find_phi_replacement_condition): Use bb_predicate.
19709         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
19710         computations.
19711         (insert_gimplified_predicates): New.
19712         (combine_blocks): Call insert_gimplified_predicates.
19713         (tree_if_conversion): Call free_bb_predicate instead of
19714         clean_predicate_lists.
19715
19716 2010-10-11  Paul Brook  <paul@codesourcery.com>
19717
19718         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
19719         * config/arm/arm.c (all_architectures): Change v7e-m default to
19720         cortexm4.
19721         * config/arm/arm-cores.def: Add cortex-m4.
19722         * config/arm/arm-tune.md: Regenerate.
19723
19724 2010-06-11  Jan Hubicka  <jh@suse.cz>
19725
19726         * ipa-pure-const.c (special_builtlin_state): New function.
19727         (check_call): Use it instead of special casign BUILT_IN_RETURN.
19728         (propagate_pure_const): Use it.
19729
19730 2010-06-11  Jan Hubicka  <jh@suse.cz>
19731
19732         * df-problems.c (df_live_scratch): Convert to bitmap_head.
19733         (df_live_alloc): Initialize df_live_scratch when initializing
19734         problem_data.
19735         (df_live_transfer_function): Update uses of df_live_scratch.
19736         (df_live_free): Free problem_data; clear df_live_scratch before
19737         releasing the obstack.
19738         (df_md_free): Free problem data.
19739
19740 2010-06-11  Jan Hubicka  <jh@suse.cz>
19741
19742         * doc/invoke.texi (Wsuggest-attribute): Document.
19743         (Wmissing-noreturn): Remove.
19744         * ipa-pure-const.c (warn_function_noreturn): New function.
19745         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
19746         warn_missing_noreturn.
19747         * common.opt (Wsuggest-attribute=noreturn): New.
19748         * tree-flow.h (warn_function_noreturn): Declare.
19749         * tree-cfg.c (execute_warn_function_noreturn): Use
19750         warn_function_noreturn.
19751         (gate_warn_function_noreturn): New.
19752         (pass_warn_function_noreturn): Update.
19753
19754 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19755
19756         * c-typeck.c (handle_warn_cast_qual): Add loc
19757         parameter. Improve warning message.
19758         (build_c_cast): Pass location to handle_warn_cast_qual.
19759
19760 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
19761
19762         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
19763         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
19764         insn mnemonic.
19765         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
19766
19767 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
19768
19769         Fix bootstap on mips
19770         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
19771         be naming typedefs.
19772
19773 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
19774
19775         * system.h (helper_const_non_const_cast): New inline for
19776         gcc version <= 4.0.
19777         (CONST_CAST2): For gcc version <= 4.0 use
19778         new helper to do const/non-const casting.
19779
19780 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19781
19782         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
19783         * Makefile.in (OBJS-common): Include insn-enums.o.
19784         (insn-enums.o): New rule.
19785         (simple_generated_c): Add insn-enums.c.
19786         (build/genenums.o): New rule.
19787         (genprogmd): Add "enums".
19788         * genconstants.c (print_enum_type): Declare a C string array
19789         for each enum.
19790         * genenums.c: New file.
19791         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
19792         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
19793         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
19794
19795 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19796
19797         * doc/md.texi (define_enum_attr): Document.
19798         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
19799         * read-md.h (lookup_enum_type): Declare.
19800         * read-md.c (lookup_enum_type): New function.
19801         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
19802         * genattrtab.c (attr_desc): Add an enum_name field.
19803         (evaluate_eq_attr): Take the associated attribute as argument.
19804         Get the enum prefix from the enum_name field, if defined.
19805         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
19806         (simplify_test_exp): Pass attr to evaluate_eq_attr.
19807         (add_attr_value): New function, split out from...
19808         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
19809         (write_test_expr): Pass attr to evaluate_eq_attr.
19810         (write_attr_get): Use the enum_name as the enum tag, if defined.
19811         (write_attr_valueq): Use the enum_name as a prefix, if defined.
19812         (find_attr): Initialize enum_name.
19813         (main): Handle DEFINE_ENUM_ATTR.
19814         * gensupport.c (process_rtx): Likewise.
19815         * config/mips/mips.h (mips_tune_attr): Delete.
19816         * config/mips/mips.md (cpu): Use define_attr_enum.
19817
19818 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19819
19820         * doc/md.texi (define_c_enum, define_enum): Document.
19821         * read-md.h (md_constant): Add a parent_enum field.
19822         (enum_value, enum_type): New structures.
19823         (upcase_string, traverse_enum_types): Declare.
19824         * read-md.c (enum_types): New variable.
19825         (upcase_string, add_constant): New functions.
19826         (handle_constants): Don't create the hash table here.
19827         Use add_constant.
19828         (traverse_md_constants): Don't check for a null md_constants.
19829         (decimal_string, handle_enum, traverse_enum_types): New functions.
19830         (read_md_files): Initialize md_constants and md_enums.
19831         * genconstants.c (print_md_constant): Ignore info argument.
19832         Only print constants that belong to no enum.
19833         (print_enum_type): New function.
19834         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
19835         for each defined enum type.
19836         * config/mips/mips.md (processor): New define_enum.
19837         (unspec): New define_c_enum.
19838         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
19839         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
19840         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
19841         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
19842         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
19843         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
19844         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
19845         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
19846         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
19847         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
19848         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
19849         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
19850         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
19851         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
19852         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
19853         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
19854         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
19855         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
19856         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
19857         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
19858         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
19859         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
19860         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19861         (UNSPEC_RDDSP): Move to mips-dsp.md.
19862         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
19863         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
19864         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
19865         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
19866         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
19867         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
19868         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
19869         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
19870         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
19871         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
19872         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
19873         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
19874         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
19875         Moved to mips-dspr2.md.
19876         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
19877         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
19878         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
19879         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
19880         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
19881         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
19882         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19883         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19884         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19885         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19886         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19887         UNSPEC_LOONGSON_PSADBH)
19888         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19889         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19890         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
19891         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19892         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19893         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19894         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
19895         (cpu): Update comment.
19896         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
19897         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
19898         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
19899         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
19900         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
19901         UNSPEC_LOONGSON_PCMPEQ)
19902         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
19903         UNSPEC_LOONGSON_PINSR_0)
19904         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19905         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19906         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19907         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19908         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19909         UNSPEC_LOONGSON_PSADBH)
19910         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19911         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19912         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
19913         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19914         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19915         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19916         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
19917         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
19918         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
19919         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
19920         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
19921         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
19922         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
19923         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
19924         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
19925         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
19926         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
19927         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
19928         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
19929         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
19930         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
19931         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
19932         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
19933         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
19934         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
19935         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
19936         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19937         (UNSPEC_RDDSP): Moved from mips.md.
19938         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
19939         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
19940         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
19941         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
19942         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
19943         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
19944         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
19945         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
19946         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
19947         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
19948         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
19949         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
19950         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
19951         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
19952         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
19953         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
19954         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
19955         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
19956         (UNSPEC_SCC): Moved from mips.md.
19957         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
19958         "processor_type" to "processor".
19959         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
19960         * config/mips/mips.h (processor_type): Delete.
19961         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
19962         "processor_type" to "processor".
19963
19964 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19965
19966         * configure.ac (tm_include_list): Add insn-constants.h.
19967         * configure: Regenerate.
19968         * Makefile.in (GTM_H): Move insn-constants.h here from...
19969         (TM_H): ...here.
19970         * mkconfig.sh: Remove special handling for insn-constants.h.
19971
19972 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
19973
19974         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
19975         (BUILD_MD): ...this new variable.
19976         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
19977         that include the old contents of simple_generated_h and
19978         simple_generated_c.
19979         (simple_generated_h, simple_generated_c): Include them.  Add
19980         insn-constants.h.
19981         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
19982         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
19983         Remove these dependencies from the main rule and include
19984         insn-conditions.md in the command line only if it appears
19985         in the dependency list.
19986         (insn-constants.h, s-constants): Delete.
19987         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
19988         or gensupport.h.
19989         (build/genmddeps.o): Likewise.
19990         (genprogrtl): New variable that contains everything from genprogmd
19991         except mddeps and constants.
19992         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
19993         depend on $(BUILD_MD)
19994         (genprog): New variable.  Make these programs depend on
19995         $(BUILD_ERRORS).
19996         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
19997         (main): Use read_md_files instead of init_rtx_reader_args.
19998         * genconstants.c: As for genmddeps.c.
19999         * read-md.h (read_skip_construct): Declare.
20000         * read-md.c (read_skip_construct): New function.
20001         (handle_file): Allow a null handle_directive, skipping the
20002         construct if so.
20003         (parse_include): Update the comment accordingly.
20004
20005 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20006
20007         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
20008         * genmddeps.c: Include read-md.h.
20009         (main): Call init_rtx_reader_args instead of init_md_reader_args.
20010         * genattr.c (main): Likewise.
20011         * genattrtab.c (main): Likewise.
20012         * genautomata.c (main): Likewise.
20013         * gencodes.c (main): Likewise.
20014         * genconditions.c (main): Likewise.
20015         * genconfig.c (main): Likewise.
20016         * genconstants.c (main): Likewise.
20017         * genemit.c (main): Likewise.
20018         * genextract.c (main): Likewise.
20019         * genflags.c (main): Likewise.
20020         * genopinit.c (main): Likewise.
20021         * genoutput.c (main): Likewise.
20022         * genpeep.c (main): Likewise.
20023         * genrecog.c (main): Likewise.
20024         * genpreds.c (main): Likewise.
20025         * gensupport.h (in_fname): Move to read-md.h.
20026         (init_md_reader_args_cb): Rename to...
20027         (init_rtx_reader_args_cb): ...this and return a bool.
20028         (init_md_reader_args): Rename to...
20029         (init_rtx_reader_args): ...this and return a bool.
20030         (include_callback): Move to read-md.h.
20031         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
20032         (file_name_list, first_dir_md_include): Move to read-md.c
20033         (first_bracket_include): Delete unused variable.
20034         (last_dir_md_include): Move to read-md.c.
20035         (process_include): Delete, moving code to read-md.c:handle_include.
20036         (process_rtx): Don't handle INCLUDE.
20037         (save_string): Delete.
20038         (rtx_handle_directive): New function.
20039         (init_md_reader_args_cb): Rename to...
20040         (init_rtx_reader_args_cb): ...this and return a boolean success value.
20041         Use read_md_args.
20042         (init_md_reader_args): Rename to...
20043         (init_rtx_reader_args): ...this and return a boolean success value.
20044         * rtl.def (INCLUDE): Delete.
20045         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
20046         argument.
20047         * read-rtl.c (read_conditions): Don't gobble ')' here.
20048         (read_mapping): Likewise.
20049         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
20050         Handle top-level non-rtx constructs here rather than in read_rtx_1.
20051         Store the whole queue in *X.  Remove call to init_md_reader.
20052         (read_rtx_1): Rename to...
20053         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
20054         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
20055         here.
20056         (read_nested_rtx): New function.  Handle (nil) here rather than
20057         in read_rtx_code.
20058         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
20059         gobble ')' here.
20060         * read-md.h (directive_handler_t): New type.
20061         (in_fname, include_callback): Moved from read-md.h.
20062         (read_constants, init_md_reader): Delete.
20063         (read_md_files): Declare.
20064         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
20065         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
20066         from gensupport.c.
20067         (read_constants): Rename to...
20068         (handle_constants): ...this.  Don't gobble ')' here.
20069         (handle_include, handle_file, handle_toplevel_file)
20070         (parse_include): New functions, mostly taken from gensupport.c.
20071         (init_md_reader): Subsume into...
20072         (read_md_files): ...this new function.
20073
20074 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20075
20076         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
20077         (unread_char): Decrement read_md_lineno after putting back '\n'.
20078         * read-md.c (fatal_with_file_and_line): Push back any characters
20079         that we decide not to add to the context.
20080         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
20081         fatal_expected_char in cases where '/' ends a line (for example).
20082         (read_name): Don't increment read_md_lineno here.
20083         (read_escape): Likewise.
20084         (read_quoted_string): Likewise.
20085         (read_braced_string): Likewise.
20086
20087 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20088
20089         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
20090         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
20091         * genconstants.c: Include read-md.h.
20092         * read-rtl.c (md_constants): Move to read-md.c.
20093         (md_name): Move to read-md.h.
20094         (initialize_iterators): Use leading_string_hash instead of def_hash
20095         and leading_string_eq_p instead of def_name_eq_p.
20096         (read_name): Move to read-md.c.
20097         (def_hash, def_name_eq_p): Delete.
20098         (read_constants, traverse_md_constants): Move to read-md.c.
20099         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
20100         * read-md.h: Include hashtab.h.
20101         (md_name): Moved from read-rtl.c.
20102         (md_constant): Moved from read-md.h.
20103         (leading_string_hash, leading_string_eq_p, read_name)
20104         (read_constants, traverse_md_constants): Declare.
20105         * read-md.c (md_constants): Moved from read-rtl.c.
20106         (leading_string_hash, leading_string_eq_p): New functions.
20107         (read_name, read_constants, traverse_md_constants): Moved from
20108         read-rtl.c.
20109
20110 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20111
20112         * read-rtl.c (md_name): New structure.
20113         (read_name): Take an md_name instead of a buffer pointer.
20114         Use the "string" field instead of strcpy when expanding constants.
20115         (read_constants): Remove the tmp_char argument.  Update the calls
20116         to read_name, using two local name buffers instead of the tmp_char
20117         argument.  Merge the constant-creation code.
20118         (read_conditions): Remove the tmp_char argument.  Update the calls
20119         to read_name, using a local name buffer instead of the tmp_char
20120         argument.
20121         (read_mapping): Replace tmp_char variable with a local name buffer.
20122         Update the calls to read_name.
20123         (read_rtx_1): Likewise.  Update the calls to read_constants and
20124         read_conditions.
20125
20126 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20127
20128         * Makefile.in (build/read-md.o): Depend on errors.h.
20129         * read-md.h (error_with_line): Declare.
20130         * read-md.c: Include errors.h.
20131         (message_with_line_1): New function, extracted from...
20132         (message_with_line): ...here.
20133         (error_with_line): New function.
20134         * genattrtab.c: If a call to message_with_line is followed by
20135         "have_error = 1;", replace both statements with a call to
20136         error_with_line.
20137         * genoutput.c: Likewise.
20138         * genpreds.c: Likewise.
20139         * genrecog.c: If a call to message_with_line is followed by
20140         "error_count++;", replace both statements with a call to
20141         error_with_line.
20142         (errorcount): Delete.
20143         (main): Don't check it.
20144         * gensupport.c: If a call to message_with_line is followed by
20145         "errors = 1;", replace both statements with a call to error_with_line.
20146         (errors): Delete.
20147         (process_define_cond_exec): Check have_error instead of errors.
20148         (init_md_reader_args_cb): Likewise.  Don't set errors.
20149
20150 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20151
20152         * read-md.h (read_md_file): Declare.
20153         (read_char, unread_char): New functions.
20154         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
20155         (read_quoted_string, read_string): Remove FILE * argument.
20156         * read-md.c (read_md_file): New variable.
20157         (read_md_filename, read_md_lineno): Update comments and remove
20158         unnecessary initialization.
20159         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
20160         (read_escape, read_quoted_string, read_braced_string, read_string):
20161         Remove FILE * argument.  Update calls accordingly, using read_char
20162         and unread_char instead of getc and ungetc.
20163         * rtl.h (read_rtx): Remove FILE * argument.
20164         * read-rtl.c (iterator_group): Remove FILE * argument from
20165         "find_builtin".
20166         (iterator_traverse_data): Remove "infile" field.
20167         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
20168         (add_mapping, read_name, read_constants, read_conditions)
20169         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
20170         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
20171         Remove file arguments from all calls, using read_char and unread_char
20172         instead of getc and ungetc.
20173         * gensupport.c (process_include): Preserve read_md_file around
20174         the include.  Set read_md_file to the handle of the included file.
20175         Update call to read_rtx.
20176         (init_md_reader_args_cb): Set read_md_file to the handle of the file
20177         and remove local FILE *.  Update calls to read_rtx.
20178
20179 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20180
20181         * read-md.h (read_rtx_lineno): Rename to...
20182         (read_md_lineno): ...this.
20183         (read_rtx_filename): Rename to...
20184         (read_md_filename): ...this.
20185         (copy_rtx_ptr_loc): Rename to...
20186         (copy_md_ptr_loc): ...this.
20187         (print_rtx_ptr_loc): Rename to...
20188         (print_md_ptr_loc): ...this.
20189         * read-md.c: Likewise.  Update references after renaming.
20190         (string_obstack): Replace RTL with MD in comment.
20191         (set_rtx_ptr_loc): Rename to...
20192         (set_md_ptr_loc): ...this.
20193         (get_rtx_ptr_loc): Rename to...
20194         (get_md_ptr_loc): ...this.
20195         * genconditions.c: Update references after renaming.
20196         * genemit.c: Likewise.
20197         * genoutput.c: Likewise.
20198         * genpreds.c: Likewise.
20199         * gensupport.c: Likewise.
20200         * read-rtl.c: Likewise.
20201
20202 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
20203
20204         * Makefile.in (READ_MD_H): New variable.
20205         (BUILD_RTL): Add build/read-md.o.
20206         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
20207         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
20208         (build/genattrtab.o, build/genconditions.o build/genemit.o)
20209         (build/genextract.o, build/genflags.o, build/genoutput.o)
20210         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
20211         (build/read-md.o): New rule.
20212         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
20213         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
20214         * coretypes.h: ...here.
20215         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
20216         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
20217         * genattr.c: Include read-md.h.
20218         * genattrtab.c: Likewise.
20219         * genconditions.c: Likewise.
20220         * genemit.c: Likewise.
20221         * genextract.c: Likewise.
20222         * genflags.c: Likewise.
20223         * genoutput.c: Likewise.
20224         * genpreds.c: Likewise.
20225         * genrecog.c: Likewise.
20226         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
20227         (join_c_conditions, print_c_condition, read_rtx_filename)
20228         (read_rtx_lineno): Move to read-md.h.
20229         * read-rtl.c: Include read-md.h.
20230         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
20231         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
20232         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
20233         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
20234         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
20235         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
20236         (read_braced_string, read_string): Move to read-md.c.
20237         (read_rtx): Move some initialization to init_md_reader and call
20238         init_md_reader here.
20239         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
20240         Move to read-md.h.
20241         * gensupport.c: Include read-md.h.
20242         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
20243         * read-md.h, read-md.c: New files.
20244
20245 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
20246
20247         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20248         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20249         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
20250         * config/moxie/moxie.c (moxie_function_value): Make static.
20251         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
20252         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20253
20254 2010-06-10  Martin Jambor  <mjambor@suse.cz>
20255
20256         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
20257         * dbgcnt.def (tree_sra): New counter.
20258         * tree-sra.c: Include dbgcnt.h.
20259         (gate_intra_sra): Check tree_sra debug counter.
20260
20261 2010-06-10  Martin Jambor  <mjambor@suse.cz>
20262
20263         PR tree-optimization/44258
20264         * tree-sra.c (build_access_subtree): Return false iff there is a
20265         partial overlap.
20266         (build_access_trees): Likewise.
20267         (analyze_all_variable_accesses): Disqualify candidates if
20268         build_access_trees returns true for them.
20269
20270 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
20271
20272         PR debug/41371
20273         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
20274         tail-recurse into canonical node.  Fast-forward over
20275         non-canonical VALUEs.
20276
20277 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
20278
20279         PR boostrap/44470
20280         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
20281         (*addsi_1_zext) <TYPE_LEA>: Likewise.
20282         (add lea splitter): Likewise.
20283         (add_zext lea splitter): Likewise.
20284
20285 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
20286
20287         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
20288
20289 2010-06-10  Jan Hubicka  <jh@suse.cz>
20290
20291         * df-problems.c (df_live_problem_data): Add live_bitmaps.
20292         (df_live_alloc): Initialize problem data and live_osbtacks.
20293         (df_live_finalize): Remove obstack, problem data; do not
20294         clear all bitmaps.
20295         (df_live_top_dump, df_live_bottom_dump): Do not dump old
20296         data when not allocated.
20297         (df_live_verify_solution_start): Do not allocate problem data.
20298         (df_live_verify_solution_end): Check if out is allocated.
20299         (struct df_md_problem_data): New structure.
20300         (df_md_alloc): Allocate problem data.
20301         (df_md_free): Free problem data; do not clear bitmaps.
20302
20303 2010-06-10  Jan Beulich  <jbeulich@novell.com>
20304
20305         PR bootstrap/37304
20306         * configure.ac: Replace $() with ${} when intending to expand
20307         variables rather than invoking commands.
20308         * configure: Re-generate.
20309
20310 2010-06-10  Jan Hubicka  <jh@suse.cz>
20311
20312         PR rtl-optimization/44460
20313         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
20314         TYPE_NEEDS_CONSTRUCTING sanity check.
20315
20316 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
20317
20318         * doc/include/fdl.texi: Move to GFDL version 1.3.
20319
20320         * doc/cpp.texi: Move to GFDL version 1.3.
20321         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
20322         * doc/gccint.texi: Move to GFDL version 1.3.
20323         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
20324         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
20325         * doc/invoke.texi: Move to GFDL version 1.3.
20326
20327 2010-06-09  Jan Hubicka  <jh@suse.cz>
20328
20329         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
20330         Break out from ...
20331         (propagate) ... here; swap the order.
20332
20333 2010-06-09  Jan Hubicka  <jh@suse.cz>
20334
20335         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
20336         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
20337         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
20338         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
20339
20340 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
20341
20342         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
20343         Do not the gather memory reference in the outer loop if the step
20344         is not a constant.
20345
20346 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
20347
20348         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
20349         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
20350         8 to 4.  Minor change of the related comments.
20351
20352 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20353
20354         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
20355         the scev analysis when the variable is not used outside the loop
20356         in a close phi node: call compute_overall_effect_of_inner_loop.
20357
20358 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20359
20360         * graphite-sese-to-poly.c (single_pred_cond): Renamed
20361         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
20362         (build_sese_conditions_before): Renamed call to single_pred_cond.
20363         (build_sese_conditions_after): Same.
20364
20365 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
20366
20367         * graphite-poly.h: Fix comments and indentation.
20368         * graphite-sese-to-poly.c: Same.
20369         (build_sese_conditions_before): Compute stmt and gbb only when needed.
20370         * tree-chrec.c: Fix comments and indentation.
20371         (tree-ssa-loop-niter.c): Same.
20372
20373 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
20374
20375         PR rtl-optimization/42461
20376         * dce.c (deletable_insn_p): Return true for const or pure calls again.
20377         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
20378
20379 2010-06-09  Jan Hubicka  <jh@suse.cz>
20380
20381         * bitmap.c (bitmap_and): Walk array forward.
20382         (bitmap_and_compl_into): Likewise.
20383         (bitmap_xor): Likewise.
20384         (bitmap_xor_into):  Likewise.
20385         (bitmap_equal_p): Likewise.
20386         (bitmap_intersect_p): Likewise.
20387         (bitmap_intersect_compl_p): Likewise.
20388         (bitmap_ior_and_into): Likewise.
20389         (bitmap_elt_copy): Likewise.
20390         (bitmap_and_compl): Likewise.
20391         (bitmap_elt_ior): Likewise.
20392
20393 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
20394
20395         * opts-common.c (prune_options): Ensure replacement argv array
20396         is correctly terminated by a NULL entry.
20397
20398 2010-06-09  Jan Hubicka  <jh@suse.cz>
20399
20400         * cgraph.h (varpool_first_static_initializer,
20401         varpool_next_static_initializer): Make checking only when
20402         checking enabled.
20403         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
20404         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
20405         gcc_assert to gcc_checking_assert.
20406         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
20407         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
20408         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
20409         op_iter_init_phiuse, op_iter_init_phidef,
20410         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
20411         gcc_checking_assert.
20412         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
20413         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
20414         partition_is_global, live_on_entry, live_on_exit,
20415         live_merge_and_clear): Likewise.
20416         * system.h (gcc_checking_assert): New macro.
20417         * gimple.h (set_bb_seq): Use gcc_checking_assert.
20418
20419 2010-06-09  Jason Merrill  <jason@redhat.com>
20420
20421         * Makefile.in (TAGS): Collect tags info from c-family.
20422
20423 2010-06-09  Jan Hubicka  <jh@suse.cz>
20424
20425         * gimple.h (gcc_gimple_checking_assert): New macro.
20426         (gimple_set_def_ops, gimple_set_use_ops,
20427         gimple_set_vuse, gimple_set_vdef,
20428         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
20429         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
20430         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
20431         gimple_asm_output_op, gimple_asm_output_op_ptr,
20432         gimple_asm_set_output_op, gimple_asm_clobber_op,
20433         gimple_asm_set_clobber_op, gimple_asm_label_op,
20434         gimple_asm_set_label_op, gimple_try_set_kind,
20435         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
20436         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
20437         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
20438         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
20439         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
20440         gimple_omp_for_set_initial, gimple_omp_for_final,
20441         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
20442         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
20443         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
20444         conditional with ENABLE_GIMPLE_CHECKING.
20445         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
20446
20447 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
20448
20449         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
20450         (get_computation_cost_at): Use it.
20451         (determine_use_iv_cost_condition): Likewise.
20452         (determine_iv_cost): Likewise.
20453
20454 2010-06-09  Richard Guenther  <rguenther@suse.de>
20455
20456         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
20457         replace constants.
20458
20459 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
20460
20461         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
20462
20463 2010-06-09  Martin Jambor  <mjambor@suse.cz>
20464
20465         PR tree-optimization/44423
20466         * tree-sra.c (dump_access): Dump also grp_assignment_read.
20467         (analyze_access_subtree): Pass negative allow_replacements to children
20468         if the current type is scalar.
20469
20470 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
20471
20472         PR testsuite/42843
20473         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
20474         * doc/plugins.texi (Plugin license check): Update information
20475         on type of plugin_is_GPL_compatible.
20476         * Makefile.in (PLUGINCC): Define as $(COMPILER).
20477         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
20478
20479 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
20480
20481         * config/arm/arm.c (thumb2_reorg): New function.
20482         (arm_reorg): Call it.
20483         * config/arm/thumb2.md (define_peephole2 for flag clobbering
20484         arithmetic operations): Delete.
20485
20486 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
20487
20488         PR target/44067
20489         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
20490         e500v2 target.
20491
20492 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
20493
20494         PR plugins/44459
20495         * gcc-plugin.h: Encapsulate all declarations in extern "C".
20496
20497 2010-06-08  Jan Hubicka  <jh@suse.cz>
20498
20499         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
20500         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
20501
20502 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
20503
20504         PR tree-optimization/39874
20505         PR middle-end/28685
20506         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
20507         Declare.
20508         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
20509         same_bool_result_p): New.
20510         (and_var_with_comparison, and_var_with_comparison_1,
20511         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
20512         (or_var_with_comparison, or_var_with_comparison_1,
20513         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
20514         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
20515         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
20516         of combine_comparisons.
20517         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
20518
20519 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
20520
20521         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20522         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20523         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
20524         pdp11_function_value_regno_p): New functions.
20525         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20526         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20527
20528 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
20529
20530         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
20531         Thumb-2 in the MINUS case.
20532
20533 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
20534
20535         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
20536
20537         * doc/gty.texi (GTY Options): Document typed GC allocation and
20538         variable_size GTY option.
20539
20540         * ggc-internal.h: New.
20541
20542         * ggc.h: Update copyright year.
20543         (digit_string): Move to stringpool.c.
20544         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
20545         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
20546         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
20547         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
20548         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
20549         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
20550         (ggc_force_collect, ggc_get_size, ggc_statistics)
20551         (ggc_print_common_statistics): Move to ggc-internal.h.
20552         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
20553         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
20554         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
20555         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
20556         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
20557         (ggc_alloc_zone_pass_stat): Remove.
20558         (ggc_internal_alloc_stat, ggc_internal_alloc)
20559         (ggc_internal_cleared_alloc_stat): New.
20560         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
20561         (ggc_internal_vec_alloc_stat)
20562         (ggc_internal_cleared_vec_alloc_stat)
20563         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
20564         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
20565         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
20566         (ggc_cleared_alloc_ptr_array_two_args): New.
20567         (htab_create_ggc, splay_tree_new_ggc): Redefine.
20568         (ggc_splay_alloc): Change the type of the first argument to
20569         enum gt_types_enum.
20570         (ggc_alloc_string): Make macro.
20571         (ggc_alloc_string_stat): New.
20572         (ggc_strdup): Redefine.
20573         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
20574         (ggc_alloc_rtvec_sized): New.
20575         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
20576         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
20577         (ggc_internal_cleared_alloc_zone_stat)
20578         (ggc_internal_zone_alloc_stat)
20579         (ggc_internal_zone_cleared_alloc_stat)
20580         (ggc_internal_zone_vec_alloc_stat)
20581         (ggc_alloc_zone_rtx_def_stat)
20582         (ggc_alloc_zone_tree_node_stat)
20583         (ggc_alloc_zone_cleared_tree_node_stat)
20584         (ggc_alloc_cleared_gimple_statement_d_stat): New.
20585
20586         * ggc-common.c: Include ggc-internal.h.
20587         (ggc_internal_cleared_alloc_stat): Rename from
20588         ggc_alloc_cleared_stat.
20589         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
20590         (ggc_calloc): Remove.
20591         (ggc_cleared_alloc_htab_ignore_args): New.
20592         (ggc_cleared_alloc_ptr_array_two_args): New.
20593         (ggc_splay_alloc): Add obj_type parameter.
20594         (init_ggc_heuristics): Formatting fixes.
20595
20596         * ggc-none.c: Update copyright year.
20597         (ggc_alloc_stat): Rename to ggc_alloc_stat.
20598         (ggc_alloc_cleared_stat): Rename to
20599         ggc_internal_cleared_alloc_stat.
20600         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20601
20602         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
20603         Remove references to ggc_alloc in comments.
20604         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
20605         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
20606         (new_ggc_zone, destroy_ggc_zone): Remove.
20607         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20608
20609         * ggc-zone.c: Include ggc-internal.h.  Remove references to
20610         ggc_alloc in comments.
20611         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
20612         (ggc_internal_alloc_zone_pass_stat): New.
20613         (ggc_internal_cleared_alloc_zone_stat): New.
20614         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
20615         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
20616         (new_ggc_zone, destroy_ggc_zone): Remove.
20617
20618         * stringpool.c: Update copyright year.  Include ggc-internal.h
20619         (digit_vector): Make static.
20620         (digit_string): Moved from ggc.h.
20621         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
20622         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
20623
20624         * Makefile.in (GGC_INTERNAL_H): New.
20625         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
20626         $(GGC_INTERNAL_H) to dependencies.
20627
20628         * gentype.c: Update copyright year.
20629         (walk_type): Accept variable_size GTY option.
20630         (USED_BY_TYPED_GC_P): New macro.
20631         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
20632         whitespace at the end of strings.
20633         (get_type_specifier, variable_size_p): New functions.
20634         (alloc_quantity, alloc_zone): New enums.
20635         (write_typed_alloc_def): New function.
20636         (write_typed_struct_alloc_def): Likewise.
20637         (write_typed_typed_typedef_alloc_def): Likewise.
20638         (write_typed_alloc_defns): Likewise.
20639         (output_typename, write_splay_tree_allocator_def): Likewise.
20640         (write_splay_tree_allocators): Likewise.
20641         (main): Call write_typed_alloc_defns and
20642         write_splay_tree_allocators.
20643
20644         * lto-streamer.h (lto_file_decl_data_ptr): New.
20645
20646         * passes.c (order): Define using cgraph_node_ptr.
20647
20648         * strinpool.c (struct string_pool_data): Declare nested_ptr using
20649         ht_identifier_ptr.
20650
20651         * gimple.h (union gimple_statement_d): Likewise.
20652
20653         * rtl.h (struct rtx_def): Likewise.
20654         (struct rtvec_def): Likewise.
20655
20656         * tree.h (union tree_node): Likewise.
20657
20658         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
20659
20660         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
20661
20662         * tree-scalar-evolution.c (scev_initialize): Likewise.
20663
20664         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
20665
20666         * dwarf2asm.c (dw2_force_const_mem): Likewise.
20667
20668         * omp-low.c (lower_omp_critical): Likewise.
20669
20670         * bitmap.h (struct bitmap_head_def): Update comment to not
20671         reference ggc_alloc.
20672
20673         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
20674
20675         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
20676
20677         * ipa-prop.c (duplicate_ggc_array): Rename to
20678         duplicate_ipa_jump_func_array.  Use typed GC allocation.
20679         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
20680
20681         * gimple.c (gimple_alloc_stat): Use
20682         ggc_alloc_cleared_gimple_statement_d_stat.
20683
20684         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
20685
20686         * tree.c (make_node_stat): Use
20687         ggc_alloc_zone_cleared_tree_node_stat.
20688         (make_tree_vec_stat): Likewise.
20689         (build_vl_exp_stat): Likewise.
20690         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
20691         (make_tree_binfo_stat): Likewise.
20692         (tree_cons_stat): Likewise.
20693
20694         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
20695         (shallow_copy_rtx_stat): Likewise.
20696         (make_node_stat): Likewise.
20697
20698         * lto-symtab.c: Fix comment.
20699
20700         * tree-cfg.c (create_bb): Update comment to not reference
20701         ggc_alloc_cleared.
20702         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
20703
20704         * varpool.c (varpool_node): Use typed GC allocation.
20705         (varpool_extra_name_alias): Likewise.
20706
20707         * varasm.c (emutls_decl): Likewise.
20708         (get_unnamed_section): Likewise.
20709         (get_noswitch_section): Likewise.
20710         (get_section): Likewise.
20711         (get_block_for_section): Likewise.
20712         (build_constant_desc): Likewise.
20713         (create_constant_pool): Likewise.
20714         (force_const_mem): Likewise.
20715
20716         * tree.c (build_vl_exp_stat): Likewise.
20717         (build_real): Likewise.
20718         (build_string): Likewise.
20719         (decl_debug_expr_insert): Likewise.
20720         (decl_value_expr_insert): Likewise.
20721         (type_hash_add): Likewise.
20722         (build_omp_clause): Likewise.
20723
20724         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
20725
20726         * tree-ssa.c (init_tree_ssa): Likewise.
20727
20728         * tree-ssa-structalias.c (heapvar_insert): Likewise.
20729
20730         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20731
20732         * tree-ssa-loop-niter.c (record_estimate): Likewise.
20733
20734         * tree-ssa-alias.c (get_ptr_info): Likewise.
20735
20736         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20737
20738         * tree-phinodes.c (allocate_phi_node): Likewise.
20739
20740         * tree-iterator.c (tsi_link_before): Likewise.
20741         (tsi_link_after): Likewise.
20742
20743         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20744
20745         * tree-dfa.c (create_var_ann): Likewise.
20746
20747         * tree-cfg.c (create_bb): Likewise.
20748
20749         * toplev.c (alloc_for_identifier_to_locale): Likewise.
20750         (general_init): Likewise.
20751
20752         * stringpool.c (stringpool_ggc_alloc): Likewise.
20753         (gt_pch_save_stringpool): Likewise.
20754
20755         * sese.c (if_region_set_false_region): Likewise.
20756
20757         * passes.c (do_per_function_toporder): Likewise.
20758
20759         * optabs.c (set_optab_libfunc): Likewise.
20760         (set_conv_libfunc): Likewise.
20761
20762         * lto-symtab.c (lto_symtab_register_decl): Likewise.
20763
20764         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20765         (input_eh_region): Likewise.
20766         (input_eh_lp): Likewise.
20767         (make_new_block): Likewise.
20768         (unpack_ts_real_cst_value_fields): Likewise.
20769
20770         * lto-section-in.c (lto_new_in_decl_state): Likewise.
20771
20772         * lto-cgraph.c (input_node_opt_summary): Likewise.
20773
20774         * loop-init.c (loop_optimizer_init): Likewise.
20775
20776         * lambda.h (lambda_vector_new): Likewise.
20777
20778         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
20779
20780         * ira.c (update_equiv_regs): Likewise.
20781
20782         * ipa.c (cgraph_node_set_new): Likewise.
20783         (cgraph_node_set_add): Likewise.
20784         (varpool_node_set_new): Likewise.
20785         (varpool_node_set_add): Likewise.
20786
20787         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
20788         (duplicate_ipa_jump_func_array): Likewise.
20789         (ipa_read_node_info): Likewise.
20790
20791         * ipa-cp.c (ipcp_create_replace_map): Likewise.
20792
20793         * integrate.c (get_hard_reg_initial_val): Likewise.
20794
20795         * gimple.c (gimple_alloc_stat): Likewise.
20796         (gimple_build_omp_for): Likewise.
20797         (gimple_seq_alloc): Likewise.
20798         (gimple_copy): Likewise.
20799
20800         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
20801         (gsi_insert_after_without_update): Likewise.
20802
20803         * function.c (add_frame_space): Likewise.
20804         (insert_temp_slot_address): Likewise.
20805         (assign_stack_temp_for_type): Likewise.
20806         (allocate_struct_function): Likewise.
20807         (types_used_by_var_decl_insert): Likewise.
20808
20809         * except.c (init_eh_for_function): Likewise.
20810         (gen_eh_region): Likewise.
20811         (gen_eh_region_catch): Likewise.
20812         (gen_eh_landing_pad): Likewise.
20813         (add_call_site): Likewise.
20814
20815         * emit-rtl.c (get_mem_attrs): Likewise.
20816         (get_reg_attrs): Likewise.
20817         (start_sequence): Likewise.
20818         (init_emit): Likewise.
20819
20820         * dwarf2out.c (new_cfi): Likewise.
20821         (queue_reg_save): Likewise.
20822         (dwarf2out_frame_init): Likewise.
20823         (new_loc_descr): Likewise.
20824         (find_AT_string): Likewise.
20825         (new_die): Likewise.
20826         (add_var_loc_to_decl): Likewise.
20827         (clone_die): Likewise.
20828         (clone_as_declaration): Likewise.
20829         (break_out_comdat_types): Likewise.
20830         (new_loc_list): Likewise.
20831         (loc_descriptor): Likewise.
20832         (add_loc_descr_to_each): Likewise.
20833         (add_const_value_attribute): Likewise.
20834         (tree_add_const_value_attribute): Likewise.
20835         (add_comp_dir_attribute): Likewise.
20836         (add_name_and_src_coords_attributes): Likewise.
20837         (lookup_filename): Likewise.
20838         (store_vcall_insn): Likewise.
20839         (dwarf2out_init): Likewise.
20840
20841         * dbxout.c (dbxout_init): Likewise.
20842
20843         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20844
20845         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20846
20847         * config/score/score7.c (score7_output_external): Likewise.
20848
20849         * config/score/score3.c (score3_output_external): Likewise.
20850
20851         * config/s390/s390.c (s390_init_machine_status): Likewise.
20852
20853         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20854         (rs6000_init_machine_status): Likewise.
20855         (output_toc): Likewise.
20856
20857         * config/pa/pa.c (pa_init_machine_status): Likewise.
20858         (get_deferred_plabel): Likewise.
20859
20860         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20861
20862         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20863
20864         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20865
20866         * config/mep/mep.c (mep_init_machine_status): Likewise.
20867         (mep_note_pragma_flag): Likewise.
20868
20869         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20870
20871         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20872
20873         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20874
20875         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20876         (i386_pe_maybe_record_exported_symbol): Likewise.
20877
20878         * config/i386/i386.c (get_dllimport_decl): Likewise.
20879         (ix86_init_machine_status): Likewise.
20880         (assign_386_stack_local): Likewise.
20881
20882         * config/frv/frv.c (frv_init_machine_status): Likewise.
20883
20884         * config/darwin.c (machopic_indirection_name): Likewise.
20885
20886         * config/cris/cris.c (cris_init_machine_status): Likewise.
20887
20888         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20889
20890         * config/avr/avr.c (avr_init_machine_status): Likewise.
20891
20892         * config/arm/arm.c (arm_init_machine_status): Likewise.
20893
20894         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20895         (alpha_need_linkage): Likewise.
20896         (alpha_use_linkage): Likewise.
20897
20898         * cgraph.c (cgraph_allocate_node): Likewise.
20899         (cgraph_create_edge_1): Likewise.
20900         (cgraph_create_indirect_edge): Likewise.
20901         (cgraph_add_asm_node): Likewise.
20902
20903         * cfgrtl.c (init_rtl_bb_info): Likewise.
20904
20905         * cfgloop.c (alloc_loop): Likewise.
20906         (rescan_loop_exit): Likewise.
20907
20908         * cfg.c (init_flow): Likewise.
20909         (alloc_block): Likewise.
20910         (unchecked_make_edge): Likewise.
20911
20912         * c-parser.c (c_parse_init): Likewise.
20913         (c_parse_file): Likewise.
20914
20915         * c-decl.c (bind): Likewise.
20916         (record_inline_static): Likewise.
20917         (push_scope): Likewise.
20918         (make_label): Likewise.
20919         (lookup_label_for_goto): Likewise.
20920         (finish_struct): Likewise.
20921         (finish_enum): Likewise.
20922         (c_push_function_context): Likewise.
20923
20924         * bitmap.c (bitmap_element_allocate): Likewise.
20925         (bitmap_gc_alloc_stat): Likewise.
20926
20927         * alias.c (record_alias_subset): Likewise.
20928         (init_alias_analysis): Likewise.
20929
20930 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
20931
20932         * fold-const.c (fold_comparison): Remove redundant parenthesis.
20933         * tree-inline.c (expand_call_inline): Pass translated return value of
20934         cgraph_inline_failed_string to diagnostic function.
20935
20936 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
20937             Shujing Zhao  <pearly.zhao@oracle.com>
20938
20939         PR c/37724
20940         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
20941         implicit bad conversions is initialization.
20942         (error_init): Use gmsgid instead of msgid for argument name and change
20943         the call for error.
20944         (pedwarn_init): Use gmsgid instead of msgid for argument name and
20945         change the call for pedwarn.
20946         (warning_init): Use gmsgid instead of msgid for argument name and
20947         change the call for warning.
20948
20949 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
20950
20951         * config/mips/mips-protos.h (mips_print_operand): Delete.
20952         (mips_print_operand_address): Delete.
20953         * config/mips/mips.h (mips_print_operand_punct): Delete.
20954         (PRINT_OPERAND): Delete.
20955         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20956         (PRINT_OPERAND_ADDRESS): Delete.
20957         * config/mips/mips.c (mips_print_operand_punct): Make static.
20958         (mips_print_operand_address): Make static.
20959         (mips_print_operand): Make static.  Call
20960         mips_print_operand_punct_valid_p.
20961         (mips_print_operand_punct_valid_p): New function.
20962         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20963         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20964
20965 2010-06-07  Jan Hubicka  <jh@suse.cz>
20966
20967         PR middle-end/44454
20968         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
20969         are allocated.
20970
20971 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
20972
20973         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
20974         name of RECORD.
20975
20976 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20977
20978         * doc/sourcebuild.texi (Effective-Target Keywords, Other
20979         attributes): Document gas.
20980
20981 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
20982
20983         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
20984         <TYPE_LEA>: Split instruction.
20985         <default>: Remove alternative 2 handling.
20986         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
20987         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
20988         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
20989
20990         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
20991         (ashift_zext lea splitter): Use DImode for multiplication.
20992
20993         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
20994         to generate addition.
20995
20996 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
20997
20998         * common.opt (fira-verbose): Use Var.
20999         (fpcc-struct-return): Use Init instead of VarExists.
21000         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
21001         toplev.c.
21002         * flags.h (flag_signed_char, flag_short_enums,
21003         flag_pcc_struct_return, flag_ira_verbose,
21004         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
21005         * toplev.c (flag_detailed_statistics, flag_signed_char,
21006         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
21007         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
21008         * toplev.h (flag_crossjumping, flag_if_conversion,
21009         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
21010         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
21011         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
21012         flag_cprop_registers, time_report, flag_ira_loop_pressure,
21013         flag_ira_coalesce, flag_ira_move_spills,
21014         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
21015
21016 2010-06-07  Jan Hubicka  <jh@suse.cz>
21017
21018         * df-core.c (df_analyze_problem): Do verification after allocation.
21019
21020         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
21021         (df_lr_alloc): Initialize problem data; move bitmaps to
21022         lr_bitmaps obstack.
21023         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
21024         (df_lr_verify_solution_start): Do not initialize problem data;
21025         allocate bitmaps in lr_bitmaps.
21026         (df_lr_verify_solution_end): Do not free problem data.
21027
21028 2010-06-07  Jan Hubicka  <jh@suse.cz>
21029
21030         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
21031         if caller is noreturn.
21032         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
21033         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
21034         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
21035         * ipa-pure-const.c (check_decl): Add IPA parameter.
21036         (state_from_flags): New function.
21037         (better_state, worse_state): New functions.
21038         (check_call): When in IPA mode, do not care about callees.
21039         (check_load, check_store): Update.
21040         (check_ipa_load, check_ipa_store): New.
21041         (check_stmt): When in IPA mode, use IPA checkers.
21042         (analyze_function): Use state_from_flags.
21043         (propagate): Check indirect edges and references.
21044
21045 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
21046
21047         PR rtl-optimization/44404
21048         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
21049         of count_occurrences to see if it's safe to modify mem_insn.
21050
21051 2010-06-07  Richard Guenther  <rguenther@suse.de>
21052
21053         * gimplify.c (gimplify_cleanup_point_expr): For empty body
21054         and EH-only cleanup drop the cleanup instead of inserting it
21055         unconditionally.
21056
21057 2010-06-07  Ira Rosen  <irar@il.ibm.com>
21058
21059         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
21060         documentation.
21061         * targhooks.c (default_builtin_vectorization_cost): New function.
21062         * targhooks.h (default_builtin_vectorization_cost): Declare.
21063         * target.h (enum vect_cost_for_stmt): Define.
21064         (builtin_vectorization_cost): Change argument and comment.
21065         * tree-vectorizer.h: Remove cost model macros.
21066         * tree-vect-loop.c: Include target.h.
21067         (vect_get_cost): New function.
21068         (vect_estimate_min_profitable_iters): Replace cost model macros with
21069         calls to vect_get_cost.
21070         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
21071         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
21072         default implementation.
21073         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
21074         calls to target hook builtin_vectorization_cost.
21075         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
21076         Likewise.
21077         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
21078         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
21079         implementation to return costs.
21080         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
21081         * config/spu/spu.h: Remove vectorizer cost model macros.
21082         * config/i386/i386.h: Likewise.
21083         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
21084         a call to target hook builtin_vectorization_cost.
21085
21086 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
21087
21088         PR target/44319
21089         * config/i386/i386.c (override_options): Turn zee pass on for level 2
21090         and above and defer till target is known.
21091         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
21092         turn off otherwise.
21093
21094 2010-05-25  Jan Hubicka  <jh@suse.cz>
21095
21096         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
21097         (df_compact_blocks): Likewise.
21098         * df.h (struct df): Turn hardware_regs_used,
21099         regular_block_artificial_uses, eh_block_artificial_uses,
21100         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
21101         bitmap_head.
21102         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
21103         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
21104         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
21105         df_scan_blocks, df_insn_delete, df_insn_rescan,
21106         df_insn_rescan_debug_internal, df_insn_rescan_all,
21107         df_process_deferred_rescans, df_process_deferred_rescans,
21108         df_notes_rescan, df_get_call_refs, df_get_call_refs,
21109         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
21110         df_record_entry_block_defs, df_record_exit_block_uses,
21111         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
21112         df_scan_verify): Update.
21113
21114 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
21115
21116         PR c++/44188
21117         * c-common.c (is_typedef_decl): Move this definition ...
21118         * tree.c (is_typedef_decl): ... here.
21119         (typdef_variant_p): Move definition here from cp/tree.c.
21120         * c-common.h (is_typedef_decl): Move this declaration ...
21121         * tree.h (is_typedef_decl): ... here.
21122         (typedef_variant_p): Move declaration here from cp/cp-tree.h
21123         * dwarf2out.c (is_naming_typedef_decl): New function.
21124         (gen_tagged_type_die): Split out of ...
21125         (gen_type_die_with_usage): ... this function. When an anonymous
21126         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
21127         is emitted for the typedef.
21128         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
21129         anonymous tagged types.
21130
21131 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21132
21133         PR c/20000
21134         * c-decl.c (grokdeclarator): Delete warning.
21135
21136 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
21137
21138         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
21139         newly built CALL_EXPR.
21140         * tree-profile.c (tree_profiling): Don't profile functions produced
21141         for built-in stuff.
21142
21143 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
21144
21145         PR bootstrap/44427
21146         PR bootstrap/44428
21147         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
21148         endianness-independent.
21149
21150 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
21151
21152         * c-common.c: Move to c-family/.
21153         * c-common.def: Likewise.
21154         * c-common.h: Likewise.
21155         * c-cppbuiltin.c: Likewise.
21156         * c-dump.c: Likewise.
21157         * c-format.c: Likewise.
21158         * c-format.h : Likewise.
21159         * c-gimplify.c: Likewise.
21160         * c-lex.c: Likewise.
21161         * c-omp.c: Likewise.
21162         * c.opt: Likewise.
21163         * c-opts.c: Likewise.
21164         * c-pch.c: Likewise.
21165         * c-ppoutput.c: Likewise.
21166         * c-pragma.c: Likewise.
21167         * c-pragma.h: Likewise.
21168         * c-pretty-print.c: Likewise.
21169         * c-pretty-print.h: Likewise.
21170         * c-semantics.c: Likewise.
21171         * stub-objc.c: Likewise.
21172
21173         * gengtype.c (get_file_langdir): Special-case files in c-family/.
21174         (get_output_file_with_visibility): Fix name for c-common.h.
21175         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
21176
21177         * c-tree.h: Update include path for moved files.
21178         * c-lang.c: Likewise.
21179         * c-lang.h: Likewise.
21180         * c-parser.c: Likewise.
21181         * c-convert.c: Likewise.
21182         * c-decl.c: Likewise.
21183         * c-objc-common.c: Likewise.
21184         * configure.ac: Make sure c-family/ exists in the build directory.
21185         * configure: Regenerate.
21186         * Makefile.in: Update paths for moved files.  Regroup files per
21187         location and update dependencies.  Move generated_files down after
21188         ALL_GTFILES_H.
21189
21190         * config/spu/spu-c.c: Update paths for moved files.
21191         * config/mep/mep-pragma.c: Likewise.
21192         * config/darwin-c.c: Likewise.
21193         * config/i386/msformat-c.c: Likewise.
21194         * config/i386/i386-c.c: Likewise.
21195         * config/avr/avr-c.c: Likewise.
21196         * config/sol2-c.c: Likewise.
21197         * config/ia64/ia64-c.c: Likewise.
21198         * config/rs6000/rs6000-c.c: Likewise.
21199         * config/arm/arm.c: Likewise.
21200         * config/arm/arm-c.c: Likewise.
21201         * config/h8300/h8300.c: Likewise.
21202         * config/v850/v850-c.c: Likewise.
21203
21204         * config/t-darwin: Fix dependencies for moved files.
21205         * config/t-sol2: Fix dependencies for moved files.
21206         * config/mep/t-mep: Fix dependencies for moved files.
21207         * config/ia64/t-ia64: Fix dependencies for moved files.
21208         * config/rs6000/t-rs6000: Fix dependencies for moved files.
21209         * config/v850/t-v850: Fix dependencies for moved files.
21210         * config/v850/t-v850e: Fix dependencies for moved files.
21211
21212         * config/m32c/m32c-pragma.c
21213
21214         * po/exgettext: Look in c-family/ also.
21215
21216 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
21217
21218         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
21219         (mark_control_dependent_edges_necessary): Call it instead of marking
21220         the last statement manually.
21221         (propagate_necessity): Likewise.
21222
21223 2010-06-05  Jan Hubicka  <jh@suse.cz>
21224
21225         * basic-block.h (compute_dominance_frontiers): Updated.
21226         (compute_idf): Likewise.
21227
21228         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
21229         for dominance frontiers.
21230         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
21231         (insert_updated_phi_nodes_for): Likewise.
21232         (update_ssa): Likewise.
21233         * cfganal.c (compute_dominance_frontiers_1): Likewise.
21234         (compute_dominance_frontiers): Likewise.
21235         (compute_idf): Likewise.
21236         * df-problems.c (df_md_local_compute): Likewise.
21237
21238 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
21239
21240         * target.h (struct gcc_target): Add memory_move_cost field.
21241         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
21242         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
21243         * targhooks.c (default_memory_move_cost): New function.
21244         * targhooks.h (default_memory_move_cost): Declare function.
21245         * reload.h (memory_move_cost): Declare.
21246         (memory_move_secondary_cost): Change type of 'in' argument to bool.
21247         * reginfo.c (memory_move_cost): New function.
21248         (memory_move_secondary_cost): Change type of 'in' argument to bool.
21249         * ira.h (ira_memory_move_cost): Update comment.
21250         * ira.c (ira_memory_move_cost): Update comment.
21251         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
21252         with memory_move_cost.
21253         * postreload.c (reload_cse_simplify_set): (Ditto.).
21254         * reload1.c (choose_reload_regs): (Ditto.).
21255         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
21256         (MEMORY_MOVE_COST):  Revise documentation.
21257
21258         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
21259         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
21260         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
21261         type of 'in' argument to bool.
21262         (TARGET_MEMORY_MOVE_COST): Define.
21263
21264 2010-06-05  Jan Hubicka  <jh@suse.cz>
21265
21266         * ipa-pure-const.c (propagate): Fix typo in handling of functions
21267         that cannot return.  Be more careful when merging the results with
21268         previously known ones.
21269
21270 2010-06-05  Matthias Klose  <doko@ubuntu.com>
21271
21272         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
21273         function to add the -iplugindir option.
21274         (find_plugindir_spec_function): Add new declaration and function.
21275         (static_spec_func): Use it for "find-plugindir".
21276
21277 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
21278
21279         PR c++/44361
21280         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
21281         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
21282         statement expression.
21283
21284 2010-06-05  Jan Hubicka  <jh@suse.cz>
21285
21286         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
21287         (df_rd_problem_data): Convert sparse_invalidated_by_call,
21288         dense_invalidated_by_call to bitmap head.
21289         (df_rd_alloc, df_rd_bb_local_compute_process_def,
21290         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
21291         df_rd_start_dump, df_lr_verify_transfer_functions,
21292         df_live_verify_transfer_functions, df_chain_create_bb,
21293         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
21294         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
21295         df_simulate_one_insn_forwards, df_md_alloc,
21296         df_md_bb_local_compute_process_def,
21297         df_md_bb_local_compute_process_def, df_md_local_compute,
21298         df_md_transfer_function df_md_free): Update.
21299
21300 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
21301
21302         PR c/44322
21303         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
21304         target type for ADDR_EXPR; require no changes to qualifiers except
21305         for function types.
21306         * c-tree.h (c_build_type_variant): Remove.
21307
21308 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
21309
21310         * genautomata.c (get_excl_set): Do work per element, not per char.
21311         (check_presence_pattern_sets): Similar.
21312         (check_absence_pattern_sets): Similar.
21313
21314 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
21315
21316         * genautomata.c (curr_state_pass_num): Delete.
21317         (min_issue_delay_pass_states): Delete.
21318         (min_issue_delay): Delete.
21319         (initiate_min_issue_delay_pass_states): Delete.
21320         (output_min_issue_delay_table): Compute min_issue_delay_vect
21321         using a breadth-first search variant.
21322         (output_tables): Don't call initiate_min_issue_delay_pass_states.
21323
21324 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
21325
21326         PR boostrap/44421
21327         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
21328         (df_byte_lr_bb_local_compute): Likewise.
21329
21330 2010-06-03  Jason Merrill  <jason@redhat.com>
21331
21332         Implement noexcept operator (5.3.7)
21333         * c-common.c (c_common_reswords): Add noexcept.
21334         * c-common.h (enum rid): Add RID_NOEXCEPT.
21335
21336 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
21337
21338         * config/darwin-driver.c (darwin_default_min_version): Use
21339         GCC-specific formats in diagnostics.
21340         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
21341         diagnostics.
21342         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
21343         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
21344         eval_spec_function, handle_braces, process_brace_body, main,
21345         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
21346         getenv_spec_function, compare_version_strings,
21347         version_compare_spec_function): Use GCC-specific formats in
21348         diagnostics.
21349
21350 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
21351
21352         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
21353         that operand 0 and operand 1 are equal.
21354         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
21355         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
21356         and operand 1 are equal.
21357         <default>: Ditto.  Remove ??? comment.
21358         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
21359         and operand 1 are equal.
21360         <default>: Ditto.  Remove ??? comment.
21361         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
21362         are equal.
21363         (*add<mode>_4) <default>: Ditto.
21364         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
21365
21366 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
21367
21368         * config/i386/i386-protos.h (ix86_print_operand): Declare.
21369         * config/i386/i386.c (ix86_print_operand): Make non-static.
21370         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
21371         * output.h (output_operand): Declare.
21372         * final.c (output_operand): Make non-static.
21373
21374 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
21375
21376         PR rtl-optimization/44013
21377         * sched-deps.c (add_dependence_list_and_free): Don't free lists
21378         when processing debug insns.
21379
21380         PR debug/41371
21381         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
21382         recursing.  Check that recursion is bounded.  Rename inner var
21383         to avoid hiding incoming argument.
21384
21385 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
21386
21387         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
21388         operands[2] == 255.
21389         (*addqi_3): Ditto.
21390         (*addqi_4): Ditto.
21391         (*addqi_5): Ditto.
21392         (*addqi_ext_1_rex64): Ditto.
21393         (*addqi_ext_1): Ditto.
21394
21395         (*addqi_4): Check for incdec_operand in QImode.
21396
21397         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
21398         using SWI mode iterator.
21399         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
21400         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
21401         mode iterator.
21402         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
21403         using SWI mode iterator.
21404
21405 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21406
21407         PR c/25880
21408         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
21409         * c-format.c (gcc_diag_flag_specs): Add hash.
21410         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
21411         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
21412         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
21413         pp_c_cv_qualifiers. Handle qualifiers spelling here.
21414         (pp_c_type_qualifier_list): Call the function above.
21415         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
21416         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
21417         (WARN_FOR_QUALIFIERS): New macro.
21418         (convert_for_assignment): Use it.
21419
21420 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
21421
21422         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
21423
21424 2010-06-04  Jan Hubicka  <jh@suse.cz>
21425
21426         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
21427         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
21428         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
21429         DF_BYTE_LR_OUT): Update for embedded bitmaps.
21430         * fwprop.c (single_def_use_enter_block): Likewise.
21431         * ddg.c (create_ddg_dep_from_intra_loop_link,
21432         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
21433         * loop-iv.c (latch_dominating_def): Likewise.
21434         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
21435         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
21436         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
21437         df_rd_transfer_function, df_rd_top_dump,
21438         df_rd_bottom_dump): Update.
21439         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
21440         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
21441         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
21442         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
21443         df_lr_verify_solution_start, df_lr_verify_solution_end,
21444         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
21445         df_live_free_bb_info, df_live_alloc, df_live_reset,
21446         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
21447         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
21448         df_live_verify_solution_start, df_live_verify_solution_end,
21449         df_live_verify_transfer_functions, df_chain_create_bb,
21450         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
21451         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21452         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21453         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
21454         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
21455         df_byte_lr_transfer_function, df_byte_lr_top_dump,
21456         df_byte_lr_bottom_dump, df_create_unused_note,
21457         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
21458         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
21459         df_md_transfer_function, df_md_init, df_md_confluence_0,
21460         df_md_confluence_n,
21461         df_md_top_dump, df_md_bottom_dump): Update.
21462         (struct df_lr_problem_data): Embedd bitmap headers.
21463
21464 2010-06-04  Jan Hubicka  <jh@suse.cz>
21465
21466         * dce.c (dce_process_block): Do not re-scan already marked
21467         instructions.
21468
21469 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
21470
21471         PR rtl-optimization/39871
21472         PR rtl-optimization/40615
21473         PR rtl-optimization/42500
21474         PR rtl-optimization/42502
21475         * ira.c (init_reg_equiv_memory_loc: New function.
21476         (ira): Call it twice.
21477         * reload.h (calculate_elim_costs_all_insns): Declare.
21478         * ira-costs.c: Include "reload.h".
21479         (regno_equiv_gains): New static variable.
21480         (init_costs): Allocate it.
21481         (finish_costs): Free it.
21482         (ira_costs): Call calculate_elim_costs_all_insns.
21483         (find_costs_and_classes): Take estimated elimination costs
21484         into account.
21485         (ira_adjust_equiv_reg_cost): New function.
21486         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
21487         * reload1.c (init_eliminable_invariants, free_reg_equiv,
21488         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
21489         (elim_bb): New static variable.
21490         (reload): Move code out of here into init_eliminable_invariants and
21491         free_reg_equiv.  Call them.
21492         (calculate_elim_costs_all_insns): New function.
21493         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
21494         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
21495         but call note_reg_elim_costly if we turned a valid memory address
21496         into an invalid one.
21497         * Makefile.in (ira-costs.o): Depend on reload.h.
21498
21499 2010-06-04  Julian Brown  <julian@codesourcery.com>
21500
21501         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
21502         for pool ranges.
21503
21504 2010-06-04  Richard Guenther  <rguenther@suse.de>
21505
21506         PR lto/41584
21507         * cgraph.h (struct varpool_node): Add lto_file_data field.
21508         * lto-cgraph.c (input_varpool_node): Initialize it.
21509
21510 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
21511
21512         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
21513         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
21514         predicate in "type" attribute calculation.
21515         (*addsi_1_zext): Ditto.
21516         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
21517         (*addsi_2_zext): Ditto.
21518         (*add<mode>_3): Ditto.
21519         (*addsi_3_zext): Ditto.
21520         (*add<mode>_5): Ditto.
21521
21522 2010-06-03  Jan Hubicka  <jh@suse.cz>
21523
21524         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
21525         of bitmap_bit_p.
21526         * cfganal.c (compute_dominance_frontiers_1): Likewise.
21527
21528 2010-06-03  Jan Hubicka  <jh@suse.cz>
21529
21530         * df-problems.c (df_create_unused_note, df_note_bb_compute):
21531         micro-optimize the checks when to add new note.
21532
21533 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
21534
21535         * final.c (output_asm_insn): Call
21536         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
21537         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
21538         (output_address): Call targetm.asm_out.print_operand_address.
21539         Update comments.
21540         * target.h (struct gcc_target): Add print_operand,
21541         print_operand_address, and print_operand_punct_valid_p fields.
21542         * targhooks.h (default_print_operand): Declare.
21543         (default_print_operand_address): Declare.
21544         (default_print_operand_punct_valid_p): Declare.
21545         * targhooks.c (default_print_operand): Define.
21546         (default_print_operand_address): Define.
21547         (default_print_operand_punct_valid_p): Define.
21548         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
21549         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
21550         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
21551         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
21552         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
21553         * vmsdbgout.c (addr_const_to_string): Update comment.
21554         * config/i386/i386.c (print_operand): Rename to...
21555         (ix86_print_operand): ...this.  Make static.
21556         (print_operand_address): Rename to...
21557         (ix86_print_operand_address): ...this.  Make static.  Call
21558         ix86_print_operand instead of PRINT_OPERAND.
21559         (ix86_print_operand_punct_valid_p): New function.
21560         (TARGET_PRINT_OPERAND): Define.
21561         (TARGET_PRINT_OPERAND_ADDRESS): Define.
21562         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21563         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
21564         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21565         (PRINT_OPERAND): Delete.
21566         (PRINT_OPERAND_ADDRESS): Delete.
21567         * config/i386/i386-protos.h (print_operand): Delete prototype.
21568         (print_operand_address): Delete prototype.
21569
21570 2010-06-03  Richard Guenther  <rguenther@suse.de>
21571
21572         PR tree-optimization/44403
21573         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21574         Preserve pointer qualifiers.
21575         (vect_create_data_ref_ptr): Likewise.
21576
21577 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
21578
21579         PR c++/44294
21580         * defaults.h (MAX_FIXED_MODE_SIZE): New.
21581
21582         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
21583
21584 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
21585
21586         PR debug/44375
21587         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
21588         return false if merging the bbs would lead to goto_locus
21589         location being lost from the IL.
21590
21591 2010-06-03  Jan Hubicka  <jh@suse.cz>
21592             Jakub Jelinek  <jakub@redhat.com>
21593
21594         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
21595         set->regs[i] is NULL or has just one entry.
21596
21597 2010-06-03  Jan Hubicka  <jh@suse.cz>
21598
21599         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
21600         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
21601
21602 2010-06-03  Paul Brook  <paul@codesourcery.com>
21603
21604         * config/arm/arm.c (FL_TUNE): Define.
21605         (arm_default_cpu, arm_cpu_select): Remove.
21606         (all_cores): Populate core field.
21607         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
21608         (arm_find_cpu): New function.
21609         (arm_handle_option): Lookup cpu/architecture names.
21610         (arm_override_options): Cleanup mcpu/march/mtune handling.
21611         (arm_file_start): Ditto.
21612
21613 2010-06-03  Alan Modra  <amodra@gmail.com>
21614
21615         PR target/44169
21616         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
21617         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
21618         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
21619         (rs6000_emit_load_toc_table): Likewise.
21620
21621 2010-06-02  Jan Hubicka  <jh@suse.cz>
21622
21623         * passes.c (init_optimization_passes): Put ipa reference
21624         after ipa pure-const.
21625
21626 2010-06-02  Jan Hubicka  <jh@suse.cz>
21627
21628         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
21629         calls_read_all and calls_write_all.
21630         (get_reference_optimization_summary): Fix formatting.
21631         (is_proper_for_analysis): Check that decl is not readonly.
21632         (propagate_bits): Check CONST/PURE/noreturn flags.
21633         (ipa_init): Move all_module_statics to optimization_summary_obstack.
21634         (analyze_function): Ignore indirect edges.
21635         (copy_global_bitmap): For all module statics, do nothing.
21636         (generate_summary): Do not print calls_read_all/calls_write_all.
21637         (read_write_all_from_decl): Take node as argument; check
21638         cgraph_node_cannot_return.
21639         (propagate): Reorganize read_all/write_all computation;
21640         check indirect edges; check ecf flags; use all_module_statics
21641         in the results; do not free all_module_statics.
21642         (stream_out_bitmap): Handle all_module_statics.
21643         (ipa_reference_write_optimization_summary): Likewise; use
21644         varpool/cgraph encoders to get boundaries.
21645         (ipa_reference_read_optimization_summary): Read in all_module_statics;
21646         use it when possible.
21647
21648 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
21649
21650         PR target/44218
21651         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
21652         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
21653
21654         * doc/extend.texi (powerpc builtins): Document vec_recip,
21655         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
21656
21657         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
21658         (rs6000_emit_swrsqrt): Ditto.
21659         (rs6000_emit_swdivsf): Delete.
21660         (rs6000_emit_swdivdf): Ditto.
21661         (rs6000_emit_swrsqrtsf): Ditto.
21662
21663         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
21664         describe the reciprocal estimate support for each type.
21665         (recip_options): Map -mrecip=<opt> into option bits.
21666         (gen_2arg_fn_t): New typedef for binary rtx gen function.
21667         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
21668         reciprocal estimate instructions.
21669         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
21670         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
21671         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
21672         cost information if -mdebug=cost or -mdebug=reg.
21673         (rs6000_override_options): Set -mrecip-precision for power6, and
21674         power7 machines.  If -mvsx or -mdfp, enable various options that
21675         came in previous instruction set ISAs, unless the option was
21676         explicitly disabled by the command line option.  Parse
21677         -mrecip=<opt> options.
21678         (rs6000_builtin_vectorized_function): Add support for vectorizing
21679         the reciprocal estimate builtins and expansions.
21680         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
21681         (bdesc_2arg): Add reciprocal estimate builtins.
21682         (bdesc_1arg): Add reciprocal square root estimate builtins.
21683         (rs6000_expand_builtin): Rewrite to use a switch statement,
21684         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
21685         (rs6000_init_builtins): Create declarations for reciprocal
21686         estimate builtins.
21687         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
21688         sized, prefer traditional floating point registers, if integer
21689         vector types, prefer altivec registers.  Don't actually look at
21690         the memory address any more.
21691         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
21692         builtins.
21693         (rs6000_load_constant_and_splat): New helper function to load up
21694         the constant for reciprocal estimate instructions.
21695         (rs6000_emit_madd): New helper function for generating
21696         multiply/add type instructions, based on the current switches.
21697         (rs6000_emit_msub): Ditto.
21698         (rs6000_emit_mnsub): Ditto.
21699         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
21700         replace a divide with a reciprocal estimate and fixup, adding
21701         support for machines with high precision and vectors.
21702         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
21703         low precision machines.
21704         (rs6000_emit_swdiv): New common function to be called to replace a
21705         division with reciprocal estimate and fixup.
21706         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
21707         for double and vector types.  Add support for high precision machines.
21708
21709         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
21710         the reciprocal estimate instructions can be generated.
21711         (TARGET_FRE): Ditto.
21712         (TARGET_FRSQRTES): Ditto.
21713         (TARGET_FRSQRTE): Ditto.
21714         (RS6000_RECIP_*): New macros for reciprocal estimate support.
21715
21716         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
21717         square root estimate on vectors.
21718         (re<mode>2): New insn for reciprocal division estimate on vectors.
21719
21720         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
21721         New builtin.
21722         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
21723         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
21724         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
21725         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
21726         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
21727         (RS6000_BUILTIN_RSQRT): Ditto.
21728         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
21729         floating point builtin.
21730
21731         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21732         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
21733         __RECIP_PRECISION__ based on the command line switches.
21734         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
21735
21736         * config/rs6000/rs6000.opt (-mrecip): Document add support for
21737         replacing division instructions with reciprocal estimate and fixup.
21738         (-mrecip=<opt>): New option.
21739         (-mrecip-precision): Ditto.
21740
21741         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
21742         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
21743         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
21744         precision scalar.
21745
21746         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
21747         (UNSPEC_VREFP): Ditto.
21748         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
21749         conterparts with regard to support of -mno-fused-madd and -ffast-math.
21750         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
21751         reciprocal estimate instructions to be generated.
21752         (altivec_vrefp): Ditto.
21753
21754         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
21755         estimate support.
21756         (rreg): New mode attribute for reciprocal estimate support.
21757         (recip<mode>3): New insn for division using reciprocal estimate
21758         and fixup builtins.
21759         (divide define_split): New define_split to convert floating point
21760         division to use reciprocal estimate if the user used the
21761         appropriate options and the split is run when we can add new
21762         pseudo registers for the fixup.
21763         (rsqrt<mode>2): New insn for reciprocal square root support.
21764         (recipsf3): Move into recip<mode>3.
21765         (recipdf3): Ditto.
21766         (fres): Use TARGET_FRES.
21767         (rsqrtsf2): Move into rsqrt<mode>2.
21768         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
21769         (copysignsf3): Add support for VSX.
21770         (fred): Use TARGET_FRE.
21771         (fred_fpr): Ditto.
21772         (rsqrtdf_internal1): New function for frsqrte instruciton.
21773
21774         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
21775         (vec_rsqrt): Ditto.
21776
21777 2010-06-03  Richard Guenther  <rguenther@suse.de>
21778
21779         PR middle-end/44291
21780         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
21781         (set_user_assembler_libfunc): Likewise.
21782
21783 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
21784
21785         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
21786         defaults.h.
21787         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
21788         to defaults.h
21789         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
21790         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
21791         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
21792         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
21793         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
21794         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
21795         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
21796         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
21797         * defaults.h: Updated for above mentioned changes.
21798
21799 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
21800
21801         * c-common.c: Remove header include of tm_p.h.
21802         * Makefile.in (c-common.o): Remove TM_P_H dependency.
21803
21804 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
21805
21806         * tree.h (struct tree_decl_map): New type.
21807         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
21808         (tree_decl_map_hash): New prototype.
21809         (debug_expr_for_decl, value_expr_for_decl): Change into
21810         tree_decl_map hashtab from tree_map.
21811         (init_ttree): Adjust initialization.
21812         (tree_decl_map_hash): New function.
21813         (decl_debug_expr_lookup, decl_debug_expr_insert,
21814         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
21815
21816 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21817
21818         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
21819         linker emulations.
21820         * configure: Regenerate.
21821         * config.in: Regenerate.
21822
21823         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
21824         (X86_64_EMULATION): Define.
21825         (TARGET_LD_EMULATION): Use them.
21826
21827         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
21828         (SPARC64_EMULATION): Define.
21829         (LINK_ARCH_SPEC): Use them.
21830
21831 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
21832
21833         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
21834         smallest_mode_for_size for computing the precision types of new
21835         graphite IVs.  Do not call lang_hooks.types.type_for_size.
21836
21837 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
21838
21839         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
21840         information.
21841         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
21842
21843 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
21844
21845         PR middle-end/44363
21846         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
21847         return false instead.
21848
21849 2010-06-02  Jan Hubicka  <jh@suse.cz>
21850
21851         PR middle-end/44295
21852         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
21853         create new cgraph node to check callee.
21854
21855 2010-06-02  Richard Guenther  <rguenther@suse.de>
21856
21857         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
21858
21859 2010-06-02  Richard Guenther  <rguenther@suse.de>
21860
21861         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
21862         (lto_wrapper_cleanup): ... this.  Do not exit.
21863         (fatal): Adjust.  Exit here.
21864         (fatal_perror): Likewise.
21865         (fatal_signal): New function.
21866         (main): Set up signal handlers to cleanup temporary files.
21867         * Makefile.in (lto-wrapper.o): Adjust dependencies.
21868
21869 2010-06-02  Richard Guenther  <rguenther@suse.de>
21870
21871         PR tree-optimization/44377
21872         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
21873
21874 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21875
21876         * config/s390/2097.md (z10_fhex): Remove insn reservation.
21877         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
21878         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
21879         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
21880         instruction.
21881         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
21882
21883 2010-06-02  Jan Hubicka  <jh@suse.cz>
21884
21885         * bitmap.c (bitmap_descriptor): Add search_iter.
21886         (bitmap_find_bit): Increment it.
21887         (print_statistics): Print it.
21888
21889 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
21890
21891         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
21892         instead of gimple_build_call_vec.  Delete unnecessary local variable.
21893
21894 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
21895
21896         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
21897         change from yesterday.
21898
21899 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
21900
21901         * c-ada-spec.c: Clean up redundant includes.
21902
21903 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
21904
21905         * gimplify.c: Do not include except.h and optabs.h.
21906         (gimplify_body): Do not initialize RTL profiling.
21907         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
21908         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
21909         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
21910         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
21911         langhooks.h.
21912
21913         * tree-pretty-print.h: Include pretty-print.h.
21914         * gimple-pretty-print.h: Include pretty-print.h.
21915
21916         * tree-pretty-print.c: Do not include diagnostic.h.
21917         * tree-vrp.c: Likewise.
21918         * tree-tailcall.c: Likewise
21919         * tree-scalar-evolution.c: Likewise
21920         * tree-ssa-dse.c: Likewise
21921         * tree-chrec.c: Likewise
21922         * tree-ssa-sccvn.c: Likewise
21923         * tree-ssa-copyrename.c: Likewise
21924         * tree-nomudflap.c: Likewise
21925         * tree-call-cdce.c: Likewise
21926         * tree-stdarg.c: Likewise
21927         * tree-ssa-math-opts.c: Likewise
21928         * tree-nrv.c: Likewise
21929         * tree-ssa-sink.c: Likewise
21930         * tree-browser.c: Likewise
21931         * tree-ssa-loop-ivcanon.c: Likewise
21932         * tree-ssa-loop.c: Likewise
21933         * tree-parloops.c: Likewise
21934         * tree-ssa-address.c: Likewise
21935         * tree-ssa-ifcombine.c: Likewise
21936         * tree-if-conv.c: Likewise
21937         * tree-data-ref.c: Likewise
21938         * tree-affine.c: Likewise
21939         * tree-ssa-phiopt.c: Likewise
21940         * tree-ssa-coalesce.c: Likewise
21941         * tree-ssa-pre.c: Likewise
21942         * tree-ssa-live.c: Likewise
21943         * tree-predcom.c: Likewise
21944         * tree-ssa-forwprop.c: Likewise
21945         * tree-ssa-dce.c: Likewise
21946         * tree-ssa-ter.c: Likewise
21947         * tree-ssa-loop-prefetch.c: Likewise
21948         * tree-optimize.c: Likewise
21949         * tree-ssa-phiprop.c: Likewise
21950         * tree-object-size.c: Likewise
21951         * tree-outof-ssa.c: Likewise
21952         * tree-ssa-structalias.c: Likewise
21953         * tree-switch-conversion.c: Likewise
21954         * tree-ssa-reassoc.c: Likewise
21955         * tree-ssa-operands.c: Likewise
21956         * tree-vectorizer.c: Likewise
21957         * tree-vect-data-refs.c: Likewise
21958         * tree-vect-generic.c: Likewise
21959         * tree-vect-stmts.c: Likewise
21960         * tree-vect-patterns.c: Likewise
21961         * tree-vect-slp.c: Likewise
21962         * tree-vect-loop.c: Likewise
21963         * tree-ssa-loop-ivopts.c: Likewise
21964         * tree-ssa-loop-im.c: Likewise
21965         * tree-ssa-loop-niter.c: Likewise
21966         * tree-ssa-loop-unswitch.c: Likewise
21967         * tree-ssa-loop-manip.c: Likewise
21968         * tree-ssa-loop-ch.c: Likewise
21969         * tree-dump.c: Likewise
21970         * tree-complex.c: Likewise
21971
21972         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
21973         * tree-ssa-uninit.c: Likewise
21974         * tree-ssa-threadupdate.c: Likewise
21975         * tree-ssa-uncprop.c: Likewise
21976         * tree-ssa-ccp.c: Likewise
21977         * tree-ssa-dom.c: Likewise
21978         * tree-ssa-propagate.c: Likewise
21979         * tree-ssa-alias.c: Likewise
21980         * tree-dfa.c: Likewise
21981         * tree-cfgcleanup.c: Likewise
21982         * tree-sra.c: Likewise
21983         * tree-ssa-copy.c: Likewise
21984         * tree-ssa.c: Likewise
21985         * tree-profile.c: Likewise
21986         * tree-cfg.c: Likewise
21987         * tree-ssa-threadedge.c: Likewise
21988         * tree-vect-loop-manip.c: Likewise
21989
21990         * tree-inline.c: Do not include diagnostic.h and expr.h.
21991         Include rtl.h.
21992         (copy_decl_for_dup_finish): Do not use NULL_RTX.
21993
21994         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
21995         * tree-loop-distribution.c: Likewise.
21996
21997 2010-06-01  Jan Hubicka  <jh@suse.cz>
21998
21999         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
22000
22001 2010-06-01  Jan Hubicka  <jh@suse.cz>
22002
22003         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
22004         remove return value.
22005         (split_bbs_on_noreturn_calls) .... here.
22006         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
22007         * tree-flow.h (fixup_noreturn_call): New.
22008
22009 2010-06-01  Jan Hubicka  <jh@suse.cz>
22010
22011         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
22012
22013 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
22014
22015         * tree.h (build_nt_call_list): Delete.
22016         * tree.c (build_nt_call_list): Delete.
22017
22018 2010-06-01  Jan Hubicka  <jh@suse.cz>
22019
22020         * fwprop.c: Make emit-rtl.h include last.
22021         * rtlanal.c: Include emit-rtl.h.
22022         * genautomata.c: Output emit-rtl include into insn-automata.c
22023         * df-scan.c: Include emit-rtl.h.
22024         * haifa-sched.c: Indlude emit-rtl.h.
22025         * mode-switching.c: Indlude emit-rtl.h.
22026         * graph.c: Indlude emit-rtl.h.
22027         * sel-sched.c: Include emit-rtl.h.
22028         * sel-sched-ir.c: Include emit-rtl.h.
22029         * ira-build.c: Include emit-rtl.h.
22030         * emit-rtl.c (first_insn, last_insn): Remove defines.
22031         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
22032         Move to emit-rtl.h.
22033         (set_new_first_and_last_insn, get_last_insn_anywhere,
22034         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
22035         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
22036         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
22037         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
22038         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
22039         Use accessor functions.
22040         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
22041          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
22042         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
22043         mem_expr_equal_p): Move here from rtl.h.
22044         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
22045         Move here from emit-rtl.c; make inline.
22046         * cfglayout.h: Include emit-rtl.h.
22047         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
22048          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
22049         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
22050         mem_expr_equal_p, get_insns, set_first-insn,
22051         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
22052         * reg-stack.c: Include emit-rtl.h.
22053         * dce.c: Likewise.
22054
22055 2010-06-01  Jan Hubicka  <jh@suse.cz>
22056
22057         * cgraph.h (tree_function_versioning): Update prototype.
22058         (cgraph_function_versioning): Update prototype.
22059         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
22060         bitmap.
22061         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
22062         (cgraph_materialize_clone, save_inline_function_body): Update use of
22063         tree_function_versioning.
22064         * tree-inline.c (copy_bb): Look for previous copied block to link
22065         after; fix debug output.
22066         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
22067         (copy_body): Likewise.
22068         (expand_call_inline): Update use of copy_body.
22069         (tree_function_versioning): Update use of copy body; accept
22070         blocks_to_copy and new_entry.
22071
22072 2010-06-01  Jan Hubicka  <jh@suse.cz>
22073
22074         * gegenrtl.c: Remove unnecesary prototypes.
22075         (gendecl): Remove.
22076         (gendef): Produce static inline.
22077         (gencode): Remove.
22078         (main): Do not decode parameters; generate header only.
22079         * Makefile.in (genrtl.c): Remove.
22080
22081 2010-06-01  Jan Hubicka  <jh@suse.cz>
22082
22083         * tree-switch-conversion.c (build_one_array): Make it readonly.
22084
22085 2010-06-01  Richard Guenther  <rguenther@suse.de>
22086
22087         * optabs.c (init_optabs): Guard all accesses to reinit.
22088         * ipa-pure-const.c (propagate): Fix another typo.
22089         * opts.c (common_handle_option): Split assignment to bool.
22090         * c-opts.c (c_common_handle_option): Likewise.
22091
22092 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
22093             Matthew Gingell  <gingell@adacore.com>
22094
22095         * doc/invoke.texi: Mention -fdump-ada-spec.
22096         * tree-dump.c (dump_files): Add ada-spec.
22097         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
22098         * tree-pass.h (tree_dump_index): Add TDI_ada.
22099         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
22100         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
22101         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
22102         * c-decl.c: Include c-ada-spec.h.
22103         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
22104         functions.
22105         (c_write_global_declarations): Add handling of -fdump-ada-spec.
22106         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
22107         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
22108         * c-ada-spec.h, c-ada-spec.c: New files.
22109
22110 2010-06-01  Richard Guenther  <rguenther@suse.de>
22111
22112         PR lto/43853
22113         * ipa-pure-const.c (get_function_state): Hand back varying state
22114         if we do not have one.
22115         (has_function_state): New function.
22116         (duplicate_node_data): Adjust.
22117         (remove_node_data): Likewise.
22118         (pure_const_write_summary): Likewise.
22119         (propagate): Likewise.  Fix typo.
22120
22121 2010-06-01  Jan Hubicka  <jh@suse.cz>
22122
22123         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
22124         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
22125         (execute_all_ipa_transforms): Do not play with the states.
22126
22127 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
22128
22129         * config/arm/t-linux-androideabi: New.
22130         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
22131
22132 2010-06-01  Jan Hubicka  <jh@suse.cz>
22133
22134         * tree-inline.c (estimate_num_insns): For stdarg functions look
22135         into call statement to count cost of argument passing.
22136
22137 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
22138
22139         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
22140         argument for fprintf.
22141         (ix86_output_addr_diff_elt): Likewise.
22142         (x86_function_profiler): Likewise.
22143         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
22144         (LPREFIX): Likewise.
22145         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
22146
22147 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
22148
22149         PR target/44338
22150         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
22151         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
22152         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
22153         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
22154         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
22155         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
22156         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
22157         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
22158         TARGET_FUSED_MADD.
22159
22160 2010-05-31  Jan Hubicka  <jh@suse.cz>
22161
22162         * tree.h (tree_range_check_failed): Declare noreturn.
22163
22164 2010-05-31  Jan Hubicka  <jh@suse.cz>
22165
22166         * gimple.c (gimple_call_builtin_p): New function.
22167         * gimple.h (gimple_call_builtin_p): Declare.
22168         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
22169         to exit.
22170         (execute_warn_function_return): BUILT_IN_RETURN is return.
22171         (split_critical_edges): Return edges are not critical.
22172         (is_ctrl_altering_stmt): Builtin_in_return is altering.
22173         (gimple_verify_flow_info): Handle built_in_return.
22174         (execute_warn_function_return): Handle built_in_return.
22175         * ipa-pure-const.c (check_call): Ignore builtin_return.
22176
22177 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
22178
22179         PR middle-end/44337
22180         * expr.c (expand_assignment): Don't store anything for out-of-bounds
22181         array accesses with non-MEM.
22182
22183         PR tree-optimization/44182
22184         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
22185         newly needs to end a bb is followed by debug stmts, instead return
22186         true from the function at the end.
22187         (maybe_move_debug_stmts_to_successors): New function.
22188         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
22189
22190 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
22191
22192         PR target/44161
22193         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
22194
22195 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
22196
22197         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
22198         for nested functions in non-optimized compilation.
22199
22200 2010-05-31  Richard Guenther  <rguenther@suse.de>
22201
22202         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
22203
22204 2010-05-30  Jan Hubicka  <jh@suse.cz>
22205
22206         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
22207
22208 2010-05-30  Richard Guenther  <rguenther@suse.de>
22209
22210         PR lto/42975
22211         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
22212         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
22213         no longer needed.
22214
22215 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
22216
22217         * config/darwin.c (output_objc_section_asm_op): Add comment.
22218         (name_needs_quotes): Add '_' to list of valid comment chars.
22219         (machopic_output_function_base_name): Remove unneeded quotes.
22220         (darwin_encode_section_info): Adjust asm whitespace.
22221         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
22222         (ASM_OUTPUT_LOCAL): Ditto.
22223         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
22224         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
22225         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
22226
22227 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
22228
22229         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
22230         RS6000_OUTPUT_BASENAME unconditionally.
22231         (rs6000_output_function_epilogue): Likewise.
22232
22233 2010-05-30  Jan Hubicka  <jh@suse.cz>
22234
22235         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
22236         nodes.
22237
22238 2010-05-30  Richard Guenther  <rguenther@suse.de>
22239
22240         * tree-cfg.c (verify_gimple_assign_single): Implement
22241         verification for COND_EXPR rhs.
22242
22243 2010-05-30  Jan Hubicka  <jh@suse.cz>
22244
22245         * cgraph.h (cgraph_dump_file): Declare.
22246         * cgraphunit.c (cgraph_dump_file): Export.
22247         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
22248
22249 2010-05-30  Jan Hubicka  <jh@suse.cz>
22250
22251         * dwarf2out.c (reference_to_unused,
22252         premark_types_used_by_global_vars_helper): Avoid creation of new
22253         varpool nodes.
22254
22255 2010-05-30  Jan Hubicka  <jh@suse.cz>
22256
22257         * cgraph.h (cgraph_node_cannot_return,
22258         cgraph_edge_cannot_lead_to_return): New functions.
22259         * cgraph.c (cgraph_node_cannot_return,
22260         cgraph_edge_cannot_lead_to_return): Use them.
22261         * ipa-pure-const.c (pure_const_names): New static var.
22262         (check_call): Handle calls not leading to return.
22263         (pure_const_read_summary): Dump info read.
22264         (propagate): Dump info about propagation process; ignore side effects
22265         of functions not leading to exit; fix handling of pure functions.
22266
22267 2010-05-30  Jan Hubicka  <jh@suse.cz>
22268
22269         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
22270         for tail call epilogues.
22271
22272 2010-05-30  Jan Hubicka  <jh@suse.cz>
22273
22274         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
22275         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
22276         dump files.
22277
22278 2010-05-29  Jan Hubicka  <jh@suse.cz>
22279
22280         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
22281         node; remove references in node we no longer keep in cgrpah but need
22282         body of.
22283
22284 2010-05-29  Jan Hubicka  <jh@suse.cz>
22285
22286         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
22287
22288 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22289
22290         PR target/44165
22291         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
22292
22293 2010-05-29  Jan Hubicka  <jh@suse.cz>
22294
22295         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
22296         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
22297         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
22298         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
22299         debug_names_replaced_by, debug_update_ssa): Likewise.
22300         * sbitmap.c (debug_sbitmap): Likewise.
22301         * genrecog.c (debug_decision, debug_decision_list): Likewise.
22302         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
22303         debug_tree_chain): Likewise.
22304         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
22305         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
22306         * optabs.c (debug_optab_libfuncs): Likewise.
22307         (verify_loop_closed_ssa): Likewise.
22308         * value-prof.c (verify_histograms): Likewise.
22309         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
22310         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
22311         * cfghooks.c (verify_flow_info): Likewise.
22312         * fold-const.c (debug_fold_checksum): Likewise.
22313         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
22314         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
22315         Likewise.
22316         * omega.c (debug_omega_problem): Likewise.
22317         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
22318         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
22319         * dominance.c (verify_dominators, debug_dominance_info,
22320         debug_dominance_tree): Likewise.
22321         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
22322         * df_regno_debug, df_ref_debug,
22323         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
22324         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
22325         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
22326         * sel-sched.c (debug_state): Likewise.
22327         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
22328         Likewise.
22329         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
22330         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
22331         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
22332         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
22333         Likewise.
22334         * c-pretty-print.c (debug_c_tree): Likewise.
22335         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
22336         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
22337         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
22338         * ebitmap.c (debug_ebitmap): Likewise.
22339         * function.c (debug_find_var_in_block_tree): Likewise.
22340         * print-rtl.c (debug_rtx): Likewise.
22341         (debug_rtx_count): Likewise.
22342         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
22343         * stor-layout.c (debug_rli): Likewise.
22344         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
22345         * tree-data-ref.c (debug_data_references,
22346         debug_data_dependence_relations, debug_data_reference,
22347         debug_data_dependence_relation, debug_rdg_vertex,
22348         debug_rdg_component, debug_rdg): Likewise.
22349         * tree-affine.c (debug_aff): Likewise.
22350         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
22351         Likewise.
22352         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
22353         * emit-rtl.c (verify_rtl_sharing): Likewise.
22354         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
22355         debug_value_expressions): Likewise.
22356         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
22357         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
22358         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
22359         * cfglayout.c (verify_insn_chain): Likewise.
22360         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
22361         debug_clast_stmt, debug_generated_program): Likewise.
22362         * ggc-page.c (debug_print_page_list): Likewise.
22363         * tree-ssa-ter.c (debug_ter): Likewise.
22364         * graphite-dependences.c (debug_pddr): Likewise.
22365         * sched-deps.c (debug_ds): Likewise.
22366         * tree-ssa.c (verify_ssa): Likewise.
22367         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
22368         debug_scattering_functions, debug_iteration_domains, debug_pdr,
22369         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
22370         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
22371         * tree-inline.c (debug_find_tree): Likewise.
22372         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
22373         debug_ppl_powerset_matrix): Likewise.
22374         * var-tracking.c (debug_dv): Likewise.
22375         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
22376         * cfgloop.c (verify_loop_structure): Likewise.
22377         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
22378         * c-common.c (verify_sequence_points): Likewise.
22379         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
22380         debug_candidates, debug_rgn_dependencies): Likewise.
22381         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
22382         * debug_constraint_graph, debug_solution_for_var,
22383         debug_sa_points_to_info): Likewise.
22384         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
22385         Likewie.
22386         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
22387         debug_loops, debug_loop, debug_loop_num): Likewise.
22388         * passes.c (debug_pass): Likewise.
22389         (dump_properties): Likewise; add cfglayout property.
22390         (debug_properties): Likewise.
22391         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
22392         * varpool.c (debug_varpool): Likewise.
22393         * regcprop.c (debug_value_data): Likewise.
22394         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
22395         debug_immediate_uses_for): Likewise.
22396
22397 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
22398
22399         PR bootstrap/44315
22400         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
22401         Filter out insn-flags.h.
22402
22403 2010-05-29  Jan Hubicka  <jh@suse.cz>
22404
22405         * cgraph.h (struct varpool_node_set_def,
22406         struct cgraph_node_set_def): Remove unused AUX pointer.
22407         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
22408         VEC_empty macro.
22409
22410 2010-05-29  Jan Hubicka  <jh@suse.cz>
22411
22412         PR middle-end/44324
22413         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
22414
22415 2010-05-29  Richard Guenther  <rguenther@suse.de>
22416
22417         * lto-streamer.c (cached_bp): New global variable.
22418         (bitpack_create): Return the cached bitpack, if available.
22419         (bitpack_delete): Clear and cache the bitpack, if appropriate.
22420         (bp_pack_value): Remove redundant asserts.
22421
22422 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
22423
22424         PR middle-end/44306
22425         * tree-if-conv.c (is_true_predicate): New.
22426         (is_predicated): Use is_true_predicate.
22427         (add_to_predicate_list): Same.  Do not use unshare_expr.
22428         (add_to_dst_predicate_list): Same.
22429
22430 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
22431
22432         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
22433         field on edges.
22434         (predicate_bbs): Same.
22435         (clean_predicate_lists): Same.
22436         (find_phi_replacement_condition): Do not AND the predicate from
22437         edge->aux.
22438
22439 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
22440
22441         PR bootstrap/44315
22442         * Makefile.in (build/gencondmd.o): Add a missing `\'.
22443
22444 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22445
22446         PR target/44261
22447         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
22448         (negdf2): Adjust expander pattern and use negdf2_slow.
22449         (negsf2): Likewise.
22450
22451 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
22452
22453         * basic-block.h (struct control_flow_graph): Move last_label_uid field
22454         up.
22455         * df.h (struct df_base_ref): Move regno field up.
22456         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
22457         * expr.h (struct separate_ops): Move location field up.
22458         * optabs.h (struct optab_d): Move libcall_basename field down.
22459         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
22460         * config/i386/i386.h (struct machine_function): Convert call_abi field
22461         into a bitfield.  Move cfa field to the end of the structure.
22462
22463 2010-05-29  Jan Hubicka  <jh@suse.cz>
22464
22465         * varpool.c (varpool_get_node): Fix lookup.
22466
22467 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22468
22469         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
22470         RTL specific prototypes with #ifdef RTX_CODE.
22471         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
22472         * config/spu/t-spu-elf: Fix dependencies.
22473
22474         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
22475
22476 2010-05-29  Mike Stump  <mikestump@comcast.net>
22477
22478         PR bootstrap/44315
22479         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
22480         TM_H when building to avoid dependency loops.
22481
22482 2010-05-29  Jan Hubicka  <jh@suse.cz>
22483
22484         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
22485         refs and body; not the whole node for masters of materialized clones.
22486
22487 2010-05-29  Mike Stump  <mikestump@comcast.net>
22488
22489         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
22490
22491 2010-05-29  Jan Hubicka  <jh@suse.cz>
22492
22493         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
22494         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
22495         use of clone_function_name.
22496         * cgraph.h (cgraph_create_virtual_clone,
22497         cgraph_function_versioning): update prototypes.
22498         (clone_function_name): Declare.
22499         * ipa-cp.c (ipcp_insert_stage): Update call of
22500         cgraph_create_virtual_clone.
22501         * omp-low.c (create_omp_child_function_name): Use
22502         cgraph_create_virtual_clone.
22503         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
22504         (cgraph_function_versioning): Take SUFFIX argument; produce new name
22505         and make decl local.
22506
22507 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22508
22509         * vec.h: Include statistics.h
22510         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
22511         with VEC_H.
22512
22513 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22514
22515         * c-lex.c: Do not include c-tree.h.
22516         * c-pretty-print.c: Likewise.
22517         * c-opts.c: Likewise.
22518         * c-gimplify.c: Likewise.
22519         * c-common.c: Likewise.
22520         * c-dump.c: Likewise.  Include c-common.h.
22521
22522 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22523
22524         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
22525         before including diagnostic-core.h.
22526         (c_cpp_error): New prototype moved from c-tree.h.
22527         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
22528         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
22529         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
22530         (c_cpp_error): Prototype moved to c-common.h.
22531         * Makefile.in: Update dependency for C_COMMON_H.
22532
22533 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22534
22535         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
22536         * c-common.c (c_register_addr_space): Remove here.
22537         * c-decl.c (c_register_addr_space): Re-add here.
22538
22539 2010-05-28  Mike Stump  <mikestump@comcast.net>
22540
22541         * config/darwin-c.c: Remove c-tree.h include.
22542
22543 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22544
22545         * gcc.c: Include diagnostic.h.
22546         (error_count): Remove.  All users changed to use errorcount.
22547         (programname): Remove.  All users changed to use progname.
22548         (fancy_abort, internal_error, fatal_error, error, warning, inform,
22549         fnotice): Remove.
22550         (execute): Don't include "Internal error" and bug reporting
22551         information in argument of internal_error call.
22552         (process_command): Don't increment error_count after calling
22553         perror_with_name.
22554         (input_filename): Rename to gcc_input_filename.  All users
22555         changed.
22556         (main): Call diagnostic_initialize.  Register delete_temp_files
22557         with atexit.  Use seen_error to test for errors.
22558         * gcc.h: Include diagnostic-core.h.
22559         (fatal_error, error, warning): Remove.
22560         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
22561         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
22562         (gcc.o): Update dependencies.
22563
22564 2010-05-28  Jeff Law  <law@redhat.com>
22565
22566         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
22567         functions.
22568         * ira.h (ira_bad_reload_regno): Declare
22569         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
22570
22571         * ira-color.c (update_curr_costs): Free updated hard reg costs.
22572         (ira_reassign_conflict_allocnos): Remove bogus asserts.
22573         (allocno_reload_assign): Likewise.
22574
22575 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
22576
22577         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
22578         build1_stat.
22579
22580 2010-05-28  Richard Guenther  <rguenther@suse.de>
22581
22582         PR lto/44312
22583         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
22584         Stream fixed-point constants mode.
22585         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
22586         and TYPE_PRECISION.
22587         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
22588         Stream fixed-point constants mode.
22589         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
22590         and TYPE_PRECISION.
22591
22592 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
22593
22594         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
22595         only place it was called from.
22596         (number_of_latch_executions): Do not return chrec_dont_know when the
22597         may_be_zero is a runtime condition: instead, return a COND_EXPR
22598         including the may_be_zero condition.
22599         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
22600         of nb_iterations.
22601         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
22602         COND_EXPRs.
22603
22604 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
22605
22606         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
22607         generate COND_EXPRs for degenerate_phi_result.
22608
22609 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
22610
22611         PR middle-end/44293
22612         * tree-if-conv.c (if_convertible_loop_p): Check the
22613         if-convertibility of phi nodes in non predicated BBs.
22614
22615 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22616
22617         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
22618
22619 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22620
22621         PR driver/15303
22622         * gcc.c (inform, warning, inform): New functions.
22623         (fatal_ice): Rename to internal_error; change cmsgid parameter to
22624         gmsgid.  All callers changed.
22625         (notice): Rename to fnotice; add parameter fp.  All callers changed.
22626         (fatal_error): Rename to fatal_signal.  All users changed.
22627         (fatal): Rename to fatal_error; change cmsgid parameter to
22628         gmsgid.  All callers changed.
22629         (process_command): Use warning instead of error for warnings.
22630         (end_going_arg): Don't use _() around argument of error.
22631         (do_spec_1): Use inform for message from %n specs.  Use warning
22632         instead of error for warnings.
22633         (main): Use inform for comparison messages.  Use warning for
22634         message about unused linker input.
22635         (error): Increment error_count.  Print "error: ".
22636         * gcc.h (fatal): Change to fatal_error.
22637         (warning): Declare.
22638         * config/darwin-driver.c (darwin_default_min_version): Use warning
22639         instead of fprintf for warnings.
22640         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
22641
22642 2010-05-28  Julian Brown  <julian@codesourcery.com>
22643
22644         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
22645         (*thumb2_addsi3_compare0_scratch): New.
22646         * config/arm/constraints.md (Pv): New.
22647         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
22648         for ARM mode only.
22649         (*addsi3_compare0_scratch): Likewise.
22650
22651 2010-05-28  Jan Hubicka  <jh@suse.cz>
22652
22653         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
22654         check.
22655         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
22656         only on local statics.
22657
22658 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
22659
22660         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
22661
22662 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
22663
22664         PR bootstrap/44314
22665         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
22666         (OPTION_GLIBC): Define.
22667
22668 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
22669
22670         PR debug/41048
22671         * dwarf2out.c (double_int_type_size_in_bits): New function.
22672         (round_up_to_align): Change first argument and return value to
22673         double_int.
22674         (field_byte_offset): Work internally on double_ints.
22675
22676         PR target/43636
22677         * builtins.c (expand_movstr): Use a temporary pseudo instead
22678         of target even when target is not NULL and not const0_rtx, but
22679         fails movstr predicate.
22680         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
22681
22682 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
22683
22684         * final.c (rest_of_clean_state): Use %m in errors instead of
22685         strerror (errno).
22686         * gengtype.c (read_input_list, close_output_files): Use xstrerror
22687         instead of strerror.
22688         * toplev.c (process_options): Use %m in errors instead of strerror
22689         (errno).
22690         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
22691         (errno).
22692
22693 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
22694
22695         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
22696         (ix86_canonical_va_list_type): Make static.  Add declaration.
22697         (ix86_enum_va_list): Make static.  Reindent.
22698         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
22699         (ix86_canonical_va_list_type): Ditto.
22700         (ix86_enum_va_list): Ditto.
22701
22702 2010-05-28  Richard Guenther  <rguenther@suse.de>
22703
22704         * lto-wrapper.c (run_gcc): With -save-temps generate a
22705         user-visible ltrans filename.  Fixup ltrans unit numbering.
22706
22707 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
22708
22709         * c-common.c (c_common_nodes_and_builtins): Replace use
22710         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
22711         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
22712         to ix86_enum_va_list.
22713         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
22714         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
22715         (TARGET_ENUM_VA_LIST_P): Add hook description.
22716         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
22717         * target.h (gcc_target): Add enum_va_list hook.
22718
22719         PR bootstrap/44299
22720         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
22721         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
22722         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
22723
22724 2010-05-28  Alan Modra  <amodra@gmail.com>
22725
22726         PR target/44266
22727         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
22728         emit_library_call machinery to set up __tls_get_addr calls.
22729
22730 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22731
22732         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
22733
22734 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
22735
22736         Revert fix for PR c++/44188
22737         * c-common.c (is_typedef_decl): Revert the moving of  this
22738         definition ...
22739         * tree.c (is_typedef_decl): ... here.
22740         (typdef_variant_p): Revert the moving of this  definition
22741         here from cp/tree.c.
22742         * c-common.h (is_typedef_decl): Revert the moving of this
22743         declaration ...
22744         * tree.h (is_typedef_decl): ... here.
22745         (typedef_variant_p): Revert the moving of this  declaration here
22746         from cp/cp-tree.h
22747         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
22748         (gen_tagged_type_die): Revert the splitting out of ...
22749         (gen_type_die_with_usage): ... this function. Revert the anonymous
22750         tagged type handling.
22751         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
22752         typedefs naming anonymous tagged types.
22753
22754 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
22755
22756         * config/rs6000/rs6000-modes.def (PSImode): Delete.
22757
22758 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
22759
22760         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
22761         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
22762         throughout.
22763         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
22764         "xer" to "ca".
22765         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
22766         XER_REGS to CA_REGS throughout.
22767         * config/rs6000/rs6000.h: Same.
22768         (ADDITIONAL_REGISTER_NAMES): Add "xer".
22769         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
22770         that mode_iterator "P" is the size for arithmetic carries as well.
22771         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
22772
22773 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
22774
22775         PR bootstrap/44255
22776         * combine.c (struct rtx_subst_pair): Define unconditionally.
22777         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
22778         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
22779         Call make_compound_operation on pair->to.
22780         (propagate_for_debug): Don't call make_compound_operation here.
22781         Always use simplify_replace_fn_rtx.
22782
22783 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
22784
22785         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
22786         * config/xtensa/xtensa.c (override_options): Check
22787           TARGET_FORCE_NO_PIC and set flag_pic.
22788         * config/xtensa/xtensa.opt: Document -mforce-no-pic
22789
22790 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
22791
22792         PR bootstrap/44299
22793         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
22794         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
22795
22796 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
22797
22798         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
22799         toplev.h.
22800         * diagnostic.c: Don't include toplev.h.
22801         (progname): Define.  Moved from toplev.c.
22802         (seen_error): New function.
22803         * diagnostic.h: Include diagnostic-core.h.
22804         (diagnostic_t, emit_diagnostic): Don't declare here.
22805         * toplev.c (progname): Move to toplev.c.
22806         (emit_debug_global_declarations, compile_file, finalize,
22807         do_compile, toplev_main): Use seen_error.
22808         * toplev.h: Include diagnostic-core.h.
22809         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
22810         internal_error, warning, warning_at, error, error_n, error_at,
22811         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
22812         verbatim, fnotice, progname): Move to diagnostic-core.h.
22813         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
22814         (expand_builtin_expect): Use seen_error.
22815         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
22816         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
22817         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
22818         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
22819         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
22820         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
22821         errorcount for errors.
22822         * c-opts.c (c_common_finish): Use seen_error.
22823         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22824         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
22825         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
22826         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
22827         (get_coverage_counts): Use seen_error.
22828         * dwarf2out.c (dwarf2out_finish): Use seen_error.
22829         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
22830         gimplify_body): Use seen_error.
22831         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
22832         * ipa-pure-const.c (gate_pure_const): Use seen_error.
22833         * ipa-reference.c (gate_reference): Use seen_error.
22834         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
22835         * lambda-code.c: Include diagnostic-core.h instead of
22836         diagnostic.h.
22837         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22838         * lto-compress.c: Include diagnostic-core.h instead of
22839         diagnostic.h.
22840         * lto-section-in.c: Include diagnostic-core.h instead of
22841         diagnostic.h.
22842         * lto-streamer-out.c: Include diagnostic-core.h instead of
22843         diagnostic.h.
22844         * lto-streamer.c: Include diagnostic-core.h instead of
22845         diagnostic.h.
22846         (gate_lto_out): Use seen_error.
22847         * matrix-reorg.c: Include diagnostic-core.h instead of
22848         diagnostic.h.
22849         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
22850         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
22851         (gate_expand_omp, lower_omp_1): Use seen_error.
22852         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
22853         (rest_of_decl_compilation, rest_of_type_compilation,
22854         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
22855         * tree-cfg.c (label_to_block_fn): Use seen_error.
22856         * tree-inline.c (optimize_inline_calls): Use seen_error.
22857         * tree-mudflap.c (mudflap_finish_file): Use
22858         seen_error.
22859         * tree-optimize.c (gate_all_optimizations,
22860         gate_all_early_local_passes, gate_all_early_optimizations): Use
22861         seen_error.
22862         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
22863         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
22864         (varpool_remove_unreferenced_decls,
22865         varpool_assemble_pending_decls): Use seen_error.
22866         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
22867         (TOPLEV_H, DIAGNOSTIC_H): Update.
22868         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
22869         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
22870         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
22871         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
22872         coverage.o, lambda-code.o): Update dependencies.
22873
22874 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
22875
22876         PR c++/44188
22877         * c-common.c (is_typedef_decl): Move this definition ...
22878         * tree.c (is_typedef_decl): ... here.
22879         (typdef_variant_p): Move definition here from cp/tree.c.
22880         * c-common.h (is_typedef_decl): Move this declaration ...
22881         * tree.h (is_typedef_decl): ... here.
22882         (typedef_variant_p): Move declaration here from cp/cp-tree.h
22883         * dwarf2out.c (is_naming_typedef_decl): New function.
22884         (gen_tagged_type_die): Split out of ...
22885         (gen_type_die_with_usage): ... this function. When an anonymous
22886         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22887         is emitted for the typedef.
22888         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22889         anonymous tagged types.
22890
22891 2010-05-27  Jason Merrill  <jason@redhat.com>
22892
22893         * print-tree.c (debug_vec_tree): New fn.
22894         (print_vec_tree): New fn.
22895         * tree.h: Declare them.
22896         * gdbinit.in (pvt): New command.
22897
22898         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
22899
22900         * gdbinit.in (pdd): New command.
22901
22902 2010-05-27  Jan Hubicka  <jh@suse.cz>
22903
22904         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
22905         (update_caller_keys): Return early if there are no callers;
22906         only update fibheap when decresing the key.
22907         (update_callee_keys): Avoid recursion.
22908         (decide_inlining_of_small_functions): When badness does not match;
22909         re-insert into fibheap.
22910
22911 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
22912
22913         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
22914         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
22915         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
22916         (ALL_HOST_OBJS): Now a union of the above two.
22917         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
22918         all files in ALL_HOST_FRONTEND_OBJS.
22919         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
22920
22921         * c-common.c: Pretend to be a backend file by undefining
22922         IN_GCC_FRONTEND (still need rtl.h here).
22923
22924 2010-05-27  Jan Hubicka  <jh@suse.cz>
22925
22926         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
22927         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
22928
22929 2010-05-27  Jan Hubicka  <jh@suse.cz>
22930
22931         * sched-ebb.c: Rename struct deps to struct deps_desc.
22932         * ddg.c: Likewise.
22933         * sel-sched-ir.c: Likewise.
22934         * sched-deps.c: Likewise.
22935         * sched-int.h: Likewise.
22936         * sched-rgn.c: Likewise.
22937
22938 2010-05-27  Jon Beniston  <jon@beniston.com>
22939
22940         PR 43726
22941         * config/lm32/lm32.h: Remove definition of
22942         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
22943
22944 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
22945
22946         PR lto/44230
22947         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
22948
22949 2010-05-27  Richard Guenther  <rguenther@suse.de>
22950
22951         PR tree-optimization/44284
22952         * tree-vect-stmts.c (vectorizable_assignment): Handle
22953         sign-changing conversions as simple copy.
22954
22955 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
22956
22957         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
22958         Bionic C library.
22959         (__gthread_active_p): Check for pthread_create if compiling against
22960         Bionic C library.
22961
22962 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
22963
22964         Support compilation for Android platform.  Reimplement -mandroid.
22965
22966         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
22967         (*android*): Set ANDROID_DEFAULT.
22968         (arm*-*-linux*): Include linux-android.h.
22969         (arm*-*-eabi*): Don't include previous -mandroid implementation.
22970         * config/arm/eabi.h: Remove, move Android-specific parts ...
22971         * config/linux-android.h: ... here.  New file.
22972         * config/arm/eabi.opt: Rename to ...
22973         * config/linux-android.opt: ... this.
22974         (mandroid): Allow -mno-android option.  Initialize based on
22975         ANDROID_DEFAULT.
22976         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
22977         Move logic to corresponding LINUX_TARGET_* macros.
22978         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
22979         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
22980         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
22981         Android definitions.
22982         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
22983         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
22984         Document.
22985
22986 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
22987
22988         Add support for Bionic C library
22989
22990         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
22991         macro.
22992         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
22993         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
22994
22995         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
22996         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
22997         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
22998         to support multiple C libraries.  Handle Bionic.
22999         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
23000         (BIONIC_DYNAMIC_LINKER64): Define.
23001         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
23002         Update.
23003         (TARGET_HAS_SINCOS): Enable for Bionic.
23004
23005         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
23006         the last option specified on command line take effect.
23007         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
23008         (mbionic): New.
23009         (mglibc, muclibc): Update.
23010
23011         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
23012         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
23013         DEFAULT_LIBC.
23014
23015         * doc/invoke.texi (-mglibc, -muclibc): Update.
23016         (-mbionic): Document.
23017
23018 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23019
23020         * c-common.h (c_register_addr_space): Add prototype.
23021         (ADDR_SPACE_KEYWORD): Remove.
23022         * c-common.c (c_register_addr_space): New function.
23023         (c_addr_space_name): Reimplement.
23024         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
23025
23026         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
23027         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
23028
23029         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
23030         Remove TARGET_ADDR_SPACE_KEYWORDS.
23031
23032 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
23033
23034         * input.c: New file.
23035         * input.h (main_input_filename): Move declaration to toplev.h.
23036         * toplev.c (input_location, line_table): Move to input.c
23037         * toplev.h (main_input_filename): Move declaration from input.h.
23038         * tree.c (expand_location): Move to input.c.
23039         * Makefile.in (OBJS-common): Add input.o.
23040         (input.o): Add dependencies.
23041
23042 2010-05-27  Richard Guenther  <rguenther@suse.de>
23043
23044         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
23045         for non-existant files.
23046         (fork_execute): Mark args_name file as deleted.
23047
23048 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
23049
23050         PR bootstrp/44287
23051         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
23052         (narrow_signed_type): Likewise.
23053
23054 2010-05-26  Jan Hubicka  <jh@suse.cz>
23055
23056         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
23057         edge only when checking is enabled; check using former_clone_of;
23058         check inline clones too.
23059         (cgraph_materialize_clone): Record former_clone_of pointer.
23060         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
23061         combining redirections; dump args_to_skip bitmap
23062         (cgraph_materialize_all_clones): Do no redirection here.
23063         * ipa-inline.c (inline_transform): Do redirection here.
23064         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
23065         cheking only).
23066
23067 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23068
23069         * config/avr/avr-c.c: Do not include regs.h.
23070         Include cpplib.h for cpp_define and tree.h for c-common.h.
23071         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
23072         * config/avr/t-avr: Fix dependencies for avr-c.o.
23073
23074 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23075
23076         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
23077         string instead of SYMBOL_REF rtx.
23078         * rtl.h (set_stack_check_libfunc): Move prototype from here...
23079         * libfuncs.h: ...to here.  Adjust for explow.c change.
23080
23081 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
23082
23083         * pretty-print.c: Don't include ggc.h.
23084         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
23085         (identifier_to_locale): Use them for allocation.
23086         * pretty-print.h (identifier_to_locale_alloc,
23087         identifier_to_locale_free): Declare.
23088         * toplev.c (alloc_for_identifier_to_locale): New.
23089         (general_init): Set identifier_to_locale_alloc and
23090         identifier_to_locale_free.
23091         * Makefile.in (pretty-print.o): Update dependencies.
23092
23093 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
23094
23095         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
23096         pointer types if they have different alignment or mode.
23097
23098 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
23099
23100         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23101         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23102         * config/sparc/sparc-protos.h (function_value): Remove declaration.
23103         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
23104         sparc_function_value_regno_p): New functions.
23105         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23106         TARGET_FUNCTION_VALUE_REGNO_P): Define.
23107         (function_value): Rename to...
23108         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
23109         argument to 'outgoing'.
23110         (function_arg_record_value, function_arg_union_value,
23111         function_arg_vector_value): Update comment.
23112
23113 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
23114
23115         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
23116         (fde_needed_for_eh_p): New predicate.
23117         (output_call_frame_info): Use it throughout to decide whether FDEs
23118         are needed for EH purpose.
23119         (dwarf2out_begin_prologue): Reorder assignments.
23120
23121 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23122
23123         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
23124         special case loop->header.
23125         (is_predicated): New.
23126         (if_convertible_loop_p): Call it.
23127
23128 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23129
23130         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
23131         iterator in parameter.  Do not generate code during the analysis.
23132         (tree_if_convert_cond_stmt): Removed.
23133         (tree_if_convert_stmt): Removed.
23134         (predicate_bbs): New.
23135         (if_convertible_loop_p): Call predicate_bbs.
23136         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
23137         now contains all the analysis part.
23138
23139 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23140
23141         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
23142         statements in the analysis part.
23143         (tree_if_convert_stmt): Update comment.
23144         (remove_conditions_and_labels): New.
23145         (combine_blocks): Call remove_conditions_and_labels.
23146         (tree_if_conversion): Update comment.
23147
23148 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23149
23150         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
23151         than 2 predecessors or more than 2 successors.
23152
23153 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23154
23155         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
23156         of loops in which the data dependence analysis fails.
23157
23158 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23159
23160         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
23161         CDI_POST_DOMINATORS.
23162         (tree_if_conversion): Same.
23163
23164 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23165
23166         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
23167
23168 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
23169
23170         * tree-if-conv.c: Update copyright years.  Fix comments.
23171         Fix indentation.
23172
23173 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
23174
23175         * builtin-types.def (BT_INT128): New primitive type.
23176         (BT_UINT128): Likewise.
23177         * c-common.c (c_common_r): Add __int128 keyword.
23178         (c_common_type_for_size): Handle __int128.
23179         (c_common_type_for_mode): Likewise.
23180         (c_common_signed_or_unsigned_type): Likewise.
23181         (c_common_nodes_and_builtins): Add builtin type
23182         if target supports 128-bit integer scalar.
23183         * c-common.h (enum rid): Add RID_INT128.
23184         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
23185         if target supports 128-bit integer scalar.
23186         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
23187         (finish_declspecs): Likewise.
23188         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
23189         (c_token_starts_declspecs): Likewise.
23190         (c_parser_declspecs): Likewise.
23191         (c_parser_attributes): Likewise.
23192         (c_parser_objc_selector): Likewise.
23193         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
23194         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
23195         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
23196         * tree.c (make_or_reuse_type): Likewise.
23197         (make_unsigned_type): Likewise.
23198         (build_common_tree_nodes_2): Likewise.
23199         * tree.h (enum integer_type_kind): Add itk_int128 and
23200         itk_unsigned_int128.
23201         (int128_integer_type_node): New define.
23202         (int128_unsigned_type_node): New define.
23203         * doc/extend.texi: Add documentation about __int128 type.
23204
23205 2010-05-26  Richard Guenther  <rguenther@suse.de>
23206
23207         * tree-ssa-sccvn.c (copy_nary): Adjust.
23208         (copy_phis): Rename to ...
23209         (copy_phi): ... this.  Adjust.
23210         (copy_references): Rename to ...
23211         (copy_reference): ... this.  Adjust.
23212         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
23213         result into the valid table.
23214
23215 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23216
23217         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
23218         insn-config.h, insn-codes.h, recog.h, and optabs.h.
23219
23220 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23221
23222         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
23223
23224 2010-05-26  Richard Guenther  <rguenther@suse.de>
23225
23226         * opts.c (common_handle_option): Handle OPT_Ofast.
23227
23228 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
23229
23230         * diagnostic.c: Don't include opts.h.
23231         (permissive_error_option): Define.
23232         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
23233         for classify_diagnostic.  Don't use memset for
23234         classify_diagnostic.  Initialize new and recently added fields.
23235         (diagnostic_classify_diagnostic): Use context->n_opts instead of
23236         N_OPTS.
23237         (diagnostic_report_diagnostic): Pass context parameter to
23238         diagnostic_report_warnings_p.  Use option_enabled and option_name
23239         hooks from context.
23240         (emit_diagnostic): Use permissive_error_option.
23241         (permerror): Likewise.
23242         * diagnostic.h: Don't include options.h.
23243         (struct diagnostic_context): Add n_opts, opt_permissive,
23244         inhibit_warnings, warn_system_headers, option_enabled and
23245         option_name fields.  Change classify_diagnostic to a pointer.
23246         * opts-diagnostic.h: New file.
23247         * opts.c: Include opts-diagnostic.h.
23248         (common_handle_option): Set global_dc fields for -Wfatal-errors,
23249         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
23250         (option_name): New function.
23251         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
23252         (c_common_handle_option): Set global_dc->permissive for
23253         -fpermissive.
23254         * c-common.c (c_cpp_error): Save and restore
23255         global_dc->warn_system_headers, not variable warn_system_headers.
23256         * toplev.c: Include opts-diagnostic.h.
23257         (general_init): Update call to diagnostic_initialize.  Set
23258         global_dc->show_column, global_dc->option_enabled and
23259         global_dc->option_name.
23260         (process_options): Don't set global_dc fields here.
23261         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
23262         (diagnostic.o, opts.o, toplev.o): Update dependencies.
23263
23264 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
23265
23266         * config/picochip/picochip.md (movsi): Split a movsi from a
23267         const after reload.
23268
23269 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23270
23271         * ggc-zone.c: Update copyright year.
23272         (poison_region): Mark memory for Valgrind as undefined before
23273         memset () call and inaccessible afterwards.
23274         (ggc_pch_total_size): Change type of i to int.
23275
23276 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23277
23278         * ggc-common.c (ggc_free_overhead): Allow empty slot.
23279
23280 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
23281
23282         * ggc-common.c: Update copyright year.
23283         (ggc_rlimit_bound): Remove prototype.  Compile only if
23284         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
23285         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
23286         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
23287         (ggc_min_heapsize_heuristic): Likewise.
23288
23289 2010-05-26  Richard Guenther  <rguenther@suse.de>
23290
23291         PR rtl-optimization/44164
23292         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
23293         no-common access-path disambiguation.
23294         (indirect_ref_may_alias_decl_p): Adjust.
23295         (indirect_refs_may_alias_p): Likewise.
23296         (refs_may_alias_p_1): Likewise.
23297
23298 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23299
23300         * c-typeck.c: Do not include expr.h.
23301
23302 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
23303
23304         * rtl.h (decl_default_tls_model): Move prototype from here...
23305         * output.h: ...to here.
23306         * c-decl.c: Do not include rtl.h.
23307         * c-pragma.c: Likewise.
23308         * c-parser.c: Likewise.
23309         * c-gimplify.c: Likewise.  And also not hard-reg-set.
23310         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
23311         FIXME note for it.  Add a FIXME note for expr.h.
23312         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
23313         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
23314         defined.
23315
23316 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
23317
23318         PR target/44199
23319         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
23320         or total_size is larger than red zone size for non-V4 ABI, emit a
23321         stack_tie resp. frame_tie insn before stack pointer restore.
23322         * config/rs6000/rs6000.md (frame_tie): New insn.
23323
23324 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
23325
23326         * function.h (struct function): Add can_throw_non_call_exceptions bit.
23327         * lto-streamer-in.c (input_function): Stream it in.
23328         * lto-streamer-out.c (output_function): Stream it out.
23329         * function.c (allocate_struct_function): Set it.
23330         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
23331         for flag_non_call_exceptions.
23332         * cfgbuild.c (control_flow_insn_p): Likewise.
23333         (make_edges): Likewise.
23334         * cfgexpand.c (expand_stack_alignment): Likewise.
23335         * combine.c (distribute_notes): Likewise.
23336         * cse.c (cse_extended_basic_block): Likewise.
23337         * except.c (insn_could_throw_p): Likewise.
23338         * gcse.c (simple_mem): Likewise.
23339         * ipa-pure-const.c (check_call): Likewise.
23340         (check_stmt ): Likewise.
23341         * lower-subreg.c (lower-subreg.c): Likewise.
23342         * optabs.c (emit_libcall_block): Likewise.
23343         (prepare_cmp_insn): Likewise.
23344         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
23345         * postreload.c (rest_of_handle_postreload): Likewise.
23346         * reload1.c (reload_as_needed): Likewise.
23347         (emit_input_reload_insns): Likewise.
23348         (emit_output_reload_insns): Likewise.
23349         (fixup_abnormal_edges): Likewise.
23350         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
23351         * store-motion.c (find_moveable_store): Likewise.
23352         * tree-eh.c (stmt_could_throw_p): Likewise.
23353         (tree_could_throw_p): Likewise.
23354         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23355         * config/arm/arm.c (arm_expand_prologue): Likewise.
23356         (thumb1_expand_prologue): Likewise.
23357         * config/rx/rx.md (cbranchsf4): Likewise.
23358         (cmpsf): Likewise.
23359         * config/s390/s390.c (s390_emit_prologue): Likewise.
23360         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
23361         (inline_forbidden_into_p): New predicate.
23362         (expand_call_inline): Use it to forbid inlining.
23363         (tree_can_inline_p): Likewise.
23364
23365 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23366
23367         * config/i386/i386-c.c: Do not include rtl.h.
23368         * config/i386/t-i386: Update dependencies.
23369
23370 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23371
23372         * attribs.c: Do not include rtl.h.
23373         * Makefile.in: Update dependencies.
23374
23375 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
23376
23377         * double-int.h (double_int_and): New.
23378         * combine.c (try_combine): Clean up, use double_int_* and
23379         immed_double_int_const functions.
23380
23381 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23382
23383         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
23384         stderr to /dev/null instead of grep -q.
23385         * configure: Regenerate.
23386
23387 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
23388
23389         * Makefile.in (EXCEPT_H): Fix typo.
23390
23391 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
23392
23393         * ira-build.c (update_conflict_hard_reg_costs): New.
23394         (ira_build): Call update_conflict_hard_reg_costs.
23395
23396 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
23397
23398         PR debug/41371
23399         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
23400         ENABLE_CHECKING.
23401         (intersect_loc_chains): Walk the s2var's loc_chain together
23402         with s1node chain as long as the locations are equal, don't
23403         call find_loc_in_1pdv in that case.
23404
23405         PR debug/42801
23406         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
23407         (copy_bind_expr): ... instead of here.
23408         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
23409         if the block hasn't been remapped.
23410         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
23411         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
23412
23413 2010-05-25  Richard Guenther  <rguenther@suse.de>
23414
23415         PR middle-end/44069
23416         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
23417         out-of-bounds array accesses.
23418
23419 2010-05-25  Richard Guenther  <rguenther@suse.de>
23420
23421         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
23422         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
23423         (run_gcc): Re-organize to make cleanup easier.
23424
23425 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23426
23427         * config/s390/s390.c (optimization_options): Fix and move the
23428         flag_prefetch_loop_arrays override ...
23429         (override_options): ... here.
23430
23431 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
23432
23433         * diagnostic.c: Don't include plugin.h.
23434         (diagnostic_report_diagnostic): Don't handle plugins specially
23435         here.  Pass context to internal_error callback.
23436         * diagnostic.h (struct diagnostic_context): Add context parameter
23437         to internal_error callback.
23438         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
23439         * plugin.h (struct diagnostic_context): Declare.
23440         (warn_if_plugins, plugins_internal_error_function): Declare.
23441         * toplev.c (general_init): Set global_dc->internal_error.
23442         * Makefile.in (diagnostic.o): Update dependencies.
23443
23444 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
23445
23446         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
23447         * config/rs6000/t-darwin64: New.
23448         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
23449         build crt2.
23450
23451 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
23452
23453         PR 44203
23454         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
23455         match the original (and intended) behaviour before r159557.  This
23456         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
23457         in two ways.
23458
23459 2010-05-25  Richard Guenther  <rguenther@suse.de>
23460
23461         * doc/invoke.texi: Document -Ofast.
23462         * target.h (struct gcc_target): Add handle_ofast.
23463         * target-def.h (TARGET_HANDLE_OFAST): Add.
23464         (TARGET_INITIALIZER): Adjust.
23465         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
23466         * common.opt (Ofast): Add.
23467
23468 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
23469
23470         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
23471         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
23472
23473 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
23474
23475         PR target/43610
23476         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
23477         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
23478         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
23479         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
23480
23481 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
23482
23483         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
23484         DW_OP_minus with negated offset instead of DW_OP_plus.
23485         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
23486
23487 2010-05-25  Wei Guozhi  <carrot@google.com>
23488
23489         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
23490         tst instruction and a new alternative.
23491         * config/arm/constraints.md (Pu): New constraint.
23492
23493 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
23494
23495         * function.c (assign_stack_local_1): Initialize variable
23496         to avoid warning when bootstrapping at -O3.
23497
23498 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
23499
23500         * configure.ac (all_lang_makefiles): Remove everything related to it.
23501         * configure: Regenerate.
23502         * Makefile.in: Fix reference to ada Make-lang.in.
23503         Remove support for LANG_MAKEFILES.
23504
23505 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
23506             Sandra Loosemore  <sandra@codesourcery.com>
23507
23508         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
23509         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
23510         description.  Add arm_neon_fp16_ok.
23511         (Add Options): Add arm_neon and arm_neon_fp16.
23512
23513 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
23514
23515         * diagnostic.c: Don't include flags.h.
23516         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
23517         context parameters.  Check flags in the context passed as a parameter.
23518         (diagnostic_build_prefix): Add context parameter.  Check
23519         show_column flag in context.
23520         (diagnostic_action_after_output): Check fatal_errors flag in context.
23521         (diagnostic_report_current_module): Check show_column flag in context.
23522         (default_diagnostic_starter): Update call to
23523         diagnostic_build_prefix.
23524         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
23525         (emit_diagnostic): Pass context to permissive_error_kind.
23526         (permerror): Pass context to permissive_error_kind.
23527         * diagnostic.h (struct diagnostic_context): Add show_column,
23528         pedantic_errors, permissive and fatal_errors fields.
23529         (diagnostic_build_prefix): Update prototype.
23530         * langhooks.c
23531         * toplev.c (process_options): Set flags in global_dc from
23532         flag_show_column, flag_pedantic_errors, flag_permissive,
23533         flag_fatal_errors.
23534         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
23535         to diagnostic_build_prefix.
23536         * Makefile.in (diagnostic.o): Update dependencies.
23537
23538 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
23539
23540         * config/i386/ia32intrin.h (__crc32q): Define only if
23541         __SSE4_2__ is defined.
23542
23543 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
23544
23545         PR target/44132
23546         PR middle-end/43602
23547         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
23548         DECL_VISIBILITY_SPECIFIED.
23549         (emutls_decl): Set DECL_PRESERVE_P and copy
23550         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
23551         (emutls_finalize_control_var): New callback.
23552         (emutls_finish): Finalize emutls control variables.
23553         * toplev.c (compile_file): Move the call to emutls_finish ()
23554         before varpool_assemble_pending_decls ().
23555
23556 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
23557
23558         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
23559         added to the preprocessor condition.
23560
23561 2010-05-24  Paul Brook  <paul@codesourcery.com>
23562
23563         * gengtype-lex.l: Add HARD_REG_SET.
23564         * expr.c (expand_expr_real_1): Record writes to hard registers.
23565         * function.c (rtl_data): Add asm_clobbers.
23566         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
23567         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
23568         Use crtl->asm_clobbers.
23569
23570 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23571
23572         * doc/makefile.texi (Makefile): Mention stages 'profile'
23573         and 'feedback' for profiledbootstrap.
23574
23575 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
23576
23577         PR target/44245
23578         * config/i386/i386.c (def_builtin): Properly check
23579         OPTION_MASK_ISA_64BIT.
23580
23581 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
23582
23583         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
23584         typedefs with different but compatible types.  Allow duplicate
23585         typedefs with the same type except for pedantic non-C1X, but give
23586         warning for variably modified types.
23587         * c-typeck.c (tagged_types_tu_compatible_p,
23588         function_types_compatible_p, type_lists_compatible_p,
23589         comptypes_internal): Add parameter different_types_p; set
23590         *different_types_p for different but compatible types.  All
23591         callers changed.
23592         (comptypes_check_different_types): New.
23593         * c-tree.h (comptypes_check_different_types): Declare.
23594
23595 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
23596
23597         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
23598         * jump.c: Include basic-block.h.
23599         * profile.c: Likewise.
23600         * tree-profile.c: Likewise.
23601         * coverage.c: Likewise.
23602         * basic-block.h (optimize_function_for_size_p): Move to function.h.
23603         (optimize_function_for_speed_p): Likewise.
23604         * function.h (optimize_function_for_size_p,
23605         optimize_function_for_speed_p): Moved here from basic-block.h.
23606         * Makefile.in: Update dependencies.
23607
23608 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23609
23610         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
23611         before calling make; allow override through $MAKE.
23612         * doc/invoke.texi (Optimize Options): Document override.
23613
23614 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
23615
23616         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
23617         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23618         (rs6000_mode_dependent_address_ptr): Make static.
23619         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23620         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
23621         Remove.
23622
23623 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
23624
23625         PR target/43869
23626         * config/i386/i386.c: Make sure that the correct regparm is passed.
23627
23628 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
23629
23630         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
23631         * sbitmap.c: ...to here to internalize sbitmap element access.
23632         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
23633         Explain why basic-block.h is included.
23634         * function.h: Include tm.h for CUMULATIVE_ARGS.
23635         * Makefile.in: Update dependencies.
23636
23637 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
23638
23639         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
23640         New core types.
23641         * sbitmap.h (struct sbitmap_def): Do not typedef here.
23642         * sbitmap.c: Include sbitmap.h.
23643         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
23644         hard-reg-set.h.  Split everything related to regsets out from here...
23645         * regset.h: ...to here.  New file.
23646         * df.h: Include regset.h and sbitmap.h.
23647         * tree-flow.h: Likewise.
23648         * cfgloop.h: Likewise.
23649         * except.h: Do not include sbitmap.h.  Include hashtab.h.
23650         * cgraph.h: Include vec.h and function.h.
23651         * reload.h (struct insn_chain): Change types of live_throughout
23652         and dead_or_set from regset_head to bitmap_head.
23653         (compute_use_by_pseudos): Be defined also if regset.h is not included.
23654         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
23655         spilled_regs from regset_head to bitmap_head to avoid dependency
23656         in regset.h.
23657         * sel-sched-ir.h: Include regset.h.
23658         * reload.c: Include df.h before reload.h.
23659         * caller-save.c: Likewise.
23660         * reload1.c: Likewise.
23661         * ira.c: Likewise.
23662         (mark_elimination): Update type of r to bitmap, consistent with
23663         DF_LR_IN.
23664         * dominance.c: Include bitmap.h.
23665         * modulo-sched.c: Include df.h.
23666         * cfganal.c: Include bitmap.h and sbitmap.h.
23667         * cfgbuild.c: Include sbitmap.h.
23668         * lcm.c: Include sbitmap.h.
23669         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
23670         * domwalk.c: Include sbitmap.h, exclude ggc.h.
23671         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
23672         * cselib.c: Include bitmap.h.
23673         * tree-optimize.c: Include regset.h.
23674         * stmt.c: Include bitmap.h.
23675         * Makefile.in: Update dependencies.
23676
23677 2010-05-22  Jan Hubicka  <jh@suse.cz>
23678
23679         * cgraph.h (struct varpool_node): Add same_comdat_group.
23680         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
23681         pointer.
23682         (output_varpool): Update call of lto_output_varpool_node.
23683         (input_varpool): Read same_comdat_group pointer.
23684         (input_varpool_1): Fixup same_comdat_group pointer.
23685         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
23686         group is needed, all are.
23687         * varpool.c (varpool_remove_node): Remove node from same comdat group
23688         linklist too.
23689         (varpool_analyze_pending_decls): Walk same comdat groups.
23690
23691 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
23692
23693         * rtl.h (union rtunion_def): Remove rt_bit member.
23694         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
23695         * print-rtl (print_rtx): Do not print the member.
23696         * gengtype.c (adjust_field_rtx_def): Do not handle it.
23697         * gengenrtl.c (type_from_format): Likewise.
23698         (accessor_from_format): Likewise.
23699
23700 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
23701
23702         * dbgcnt.c: Include toplev.h instead of errors.h.
23703         * ira-emit.c: Don't include errors.h.
23704         * ira.c: Include toplev.h instead of errors.h.
23705         * lto-compress.c: Include toplev.h instead of errors.h.
23706         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
23707         ira.o, dbgcnt.o): Update dependencies.
23708
23709 2010-05-22  Richard Guenther  <rguenther@suse.de>
23710
23711         * gimple.c (gimple_types_compatible_p): Check type qualifications
23712         before merging pointer to complete and pointer to incomplete type.
23713         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
23714         we use our own resolution algorithm.  The gold linker plugin
23715         doesn't do the job we want it to do here.
23716
23717 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
23718
23719         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23720         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23721         (sparc_mode_dependent_address_p): New function.
23722
23723 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
23724
23725         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
23726
23727         * timevar.c: Do not include any core headers.
23728         (timevar_print): De-i18n-ize.
23729         (print_time): Likewise.
23730         * timevar.h (timevar_push, timevar_pop): Make inline functions.
23731
23732 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
23733
23734         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
23735         langhooks-def.h.
23736         (diagnostic_initialize): Initialize x_data not last_function.
23737         (diagnostic_report_current_function): Move to tree-diagnostic.c.
23738         (default_diagnostic_starter): Call
23739         diagnostic_report_current_module not
23740         diagnostic_report_current_function.
23741         (diagnostic_report_diagnostic): Initialize x_data not
23742         abstract_origin.
23743         (verbatim): Likewise.
23744         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
23745         x_data.
23746         (struct diagnostic_context): Change last_function to x_data.
23747         (diagnostic_auxiliary_data): Replace with
23748         diagnostic_context_auxiliary_data and
23749         diagnostic_info_auxiliary_data.
23750         (diagnostic_last_function_changed, diagnostic_set_last_function,
23751         diagnostic_report_current_function): Move to tree-diagnostic.h.
23752         (print_declaration, dump_generic_node, print_generic_stmt,
23753         print_generic_stmt_indented, print_generic_expr,
23754         print_generic_decl, debug_c_tree, dump_omp_clauses,
23755         print_call_name, debug_generic_expr, debug_generic_stmt,
23756         debug_tree_chain, default_tree_printer): Move to
23757         tree-pretty-print.h.
23758         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
23759         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
23760         gimple-pretty-print.h.
23761         * pretty-print.c: Don't include tree.h
23762         (pp_base_format): Don't handle %K here.
23763         (pp_base_tree_identifier): Move to tree-pretty-print.c.
23764         * pretty-print.h (text_info): Change abstract_origin to x_data.
23765         (pp_tree_identifier, pp_unsupported_tree,
23766         pp_base_tree_identifier): Move to tree-pretty-print.h.
23767         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
23768         tree-pretty-print.h: New files.
23769         * tree-pretty-print.c: Include tree-pretty-print.h.
23770         (percent_K_format): New.  Moved from pretty-print.c.
23771         (pp_base_tree_identifier): Move from pretty-print.c.
23772         * c-objc-common.c: Include tree-pretty-print.h.
23773         (c_tree_printer): Handle %K here.
23774         * langhooks.c: Include tree-diagnostic.h.
23775         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
23776         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
23777         (default_tree_printer): Handle %K using percent_K_format.
23778         (general_init): Use default_tree_diagnostic_starter.
23779         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
23780         (free_lang_data): Use default_tree_diagnostic_starter.
23781         * c-pretty-print.c: Include tree-pretty-print.h.
23782         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23783         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23784         * dwarf2out.c: Include tree-pretty-print.h.
23785         * except.c: Include tree-pretty-print.h.
23786         * gimple-pretty-print.c: Include tree-pretty-print.h and
23787         gimple-pretty-print.h.
23788         * gimplify.c: Include tree-pretty-print.h.
23789         * graphite-poly.c: Include tree-pretty-print.h and
23790         gimple-pretty-print.h.
23791         * ipa-cp.c: Include tree-pretty-print.h.
23792         * ipa-inline.c: Include gimple-pretty-print.h.
23793         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23794         * ipa-pure-const.c: Include gimple-pretty-print.h.
23795         * ipa-struct-reorg.c: Include tree-pretty-print.h and
23796         gimple-pretty-print.h.
23797         * ipa-type-escape.c: Include tree-pretty-print.h.
23798         * print-rtl.c: Include tree-pretty-print.h.
23799         * print-tree.c: Include gimple-pretty-print.h.
23800         * sese.c: Include tree-pretty-print.h.
23801         * tree-affine.c: Include tree-pretty-print.h.
23802         * tree-browser.c: Include tree-pretty-print.h.
23803         * tree-call-cdce.c: Include gimple-pretty-print.h.
23804         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23805         * tree-chrec.c: Include tree-pretty-print.h.
23806         * tree-data-ref.c: Include tree-pretty-print.h and
23807         gimple-pretty-print.h.
23808         * tree-dfa.c: Include tree-pretty-print.h.
23809         * tree-if-conv.c: Include tree-pretty-print.h and
23810         gimple-pretty-print.h.
23811         * tree-inline.c: Include tree-pretty-print.h.
23812         * tree-into-ssa.c: Include tree-pretty-print.h and
23813         gimple-pretty-print.h.
23814         * tree-nrv.c: Include tree-pretty-print.h.
23815         * tree-object-size.c: Include tree-pretty-print.h and
23816         gimple-pretty-print.h.
23817         * tree-outof-ssa.c: Include tree-pretty-print.h and
23818         gimple-pretty-print.h.
23819         * tree-parloops.c: Include tree-pretty-print.h and
23820         gimple-pretty-print.h.
23821         * tree-predcom.c: Include tree-pretty-print.h and
23822         gimple-pretty-print.h.
23823         * tree-scalar-evolution.c: Include tree-pretty-print.h and
23824         gimple-pretty-print.h.
23825         * tree-sra.c: Include tree-pretty-print.h.
23826         * tree-ssa-address.c: Include tree-pretty-print.h.
23827         * tree-ssa-alias.c: Include tree-pretty-print.h.
23828         * tree-ssa-ccp.c: Include tree-pretty-print.h and
23829         gimple-pretty-print.h.
23830         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
23831         * tree-ssa-copy.c: Include tree-pretty-print.h and
23832         gimple-pretty-print.h.
23833         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
23834         * tree-ssa-dce.c: Include tree-pretty-print.h and
23835         gimple-pretty-print.h.
23836         * tree-ssa-dom.c: Include tree-pretty-print.h and
23837         gimple-pretty-print.h.
23838         * tree-ssa-dse.c: Include gimple-pretty-print.h.
23839         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
23840         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
23841         * tree-ssa-live.c: Include tree-pretty-print.h and
23842         gimple-pretty-print.h.
23843         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
23844         gimple-pretty-print.h.
23845         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
23846         gimple-pretty-print.h.
23847         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
23848         gimple-pretty-print.h.
23849         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
23850         gimple-pretty-print.h.
23851         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
23852         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
23853         * tree-ssa-operands.c: Include tree-pretty-print.h and
23854         gimple-pretty-print.h.
23855         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
23856         gimple-pretty-print.h.
23857         * tree-ssa-pre.c: Include tree-pretty-print.h and
23858         gimple-pretty-print.h.
23859         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
23860         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
23861         gimple-pretty-print.h.
23862         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
23863         gimple-pretty-print.h.
23864         * tree-ssa-sink.c: Include gimple-pretty-print.h.
23865         * tree-ssa-ter.c: Include tree-pretty-print.h and
23866         gimple-pretty-print.h.
23867         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
23868         * tree-ssa.c: Include tree-pretty-print.h and
23869         gimple-pretty-print.h.
23870         * tree-stdarg.c: Include gimple-pretty-print.h.
23871         * tree-switch-conversion.c: Include gimple-pretty-print.h.
23872         * tree-tailcall.c: Include tree-pretty-print.h and
23873         gimple-pretty-print.h.
23874         * tree-vect-data-refs.c: Include tree-pretty-print.h and
23875         gimple-pretty-print.h.
23876         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
23877         gimple-pretty-print.h.
23878         * tree-vect-loop.c: Include tree-pretty-print.h and
23879         gimple-pretty-print.h.
23880         * tree-vect-patterns.c: Include gimple-pretty-print.h.
23881         * tree-vect-slp.c: Include tree-pretty-print.h and
23882         gimple-pretty-print.h.
23883         * tree-vect-stmts.c: Include tree-pretty-print.h and
23884         gimple-pretty-print.h.
23885         * tree-vectorizer.c: Include tree-pretty-print.h.
23886         * tree-vrp.c: Include tree-pretty-print.h and
23887         gimple-pretty-print.h.
23888         * value-prof.c: Include tree-pretty-print.h and
23889         gimple-pretty-print.h.
23890         * var-tracking.c: Include tree-pretty-print.h.
23891         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
23892         (tree-diagnostic.o): New dependencies.
23893         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
23894         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
23895         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
23896         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
23897         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
23898         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
23899         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
23900         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
23901         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
23902         tree-ssa-address.o, tree-ssa-loop-niter.o,
23903         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
23904         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
23905         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
23906         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
23907         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
23908         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
23909         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
23910         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
23911         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
23912         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
23913         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
23914         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
23915         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
23916         tree-switch-conversion.o, var-tracking.o, value-prof.o,
23917         cfgexpand.o, pretty-print.o): Update dependencies.
23918
23919 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
23920
23921         * tree-ssa-structalias.c: Remove tm_p.h from include.
23922
23923 2010-05-21  Jeff Law  <law@redhat.com>
23924
23925         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
23926
23927 2010-05-21  Jason Merrill  <jason@redhat.com>
23928
23929         * tree-eh.c (cleanup_is_dead_in): New.
23930         (lower_try_finally): Don't generate a dead cleanup region.
23931         (lower_cleanup): Likewise.
23932
23933 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
23934
23935         PR debug/44223
23936         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
23937         unchain each use from the cyclic next_regno_use chain first.
23938
23939 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
23940
23941         * real: Do not include gmp.h, mpfr.h, and mpc.h.
23942         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
23943         (real_value_negate, real_value_abs): New prototypes.
23944         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
23945         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
23946         new include file for interface between MPFR and REAL_VALUE_TYPE.
23947         * real.c: Include realmpfr.h.
23948         (real_arithmetic2): Remove legacy function.
23949         (real_value_negate): New.
23950         (real_value_abs): New.
23951         (mfpr_from_real, real_from_mpfr): Move from here...
23952         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
23953         * builtins.c: Include realmpfr.h.
23954         * fold-const.c: Include realmpfr.h.
23955         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
23956         (fold_negate_const): Likewise.
23957         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
23958         * toplev.c: Include realmpfr.h.
23959         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
23960         and real_value_negate.
23961         * fixed-value.c (check_real_for_fixed_mode): Likewise.
23962         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
23963         (vfp3_const_double_index): Likewise.
23964         (arm_print_operand): Likewise.
23965         * Makefile.in: Update dependencies.
23966
23967 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23968
23969         * config/s390/s390.c (override_options): Increase the default
23970         of max-completely-peel-times.
23971
23972 2010-05-21  Julian Brown  <julian@codesourcery.com>
23973             Mark Mitchell  <mark@codesourcery.com>
23974
23975         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
23976         sibling calls for Thumb-1.
23977         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
23978         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
23979         Thumb-2.
23980         (*call_insn, *call_value_insn): Don't use for Thumb-2.
23981         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
23982         for Thumb-2.
23983         (return): New expander.
23984         (*arm_return): New name for ARM return insn.
23985         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
23986
23987 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
23988
23989         * config.gcc (sparc64-*-rtems*): New target.
23990
23991 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
23992
23993         * tree.c (build_function_decl_skip_args): Fix grammar.
23994         (build_function_type_list_1): Fix typos, adjust formatting.
23995
23996 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
23997
23998         * tree.h: Include real.h and fixed-value.h as basic datatypes.
23999         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
24000         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
24001         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
24002         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
24003         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
24004         tree-pretty-print.c, tree-loop-distribution.c,
24005         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
24006         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
24007         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
24008         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
24009         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
24010         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
24011         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
24012         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
24013         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
24014         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
24015         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
24016         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
24017         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
24018         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
24019         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
24020         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
24021         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
24022         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
24023         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
24024         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
24025         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
24026         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
24027         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
24028         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
24029         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
24030         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
24031         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
24032         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
24033         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
24034         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
24035         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
24036         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
24037         config/score/score7.c, config/score/score.c, config/arm/arm.c,
24038         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
24039         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
24040         config/bfin/bfin.c: Clean up redundant includes.
24041         * Makefile.in: Update accordingly.
24042
24043 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
24044
24045         PR middle-end/44204
24046         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
24047         statement has no arguments.
24048
24049 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
24050
24051         PR/44139
24052         * varasm.c (emutls_decl): Merge attributes to new decl.
24053
24054 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
24055
24056         PR middle-end/44101
24057         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
24058         around the uniquized constructor if its type requires a conversion.
24059
24060 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
24061
24062         PR debug/44205
24063         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
24064         at -O0 goto_locus of any of the incoming edges differs from
24065         goto_locus of outgoing edge, or gimple_location of any of the
24066         labels differs.
24067
24068 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
24069
24070         * ira.c (ira_non_ordered_class_hard_regs): Define.
24071         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
24072         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
24073         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
24074         cost of unaligned hard regs when allocating multi-reg pseudos.
24075
24076 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
24077
24078         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
24079         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
24080         for TARGET_NO_FLOAT.
24081         * config/mips/mips.c (mips_file_start): Expand conditional expression
24082         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
24083         (mips_override_options): Move -mno-float override -msoft-float and
24084         -mhard-float.
24085         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
24086         Condition(TARGET_SUPPORTS_NO_FLOAT).
24087         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
24088         __mips_no_float here.
24089         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
24090         (TARGET_SUPPORTS_NO_FLOAT): Define.
24091         * config/mips/sdemtk.opt: Delete.
24092
24093 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
24094
24095         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
24096
24097 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
24098
24099         PR target/43733
24100         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
24101         * configure: Regenerate.
24102         * config.in: Regenerate.
24103         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
24104         instead of sahf only for 64bit targets.
24105
24106 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
24107
24108         PR debug/44178
24109         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
24110         setup_ref_regs for DEBUG_INSNs.
24111
24112 2010-05-20  Jan Hubicka  <jh@suse.cz>
24113
24114         PR middle-end/44197
24115         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
24116
24117 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
24118
24119         PR bootstrap/43870
24120         * df-scan.c (df_ref_compare): Stabilize sort.
24121
24122 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
24123
24124         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
24125         argument.  Don't use DW_OP_piece if offset is non-zero,
24126         put offset into second DW_OP_bit_piece argument.
24127         (dw_sra_loc_expr): Adjust callers.  For memory expressions
24128         compute offset.
24129
24130 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
24131
24132         PR target/44202
24133         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
24134         settings for 16-bit-constant "addo" alternative.
24135
24136 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
24137
24138         * config/mips/mips-dsp.md (add<DSPV:mode>3,
24139         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
24140
24141         PR target/43764
24142         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
24143         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
24144         Use it.
24145
24146 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
24147
24148         * diagnostic.c (FLOAT, FFS): Don't undefine.
24149         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
24150         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
24151         include ordering.
24152
24153 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24154
24155         * combine.c (propagate_for_debug): Call make_compound_operation
24156         on the source value.
24157         (try_combine): When implementing a split chosen by find_split_point,
24158         either copy i2src or set it to null.  Assert that i2src is not null
24159         before substituting into CALL_INSN_FUNCTION_USAGE.
24160
24161 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
24162
24163         * double-int.h (double_int_ior): New function.
24164         * tree.h (build_int_cst_wide_type): Remove.
24165         * tree.c (build_int_cst_wide_type): Remove.
24166         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
24167         of build_int_cst_wide_type.
24168         * stor-layout.c (set_sizetype): (Ditto.).
24169         * dojump.c (do_jump): Use build_int_cstu instead of
24170         build_int_cst_wide_type.
24171
24172 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
24173
24174         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
24175         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
24176         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
24177         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
24178         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
24179         propagate the 'data' argument to copy_tree_r.
24180         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
24181         Propagate 'data' argument to walk_tree.
24182         (copy_if_shared): New function.
24183         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
24184         (unmark_visited): New function.
24185         (unshare_body): Call copy_if_shared instead of doing it manually.
24186         (unvisit_body): Call unmark_visited instead of doing it manually.
24187
24188 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
24189
24190         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
24191         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
24192         * hooks.c: Likewise.
24193         * target-def.h (TARGET_FOLD_BUILTIN): Define to
24194         hook_tree_tree_int_treep_bool_null.
24195         * target.h (struct gcc_target): Update signature of fold_builtin
24196         field.
24197         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
24198         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
24199         instead of the call expression.
24200         (fold_builtin_call_array): Pass n and argarray directly.
24201         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
24202         consing a list.
24203         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
24204         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
24205         `i' and use it in place of `arity'.
24206         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
24207         Dereference `args' directly.
24208         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
24209
24210 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24211
24212         * doc/sourcebuild.texi (Effective-Target Keywords): Document
24213         3dnow, sse3, sse2.
24214         (Directives): Document optional dg-require-effective-target
24215         selector.
24216
24217 2010-05-19  Richard Guenther  <rguenther@suse.de>
24218
24219         PR lto/44196
24220         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
24221
24222 2010-05-19  Richard Guenther  <rguenther@suse.de>
24223
24224         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
24225         * common.opt (fwhopr=): New.
24226         * opts.c (common_handle_option): Handle OPT_fwhopr.
24227         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
24228         * collect2.c (main): Match -fwhopr*.
24229         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
24230         Execute ltrans stage in parallel when jobs is bigger than 1.
24231
24232 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24233
24234         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
24235         pentiumpro on Solaris 8/x86 with Sun as.
24236         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
24237         hidden alias bug.
24238         (gcc_cv_as_ix86_quad): Check for .quad directive.
24239         * configure: Regenerate.
24240         * config.in: Regenerate.
24241         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
24242
24243 2010-05-19  Martin Jambor  <mjambor@suse.cz>
24244
24245         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
24246         also for indirect edges.  Actual printing moved...
24247         (ipa_print_node_jump_functions_for_edge): ...here.
24248         (ipa_compute_jump_functions): Renamed to
24249         ipa_compute_jump_functions_for_edge and made static.
24250         (ipa_compute_jump_functions): New function.
24251         (make_edge_direct_to_target): Check if the number of arguments on
24252         the newly direct edge is the same as the number of parametrs of
24253         the callee.
24254         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
24255         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
24256         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
24257         analysis functions unconditionally, call the new
24258         ipa_analyze_params_uses on the node instead of every edge.
24259
24260 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
24261
24262         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
24263         to tree.
24264         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
24265         also checks for a constant int vs.  non-constant but
24266         loop-invariant steps.
24267         (find_or_create_group): Change the sort algorithm to only consider
24268         steps that are constant ints.
24269         (idx_analyze_ref): Adopt code to handle a tree instead of a
24270         HOST_WIDE_INT for step.
24271         (gather_memory_references_ref): Handle tree instead of int and be
24272         prepared to see a NULL_TREE.
24273         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
24274         prefetches if the step cannot be calculated at compile time.
24275         (issue_prefetch_ref): Issue prefetches for non-constant but
24276         loop-invariant steps.
24277
24278 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24279
24280         Revert:
24281         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24282
24283         * tree.h (build_call_list): Remove.
24284         * tree.c (build_call_list): Remove.
24285
24286 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
24287
24288         * tree.h (build_call_list): Remove.
24289         * tree.c (build_call_list): Remove.
24290
24291 2010-05-18  Jan Hubicka  <jh@suse.cz>
24292
24293         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
24294
24295 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
24296
24297         PR rtl-optimization/43332
24298         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
24299
24300 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
24301
24302         * tree.h (build_int_cstu): Implement as static inline.
24303         * tree.c (build_int_cstu): Remove function.
24304         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
24305         sign extended.
24306
24307 2010-05-18  Richard Guenther  <rguenther@suse.de>
24308
24309         PR lto/44143
24310         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
24311         (debug): Initialize from -save-temps.
24312         (collect_execute): Print command-line when verbose.
24313         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
24314         for ltrans invocation.  Produce -dumpbase flag again.
24315         (process_args): Remove.
24316         (main): Simplify.
24317         * collect2.c (maybe_run_lto_and_relink): Only pass object
24318         files to lto-wrapper.
24319         * gcc.c (LINK_COMMAND_SPEC): Likewise.
24320
24321 2010-05-18  Jan Hubicka  <jh@suse.cz>
24322
24323         * opts.c (decode_options): Do not disable whopr at ipa_cp.
24324         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
24325
24326 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
24327
24328         PR lto/44184
24329         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
24330         in a GIMPLE_ASM.
24331         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
24332         in a GIMPLE_ASM.
24333
24334 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
24335
24336         PR debug/41371
24337         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
24338         rtx_equal_p inline.
24339
24340 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
24341
24342         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
24343         lto-macho as lto_binary_reader.
24344
24345         * darwin.c (darwin_asm_named_section): Do not add assembler comment
24346         after .section directive; just print it before the directive instead.
24347
24348 2010-05-17  Jan Hubicka  <jh@suse.cz>
24349
24350         * cgraph.c (cgraph_create_virtual_clone): Only check
24351         versionable_function_p when not in wpa and checking is enabled.
24352         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
24353         there are no more functions to materialize.
24354
24355 2010-05-17  Jan Hubicka  <jh@suse.cz>
24356
24357         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
24358         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
24359         New functions.
24360         (output_cgraph): Call output_cgraph_opt_summary.
24361         (input_cgrpah): Call input_cgraph_opt_summary.
24362         (output_cgraph_opt_summary_p, output_node_opt_summary,
24363         input_node_opt_summary, input_cgraph_opt_section): New functions.
24364         * lto-section-in.c (lto_section_name): Add cgraphopt.
24365         * tree-inline.c (tree_function_versioning): Handle parm_num.
24366         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
24367         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
24368
24369 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
24370
24371         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
24372         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
24373         the insn to prefetch ratio heuristic to loops with known trip count.
24374
24375 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
24376
24377         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
24378         (schedule_prefetches): Do not generate a prefetch if the unroll factor
24379         is far from what is required by the prefetch.
24380
24381 2010-05-17  Jan Hubicka  <jh@suse.cz>
24382
24383         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
24384         (ipcp_estimate_growth): Likewise.
24385         (ipcp_const_param_count): Likewise.
24386         (ipcp_insert_stage): Likewise.
24387         * ipa-prop.c (visit_load_for_mod_analysis): New function.
24388         (visit_store_addr_for_mod_analysis): Set used flag.
24389         (ipa_detect_param_modifications): Set used flag for SSE params;
24390         update use of walk_stmt_load_store_addr_ops.
24391         (ipa_print_node_params): Print used flag.
24392         (ipa_write_node_info): Stream used flag.
24393         (ipa_read_node_info): Likewise.
24394         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
24395         (ipa_is_param_used): New function.
24396         (lto_ipa_fixup_call_notes): Remove unused declaration.
24397
24398 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24399
24400         PR target/44074
24401         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
24402         * configure: Regenerate.
24403         * config.in: Regenerate.
24404         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
24405         !HAVE_AS_IX86_REP_LOCK_PREFIX.
24406         Don't emit whitespace.
24407         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
24408         (*rep_movsi): Likewise.
24409         (*rep_movsi_rex64): Likewise.
24410         (*rep_movqi): Likewise.
24411         (*rep_movqi_rex64): Likewise.
24412         (*rep_stosdi_rex64): Likewise.
24413         (*rep_stossi): Likewise.
24414         (*rep_stossi_rex64): Likewise.
24415         (*rep_stosqi): Likewise.
24416         (*rep_stosqi_rex64): Likewise.
24417         (*cmpstrnqi_nz_1): Use {%;} after repz.
24418         (*cmpstrnqi_nz_rex_1): Likewise.
24419         (*cmpstrnqi_1): Likewise.
24420         (*cmpstrnqi_rex_1): Likewise.
24421         (*strlenqi_1): Use {%;} after repnz.
24422         (*strlenqi_rex_1): Likewise.
24423         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
24424         (*sync_compare_and_swap<mode>): Likewise.
24425         (sync_double_compare_and_swap<mode>): Likewise.
24426         (*sync_double_compare_and_swapdi_pic): Likewise.
24427         (sync_old_add<mode>): Likewise.
24428         (sync_add<mode>): Likewise.
24429         (sync_sub<mode>): Likewise.
24430         (sync_<code><mode>): Likewise.
24431
24432 2010-05-17  Martin Jambor  <mjambor@suse.cz>
24433
24434         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
24435         otr_token and polymorphic.
24436         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
24437         (cgraph_clone_edge): Copy the above fields.
24438         * tree.c (get_binfo_at_offset): New function.
24439         * tree.h (get_binfo_at_offset): Declare.
24440         * ipa-prop.h (enum jump_func_type): Added known_type jump function
24441         type, reordered items, updated comments.
24442         (union jump_func_value): Added base_type field, reordered fields.
24443         (enum ipa_lattice_type): Moved down in the file.
24444         (struct ipa_param_descriptor): New field polymorphic.
24445         (ipa_is_param_polymorphic): New function.
24446         * ipa-prop.c: Include gimple.h and gimple-fold.h.
24447         (ipa_print_node_jump_functions): Print known type jump functions.
24448         (compute_complex_pass_through): Renamed to...
24449         (compute_complex_assign_jump_func): this.
24450         (compute_complex_ancestor_jump_func): New function.
24451         (compute_known_type_jump_func): Likewise.
24452         (compute_scalar_jump_functions): Create known type and complex ancestor
24453         jump functions.
24454         (ipa_note_param_call): New parameter polymorphic, set the corresponding
24455         flag in the call note accordingly.
24456         (ipa_analyze_call_uses): Renamed to...
24457         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
24458         variable var only in the block where it is used.
24459         (ipa_analyze_virtual_call_uses): New function.
24460         (ipa_analyze_call_uses): Likewise.
24461         (combine_known_type_and_ancestor_jfs): Likewise.
24462         (update_jump_functions_after_inlining): Implemented handling of a
24463         number of new jump function types combination.
24464         (print_edge_addition_message): Removed.
24465         (make_edge_direct_to_target): New function.
24466         (try_make_edge_direct_simple_call): Likewise.
24467         (try_make_edge_direct_virtual_call): Likewise.
24468         (update_call_notes_after_inlining): Renamed to...
24469         (update_indirect_edges_after_inlining): this.  Moved edge creation for
24470         indirect calls to try_make_edge_direct_simple_call, also calls
24471         try_make_edge_direct_virtual_call for virtual calls.
24472         (ipa_print_node_params): Changed the header message.
24473         (ipa_write_jump_function): Stream also known type jump functions.
24474         (ipa_read_jump_function): Likewise.
24475         (ipa_write_indirect_edge_info): Stream new fields in
24476         cgraph_indirect_call_info.
24477         (ipa_read_indirect_edge_info): Likewise.
24478         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
24479         GIMPLE_FOLD_H.
24480
24481 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24482
24483         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
24484
24485 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
24486
24487         * tree.h (CALL_EXPR_ARGS): Delete.
24488         (call_expr_arglist): Delete.
24489         * tree.c (call_expr_arglist): Delete.
24490         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
24491         targetm.fold_builtin.
24492         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
24493         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
24494         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
24495         arglist parameter.  Use CALL_EXPR_ARG.
24496         (picochip_expand_builtin_3op): Likewise.
24497         (picochip_expand_builtin_2opvoid): Likewise.
24498         (picochip_expand_array_get): Likewise.
24499         (picochip_expand_array_put): Likewise.
24500         (picochip_expand_array_testport): Likewise.
24501         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
24502         rather than arglist.
24503         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
24504         CALL_EXPR_ARGS.
24505         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
24506         than TREE_VALUE and TREE_CHAIN.
24507         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
24508         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
24509         the arglist.
24510
24511 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
24512
24513         PR bootstrap/42347
24514         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
24515         to have no fallthru edge.
24516
24517         PR middle-end/44102
24518         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
24519         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
24520         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
24521         add BARRIER after previous bb if needed.
24522
24523 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
24524
24525         * tree.c (build_function_type_list_1): Remove bogus assert condition.
24526
24527 2010-05-17  Alan Modra  <amodra@gmail.com>
24528
24529         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
24530         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
24531         with copy_reg rtx param.
24532         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
24533         Correct cases where code for ABI_V4 did not initialise the reg
24534         used to access frame.  Also leave frame_reg_rtx as sp for large
24535         frames that save no regs.
24536
24537 2010-05-17  Martin Jambor  <mjambor@suse.cz>
24538
24539         PR middle-end/44133
24540         * tree-sra.c (create_access_replacement): New parameter rename, mark
24541         the replaement for renaming only when it is true.
24542         (get_access_replacement): Pass true in the rename parameter of
24543         create_access_replacement.
24544         (get_unrenamed_access_replacement): New function.
24545         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
24546         replacement declaration from it.
24547
24548 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
24549
24550         * function.c (try_fit_stack_local, add_frame_space): New static
24551         functions.
24552         (assign_stack_local_1): Use them.  Look for opportunities to use
24553         space previously wasted on alignment.
24554         * function.h (struct frame_space): New.
24555         (struct rtl_data): Add FRAME_SPACE_LIST member.
24556         * reload1.c (something_was_spilled): New static variable.
24557         (alter_reg): Set it.
24558         (reload): Test it in addition to testing if the frame size changed.
24559
24560 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
24561
24562         * config/s390/s390.c: Define sane prefetch settings and activate
24563         flag_prefetch_loop_arrays on -O3.
24564         * config/s390/s390.h: Declare that read can use write prefetch.
24565
24566 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
24567
24568         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
24569         build.
24570
24571 2010-05-16  Jan Hubicka  <jh@suse.cz>
24572
24573         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
24574         function body; do not check stdarg field of struct function.
24575
24576 2010-05-16  Jan Hubicka  <jh@suse.cz>
24577
24578         * cgraph.c (dump_cgraph_node): Dump versionable flag.
24579         * cgraph.h (cgraph_local_info): Add versionable flag.
24580         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
24581         (ipcp_versionable_function_p): Use it.
24582         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
24583         versionable flag.
24584
24585 2010-05-16  Jan Hubicka  <jh@suse.cz>
24586
24587         * cgraph.c (cgraph_clone_node): Take decl argument and insert
24588         clone into hash when it is different from orig.
24589         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
24590         * cgraph.h (cgraph_clone_node): Update prototype.
24591         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
24592         (lto_cgraph_encoder_delete): Delete body map.
24593         (lto_cgraph_encoder_size): Move to header.
24594         (lto_cgraph_encoder_encode_body_p,
24595         lto_set_cgraph_encoder_encode_body): New.
24596         (lto_output_node): Do not take written_decls argument; output clone_of
24597         pointer.
24598         (add_node_to): Add include_body_argument; call
24599         lto_set_cgraph_encoder_encode_body on master of the clone.
24600         (add_references): Update use of add_node_to.
24601         (compute_ltrans_boundary): Likewise.
24602         (output_cgraph): Do not create written_decls bitmap.
24603         (input_node): Take nodes argument; stream in clone_of correctly.
24604         (input_cgraph_1): Update use of input_node.
24605         * lto-streamer-out.c (lto_output): Use encoder info to decide
24606         what bodies to output.
24607         * ipa-inline.c (cgraph_clone_inlined_nodes,
24608         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
24609         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
24610         (lto_cgraph_encoder_size): Define here.
24611         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
24612         Declare.
24613
24614 2010-05-16  Richard Guenther  <rguenther@suse.de>
24615
24616         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
24617         -fipa-type-escape.
24618         * ipa-type-escape.c (gate_type_escape_vars): Run when
24619         -fipa-struct-reorg runs.
24620         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
24621         * common.opt (fipa-type-escape): Remove.
24622
24623 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24624
24625         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
24626         (decode_options): Likewise.
24627         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
24628
24629 2010-05-16  Jan Hubicka  <jh@suse.cz>
24630
24631         * ipa.c (function_and_variable_visibility): Also bring local all
24632         aliases.
24633
24634 2010-05-16  Richard Guenther  <rguenther@suse.de>
24635
24636         * alias.c (nonoverlapping_memrefs_p): Remove use of
24637         IPA type-escape information.
24638
24639 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
24640
24641         * c-common.c (c_common_reswords): Add _Static_assert for C.
24642         * c-parser.c (c_token_starts_declaration,
24643         c_parser_next_token_starts_declaration,
24644         c_parser_static_assert_declaration_no_semi,
24645         c_parser_static_assert_declaration): New.
24646         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
24647         Handle static assertions if static_assert_ok.
24648         (c_parser_external_declaration, c_parser_declaration_or_fndef,
24649         c_parser_compound_statement_nostart, c_parser_label,
24650         c_parser_for_statement, c_parser_objc_methodprotolist,
24651         c_parser_omp_for_loop): All callers of
24652         c_parser_declaration_or_fndef changed.
24653         (c_parser_struct_declaration): Handle static assertions.
24654         (c_parser_compound_statement_nostart): Use
24655         c_parser_next_token_starts_declaration and
24656         c_token_starts_declaration to detect start of declarations.
24657         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
24658         Likewise.
24659
24660 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
24661
24662         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24663         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24664         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24665         TARGET_FUNCTION_VALUE_REGNO_P): Define.
24666         (mmix_function_outgoing_value): Rename to...
24667         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
24668         (mmix_function_value_regno_p): Make static.
24669         (mmix_libcall_value): New function.
24670         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
24671         mmix_function_value_regno_p): Remove declaration.
24672
24673 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
24674
24675         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
24676         BUILT_IN_ALLOCA if stack checking is enabled.
24677
24678 2010-05-16  Richard Guenther  <rguenther@suse.de>
24679
24680         * var-tracking.c (vars_copy_1): Inline ...
24681         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
24682         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
24683         (variable_merge_over_cur): Adjust.  Merge asserts.
24684         (variable_merge_over_src): Likewise.
24685         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
24686         (variable_post_merge_new_vals): Merge asserts.
24687         (variable_post_merge_perm_vals): Likewise.
24688         (find_mem_expr_in_1pdv): Likewise.
24689         (dataflow_set_different_value): Remove.
24690         (onepart_variable_different_p): Merge asserts.
24691         (variable_different_p): Likewise.
24692         (dataflow_set_different_1): Inline ...
24693         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
24694         (emit_notes_for_differences_1): Merge asserts.
24695
24696 2010-05-16  Richard Guenther  <rguenther@suse.de>
24697
24698         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
24699         * optabs.c (libfunc_decl_hash): Likewise.
24700         * varasm.c (emutls_decl): Likewise.
24701
24702 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
24703
24704         * c-decl.c: Don't include gimple.h.
24705         (merge_decls): Do not copy gimple_body.
24706
24707 2010-05-15  Jason Merrill  <jason@redhat.com>
24708
24709         * c.opt: Add -fnothrow-opt.
24710
24711 2010-05-15  Jan Hubicka  <jh@suse.cz>
24712
24713         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
24714         analyzed.
24715         * passes.c (ipa_write_summaries): Write all analyzed nodes.
24716
24717 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
24718
24719         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
24720         * Makefile.in: Add it.
24721         Fix all other Makefile dependencies for changes below.
24722         * tree.h: Include it instead of defining VEC primitives here.
24723         * gimple.h: Likewise.
24724         * rtl.h: Likewise.
24725         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
24726         * except.h: Include vecir.h, break dependence on tree.h.
24727
24728         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
24729         Move from here...
24730         * tree-iterator.c: ...to here.
24731         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
24732
24733         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
24734         tm_p.h.
24735         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
24736         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
24737         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
24738         tree-mudflap.h, and target.h.
24739         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
24740         predict.h, tree-inline.h, gimple.h, and langhooks.h.
24741         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
24742         Add FIXME for why gimple.h is still included (should be unnecessary
24743         since GCC 4.5 gimplification unit-at-a-time).
24744         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
24745         * c-pragma.c: Add FIXME for why function.h needs to be included just
24746         for cfun, at front-end level.
24747         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
24748         Do not include ggc.h, but include vecprim.h for VEC(char).
24749         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
24750         Explain why target.h is included.
24751         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
24752         Explain why gimple.h is included.
24753         * c-ppoutput.c: Do not include tm.h.
24754         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
24755         * c-parses.c: Explain why rtl.h is included, and that this (and only
24756         this) is also why tm.h must be included.
24757         Do not include except.h.
24758         * c-lang.c: Do not include ggc.h.
24759
24760 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
24761
24762         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
24763
24764 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
24765
24766         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
24767         unions by default if those structs and unions have no tags.  Do
24768         not condition anonymous struct and unions handling on flag_iso.
24769         Allow anonymous structs and unions for C1X.
24770         (finish_struct): Do not diagnose lack of named fields when
24771         anonymous structs and unions present for C1X.  Accept flexible
24772         array members in structure with anonymous structs or unions but no
24773         directly named fields.
24774         * doc/extend.texi (Unnamed Fields): Update.
24775
24776 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
24777
24778         * gimple.h (compare_field_offset): Rename into...
24779         (gimple_compare_field_offset): ...this.
24780         * gimple.c (compare_field_offset): Rename into...
24781         (gimple_compare_field_offset): ...this.  Compare the full access if
24782         the offset is self-referential.
24783         (gimple_types_compatible_p): Adjust for above renaming.
24784         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
24785         DECL_NONADDRESSABLE_P flag of fields before merging them.
24786
24787 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
24788
24789         * tree.h (ctor_to_list): Delete.
24790         * tree.c (ctor_to_list): Delete.
24791
24792 2010-05-15  Jan Hubicka  <jh@suse.cz>
24793
24794         * ipa-reference.c: Include toplev.h
24795         (is_proper_for_analysis): Only add to all_module_statics
24796         if it is allocated.
24797         (write_node_summary_p, stream_out_bitmap,
24798         ipa_reference_write_optimization_summary,
24799         ipa_reference_read_optimization_summary): New.
24800         (struct ipa_opt_pass_d pass_ipa_reference): Add
24801         optimization summary streaming.
24802         * lto-cgraph.c (referenced_from_this_partition_p,
24803         reachable_from_this_partition_p): New functions.
24804         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
24805         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
24806         * opts.c (decode_options): Enable ipa_reference.
24807         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
24808         * lto-streamer.h (referenced_from_this_partition_p,
24809         reachable_from_this_partition_p): Declare.
24810
24811 2010-05-15  Richard Guenther  <rguenther@suse.de>
24812
24813         PR tree-optimization/44038
24814         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
24815         taking the address of a V_C_E of a constant.
24816
24817 2010-05-14  Jan Hubicka  <jh@suse.cz>
24818
24819         * tree.h (memory_identifier_string): Remove.
24820         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
24821         (ipa_reference_global_vars_info_d): Remove statics_not_read and
24822         statics_not_written.
24823         (ipa_reference_optimization_summary_d): New structure.
24824         (ipa_reference_optimization_summary_t): New type and vector.
24825         (ipa_reference_vars_info_d): Embedd structures instead of using
24826         pointers.
24827         (reference_vars_to_consider): Remove out of GGC space.
24828         (module_statics_escape): Remove.
24829         (global_info_obstack): Rename to ...
24830         (optimization_summary_obstack): ... this one.
24831         (initialization_status_t): Remove.
24832         (memory_identifier_string): Remove.
24833         (get_reference_vars_info): Fix indenting.
24834         (set_reference_vars_info): Likewise.
24835         (get_reference_optimization_summary): New.
24836         (set_reference_optimization_summary): New.
24837         (get_global_reference_vars_info): Remove.
24838         (ipa_reference_get_read_global): Remove.
24839         (ipa_reference_get_written_global): Remove.
24840         (ipa_reference_get_not_read_global): Update.
24841         (ipa_reference_get_not_written_global): Update.
24842         (is_proper_for_analysis): Outlaw addressable.
24843         (propagate_bits): Update for new datastructures.
24844         (analyze_variable): Remove.
24845         (init_function_info): Update for new datastructures.
24846         (clean_function_local_data): Remove.
24847         (clean_function): Remove.
24848         (copy_global_bitmap): Use optimizations_summary_obstack.
24849         (duplicate_node_data): Duplicate optimization summary only.
24850         (remove_node_data): Remove optimization summary only.
24851         (generate_summary): Do not analyze variables; do not compute
24852         module_statics_escape; do not prune solutions by it.
24853         (read_write_all_from_decl): Fix typos in comments.
24854         (propagate): Doscover readonly and nonaddressable first;
24855         update for new datastructures; share global bitmaps.
24856         * ipa-reference.h (ipa_reference_get_read_global,
24857         ipa_reference_get_written_global): Remove.
24858         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
24859         * Makefile.in: Remove ipa-refereference from GT files.
24860
24861 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
24862
24863         PR debug/44112
24864         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
24865         for all SYMBOL_REF_DECLs.
24866
24867 2010-05-14  Jan Hubicka  <jh@suse.cz>
24868
24869         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
24870         (varpool_all_refs_explicit_p): New inline function.
24871         * ipa-reference.c: Update comment.
24872         (module_statics_written): Remove.
24873         (get_static_decl): Remove.
24874         (ipa_init): Do not initialize module_statics_written.
24875         (analyze_function): Likewise.
24876         (generate_summary): Likewise; do not compute module_statics_readonly
24877         and do not update variable flags.
24878         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
24879         * ipa.c: Inlucde flags.h
24880         (cgraph_local_node_p): New.
24881         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
24882         promote functions to local.
24883         (ipa_discover_readonly_nonaddressable_vars): New function.
24884         (function_and_variable_visibility): Use cgraph_local_node_p.
24885         * varpool.c (varpool_finalize_decl): Set force_output for
24886         DECL_PRESERVE_P vars.
24887
24888 2010-05-14  Jan Hubicka  <jh@suse.cz>
24889
24890         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
24891
24892 2010-05-14  Richard Guenther  <rguenther@suse.de>
24893
24894         PR tree-optimization/44119
24895         * tree-ssa-pre.c (eliminate): Properly mark replacement of
24896         a PHI node necessary.
24897
24898 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
24899
24900         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
24901
24902 2010-05-14  Jason Merrill  <jason@redhat.com>
24903
24904         PR c++/44127
24905         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
24906         (gimple_call_set_nothrow): New.
24907         * gimple.c (gimple_build_call_from_tree): Call it.
24908         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
24909
24910         PR c++/44127
24911         * gimplify.c (gimplify_seq_add_stmt): No longer static.
24912         * gimple.h: Declare it.
24913         * gimple.c (gimple_build_eh_filter): No ops.
24914
24915 2010-05-14  Jan Hubicka  <jh@suse.cz>
24916
24917         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
24918         nodes already in queue.
24919         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
24920         re-enqueueing node.
24921
24922 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
24923
24924         PR debug/44136
24925         * cfgexpand.c (expand_debug_expr): If non-memory op0
24926         has BLKmode, return NULL.
24927
24928 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
24929
24930         * config.gcc: Add support for --with-cpu option for bdver1.
24931         * config/i386/i386.h (TARGET_BDVER1): New macro.
24932         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
24933         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24934         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
24935         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24936         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
24937         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
24938         (processor_type): Add PROCESSOR_BDVER1.
24939         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
24940         processor_type in config/i386/i386.h.
24941         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
24942         movaps <reg, reg> instead of movapd <reg, reg> when replacing
24943         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
24944         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
24945         to emit packed xor instead of packed double/packed integer
24946         xor for SSE and AVX when moving a zero value.
24947         * config/i386/sse.md: Add check for
24948         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
24949         movapd/movdqa for SSE and AVX.
24950         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
24951         single logical operations i.e and, or and xor instead of packed double
24952         logical operations for SSE and AVX.
24953         * config/i386/i386-c.c (ix86_target_macros_internal):
24954         Add PROCESSOR_BDVER1.
24955         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
24956         (has_fma4, has_xop): New.
24957         * config/i386/i386.c (bdver1_cost): New variable.
24958         (m_BDVER1): New macro.
24959         (m_AMD_MULTIPLE): Add m_BDVER1.
24960         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
24961         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
24962         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
24963         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
24964         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
24965         x86_tune_sse_partial_reg_dependency,
24966         x86_tune_sse_unaligned_load_optimal,
24967         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
24968         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
24969         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
24970         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
24971         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
24972         Enable/disable for bdver1.
24973         (processor_target_table): Add bdver1_cost.
24974         (cpu_names): Add bdver1.
24975         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
24976          processor_alias_table.
24977         (ix86_expand_vector_move_misalign): Change.
24978         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
24979         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
24980         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
24981         of movupd/movdqu for SSE and AVX.
24982         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
24983         (ix86_tune_adjust_cost): Add code for bdver1.
24984         (standard_sse_constant_opcode): Add check for
24985         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
24986         of packed double xor for SSE and AVX.
24987
24988 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
24989
24990         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
24991         result to unsigned.
24992
24993 2010-05-14  Tristan Gingold  <gingold@adacore.com>
24994
24995         * toplev.c (default_debug_hooks): Remove this variable.
24996         (process_options): Remove assignments to default_debug_hooks.
24997
24998 2010-05-14  Martin Jambor  <mjambor@suse.cz>
24999
25000         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
25001         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
25002         * langhooks.h (struct lang_hooks_for_decls): Removed field
25003         fold_obj_type_ref.
25004         * tree.c (free_lang_data): Remove assignment to
25005         lang_hooks.fold_obj_type_ref.
25006         * tree.def (OBJ_TYPE_REF): Update comment.
25007
25008 2010-05-14  Richard Guenther  <rguenther@suse.de>
25009
25010         PR tree-optimization/44124
25011         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
25012
25013 2010-05-14  Alan Modra  <amodra@gmail.com>
25014
25015         PR target/44075
25016         * config/rs6000/rs6000.c (struct machine_function): Reorder
25017         fields for better packing.  Add lr_save_state.
25018         (rs6000_ra_ever_killed): Return lr_save_state if set.
25019         (rs6000_emit_eh_reg_restore): Set lr_save_state.
25020
25021 2010-05-13  Jan Hubicka  <jh@suse.cz>
25022
25023         * varpool.c (decide_is_variable_needed): Drop code checking
25024         TREE_SYMBOL_REFERENCED.
25025
25026 2010-05-13  Jan Hubicka  <jh@suse.cz>
25027
25028         * final.c (output_addr_const): Do not call mark_decl_referenced.
25029         * cgraphunit.c (process_function_and_variable_attributes): Use
25030         mark_needed_node dirrectly.
25031         (assemble_thunk): Do not call mark_decl_referenced.
25032
25033 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
25034
25035         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
25036
25037 2010-05-13  Jeff Law  <law@redhat.com>
25038
25039         * ira-conflicts.c (print_allocno_conflicts): New function broken out
25040         from...
25041         (print_conflicts): Call print_allocno_conflicts.
25042
25043 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
25044
25045         PR debug/44104
25046         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
25047         if it is NULL.
25048
25049 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
25050
25051         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
25052         t-mingw-w64 or t-mingw-w32 for multilib configuration.
25053         * config/i386/t-mingw-w32: New.
25054         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
25055
25056 2010-05-13  Martin Jambor  <mjambor@suse.cz>
25057
25058         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
25059         gimple-fold.c).
25060         * gimple-fold.c (get_base_binfo_for_type): New function.
25061         (gimple_get_relevant_ref_binfo): Likewise.
25062         (gimple_fold_obj_type_ref_known_binfo): Likewise.
25063         (gimple_fold_obj_type_ref): Likewise.
25064         (fold_gimple_call): Simplify condition for folding virtual calls
25065         and call gimple_fold_obj_type_ref.
25066         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
25067         (gimple_fold_obj_type_ref_known_binfo): Likewise.
25068
25069 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
25070
25071         * config/rs6000/rs6000-protos.h
25072         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
25073         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
25074         (rs6000_debug_mode_dependent_address)
25075         (rs6000_mode_dependent_address_ptr): Likewise.
25076
25077 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
25078
25079         PR debug/43983
25080         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
25081         by SRA.
25082         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
25083         * tree-sra.c (create_access_replacement): Call unshare_expr before
25084         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
25085         * dwarf2out.c: Include tree-flow.h.
25086         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
25087         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
25088         Handle DW_OP_bit_piece.
25089         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
25090         construct_piece_list, adjust_piece_list): New functions.
25091         (add_var_loc_to_decl): Handle SRA optimized variables.
25092         Adjust for var_loc_note to loc field renaming.
25093         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
25094         in VAR_LOCATION note.
25095         (new_loc_descr_op_bit_piece): New function.
25096         (dw_sra_loc_expr): New function.
25097         (dw_loc_list): Use it.  Don't handle the last range after the
25098         loop, handle it inside of the loop.  Adjust for var_loc_note
25099         to loc field renaming.
25100         (add_location_or_const_value_attribute): Only special case
25101         single entry loc lists if loc is NOTE_P.  Adjust for
25102         var_loc_note to loc field renaming.
25103         (dwarf2out_var_location): Don't set newloc->var_loc_note
25104         and newloc->next here.
25105
25106 2010-05-12  Jan Hubicka  <jh@suse.cz>
25107
25108         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
25109         flag.
25110         * cgraph.h (cgraph_only_called_directly_p,
25111         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
25112         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
25113         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
25114         (assemble
25115         * ipa.c (cgraph_remove_unreachable_nodes): Use
25116         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
25117         flags.
25118         * tree-inline.c (copy_bb): Check address_taken flag.
25119         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
25120         externally_visible flag.
25121
25122 2010-05-12  Jason Merrill  <jason@redhat.com>
25123
25124         PR bootstrap/44048
25125         PR target/44099
25126         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
25127         * sdbout.c (plain_type_1): Likewise.
25128         * dwarf2out.c (is_base_type): Likewise.
25129         (gen_type_die_with_usage): Likewise.  Generate
25130         DW_TAG_unspecified_type for any LANG_TYPE.
25131
25132 2010-05-12  Jan Hubicka  <jh@suse.cz>
25133
25134         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
25135         indrect edges too.
25136         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
25137         (cgraph_clone_edge): Update.
25138         (cgraph_node_remove_callees): Remove indirect calls too.
25139         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
25140         (cgraph_create_indirect_edge): Update prototype.
25141         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
25142         is_proper_for_analysis.
25143         (add_new_function, visited_nodes, function_insertion_hook_holder,
25144         get_local_reference_vars_info, mark_address_taken, mark_address,
25145         mark_load, mark_store, check_asm_memory_clobber, check_call,
25146         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
25147         (ipa_init): Do not initialize visited_nodes;
25148         function_insertion_hook_holder.
25149         (analyze_variable): Rewrite.
25150         (analyze_function): Rewrite.
25151         (copy_local_bitmap): Remove.
25152         (duplicate_node_dat): Do not duplicate local info.
25153         (generate_summary): Simplify to only walk cgraph.
25154         (write_node_summary_p, ipa_reference_write_summary,
25155         ipa_reference_read_summary): Remove.
25156         (propagate): Do not remove function insertion;
25157         generate summary.
25158         (pass_ipa_reference): NULLify summary handling fields.
25159         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
25160         (input_edge): Input ecf_flags.
25161         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
25162         (update_indirect_edges_after_inlining): Ignore edges with unknown
25163         param.
25164
25165 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
25166
25167         * implicit-zee.c: New file.
25168         * tree-pass.h (pass_implicit_zee): Declare.
25169         * passes.c (init_optimization_passes): Add zee pass.
25170         * common.opt (fzee): New flag.
25171         * timevar.def (TV_ZEE): Define.
25172         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
25173         and beyond.
25174         * Makefile.in (implicit-zee.o): Add new build file.
25175
25176 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25177             Nathan Froyd  <froydnj@codesourcery.com>
25178
25179         * c-common.c (sync_resolve_params): Remove write-only variable.
25180
25181 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
25182
25183         * target.h (struct gcc_target): Add mode_dependent_address_p field.
25184         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
25185         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
25186         * targhooks.c (default_mode_dependent_address_p): New function.
25187         * targhooks.h (default_mode_dependent_address_p): Declare function.
25188         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
25189         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
25190         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
25191         target hook. Change return type to bool.
25192         * recog.h (mode_dependent_address_p): Change return type to bool.
25193
25194 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25195             Nathan Froyd  <froydnj@codesourcery.com>
25196
25197         * tree-mudflap.c (build_function_type_0, build_function_type_1,
25198         build_function_type_2, build_function_type_3): Remove.
25199         (mudflap_init): Use build_function_type_list.
25200
25201 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
25202             Nathan Froyd  <froydnj@codesourcery.com>
25203
25204         * coverage.c (build_fn_info_value): Call build_constructor instead of
25205         build_constructor_from_list.
25206         (build_ctr_info_value): Likewise.
25207         (build_gcov_info): Likewise.
25208
25209 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
25210
25211         * tree.c (build_constructor): Compute TREE_CONSTANT for the
25212         resultant constructor.
25213         (build_constructor_single): Don't set TREE_CONSTANT.
25214         (build_constructor_from_list): Don't compute TREE_CONSTANT.
25215
25216 2010-05-12  Jan Hubicka  <jh@suse.cz>
25217
25218         * cgraph.h (struct varpool_node): Add aux.
25219         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
25220         * varpool.c (varpool_remove_node): Do not remove initializer.
25221         (varpool_reset_queue): Export.
25222         (varpool_finalize_decl): Volatile vars are forced to be output.
25223         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
25224         replaced decl.
25225         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
25226         process_references, varpool_can_remove_if_no_refs): New functions.
25227         (cgraph_remove_unreachable_nodes): Handle variables too.
25228
25229 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
25230
25231         PR target/44088
25232         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
25233
25234 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
25235
25236         PR middle-end/44085
25237         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
25238         change value of ORT_TASK.
25239         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
25240         (omp_notice_threadprivate_variable): New function.
25241         (omp_notice_variable): Call it for threadprivate variables.
25242         If enclosing ctx is a task, print enclosing task rather than
25243         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
25244         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
25245         if task has untied clause.
25246
25247         PR debug/42278
25248         * dwarf2out.c (base_type_die): Don't add name attribute here.
25249         (modified_type_die): Instead of sizetype use
25250         its underlying original type.  If a DW_TAG_base_type doesn't
25251         have name added, add __unknown__.
25252         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
25253         always call force_type_die instead.
25254
25255 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
25256
25257         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
25258         for __stack_chk_guard.
25259
25260 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
25261
25262         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
25263         don't call start_source_file debug hook here...
25264         (finish_options): ... but here, after outputting predefined and
25265         command line defines and undefs.
25266
25267         PR middle-end/44071
25268         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
25269         no fallthru edge.
25270         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
25271         optimizing away empty bb with no successors, move over its
25272         footer chain to fallthru predecessor.
25273         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
25274         (rtl_split_edge): For asm goto call patch_jump_insn even if
25275         splitting fallthru edge.
25276
25277         PR c++/44059
25278         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
25279         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
25280         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
25281         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
25282         on DW.ref.* decls.
25283
25284         PR c++/44062
25285         * c-parser.c (c_parser_expression): Mark LHS of a comma
25286         expression as read if it is a decl, handled component or
25287         COMPOUND_EXPR with that on the RHS.
25288         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
25289         if it is a decl or handled component.
25290
25291 2010-05-11  Jan Hubicka  <jh@suse.cz>
25292
25293         * lto-symtab.c (lto_symtab_free): New function.
25294         * lto-streamer.h (lto_symtab_free): Declare.
25295
25296 2010-05-11  Jan Hubicka  <jh@suse.cz>
25297
25298         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
25299         that if function is needed it is reachable.
25300         (lto_output_node): See if it the function is reachable or referenced.
25301         (output_cgraph): Update call of lto_output_node.
25302         * lto-streamer.h (reachable_from_other_partition_p): Declare.
25303
25304 2010-05-11  Jan Hubicka  <jh@suse.cz>
25305
25306         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
25307         Mark as used.
25308
25309 2010-05-11  Jan Hubicka  <jh@suse.cz>
25310
25311         PR tree-optimize/44063
25312         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
25313         queue.
25314         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
25315         limits.
25316         (estimate_function_body_sizes): Compute sizes even when disregarding.
25317
25318 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
25319
25320         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
25321
25322 2010-05-11  Jan Hubicka  <jh@suse.cz>
25323
25324         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
25325         into every boundary.
25326
25327 2010-05-11  Jan Hubicka  <jh@suse.cz>
25328
25329         * matrix-reorg.c (matrix_reorg): Rebuild edges.
25330
25331 2010-05-11  Jan Hubicka  <jh@suse.cz>
25332
25333         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
25334         lto_streamer_cache_delete): Put nodes into heap.
25335         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
25336         heap.
25337
25338 2010-05-11  Jan Hubicka  <jh@suse.cz>
25339
25340         * cgraphbuild.c (cgraph_rebuild_references): New.
25341         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
25342         out extern inlines.
25343         * cgraph.h (cgraph_rebuild_references): Declare.
25344         * tree-inline.c (tree_function_versioning): Use it.
25345         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
25346
25347 2010-05-11  Jan Hubicka  <jh@suse.cz>
25348
25349         * cgraph.c: Include ipa-utils.h
25350         (cgraph_create_virtual_clone): Update references.
25351         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
25352
25353 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
25354
25355         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
25356         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
25357         cache size.
25358
25359 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
25360
25361         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
25362
25363 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
25364
25365         * gcc.c (execute): For -### don't quote arguments that
25366         contain just alphanumerics and _/-. characters.
25367         * doc/invoke.texi: Document that change for -###.
25368
25369         PR debug/44023
25370         * df-problems.c (struct dead_debug): Add to_rescan field.
25371         (dead_debug_init): Clear to_rescan field.
25372         (dead_debug_finish): Rescan all debug insns in to_rescan
25373         bitmap and free the bitmap.
25374         (dead_debug_insert_before): Instead of rescanning debug insns
25375         immediately queue their rescanning until dead_debug_finish.
25376         (df_note_bb_compute): After dead_debug_add do continue instead
25377         of break.
25378
25379 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
25380
25381         PR debug/44028
25382         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
25383         clear also INSN_REG_USE_LIST.
25384
25385 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25386
25387         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
25388
25389 2010-05-10  Jan Hubicka  <jh@suse.cz>
25390
25391         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
25392         commited change.
25393
25394 2010-05-10  Jan Hubicka  <jh@suse.cz>
25395
25396         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
25397         Allocate encoders.
25398         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
25399         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
25400         (lto_streamer_cache_create): Init alloc pool.
25401         (lto_streamer_cache_delete): Free alloc pool.
25402         * lto-streamer.h: Include alloc pool.
25403         (lto_streamer_cache_d): Use alloc pool.
25404         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
25405
25406 2010-05-10  Jan Hubicka  <jh@suse.cz>
25407
25408         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
25409         * cgraphbuild.c: Include except.h
25410         (record_type_list, record_eh_tables): New function.
25411         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
25412
25413 2010-05-10  Jan Hubicka  <jh@suse.cz>
25414
25415         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
25416         __frame_dummy_init_array_entry, force_to_data): Attribute as used
25417         rather than unused.
25418
25419 2010-05-10  Michael Matz  <matz@suse.de>
25420
25421         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
25422         (can_reassociate_p): Use FLOAT_TYPE_P.
25423         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
25424         (vect_force_simple_reduction): ... this.
25425         * tree-parloops.c (gather_scalar_reductions): Use
25426         vect_force_simple_reduction.
25427         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
25428         vect_is_simple_reduction, add modify argument, if true rewrite
25429         "a-b" into "a+(-b)".
25430         (vect_is_simple_reduction, vect_force_simple_reduction): New
25431         functions.
25432         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
25433
25434 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
25435             Vladimir Makarov  <vmakarov@redhat.com>
25436
25437         PR rtl-optimization/44012
25438         * ira-build.c (remove_unnecessary_allocnos): Nullify
25439         regno_allocno_map of the removed allocno.
25440
25441 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25442
25443         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
25444         to /dev/null.
25445         * configure: Regenerate.
25446
25447 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25448
25449         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
25450         unused.
25451         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
25452         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
25453         support in Sun ld.
25454         * configure: Regenerate.
25455
25456 2010-05-10  Richard Guenther  <rguenther@suse.de>
25457
25458         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
25459         marked if the entry identifier is marked.
25460
25461 2010-05-10  Richard Guenther  <rguenther@suse.de>
25462
25463         * c-common.c (struct c_common_attributes): Add fnspec attribute.
25464         (handle_fnspec_attribute): New function.
25465         * gimple.h (gimple_call_return_flags): Declare.
25466         (gimple_call_arg_flags): Likewise.
25467         * gimple.c (gimple_call_arg_flags): New function.
25468         (gimple_call_return_flags): Likewise.
25469         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
25470         New argument flags.
25471         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
25472         return value flags.
25473         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
25474         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
25475         main work to ...
25476         (make_heapvar_for): ... this new function.
25477         (handle_rhs_call): Handle fnspec attribute argument specifiers.
25478         (handle_lhs_call): Likewise.
25479         (find_func_aliases): Adjust.
25480
25481 2010-05-10  Richard Guenther  <rguenther@suse.de>
25482
25483         PR tree-optimization/44050
25484         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
25485
25486 2010-05-10  Wei Guozhi  <carrot@google.com>
25487
25488         PR target/42879
25489         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
25490
25491 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
25492
25493         PR c/10676
25494         * c-typeck.c (lookup_field): Take a type directly.  Update
25495         recursive calls.
25496         (build_component_ref): Update call to lookup_field.
25497         (set_init_label): Use lookup_field to find initialized field.
25498         Handle returned list of fields like a sequence of designators.
25499
25500 2010-05-09  Richard Guenther  <rguenther@suse.de>
25501
25502         PR middle-end/44024
25503         * fold-const.c (tree_single_nonzero_warnv_p): Properly
25504         handle &FUNCTION_DECL.
25505
25506 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
25507
25508         PR c/4784
25509         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
25510         structures and unions recursively.
25511         (detect_field_duplicates): Move duplicate detection with a hash to
25512         detect_field_duplicates_hash.  Always use a hash if anonymous
25513         structures or unions are present.
25514         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
25515         give errors.
25516
25517 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
25518
25519         PR target/44046
25520         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
25521         detect Atom, Core 2 and Core i7.
25522
25523 2010-05-09  Richard Guenther  <rguenther@suse.de>
25524
25525         * gcc.c (store_arg): Handle temporary file deletion for
25526         joined arguments.
25527
25528 2010-05-09  Richard Guenther  <rguenther@suse.de>
25529
25530         PR middle-end/44043
25531         * ipa-inline.c (estimate_function_body_sizes): Return after
25532         disregarding inline limits.
25533
25534 2010-05-09  Richard Guenther  <rguenther@suse.de>
25535
25536         * gcc.c (store_arg): Revert last change.
25537
25538 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
25539
25540         PR middle-end/28685
25541         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
25542         (optimize_ops_list): Call it.
25543
25544 2010-05-08  Richard Guenther  <rguenther@suse.de>
25545
25546         PR tree-optimization/44030
25547         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
25548         NECESSARY flag if we propagate from a inserted expression.
25549
25550 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
25551
25552         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
25553         domain types as equal if they are both PLACEHOLDER_EXPRs.
25554
25555 2010-05-08  Richard Guenther  <rguenther@suse.de>
25556
25557         * lto-wrapper.c (run_gcc): Remove linker output from
25558         command line for LTRANS invocation.
25559
25560 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
25561
25562         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
25563         lto-macho as lto_binary_reader.
25564         * target.h (struct gcc_target): New hooks lto_start and lto_end.
25565         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
25566         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
25567         in lto_start and lto_end calls.
25568         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
25569         magic numbers.
25570         (scan_prog_file): Update is_elf_or_coff call.
25571         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
25572
25573         * collect2.c (main): Fix enum comparison.
25574
25575         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
25576         Add prototypes.
25577         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
25578         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
25579         and TARGET_ASM_LTO_END.
25580         * darwin.c: Include obstack.h and lto-streamer.h.
25581         (lto_section_names_offset, lto_section_names_obstack,
25582         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
25583         global variables.
25584         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
25585         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
25586         to a temporary file.
25587         (darwin_asm_lto_end): New function.  Restore asm_out_file.
25588         (darwin_asm_named_section): For LTO sections, replace the name with
25589         the offset of the section name in a string table, and build this
25590         table.
25591         (darwin_file_start): Initialize global vars for LTO support.
25592         (darwin_file_end): If output to asm_out_file was redirected, append it
25593         to the proper asm_out_file here.  Add the section names section.
25594
25595 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
25596
25597         * c-pragma.c (pending_weak_d, pending_weak): New.
25598         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
25599         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
25600         handle_pragma_weak): Update the uses of pending_weaks.
25601
25602 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25603
25604         PR documentation/44016
25605         * doc/standards.texi (Standards): Link to unversioned
25606         cxx0x_status.html page.
25607
25608 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
25609
25610         PR target/43708
25611         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
25612         in addition to TREE_USED, to avoid "set but unused" warnings.
25613
25614 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
25615
25616         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
25617         (is_loop_prefetching_profitable): Do not insert prefetches
25618         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
25619         times the prefetch ahead distance.
25620
25621 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
25622
25623         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
25624         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
25625         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
25626         the unroll_factor.
25627
25628 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
25629
25630         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
25631         a diagnostic info when the insn-to-mem ratio is too small.
25632
25633 2010-05-07  Richard Guenther  <rguenther@suse.de>
25634
25635         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
25636         the linker plugin.
25637         (store_arg): Queue temp_filename for deletion instead of
25638         the whole argument.
25639
25640 2010-05-07  Richard Guenther  <rguenther@suse.de>
25641
25642         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
25643         (run_gcc): Handle LTRANS phase invocation.
25644         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
25645
25646 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
25647
25648         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
25649         this is also meaningful on PARM_DECLs and RESULT_DECLs.
25650
25651 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25652
25653         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
25654
25655 2010-05-07  Richard Guenther  <rguenther@suse.de>
25656
25657         PR tree-optimization/44020
25658         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
25659         code when PRE is not yet initialized.
25660
25661 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25662
25663         * config/mips/dbxmdebug.h: Remove.
25664         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
25665
25666 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
25667
25668         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
25669         with null pointer and also warn about ordered comparison of zero with
25670         pointer if -Wextra.
25671
25672 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
25673
25674         * graphite-blocking.c
25675         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
25676         * graphite-clast-to-gimple.c
25677         (clast_to_gcc_expression): Same.
25678         (precision_for_value): Same.
25679         (precision_for_interval): Same.
25680         (gcc_type_for_interval): Same.
25681         (graphite_create_new_guard): Same.
25682         (compute_bounds_for_level): Same.
25683         (graphite_create_new_loop_guard): Same.
25684         * graphite-interchange.c
25685         (build_linearized_memory_access): Same.
25686         (pdr_stride_in_loop): Same.
25687         (memory_strides_in_loop_1): Same.
25688         (memory_strides_in_loop): Same.
25689         (extend_scattering): Same.
25690         (psct_scattering_dim_for_loop_depth): Same.
25691         (pbb_number_of_iterations): Same.
25692         * graphite-poly.h
25693         (debug_iteration_domains): Same.
25694         * graphite-ppl.c
25695         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
25696         (ppl_set_inhomogeneous_gmp): Same.
25697         (ppl_strip_loop): Same.
25698         (ppl_lexico_compare_linear_expressions): Same.
25699         (ppl_read_polyhedron_matrix): Same.
25700         (ppl_max_for_le_pointset): Same.
25701         * graphite-ppl.h
25702         (ppl_read_polyhedron_matrix): Same.
25703         (tree_int_to_gmp): Same.
25704         (gmp_cst_to_tree): Same.
25705         (ppl_set_inhomogeneous): Same.
25706         (ppl_set_inhomogeneous_tree): Same.
25707         (ppl_set_coef): Same.
25708         (ppl_set_coef_tree): Same.
25709         * graphite-sese-to-poly.c
25710         (build_pbb_scattering_polyhedrons): Same.
25711         (build_scop_scattering): Same.
25712         (scan_tree_for_params_right_scev): Same.
25713         (scan_tree_for_params): Same.
25714         (find_params_in_bb): Same.
25715         (find_scop_parameters): Same.
25716         (add_upper_bounds_from_estimated_nit): Same.
25717         (build_loop_iteration_domains): Same.
25718         (add_condition_to_domain): Same.
25719         (pdr_add_memory_accesses): Same.
25720
25721 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
25722
25723         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
25724         CLooG's value_* macros to their respective mpz_* counterparts.
25725         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
25726         (graphite_create_new_loop_guard): Same.
25727         * graphite-interchange.c (build_linearized_memory_access): Same.
25728         (pdr_stride_in_loop): Same.
25729         (memory_strides_in_loop_1): Same.
25730         (1st_interchange_profitable_p): Same.
25731         * graphite-poly.c (extend_scattering): Same.
25732         (psct_scattering_dim_for_loop_depth): Same.
25733         (pbb_number_of_iterations): Same.
25734         (pbb_number_of_iterations_at_time): Same.
25735         * graphite-poly.h (new_1st_loop): Same.
25736         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
25737         (oppose_constraint): Same.
25738         (insert_constraint_into_matrix): Same.
25739         (ppl_set_inhomogeneous_gmp): Same.
25740         (ppl_set_coef_gmp): Same.
25741         (ppl_strip_loop): Same.
25742         (ppl_lexico_compare_linear_expressions): Same.
25743         (ppl_max_for_le_pointset): Same.
25744         (ppl_min_for_le_pointset): Same.
25745         (ppl_build_realtion): Same.
25746         * graphite-ppl.h (gmp_cst_to_tree): Same.
25747         (ppl_set_inhomogeneous): Same.
25748         (ppl_set_inhomogeneous_tree): Same.
25749         (ppl_set_coef): Same.
25750         (ppl_set_coef_tree): Same.
25751         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25752         (build_scop_scattering): Same.
25753         (add_value_to_dim): Same.
25754         (scan_tree_for_params_right_scev): Same.
25755         (scan_tree_for_params_int): Same.
25756         (scan_tree_for_params): Same.
25757         (find_params_in_bb): Same.
25758         (find_scop_parameters): Same.
25759         (add_upper_bounds_from_estimated_nit): Same.
25760         (build_loop_iteration_domains): Same.
25761         (create_linear_expr_from_tree): Same.
25762         (add_condition_to_domain): Same.
25763         (pdr_add_memory_accesses): Same.
25764
25765 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
25766             Jason Merrill  <jason@redhat.com>
25767
25768         * c-common.c (c_common_reswords): Add nullptr.
25769         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
25770         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
25771         (gen_type_die_with_usage): Likewise.
25772         * dbxout.c (dbxout_type): Likewise.
25773         * sdbout.c (plain_type_1): Likewise.
25774
25775 2010-05-06  Jason Merrill  <jason@redhat.com>
25776
25777         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
25778         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
25779         ret appropriately.
25780         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
25781
25782         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
25783         stripping WITH_SIZE_EXPR.
25784         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
25785         change.
25786
25787 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25788
25789         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
25790         list of obsolete configurations.
25791         Disabled check for obsolete configurations.
25792         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
25793         Removed support for previous versions.
25794         * config/mips/iris.h: Removed.
25795         * config/mips/iris5.h: Removed.
25796         * config/mips/iris6.h: Merged old iris.h contents.
25797         (TARGET_IRIX): Removed.
25798         (DRIVER_SELF_SPECS): Removed mabi=32.
25799         (IDENT_ASM_OP): Removed undef.
25800         (STARTFILE_SPEC): Removed mabi=32.
25801         (ENDFILE_SPEC): Likewise.
25802         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
25803         (MACHINE_TYPE): Update for IRIX 6.5.
25804         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
25805         TARGET_IRIX by TARGET_IRIX6.
25806         (mips_file_start): Likewise.
25807         (mips_output_external): Remove IRIX 5/6 O32 support.
25808         (mips_output_function_prologue): Likewise.
25809         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
25810         TARGET_IRIX6.
25811         (TARGET_CPU_CPP_BUILTINS): Likewise.
25812         (TARGET_IRIX): Removed.
25813         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
25814         (MULTILIB_DIRNAMES): Removed 32.
25815         (MULTILIB_OSDIRNAMES): Removed ../lib.
25816         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
25817         (Specific, mips-sgi-irix5): Document removal.
25818         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
25819         Remove references to older IRIX 6 releases and the O32 ABI.
25820
25821 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
25822
25823         PR bootstrap/43994
25824         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
25825         instead of DF_REF_REAL_REG.
25826
25827 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
25828
25829         PR target/43888
25830         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
25831         handling to still return true for x64 targets.
25832
25833 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25834
25835         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
25836
25837 2010-05-06  Jan Hubicka  <jh@suse.cz>
25838
25839         PR tree-optimization/43791
25840         * ipa-inline.c (update_caller_keys): Remove bogus
25841         disregard_inline_limits check.
25842
25843 2010-05-06  Michael Matz  <matz@suse.de>
25844
25845         PR tree-optimization/43984
25846         * tree-ssa-pre.c (inserted_phi_names): Remove.
25847         (inserted_exprs): Change to bitmap.
25848         (create_expression_by_pieces): Set bits, don't append to vector.
25849         (insert_into_preds_of_block): Don't handle inserted_phi_names.
25850         (eliminate): Don't look at inserted_phi_names, remove deleted
25851         insns from inserted_exprs.
25852         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
25853         (init_pre, fini_pre): Allocate and free bitmaps.
25854         (execute_pre): Insert insns on edges before elimination.
25855
25856 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
25857
25858         * tree.c (initializer_zerop): Handle STRING_CST.
25859
25860 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25861
25862         PR 40989
25863         * doc/invoke.texi (Wimplicit): Document as C only.
25864         * opts.c (common_handle_option): Add argument kind.
25865         (handle_option): Rename as read_cmdline_option. Factor out code to...
25866         (handle_option): ... here. New.
25867         (handle_options): Rename as read_cmdline_options.
25868         (decode_options): Update call.
25869         (set_option): Use option index instead of option pointer. Classify
25870         diagnostics correctly.
25871         (enable_warning_as_error): Call handle_option.
25872         * opts.h (set_option): Update declaration.
25873         (handle_option): Declare.
25874         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
25875         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
25876         * c-opts.c (set_Wimplicit): Delete.
25877         (c_family_lang_mask): New static constant.
25878         (c_common_handle_option): Add argument kind. Use handle_option
25879         instead of set_Wimplicit.
25880         (c_common_post_options): warn_implicit and warn_implicit_int
25881         are disabled by default.
25882         * c-common.c (warn_implicit): Do not define here.
25883         * c-common.h (warn_implicit): Do not declare here.
25884         (c_common_handle_option): Update declaration.
25885         * lto-opts.c (lto_reissue_options): Update call to set_option.
25886
25887 2010-05-06  Richard Guenther  <rguenther@suse.de>
25888
25889         PR tree-optimization/43571
25890         * domwalk.c (walk_dominator_tree): Walk the dominator
25891         sons in more optimal order.
25892
25893 2010-05-06  Richard Guenther  <rguenther@suse.de>
25894
25895         PR tree-optimization/43934
25896         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
25897         (stmt_cost): Likewise.
25898         (extract_true_false_args_from_phi): New helper.
25899         (determine_max_movement): For PHI nodes verify we can hoist them
25900         and compute their cost.
25901         (determine_invariantness_stmt): Handle PHI nodes.
25902         (move_computations_stmt): Likewise.  Hoist PHI nodes in
25903         if-converted form using COND_EXPRs.
25904         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
25905         (tree_ssa_lim): Likewise.
25906         * tree-flow.h (tree_ssa_lim): Adjust prototype.
25907         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
25908
25909 2010-05-06  Richard Guenther  <rguenther@suse.de>
25910
25911         PR tree-optimization/43987
25912         * tree-ssa-structalias.c (could_have_pointers): For possibly
25913         address-taken variables force pointers to be recorded.
25914         (create_variable_info_for_1): Likewise.
25915         (push_fields_onto_fieldstack): Pass in wheter all fields
25916         must have pointers.
25917         (find_func_aliases): Query types instead of vars whether
25918         they contain pointers where appropriate.
25919
25920 2010-05-06  Jan Hubicka  <jh@suse.cz>
25921
25922         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
25923         (record_reference, mark_address, mark_load, mark_store): Record
25924         references.
25925         (record_references_in_initializer): Update call of record_references.
25926         (rebuild_cgraph_edges): Remove all references before rebuiding.
25927         * cgraph.c (cgraph_create_node): Clear ref list.
25928         (cgraph_remove_node): Remove references.
25929         (dump_cgraph_node): Dump references.
25930         (cgraph_clone_node): Clone references.
25931         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
25932         (struct cgraph_node, varpool_node): Add ref_lst.
25933         * ipa-ref.c: New file.
25934         * ipa-ref.h: New file.
25935         * ipa-ref-inline.h: New file.
25936         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
25937         (referenced_from_other_partition_p): New function.
25938         (lto_output_varpool_node): Take set arugment; call
25939         referenced_from_other_partition.
25940         (lto_output_ref): New.
25941         (add_references): New.
25942         (output_refs): New.
25943         (output_cgraph): Compute boundary based on references; output refs.
25944         (output_varpool): Accept cgraph_node_set argument.
25945         (input_ref): New.
25946         (input_refs): New.
25947         (input_cgraph): Call input_refs.
25948         * lto-section-in.c (lto_section_name): Add refs.
25949         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
25950         (ipa-ref.o): New file.
25951         * varpool.c (varpool_node): Clear ipa ref list.
25952         (varpool_remove_node): Remove references.
25953         (dump_varpool_node): Dump references.
25954         (varpool_assemble_decl): Only compile finalized ones.
25955         (varpool_extra_name_alias): Initialize ref list.
25956         * lto-streamer.c (lto-get_section_name): Add .refs section.
25957         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
25958         (referenced_from_other_partition_p): Declared.
25959
25960 2010-05-06  Ira Rosen  <irar@il.ibm.com>
25961
25962         PR tree-optimization/43901
25963         * tree-vect-stmts.c (vectorizable_call): Assert that vector
25964         type is not NULL if it's transformation phase, and return
25965         FALSE if it's analysis.
25966         (vectorizable_conversion, vectorizable_operation,
25967         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
25968
25969 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
25970
25971         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25972         Delete.
25973         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25974         New define.
25975         * config/mips/mips-protos.h
25976         (mips_small_register_classes_for_mode_p): Delete prototype.
25977
25978 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
25979
25980         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
25981         * config/arm/arm.c (multiple_operation_profitable_p,
25982         compute_offset_order): New static functions.
25983         (load_multiple_sequence, store_multiple_sequence): Use them.
25984         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
25985         memory offsets, not register numbers.
25986         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
25987
25988 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
25989
25990         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
25991         (get_pending_sizes, put_pending_size, put_pending_sizes):
25992         Update the uses of pending_sizes.
25993         * c-decl.c (store_parm_decls): Likewise.
25994         * c-tree.h (struct c_arg_info): Likewise.
25995         * tree.h: Update the prototype for get_pending_sizes and
25996         put_pending_sizes.
25997
25998 2010-05-05  Jason Merrill  <jason@redhat.com>
25999
26000         PR debug/43370
26001         * c-common.c (handle_aligned_attribute): Respect
26002         ATTR_FLAG_TYPE_IN_PLACE.
26003
26004         PR testsuite/43758
26005         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
26006         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
26007         (TARGET_INITIALIZER): Use it.
26008         * c-common.c (attribute_takes_identifier_p): Call it.
26009         * c-common.h: Update prototype.
26010         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
26011         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
26012
26013 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
26014
26015         PR debug/43950
26016         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
26017         DW_ID_down_case for Fortran compilation units.
26018
26019 2010-05-05  Jan Hubicka  <jh@suse.cz>
26020
26021         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
26022         handle aliases.
26023
26024 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
26025
26026         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
26027         a variable-sized RESULT_DECL.
26028
26029 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
26030
26031         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
26032
26033 2010-05-05  Jason Merrill  <jason@redhat.com>
26034
26035         PR c++/43787
26036         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
26037         returns GS_OK.
26038         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
26039
26040 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
26041             Jakub Jelinek  <jakub@redhat.com>
26042
26043         PR debug/43478
26044         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
26045         (dead_debug_init, dead_debug_finish): New functions.
26046         (dead_debug_add, dead_debug_insert_before): Likewise.
26047         (df_note_bb_compute): Initialize a dead_debug object, add dead
26048         debug uses to it, insert debug bind insns before death insns,
26049         reset debug insns that refer to pending uses at the end.
26050         * rtl.h (make_debug_expr_from_rtl): New prototype.
26051         * varasm.c (make_debug_expr_from_rtl): New function.
26052
26053 2010-05-05  Jan Hubicka  <jh@suse.cz>
26054
26055         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
26056         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
26057         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
26058         lto_varpool_encoder_deref, lto_varpool_encoder_size,
26059         lto_varpool_encoder_encode_initializer_p,
26060         lto_set_varpool_encoder_encode_initializer): New functions.
26061         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
26062         call output_varpool.
26063         (input_varpool_node): Do not always set analyzed.
26064         (input_cgraph_1): Return vector of cgraph nodes.
26065         (input_varpool_1): Return vector of varpools.
26066         (input_cgraph): Free the vectors.
26067         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
26068         output only initializers needed.
26069         (lto_output): Only call output_cgraph.
26070         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
26071         * lto-section-out.c (lto_new_out_decl_state): Initialize
26072         state->varpool_node_encoder.
26073         * lto-streamer.h (lto_varpool_encoder_d): New.
26074         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
26075         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
26076         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
26077         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
26078         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
26079         Declare.
26080         (output_varpool, input_varpool): Remove declarations.
26081
26082 2010-05-05  Jan Hubicka  <jh@suse.cz>
26083
26084         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
26085         with body can prevail.
26086
26087 2010-05-05  Jan Hubicka  <jh@suse.cz>
26088
26089         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
26090         size.
26091
26092 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
26093
26094         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
26095
26096         * gengtype.h (erro_at_line): Constify pos argument.
26097
26098         * gengtype.c: Include hashtab.h.
26099         (enum gc_used): Document GC_MAYBE_POINTED_TO.
26100         (error_at_line): Constify pos argument.
26101         (do_typedef): Initialize p->opt field.
26102         (get_file_gtfilename): Fix comment typo.
26103         (struct walk_type_data): Constify line field.
26104         (get_output_file_for_structure): New function.
26105         (write_local_func_for_structure): Constify orig_s argument.
26106         Use get_output_file_for_structure.
26107         (write_func_for_structure): Use get_output_file_for_structure.
26108         (INDENT): New define.
26109         (dump_pair, dump_type, dump_type_list, dump_typekind)
26110         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
26111         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
26112         functions.
26113         (seen_types): New variable.
26114         (main): New variable do_dump.  Process "-d" command line option.
26115         Call dump_everything if dump requested.
26116
26117 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
26118
26119         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
26120         in a temporary instead of invoking the macro multiple times.
26121         (track_expr_p): Likewise.
26122
26123 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
26124
26125         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
26126         per new semantics.
26127         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
26128         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
26129         conditions for printing notes.
26130         * common.opt (-Wcoverage-mismatch): Allow negative, default to
26131         true, update documentation.
26132         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
26133
26134 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
26135
26136         PR c/43981
26137         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
26138         on dimen.
26139
26140 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
26141
26142         PR target/43799
26143         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
26144         (*sse_prologue_save_insn1): Likewise.
26145         (SSE prologue save splitter): Likewise.
26146
26147 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
26148
26149         * tree.c (free_lang_data_in_one_sizepos): New inline function.
26150         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
26151         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
26152         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
26153         all decls.  Call it on DECL_FIELD_OFFSET of fields.
26154         (find_decls_types_r): Follow DECL_VALUE_EXPR.
26155         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
26156
26157 2010-05-04  Martin Jambor  <mjambor@suse.cz>
26158
26159         * tree-sra.c (build_access_from_expr_1): The first parameter type
26160         changed to simple tree.
26161         (build_access_from_expr): Likewise, gsi parameter was eliminated.
26162         (scan_assign_result): Renamed to assignment_mod_result, enum elements
26163         renamed as well.
26164         (build_accesses_from_assign): Removed all parameters except for a
26165         simple gimple statement.  Now returns a simple bool.
26166         (scan_function): All non-analysis parts moved to separate functions
26167         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
26168         parameters and updated both callers.
26169         (sra_modify_expr): Removed parameter data.
26170         (sra_modify_function_body): New function.
26171         (perform_intra_sra): Call sra_modify_function_body to modify the
26172         function body.
26173         (replace_removed_params_ssa_names): Parameter data changed into
26174         adjustments vector.
26175         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
26176         changed the parameter dont_convert to convert with the opposite
26177         meaning.
26178         (sra_ipa_modify_assign): Parameter data changed into adjustments
26179         vector, return value changed to bool.
26180         (ipa_sra_modify_function_body): New function.
26181         (sra_ipa_reset_debug_stmts): Updated a comment.
26182         (modify_function): Use ipa_sra_modify_function_body to modify function
26183         body.
26184
26185 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
26186
26187         PR middle-end/43671
26188         * alias.c (true_dependence): Handle the same VALUE in x and mem.
26189         (canon_true_dependence): Likewise.
26190         (write_dependence_p): Likewise.
26191
26192 2010-05-04  Jan Hubicka  <jh@suse.cz>
26193
26194         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
26195         * cgraphbuild.c: Include ipa-utils.h
26196         (record_reference_ctx): New struct.
26197         (record_reference): Simplify to work on initializers; not statements.
26198         (mark_address, mark_load, mark_store): New.
26199         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
26200         walk PHI nodes too.
26201         (record_references_in_initializer): Update use of record_reference.
26202         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
26203         walk PHI nodes too.
26204
26205 2010-05-04  Jan Hubicka  <jh@suse.cz>
26206
26207         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
26208         node will be removed anyway.
26209         (lto_varpool_replace_node): Allow also unanalyzed nodes;
26210         relink aliases of node into prevailing node.
26211         * varpool.c (varpool_remove_node): Remove aliases properly;
26212         when removing node, remove all its aliases too; remove DECL_INITIAL
26213         of removed node; ggc_free the varpool node.
26214
26215 2010-05-04  Richard Guenther  <rguenther@suse.de>
26216
26217         PR tree-optimization/43879
26218         * tree-ssa-structalias.c (alias_get_name): Use
26219         DECL_ASSEMBLER_NAME if available.
26220         (create_function_info_for): Return the varinfo node.
26221         (ipa_pta_execute): Associate same-body aliases and extra names
26222         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
26223
26224 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
26225
26226         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
26227
26228 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
26229
26230         PR bootstrap/43964
26231         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
26232         only if HONOR_REG_ALLOC_ORDER is not defined.
26233
26234 2010-05-04  Richard Guenther  <rguenther@suse.de>
26235
26236         PR tree-optimization/43949
26237         * tree-vrp.c (extract_range_from_binary_expr): Only handle
26238         TRUNC_MOD_EXPR.
26239
26240 2010-04-26  Jason Merrill  <jason@redhat.com>
26241
26242         * c.opt (-fstrict-enums): New.
26243         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
26244
26245 2010-05-03  David Ung  <davidu@mips.com>
26246             James E. Wilson  <wilson@codesourcery.com>
26247
26248         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
26249         emit the trap instruction before the divide for TUNE_74K.
26250
26251 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
26252
26253         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
26254         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
26255         based on the above, for new target hook.
26256
26257         * hooks.c (hook_bool_mode_true): New generic hook.
26258         * hooks.h (hook_bool_mode_true): Add prototype.
26259
26260         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
26261         target hook.
26262         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
26263         target hook, set to hook_bool_mode_false.
26264         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
26265         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
26266         with targetm.small_register_classes_for_mode_p.
26267         (find_reusable_reload): Likewise.
26268         (combine_reloads): Likewise.
26269         * reload1.c (reload_as_needed): Likewise.
26270         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
26271         * ifcvt.c (noce_process_if_block, check_cond_move_block,
26272         dead_or_predicable): Likewise.
26273         * regmove.c (optimize_reg_copy_1): Likewise.
26274         * calls.c (prepare_call_address): Likewise.
26275         (precompute_register_parameters): Likewise.
26276
26277         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
26278         hook definition.
26279         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
26280         implementation of the hook that considers all register classes
26281         small except for SH64.
26282         (sh_override_options): Use the new hook.
26283         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
26284         Add prototype.
26285
26286         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
26287         hook definition.
26288         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
26289         implementation of the hook that considers all register classes
26290         small for THUMB1.
26291         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
26292         Add prototype.
26293
26294         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
26295         hook definition.
26296         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
26297         implementation of the hook that considers all register classes
26298         small for MIPS16.
26299         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
26300         Add prototype.
26301
26302         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
26303         hook definition.
26304         * config/m32c/m32c.h: Likewise.
26305         * config/pdp11/pdp11.h: Likewise.
26306         * config/avr/avr.h: Likewise.
26307         * config/xtensa/xtensa.h: Likewise.
26308         * config/m68hc11/m68hc11.h: Likewise.
26309         * config/mn10300/mn10300.h: Likewise.
26310         * config/mcore/mcore.h: Likewise.
26311         * config/h8300/h8300.h: Likewise.
26312         * config/bfin/bfin.h: Likewise.
26313
26314         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
26315         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
26316
26317 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
26318
26319         * double-int.h (tree_to_double_int): Remove macro.
26320         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
26321         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26322         (tree_to_double_int): New function.
26323         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
26324         Move ...
26325         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26326
26327 2010-05-03  Richard Guenther  <rguenther@suse.de>
26328
26329         PR tree-optimization/43971
26330         * tree-ssa-structalias.c (get_constraint_for_1): Fix
26331         constraints in the !flag_delete_null_pointer_checks case.
26332
26333 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
26334
26335         PR debug/43972
26336         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
26337         result mode matches original rtl mode.
26338
26339 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
26340
26341         PR target/43888
26342         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
26343
26344 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26345
26346         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
26347         when processing flag options.
26348
26349 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26350
26351         * gcov-iov.c (main): Change format string placeholder
26352         from %#08x to 0x%08x.
26353         * genchecksum.c (dosum): Change format string placeholder
26354         from %#02x to 0x%02x.
26355
26356 2010-05-02  Richard Guenther  <rguenther@suse.de>
26357
26358         PR tree-optimization/43879
26359         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
26360
26361 2010-05-02  Bruno Haible  <bruno@clisp.org>
26362
26363         * doc/extend.texi (Function Attributes): Fix a typo.
26364
26365 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26366
26367         Revert:
26368         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
26369         placeholder from 0x%x to %#x.
26370         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26371         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26372         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26373         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26374         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26375         * config/i386/i386.c (ix86_target_string): Ditto.
26376         * config/i386/i386.c (output_pic_addr_const): Ditto.
26377         (print_operand): Ditto.
26378
26379 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
26380
26381         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
26382         placeholder from 0x%x to %#x.
26383         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
26384         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
26385         (ASM_OUTPUT_DEBUG_DATA): Ditto.
26386         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
26387         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
26388         * optc-gen.awk: Ditto.
26389         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
26390         (HOST_WIDE_INT_PRINT_HEX): Ditto.
26391         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
26392         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26393
26394 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
26395
26396         * target.h (struct calls): Add function_value_regno_p field.
26397         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
26398         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
26399         * targhooks.c (default_function_value_regno_p): New function.
26400         * targhooks.h (default_function_value_regno_p): Declare function.
26401         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
26402         * builtins.c. (apply_result_size): (Ditto.).
26403         * combine.c. (likely_spilled_retval_p): (Ditto.).
26404         * mode-switching.c. Include 'target.h'.
26405         (create_pre_exit): Use function_value_regno_p hook.
26406         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
26407         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
26408         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
26409
26410         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
26411         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
26412         (ix86_function_value_regno_p): Declare as static, change argument
26413         type to const unsigned int.
26414         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
26415
26416 2010-05-01  Richard Guenther  <rguenther@suse.de>
26417
26418         PR tree-optimization/43949
26419         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
26420         types.
26421         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
26422
26423 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
26424
26425         * rtl.h (CONST_DOUBLE_P): Define.
26426         (rtx_to_double_int): Declare.
26427         * emit-rtl.c (rtx_to_double_int): New function.
26428         * dwarf2out.c (insert_double): New function.
26429         (loc_descriptor, add_const_value_attribute): Clean up, use
26430         rtx_to_double_int and insert_double functions.
26431
26432 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
26433
26434         * doc/extend.texi (Inline): Add missing return keyword to examples.
26435         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
26436         "command-line".
26437
26438 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
26439
26440         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
26441         the variable part of the offset as well.  Use highest_pow2_factor for
26442         all alignment checks.
26443
26444 2010-04-30  Richard Guenther  <rguenther@suse.de>
26445
26446         PR tree-optimization/43879
26447         * tree-ssa-structalias.c (type_could_have_pointers): Functions
26448         can have pointers.
26449
26450 2010-04-30  Jan Hubicka  <jh@suse.cz>
26451
26452         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
26453         varpool.
26454         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
26455
26456 2010-04-30  Jan Hubicka  <jh@suse.cz>
26457
26458         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
26459         New.
26460         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
26461         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
26462         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
26463         cgraph_node_set_needs_ltrans_p): Remove.
26464
26465 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
26466
26467         * sdbout.c: Include vec.h, do not include varray.h.
26468         (deferred_global_decls, sdbout_global_decl,
26469         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
26470         * toplev.c: Do not include varray.h.
26471         (dump_memory_report): Do not dump VARRAY statistics.
26472         * gengtype.c (open_base_file): Ignore varray.h.
26473         * Makefile.in: Update for abovementioned changes.
26474         Remove all traces of varray.c and varray.h.
26475         * varray.c: Remove file.
26476         * varray.h: Remove file.
26477
26478 2010-04-30  Jan Hubicka  <jh@suse.cz>
26479
26480         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
26481         references.
26482
26483 2010-04-30  Jan Hubicka  <jh@suse.cz>
26484
26485         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
26486         needed.
26487
26488 2010-04-30  Richard Guenther  <rguenther@suse.de>
26489
26490         * tree-ssa-structalias.c (get_constraint_for_1): Generate
26491         constraints for CONSTRUCTOR.
26492
26493 2010-04-30  Richard Guenther  <rguenther@suse.de>
26494
26495         PR lto/43946
26496         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
26497         first after all lowering passes.
26498
26499 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
26500
26501         * toplev.c: Include varray.h for statistics dumping.
26502         * tree.h: Do not declare varray_head_tag.
26503         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
26504         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
26505         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
26506         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
26507         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
26508         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
26509         c-common.c, c-common.h, reg-stack.c, basic-block.h,
26510         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
26511         include varray.h.
26512         * Makefile.in: Update for abovementioned changes.
26513
26514 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
26515
26516         PR debug/43942
26517         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
26518
26519 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
26520
26521         * config/picochip/picochip.c (picochip_legitimize_address): Define.
26522         Use this function to do machine-specific conversion.
26523         (picochip_legitimize_reload_address): Likewise.
26524         (picochip_legitimate_address_p): Check valid base register only if
26525         strict.
26526         (picochip_check_conditional_copy): Check for modw only if opnd is
26527         register.
26528         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
26529         to call the function in c.
26530         * config/picochip/picochip-protos.h
26531         (picochip_legitimize_reload_address): Define.
26532         * config/picochip/picochip.md (supported_compare1): Define.
26533
26534 2010-04-30  Jan Hubicka  <jh@suse.cz>
26535
26536         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
26537         (cgraph_global_info): Remove inlined.
26538         (LTO_cgraph_tag_names): Remove.
26539         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
26540         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
26541         simplify cgraph tags and document.
26542         (lto_output_node): Use only LTO_cgraph_unavail_node and
26543         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
26544         for_functions_valid, global info, process and output flags.
26545         (input_overwrite_node): Initialize estimated stack size and
26546         estimated growth.  Do not read flags we no longer store.
26547         (input_node): Likewise do not read info no longer stored.
26548         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
26549         flag.
26550
26551 2010-04-30  Richard Guenther  <rguenther@suse.de>
26552
26553         PR tree-optimization/43879
26554         * tree-ssa-structalias.c (get_constraint_for_1): Properly
26555         handle non-zero initializers.
26556
26557 2010-04-30  Richard Guenther  <rguenther@suse.de>
26558
26559         * builtins.c (fold_builtin_1): Delete free (0).
26560
26561 2010-04-29  Jan Hubicka  <jh@suse.cz>
26562
26563         * gengtype.c (open_base_files): Add lto-streamer.h
26564         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
26565         (pass_ipa_cp): GGC collect.
26566         * toplev. (compile_file): Do not output symbols.
26567         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
26568         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
26569         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
26570         * lto-section-in.c: Include ggc.h
26571         (lto_new_in_decl_state): Alloc in GGC.
26572         (lto_delete_in_decl_state): Likewise.
26573         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
26574         Collect.
26575
26576 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
26577
26578         PR target/42895
26579         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
26580         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
26581         (HONOR_REG_ALLOC_ORDER): Describe new macro.
26582         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
26583         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
26584         account only if HONOR_REG_ALLOC_ORDER is not defined.
26585         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
26586         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
26587
26588 2010-04-29  Jon Grant  <04@jguk.org>
26589
26590         * collect2.c (vflag): Change type from int to bool.
26591         (debug): Likewise.
26592         (helpflag): New global bool.
26593         (main): Set vflag and debug with boolean, not integer truth values.
26594         Accept new "--help" option and output usage text if found.
26595         * collect2.h (vflag): Update prototype.
26596         (debug): Likewise.
26597
26598 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
26599
26600         PR bootstrap/43936
26601         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
26602
26603 2010-04-29  Richard Guenther  <rguenther@suse.de>
26604
26605         PR bootstrap/43935
26606         * plugin.h (invoke_plugin_callbacks): Annotate arguments
26607         with ATTRIBUTE_UNUSED.
26608
26609 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
26610
26611         PR target/43921
26612         * config/i386/i386.c (get_some_local_dynamic_name): Replace
26613         INSN_P with NONDEBUG_INSN_P.
26614         (distance_non_agu_define): Likewise.
26615         (distance_agu_use): Likewise.
26616
26617 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
26618
26619         From Dominique d'Humieres  <dominiq@lps.ens.fr>
26620         PR bootstrap/43858
26621         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
26622         test_set.
26623
26624 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
26625
26626         * plugin.h (invoke_plugin_callbacks): New inline function.
26627         * plugin.c (flag_plugin_added): New global flag.
26628         (add_new_plugin): Initialize above flag.
26629         (invoke_plugin_callbacks): Rename to ...
26630         (invoke_plugin_callbacks_full): ... this.
26631
26632 2010-04-28  Jan Hubicka  <jh@suse.cz>
26633
26634         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
26635         (lto_varpool_replace_node): New.
26636         (lto_symtab_resolve_symbols): Resolve varpool nodes.
26637         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
26638         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
26639         * cgraph.h (varpool_node_ptr): New type.
26640         (varpool_node_ptr): New vector.
26641         (varpool_node_set_def): New structure.
26642         (varpool_node_set): New type.
26643         (varpool_node_set): New vector.
26644         (varpool_node_set_element_def): New structure.
26645         (varpool_node_set_element, const_varpool_node_set_element): New types.
26646         (varpool_node_set_iterator): New type.
26647         (varpool_node): Add prev pointers, add used_from_other_partition,
26648         in_other_partition.
26649         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
26650         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
26651         varpool_get_node, varpool_remove_node): Declare.
26652         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
26653         varpool_node_set_size): New inlines.
26654         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
26655         * tree-pass.h (varpool_node_set_def): Forward declare.
26656         (ipa_opt_pass_d): Summary writting takes vnode sets too.
26657         (ipa_write_optimization_summaries): Update prototype.
26658         * ipa-cp.c (ipcp_write_summary): Update.
26659         * ipa-reference.c (ipa_reference_write_summary): Update.
26660         * lto-cgraph.c (lto_output_varpool_node): New static function.
26661         (output_varpool): New function.
26662         (input_varpool_node): New static function.
26663         (input_varpool_1): New function.
26664         (input_cgraph): Input varpool.
26665         * ipa-pure-const.c (pure_const_write_summary): Update.
26666         * lto-streamer-out.c (lto_output): Update, output varpool too.
26667         (write_global_stream): Kill WPA hack.
26668         (produce_asm_for_decls): Update.
26669         (output_alias_pair_p): Handle variables.
26670         (output_unreferenced_globals): Output only needed partition of varpool.
26671         * ipa-inline.c (inline_write_summary): Update.
26672         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
26673         cgraph.
26674         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
26675         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
26676         varpool_node_set_new, varpool_node_set_add,
26677         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
26678         debug_varpool_node_set): New functions.
26679         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
26680         (execute_one_pass): Process new decls too.
26681         (ipa_write_summaries_2): Pass around vsets.
26682         (ipa_write_summaries_1): Likewise.
26683         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
26684         to add.
26685         (ipa_write_optimization_summaries_1): Pass around vsets.
26686         (ipa_write_optimization_summaries): Likewise.
26687         * varpool.c (varpool_get_node): New.
26688         (varpool_node): Update doubly linked lists.
26689         (varpool_remove_node): New.
26690         (dump_varpool_node): More dumping.
26691         (varpool_enqueue_needed_node): Update doubly linked lists.
26692         (decide_is_variable_needed): Kill ltrans hack.
26693         (varpool_finalize_decl): Kill lto hack.
26694         (varpool_assemble_decl): Skip decls in other partitions.
26695         (varpool_assemble_pending_decls): Update doubly linkes lists.
26696         (varpool_empty_needed_queue): Likewise.
26697         (varpool_extra_name_alias): Likewise.
26698         * lto-streamer.c (lto_get_section_name): Add vars section.
26699         * lto-streamer.h (lto_section_type): Update.
26700         (output_varpool, input_varpool): Declare.
26701
26702 2010-04-28  Mike Stump  <mikestump@comcast.net>
26703
26704         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
26705
26706 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26707
26708         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
26709         record or union type with RECORD_OR_UNION_TYPE_P predicate.
26710         (lto_input_ts_type_tree_pointers): Likewise.
26711         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
26712         (lto_output_ts_type_tree_pointers): Likewise.
26713
26714 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26715
26716         Uniquization of constants at the Tree level
26717         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
26718         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
26719         bit to the end.
26720         (tree_output_constant_def): Declare.
26721         * gimplify.c (gimplify_init_constructor): When using block copy, first
26722         uniquize the constant constructor on the RHS.
26723         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
26724         DECL_IN_CONSTANT_POOL flag.
26725         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
26726         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
26727         constant pool.
26728         (assemble_variable): Deal with symbols belonging to the tree constant
26729         pool.
26730         (get_constant_section): Add ALIGN parameter and simplify.
26731         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
26732         (assemble_constant_contents): Use the expression of the VAR_DECL.
26733         (output_constant_def_contents): Use the alignment of the VAR_DECL.
26734         (tree_output_constant_def): New global function.
26735         (mark_constant): Use the expression of the VAR_DECL.
26736         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
26737         its expression.
26738         (output_object_block): Likewise and assemble the expression.
26739
26740 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
26741
26742         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
26743         hash_tree, eq_tree): New tree hash table.
26744         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
26745         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
26746         lto_orig_address_remove): Reimplement.
26747
26748 2010-04-28  Xinliang David Li  <davidxl@google.com>
26749
26750         PR c/42643
26751         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
26752         (compute_uninit_opnds_pos): New function.
26753         (is_non_loop_exit_postdominating): New function.
26754         (compute_control_dep_chain): New function.
26755         (find_pdom): New function.
26756         (convert_control_dep_chain_into_preds): New function.
26757         (find_predicates): New function.
26758         (find_control_equiv_block): New function.
26759         (collect_phi_def_edges): New function.
26760         (find_def_preds): New function.
26761         (find_dom): New function.
26762         (dump_predicates): New function.
26763         (get_cmp_code): New function.
26764         (is_value_included_in): New function.
26765         (find_matching_predicate_in_rest_chains): New function.
26766         (use_pred_not_overlap_with_undef_path_pred): New function.
26767         (is_use_properly_guarded): New function.
26768         (normalize_cond_1): New function.
26769         (is_and_or_or): New function.
26770         (normalize_cond): New function.
26771         (is_gcond_subset_of): New function.
26772         (is_subset_of_any): New function.
26773         (is_or_set_subset_of): New function.
26774         (is_and_set_subset_of): New function.
26775         (is_norm_cond_subset_of): New function.
26776         (is_pred_expr_subset_of): New function.
26777         (is_pred_chain_subset_of): New function.
26778         (is_included_in): New function.
26779         (is_superset_of): New function.
26780         (find_uninit_use): New function.
26781         (warn_uninitialized_phi): New function.
26782         (compute_possibly_undefined_names): New function.
26783         (ssa_undefined_value_p): New function.
26784         (execute_late_warn_uninitialized): New function.
26785         * tree-ssa.c (ssa_undefined_value_p): Removed.
26786         (warn_uninit): Changed to extern.
26787         (warn_uninitialized_phi): Removed.
26788         (warn_uninitialized_vars): Changed to extern.
26789         (execute_late_warn_uninitialized): Removed
26790         * tree-flow.h: Add new prototypes.
26791         * timevar.def: Add new time variable.
26792         * Makefile.in: Add new build file.
26793
26794 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
26795
26796         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
26797         type if available.
26798
26799 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26800
26801         PR target/22224
26802         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
26803
26804 2010-04-28  Martin Jambor  <mjambor@suse.cz>
26805
26806         * cgraph.h (struct cgraph_node): New field indirect_calls.
26807         (struct cgraph_indirect_call_info): New type.
26808         (struct cgraph_edge): Removed field indirect_call. New fields
26809         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
26810         (cgraph_create_indirect_edge): Declare.
26811         (cgraph_make_edge_direct): Likewise.
26812         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
26813         * ipa-prop.h (struct ipa_param_call_note): Removed.
26814         (struct ipa_node_params): Removed field param_calls.
26815         (ipa_create_all_structures_for_iinln): Declare.
26816         * cgraph.c: Described indirect edges and uids in initial comment.
26817         (cgraph_add_edge_to_call_site_hash): New function.
26818         (cgraph_edge): Search also among the indirect edges, use
26819         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
26820         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
26821         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
26822         site hash.
26823         (initialize_inline_failed): Assign a reason to indirect edges.
26824         (cgraph_create_edge_1): New function.
26825         (cgraph_create_edge): Moved some functionality to
26826         cgraph_create_edge_1.
26827         (cgraph_create_indirect_edge): New function.
26828         (cgraph_edge_remove_callee): Add an assert checking for
26829         non-indirectness.
26830         (cgraph_edge_remove_caller): Special-case indirect edges.
26831         (cgraph_remove_edge): Likewise.
26832         (cgraph_set_edge_callee): New function.
26833         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
26834         (cgraph_make_edge_direct): New function.
26835         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
26836         the declaration of the call statement matches.
26837         (cgraph_node_remove_callees): Special-case indirect edges.
26838         (cgraph_clone_edge): Likewise.
26839         (cgraph_clone_node): Clone also the indirect edges.
26840         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
26841         indirect_call, dump count of indirect_calls edges.
26842         * ipa-prop.c (iinlining_processed_edges): New variable.
26843         (ipa_note_param_call): Create indirect edges instead of
26844         creating notes.  New parameter node.
26845         (ipa_analyze_call_uses): New parameter node, pass it on to
26846         ipa_note_param_call.
26847         (ipa_analyze_stmt_uses): Likewise.
26848         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
26849         (print_edge_addition_message): Work on edges rather than on notes.
26850         (update_call_notes_after_inlining): Likewise, renamed to
26851         update_indirect_edges_after_inlining.
26852         (ipa_create_all_structures_for_iinln): New function.
26853         (ipa_free_node_params_substructures): Do not free notes.
26854         (ipa_edge_duplication_hook): Propagate bits within
26855         iinlining_processed_edges bitmap.
26856         (ipa_node_duplication_hook): Do not duplicate notes.
26857         (free_all_ipa_structures_after_ipa_cp): Renamed to
26858         ipa_free_all_structures_after_ipa_cp.
26859         (free_all_ipa_structures_after_iinln): Renamed to
26860         ipa_free_all_structures_after_iinln.
26861         (ipa_write_param_call_note): Removed.
26862         (ipa_read_param_call_note): Removed.
26863         (ipa_write_indirect_edge_info): New function.
26864         (ipa_read_indirect_edge_info): Likewise.
26865         (ipa_write_node_info): Do not stream notes, do stream information
26866         in indirect edges.
26867         (ipa_read_node_info): Likewise.
26868         (lto_ipa_fixup_call_notes): Removed.
26869         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
26870         * ipa-inline.c (pass_ipa_inline): Likewise.
26871         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
26872         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
26873         * tree-inline.c (copy_bb): Removed an unnecessary double check for
26874         is_gimple_call.
26875         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
26876         edges.
26877         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
26878         (output_cgraph): Stream also indirect edges.
26879         (lto_output_edge): Added capability to stream indirect edges.
26880         (input_edge): Likewise.
26881         (input_cgraph_1): Likewise.
26882         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
26883         of indirect edges.
26884
26885 2010-04-28  Richard Guenther  <rguenther@suse.de>
26886
26887         PR tree-optimization/43879
26888         PR tree-optimization/43909
26889         * tree-ssa-structalias.c (struct variable_info): Add
26890         only_restrict_pointers flag.
26891         (new_var_info): Initialize it.  Increment stats.total_vars here.
26892         (create_function_info_for): Do not increment stats.total_vars here.
26893         (get_function_part_constraint): Fix build with C++.
26894         (insert_into_field_list): Remove.
26895         (push_fields_onto_fieldstack): Properly merge fields.
26896         (create_variable_info_for): Split and simplify.
26897         (create_variable_info_for_1): New piece.
26898         (intra_create_variable_infos): Properly make restrict constraints
26899         from parameters.
26900
26901 2010-04-28  Richard Guenther  <rguenther@suse.de>
26902
26903         PR c++/43880
26904         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
26905
26906 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26907             Jan Hubicka  <hubicka@ucw.cz>
26908
26909         * doc/invoke.texi (-Wsuggest-attribute=const,
26910         -Wsuggest-attribute=pure): Document.
26911         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
26912         (function_always_visible_to_compiler_p,
26913         suggest_attribute, warn_function_pure, warn_function_const):
26914         New functions.
26915         (check_call): Improve debug info.
26916         (analyze_function): Do not check availability.
26917         (add_new_function): Check availability.
26918         (propagate): Output warnings.
26919         (skip_function_for_local_pure_const): New function.
26920         (local_pure_const): Use it; output warnings.
26921         * common.opt (Wsuggest-attribute=const,
26922         Wsuggest-attribute=pure): New.
26923
26924 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
26925
26926         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
26927         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
26928         or DW_CFA_def_cfa_offset{,_sf}.
26929
26930 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
26931
26932         * tree.h: Fix truncated long macros.
26933
26934 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
26935
26936         * collect2.c (TARGET_64BIT): Redefine to target's default.
26937         * tlink.c: Likewise.
26938         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
26939         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
26940         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
26941         for underscoring __USER_LABEL_PREFIX__.
26942         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
26943         (SUB_LINK_ENTRY32): New.
26944         (SUB_LINK_ENTRY64): New.
26945         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
26946         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
26947         (SUB_LINK_ENTRY64): New.
26948         (SUB_LINK_ENTRY): New.
26949         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
26950         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
26951         x64 target is choosen.
26952         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
26953         * configure: Regenerated.
26954         * configure.ac (leading-mingw64-underscores): Option added.
26955
26956 2010-04-27  Jan Hubicka  <jh@suse.cz>
26957
26958         * doc/invoke.texi (-fipa-profile): Document.
26959         * opts.c (decode_options): Enable ipa-profile at -O1.
26960         * timevar.def (TV_IPA_PROFILE): Define.
26961         * common.opt (fipa-profile): Add.
26962         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
26963         flag for clones.
26964         (cgraph_propagate_frequency): Handle only local ones.
26965         * tree-pass.h (pass_ipa_profile): Declare.
26966         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
26967         (pass_ipa_profile): Use TV_IPA_PROFILE.
26968         * ipa.c (ipa_profile): New function.
26969         (gate_ipa_profile): Likewise.
26970         (pass_ipa_profile): New global variable.
26971         * passes.c (pass_ipa_profile): New.
26972
26973 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
26974
26975         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
26976
26977 2010-04-27  Martin Jambor  <mjambor@suse.cz>
26978
26979         PR middle-end/43812
26980         * ipa.c (dissolve_same_comdat_group_list): New function.
26981         (function_and_variable_visibility): Call
26982         dissolve_same_comdat_group_list when comdat group contains external or
26983         newly local nodes.
26984         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
26985         lists are circular and that they contain only DECL_ONE_ONLY nodes.
26986
26987 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
26988
26989         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
26990         (const_hash_1) <VECTOR_CST>: New case.
26991         (compare_constant) <VECTOR_CST>: Likewise.
26992         <ADDR_EXPR>: Deal with LABEL_REFs.
26993         (copy_constant) <VECTOR_CST>: New case.
26994
26995 2010-04-27  Jan Hubicka  <jh@suse.cz>
26996
26997         * cgraph.c (cgraph_propagate_frequency): New function.
26998         * cgraph.h (cgraph_propagate_frequency): Declare.
26999         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
27000         cgraph_propagate_frequency.
27001
27002 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
27003
27004         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
27005
27006 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
27007
27008         PR target/40657
27009         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
27010         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
27011         here to determine which regs to push and how much stack to reserve.
27012
27013 2010-04-27  Jie Zhang  <jie@codesourcery.com>
27014
27015         * doc/gimple.texi (gimple_statement_with_ops): Remove
27016         addresses_taken field.
27017         (gimple_statement_with_memory_ops): Likewise.
27018
27019 2010-04-27  Jan Hubicka  <jh@suse.cz>
27020
27021         * tree-inline.c (eni_inlining_weights): Remove.
27022         (estimate_num_insns): Special case more builtins.
27023
27024 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
27025
27026         PR c/32207
27027         * c-typeck.c (build_binary_op): Move forward check for comparison
27028         pointer with null pointer constant and adjust the diagnostic message.
27029
27030 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
27031
27032         PR lto/42776
27033         * configure.ac (gcc_cv_as_section_has_align): Set if installed
27034         binutils supports extended .section directive needed by LTO, or
27035         warn if older binutils found.
27036         (LTO_BINARY_READER): New AC_SUBST'd variable.
27037         (LTO_USE_LIBELF): Likewise.
27038         * config.gcc (lto_binary_reader): New target-specific configure
27039         variable.
27040         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
27041         (LTO_USE_LIBELF): Likewise.
27042         * configure: Regenerate.
27043
27044         * collect2.c (is_elf): Rename from this ...
27045         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
27046          object files in addition to ELF-formatted ones.
27047         (scan_prog_file): Caller updated.  Also allow for LTO info marker
27048         symbol to be prefixed or not by an extra underscore.
27049
27050         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
27051         * config/i386/winnt.c: Also #include lto-streamer.h
27052         (i386_pe_asm_named_section): Specify 1-byte section alignment for
27053         LTO named sections.
27054         (i386_pe_asm_output_aligned_decl_common): Add comment.
27055         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
27056
27057 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
27058
27059         PR target/43889
27060         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
27061         Add missing earlyclobber for second alternative.
27062
27063 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
27064
27065         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
27066         bits for artificial defs at the top of the block.
27067         * fwprop.c (single_def_use_enter_block): Don't call it.
27068
27069 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
27070
27071         PR 43715
27072         * configure.ac: Use "$gcc_cv_nm -g" on darwin
27073         instead of "$gcc_cv_objdump -T".
27074         Use "-undefined dynamic_lookup" on darwin.
27075         * configure: Regenerate.
27076
27077 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
27078
27079         PR c/43893
27080         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
27081
27082 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
27083
27084         * c-parser.c (struct c_token): Move location field up.
27085         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
27086         (struct c_declspecs): Convert typespec_word, storage_class, and
27087         default_int_p into bitfields.
27088         (struct c_declarator): Move loc field up.
27089
27090 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
27091
27092         * cfgloop.h (struct loop): Move can_be_parallel field up.
27093         * ipa-prop.h (struct ip_node_params): Move bitfields up.
27094         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
27095         down.
27096         (struct iv_cand): Convert pos field into a bitfield.
27097         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
27098         field up.
27099         (struct _stmt_vec_info): Shuffle fields for better packing.
27100
27101 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
27102
27103         * varasm.c (IN_NAMED_SECTION): Remove guard.
27104         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
27105         (IN_NAMED_SECTION_P): ...this.
27106         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
27107         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
27108
27109 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
27110
27111         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
27112         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
27113         of shadowing it.  Fix comments.
27114
27115 2010-04-26  Jan Hubicka  <jh@suse.cz>
27116
27117         * cgraph.c (cgraph_create_node): Set node frequency to normal.
27118         (cgraph_clone_node): Copy function frequency.
27119         * cgraph.h (node_frequency): New enum
27120         (struct cgraph_node): Add.
27121         * final.c (rest_of_clean_state): Update.
27122         * lto-cgraph.c (lto_output_node): Output node frequency.
27123         (input_overwrite_node): Input node frequency.
27124         * tre-ssa-loop-ivopts (computation_cost): Update.
27125         * lto-streamer-out.c (output_function): Do not output function
27126         frequency.
27127         * predict.c (maybe_hot_frequency_p): Update and handle functions
27128         executed once.
27129         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
27130         attribute lookup.
27131         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
27132         (compute_function_frequency): Set noreturn functions to be executed
27133         once.
27134         (choose_function_section): Update.
27135         * lto-streamer-in.c (input_function): Do not input function frequency.
27136         * function.c (allocate_struct_function): Do not initialize function
27137         frequency.
27138         * function.h (function_frequency): Remove.
27139         (struct function): Remove function frequency.
27140         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
27141         (try_update): Update.
27142         * tree-inline.c (initialize_cfun): Do not update function frequency.
27143         * passes.c (pass_init_dump_file): Update.
27144         * i386.c (ix86_compute_frame_layout): Update.
27145         (ix86_pad_returns): Update.
27146
27147 2010-04-26  Jie Zhang  <jie@codesourcery.com>
27148
27149         PR tree-optimization/43833
27150         * tree-vrp.c (range_int_cst_p): New.
27151         (range_int_cst_singleton_p): New.
27152         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
27153         when both operands are constants.  Use range_int_cst_p in
27154         BIT_IOR_EXPR case.
27155
27156 2010-04-26  Jan Hubicka  <jh@suse.cz>
27157
27158         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
27159
27160 2010-04-26  Richard Guenther  <rguenther@suse.de>
27161
27162         PR lto/43080
27163         * gimple.c (gimple_decl_printable_name): Deal gracefully
27164         with a NULL DECL_NAME.
27165
27166 2010-04-26  Richard Guenther  <rguenther@suse.de>
27167
27168         PR lto/42425
27169         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
27170         if emitting debug information and it is either a function
27171         or a namespace decl.
27172
27173 2010-04-26  Ira Rosen  <irar@il.ibm.com>
27174
27175         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
27176         determine if the statement is vectorizable, and a macro to access it.
27177         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27178         Skip statements that can't be vectorized. If the analysis fails,
27179         mark the statement as unvectorizable if vectorizing basic block.
27180         (vect_compute_data_refs_alignment): Likewise.
27181         (vect_verify_datarefs_alignment): Skip statements marked as
27182         unvectorizable. Add print.
27183         (vect_analyze_group_access): Skip statements that can't be
27184         vectorized. If the analysis fails, mark the statement as
27185         unvectorizable if vectorizing basic block.
27186         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
27187         * tree-vect-stmts.c (vectorizable_store): Fix the number of
27188         generated stmts for SLP.
27189         (new_stmt_vec_info): Initialize the new field.
27190         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
27191         statements marked as unvectorizable.
27192
27193 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
27194
27195         * c-common.c (flag_isoc1x): New.
27196         (flag_isoc99): Update comment.
27197         * c-common.h (flag_isoc1x): New.
27198         (flag_isoc99): Update comment.
27199         * c-cppbuiltin.c (builtin_define_float_constants): Also define
27200         __<type>_DECIMAL_DIG__.
27201         * c-opts.c (set_std_c1x): New.
27202         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
27203         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
27204         * c.opt (-std=c1x, -std=gnu1x): New options.
27205         * doc/cpp.texi: Mention -std=c1x.
27206         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
27207         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
27208         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
27209         * doc/standards.texi: Mention C1X.
27210         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
27211         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
27212         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
27213         Define for C1X.
27214
27215 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
27216
27217         * config/i386/gmon-sol2.c (_mcleanup): Change format string
27218         placeholder from 0x%x to %#x.
27219         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
27220         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
27221         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
27222         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
27223         * config/i386/i386.c (ix86_target_string): Ditto.
27224         (output_pic_addr_const): Ditto.
27225         (print_operand): Ditto.
27226
27227 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
27228
27229         * combine.c (find_split_point): Add third argument.  Use it
27230         to find nested multiply-accumulate instructions.  Adjust calls.
27231         (try_combine): Adjust call to find_split_point.
27232
27233 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
27234
27235         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
27236
27237 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
27238
27239         PR tree-optimization/41442
27240         * fold-const.c (merge_truthop_with_opposite_arm): New function.
27241         (fold_binary_loc): Call it.
27242
27243 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27244
27245         * toplev.c (general_init): Set default for fdiagnostics-show-option.
27246         * opts.c (common_handle_option): Allow disabling it.
27247         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
27248
27249 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
27250
27251         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
27252         between modes if both types are integral.
27253
27254 2010-04-23  Richard Guenther  <rguenther@suse.de>
27255
27256         PR tree-optimization/43572
27257         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
27258
27259 2010-04-23  Richard Guenther  <rguenther@suse.de>
27260
27261         PR lto/43455
27262         * tree-inline.c (tree_can_inline_p): Also check compatibility
27263         of return types.
27264
27265 2010-04-23  Martin Jambor  <mjambor@suse.cz>
27266
27267         PR tree-optimization/43846
27268         * tree-sra.c (struct access): New flag grp_assignment_read.
27269         (build_accesses_from_assign): Set grp_assignment_read.
27270         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
27271         (enum mark_read_status): New type.
27272         (analyze_access_subtree): Propagate grp_assignment_read, create
27273         accesses also if both direct_read and root->grp_assignment_read.
27274
27275 2010-04-23  Martin Jambor  <mjambor@suse.cz>
27276
27277         PR middle-end/43835
27278         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
27279         function does not have type attributes.
27280
27281 2010-04-23  Richard Guenther  <rguenther@suse.de>
27282
27283         PR lto/42653
27284         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
27285         of FUNCTION_DECLs.
27286
27287 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27288
27289         * sese.h (create_if_region_on_edge): Remove.
27290
27291         * sese.c (create_if_region_on_edge): Make static.
27292
27293         * tree-inline.c: Do not include ggc.h.
27294
27295         * expr.c: Do not include ggc.h.
27296
27297         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
27298         dependencies.
27299
27300 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
27301
27302         PR target/43744
27303         * config/sh/sh.c (find_barrier): Don't emit a constant pool
27304         in the middle of insns for casesi_worker_2.
27305
27306 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
27307
27308         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
27309
27310 2010-04-22  Ira Rosen  <irar@il.ibm.com>
27311
27312         PR tree-optimization/43842
27313         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
27314         loop unrolling in update of exit phis. Fix comment.
27315         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
27316         least two reduction statements in the loop before starting SLP
27317         analysis.
27318
27319 2010-04-22  Nick Clifton  <nickc@redhat.com>
27320
27321         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
27322
27323 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
27324
27325         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
27326         to simplify a + ~a.
27327
27328 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27329
27330         * tree-parloops.c (loop_parallel_p): New argument
27331         parloop_obstack.  Pass it down.
27332         (parallelize_loops): New variable parloop_obstack.  Initialize it,
27333         pass it down, free it.
27334
27335         * tree-loop-linear.c (linear_transform_loops): Pass down
27336         lambda_obstack.
27337
27338         * tree-data-ref.h (lambda_compute_access_matrices): New argument
27339         of type struct obstack *.
27340
27341         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
27342         scratch_obstack.  Initialize it, pass down, free it.
27343
27344         * lambda.h (lambda_loop_new): Remove.
27345         (lambda_matrix_new, lambda_matrix_inverse)
27346         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
27347         argument of type struct obstack *.
27348
27349         * lambda-trans.c (lambda_trans_matrix_new): New argument
27350         lambda_obstack.  Pass it down, use obstack allocation for ret.
27351         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
27352         it down.
27353
27354         * lambda-mat.c (lambda_matrix_get_column)
27355         (lambda_matrix_project_to_null): Remove.
27356         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
27357         allocation for mat.
27358         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
27359         lambda_obstack.
27360
27361         * lambda-code.c (lambda_loop_new): New function.
27362         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
27363         (lambda_compute_auxillary_space, lambda_compute_target_space)
27364         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
27365         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
27366         (build_access_matrix): New argument lambda_obstack.  Use obstack
27367         allocation for am.
27368         (lambda_compute_step_signs, lambda_compute_access_matrices): New
27369         argument lambda_obstack.  Pass it down.
27370
27371 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
27372
27373         * optabs.h (expand_widening_mult): Declare.
27374
27375 2010-04-22  Richard Guenther  <rguenther@suse.de>
27376
27377         PR tree-optimization/43845
27378         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
27379         lookup the CALL_EXPR function and arguments.
27380
27381 2010-04-22  Nick Clifton  <nickc@redhat.com>
27382
27383         * config/stormy16/stormy16.c
27384         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
27385         * config/stormy16/stormy16.h: Tidy up formatting.
27386         (DONT_USE_BUILTIN_SETJMP): Remove definition.
27387         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
27388         (ineqbranchsi): Delete pattern.
27389         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
27390         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
27391         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
27392         stormy16-lib2-ucmpsi2.c.
27393
27394 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
27395
27396         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
27397         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
27398         extra set merge_set_noclobber, and use it to relax the final test
27399         slightly.
27400         * df.h (df_simulate_find_noclobber_defs): Declare.
27401         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
27402         conditional defs.
27403         (df_simulate_find_noclobber_defs): New function.
27404
27405 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
27406
27407         * config/i386/i386.md: Use {} around multi-line preparation statements.
27408
27409 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
27410
27411         * c-tree.h (push_init_level, pop_init_level, set_init_index)
27412         (process_init_element): New argument of type struct obstack *.
27413
27414         * c-typeck.c (push_init_level, pop_init_level, set_designator)
27415         (set_init_index, set_init_label, set_nonincremental_init)
27416         (set_nonincremental_init_from_string, find_init_member)
27417         (output_init_element, output_pending_init_elements)
27418         (process_init_element): New argument braced_init_obstack.  Pass it
27419         down.
27420         (push_range_stack, add_pending_init): New argument
27421         braced_init_obstack.  Use obstack allocation.
27422
27423         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
27424         braced_init_obstack.  Pass it down.
27425         (c_parser_braced_init): New variables ret, braced_init_obstack.
27426         Initialize obstack, pass it down and finally free it.
27427
27428 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
27429
27430         PR middle-end/29274
27431         * tree-pass.h (pass_optimize_widening_mul): Declare.
27432         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
27433         gate_optimize_widening_mul): New static functions.
27434         (pass_optimize_widening_mul): New.
27435         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
27436         <case MULT_EXPR>: Remove support for widening multiplies.
27437         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
27438         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
27439         simplify_gen_unary rather than directly building extensions.
27440         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
27441         WIDEN_MULT_EXPR.
27442         * expmed.c (expand_widening_mult): New function.
27443         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
27444
27445 2010-04-21  Jan Hubicka  <jh@suse.cz>
27446
27447         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
27448         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
27449         * lto-wpa-fixup.c: Remove.
27450         * Makefile.in (lto-wpa-fixup.o): Remove.
27451         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
27452         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
27453         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
27454
27455 2010-04-21  Jan Hubicka  <jh@suse.cz>
27456
27457         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
27458         add write_optimization_summary, read_optimization_summary.
27459         (ipa_write_summaries_of_cgraph_node_set): Remove.
27460         (ipa_write_optimization_summaries): Declare.
27461         (ipa_read_optimization_summaries): Declare.
27462         * ipa-cp.c (pass_ipa_cp): Update.
27463         * ipa-reference.c (pass_ipa_reference): Update.
27464         * ipa-pure-const.c (pass_ipa_pure_const): Update.
27465         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
27466         Update.
27467         * ipa-inline.c (pass_ipa_inline): Update.
27468         * ipa.c (pass_ipa_whole_program): Update.
27469         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
27470         * passes.c (ipa_write_summaries_1): Do not test wpa.
27471         (ipa_write_optimization_summaries_1): New.
27472         (ipa_write_optimization_summaries): New.
27473         (ipa_read_summaries): Do not test ltrans.
27474         (ipa_read_optimization_summaries_1): New.
27475         (ipa_read_optimization_summaries): New.
27476
27477 2010-04-21  Jan Hubicka  <jh@suse.cz>
27478
27479         * lto-cgraph.c (lto_output_node): Do not output comdat groups
27480         for boundary nodes.
27481         (output_cgraph): Do not arrange comdat groups for boundary nodes.
27482
27483 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
27484
27485         PR debug/40040
27486         * dwarf2out.c (add_name_and_src_coords_attributes): Add
27487         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
27488
27489 2010-04-21  Jan Hubicka  <jh@suse.cz>
27490
27491         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
27492
27493 2010-04-21  Jan Hubicka  <jh@suse.cz>
27494
27495         * varpool.c (decide_is_variable_needed): Variable is always needed
27496         during ltrans.
27497
27498 2010-04-21  Jan Hubicka  <jh@suse.cz>
27499
27500         * opts.c (decode_options): Enable pure-const pass for whopr.
27501
27502 2010-04-21  Jan Hubicka  <jh@suse.cz>
27503
27504         * cgraph.c (dump_cgraph_node): Dump also assembler name.
27505         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
27506         at WPA dumping.
27507         (cgraph_decide_inlining): Do not expect callee to be removed in all
27508         cases.
27509
27510 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
27511
27512         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
27513
27514 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
27515
27516         * config/i386/i386.md (x86_shrd): Add athlon_decode and
27517         amdfam10_decode attributes.
27518
27519 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
27520
27521         PR middle-end/43570
27522         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
27523         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
27524         (lower_copyprivate_clauses): Use private var in outer
27525         context instead of original var.  Make sure the types
27526         are correct for VLAs.
27527
27528 2010-04-21  Richard Guenther  <rguenther@suse.de>
27529
27530         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
27531         to non-pointer objects.
27532
27533 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
27534
27535         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
27536         last chain entry if it starts with the still current label.
27537         (add_location_or_const_value_attribute): Check that
27538         loc_list->first->next is NULL instead of comparing ->first with ->last.
27539         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
27540         to add_var_loc_to_decl.
27541
27542         * dwarf2out.c (output_call_frame_info): For dw_cie_version
27543         >= 4 add also address size and segment size fields into CIE header.
27544
27545         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
27546         long as address size is the same as sizeof (void *) and
27547         segment size is 0.
27548         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
27549         address size or segment size is unexpected, return DW_EH_PE_omit.
27550         (classify_object_over_fdes): If get_cie_encoding returned
27551         DW_EH_PE_omit, return -1.
27552         (init_object): If classify_object_over_fdes returned -1,
27553         pretend there were no FDEs at all.
27554
27555 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
27556
27557         * config/i386/i386.md (bswap<mode>2): Macroize expander from
27558         bswap{si,di}2 using SWI48 mode iterator.
27559         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
27560         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
27561         set modrm attribute of bswap insn to 0 and remove length attribute.
27562         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
27563         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
27564         set mode attribute to <MODE> and remove length attribute.
27565
27566 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
27567
27568         PR rtl-optimization/43520
27569         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
27570         zero available registers.
27571
27572 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27573
27574         * builtins.c (fold_builtin_cproj): Fold more cases.
27575
27576 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27577
27578         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
27579         (fold_builtin_1): Fold builtin cproj.
27580         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
27581         Use ATTR_CONST_NOTHROW_LIST.
27582
27583 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
27584
27585         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
27586         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
27587         ffsi2_no_cmove for !TARGET_CMOVE.
27588         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
27589         (ffssi2): Remove expander.
27590         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
27591         mode iterator.
27592         (ctz<mode>2): Ditto from ctz{si,di}2.
27593         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
27594         mode iterator.
27595         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
27596         mode iterator.
27597
27598 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
27599
27600         * dwarf2out.c (AT_linkage_name): Define.
27601         (clone_as_declaration): Handle DW_AT_linkage_name.
27602         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
27603         of DW_AT_MIPS_linkage_name.
27604         (move_linkage_attr): Likewise.
27605         (dwarf2out_finish): Likewise.
27606
27607 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
27608
27609         PR middle-end/41952
27610         * fold-const.c (fold_comparison): New folding rule.
27611
27612 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
27613
27614         * double-int.h (double_int_setbit): Declare.
27615         * double-int.c (double_int_setbit): New function.
27616         * rtl.h (immed_double_int_const): Declare.
27617         * emit-rtl.c (immed_double_int_const): New function.
27618         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
27619         and immed_double_int_const functions.
27620         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
27621         expand_copysign_bit): (Ditto.).
27622         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
27623         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
27624         * dojump.c (prefer_and_bit_test): (Ditto.).
27625         * expr.c (convert_modes, reduce_to_bit_field_precision,
27626         const_vector_from_tree): (Ditto.).
27627         * expmed.c (mask_rtx, lshift_value): (Ditto.).
27628
27629 2010-04-20  Jan Hubicka  <jh@suse.cz>
27630
27631         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
27632         (dump_cgraph_node): Dump new flags.
27633         * cgraph.h (struct cgraph_node): Add flags
27634         reachable_from_other_partition and in_other_partition.
27635         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
27636         other partition can not be removed.
27637         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
27638         the other partition must be output; silence sanity checking on
27639         leaking functions bodies from other paritition.
27640         * lto-cgraph.c (reachable_from_other_partition_p): New function.
27641         (lto_output_node): Output new flags; do not sanity check that inline
27642         clones are output; drop lto_forced_extern_inline_p code; do not mock
27643         visibility flags at partition boundaries.
27644         (add_node_to): New function.
27645         (output_cgraph): Use it to sort functions so masters appear before
27646         clones.
27647         (input_overwrite_node): Input new flags.
27648         * passes.c (ipa_write_summaries): Do not call
27649         lto_new_extern_inline_states.
27650         * lto-section-out.c (forced_extern_inline,
27651         lto_new_extern_inline_states lto_delete_extern_inline_states,
27652         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
27653         * lto-streamer.h (lto_new_extern_inline_states,
27654         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
27655         lto_forced_extern_inline_p): Kill.
27656
27657 2010-04-20  Richard Guenther  <rguenther@suse.de>
27658
27659         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
27660         from vars that can have pointers.
27661         (process_constraint): Dump useless constraints.
27662
27663 2010-04-20  Richard Guenther  <rguenther@suse.de>
27664
27665         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
27666         (dump_sa_points_to_info): Remove asserts.
27667         (init_base_vars): nothing_id isn't an escape point nor does it
27668         have pointers.
27669
27670 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
27671
27672         * tree.h (TYPE_REF_IS_RVALUE): Define.
27673         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
27674         should_move_die_to_comdat, prune_unused_types_walk): Handle
27675         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
27676         (modified_type_die, gen_reference_type_die): Emit
27677         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
27678         if TYPE_REF_IS_RVALUE and -gdwarf-4.
27679
27680 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27681
27682         PR target/43635
27683         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
27684         calls for -fpic -m31 if they have been sibcall optimized.
27685
27686 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
27687
27688         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
27689         ar.lc fixed and call-used.
27690
27691         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
27692
27693 2010-04-19  Jan Hubicka  <jh@suse.cz>
27694
27695         * opts.c (decode_options): Disable whpr incompatible passes.
27696         * lto/lto.c (lto_1_to_1_map): Skip clones.
27697         (read_cgraph_and_symbols): Do not mark everything as needed.
27698         (do_whole_program_analysis): Do map only after optimizing;
27699         set proper cgraph_state; use passmanager.
27700
27701 2010-04-19  DJ Delorie  <dj@redhat.com>
27702
27703         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
27704         POINTER_PLUS_EXPR and fix them.
27705
27706 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
27707
27708         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
27709         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
27710         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
27711         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
27712         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
27713         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
27714         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
27715         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
27716         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
27717         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
27718         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
27719
27720 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
27721
27722         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
27723         (check_cond_move_block): Likewise.
27724         (cond_move_process_if_block): Likewise.
27725         (noce_find_if_block): Improve formatting.
27726         (find_if_header): Pass 0 to memset and tweak conditions.
27727         (cond_exec_find_if_block): Fix long lines and tweak conditions.
27728
27729 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
27730
27731         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
27732         for -gdwarf-4.
27733
27734         PR middle-end/43337
27735         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
27736         with non-local decl doesn't need chain.
27737
27738 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
27739
27740         * ira-color.c (allocno_reload_assign): Avoid accumulating
27741         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
27742
27743 2010-04-19  Martin Jambor  <mjambor@suse.cz>
27744
27745         * gimple.h (create_tmp_reg): Declare.
27746         * gimplify.c (create_tmp_reg): New function.
27747         (gimplify_return_expr): Use create_tmp_reg.
27748         (gimplify_omp_atomic): Likewise.
27749         (gimple_regimplify_operands): Likewise.
27750         * tree-dfa.c (make_rename_temp): Likewise.
27751         * tree-predcom.c (predcom_tmp_var): Likewise.
27752         (reassociate_to_the_same_stmt): Likewise.
27753         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
27754         (get_replaced_param_substitute): Likewise.
27755         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
27756         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
27757         * tree-ssa-pre.c (get_representative_for): Likewise.
27758         (create_expression_by_pieces): Likewise.
27759         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
27760         (create_tailcall_accumulator): Likewise.
27761
27762 2010-04-19  Martin Jambor  <mjambor@suse.cz>
27763
27764         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
27765         new_stmt.
27766         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
27767
27768 2010-04-19  Richard Guenther  <rguenther@suse.de>
27769
27770         PR tree-optimization/43796
27771         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
27772         from SCEV in the lattice.
27773         (vrp_visit_phi_node): Dump change.
27774
27775 2010-04-19  Richard Guenther  <rguenther@suse.de>
27776
27777         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
27778         * configure: Re-generated.
27779
27780 2010-04-19  Richard Guenther  <rguenther@suse.de>
27781
27782         PR tree-optimization/43783
27783         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
27784         constant ARRAY_REF operands two and three if possible.
27785
27786 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
27787
27788         PR target/43766
27789         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
27790
27791 2010-04-19  Jie Zhang  <jie@codesourcery.com>
27792
27793         PR target/43662
27794         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
27795
27796 2010-04-19  Ira Rosen  <irar@il.ibm.com>
27797
27798         PR tree-optimization/37027
27799         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
27800         and macro to access it.
27801         (vectorizable_reduction): Add argument.
27802         (vect_get_slp_defs): Likewise.
27803         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
27804         statements for possible use in SLP.
27805         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
27806         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
27807         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
27808         add new argument.
27809         (vectorizable_reduction): Likewise.
27810         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
27811         vect_get_slp_defs.
27812         (vectorizable_type_demotion, vectorizable_type_promotion,
27813         vectorizable_store): Likewise.
27814         (vect_analyze_stmt): Update call to vectorizable_reduction.
27815         (vect_transform_stmt): Likewise.
27816         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
27817         (vect_build_slp_tree): Fix indentation. Check that there are no loads
27818         from different interleaving chains in same node.
27819         (vect_slp_rearrange_stmts): New function.
27820         (vect_supported_load_permutation_p): Allow load permutations for
27821         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
27822         inside SLP nodes if necessary.
27823         (vect_analyze_slp_instance): Handle reductions.
27824         (vect_analyze_slp): Try to build SLP instances originating from groups
27825         of reductions.
27826         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
27827         (vect_get_constant_vectors): Create initial vectors for reductions
27828         according to reduction code. Add new argument.
27829         (vect_get_slp_defs): Add new argument, pass it to
27830         vect_get_constant_vectors.
27831         (vect_schedule_slp_instance): Remove SLP tree root statements.
27832
27833 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
27834
27835         * tree.h (ENUM_IS_SCOPED): Define.
27836         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
27837         for ENUM_IS_SCOPED enums.
27838
27839 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
27840
27841         * fold-const.c (fold_comparison): Use ssizetype.
27842         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27843         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
27844         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
27845         * tree-object-size.c (compute_object_sizes): Use size_type_node.
27846
27847         * tree.h (initialize_sizetypes): Remove parameter.
27848         (build_common_tree_nodes): Remove second parameter.
27849         * stor-layout.c (initialize_sizetypes): Remove parameter.
27850         Always create an unsigned type.
27851         (set_sizetype): Assert that the passed type is unsigned and simplify.
27852         * tree.c (build_common_tree_nodes): Remove second parameter.
27853         Adjust call to initialize_sizetypes.
27854         * c-decl.c (c_init_decl_processing): Remove second argument in call to
27855         build_common_tree_nodes.
27856
27857 2010-04-18  Matthias Klose  <doko@ubuntu.com>
27858
27859         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
27860
27861 2010-04-18  Ira Rosen  <irar@il.ibm.com>
27862
27863         PR tree-optimization/43771
27864         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
27865         load permutation doesn't have gaps.
27866
27867 2010-04-18  Jan Hubicka  <jh@suse.cz>
27868
27869         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
27870         (sse_prologue_save_insn expander): Use new pattern.
27871         (sse_prologue_save_insn1): New pattern and splitter.
27872         (sse_prologue_save_insn): Update to deal also with 64bit aligned
27873         blocks.
27874         * i386.c (setup_incoming_varargs_64): Do not compute jump
27875         destination here.
27876         (ix86_gimplify_va_arg): Update alignment needed.
27877         (ix86_local_alignment): Do not align all local arrays to 128bit.
27878
27879 2010-04-17  Jan Hubicka  <jh@suse.cz>
27880
27881         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
27882
27883 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
27884
27885         * arm.md (negdi2): Remove redundant code to force values into a
27886         register.
27887
27888 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
27889
27890         * arm/bpabi.S: Add EABI alignment attributes to objects.
27891         * arm/bpabi-v6m.S: Likewise.
27892         * arm/crti.asm: Likewise.
27893         * arm/crtn.asm: Likewise.
27894         * arm/lib1funcs.asm: Likewise.
27895         * arm/libunwind.S: Likewise.
27896
27897 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
27898
27899         * arm-protos.h (tune_params): New structure.
27900         * arm.c (current_tune): New variable.
27901         (arm_constant_limit): Delete.
27902         (struct processors): Add pointer to the tune parameters.
27903         (arm_slowmul_tune): New tuning option.
27904         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
27905         (all_cores): Adjust to pick up the tuning model.
27906         (arm_constant_limit): New function.
27907         (arm_override_options): Select the appropriate tuning model.  Delete
27908         initialization of arm_const_limit.
27909         (arm_split_constant): Use the new constant-limit model.
27910         (arm_rtx_costs): Pick up the current tuning model.
27911         * arm.md (is_strongarm, is_xscale): Delete.
27912         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
27913         for Xscale variant architectures.
27914         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
27915
27916 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
27917
27918         * config/arm/arm.c (arm_gen_constant): Remove unused variable
27919         can_shift.
27920         (arm_rtx_costs_1): Remove unused variable extra_cost.
27921         (arm_unwind_emit_set): Use variable offset.
27922         (thumb1_output_casesi): Remove unused variable flags.
27923
27924 2010-04-16  Jeff Law  <law@redhat.com>
27925
27926         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
27927         needing assignment rather than doing a two-phase assignment.  Remove
27928         unused variable 'm'.
27929
27930 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
27931
27932         PR bootstrap/43767
27933         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
27934
27935 2010-04-16  Doug Kwan  <dougkwan@google.com>
27936
27937         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
27938         (next_operand_entry_id): New static variable.
27939         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
27940         (add_to_ops_vec): Assigned unique ID to operand entry.
27941         (struct oecount_s): New field ID.
27942         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
27943         (undistribute_ops_list): Assign unique IDs to oecounts.
27944         (init_reassoc): reset next_operand_entry_id.
27945
27946 2010-04-16  Doug Kwan  <dougkwan@google.com>
27947
27948         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
27949         missing left parenthesis.
27950
27951 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
27952
27953         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
27954         *btdi_rex64 using SWI48 mode iterator.
27955         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
27956         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
27957         *jcc_btdi_mask_rex64.
27958
27959 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
27960
27961         * double-int.h (tree_to_double_int): Convert to macro.
27962         * double-int.c (tree_to_double_int): Remove.
27963
27964 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
27965
27966         PR debug/43762
27967         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
27968         with want_address 2 and in case a single element list might be
27969         possible, call it again with want_address 0.
27970
27971 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27972
27973         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
27974         case 'W' print operands for HI mode.
27975         * config/h8300/h8300.h (Y0, Y2) : New constraints.
27976         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
27977         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
27978         * config/h8300/predicate.md (bit_register_indirect_operand): New.
27979
27980         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
27981
27982         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
27983         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
27984         #xx:3 and #xx:4 mode.
27985
27986         * config/h8300/h8300.md (inverted load with HImode dest): Add
27987         support for H8300SX.
27988
27989         * config/h8300/predicate.md (bit_operand): Allow immediate values that
27990         satisfy 'U' constraint.
27991
27992 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27993
27994         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
27995         * configure: Regenerate.
27996         * config.in: Regenerate.
27997         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
27998         works.
27999
28000 2010-04-16  Richard Guenther  <rguenther@suse.de>
28001
28002         * tree.h (struct tree_decl_minimal): Move pt_uid ...
28003         (struct tree_decl_common): ... here.
28004         (DECL_PT_UID): Adjust.
28005         (SET_DECL_PT_UID): Likewise.
28006         (DECL_PT_UID_SET_P): Likewise.
28007
28008 2010-04-16  Richard Guenther  <rguenther@suse.de>
28009
28010         PR tree-optimization/43572
28011         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
28012         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
28013         * tree-flow.h (is_call_clobbered): Remove.
28014         * tree-flow-inline.h (is_call_clobbered): Likewise.
28015         * tree-dfa.c (dump_variable): Do not dump call clobber state.
28016         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
28017         (execute_return_slot_opt): Adjust.
28018         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
28019         check for call clobbered vars here.
28020         (find_tail_calls): Move tailcall verification to the
28021         proper place.
28022
28023 2010-04-16  Diego Novillo  <dnovillo@google.com>
28024
28025         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
28026
28027 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
28028
28029         PR target/40603
28030         * config/arm/arm.md (cbranchqi4): New pattern.
28031         * config/arm/predicates.md (const0_operand,
28032         cbranchqi4_comparison_operator): New predicates.
28033
28034 2010-04-16  Richard Guenther  <rguenther@suse.de>
28035
28036         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
28037         (dump_gimple_stmt): Likewise.
28038
28039 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
28040
28041         * recog.h (struct recog_data): New field is_operator.
28042         (struct insn_operand_data): New field is_operator.
28043         * recog.c (extract_insn): Set recog_data.is_operator.
28044         * genoutput.c (output_operand_data): Emit code to set the
28045         is_operator field.
28046         * reload.c (find_reloads): Use it rather than testing for an
28047         empty constraint string.
28048
28049         PR target/41514
28050         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
28051         If the previous insn is a cbranchsi4_insn with the same arguments,
28052         omit the compare instruction.
28053
28054         * config/arm/arm.md (addsi3_cbranch): If destination is a high
28055         register, inputs must be low registers and we need a low register
28056         scratch.  Handle alternative 2 like alternative 3.
28057
28058 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
28059
28060         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
28061         don't call get_addr on both.  If one expression is a VALUE and
28062         the other a REG, check VALUE's locs if the REG isn't among them.
28063
28064 2010-04-16  Christian Bruel  <christian.bruel@st.com>
28065
28066         * config/sh/sh.h (sh_frame_pointer_required): New function.
28067         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
28068         (flag_omit_frame_pointer) Set.
28069         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
28070         (rounded_frame_size): Adjust size with outgoing_args_size.
28071         (sh_set_return_address): Must return from stack pointer.
28072         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
28073         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
28074         (ACCUMULATE_OUTGOING_ARGS): Define.
28075         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
28076         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
28077
28078 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
28079
28080         PR target/43471
28081         * config/sh/sh.c (sh_legitimize_reload_address): Use
28082         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
28083         Remove a unneeded check for offset_base.
28084
28085 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
28086
28087         * configure: Regenerated.
28088
28089 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28090
28091         * config/s390/s390.c (s390_call_save_register_used): Switch back
28092         to HARD_REGNO_NREGS.
28093
28094 2010-04-15  Richard Guenther  <rguenther@suse.de>
28095
28096         * alias.c (alias_set_subset_of): Handle alias-set zero
28097         child properly.
28098
28099 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
28100             Julian Brown  <julian@codesourcery.com>
28101
28102         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
28103         alternatives according to use of high and low regs.
28104         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
28105         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
28106         optimizing for size on Thumb-2.
28107
28108 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
28109
28110         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
28111
28112 2010-04-15  Richard Guenther  <rguenther@suse.de>
28113
28114         * tree-ssa-structalias.c (struct variable_info): Add
28115         is_fn_info flag.
28116         (new_var_info): Initialize it.
28117         (dump_constraints): Support printing last added constraints.
28118         (debug_constraints): Adjust.
28119         (dump_constraint_graph): Likewise.
28120         (make_heapvar_for): Check for NULL cfun.
28121         (get_function_part_constraint): New function.
28122         (get_fi_for_callee): Likewise.
28123         (find_func_aliases): Properly implement IPA PTA constraints.
28124         (process_ipa_clobber): New function.
28125         (find_func_clobbers): Likewise.
28126         (insert_into_field_list_sorted): Remove.
28127         (create_function_info_for): Properly allocate vars for IPA mode.
28128         Do not use insert_into_field_list_sorted.
28129         (create_variable_info_for): Properly generate constraints for
28130         global vars in IPA mode.
28131         (dump_solution_for_var): Always dump the solution.
28132         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
28133         (find_what_var_points_to): Adjust.
28134         (pt_solution_set): Change.
28135         (pt_solution_ior_into): New function.
28136         (pt_solution_empty_p): Export.
28137         (pt_solution_includes_global): Adjust.
28138         (pt_solution_includes_1): Likewise.
28139         (pt_solutions_intersect_1): Likewise.
28140         (dump_sa_points_to_info): Check some invariants.
28141         (solve_constraints): Move constraint dumping ...
28142         (compute_points_to_sets): ... here.
28143         (ipa_pta_execute): ... and here.
28144         (compute_may_aliases): Do not re-compute points-to info
28145         locally if IPA info is available.
28146         (ipa_escaped_pt): New global var.
28147         (ipa_pta_execute): Properly implement IPA PTA.
28148         * tree-into-ssa.c (dump_decl_set): Support dumping
28149         decls not in referenced-vars.
28150         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
28151         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
28152         (dump_points_to_solution): Likewise.
28153         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
28154         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
28155         (remap_gimple_stmt): Reset call clobber/use information if necessary.
28156         (copy_decl_to_var): Copy DECL_PT_UID.
28157         (copy_result_decl_to_var): Likewise.
28158         * tree.c (make_node_stat): Initialize DECL_PT_UID.
28159         (copy_node_stat): Copy it.
28160         * tree.h (DECL_PT_UID): New macro.
28161         (SET_DECL_PT_UID): Likewise.
28162         (DECL_PT_UID_SET_P): Likewise.
28163         (struct tree_decl_minimal): Add pt_uid member.
28164         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
28165         (pt_solution_empty_p): Declare.
28166         (pt_solution_set): Adjust.
28167         (ipa_escaped_pt): Declare.
28168         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
28169         * gimple-pretty-print.c (pp_points_to_solution): New function.
28170         (dump_gimple_call): Dump call clobber/use information.
28171         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
28172         * tree-pass.h (TDF_ALIAS): New dump option.
28173         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
28174         * doc/invoke.texi (-fipa-pta): Update documentation.
28175
28176 2010-04-15  Richard Guenther  <rguenther@suse.de>
28177
28178         * Makefile.in (OBJS-common): Add gimple-fold.o.
28179         (gimple-fold.o): New rule.
28180         * tree.h (maybe_fold_offset_to_reference,
28181         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
28182         prototypes ...
28183         * gimple.h: ... here.
28184         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
28185         may_propagate_address_into_dereference): Move prototypes ...
28186         * gimple.h: ... here.
28187         * tree-ssa-ccp.c (get_symbol_constant_value,
28188         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
28189         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
28190         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
28191         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
28192         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
28193         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
28194         gimplify_and_update_call_from_tree): Move ...
28195         * gimple-fold.c: ... here.  New file.
28196         (ccp_fold_builtin): Rename to ...
28197         (gimple_fold_builtin): ... this.
28198         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
28199
28200 2010-04-15  Richard Guenther  <rguenther@suse.de>
28201
28202         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
28203         fit_double_type, force_fit_type_double, add_double_with_sign,
28204         neg_double, mul_double_with_sign, lshift_double, rshift_double,
28205         lrotate_double, rrotate_double, div_and_round_double): Move ...
28206         * double-int.c: ... here.
28207         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
28208         add_double, neg_double, mul_double_with_sign, mul_double,
28209         lshift_double, rshift_double, lrotate_double, rrotate_double,
28210         div_and_round_double): Move prototypes ...
28211         * double-int.h: ... here.
28212
28213 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
28214
28215         PR target/43742
28216         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
28217         matching constraints to ensure inputs match the output.
28218
28219 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
28220
28221         PR target/43742
28222         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
28223         in an input-only operand.
28224
28225 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
28226
28227         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
28228         (double_int_not, double_int_lshift, double_int_rshift): Declare.
28229         (double_int_negative_p): Convert to static inline function.
28230         * double-int.c (double_int_lshift, double_int_lshift): New functions.
28231         (double_int_negative_p): Remove.
28232         * tree.h (lshift_double, rshift_double):
28233         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
28234         * fold-const.c (fold_convert_const_int_from_real,
28235         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
28236         (lshift_double): Change type of arith argument to bool.
28237         (rshift_double): Change type of arith argument to bool. Correct
28238         comment.
28239         * expmed.c (mask_rtx, lshift_value): (Ditto.).
28240
28241 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
28242
28243         PR target/21803
28244         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
28245         at the start and end of the then/else blocks, and omit them from the
28246         conversion.
28247         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
28248         argument; all callers changed.  Pass zero to old_insns_match_p instead.
28249         (flow_find_head_matching_sequence): New function.
28250         (old_insns_match_p): Check REG_EH_REGION notes for calls.
28251         * basic-block.h (flow_find_cross_jump,
28252         flow_find_head_matching_sequence): Declare functions.
28253
28254 2010-04-14  Jason Merrill  <jason@redhat.com>
28255
28256         PR c++/36625
28257         * c-common.c (attribute_takes_identifier_p): New fn.
28258         * c-common.h: Declare it.
28259
28260 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28261
28262         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
28263         splitter condition.
28264         (*udivmod<mode>4): Ditto.
28265
28266 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28267
28268         * config/i386/i386.md (maxmin_int): Rename code attribute from
28269         maxminiprefix and update all users.
28270         (maxmin_float): Ditto from maxminfprefix.
28271         (logic): Ditto from logicprefix.
28272         (absneg_mnemonic): Ditto from absnegprefix.
28273         * config/i386/mmx.md: Update all users of maxminiprefix,
28274         maxminfprefix and logicprefix for rename.
28275         * config/i386/sse.md: Ditto.
28276         * config/i386/sync.md (sync_<code><mode>): Update for
28277         logicprefix rename.
28278
28279 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28280
28281         PR 42966
28282         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
28283         warnings converted to errors.
28284
28285 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28286
28287         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
28288         used insn_type variable.
28289         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
28290         to avoid set-but-not-used warning.
28291
28292 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28293
28294         * df-core.c (df_ref_debug): Change format string placeholder
28295         from 0x%x to %#x.
28296         * dwarf2asm.c (dw2_asm_output_data_raw,
28297         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
28298         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
28299         * dwarf2out.c (output_cfi, output_cfi_directive,
28300         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
28301         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
28302         Ditto.
28303         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
28304         * print-rtl.c (print_rtx): Ditto.
28305
28306 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28307
28308         PR middle-end/42694
28309         * builtins.c (expand_builtin_pow_root): New function to expand pow
28310         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
28311         series of sqrt and cbrt calls under -ffast-math.
28312         (expand_builtin_pow): Call it.
28313
28314 2010-04-14  Michael Matz  <matz@suse.de>
28315
28316         PR tree-optimization/42963
28317         * tree-cfg.c (touched_switch_bbs): New static variable.
28318         (group_case_labels_stmt): New function broken out from ...
28319         (group_case_labels): ... here, use the above.
28320         (start_recording_case_labels): Allocate touched_switch_bbs.
28321         (end_recording_case_labels): Deallocate it, call
28322         group_case_labels_stmt.
28323         (gimple_redirect_edge_and_branch): Remember index of affected BB.
28324
28325 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28326
28327         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
28328         from insn template.
28329
28330 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
28331
28332         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
28333
28334 2010-04-13  Jan Hubicka  <jh@suse.cz>
28335
28336         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
28337         of optimized out static functions.
28338         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
28339         cost computation.  Also sanity check for overflows.
28340         (update_caller_keys): Update cgraph_edge_badness call; properly
28341         update fibheap and sanity check that it is up to date.
28342         (add_new_edges_to_heap): Update cgraph_edge_badness.
28343         (cgraph_decide_inlining_of_small_function): Likewise;
28344         add sanity checking that badness in heap is up to date;
28345         improve dumping of reason; Update badness of calls to the
28346         offline copy of function currently inlined; dump badness
28347         of functions not inlined because of unit growth limits.
28348
28349 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
28350
28351         PR middle-end/32628
28352         * c-common.c (pointer_int_sum): Disregard overflow that occured only
28353         because of sign-extension change when converting to sizetype here...
28354         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
28355
28356         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
28357         the folding to constants.  Remove redundant final conversion.
28358         (fold_binary) <associate>: Do not associate if the re-association of
28359         constants alone overflows.
28360         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
28361         to the end of the list.
28362         (multiple_of_p) <COND_EXPR>: New case.
28363
28364 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28365
28366         * opt-functions.awk (opt_sanitized_name): New.
28367         (opt_enum): New.
28368         * optc-gen.awk: Use it
28369         * opth-gen.awk: Use it.
28370
28371 2010-04-13  Martin Jambor  <mjambor@suse.cz>
28372
28373         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
28374         (sra_modify_assign): Delete stmts loading dead data even if racc has no
28375         children.  Call replace_uses_with_default_def_ssa_name to handle
28376         SSA_NAES on lhs.
28377
28378 2010-04-13  Michael Matz  <matz@suse.de>
28379
28380         PR middle-end/43730
28381         * builtins.c (expand_builtin_interclass_mathfn): Also create
28382         a register if the predicate doesn't match.
28383
28384 2010-04-13  Diego Novillo  <dnovillo@google.com>
28385
28386         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
28387         * c-pch.c: Include timevar.h.
28388         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
28389         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
28390         * ggc-common.c: Include timevar.h.
28391         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
28392         * timevar.def (TV_PCH_SAVE): Define.
28393         (TV_PCH_CPP_SAVE): Define.
28394         (TV_PCH_PTR_REALLOC): Define.
28395         (TV_PCH_PTR_SORT): Define.
28396         (TV_PCH_RESTORE): Define.
28397         (TV_PCH_CPP_RESTORE): Define.
28398
28399 2010-04-13  Michael Matz  <matz@suse.de>
28400
28401         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
28402         into MINUS_EXPRs.
28403         (can_reassociate_p): New function.
28404         (break_up_subtract_bb, reassociate_bb): Use it.
28405
28406 2010-04-13  Richard Guenther  <rguenther@suse.de>
28407
28408         PR bootstrap/43737
28409         * builtins.c (c_readstr): Fix assert.
28410
28411 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
28412
28413         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
28414         when generating cltd insn.
28415
28416         (*ashl<mode>3_1): Remove special handling for register operand 2.
28417         (*ashlsi3_1_zext): Ditto.
28418         (*ashlhi3_1): Ditto.
28419         (*ashlhi3_1_lea): Ditto.
28420         (*ashlqi3_1): Ditto.
28421         (*ashlqi3_1_lea): Ditto.
28422         (*<shiftrt_insn><mode>3_1): Ditto.
28423         (*<shiftrt_insn>si3_1_zext): Ditto.
28424         (*<shiftrt_insn>qi3_1_slp): Ditto.
28425         (*<rotate_insn><mode>3_1): Ditto.
28426         (*<rotate_insn>si3_1_zext): Ditto.
28427         (*<rotate_insn>qi3_1_slp): Ditto.
28428
28429 2010-04-13  Richard Guenther  <rguenther@suse.de>
28430
28431         * tree-ssa-structalias.c (callused_id): Remove.
28432         (call_stmt_vars): New.
28433         (get_call_vi): Likewise.
28434         (lookup_call_use_vi): Likewise.
28435         (lookup_call_clobber_vi): Likewise.
28436         (get_call_use_vi): Likewise.
28437         (get_call_clobber_vi): Likewise.
28438         (make_transitive_closure_constraints): Likewise.
28439         (handle_const_call): Adjust to do per-call call-used handling.
28440         (handle_pure_call): Likewise.
28441         (find_what_var_points_to): Remove general callused handling.
28442         (init_base_vars): Likewise.
28443         (init_alias_vars): Initialize call_stmt_vars.
28444         (compute_points_to_sets): Process call-used and call-clobbered
28445         vars for call statements.
28446         (delete_points_to_sets): Free call_stmt_vars.
28447
28448 2010-04-13  Richard Guenther  <rguenther@suse.de>
28449
28450         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28451         Only add RW dependence for dependence distance zero.
28452         Adjust maximal vectorization factor according to dependences.
28453         Move alignment handling ...
28454         (vect_find_same_alignment_drs): ... here.  New function.
28455         (vect_analyze_data_ref_dependences): Adjust.
28456         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
28457         (vect_analyze_data_refs): Adjust minimal vectorization factor
28458         according to data references.
28459         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
28460         dependences before determining the vectorization factor.
28461         Analyze alignment after determining the vectorization factor.
28462         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
28463         dependences before alignment.
28464         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
28465         Adjust prototype.
28466         (vect_analyze_data_refs): Likewise.
28467         (MAX_VECTORIZATION_FACTOR): New define.
28468
28469 2010-04-13  Duncan Sands  <baldrick@free.fr>
28470
28471         * except.h (lang_eh_type_covers): Remove.
28472         * except.c (lang_eh_type_covers): Likewise.
28473
28474 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28475             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
28476
28477         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
28478         * config/s390/s390.c: Replace UNTIS_PER_WORD with
28479         UNITS_PER_LONG where it is ABI relevant.
28480         (s390_return_addr_rtx): Likewise.
28481         (s390_back_chain_rtx): Likewise.
28482         (s390_frame_area): Likewise.
28483         (s390_frame_info): Likewise.
28484         (s390_initial_elimination_offset): Likewise.
28485         (save_gprs): Likewise.
28486         (s390_emit_prologue): Likewise.
28487         (s390_emit_epilogue): Likewise.
28488         (s390_function_arg_advance): Likewise.
28489         (s390_function_arg): Likewise.
28490         (s390_va_start): Likewise.
28491         (s390_gimplify_va_arg): Likewise.
28492         (s390_function_profiler): Likewise.
28493         (s390_optimize_prologue): Likewise.
28494         (s390_rtx_costs): Likewise.
28495         (s390_secondary_reload): Likewise.
28496         (s390_promote_function_mode): Likewise.
28497         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
28498         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
28499         registers available.
28500         (s390_unwind_word_mode): New function.
28501         (s390_function_value): Split 64 bit values into register pair if
28502         used as return value.
28503         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
28504         function call parameters.  Handle parallels.
28505         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
28506         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
28507         (DWARF_CIE_DATA_ALIGNMENT): New macro.
28508         (s390_expand_setmem): Remove unused variable src_addr.
28509         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
28510         deal with 64 bit registers.
28511         * config/s390/s390.h: Define __zarch__ predefined macro.
28512         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
28513         (UNITS_PER_LONG): New macro.
28514         * libjava/include/s390-signal.h: Define extended ucontext
28515         structure containing the upper halfs of the 64 bit registers.
28516
28517 2010-04-13  Simon Baldwin  <simonb@google.com>
28518
28519         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
28520
28521 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
28522
28523         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
28524         rvalue on the RHS if the LHS is of a non-renamable type.
28525         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
28526
28527 2010-04-13  Matthias Klose  <doko@ubuntu.com>
28528
28529         * gcc.c (cc1_options): Handle -iplugindir before processing
28530         the cc1 spec. Only add -iplugindir once.
28531         (cpp_unique_options): Add -iplugindir option if -fplugin* options
28532         found.
28533         * common.opt (iplugindir): Remove `Separate' property, initialize.
28534         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
28535         option.
28536         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
28537         (distclean): Remove plugin dir.
28538         * doc/invoke.texi: Document -iplugindir.
28539
28540 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
28541
28542         * doc/plugins.texi (Loading Plugins): Document short
28543         -fplugin=foo option.
28544         (Plugin API): Mention default_plugin_dir_name function.
28545
28546         * gcc.c (find_file_spec_function): Add new declaration.
28547         (static_spec_func): Use it for "find-file".
28548         (find_file_spec_function): Add new function.
28549         (cc1_options): Add -iplugindir option if -fplugin* options found.
28550
28551         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
28552
28553         * plugin.c (add_new_plugin): Updated comment, and handle short
28554         plugin name.
28555         (default_plugin_dir_name): Added new function.
28556
28557         * common.opt (iplugindir): New option to set the plugin directory.
28558
28559 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
28560
28561         * config/i386/i386.md (any_rotate): New code iterator.
28562         (rotate_insn): New code attribute.
28563         (rotate): Ditto.
28564         (SWIM124): New mode iterator.
28565         (<rotate_insn>ti3): New expander.
28566         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
28567         any_rotate code iterator.
28568         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
28569         using any_rotate code iterator and SWIM124 mode iterator.
28570         (ix86_rotlti3): New insn_and_split pattern.
28571         (ix86_rotrti3): Ditto.
28572         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
28573         ix86_rotl{di,ti}3 patterns.
28574         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
28575         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
28576         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
28577         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
28578         code iterator and SWI mode iterator.
28579         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
28580         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
28581         code iterator.
28582         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
28583         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
28584         (bswap rotatert splitter): Add splitter.
28585         (bswap splitter): Macroize splitter using any_rotate code iterator.
28586         Add insn predicate to split only for TARGET_USE_XCHGB or when
28587         optimizing function for size.
28588
28589 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
28590
28591         * config/pa/pa.c (emit_move_sequence): Remove use of
28592         deleted variable flag_argument_noalias.
28593
28594 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28595
28596         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
28597         configurations.
28598         Add to unsupported targets list.
28599         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
28600         sparc*-sun-solaris2.[567]* from target lists.
28601         * configure: Regenerate.
28602         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
28603         removal.
28604         Remove Solaris 7 patch references.
28605         (Specific, sparc-sun-solaris2.7): Removed.
28606         (sparc-sun-solaris2*): Update Solaris 7 example.
28607         (sparc64-*-solaris2*): Likewise.
28608
28609 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28610
28611         * config.build (alpha*-dec-osf4*): Remove.
28612         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
28613         of obsolete configurations.
28614         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
28615         support.
28616         * config/alpha/t-osf4: Renamed to ...
28617         * config/alpha/t-osf5: ... this.
28618         * config/alpha/osf.h: Renamed to ...
28619         * config/alpha/osf5.h: ... this.
28620         Merged old osf5.h contents.
28621         Update comments.
28622         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
28623         (EXTRA_SPECS): Removed.
28624         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
28625         reflect removal of Tru64 UNIX V4.0/V5.0 support.
28626         Document that.
28627
28628 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28629
28630         * doc/contrib.texi (Contributors, Rainer Orth): Update.
28631
28632 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
28633
28634         PR/43702
28635         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
28636         __thiscall convention.
28637
28638 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
28639
28640         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
28641         orig_base.
28642         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
28643
28644 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
28645
28646         * function.c (assign_parms_initialize_all): Add unused attribute
28647         to fntype.
28648
28649 2010-04-12  Richard Guenther  <rguenther@suse.de>
28650
28651         * gsstruct.def (GSS_CALL): New.
28652         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
28653         * gimple.h: Include tree-ssa-alias.h.
28654         (struct gimple_statement_call): New.
28655         (union gimple_statement_struct_d): Add gimple_call member.
28656         (gimple_call_reset_alias_info): Declare.
28657         (gimple_call_use_set): New function.
28658         (gimple_call_clobber_set): Likewise.
28659         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
28660         * gimple.c (gimple_call_reset_alias_info): New function.
28661         (gimple_build_call_1): Call it.
28662         * lto-streamer-in.c (input_gimple_stmt): Likewise.
28663         * tree-inline.c (remap_gimple_stmt): Likewise.
28664         (expand_call_inline): Remove callused handling.
28665         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
28666         * tree-dfa.c (dump_variable): Likewise.
28667         * tree-parloops.c (parallelize_loops): Likewise.
28668         * tree-ssa.c (init_tree_ssa): Likewise.
28669         (delete_tree_ssa): Likewise.
28670         * tree-flow-inline.h (is_call_used): Remove.
28671         * tree-flow.h (struct gimple_df): Remove callused member.
28672         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
28673         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
28674         (ref_maybe_used_by_call_p_1): Simplify.
28675         (call_may_clobber_ref_p_1): Likewise.
28676         * tree-ssa-structalias.c (compute_points_to_sets): Set
28677         the call stmt used and clobbered sets.
28678         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
28679         (find_tail_calls): Verify the tail call.
28680
28681 2010-04-12  Richard Guenther  <rguenther@suse.de>
28682
28683         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
28684         single-iteration always-inline inlining.
28685         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
28686         (cgraph_decide_inlining): Do not handle always-inline specially.
28687         (try_inline): Remove always-inline cycle detection special case.
28688         Do not recurse on always-inlines.
28689         (cgraph_early_inlining): Do not iterate if not optimizing.
28690         (cgraph_gate_early_inlining): remove.
28691         (pass_early_inline): Run unconditionally.
28692         (gate_cgraph_decide_inlining): New function.
28693         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
28694         not inlining or optimizing.
28695         (cgraph_decide_inlining_of_small_functions): Also consider
28696         always-inline functions.
28697         (cgraph_default_inline_p): Return true for nodes which should
28698         disregard inline limits.
28699         (estimate_function_body_sizes): Assume zero size and time for
28700         nodes which are marked as disregarding inline limits.
28701         (cgraph_decide_recursive_inlining): Do not perform recursive
28702         inlining on always-inline nodes.
28703
28704 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
28705
28706         PR bootstrap/43699
28707         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
28708         for exprs satisfying handled_component_p.
28709
28710 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
28711
28712         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
28713         non-constant aggregate elements.
28714
28715         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
28716         is a real initialization.
28717
28718 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
28719
28720         PR c/36774
28721         * c-decl.c (start_function): Move forward check for nested function.
28722
28723 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
28724
28725         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
28726         * config/sh/sh.c: Include reload.h.
28727         (sh_legitimize_reload_address): New.
28728         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
28729         sh_legitimize_reload_address.
28730
28731 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
28732
28733         * config/sh/sh.md (*movqi_pop): New insn pattern.
28734         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
28735
28736 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
28737
28738         * config/i386/i386.md (any_shiftrt): New code iterator.
28739         (shiftrt_insn): New code attribute.
28740         (shiftrt): Ditto.
28741         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
28742         using any_shiftrt code iterator.
28743         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
28744         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
28745         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
28746         pattern from corresponding peephole2 patterns.
28747         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
28748         using any_shiftrt code iterator.
28749         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
28750         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
28751         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
28752         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
28753         *{ashr,lshr}<mode>3_cmp_zext.
28754         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
28755
28756 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
28757
28758         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
28759         scratch register.
28760         (*lshr<mode>3_cconly): Ditto.
28761
28762 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
28763
28764         * config/i386/i386.md (lshr<mode>3): Macroize expander from
28765         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28766         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
28767         pattern from *lshr{di,ti}3_1 and corresponding splitters using
28768         DWI mode iterator.
28769         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28770         from corresponding peephole2 patterns.
28771         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
28772         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
28773         and *lshrdi3_1_rex64 using SWI mode iterator.
28774         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
28775         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
28776         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
28777         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
28778         and *lshrdi3_cmp_rex64 using SWI mode iterator.
28779         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
28780         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
28781         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
28782         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
28783         SWI mode iterator.
28784
28785 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
28786
28787         * config/i386/i386.md (ashr<mode>3): Macroize expander from
28788         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28789         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
28790         pattern from *ashr{di,ti}3_1 and corresponding splitters using
28791         DWI mode iterator.
28792         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28793         from corresponding peephole2 patterns.
28794         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
28795         (ashrsi3_cvt): Rename from ashrsi3_31.
28796         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
28797         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
28798         and x86_64_shift_adj_3 using SWI48 mode iterator.
28799         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
28800         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
28801         and *ashrdi3_1_rex64 using SWI mode iterator.
28802         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
28803         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
28804         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
28805         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
28806         and *ashrdi3_cmp_rex64 using SWI mode iterator.
28807         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
28808         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
28809         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
28810         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
28811         SWI mode iterator.
28812         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
28813         * config/i386/i386.c (ix86_split_ashr): Update for renamed
28814         x86_shift<mode>_adj_3 expanders.
28815
28816 2010-04-10  Wei Guozhi  <carrot@google.com>
28817
28818         PR target/42601
28819         * config/arm/arm.c (arm_pic_static_addr): New function.
28820         (legitimize_pic_address): Call arm_pic_static_addr when it detects
28821         a static symbol.
28822         (arm_output_addr_const_extra): Output expression for new pattern.
28823         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
28824
28825 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
28826
28827         * ira-costs.c (record_reg_classes): Ignore alternatives that are
28828         not enabled.
28829
28830         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
28831         * web.c: Include "insn-config.h" and "recog.h".
28832         (union_match_dups): New function.
28833         (web_main): Call it.
28834         (union_defs): Don't try to recognize match_dups.
28835
28836         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
28837         if doing so would replace the entire pattern.
28838
28839 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
28840
28841         PR target/43707
28842         PR target/43709
28843         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
28844         and splitter pattern.  Change splitter operand 1 predicate to
28845         nonmemory_operand.
28846
28847 2010-04-09  Martin Jambor  <mjambor@suse.cz>
28848
28849         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
28850         lattices are addresses of CONST_DECLs with the same initial value.
28851         (ipcp_print_all_lattices): Print values of CONST_DECLs.
28852         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
28853
28854 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
28855             Bernd Schmidt  <bernds@codesourcery.com>
28856
28857         * loop-invariant.c (replace_uses): New static function.
28858         (move_invariant_reg): Use it to ensure we can replace the uses.
28859
28860 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
28861
28862         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
28863         function template.
28864         (picochip_override_options): Enable section anchors only above -O1.
28865         (picochip_reorg): Fixed a couple of build warnings.
28866
28867 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28868
28869         * configure.ac (plugin -rdynamic test): Log result.
28870         * configure: Regenerate.
28871         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
28872         (RDYNAMIC_SPEC): Define.
28873         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
28874
28875 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28876
28877         * configure.ac: Determine Sun ld version numbers.
28878         (comdat_group): Restrict GNU ld version checks to gld.
28879         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
28880         (enable_comdat): Support --enable-comdat.
28881         * configure: Regenerate.
28882         * doc/install.texi (Configuration): Document --enable-comdat.
28883
28884 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28885
28886         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
28887         * config/sol2-gld.h: ... here.
28888         * config.gcc (sparc*-*-solaris2*): Reflect this.
28889         (i[34567]86-*-solaris2*): Use it.
28890
28891 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
28892
28893         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
28894         setup_clocks_p.
28895         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
28896
28897 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28898
28899         PR 42965
28900         * diagnostic.c (diagnostic_initialize): Initialize
28901         some_warnings_are_errors.
28902         (diagnostic_finish): New.
28903         (diagnostic_action_after_output): Call it before exiting.
28904         (diagnostic_report_diagnostic): Do not print message here. Set
28905         some_warnings_are_errors.
28906         * diagnostic.h (diagnostic_context): Delete
28907         issue_warnings_are_errors_message. Add some_warnings_are_errors.
28908         (diagnostic_finish): Declare.
28909         * toplev.c (toplev_main): Call it before exit.
28910
28911 2010-04-09  Jason Merrill  <jason@redhat.com>
28912
28913         PR c++/42623
28914         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
28915         for incomplete type.
28916
28917         PR c++/41788
28918         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
28919         based on a warning flag.
28920
28921 2010-04-09  Richard Guenther  <rguenther@suse.de>
28922
28923         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
28924
28925 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
28926
28927         PR bootstrap/43684
28928         * varasm.c (default_assemble_visibility): Wrap vars that are
28929         set, but unused, by targets without GAS.
28930         * config/rs6000/rs6000.c (paired_emit_vector_compare):
28931         Remove set, but unused, vars.
28932         (rs6000_legitimize_tls_address): Likewise.
28933         (altivec_expand_dst_builtin): Likewise.
28934         * config/darwin.c (machopic_classify_symbol): Likewise.
28935         (machopic_indirection_name): Likewise.
28936
28937 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
28938
28939         * config/i386/i386.md (DWI): New mode iterator.
28940         (S): New mode attribute.
28941         (shift_operand): Ditto.
28942         (shift_immediate_operand): Ditto.
28943         (ashl_input_operand): Ditto.
28944         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
28945         using SDWIM mode iterator.
28946         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
28947         pattern from *ashl{di,ti}3_1 and corresponding splitters using
28948         DWI mode iterator.
28949         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
28950         from corresponding peephole2 patterns.
28951         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
28952         and x86_64_shift_adj_1 using SWI48 mode iterator.
28953         (x86_shift<mode>_adj_2): Ditto.
28954         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
28955         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
28956         using SWI48 mode iterator.
28957         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
28958         *ashldi3_cmp_rex64 using SWI mode iterator.
28959         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
28960         *ashldi3_cconly_rex64 using SWI mode iterator.
28961         * config/i386/i386.c (ix86_split_ashl): Update for renamed
28962         x86_shift<mode>_adj_{1,2}.
28963         (ix86_split_ashr): Ditto.
28964         (ix86_split_lshr): Ditto.
28965
28966 2010-04-09  Richard Guenther  <rguenther@suse.de>
28967
28968         * target.h (builtin_conversion): Pass in input and output types.
28969         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
28970         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
28971         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
28972         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
28973
28974         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
28975         Handle AVX modes.
28976         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
28977
28978 2010-04-09  Richard Guenther  <rguenther@suse.de>
28979
28980         PR target/43152
28981         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
28982
28983 2010-04-09  Richard Guenther  <rguenther@suse.de>
28984
28985         * tree-vectorizer.h (struct _stmt_vec_info): Document
28986         that vectype is the type of the LHS.
28987         (supportable_widening_operation, supportable_narrowing_operation):
28988         Get both input and output vector types as arguments.
28989         (vect_is_simple_use_1): Declare.
28990         (get_same_sized_vectype): Likewise.
28991         * tree-vect-loop.c (vect_determine_vectorization_factor):
28992         Set STMT_VINFO_VECTYPE to the vector type of the def.
28993         (vectorizable_reduction): Adjust.
28994         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
28995         Adjust.  Specify the output vector type.
28996         (vect_pattern_recog_1): Adjust.
28997         * tree-vect-stmts.c (get_same_sized_vectype): New function.
28998         (vectorizable_call): Adjust.
28999         (vectorizable_conversion): Likewise.
29000         (vectorizable_operation): Likewise.
29001         (vectorizable_type_demotion): Likewise.
29002         (vectorizable_type_promotion): Likewise.
29003         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
29004         the def.
29005         (vect_is_simple_use_1): New function.
29006         (supportable_widening_operation): Get both input and output
29007         vector types.
29008         (supportable_narrowing_operation): Likewise.
29009         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
29010
29011 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
29012
29013         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
29014         __thiscall and _thiscall as predefined macros.
29015         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
29016         thiscall attribute handling.
29017         (ix86_comp_type_attributes): Likewise.
29018         (ix86_function_regparm): Likewise.
29019         (ix86_return_pops_args): Likewise.
29020         (init_cumulative_args): Likewise.
29021         (find_drap_reg): Likewise.
29022         (ix86_static_chain): Likewise.
29023         (x86_this_parameter): Likewise.
29024         (x86_output_mi_thunk): Likewise.
29025         (ix86_attribute_table): Add description for thiscall attribute.
29026         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
29027         * doc/extend.texi: Add documentation for thiscall.
29028
29029 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29030
29031         PR c++/28584
29032         * c.opt (Wint-to-pointer-cast): Available in C++.
29033         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
29034
29035 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
29036
29037         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
29038         * calls.c (expand_call): Pass the function type to aggregate_value_p.
29039         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
29040         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
29041         function type instead.  Reorder and simplify checks.
29042
29043         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
29044
29045 2010-04-08  Jing Yu  <jingyu@google.com>
29046             Zdenek Dvorak  <ook@ucw.cz>
29047
29048         PR tree-optimization/42720
29049         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
29050         loop unswitch conditions here from ...
29051         (tree_unswitch_single_loop): ... here.
29052
29053 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
29054
29055         * tree-if-conv.c: Fix comments and simplify logic.
29056
29057 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
29058
29059         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
29060         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
29061         (main_tree_if_conversion): Update call to tree_if_conversion.
29062
29063 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29064
29065         PR 42485
29066         * doc/invoke.texi (-b,-V): Delete.
29067         * doc/tm.texi: Do not mention -b.
29068         * gcc.c (display_help): Delete -b and -V.
29069         (process_command): Delete -b and -V.
29070         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
29071
29072 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
29073             Wolfgang Gellerich  <gellerich@de.ibm.com>
29074
29075         Implement target hook for loop unrolling
29076         * target.h (loop_unroll_adjust): Add a new target hook function.
29077         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
29078         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
29079         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
29080         (s390_loop_unroll_adjust): Implement the new target hook for s390.
29081         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
29082         target hook.
29083         (decide_unroll_stupid): Likewise.
29084
29085 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29086
29087         PR target/43643
29088         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
29089
29090 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29091
29092         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
29093         (Specific, *-*-solaris2*): Likewise.
29094         Don't prefer Sun as over GNU as.
29095
29096 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
29097
29098         * config/s390/s390.c (override_options): Adjust the z10 defaults
29099         for max-unroll-times, max-completely-peeled-insns
29100         and max-completely-peel-times.
29101
29102 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29103
29104         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
29105         instructions for z10.
29106         (s390_expand_setmem): Likewise.
29107         (s390_expand_cmpmem): Likewise.
29108
29109 2010-04-08  Richard Guenther  <rguenther@suse.de>
29110
29111         PR tree-optimization/43679
29112         * tree-ssa-pre.c (eliminate): Only propagate copies.
29113
29114 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
29115
29116         PR bootstrap/43681
29117         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
29118         set but not used variable warning.
29119
29120 2010-04-08  Wei Guozhi  <carrot@google.com>
29121
29122         PR target/41653
29123         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
29124         (arm_size_rtx_costs): Call the new function when optimized for size.
29125
29126 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
29127
29128         PR debug/43670
29129         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
29130         op0 is not a MEM, just return NULL instead of assertion
29131         failure.
29132         (discover_nonconstant_array_refs): Don't walk debug stmts.
29133
29134 2010-04-08  Doug Kwan  <dougkwan@google.com>
29135
29136         * configure.ac: Recognize gold and do not use its version number
29137         to test ld features.
29138         * configure: Regenerate.
29139
29140 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
29141
29142         PR middle-end/40815
29143         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
29144         (negate_value): Move code to push elements to broken_up_substracts ...
29145         (eliminate_plus_minus_pair): ... here.  Push operands that have no
29146         negative pair to plus_negates.
29147         (repropagate_negates, init_reassoc, fini_reassoc): Update.
29148
29149 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29150
29151         * doc/install.texi (Configuration): Move description of
29152         --enable-lto, --with-libelf*, --enable-gold from Java section to
29153         general section.
29154
29155         * doc/generic.texi (Working with declarations)
29156         (Function Properties, C and C++ Trees): Fix typos.
29157         * doc/sourcebuild.texi (Top Level): Likewise.
29158
29159 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
29160
29161         PR c/18624
29162         * tree.h (DECL_READ_P): Define.
29163         (struct tree_decl_common): Add decl_read_flag.
29164         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
29165         a set but not used warning.
29166         (merge_decls): Merge DECL_READ_P flag.
29167         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
29168         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
29169         * c-common.c (handle_used_attribute, handle_unused_attribute):
29170         Likewise.
29171         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
29172         New prototypes.
29173         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
29174         New functions.
29175         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
29176         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
29177         c_parser_binary_expression, c_parser_cast_expression,
29178         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
29179         Call default_function_array_read_conversion instead of
29180         default_function_array_conversion where needed.
29181         (c_parser_unary_expression, c_parser_conditional_expression,
29182         c_parser_postfix_expression_after_primary, c_parser_initelt):
29183         Likewise.  Call mark_exp_read where needed.
29184         (c_parser_statement_after_labels, c_parser_asm_operands,
29185         c_parser_typeof_specifier, c_parser_sizeof_expression,
29186         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
29187         where needed.
29188         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
29189         New.
29190         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
29191         (warn_unused_but_set_parameter): Default to warn_unused
29192         && extra_warnings.
29193         * doc/invoke.texi: Document -Wunused-but-set-variable and
29194         -Wunused-but-set-parameter.
29195
29196         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
29197         used count variable.
29198         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
29199         when operandN variables aren't used in the body of the expander
29200         or splitter.
29201         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
29202         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
29203         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
29204         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
29205         FOR_EACH_IMM_USE_ON_STMT): Likewise.
29206         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
29207         * tree.c (PROCESS_ARG): Likewise.
29208
29209 2010-04-07  Simon Baldwin  <simonb@google.com>
29210
29211         * diagnostic.h (diagnostic_override_option_index): New macro to
29212         set a diagnostic's option_index.
29213         * c-tree.h (c_cpp_error): Add warning reason argument.
29214         * opts.c (_warning_as_error_callback): New.
29215         (register_warning_as_error_callback): Store callback for
29216         warnings enabled via enable_warning_as_error.
29217         (enable_warning_as_error): Call callback, minor code tidy.
29218         * opts.h (register_warning_as_error_callback): Declare.
29219         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
29220         response to -Werror=.
29221         (c_common_init_options): Register warning_as_error_callback in opts.c.
29222         * common.opt: Add -Wno-cpp option.
29223         * c-common.c (struct reason_option_codes_t): Map cpp warning
29224         reason codes to gcc option indexes.
29225         * (c_option_controlling_cpp_error): New function, lookup the gcc
29226         option index for a cpp warning reason code.
29227         * (c_cpp_error): Add warning reason argument, call
29228         c_option_controlling_cpp_error for diagnostic_override_option_index.
29229         * doc/invoke.texi: Document -Wno-cpp.
29230
29231 2010-04-07  Richard Guenther  <rguenther@suse.de>
29232
29233         * ipa-reference.c (mark_load): Use get_base_address.
29234         (mark_store): Likewise.
29235
29236         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
29237         inserting GIMPLE_NOPs into the IL.
29238         * tree-ssa-structalias.c (get_constraint_for_component_ref):
29239         Explicitly strip handled components and indirect references.
29240
29241         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
29242         folding address expressions.
29243         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
29244         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
29245         operand_equal_p to compare decls.
29246         (ptr_deref_may_alias_decl_p): Likewise.
29247         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
29248         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
29249         Handle reversed comparison ops.
29250         * tree-sra.c (asm_visit_addr): Use get_base_address.
29251         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
29252         * ipa-reference.c (mark_address): Use get_base_address.
29253
29254 2010-04-07  Richard Guenther  <rguenther@suse.de>
29255
29256         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
29257         Propagate constants everywhere.
29258
29259 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
29260
29261         PR debug/43516
29262         * tree.c (MAX_INT_CACHED_PREC): Define.
29263         (nonstandard_integer_type_cache): New array.
29264         (build_nonstandard_integer_type): Cache results for precision
29265         <= MAX_INT_CACHED_PREC.
29266
29267 2010-04-07  Richard Guenther  <rguenther@suse.de>
29268
29269         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
29270         -fargument-noalias-global, -fargument-noalias-anything): Remove.
29271         * common.opt: Likewise.
29272         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
29273         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
29274         (nonoverlapping_memrefs_p): Likewise.
29275         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
29276         * opts.c (common_handle_option): Handle OPT_fargument_alias,
29277         OPT_fargument_noalias, OPT_fargument_noalias_anything and
29278         OPT_fargument_noalias_global for backward compatibility.
29279
29280 2010-04-07  Richard Guenther  <rguenther@suse.de>
29281
29282         PR tree-optimization/43270
29283         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
29284         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
29285         * tree-ssa-pre.c (phi_translate_1): Adjust.
29286         (fully_constant_expression): Split out vn_reference handling to ...
29287         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
29288         Fold reads from constant strings.
29289         (vn_reference_lookup): Handle fully constant references.
29290         (vn_reference_lookup_pieces): Likewise.
29291         * Makefile.in (expmed.o-warn): Add -Wno-error.
29292
29293 2010-04-07  Martin Jambor  <mjambor@suse.cz>
29294
29295         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
29296
29297 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
29298
29299         PR driver/41594
29300         * gcc.c: Add -static-libstdc++ to list of recognized options.
29301
29302 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29303
29304         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
29305
29306 2010-04-07  Richard Guenther  <rguenther@suse.de>
29307
29308         PR middle-end/42617
29309         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
29310         bases build simple mem attributes to retain points-to information.
29311
29312 2010-04-07  Richard Guenther  <rguenther@suse.de>
29313
29314         PR middle-end/42617
29315         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
29316         preserve points-to related information.
29317
29318 2010-04-07  Richard Guenther  <rguenther@suse.de>
29319
29320         PR middle-end/42617
29321         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
29322         discard plain indirect references.
29323         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
29324         * tree.c (tree_nop_conversion): Likewise.
29325
29326 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
29327
29328         PR debug/43628
29329         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
29330
29331 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
29332
29333         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
29334         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
29335
29336 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
29337
29338         * tree-if-conv.c: Fix indentation and comments.
29339
29340 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
29341
29342         * tree-if-conv.c: Sort static functions in topological order.
29343
29344 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
29345
29346         * tree-if-conv.c: Fix indentation and comments.
29347
29348 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29349
29350         PR middle-end/43519
29351         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
29352         lang_hooks.types.type_for_size instead of
29353         build_nonstandard_integer_type.
29354         When converting an unsigned type to signed, double its precision.
29355         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
29356         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
29357         (graphite_create_new_loop_guard): When ub + 1 wraps around,
29358         use lb <= ub.
29359
29360 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29361
29362         PR middle-end/43519
29363         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
29364         POINTER_PLUS_EXPR for pointer types.
29365
29366 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29367
29368         PR middle-end/43519
29369         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
29370         * graphite-clast-to-gimple.c: Include langhooks.h.
29371         (max_signed_precision_type): New.
29372         (max_precision_type): Takes two types as arguments.
29373         (precision_for_value): New.
29374         (precision_for_interval): New.
29375         (gcc_type_for_interval): New.
29376         (gcc_type_for_value): New.
29377         (gcc_type_for_clast_term): New.
29378         (gcc_type_for_clast_red): New.
29379         (gcc_type_for_clast_bin): New.
29380         (gcc_type_for_clast_expr): Split up into several functions.
29381         (gcc_type_for_clast_eq): Rewritten.
29382         (compute_bounds_for_level): New.
29383         (compute_type_for_level_1): New.
29384         (compute_type_for_level): New.
29385         (gcc_type_for_cloog_iv): Removed.
29386         (gcc_type_for_iv_of_clast_loop): Rewritten.
29387         (graphite_create_new_loop): Compute the lower and upper bound types
29388         with gcc_type_for_clast_expr.
29389         (graphite_create_new_loop_guard): Same.
29390         (find_cloog_iv_in_expr): Removed.
29391         (compute_cloog_iv_types_1): Removed.
29392         (compute_cloog_iv_types): Removed.
29393         (gloog): Do not call compute_cloog_iv_types.
29394         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
29395         GBB_CLOOG_IV_TYPES.
29396         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
29397         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
29398         (GBB_CLOOG_IV_TYPES): Removed.
29399
29400 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29401
29402         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
29403         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
29404         (detect_commutative_reduction): Same.
29405
29406 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29407
29408         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
29409         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
29410         argument.
29411         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
29412         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
29413         (rewrite_commutative_reductions_out_of_ssa): Same.
29414         * passes.c (execute_function_todo): Call verify_ssa for every pass
29415         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
29416         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
29417         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
29418         with an extra argument.
29419         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
29420         verify_ssa only when the extra argument is true.
29421         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
29422         with an extra argument.
29423         (tree_transform_and_unroll_loop): Same.
29424
29425 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
29426
29427         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
29428         for all the passes of the LNO having LOOP_CLOSED_SSA.
29429         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
29430         * tree-loop-distribution.c (pass_loop_distribution): Same.
29431         * tree-pass.h (TODO_verify_loops): Removed.
29432         * tree-ssa-loop.c (pass_tree_loop_init): Same.
29433         (pass_lim): Same.
29434         (pass_tree_unswitch): Same.
29435         (pass_predcom): Same.
29436         (pass_vectorize): Same.
29437         (pass_linear_transform): Same.
29438         (pass_graphite_transforms): Same.
29439         (pass_iv_canon): Same.
29440         (pass_complete_unroll): Same.
29441         (pass_complete_unrolli): Same.
29442         (pass_parallelize_loops): Same.
29443         (pass_loop_prefetch): Same.
29444         (pass_iv_optimize): Same.
29445
29446 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
29447
29448         PR middle-end/32824
29449         * passes.c (init_optimization_passes): Move pass_lim before
29450         pass_copy_prop and pass_dce_loop.
29451
29452 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
29453
29454         PR target/43667
29455         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
29456         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
29457         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
29458         MULTI_* defines for 4 argument vpermil2p* builtins.
29459
29460 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
29461
29462         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
29463         * config/i386/i386.c (x86_maybe_negate_const_int): New.
29464         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
29465         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
29466         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
29467         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
29468         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
29469         Use x86_maybe_negate_const_int to output insn mnemonic.
29470         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
29471         check from instruction predicate.  Update comments.
29472         * config/i386/sync.md (sync_add<mode>): Use
29473         x86_maybe_negate_const_int to output insn mnemonic.
29474
29475 2010-04-06  Jan Hubicka  <jh@suse.cz>
29476
29477         PR tree-optimization/42906
29478         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
29479         IGNORE_SELF argument.  Set visited_control_parents for fully
29480         processed BBs.
29481         (find_obviously_necessary_stmts): Update call of
29482         mark_control_dependent_edges_necessary.
29483         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
29484
29485 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
29486
29487         * config/i386/i386.md: Remove comment about 'e' and 'E'
29488         operand modifier.
29489
29490 2010-04-06  Richard Guenther  <rguenther@suse.de>
29491
29492         PR tree-optimization/43627
29493         * tree-vrp.c (extract_range_from_unary_expr): Widenings
29494         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
29495         not varying.
29496
29497 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
29498
29499         * BASE-VER: Change to 4.6.0.
29500
29501         PR target/43638
29502         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
29503         handling.
29504
29505 2010-04-06  Richard Guenther  <rguenther@suse.de>
29506
29507         PR middle-end/43661
29508         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
29509
29510 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29511
29512         * doc/invoke.texi (Optimize Options): Document that LTO
29513         won't remove object access purely due to incompatible
29514         declarations.
29515
29516 2010-04-04  Matthias Klose  <doko@ubuntu.com>
29517
29518         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
29519         Initialize variable.
29520
29521 2010-04-03  Richard Guenther  <rguenther@suse.de>
29522
29523         PR middle-end/42509
29524         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
29525         require a non-NULL MEM_OFFSET.
29526
29527 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
29528
29529         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
29530         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
29531         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
29532         config/alpha/predicates.md, config/arm/arm.md,
29533         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
29534         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
29535         config/darwin9.h, config/darwin.c, config/darwin.h,
29536         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
29537         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
29538         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
29539         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
29540         config/mips/mips.md, config/mn10300/mn10300.c,
29541         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
29542         config/rs6000/aix.h, config/rs6000/dfp.md,
29543         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
29544         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
29545         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
29546         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
29547         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
29548         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
29549         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
29550         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
29551         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
29552         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
29553         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
29554         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
29555         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
29556         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
29557         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
29558         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
29559         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
29560         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
29561         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
29562         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
29563         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
29564         opt-functions.awk, opth-gen.awk, params.def, passes.c,
29565         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
29566         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
29567         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
29568         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
29569         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
29570         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
29571         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
29572         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
29573         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
29574         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
29575         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
29576         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
29577         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
29578         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
29579
29580 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29581
29582         PR other/43620
29583         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
29584         * aclocal.m4: Regenerate.
29585
29586 2010-04-02  Richard Guenther  <rguenther@suse.de>
29587
29588         PR tree-optimization/43629
29589         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
29590         if we have seen a constant value.
29591
29592 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
29593
29594         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
29595
29596 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
29597
29598         PR target/43469
29599         * arm.c (legitimize_tls_address): Adjust call to
29600         gen_tls_load_dot_plus_four.
29601         (arm_note_pic_base): New function.
29602         (arm_cannot_copy_insn_p): Use it.
29603         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
29604         constraint.
29605
29606 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29607
29608         PR bootstrap/43531
29609
29610         Revert:
29611         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29612
29613         * Makefile.in ($(out_object_file)): Depend on
29614         gt-$(basename $(notdir $(out_file))).h.
29615
29616 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
29617
29618         * config.gcc (lm32-*-rtems*): Add t-lm32.
29619
29620 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
29621
29622         * config.gcc: Add lm32-*-rtems*.
29623         * config/lm32/rtems.h: New file.
29624
29625 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
29626
29627         PR target/42609
29628         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
29629
29630 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
29631
29632         * dwarf2out.c (output_compilation_unit_header): For
29633         -gdwarf-4 use version 4 instead of version 3.
29634         (output_line_info): For version 4 and above emit additional
29635         maximum ops per insn header field.
29636         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
29637
29638         * dwarf2out.c (is_c_family, is_java): Remove.
29639         (lower_bound_default): New function.
29640         (add_bound_info, gen_descr_array_type_die): Use it.
29641
29642 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
29643
29644         PR debug/43325
29645         * dwarf2out.c (gen_variable_die): Allow debug info for variable
29646         re-declaration when it happens in a function.
29647
29648 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
29649
29650         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
29651         (cgraph_remove_function_insertion_hook): Same.
29652         (cgraph_call_function_insertion_hooks): Same.
29653
29654 2010-04-01  Richard Guenther  <rguenther@suse.de>
29655
29656         PR middle-end/43614
29657         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
29658         and TREE_THIS_VOLATILE.
29659         (copy_ref_info): Likewise.
29660         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
29661         * tree.c (build6_stat): Ignore side-effects of all but arg5
29662         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
29663         TARGET_MEM_REF.
29664
29665 2010-04-01  Richard Guenther  <rguenther@suse.de>
29666
29667         PR tree-optimization/43607
29668         * ipa-type-escape.c (check_call): Do not access non-existing
29669         arguments.
29670
29671 2010-04-01  Richard Guenther  <rguenther@suse.de>
29672
29673         PR middle-end/43602
29674         Revert
29675         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
29676                     Jack Howarth  <howarth@bromo.med.uc.edu>
29677
29678         * tree-profile.c (tree_init_ic_make_global_vars): Make static
29679         variables TLS.
29680
29681 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29682
29683         * doc/install.texi (Prerequisites): Document libelf usability on
29684         IRIX 5/6 and Solaris 2.
29685         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
29686         Update GNU as, GNU ld requirements.
29687         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
29688         Document Sun Studio compiler download.
29689         Update and simplify as, ld recommendations.
29690         (Specific, *-*-solaris2.7): Note obsoletion, removal.
29691
29692 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29693
29694         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
29695         with_tune_32 to pentium4.
29696
29697 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
29698
29699         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
29700
29701 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29702
29703         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
29704         obsoletion, removal.
29705         Update IDO URL.
29706         Document GNU as requirement.
29707         Update configure requirements.
29708         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
29709         Recomment IRIX 6.5.18+.
29710         Document IDF/IDL requirement.
29711         Document GNU as requirement.
29712         Document GNU ld bootstrap failure.
29713         Remove freeware.sgi.com reference.
29714
29715 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29716
29717         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
29718         UNIX V4.0, V5.0 obsoletion, removal.
29719         Remove --with-gc=simple reference.
29720         Update VM requirements during bootstrap.
29721         Remove -oldas bootstrap description.
29722         Update binutils reference.
29723         Remove comparison failure note.
29724
29725 2010-03-31  Richard Guenther  <rguenther@suse.de>
29726             Zdenek Dvorak  <ook@ucw.cz>
29727             Sebastian Pop  <sebastian.pop@amd.com>
29728
29729         PR middle-end/43464
29730         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
29731         with multiple arguments.
29732         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
29733
29734 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
29735
29736         * graphite-dependences.c (print_pddr): Call print_pdr with an
29737         extra argument.
29738         * graphite-poly.c (debug_pdr): Add an extra argument for the
29739         verbosity level.
29740         (print_pdr): Same.
29741         (print_pbb_domain): Same.
29742         (print_pbb): Same.
29743         (print_scop_context): Same.
29744         (print_scop): Same.
29745         (print_cloog): Same.
29746         (debug_pbb_domain): Same.
29747         (debug_pbb): Same.
29748         (print_pdrs): Same.
29749         (debug_pdrs): Same.
29750         (debug_scop_context): Same.
29751         (debug_scop): Same.
29752         (debug_cloog): Same.
29753         (print_scop_params): Same.
29754         (debug_scop_params): Same.
29755         (print_iteration_domain): Same.
29756         (print_iteration_domains): Same.
29757         (debug_iteration_domain): Same.
29758         (debug_iteration_domains): Same.
29759         (print_scattering_function): Same.
29760         (print_scattering_functions): Same.
29761         (debug_scattering_function): Same.
29762         (debug_scattering_functions): Same.
29763         * graphite-poly.h (debug_pdr): Update declaration.
29764         (print_pdr): Same.
29765         (print_pbb_domain): Same.
29766         (print_pbb): Same.
29767         (print_scop_context): Same.
29768         (print_scop): Same.
29769         (print_cloog): Same.
29770         (debug_pbb_domain): Same.
29771         (debug_pbb): Same.
29772         (print_pdrs): Same.
29773         (debug_pdrs): Same.
29774         (debug_scop_context): Same.
29775         (debug_scop): Same.
29776         (debug_cloog): Same.
29777         (print_scop_params): Same.
29778         (debug_scop_params): Same.
29779         (print_iteration_domain): Same.
29780         (print_iteration_domains): Same.
29781         (debug_iteration_domain): Same.
29782         (debug_iteration_domains): Same.
29783         (print_scattering_function): Same.
29784         (print_scattering_functions): Same.
29785         (debug_scattering_function): Same.
29786         (debug_scattering_functions): Same.
29787
29788 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
29789
29790         * graphite-poly.c (print_scattering_function_1): New.
29791         (print_scattering_function): Call it.
29792         (print_scop_params): Remove spaces at the end of lines.
29793         (print_cloog): New.
29794         (debug_cloog): New.
29795         * graphite-poly.h (print_cloog): Declared.
29796         (debug_cloog): Declared.
29797
29798 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
29799
29800         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
29801         in loop->header.
29802         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
29803         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
29804         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
29805         to switch between adding the IV bump in loop->latch or in loop->header.
29806
29807 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
29808
29809         * graphite-poly.c (print_scattering_function): Pretty print following
29810         the scoplib format.
29811         (print_pdr): Same.
29812         (print_pbb_domain): Same.
29813         (dump_gbb_cases): Same.
29814         (dump_gbb_conditions): Same.
29815         (print_pdrs): Same.
29816         (print_pbb): Same.
29817         (print_scop_params): Same.
29818         (print_scop_context): Same.
29819         (print_scop): Same.
29820         (print_pbb_body): New.
29821         (lst_indent_to): New.
29822         (print_lst): Start new lines with a #.
29823         * graphite-poly.h (pbb_bb): New.
29824         (pbb_index): Use pbb_bb.
29825         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
29826         disjuncts.
29827         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
29828
29829 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
29830
29831         * dwarf2out.c (size_of_die): For -gdwarf-4 use
29832         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
29833         and 0 instead of 1 for dw_val_class_flag.
29834         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
29835         dw_val_class_range_list, dw_val_class_loc_list,
29836         dw_val_class_lineptr and dw_val_class_macptr, use
29837         DW_FORM_flag_present for dw_val_class_flag and
29838         DW_FORM_exprloc for dw_val_class_loc.
29839         (output_die): For -gdwarf-4 print dw_val_class_loc
29840         size as uleb128 instead of 1 or 2 bytes and don't print
29841         anything for dw_val_class_flag.
29842
29843         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
29844         instead of cselib_lookup following by tweaking locs->setting_insn.
29845
29846         PR bootstrap/43596
29847         * cselib.c (cselib_process_insn): Clear cselib_current_insn
29848         even before returning from label, setjmp call or volatile asm
29849         handling.
29850
29851 2010-03-31  Richard Guenther  <rguenther@suse.de>
29852
29853         PR middle-end/43600
29854         * cgraphunit.c (cgraph_output_in_order): Do not allocate
29855         temporary data on stack.
29856
29857 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29858
29859         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
29860         (PUSHSECTION_ASM_OP): Remove.
29861         (POPSECTION_ASM_OP): Remove.
29862         (PUSHSECTION_FORMAT): Remove.
29863         * config/sol2.h (PUSHSECTION_FORMAT): Define.
29864         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
29865         * config/sol2.c (solaris_output_init_fini): Use it.
29866
29867 2010-03-31  Jie Zhang  <jie@codesourcery.com>
29868
29869         PR 43574
29870         * opt-functions.awk (var_type_struct): Use signed char type
29871         for simple variables.
29872
29873 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29874
29875         * config/sol2.c: Include output.h.
29876         (solaris_assemble_visibility): New function.
29877         * config/t-sol2 (sol2.o): Add output.h dependency.
29878         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
29879         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
29880         Redefine.
29881
29882 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
29883
29884         PR target/43580
29885         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
29886         V2SImode or XFmode on PRE_DEC.
29887
29888         PR debug/43557
29889         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
29890         BLKmode.
29891
29892 2010-03-31  Jie Zhang  <jie@codesourcery.com>
29893
29894         PR 43562
29895         * reload.h (caller_save_initialized_p): Declare.
29896         * toplev.c (backend_init_target): Don't call
29897         init_caller_save but set caller_save_initialized_p to false.
29898         * caller-save.c (caller_save_initialized_p): Define.
29899         (init_caller_save): Check caller_save_initialized_p.
29900         * ira.c (ira): Call init_caller_save if flag_caller_saves.
29901
29902 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29903
29904         PR target/39048
29905         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
29906         and soft-fp/t-softfp to tmake_file.
29907         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
29908         (LIBGCC2_TF_CEXT): Define.
29909         (TF_SIZE): Define.
29910
29911 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
29912
29913         PR debug/42977
29914         * cselib.c (n_useless_values): Document handling of debug locs.
29915         (n_useless_debug_values, n_debug_values): New variables.
29916         (new_elt_loc_list): Don't add to debug values, keep count.
29917         (promote_debug_loc): New.
29918         (cselib_reset_table): Zero new variables.
29919         (entry_and_rtx_equal_p): Promote debug locs.
29920         (discard_useless_locs): Increment n_useless_debug_values for
29921         debug values.
29922         (remove_useless_values): Adjust n_useless_values and n_debug_values
29923         with n_useless_debug_values.
29924         (add_mem_for_addr): Promote debug locs.
29925         (cselib_lookup_mem): Likewise.
29926         (cselib_lookup_addr): Renamed to...
29927         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
29928         (cselib_log_lookup): ... this.  Turn into...
29929         (cselib_lookup_addr): ... new wrapper.
29930         (cselib_lookup_from_insn): New.
29931         (cselib_invalidate_regno): Increment n_useless_debug_values for
29932         debug values.
29933         (cselib_invalidate_mem): Likewise.
29934         (cselib_process_insn): Take n_deleted and n_debug_values into
29935         account to guard remove_useless_value call.
29936         (cselib_finish): Zero n_useless_debug_values.
29937         * cselib.h (cselib_lookup_from_insn): Declare.
29938         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
29939         (sched_analyze_2): Likewise.
29940
29941 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
29942
29943         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
29944         functions.
29945         (adjust_mems): Replace narrowing SUBREG of expression containing
29946         just PLUS, MINUS, MULT and ASHIFT of registers and constants
29947         with operations in the narrower mode.
29948
29949         PR debug/43593
29950         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
29951         regs_invalidated_by_call instead all call_used_reg_set registers.
29952
29953 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
29954
29955         PR middle-end/43430
29956         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
29957         pointer comparisons with types_compatible_p.
29958         * tree-vect-stmts.c (vectorizable_call): Same.
29959         (vectorizable_condition): Same.
29960
29961 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29962
29963         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
29964         stack check if the mask would be zero.
29965
29966 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
29967             Jack Howarth  <howarth@bromo.med.uc.edu>
29968
29969         * tree-profile.c (tree_init_ic_make_global_vars): Make static
29970         variables TLS.
29971
29972 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
29973
29974         PR other/25232
29975         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
29976         and __unordtf2.
29977         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
29978         Include ___unordxf2 and ___unordtf2.
29979         * config/i386/libgcc-glibc.ver: Do not define inheritance from
29980         GCC_4.4.0 here.
29981
29982 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
29983
29984         * config/lm32/t-lm32: New file.
29985         * config.gcc: Use the above file when targetting lm32.
29986
29987 2010-03-28  Duncan Sands  <baldrick@free.fr>
29988
29989         * Makefile.in (PLUGIN_HEADERS): Add except.h.
29990
29991 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
29992
29993         PR middle-end/43431
29994         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
29995         Improve vectorization cost model diagnostic.
29996
29997 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
29998
29999         PR middle-end/43436
30000         * tree-vect-data-refs.c (vect_analyze_data_refs): When
30001         compute_data_dependences_for_loop returns false, early exit
30002         and output an extra diagnostic for the failed data reference
30003         analysis.
30004
30005 2010-03-29  Richard Guenther  <rguenther@suse.de>
30006
30007         PR tree-optimization/43560
30008         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
30009         (can_sm_ref_p): Treat stores to readonly locations as trapping.
30010
30011 2010-03-29  Jie Zhang  <jie@codesourcery.com>
30012
30013         PR 43564
30014         * toplev.c (process_options): Set optimization_default_node
30015         and optimization_current_node.
30016         * opts.c (decode_options): Don't set optimization_default_node
30017         and optimization_current_node.
30018
30019 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
30020
30021         * config/rtems.h: Abandon -qrtems_debug.
30022
30023 2010-03-28  Jan Hubicka  <jh@suse.cz>
30024
30025         PR tree-optimization/43505
30026         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
30027         map should not be copied.
30028
30029 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30030
30031         PR middle-end/41674
30032         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
30033         cdtors, set DECL_PRESERVE_P.
30034         * ipa.c (cgraph_externally_visible_p): Return true if declaration
30035         should be preseved.
30036
30037 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
30038
30039         PR tree-optimization/43528
30040         * stor-layout.c (place_field): Check that constant fits into
30041         unsigned HWI when skipping calculation of MS bitfield layout.
30042
30043 2010-03-27  Jan Hubicka  <jh@suse.cz>
30044
30045         PR middle-end/43391
30046         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
30047         notice_global_symbol work.
30048
30049 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
30050
30051         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
30052         instead of dwarf2out_decl.
30053         (struct var_loc_node): Remove section_label field.
30054         (dwarf2out_function_decl): New function.
30055         (dwarf2out_var_location): Don't set section_label field.
30056         (dwarf2out_begin_function): Don't empty decl_loc_table here.
30057
30058 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
30059
30060         PR tree-optimization/43544
30061         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
30062         First argument for builtin vectorized function hook is now a
30063         tree to be able to distinguish between machine specific and
30064         standard builtins.
30065         * targhooks.c (default_builtin_vectorized_function): Ditto.
30066         * targhooks.h (default_builtin_vectorized_function): Ditto.
30067         * target.h (struct gcc_target): Ditto.
30068         * tree-vect-stmts.c (vectorizable_function): Ditto.
30069         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
30070         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
30071         Ditto.
30072
30073 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
30074
30075         PR c/43381
30076         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
30077         nested binding iff it is a FUNCTION_DECL.
30078         (store_parm_decls_newstyle): Pass nested=true to bind for
30079         FUNCTION_DECLs amongst parameters.
30080
30081 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
30082
30083         * var-tracking.c (vt_expand_loc_callback): Don't run
30084         cselib_expand_value_rtx_cb in dummy mode if
30085         cselib_dummy_expand_value_rtx_cb returned false.
30086
30087         * var-tracking.c (emit_note_insn_var_location): For one part
30088         notes with offset 0, don't add EXPR_LIST around the location.
30089         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
30090         add_location_or_const_value_attribute): Adjust for that change.
30091
30092         PR debug/43540
30093         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
30094         into first operand and location into second.
30095         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
30096         dw_cfi_oprnd_loc for DW_CFA_expression.
30097         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
30098         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
30099         assume first argument is regnum and second argument is location.
30100
30101 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
30102
30103         PR target/42113
30104         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
30105         of scratch register to DImode.  Split to DImode comparison operator.
30106         Use SImode subreg of scratch register in the multiplication.
30107         (*cmp_sadd_sidi): Ditto.
30108         (*cmp_ssub_si): Ditto.
30109         (*cmp_ssub_sidi): Ditto.
30110
30111 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
30112
30113         PR target/43524
30114         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
30115         Remove invalid assert and wrong comment.
30116
30117 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
30118
30119         PR debug/43516
30120         * flags.h (final_insns_dump_p): New extern.
30121         * final.c (final_insns_dump_p): New variable.
30122         (rest_of_clean_state): Set it before -fdump-final-insns=
30123         dumping, clear afterwards.
30124         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
30125         MEM_ALIAS_SET on MEMs.
30126
30127 2010-03-26  David S. Miller  <davem@davemloft.net>
30128
30129         * configure.ac: Fix sparc GOTDATA_OP bug check.
30130         * configure: Rebuild.
30131
30132 2010-03-26  Alan Modra  <amodra@gmail.com>
30133
30134         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
30135
30136 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30137
30138         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
30139         TLS_SECTION_ASM_FLAG.
30140
30141 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
30142
30143         PR bootstrap/43511
30144         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
30145         Clear first_function_block_is_cold.
30146
30147         PR c/43385
30148         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
30149         argument if the argument is truth_value_p.
30150
30151 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
30152
30153         * config/rs6000/constraints.md: Update copyright year for my changes.
30154
30155         PR target/43484
30156         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
30157         used in reg+reg addressing, swap registers.
30158
30159 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
30160
30161         PR debug/43293
30162         * target.h (struct gcc_target): Add code_end hook.
30163         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
30164         if not yet defined.
30165         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
30166         * toplev.c (compile_file): Call targetm.asm_out.code_end
30167         hook before unwind info/debug info output.
30168         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
30169         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
30170         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
30171         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
30172         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
30173         * config/i386/i386.c (ix86_file_end): Renamed to...
30174         (ix86_code_end): ... this.  Make static.  Don't call
30175         file_end_indicate_exec_stack.  Emit unwind info using
30176         final_start_function/final_end_function.
30177         (darwin_x86_file_end): Remove.
30178         (TARGET_ASM_CODE_END): Define.
30179         * config/i386/i386.h (TARGET_ASM_FILE_END,
30180         NEED_INDICATE_EXEC_STACK): Don't define.
30181         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
30182         (TARGET_ASM_FILE_END): Define to darwin_file_end.
30183         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
30184         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
30185
30186         PR target/43498
30187         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
30188         at the beginning and final_end_function at the end.
30189         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
30190
30191 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30192
30193         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
30194         and Sun as TLS syntax.
30195         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
30196         * configure: Regenerate.
30197         * config.in: Regenerate.
30198         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
30199         (default_elf_asm_named_section): Use it.
30200         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
30201         (i386_output_dwarf_dtprel): Likewise.
30202         (output_addr_const_extra): Likewise.
30203         (output_pic_addr_const): Lowercase @GOTTPOFF.
30204         (output_addr_const_extra): Likewise.
30205         (output_pic_addr_const): Lowercase @GOTNTPOFF.
30206         (output_addr_const_extra): Likewise.
30207         (output_pic_addr_const): Lowercase @INDNTPOFF.
30208         (output_addr_const_extra): Likewise.
30209         (output_pic_addr_const): Lowercase @NTPOFF.
30210         (output_addr_const_extra): Likewise.
30211         (output_pic_addr_const): Lowercase @TPOFF.
30212         (output_addr_const_extra): Likewise.
30213         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
30214         (*tls_global_dynamic_64): Likewise.
30215         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
30216         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
30217
30218         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
30219         (ASM_OUTPUT_TLS_COMMON): Use it.
30220         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
30221
30222         PR target/38118
30223         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
30224         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
30225         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
30226         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
30227         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30228         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
30229
30230 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30231
30232         * config/i386/i386.c (override_options): Don't accept
30233         -mtls-dialect=sun any longer.
30234         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
30235         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
30236         (*tls_local_dynamic_base_32_sun): Likewise.
30237         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
30238
30239 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
30240
30241         PR debug/43508
30242         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30243         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
30244
30245         PR debug/43479
30246         * ira.c (adjust_cleared_regs): New function.
30247         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
30248
30249         PR debug/19192
30250         PR debug/43479
30251         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
30252         from gimple_block.
30253         * expr.c (expand_expr_real): Restore previous
30254         curr_insn_source_location and curr_insn_block after
30255         expand_expr_real_1 call.
30256         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
30257         instead of expand_expr_real_1.
30258
30259 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
30260
30261         PR rtl-optimization/43413
30262         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
30263         hard regs too.
30264
30265 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
30266
30267         PR target/43348
30268         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
30269         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
30270
30271 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
30272
30273         * config/i386/i386.c (ix86_target_string): Add -mfma.
30274         Fix a typo in comment.
30275
30276 2010-03-22  Mike Stump  <mikestump@comcast.net>
30277
30278         PR target/23071
30279         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
30280         Don't overly align based upon packed packed fields.
30281
30282 2010-03-22  Jason Merrill  <jason@redhat.com>
30283
30284         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
30285         Use () rather than [], and move before the element type.
30286
30287 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30288
30289         * doc/configfiles.texi (Configuration Files): Removed
30290         fixinc/Makefile*, intl/Makefile.*.
30291         * doc/makefile.texi: Fixed markup. Abstract from version
30292         control system used.
30293         (Makefile): Removed obsolete java/parse.y example.
30294         * doc/sourcebuild.texi: Likewise.
30295         (Top Level): Added config, gnattools, libdecnumber, libgcc,
30296         libgomp, libssp.  Removed fastjar.
30297         (Miscellaneous Docs): Clarify location.
30298         Added COPYING3, COPYING3.LIB.
30299         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
30300
30301 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30302
30303         PR target/38085
30304         * config/i386/i386.c (x86_function_profiler)
30305         [!NO_PROFILE_COUNTERS]: Fix typo.
30306         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
30307         instead of callq.
30308
30309 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
30310             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30311
30312         * doc/sourcebuild.texi (Test Directives): Split into six
30313         subsections, with most of the current text in new subsections
30314         Directives, Selectors, and Final Actions.
30315         (Directives): Split list of test directives into multiple
30316         subsubsections.
30317         (Selectors): Describe use and syntax of selectors.
30318         (Effective-Target Keywords): Describe all existing keywords.
30319         (Add Options): Describe features for dg-add-options.
30320         (Require Support): Describe variants of dg-require-support.
30321         (Final Actions): Describe commands to use in dg-final.
30322
30323 2010-03-22  Michael Matz  <matz@suse.de>
30324
30325         PR middle-end/43475
30326         * recog.c (validate_replace_rtx_group): Replace also in
30327         REG_EQUAL and REG_EQUIV notes.
30328
30329 2010-03-22  Richard Guenther  <rguenther@suse.de>
30330
30331         PR tree-optimization/43390
30332         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
30333         sure vector extracts are type correct.
30334
30335 2010-03-22  Richard Guenther  <rguenther@suse.de>
30336
30337         PR middle-end/40106
30338         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
30339         x * sqrt (x) even when optimizing for size if the target
30340         has native support for sqrt.
30341
30342 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
30343
30344         * varasm.c (make_decl_rtl_for_debug): Also clear
30345         flag_mudflap for the duration of make_decl_rtl call.
30346
30347         PR debug/43443
30348         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
30349         locs from preserved VALUEs.
30350
30351 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
30352
30353         PR middle-end/42718
30354         * pa.md (movmemsi): Set align to one if zero.
30355         (movmemdi): Likewise.
30356
30357 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
30358
30359         PR target/42321
30360         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
30361         with their corresponding prologue pushes.
30362
30363 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
30364
30365         PR target/43156
30366         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
30367         at the begining or end.
30368         (spu_expand_epilogue): Likewise.
30369
30370 2010-03-20  Richard Guenther  <rguenther@suse.de>
30371
30372         PR rtl-optimization/43438
30373         * combine.c (make_extraction): Properly zero-/sign-extend an
30374         extraction of the low part of a CONST_INT.  Also handle
30375         CONST_DOUBLE.
30376
30377 2010-03-19  Mike Stump  <mikestump@comcast.net>
30378
30379         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
30380         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
30381         (override_options): Use SUBTARGET32_DEFAULT_CPU.
30382
30383 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
30384
30385         PR c/43211
30386         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
30387         an error.
30388
30389 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
30390
30391         PR rtl-optimization/42258
30392         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
30393         use that may match DEF.
30394
30395         PR target/40697
30396         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
30397         the cost of loading the constant rather than assuming
30398         COSTS_N_INSNS (1).
30399         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
30400         outer code is AND, do the same tests as the andsi3 expander and
30401         return COSTS_N_INSNS (1) if and is cheap.
30402
30403         * optabs.c (avoid_expensive_constant): Fix formatting.
30404
30405 2010-03-19  Michael Matz  <matz@suse.de>
30406
30407         PR c++/43116
30408         * attribs.c (decl_attributes): When rebuilding a function pointer
30409         type use the same qualifiers as the original pointer type.
30410
30411 2010-03-19  Martin Jambor  <mjambor@suse.cz>
30412
30413         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
30414         and is_gimple_ip_invariant_address.
30415
30416 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30417
30418         Revert
30419         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30420
30421         * config/arm/arm.c (arm_override_options): Turn off
30422         flag_dwarf2_cfi_asm for AAPCS variants.
30423
30424 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30425
30426         PR target/43399
30427         * config/arm/arm.c (emit_multi_reg_push): Update comments.
30428         Use PRE_MODIFY instead of PRE_DEC.
30429         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
30430         (vfp_emit_fstmd): Likewise.
30431
30432 2010-03-19  Michael Matz  <matz@suse.de>
30433
30434         PR target/43305
30435         * builtins.c (expand_builtin_interclass_mathfn,
30436         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
30437         if that fails.
30438
30439 2010-03-19  Richard Guenther  <rguenther@suse.de>
30440
30441         PR tree-optimization/43415
30442         * tree-ssa-pre.c (phi_translate): Split out worker to ...
30443         (phi_translate_1): ... this.
30444         (phi_translate): Move all caching here.  Cache all NARY
30445         and REFERENCE translations.
30446
30447 2010-03-19  David S. Miller  <davem@davemloft.net>
30448
30449         With help from Eric Botcazou.
30450         * config/sparc/sparc.c: Include dwarf2out.h.
30451         (emit_pic_helper): Delete.
30452         (pic_helper_symbol_name): Delete.
30453         (pic_helper_emitted_p): Delete.
30454         (pic_helper_needed): New.
30455         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
30456         (get_pc_thunk_name): New.
30457         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
30458         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
30459         Set pic_helper_needed to true.  Don't call emit_pic_helper.
30460         (sparc_expand_prologue): Update load_pic_register call.
30461         (sparc_output_mi_thunk): Likewise.
30462         (sparc_file_end): Emit a hidden comdat symbol for the PIC
30463         thunk if possible.  Output CFI information as needed.
30464
30465 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
30466             Jack Howarth  <howarth@bromo.med.uc.edu>
30467
30468         PR target/36399
30469         * config/i386/i386.h: Fix ABI on darwin x86-32.
30470
30471 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
30472
30473         * tree.h: Declare make_decl_rtl_for_debug.
30474         * varasm.c (make_decl_rtl_for_debug): New.
30475         * dwarf2out.c (rtl_for_decl_location): Call it.
30476         * cfgexpand.c (expand_debug_expr): Call it.
30477
30478 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
30479
30480         PR bootstrap/43399
30481         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
30482         mem_mode.
30483
30484         PR bootstrap/43403
30485         * var-tracking.c (vt_init_cfa_base): Do nothing if
30486         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
30487
30488 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
30489
30490         PR debug/42873
30491         * var-tracking.c (canonicalize_vars_star): New.
30492         (dataflow_post_merge_adjust): Use it.
30493
30494 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
30495
30496         PR debug/43058
30497         * var-tracking.c (non_suitable_const): New function.
30498         (add_uses): For DEBUG_INSNs with constants, don't record any
30499         value, instead just the constant value itself.
30500         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
30501         is not VAR_LOC_UNKNOWN_P, set var to the constant.
30502         (emit_notes_in_bb): Likewise.
30503         (emit_note_insn_var_location): For onepart variables if
30504         cur_loc is a VOIDmode constant, use DECL_MODE.
30505
30506 2010-03-18  Martin Jambor  <mjambor@suse.cz>
30507
30508         PR middle-end/42450
30509         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
30510         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
30511         all non-clones.  Moved call redirection...
30512         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
30513         (cgraph_materialize_all_clones): Dispose of all
30514         combined_args_to_skip bitmaps.
30515         (verify_cgraph_node): Do not check for edges pointing to wrong
30516         nodes in inline clones.
30517         * tree-inline.c (copy_bb): Call
30518         cgraph_redirect_edge_call_stmt_to_callee.
30519         * ipa.c (cgraph_remove_unreachable_nodes): Call
30520         cgraph_node_remove_callees even when there are used clones.
30521
30522 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
30523
30524         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
30525
30526 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
30527
30528         PR target/43383
30529         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
30530         for 32bit.
30531
30532 2010-03-18  Michael Matz  <matz@suse.de>
30533
30534         PR middle-end/43419
30535         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
30536         into sqrt(x) if we need to preserve signed zeros.
30537
30538 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
30539             Eric Botcazou  <ebotcazou@adacore.com>
30540
30541         PR rtl-optimization/43360
30542         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
30543         note if we don't know its invariant status.
30544
30545 2010-03-18  Michael Matz  <matz@suse.de>
30546
30547         PR tree-optimization/43402
30548         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
30549         PHI chains of ssa names registered for update.
30550
30551 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
30552
30553         PR target/42427
30554         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
30555         non-offsettable and pre_modify update addressing.
30556         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
30557         and "2" alternatives "#".
30558         (*movdd_softfloat32): Make all alternatives "#";
30559         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
30560         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
30561         (*movdf_softfloat32): Make all alternatives "#";
30562         (movdi): Use the new DIFD mode iterator to create a common splitter
30563         for movdi, movdf and movdd patterns.
30564
30565 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
30566
30567         * common.opt (dumpdir): Remove redundant tab.
30568
30569 2010-03-17  Martin Jambor  <mjambor@suse.cz>
30570
30571         PR tree-optimization/43347
30572         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
30573         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
30574
30575 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
30576
30577         PR rtl-optimization/42216
30578         * regrename.c (create_new_chain): New function, broken out from...
30579         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
30580         appending a use to an empty chain.
30581         (build_def_use): Remove previous changes that convert OP_INOUT to
30582         OP_OUT operands; instead detect the case where an OP_INOUT operand
30583         uses a previously untracked register and create an empty chain for it.
30584
30585 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30586
30587         * doc/extend.texi (Function Attributes): Rewrite unfinished
30588         sentence in ms_abi documentation.
30589
30590 2010-03-17  Alan Modra  <amodra@gmail.com>
30591
30592         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
30593         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
30594         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
30595         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
30596
30597 2010-03-16  Richard Henderson  <rth@redhat.com>
30598
30599         PR middle-end/43365
30600         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
30601         (lower_try_finally): Save and restore eh_seq around the expansion
30602         of the try-finally.
30603
30604 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
30605
30606         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
30607         statements before splitting block.
30608
30609 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30610
30611         * doc/sourcebuild.texi (Testsuites): Fix markup.
30612         Use pathnames relative to gcc/testsuite.
30613         (Test Directives): Move description of how timeout is determined.
30614         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
30615         (C Tests): Correct gcc.misc-tests directory.
30616         Framework tests now live in gcc.test-framework.
30617
30618 2010-03-16  Richard Guenther  <rguenther@suse.de>
30619
30620         PR middle-end/43379
30621         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
30622         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
30623
30624 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
30625             Alexandre Oliva  <aoliva@redhat.com>
30626
30627         PR tree-optimization/42917
30628         * lambda-code.c (remove_iv): Skip debug statements.
30629         (lambda_loopnest_to_gcc_loopnest): Likewise.
30630         (not_interesting_stmt): Debug statements are not interesting.
30631
30632 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
30633
30634         PR debug/43051
30635         PR debug/43092
30636         * cselib.c (cselib_preserve_constants,
30637         cfa_base_preserved_val): New static variables.
30638         (preserve_only_constants): New function.
30639         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
30640         clear its REG_VALUES.  If cselib_preserve_constants, don't
30641         empty the whole hash table, but preserve there VALUEs with constants,
30642         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
30643         (cselib_preserve_cfa_base_value): New function.
30644         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
30645         (cselib_init): Change argument to int bitfield.  Set
30646         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
30647         is in it.
30648         (cselib_finish): Clear cselib_preserve_constants and
30649         cfa_base_preserved_val.
30650         * cselib.h (enum cselib_record_what): New enum.
30651         (cselib_init): Change argument to int.
30652         (cselib_preserve_cfa_base_value): New prototype.
30653         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
30654         * dse.c (dse_step1): Likewise.
30655         * cfgcleanup.c (thread_jump): Likewise.
30656         * sched-deps.c (sched_analyze): Likewise.
30657         * gcse.c (local_cprop_pass): Likewise.
30658         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
30659         If FN is non-NULL, call the callback always and whenever it returns
30660         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
30661         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
30662         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
30663         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
30664         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
30665         * var-tracking.c: Include recog.h.
30666         (bb_stack_adjust_offset): Remove.
30667         (vt_stack_adjustments): Don't call it, instead just gather the
30668         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
30669         (adjust_stack_reference): Remove.
30670         (compute_cfa_pointer): New function.
30671         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
30672         (struct adjust_mem_data): New type.
30673         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
30674         functions.
30675         (get_address_mode): New function.
30676         (replace_expr_with_values): Use it.
30677         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
30678         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
30679         (adjust_sets): Remove.
30680         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
30681         Use get_address_mode.
30682         (get_adjusted_src): Remove.
30683         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
30684         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
30685         (add_with_sets): Don't call adjust_sets.
30686         (fp_setter, vt_init_cfa_base): New functions.
30687         (vt_initialize): Change return type to bool.  Move most of pool etc.
30688         initialization to the beginning of the function from end.  Pass
30689         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
30690         If !frame_pointer_needed, call vt_stack_adjustment before mos
30691         vector is filled, call vt_init_cfa_base if argp/framep has been
30692         eliminated to sp.  If frame_pointer_needed and argp/framep has
30693         been eliminated to hard frame pointer, set
30694         hard_frame_pointer_adjustment and call vt_init_cfa_base after
30695         encountering fp setter in the prologue.  For MO_ADJUST, call
30696         log_op_type before pusing the op into mos vector, not afterwards.
30697         Call adjust_insn before cselib_process_insn/add_with_sets,
30698         call cancel_changes (0) afterwards.
30699         (variable_tracking_main_1): Adjust for vt_initialize calling
30700         vt_stack_adjustments and returning whether it succeeded or not.
30701
30702 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
30703
30704         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
30705         debug statements.
30706
30707 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
30708
30709         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
30710         has been set.
30711         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
30712         drap_reg has not been set.
30713
30714 2010-03-15  Michael Matz  <matz@suse.de>
30715
30716         PR middle-end/43300
30717         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
30718         use it to expand block copies.
30719         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
30720         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
30721         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
30722
30723 2010-03-15  Richard Guenther  <rguenther@suse.de>
30724
30725         PR tree-optimization/43367
30726         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
30727         elimination check.
30728
30729 2010-03-15  Richard Guenther  <rguenther@suse.de>
30730
30731         PR tree-optimization/43317
30732         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
30733
30734 2010-03-15  Martin Jambor  <mjambor@suse.cz>
30735
30736         PR tree-optimization/43141
30737         * tree-sra.c (create_abstract_origin): New function.
30738         (modify_function): Call create_abstract_origin.
30739
30740 2010-03-15  Chris Demetriou  <cgd@google.com>
30741
30742         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
30743         wasn't copied.
30744
30745 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30746
30747         PR middle-end/43354
30748         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
30749         call insert_out_of_ssa_copy for default definitions.
30750
30751 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30752
30753         * graphite-clast-to-gimple.c (my_long_long): Defined.
30754         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
30755         * graphite-sese-to-poly.c (my_long_long): Defined.
30756         (scop_ivs_can_be_represented): Use it.
30757
30758 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30759
30760         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
30761         graphite-max-bbs-per-function, and loop-block-tile-size.
30762         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
30763         with "maximum".
30764         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
30765
30766 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30767
30768         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
30769         forward declaration.
30770         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
30771         (add_upper_bounds_from_estimated_nit): New.
30772         (build_loop_iteration_domains): Use it.
30773
30774 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30775
30776         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
30777
30778 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30779
30780         PR middle-end/43306
30781         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
30782         should be an INTEGER_CST.  Also handle CASE_CONVERT.
30783
30784 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30785
30786         * graphite.c (graphite_initialize): To bound the number of bbs per
30787         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
30788         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
30789         * doc/invoke.texi: Document it.
30790
30791 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30792
30793         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
30794         * graphite-sese-to-poly.h (build_poly_scop): Same.
30795
30796 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
30797
30798         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
30799         the number of parameters in the scop.  Use as an upper bound
30800         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
30801         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
30802         * doc/invoke.texi: Document it.
30803
30804 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
30805
30806         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
30807         * doc/c-tree.texi: Remove.
30808         * doc/generic.texi: Merge c-tree.texi here.
30809         * doc/gccint.texi (Trees): Remove menu entry.
30810         (c-tree.texi): Remove @include.
30811         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
30812         * doc/languages.texi (Reading RTL): Ditto.
30813
30814 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
30815
30816         PR target/42869
30817         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
30818
30819 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
30820
30821         PR middle-end/42431
30822         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
30823         code added to work around reload clobbering CONST insns.
30824
30825 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
30826
30827         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
30828         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
30829         (cselib_preserve_only_values): Remove retain argument, don't
30830         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
30831         * cselib.h (cselib_preserve_only_values): Remove retain argument.
30832         * var-tracking.c (micro_operation): Move insn field before union.
30833         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
30834         (struct variable_tracking_info_def): Remove n_mos field, change
30835         mos into a vector of micro_operations.
30836         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
30837         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
30838         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
30839         changing into a vector.
30840         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
30841         come before all other uops generated by add_stores.
30842         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
30843         argument removal.
30844         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
30845         a vector.  Run just one pass over the bbs instead of separate counting
30846         and computation phase.
30847         (vt_finalize): Free VTI (bb)->mos vector instead of array.
30848
30849         PR debug/43329
30850         * tree-inline.c (remap_decls): Put old_var rather than origin_var
30851         into *nonlocalized_list vector.
30852         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
30853         even if origin is non-NULL.
30854         (gen_variable_die): Likewise.
30855         (process_scope_var): Don't change origin.
30856         (gen_decl_die): Likewise.
30857         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
30858         before adding new edges instead of after it, fix moving over
30859         debug stmts.
30860
30861 2010-03-11  David S. Miller  <davem@davemloft.net>
30862
30863         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
30864         of four.
30865         * configure: Rebuild.
30866
30867 2010-03-11  Martin Jambor  <mjambor@suse.cz>
30868
30869         PR tree-optimization/43257
30870         * tree.c (assign_assembler_name_if_neeeded): New function.
30871         (free_lang_data_in_cgraph): Assembler name assignment moved to the
30872         above new function.
30873         * tree.h (assign_assembler_name_if_neeeded): Declare.
30874         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
30875         the function if needed.
30876
30877 2010-03-11  Chris Demetriou  <cgd@google.com>
30878
30879         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
30880         include/stdint-gcc.h, and include/stdint.h world-readable.
30881
30882 2010-03-11  Richard Guenther  <rguenther@suse.de>
30883
30884         PR tree-optimization/43255
30885         * tree-vrp.c (process_assert_insertions_for): Do not insert
30886         asserts for trivial conditions.
30887
30888 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30889
30890         PR tree-optimization/43280
30891         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
30892         generation.  Move calculation of size out of the if branch.
30893         (find_bswap): Modify compare number generation.
30894
30895 2010-03-11  Richard Guenther  <rguenther@suse.de>
30896
30897         PR lto/43200
30898         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
30899         (input_gimple_stmt): Fixup handled component types during
30900         operand read.  Also fix up decls in ADDR_EXPRs.
30901
30902 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
30903
30904         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
30905         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
30906
30907 2010-03-10  Jan Hubicka  <jh@suse.cz>
30908
30909         PR c/43288
30910         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
30911         * varasm.c (get_variable_section): Don't do that here...
30912         (make_decl_rtl): ... and here.
30913         (do_assemble_alias): Produce decl RTL.
30914         (assemble_alias): Likewise.
30915
30916 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
30917
30918         PR debug/43290
30919         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
30920         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
30921         of fde->vdrap_reg.
30922         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
30923         (based_loc_descr): Only express drap or vdrap regno based expressions
30924         using DW_OP_fbreg when not optimizing.
30925         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
30926         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
30927         REG_CFA_SET_VDRAP note.
30928
30929 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
30930
30931         PR tree-optimization/43236
30932         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
30933         error in calculation of base address in reverse iteration case.
30934         (generate_builtin): Take number of latch executions if the statement
30935         is in the latch.
30936
30937 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
30938
30939         PR middle-end/42859
30940         * tree-eh.c: Include pointer-set.h.
30941         (lower_eh_dispatch): Filter out duplicate case labels and
30942         remove the unneeded edge when the label is unused.  Return
30943         true when some edges are removed.
30944         (execute_lower_eh_dispatch): When any lowering resulted in
30945         removing an edge, also delete unreachable blocks.
30946
30947 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
30948
30949         PR bootstrap/43287
30950         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30951         UNSPEC_MACHOPIC_OFFSET.
30952
30953 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
30954
30955         PR target/43294
30956         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
30957         (m68k_delegitimize_address): New function.
30958
30959 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
30960
30961         PR debug/43299
30962         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
30963
30964         PR debug/43299
30965         * var-tracking.c (adjust_sets): New function.
30966         (count_with_sets, add_with_sets): Use it.
30967         (get_adjusted_src): New inline function.
30968         (add_stores): Use it.
30969
30970         PR debug/43304
30971         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
30972         call cselib_dummy_expand_value_rtx_cb instead of
30973         cselib_expand_value_rtx_cb.
30974
30975         PR debug/43293
30976         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
30977         * config/i386/i386.c: Include debug.h and dwarf2out.h.
30978         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
30979         and .cfi_endproc around the pic thunks.
30980         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
30981         all queued unwind info register saves are saved before the call.
30982         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
30983         considered as sp-=4 for unwind info and the pop as sp+=4 which
30984         also clobbers dest, but doesn't actually restore it.
30985
30986         PR debug/43290
30987         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
30988         RTX_FRAME_RELATED_P.
30989
30990 2010-03-09  Jie Zhang  <jie@codesourcery.com>
30991
30992         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
30993         whitespaces in output template.
30994
30995 2010-03-09  Jie Zhang  <jie@codesourcery.com>
30996
30997         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
30998         out array boundary.
30999
31000 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
31001
31002         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
31003         builtins.exp in a separate job.
31004
31005 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31006
31007         * graphite-sese-to-poly.c (add_param_constraints): Use
31008         lower_bound_in_type and upper_bound_in_type.
31009
31010 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31011
31012         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
31013         instead of unsigned_type_node.
31014
31015 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31016             Reza Yazdani  <reza.yazdani@amd.com>
31017
31018         PR middle-end/43065
31019         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
31020         on pointer type parameters.
31021
31022 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
31023
31024         PR middle-end/42644
31025         PR middle-end/42130
31026         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
31027         handle conversions from pointer to integers.
31028         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
31029         induction variable, to be able to work with code generated by CLooG.
31030         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
31031         (build_poly_scop): Bail out if we cannot codegen a loop.
31032
31033 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
31034
31035         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
31036         code generation with gloog_error.
31037
31038 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31039
31040         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
31041         Call fold_convert on all the returned values.
31042         (expand_scalar_variables_expr): Pass to
31043         expand_scalar_variables_ssa_name the type of the resulting expression.
31044
31045 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31046
31047         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
31048         ppl_min_for_le_pointset.
31049         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
31050         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
31051
31052 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31053
31054         * graphite-dependences.c (map_into_dep_poly): Removed.
31055         (dependence_polyhedron_1): Use combine_context_id_scat.
31056
31057 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31058
31059         * graphite-poly.h (struct poly_scattering): Add layout documentation.
31060         (struct poly_bb): Same.
31061         (combine_context_id_scat): New.
31062
31063 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31064
31065         PR middle-end/42326
31066         * sese.c (name_defined_in_loop_p): Return false for default
31067         definitions.
31068
31069 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31070
31071         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
31072         and clean up the logic.
31073
31074 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
31075
31076         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
31077         early return.
31078
31079 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
31080
31081         * var-tracking.c (remove_cselib_value_chains): Define only for
31082         ENABLE_CHECKING.
31083         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
31084         delete_slot_part, emit_notes_for_differences_1): Don't call
31085         remove_cselib_value_chains here.
31086         (set_slot_part, emit_notes_for_differences_2): Don't call
31087         add_cselib_value_chains here.
31088         (preserved_values): New vector.
31089         (preserve_value): New function.
31090         (add_uses, add_stores, vt_add_function_parameters): Use it
31091         instead of cselib_preserve_value.
31092         (changed_values_stack): New vector.
31093         (check_changed_vars_0): New function.
31094         (check_changed_vars_1, check_changed_vars_2): Use it.
31095         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
31096         changed_values_stack VALUEs.
31097         (vt_emit_notes): For all preserved_values call
31098         add_cselib_value_chains.  If ENABLE_CHECKING call
31099         remove_cselib_value_chains before verifying value_chains is empty.
31100         Initialize and free changed_values_stack.
31101         (vt_initialize): Initialize preserved_values.
31102         (vt_finalize): Free preserved_values.
31103
31104 2010-03-08  Richard Guenther  <rguenther@suse.de>
31105
31106         PR tree-optimization/43269
31107         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
31108         region detection.
31109
31110 2010-03-08  Martin Jambor  <mjambor@suse.cz>
31111
31112         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
31113         (ipa_is_param_called): Removed.
31114         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
31115         (ipa_print_node_params): Do not print the called flag.
31116         (ipa_write_node_info): Do not stream the called flag.
31117         (ipa_read_node_info): Likewise.
31118
31119 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
31120
31121         PR debug/43176
31122         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
31123         * cselib.c (struct expand_value_data): Add dummy field.
31124         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
31125         dummy to false.
31126         (cselib_dummy_expand_value_rtx_cb): New function.
31127         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
31128         any rtl.
31129         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
31130         * var-tracking.c: Include pointer-set.h.
31131         (variable): Change n_var_parts to char from int.  Add
31132         cur_loc_changed and in_changed_variables fields.
31133         (variable_canonicalize): Remove.
31134         (shared_var_p): New inline function.
31135         (unshare_variable): Maintain cur_loc_changed and
31136         in_changed_variables fields.  If var was in changed_variables,
31137         replace it there with new_var.  Just copy cur_loc instead of
31138         resetting it to something else.
31139         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
31140         (dataflow_set_union): Don't call variable_canonicalize.
31141         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
31142         of their DEBUG_EXPR_TREE_DECLs.
31143         (canonicalize_loc_order_check): Verify that cur_loc is NULL
31144         and in_changed_variables and cur_loc_changed is false.
31145         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
31146         and cur_loc_changed.  Don't update cur_loc here.
31147         (variable_merge_over_src): Don't call variable_canonicalize.
31148         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
31149         removing loc that is equal to cur_loc, clear cur_loc,
31150         set cur_loc_changed and ensure variable_was_changed is called.
31151         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
31152         compare pointers in cur_loc check, if it is equal to loc,
31153         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
31154         (variable_different_p): Remove compare_current_location argument,
31155         don't compare cur_loc.
31156         (dataflow_set_different_1): Adjust variable_different_p caller.
31157         (variable_was_changed): If dv had some var in changed_variables
31158         already, reset in_changed_variables flag for it and propagate
31159         cur_loc_changed over to the new variable.  On empty var
31160         always set cur_loc_changed.  Set in_changed_variables on whatever
31161         var is added to changed_variables.
31162         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
31163         Use shared_var_p.  When removing loc that is equal to cur_loc,
31164         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
31165         end, don't set it to something else, just call variable_was_changed.
31166         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
31167         loc being removed, clear cur_loc and set cur_loc_changed.
31168         Set cur_loc_changed if all locations have been removed.
31169         (struct expand_loc_callback_data): New type.
31170         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
31171         allocated.  Always create SUBREGs if simplify_subreg failed.
31172         Prefer to use cur_loc, when that fails and still in
31173         changed_variables (and seen first time) recompute it.  Set
31174         cur_loc_changed of variables which had to change cur_loc and
31175         compute elcd->cur_loc_changed if any of the subexpressions used
31176         had to change cur_loc.
31177         (vt_expand_loc): Adjust to pass arguments in
31178         expand_loc_callback_data structure.
31179         (vt_expand_loc_dummy): New function.
31180         (emitted_notes): New variable.
31181         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
31182         that weren't used for any other decl in current
31183         emit_notes_for_changes call call vt_expand_loc_dummy to update
31184         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
31185         first loc_chain location if NULL before.  Always use just
31186         cur_loc instead of first loc_chain location.  When cur_loc_changed
31187         is false, when not --enable-checking=rtl just don't emit any note.
31188         When rtl checking, compute the note and assert it is the same
31189         as previous note.  Clear cur_loc_changed and in_changed_variables
31190         at the end before removing from changed_variables.
31191         (check_changed_vars_3): New function.
31192         (emit_notes_for_changes): Traverse changed_vars to call
31193         check_changed_vars_3 on each changed var.
31194         (emit_notes_for_differences_1): Clear cur_loc_changed and
31195         in_changed_variables.  Recompute cur_loc of new_var.
31196         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
31197         (vt_emit_notes): Initialize and destroy emitted_notes.
31198
31199 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
31200
31201         PR rtl-optimization/42220
31202         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
31203         Use verify_reg_tracked to determine if we should use OP_OUT rather
31204         than OP_INOUT.
31205         (build_def_use): If we see an in-out operand for a register that we
31206         know nothing about, treat is an output if possible, fail the block if
31207         not.
31208
31209 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31210
31211         PR debug/42897
31212         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
31213         permanently.
31214
31215 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31216
31217         PR debug/42897
31218         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
31219         uses of relevant DEFs that are dead outside the loop too.
31220
31221 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
31222
31223         * var-tracking.c (dataflow_set_merge): Swap src and src2.
31224         Reverted:
31225         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
31226         PR debug/41371
31227         * var-tracking.c (values_to_unmark): New variable.
31228         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
31229         values_to_unmark vector.  Moved body to...
31230         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
31231         instead queue it into values_to_unmark vector.
31232         (vt_find_locations): Free values_to_unmark vector.
31233
31234 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
31235
31236         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
31237         (site.exp): Export them when plugins are enabled.
31238
31239 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
31240
31241         PR middle-end/42326
31242         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
31243         that contain scevs.
31244         (chrec_fold_multiply): Same.
31245
31246 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
31247
31248         PR c/43248
31249         * c-decl.c (build_compound_literal): Return early if init is
31250         an error_mark_node.
31251
31252 2010-03-04  Martin Jambor  <mjambor@suse.cz>
31253
31254         PR tree-optimization/43164
31255         PR tree-optimization/43191
31256         * tree-sra.c (type_consists_of_records_p): Reject records with
31257         zero-size bit-fields at the end.
31258
31259 2010-03-04  Mike Stump  <mikestump@comcast.net>
31260
31261         * Makefile.in (TAGS): Remove *.y.
31262
31263 2010-03-04  Richard Guenther  <rguenther@suse.de>
31264
31265         PR tree-optimization/40761
31266         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
31267         in reverse order.
31268         (my_rev_post_order_compute): New function.
31269         (init_pre): Call it.
31270
31271 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
31272
31273         PR middle-end/43209
31274         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
31275         decrease the cost of an IV candidate when the cost is infinite.
31276
31277 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31278
31279         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
31280         Use '3DNow!' for the extension of that name, ensure normal space
31281         after the string.
31282         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
31283
31284 2010-03-03  Jeff Law  <law@redhat.com>
31285
31286         * PR middle-end/32693
31287         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
31288         than gen_rtx_SUBREG.
31289         (extract_bit_field_1): Likewise.
31290
31291 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
31292
31293         * doc/sourcebuild.texi (Test directives): Document that arguments
31294         include-opts and exclude-opts are now optional for dg-skip-if,
31295         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
31296
31297 2010-03-03  Jason Merrill  <jason@redhat.com>
31298
31299         PR c++/12909
31300         * cgraph.h (varpool_node): Add extra_name field.
31301         * varpool.c (varpool_extra_name_alias): New.
31302         (varpool_assemble_decl): Emit extra name aliases.
31303         (varpool_mark_needed_node): Look past an extra name alias.
31304         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
31305         * lto-streamer-in.c (lto_input_tree): Read it.
31306         * lto-streamer-out.c (output_unreferenced_globals): Write it.
31307
31308 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
31309
31310         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
31311         (sparc*-*-solaris2*): ...this.
31312
31313 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
31314
31315         PR debug/43229
31316         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
31317         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
31318         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
31319         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
31320
31321         PR debug/43237
31322         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
31323         fallthrough to default handling, just with want_address 0 instead of 2.
31324         For single element lists, add_AT_loc directly, otherwise create an
31325         artificial variable DIE and stick location list to it.
31326
31327         PR debug/43177
31328         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
31329         (VAL_EXPR_HAS_REVERSE): Define.
31330         (reverse_op): New function.
31331         (add_stores): For reversible operations add an extra MO_VAL_USE.
31332
31333 2010-03-02  Jason Merrill  <jason@redhat.com>
31334
31335         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
31336
31337 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
31338
31339         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
31340         (sparc64-*-linux*): Likewise.
31341         (sparc64-*-solaris2*): Include assembler files before linker ones.
31342         (sparc-*-solaris2*): Simplify and reorder to match previous case.
31343         * config/sparc/gas.h: Delete.
31344         * config/sparc/sol2-64.h: Add copyright notice.
31345         * config/sparc/sol2-gas-bi.h: Likewise.
31346         * config/sparc/sol2-gld.h: Likewise.
31347         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
31348         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
31349         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
31350         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
31351         (sparc_elf_asm_named_section): Rename into...
31352         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
31353
31354 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
31355
31356         * config/alpha/alpha.c (override_options): Fix -mtune error message.
31357
31358 2010-03-02  Jeff Law  <law@redhat.com>
31359
31360         PR middle-end/42431
31361         * reload1.c (rtx_p, substitute_stack): Declare.
31362         (substitute): Record addresses of changed rtxs.
31363         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
31364         Restore the original rtx when complete.
31365         (reload): Free subsitute_stack when complete.
31366
31367 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
31368
31369         * doc/gccint.texi (menu): Add Testsuites as a chapter.
31370         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
31371         new chapter.
31372         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
31373         LTO Testing, gcov Testing, profopt Testing, compat Testing,
31374         Torture Tests): Change from subsection to section.
31375
31376 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
31377             Steven Bosscher  <steven@gcc.gnu.org>
31378
31379         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
31380         instead of bb.
31381
31382 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
31383
31384         PR middle-end/42640
31385         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
31386         the assignment from the new induction variable to the assignment
31387         of the value from the original loop PHI function.
31388
31389 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
31390             Daniel Jacobowitz  <dan@codesourcery.com>
31391
31392         * doc/sourcebuild.texi (Test directives): Clarify options to
31393         dg-skip-if.
31394
31395 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31396
31397         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
31398         Disable cfi directives unless GCC and gas agree on using read-only
31399         .eh_frame sections for 64-bit.
31400         * configure: Regenerate.
31401
31402 2010-03-01  Richard Guenther  <rguenther@suse.de>
31403
31404         PR tree-optimization/43220
31405         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
31406         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
31407
31408 2010-03-01  Richard Guenther  <rguenther@suse.de>
31409             Martin Jambor  <mjambor@suse.cz>
31410
31411         PR middle-end/41250
31412         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
31413         gimplified parameters.
31414
31415 2010-03-01  Christian Bruel  <christian.bruel@st.com>
31416
31417         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
31418
31419 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
31420
31421         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
31422
31423 2010-03-01  Richard Guenther  <rguenther@suse.de>
31424
31425         PR middle-end/43213
31426         * expr.c (expand_assignment): Use the alias-oracle to tell
31427         if the rhs aliases the result decl.
31428
31429 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31430
31431         PR pch/14940
31432         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
31433         to sol_gt_pch_get_address.
31434         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
31435         64-bit, SPARC and x86.
31436         (sol_gt_pch_get_address): New function.
31437
31438 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
31439
31440         * toplev.h (inform_n, error_n): Declare.
31441         * diagnostic.c (inform_n, error_n): New function.
31442
31443 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
31444
31445         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
31446         has no rtl yet when processing local_decls, queue it and recheck
31447         if deferred stack allocation hasn't assigned it rtl.
31448
31449 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
31450
31451         * config/sh/sh.c (unspec_bbr_uid): New.
31452         (gen_block_redirect): Use it instead of INSN_UID.
31453         (gen_far_branch): Likewise.
31454
31455 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
31456
31457         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
31458         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
31459
31460 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31461
31462         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
31463         (Warning Options): -Wno-conversion-null is valid for
31464         Objective-C++ as well.
31465         * doc/tm.texi (Named Address Spaces): Likewise.
31466         * doc/plugins.texi (Plugins): Replace TABs with spaces.
31467         * doc/tree-ssa.texi (Tree SSA): Likewise.
31468
31469 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31470
31471         PR bootstrap/43202
31472         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
31473         by default.  Don't set the default arch for
31474         i[34567]86-*-darwin*|x86_64-*-darwin*.
31475
31476 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31477
31478         PR bootstrap/43202
31479         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
31480         default.  Set the default 32bit/64bit archs with $with_arch
31481         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
31482
31483 2010-02-27  Richard Guenther  <rguenther@suse.de>
31484
31485         PR tree-optimization/43186
31486         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
31487         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
31488         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
31489         unroller iterations.
31490
31491 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31492
31493         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
31494         required and i[34567]86-*-* targets don't support 64bit ISA.
31495
31496 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
31497
31498         PR ada/43096
31499         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31500         the same alias set.
31501
31502 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
31503
31504         * config.gcc: Set the default arch at least to Prescott for
31505         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
31506         if SSE math is enabled.
31507
31508 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31509
31510         * diagnostic.c (diagnostic_initialize): Update.
31511         (diagnostic_report_diagnostic): Test inhibit_notes_p for
31512         informative notes.
31513         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
31514         (diagnostic_inhibit_notes): New.
31515         * toplev.c (process_options): inhibit notes with -fcompare-debug.
31516
31517 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31518
31519         PR c/20631
31520         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
31521         * doc/standards.texi: Likewise.
31522         * doc/extend.texi: Likewise.
31523         * doc/trouble.texi: Likewise.
31524         * doc/cppopts.texi: Likewise.
31525         * doc/install.texi: Likewise.
31526         * c.opt (std=c90,std=gnu90): New options.
31527         * c-opts.c (c_common_handle_option): Handle them.
31528
31529 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31530
31531         PR c/24577
31532         * c-decl.c (undeclared_variable): Use an informative note.
31533
31534 2010-02-26  Richard Guenther  <rguenther@suse.de>
31535
31536         PR tree-optimization/43186
31537         * gimple.h (gimple_fold): Remove.
31538         * gimple.c (gimple_fold): Remove.  Inline into single user ...
31539         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
31540         Try harder for conditions.
31541
31542 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
31543
31544         PR debug/43190
31545         * function.c (used_types_insert): Don't skip through named pointer
31546         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
31547         and it is different from the main variant's type.
31548
31549 2010-02-26  Nick Clifton  <nickc@redhat.com>
31550
31551         * config/rx/rx.md (sminsi3): Remove bogus alternative.
31552
31553 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
31554
31555         * config.gcc: Support --with-fpmath=sse for x86.
31556
31557         * config/i386/ssemath.h: New.
31558
31559         * doc/install.texi (--with-fpmath=sse): Documented.
31560
31561 2010-02-26  Richard Guenther  <rguenther@suse.de>
31562
31563         PR tree-optimization/43188
31564         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
31565         vector types of over-aligned element type.
31566
31567 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
31568
31569         PR target/43175
31570         * config/i386/i386.c (expand_vec_perm_blend): Use correct
31571         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
31572
31573 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
31574
31575         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
31576
31577 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
31578
31579         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
31580         * var-tracking.c: Include diagnostic.h.
31581         (debug_dv): New function.
31582         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
31583
31584         PR debug/43160
31585         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
31586         (add_value_chain, add_value_chains, remove_value_chain,
31587         remove_value_chains): Handle DEBUG_EXPRs.
31588         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
31589
31590         PR debug/43161
31591         * regcprop.c (struct queued_debug_insn_change): New type.
31592         (struct value_data_entry): Add debug_insn_changes field.
31593         (struct value_data): Add n_debug_insn_changes field.
31594         (debug_insn_changes_pool): New variable.
31595         (free_debug_insn_changes, apply_debug_insn_changes,
31596         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
31597         (kill_value_one_regno): Call free_debug_insn_changes if needed.
31598         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
31599         fields.
31600         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
31601         changes for them.
31602         (copyprop_hardreg_forward_1): Don't call apply_change_group for
31603         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
31604         changes, call cprop_find_used_regs via note_stores.
31605         (copyprop_hardreg_forward): When copying vd from predecessor
31606         which has any queued DEBUG_INSN changes, make sure the pointers are
31607         cleared.  At the end call df_analyze and then if there are any
31608         DEBUG_INSN changes queued at the end of some basic block for still
31609         live registers, apply them.
31610         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
31611
31612 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
31613
31614         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
31615         (arm*-*-*): Ditto.
31616
31617 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
31618
31619         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
31620         targets.  Set the default with_cpu/with_arch from arch/cpu.
31621         Allow x86-64 and native for with_cpu/with_arch.
31622
31623 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
31624
31625         * ebitmap.c: Change calls to verify_popcount with calls to
31626         sbitmap_verify_popcount.
31627         (ebitmap_clear_bit): Fixed map->cacheindex test and
31628         map>cache update when bit clearing results in an empty
31629         element.
31630
31631 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
31632
31633         PR target/43154
31634         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
31635         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
31636         and support both V2DF and V2DI modes.
31637         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
31638         support both V2DF and V2DI modes.
31639         (general): Delete trailing whitespace from a few patterns.
31640
31641         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31642         V2DF/V2DI interleave high/low builtins.
31643
31644         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
31645         new VSX builtins.
31646
31647         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
31648         interleave high/low functions.
31649
31650 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
31651
31652         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
31653         #pragma extern_prefix.
31654
31655 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
31656
31657         PR debug/43166
31658         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
31659         BLKmode, assert op0 is a MEM and just adjust its mode.
31660
31661         PR debug/43165
31662         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
31663         if bitpos isn't multiple of mode's bitsize.
31664
31665 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31666
31667         * c.opt (-ftemplate-depth=): New.
31668         (-ftemplate-depth-): Deprecate.
31669         * optc-gen.awk: Handle -ftemplate-depth=.
31670         * opth-gen.awk: Likewise.
31671         * c-opts.c (c_common_handle_option): Likewise.
31672         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
31673
31674 2010-02-24  Jason Merrill  <jason@redhat.com>
31675
31676         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
31677
31678 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31679
31680         * cfg.c (alloc_aux_for_block): Remove inline.
31681         (alloc_aux_for_edge): Likewise.
31682
31683 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31684
31685         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
31686
31687 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31688
31689         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
31690         * config/i386/sol2-gas.h: New file.
31691         * config.gcc (i[34567]86-*-solaris2*): Use it.
31692
31693 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31694
31695         PR c/43128
31696         * c-typeck.c (ep_convert_and_check): New.
31697         (build_conditional_expr): Use it.
31698         (build_binary_op): Likewise.
31699
31700 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
31701
31702         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
31703
31704         PR debug/43150
31705         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
31706         bounds even for -O+.
31707         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
31708         expr needs to have DECL_NAME set.
31709
31710 2010-02-24  Nick Clifton  <nickc@redhat.com>
31711
31712         * config/mep/mep.c: Include gimple.h.
31713         (mep_function_uses_sp): Delete unused function.
31714         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
31715         parameters.  Use unsigned integers to count args.  Return a
31716         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
31717
31718 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
31719
31720         PR target/43107
31721         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
31722         greater or equal to nelt instead of 2 * nelt.
31723         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
31724         with nelt - 1.
31725
31726 2010-02-23  Jason Merrill  <jason@redhat.com>
31727
31728         PR debug/42800
31729         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
31730         in cfun->local_decls even if they have register types.
31731
31732         PR c++/42837
31733         * stor-layout.c (place_field): Don't warn about unnecessary
31734         DECL_PACKED if the type is packed.
31735
31736 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
31737
31738         PR target/43139
31739         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
31740         GOTOFF relocs, even when the base reg isn't pic pointer.
31741
31742 2010-02-23  Michael Matz  <matz@suse.de>
31743
31744         PR debug/43077
31745         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
31746         (expand_gimple_basic_block): Generate and use debug temps if there
31747         are debug uses left after the last real use of TERed ssa names.
31748         Unlink debug immediate uses when they are expanded.
31749
31750 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31751
31752         PR 43123
31753         * config/i386/i386.c (override_options): Reorganise to provide
31754         better error messages.
31755
31756 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
31757
31758         PR middle-end/43083
31759         * graphite-scop-detection.c (create_single_exit_edge): Move
31760         the call to find_single_exit_edge to....
31761         (create_sese_edges): ...here.  Don't handle multiple edges
31762         exiting the function.
31763         (build_graphite_scops): Don't handle multiple edges
31764         exiting the function.
31765
31766 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
31767
31768         PR middle-end/43097
31769         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
31770         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
31771
31772 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
31773
31774         PR middle-end/43026
31775         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
31776
31777 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31778
31779         PR c++/43126
31780         * c-typeck.c (convert_arguments): Print declaration location.
31781         * c-common.c (validate_nargs): Rename as
31782         builtin_function_validate_nargs.
31783         (check_builtin_function_arguments): Update.
31784
31785 2010-02-22  Richard Guenther  <rguenther@suse.de>
31786
31787         PR lto/43045
31788         * tree-inline.c (declare_return_variable): Use the type of
31789         the call stmt lhs if available.
31790
31791 2010-02-22  Duncan Sands  <baldrick@free.fr>
31792
31793         * passes.c (register_pass): Always consider all pass lists when
31794         ref_pass_instance_number is zero.
31795
31796 2010-02-22  Richard Guenther  <rguenther@suse.de>
31797
31798         PR tree-optimization/42749
31799         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
31800         parameter.  Do arithmetic in the original type.
31801         (update_accumulator_with_ops): Likewise.
31802         (adjust_accumulator_values): Adjust.
31803
31804 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31805
31806         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
31807         (QI to BLKmode splitter): New splitter.
31808
31809 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
31810
31811         * config/i386/i386.c (initial_ix86_tune_features): Turn on
31812         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
31813
31814 2010-02-22  Richard Guenther  <rguenther@suse.de>
31815
31816         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
31817
31818 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
31819
31820         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
31821         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
31822         ($(T)crti.o, $(T)crtn.o): Remove rules.
31823
31824 2010-02-21  Tobias Burnus  <burnus@net-b.de>
31825
31826         PR fortran/35259
31827         * doc/invoke.texi (-fassociative-math): Document that this
31828         option is automatically enabled for Fortran.
31829
31830 2010-02-20  David S. Miller  <davem@davemloft.net>
31831
31832         * configure.ac: Test if linker and assembler properly support
31833         GOTDATA_OP relocations.
31834         * configure: Rebuild.
31835         * config.in: Likewise.
31836         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
31837         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
31838         (movsi_high_pic): Likewise.
31839         (movdi_lo_sum_pic): Likewise.
31840         (movdi_high_pic): Likewise.
31841         (movsi_pic_gotdata_op): New pattern.
31842         (movdi_pic_gotdata_op): Likewise.
31843         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
31844         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
31845
31846 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
31847
31848         PR target/43067
31849         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
31850         attribute to ssemul.
31851         (xop_mulv2div2di3_high): Ditto.
31852
31853 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31854
31855         PR c++/35669
31856         * c.opt (Wconversion-null): New option.
31857         * doc/invoke.texi (Wconversion-null): Document.
31858
31859 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31860
31861         * common.opt (Wlarger-than-): Add Undocumented.
31862
31863 2010-02-19  Mike Stump  <mikestump@comcast.net>
31864
31865         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
31866
31867 2010-02-19  Jason Merrill  <jason@redhat.com>
31868
31869         PR target/40332
31870         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
31871         * configure: Likewise.
31872
31873 2010-02-20  Alan Modra  <amodra@gmail.com>
31874
31875         PR middle-end/42344
31876         * cgraph.h (cgraph_make_decl_local): Declare.
31877         * cgraph.c (cgraph_make_decl_local): New function.
31878         (cgraph_make_node_local): Use it.
31879         * cgraphunit.c (cgraph_function_versioning): Likewise.
31880         * ipa.c (function_and_variable_visibility): Likewise.
31881
31882 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
31883
31884         PR bootstrap/43121
31885         * except.c (sjlj_emit_function_enter): Don't call
31886         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
31887         directly.
31888         * rtl.h (add_reg_br_prob_note): Remove prototype.
31889
31890 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
31891
31892         PR 41779
31893         * c-common.c (conversion_warning): Remove widening conversions
31894         before checking the conversion of integers to reals.
31895
31896 2010-02-19  Mike Stump  <mikestump@comcast.net>
31897
31898         PR middle-end/43125
31899         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
31900
31901         PR objc/43061
31902         * cgraphunit.c (process_function_and_variable_attributes): Check
31903         DECL_PRESERVE_P instead of looking up attribute "used".
31904         * ipa-pure-const.c (check_decl): Likewise.
31905         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
31906         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
31907         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
31908         instead of attribute "used".
31909         * config/sol2-c.c (solaris_pragma_init): Likewise.
31910         (solaris_pragma_fini): Likewise.
31911
31912 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
31913
31914         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
31915         Use XCNEW instead of xcalloc.
31916         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
31917         XNEW instead of xmalloc.
31918         (get_fields): Use XNEWVEC instead of xmalloc.
31919
31920         PR debug/43084
31921         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
31922         populate vars array.
31923         (create_new_general_access): For debug stmts just reset value.
31924         (get_stmt_accesses): For accesses within debug stmts just record them
31925         using add_access_to_acc_sites instead of preventing the peeling or
31926         counting them as accesses.
31927
31928         PR middle-end/42233
31929         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
31930
31931 2010-02-19  Richard Guenther  <rguenther@suse.de>
31932
31933         PR tree-optimization/42916
31934         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
31935         instructions.
31936
31937 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
31938
31939         * configure.ac: Replace all uses of changequote in macro arguments
31940         with proper quoting.
31941
31942 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
31943
31944         PR middle-end/42233
31945         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
31946
31947 2010-02-19  Richard Guenther  <rguenther@suse.de>
31948
31949         PR tree-optimization/42944
31950         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
31951         test for aliasing with errno.
31952
31953 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
31954
31955         PR middle-end/42233
31956         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
31957         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
31958         * dojump.c: Include output.h.
31959         (inv): New inline function.
31960         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
31961         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
31962         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
31963         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
31964         argument, pass it down to other calls.
31965         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
31966         add REG_BR_PROB note to the conditional jump.
31967         * cfgexpand.c (add_reg_br_prob_note): Removed.
31968         (expand_gimple_cond): Don't call it, add the probability
31969         as last argument to jumpif_1/jumpifnot_1.
31970         * Makefile.in (dojump.o): Depend on output.h.
31971         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
31972         callers.
31973         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
31974         * stmt.c (do_jump_if_equal): Likewise.
31975         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
31976         * loop-unswitch.c (compare_and_jump_seq): Likewise.
31977         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
31978         Likewise.
31979         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
31980         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
31981         jumpifnot_1 callers.
31982         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
31983         callers.
31984         (store_expr): Adjust jumpifnot caller.
31985         (store_constructor): Adjust jumpif caller.
31986
31987         PR middle-end/42233
31988         * gimplify.c (gimple_boolify): For __builtin_expect call
31989         gimple_boolify also on its first argument.
31990
31991 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
31992
31993         * configure.ac (gnu-unique-object): Wrap regexps using [] in
31994         changequote block.
31995         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
31996         * configure: Regenerated.
31997
31998 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31999
32000         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
32001         lang_hooks.types_compatible_p instead of comptypes.
32002
32003 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
32004
32005         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
32006         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
32007         if __prefer_thumb__ is defined.
32008
32009 2010-02-18  Martin Jambor  <mjambor@suse.cz>
32010
32011         PR tree-optimization/43066
32012         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
32013         array with zero-sized element type.
32014
32015 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
32016
32017         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
32018         rtx, allocate struct var_loc_node here and return it to the
32019         caller, and only if it is actually needed.
32020         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
32021         move it earlier and return immediately if it returns NULL.
32022
32023 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
32024
32025         * config/sparc/gas.h: New file.  Restore
32026         TARGET_ASM_NAMED_SECTION to its ELF default.
32027         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
32028         check !HAVE_GNU_AS.
32029         * config/sparc/sparc.c (sparc_elf_asm_named_section):
32030         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
32031         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
32032         after sparc/sysv4.h.
32033
32034 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
32035
32036         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
32037
32038 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
32039
32040         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
32041         patterns from predicated pattern.
32042
32043 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
32044
32045         PR target/43103
32046         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
32047         for insn mnemonic suffix.
32048
32049 2010-02-17  Richard Guenther  <rguenther@suse.de>
32050
32051         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
32052         to loop PHI nodes.
32053
32054 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
32055
32056         PR debug/42918
32057         * caller-save.c (save_call_clobbered_regs): If BB ends with
32058         a DEBUG_INSN, move any notes in between last real insn and the last
32059         DEBUG_INSN after the last DEBUG_INSN.
32060
32061 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
32062
32063         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
32064         Fix return type.  Fix argument type.  Explain meaning of return value.
32065
32066 2010-02-16  Richard Guenther  <rguenther@suse.de>
32067
32068         PR tree-optimization/41043
32069         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
32070         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
32071         statements ...
32072         (vrp_visit_phi_node): ... but only for loop PHI nodes.
32073
32074 2010-02-16  Ira Rosen  <irar@il.ibm.com>
32075
32076         PR tree-optimization/43074
32077         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
32078         * tree-vect-loop.c (vect_analyze_loop_operations): Add
32079         vectorizable cycles in hybrid SLP check.
32080         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
32081
32082 2010-02-16  Richard Guenther  <rguenther@suse.de>
32083
32084         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
32085         (true_dependence): If memrefs_conflict_p computes must-alias
32086         trust it.  Move TBAA check after offset-based disambiguation.
32087         (canon_true_dependence): Likewise.
32088
32089 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
32090
32091         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
32092         * doc/invoke.texi: Document it.
32093         * var-tracking.c: Include toplev.h and params.h.
32094         (vt_find_locations): Return bool indicating success.  Compute
32095         hash sizes unconditionally.  Check new parameter, report.
32096         (variable_tracking_main_1): Check vt_find_locations results and
32097         retry.  Renamed from...
32098         (variable_tracking_main): ... this.  New wrapper to preserve
32099         flag_var_tracking_assignments.
32100         * Makefile.in (var-tracking.o): Adjust dependencies.
32101
32102 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
32103             Jakub Jelinek  <jakub@redhat.com>
32104
32105         PR target/42854
32106         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
32107         if weak_import attribute is present.
32108         * config/darwin.c (machopic_select_section): Likewise.
32109
32110 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
32111
32112         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
32113         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
32114         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
32115         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
32116
32117         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
32118         types.
32119
32120         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
32121         Fix argument types.
32122
32123         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
32124         Rewrite text to refer to the names.
32125
32126 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
32127
32128         * config/i386/i386-builtin-types.def
32129         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
32130         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
32131         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
32132         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
32133         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
32134         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
32135         IX86_BUILTIN_VPERMIL2PS256.
32136         (MULTI_ARG_4_DF2_DI_I): Defined.
32137         (MULTI_ARG_4_DF2_DI_I1): Defined.
32138         (MULTI_ARG_4_SF2_SI_I): Defined.
32139         (MULTI_ARG_4_SF2_SI_I1): Defined.
32140         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
32141         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
32142         __builtin_ia32_vpermil2ps256.
32143         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
32144         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
32145         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
32146         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
32147         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
32148         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
32149         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
32150         CODE_FOR_xop_vpermil2v8sf3.
32151         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
32152         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
32153         * config/i386/xopintrin.h (_mm_permute2_pd): New.
32154         (_mm256_permute2_pd): New.
32155         (_mm_permute2_ps): New.
32156         (_mm256_permute2_ps): New.
32157
32158 2010-02-15  Nick Clifton  <nickc@redhat.com>
32159
32160         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
32161         boolean parameters.  Use emit_jump_insn when emitting a pop
32162         instruction containing a return insn.
32163         (push): Use 'true' rather than '1' as second parameter to F.
32164         (h8300_expand_prologue): Likewise.
32165         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
32166         (h8300_expand_epilogue): Likewise.
32167
32168 2010-02-15  Richard Guenther  <rguenther@suse.de>
32169
32170         PR middle-end/43068
32171         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
32172         if that is zero.
32173
32174 2010-02-15  Nick Clifton  <nickc@redhat.com>
32175
32176         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
32177         delta.
32178
32179 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
32180
32181         * intl.c (fake_ngettext): New function.
32182         * intl.h (fake_ngettext): Declare.
32183         (ngettext): Define macro.
32184         * collect2.c (notice_translated): New function.
32185         (main): Use notice_translated and ngettext.
32186         * collect2.h (notice_translated): Declare.
32187
32188 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
32189
32190         * reorg.c (delete_computation): Comment fixes.
32191         * caller-save.c (setup_save_areas): Idem.
32192         * sel-sched-dump.c (dump_lv_set): Idem.
32193         * rtl.def: Idem.
32194
32195 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32196
32197         * config/s390/s390.c (s390_sched_init): New function.
32198         (TARGET_SCHED_INIT): Target hook defined.
32199
32200 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
32201             Jack Howarth  <howarth@bromo.med.uc.edu>
32202             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
32203
32204         PR target/42982
32205         Partial revert of unintended change in fix for PR41605.
32206         * config/darwin.h: Fix typo.
32207         * config/darwin9.h: Same.
32208
32209 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
32210
32211         * c-pch.c (pch_init): Clear v.
32212
32213 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32214
32215         PR middle-end/42930
32216         * graphite-scop-detection.c (graphite_can_represent_scev): Call
32217         graphite_can_represent_init for MULT_EXPR.
32218
32219 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32220
32221         PR middle-end/42914
32222         PR middle-end/42530
32223         * graphite-sese-to-poly.c (remove_phi): New.
32224         (translate_scalar_reduction_to_array): Call remove_phi.
32225
32226 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32227
32228         PR middle-end/42771
32229         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
32230         * graphite-clast-to-gimple.h (gloog): Update declaration.
32231         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
32232         * graphite-poly.h (struct poly_bb): Add missing comments.
32233         (struct scop): Add poly_scop_p field.
32234         (POLY_SCOP_P): New.
32235         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
32236         * graphite.c (graphite_transform_loops): Build the polyhedral
32237         representation for each scop before code generation.
32238         * sese.c (rename_variables_in_operand): Removed.
32239         (rename_variables_in_expr): Return the renamed expression.
32240         (rename_sese_parameters): New.
32241         * sese.h (rename_sese_parameters): Declared.
32242
32243 2010-02-11  Richard Guenther  <rguenther@suse.de>
32244
32245         PR tree-optimization/42998
32246         * tree-ssa-pre.c (create_expression_by_pieces): Treat
32247         POINTER_PLUS_EXPR properly.
32248
32249 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
32250             Changpeng Fang  <changpeng.fang@amd.com>
32251
32252         PR middle-end/40886
32253         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
32254         the cost of an IV candidate when the IV is used in a test against zero.
32255
32256         * gcc.dg/tree-ssa/ivopts-3.c: New.
32257
32258 2010-02-11  Richard Guenther  <rguenther@suse.de>
32259
32260         PR lto/41664
32261         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
32262         pointer-vs-decl case by swapping refs.  Handle some cases
32263         of pointer-vs-decl disambiguations more conservatively.
32264         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
32265         to false after expanding.
32266
32267 2010-02-11  Richard Guenther  <rguenther@suse.de>
32268
32269         PR driver/43021
32270         * gcc.c (process_command): Handle LTO file@offset case more
32271         appropriately.
32272
32273 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
32274
32275         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
32276         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
32277         of DEBUG_INSNs.
32278         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
32279
32280         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
32281         if MEM's mode size isn't DWARF2_ADDR_SIZE.
32282         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
32283         Optimize eq/ne comparisons when both arguments are known to be
32284         zero-extended.
32285         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
32286         Don't mask operands unnecessarily if they are known to be already
32287         zero-extended.
32288
32289 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
32290
32291         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
32292         instead of loop.
32293
32294 2010-02-10  Richard Guenther  <rguenther@suse.de>
32295
32296         PR tree-optimization/43017
32297         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
32298         for wrapping signed arithmetic.
32299
32300 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
32301
32302         PR debug/43010
32303         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
32304         if no debug info should be emitted for it.
32305
32306 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
32307
32308         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
32309         note when flag_exceptions is set.
32310
32311 2010-02-10  Duncan Sands  <baldrick@free.fr>
32312
32313         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
32314
32315 2010-02-10  Richard Guenther  <rguenther@suse.de>
32316
32317         PR c/43007
32318         * tree.c (get_unwidened): Handle constants.
32319         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
32320
32321 2010-02-10  Martin Jambor  <mjambor@suse.cz>
32322
32323         PR lto/42985
32324         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
32325         check for variable argument counts independently.
32326
32327 2010-02-10  Christian Bruel  <christian.bruel@st.com>
32328
32329         PR target/42841
32330         * config/sh/sh.c (find_barrier): Increase length for non delayed
32331         conditional branches.
32332
32333 2010-02-10  Christian Bruel  <christian.bruel@st.com>
32334
32335         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
32336
32337 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
32338
32339         * builtins.c (set_builtin_user_assembler_name): Also handle
32340         ffs if int is smaller than word.
32341
32342 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
32343
32344         PR middle-end/42973
32345         * ira-conflicts.c (get_dup): Remove.
32346         (process_reg_shuffles): Add new parameter.  Use it as an
32347         additional guard for copy generation.
32348         (add_insn_allocno_copies): Rewrite.
32349
32350 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
32351
32352         * common.opt (fsched2-use-traces): Preserved for backward
32353         compatibility.
32354         * doc/invoke.texi: Remove the documentation about option
32355         -fsched2-use-traces.
32356         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
32357         flag_sched2_use_traces.
32358         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
32359         the backward compatibility flag section.
32360
32361 2010-02-09  Richard Guenther  <rguenther@suse.de>
32362
32363         PR tree-optimization/43008
32364         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
32365         make HEAP variables initialized from global memory if they
32366         are not known builtin functions.
32367         (find_func_aliases): Adjust.
32368
32369 2010-02-09  Richard Guenther  <rguenther@suse.de>
32370
32371         PR tree-optimization/43000
32372         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
32373         arithmetic manually.
32374
32375 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
32376
32377         PR tree-optimization/42931
32378         * tree-loop-linear.c (try_interchange_loops): Don't call
32379         double_int_mul if estimated_loop_iterations failed.
32380
32381 2010-02-08  Martin Jambor  <mjambor@suse.cz>
32382
32383         PR middle-end/42898
32384         * tree-sra.c (build_accesses_from_assign): Do not mark in
32385         should_scalarize_away_bitmap if stmt has volatile ops.
32386         (sra_modify_assign): Do not process assigns piecemeal if if stmt
32387         has volatile ops.
32388
32389 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
32390
32391         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
32392
32393 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
32394
32395         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
32396         before the pattern.
32397
32398 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
32399
32400         PR middle-end/42946
32401         * df-core.c (df_finish_pass): Change type of saved_flags to int.
32402
32403 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
32404
32405         PR middle-end/42988
32406         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
32407         to unknown_dependence.
32408         (graphite_legal_transform_dr): Handle the unknown_dependence.
32409         (graphite_carried_dependence_level_k): Same.
32410
32411 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
32412
32413         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
32414
32415 2010-02-07  Richard Guenther  <rguenther@suse.de>
32416
32417         PR middle-end/42991
32418         * expr.c (get_inner_reference): Always initialize *pbitsize.
32419
32420 2010-02-07  Richard Guenther  <rguenther@suse.de>
32421
32422         PR middle-end/42956
32423         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
32424         new ARRAY_REFs on variable size element or minimal index arrays.
32425         Complete.
32426         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
32427         gimple_fold_indirect_ref.
32428
32429 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
32430
32431         PR target/42957
32432         * arm.c (arm_override_options): Just return if the user has specified
32433         an invalid fpu name.
32434
32435 2010-02-03  Jason Merrill  <jason@redhat.com>
32436
32437         PR c++/42870
32438         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
32439         i386_pe_maybe_record_exported_symbol.
32440
32441 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
32442
32443         PR target/42924
32444         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32445         (pa_delegitimize_address): New function.
32446
32447 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
32448
32449         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
32450         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
32451
32452 2010-02-05  Richard Guenther  <rguenther@suse.de>
32453
32454         PR lto/42762
32455         * lto-streamer-in.c (get_resolution): Deal with references
32456         to undefined functions.
32457
32458 2010-02-05  Richard Guenther  <rguenther@suse.de>
32459
32460         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
32461         (fold_const_aggregate_ref): Likewise.
32462         (ccp_fold_stmt): Substitute loads.
32463         (maybe_fold_reference): Verify types before substituting.
32464         Unshare properly.
32465         (fold_gimple_assign): Unshare properly.
32466         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
32467
32468 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
32469
32470         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
32471         for rs6000_gen_cell_microcode.
32472
32473 2010-02-04  Richard Guenther  <rguenther@suse.de>
32474
32475         PR rtl-optimization/42952
32476         * dse.c (const_or_frame_p): Remove MEM handling.
32477
32478 2010-02-04  Nick Clifton  <nickc@redhat.com>
32479
32480         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
32481         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
32482         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
32483         (mn10300_asm_output_mi_thunk): New function.
32484         (mn10300_can_output_mu_thunk): New function.
32485         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
32486         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
32487         (FUNCTION_ARG): Delete incorrect comment.
32488
32489 2010-02-03  Jason Merrill  <jason@redhat.com>
32490
32491         PR c++/40138
32492         * fold-const.c (operand_equal_p): Handle erroneous types.
32493
32494 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
32495
32496         * config/h8300/h8300.md (can_delay): Fix attibute condition.
32497
32498 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
32499
32500         PR rtl-optimization/42941
32501         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
32502         of xmalloc.
32503
32504 2010-02-03  Jason Merrill  <jason@redhat.com>
32505
32506         PR c++/35652
32507         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
32508
32509 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
32510
32511         PR debug/42896
32512         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
32513         (cselib_reset_table): Renamed from...
32514         (cselib_reset_table_with_next_value): ... this.
32515         (cselib_get_next_uid): Renamed from...
32516         (cselib_get_next_unknown_value): ... this.
32517         * cselib.c (next_uid): Renamed from...
32518         (next_unknown_value): ... this.
32519         (cselib_clear_table): Adjust.
32520         (cselib_reset_table): Adjust.  Renamed from...
32521         (cselib_reset_table_with_next_value): ... this.
32522         (cselib_get_next_uid): Adjust.  Renamed from...
32523         (cselib_get_next_unknown_value): ... this.
32524         (get_value_hash): Use hash.
32525         (cselib_hash_rtx): Likewise.
32526         (new_cselib_val): Adjust.  Set and dump uid.
32527         (cselib_lookup_mem): Pass next_uid as hash.
32528         (cselib_subst_to_values): Likewise.
32529         (cselib_log_lookup): Dump uid.
32530         (cselib_lookup): Pass next_uid as hash.  Adjust.
32531         (cselib_process_insn): Adjust.
32532         (cselib_init): Initialize next_uid.
32533         (cselib_finish): Adjust.
32534         (dump_cselib_table): Likewise.
32535         * dse.c (canon_address): Dump value uid.
32536         * print-rtl.c (print_rtx): Print value uid.
32537         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
32538         (dvuid): New type.
32539         (dv_uid): New function, sort of renamed from...
32540         (dv_htab_hash): ... this, reimplemented in terms of it and...
32541         (dv_uid2hash): ... this.  New.
32542         (variable_htab_eq): Drop excess assertions.
32543         (tie_break_pointers): Removed.
32544         (canon_value_cmp): Compare uids.
32545         (variable_post_merge_New_vals): Print uids.
32546         (vt_add_function_parameters): Adjust.
32547         (vt_initialize): Reset table.  Adjust.
32548
32549 2010-02-03  Richard Guenther  <rguenther@suse.de>
32550
32551         PR tree-optimization/42944
32552         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
32553         (call_may_clobber_ref_p_1): Likewise.  Properly handle
32554         malloc and calloc clobbering errno.
32555
32556 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
32557
32558         * doc/invoke.texi: Fix name of sched1 dump.
32559
32560         * opts.c (decode_options): Set flag_tree_switch_conversion
32561         only conditionally on optimize >= 2.
32562
32563         * gcse.c: Assorted comment fixes in pass description.
32564
32565 2010-02-03  Anthony Green  <green@moxielogic.com>
32566
32567         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
32568         nop padding in order to maintain alignment of storage location of
32569         target function address.
32570         (moxie_trampoline_init): Store target function address at newly
32571         aligned location.
32572         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
32573         to 32.
32574         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
32575
32576 2010-02-03  Richard Guenther  <rguenther@suse.de>
32577
32578         PR middle-end/42927
32579         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
32580
32581 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32582
32583         * config.gcc: Reenable check for obsolete targets.
32584         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
32585         mips-sgi-irix6.[0-4]*.
32586
32587 2010-02-02  Nick Clifton  <nickc@redhat.com>
32588
32589         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
32590         constant size of 4 as being the same as 0.
32591         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
32592         can take values in the range 0..4.
32593
32594 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
32595
32596         PR java/41991
32597         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
32598         as _darwin10_Unwind_FindEnclosingFunction().
32599         * libgcc-libsystem.ver: New.
32600
32601 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
32602
32603         PR target/41399
32604         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
32605         implicitly set registers.
32606
32607 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
32608
32609         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
32610         (arm_override_options): Allow automatic selection of the thread
32611         pointer register if thumb2.
32612         (legitimize_pic_address): Improve code sequences for Thumb2.
32613         (arm_call_tls_get_addr): Likewise.
32614         (legitimize_tls_address): Likewise.
32615         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
32616         (pic_load_addr_32bit): ... this.  New named pattern.
32617         * thumb2.md (pic_load_addr_thumb2): Delete.
32618         (pic_load_dot_plus_four): Delete.
32619         (tls_load_dot_plus_four): New named pattern.
32620
32621 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32622
32623         PR libgomp/29986
32624         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
32625         Document fix for TLS bug.
32626
32627 2010-01-31  Richard Guenther  <rguenther@suse.de>
32628
32629         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
32630         conservatively correct.
32631
32632 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32633
32634         PR target/42850
32635         Revert:
32636         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32637
32638         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
32639
32640 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
32641
32642         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
32643
32644 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
32645
32646         * config.gcc: Adjust order of makefile fragments for mingw targets.
32647
32648 2010-01-31  Richard Guenther  <rguenther@suse.de>
32649
32650         PR middle-end/42898
32651         * gimplify.c (gimplify_init_constructor): For volatile LHS
32652         initialize a temporary.
32653
32654 2010-01-31  Matthias Klose  <doko@ubuntu.com>
32655
32656         * configure.ac: Fix __stack_chk_fail check for cross builds configured
32657         --with-headers
32658         * configure: Regenerate.
32659
32660 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
32661
32662         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
32663         the same alias set and their sizes different constantness.
32664         (aliasing_component_refs_p): Revert 2009-10-24 change.
32665
32666 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32667
32668         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
32669         unused.
32670
32671 2010-01-29  Richard Guenther  <rguenther@suse.de>
32672
32673         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
32674         Assert we successfully updated the call.
32675
32676 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
32677
32678         PR rtl-optimization/42889
32679         * df.h (df_set_bb_dirty_nonlr): New prototype.
32680         * df-core.c (df_set_bb_dirty_nonlr): New function.
32681         * df-scan.c (df_insn_rescan): Call it instead of
32682         df_set_bb_dirty for DEBUG_INSNs.
32683
32684 2010-01-29  Richard Guenther  <rguenther@suse.de>
32685
32686         PR middle-end/37448
32687         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
32688         quadratic behavior in most cases.
32689
32690 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
32691
32692         PR target/42891
32693         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
32694         in the call to gen_x86_movsicc_0_m1.
32695
32696 2010-01-28  Richard Guenther  <rguenther@suse.de>
32697
32698         PR tree-optimization/42871
32699         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
32700
32701 2010-01-28  Richard Guenther  <rguenther@suse.de>
32702
32703         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
32704         into call arguments.
32705
32706 2010-01-28  Richard Guenther  <rguenther@suse.de>
32707
32708         PR middle-end/42883
32709         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
32710         the forwarder if the destination is an EH landing pad.
32711
32712 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
32713
32714         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
32715         block list passed to gimple_duplicate_sese_tail.
32716         (parallelize_loops): Avoid parallelization when the function
32717         has_nonlocal_label.
32718         Avoid parallelization when the preheader is IRREDUCIBLE.
32719         Try to optimize when estimated_loop_iterations_int is unresolved.
32720         Add the loop's location to the dump file.
32721         * tree-cfg.c (add_phi_args_after_redirect): Remove.
32722         (gimple_duplicate_sese_tail): Remove the check for the latch.
32723         Redirect nexits to the exit block.
32724         Remove handling of the incoming edges to the latch.
32725         Redirect the backedge from the copied latch to the exit bb.
32726
32727 2010-01-28  Michael Matz  <matz@suse.de>
32728
32729         PR target/42881
32730         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
32731         Wrap force_reg into a sequence, emit it before user.
32732
32733 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
32734
32735         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
32736         (arm_rev): New.
32737         (arm_legacy_rev): Likewise.
32738         (thumb_legacy_rev): Likewise.
32739
32740 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
32741
32742         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
32743         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
32744         on MEM's address failed, try avoid_constant_pool_reference and
32745         recurse if it returned something different.
32746         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
32747         address, try avoid_constant_pool_reference and recurse if it
32748         returned something different.
32749         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
32750         address and avoid_constant_pool_reference returned something
32751         different, don't set have_address.
32752
32753 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
32754
32755         PR debug/42861
32756         * var-tracking.c (val_store): Add modified argument, obey it.
32757         Adjust callers.
32758         (count_uses): Move down logging of main.
32759         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
32760         don't need resolution.
32761         (emit_notes_in_bb): Likewise.
32762
32763 2010-01-27  Richard Guenther  <rguenther@suse.de>
32764
32765         PR middle-end/42878
32766         * tree-inline.c (remap_decl): Delay remapping of SSA name
32767         default definitions until we need them.
32768
32769 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
32770
32771         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32772         (rs6000_delegitimize_address): New function.
32773
32774         * config/s390/s390.c (s390_delegitimize_address): Call
32775         delegitimize_mem_from_attrs.
32776
32777         PR middle-end/42874
32778         * tree-inline.c (cannot_copy_type_1): Removed.
32779         (copy_forbidden): Don't forbid copying of functions containing
32780         records/unions with variable length fields.
32781
32782 2010-01-27  Christian Bruel  <christian.bruel@st.com>
32783
32784         Revert:
32785         PR target/42841
32786         * config/sh/sh.c (find_barrier): Increase length for non delayed
32787         conditional branches.
32788
32789 2010-01-27  Matthias Klose  <doko@ubuntu.com>
32790
32791         * configure.ac (gnu-unique-object): Fix ldd version check.
32792         * configure: Regenerate.
32793
32794 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32795
32796         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
32797         HAVE_GNU_AS value.
32798         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
32799         Test for HAVE_GNU_AS value.
32800
32801 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
32802
32803         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
32804         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
32805         INT64_TYPE): Define.
32806         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
32807         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
32808         INT_LEAST64_TYPE): Define.
32809         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
32810         UINT_LEAST64_TYPE): Define.
32811         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
32812         INT_FAST64_TYPE): Define.
32813         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
32814         UINT_FAST64_TYPE): Define.
32815         (INTMAX_TYPE, UINTMAX_TYPE): Define.
32816         (INTPTR_TYPE, UINTPTR_TYPE): Define.
32817         (SIG_ATOMIC_TYPE): Define.
32818
32819 2010-01-26  Richard Guenther  <rguenther@suse.de>
32820
32821         * df-scan.c (df_scan_set_bb_info): Remove assert.
32822         (df_insn_rescan_debug_internal): Merge asserts.
32823         (df_install_ref): Likewise.
32824         (df_mark_reg): Use bitmap_set_range.
32825         (df_hard_reg_used_p): Remove assert.
32826         (df_hard_reg_used_count): Likewise.
32827
32828 2010-01-26  Richard Guenther  <rguenther@suse.de>
32829
32830         PR rtl-optimization/42685
32831         * web.c (web_main): Ignore DEBUG_INSNs.
32832
32833 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
32834
32835         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
32836
32837         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
32838         Fix types of fndecl and arglist parameters.
32839
32840 2010-01-26  Richard Guenther  <rguenther@suse.de>
32841
32842         PR middle-end/42806
32843         * tree-eh.c (unsplit_eh): Skip debug insns.
32844
32845 2010-01-26  Richard Guenther  <rguenther@suse.de>
32846
32847         PR tree-optimization/42250
32848         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
32849
32850 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
32851
32852         PR fortran/42866
32853         * omp-low.c (expand_omp_sections): Only use single_pred if
32854         l2_bb is single_pred_p.
32855
32856 2010-01-25  Christian Bruel  <christian.bruel@st.com>
32857
32858         PR target/42841
32859         * config/sh/sh.c (find_barrier): Increase length for non delayed
32860         conditional branches.
32861         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
32862
32863 2010-01-24  David S. Miller  <davem@davemloft.net>
32864
32865         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
32866         define if not using GAS.
32867         * config/sparc/sparc.c (sparc_elf_asm_named_section):
32868         Likewise.  Delete SECTION_MERGE code, which is only applicable
32869         when using GAS.
32870
32871 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
32872
32873         PR c++/42748
32874         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
32875         mangling of va_list in system headers.
32876
32877 2010-01-23  Toon Moene  <toon@moene.org>
32878
32879         * tree-predcom.c (combine_chains): Return NULL, not false.
32880
32881 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
32882
32883         * tree-loop-distribution.c (distribute_loop): Fix declaration and
32884         initialization of variable res to agree with return type.
32885
32886 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
32887
32888         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
32889         * tree-sra.c: Add include of expr.h.
32890
32891 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
32892
32893         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
32894         insert the debug stmt on the single non-EH edge from the stmt.
32895
32896 2010-01-22  Richard Henderson  <rth@redhat.com>
32897
32898         PR tree-opt/42833
32899         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
32900         the RHS until after generate_subtree_copies has insertted its
32901         code before the current statement.
32902
32903 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
32904
32905         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
32906
32907         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
32908
32909 2010-01-21  Martin Jambor  <mjambor@suse.cz>
32910
32911         PR tree-optimization/42585
32912         * tree-sra.c (struct access): New field grp_total_scalarization.
32913         (dump_access): Dump the new field.
32914         (should_scalarize_away_bitmap): New variable.
32915         (cannot_scalarize_away_bitmap): Likewise.
32916         (sra_initialize): Allocate new bitmaps.
32917         (sra_deinitialize): Free new bitmaps.
32918         (create_access_1): New function.
32919         (create_access): Parts moved to create_access_1.
32920         (type_consists_of_records_p): New function.
32921         (completely_scalarize_record): Likewise.
32922         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
32923         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
32924         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
32925         access.
32926         (analyze_all_variable_accesses): Completely scalarize small eligible
32927         records.
32928
32929 2010-01-21  Martin Jambor  <mjambor@suse.cz>
32930
32931         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
32932
32933 2010-01-21  Andrew Haley  <aph@redhat.com>
32934
32935         * gcc.c (process_command): Move lang_specific_driver before
32936         setting cc_libexec_prefix.
32937
32938 2010-01-21  Richard Guenther  <rguenther@suse.de>
32939
32940         PR middle-end/19988
32941         * fold-const.c (negate_expr_p): Pretend only negative
32942         real constants are easily negatable.
32943
32944 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
32945             Jason Merrill  <jason@redhat.com>
32946
32947         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
32948         (TYPE_TRANSPARENT_AGGR): this, for union and record.
32949         * calls.c (initialize argument_information): Handle it.
32950         * c-common.c (handle_transparent_union_attribute): Use new name.
32951         * c-decl.c (finish_struct): Ditto.
32952         * c-typeck.c (type_lists_compatible_p): Ditto.
32953         (convert_for_assignment): Use new name and also handle record.
32954         * function.c (aggregate_value_p): Handle it.
32955         (pass_by_reference): Ditto.
32956         (assign_parm_data_types): Ditto.
32957         * print-tree.c (print_node): Ditto.
32958         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
32959         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
32960         * tree.c (first_field): New fn.
32961
32962 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
32963
32964         PR target/42818
32965         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
32966         even when linking statically, for now.
32967
32968 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
32969
32970         PR debug/42715
32971         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
32972         without a cselib val.
32973         (count_uses): Accept MO_VAL_SET with no val on stores.
32974         (add_stores): Likewise.
32975
32976 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
32977
32978         * var-tracking.c (check_value_val): Add a compile time assertion.
32979         (dv_is_decl_p): Simplify.
32980         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
32981         gcc_assert if ENABLE_CHECKING.
32982
32983 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
32984
32985         PR debug/42782
32986         * var-tracking.c: Include tree-flow.h.
32987         (mem_dies_at_call): New.
32988         (dataflow_set_preserve_mem_locs): Use it.
32989         (dataflow_set_remove_mem_locs): Likewise.
32990         (dump_var): Renamed from dump_variable.  Adjust all callers.
32991         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
32992         * Makefile.in (var-tracking.o): Adjust deps.
32993
32994 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
32995
32996         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
32997
32998 2010-01-20  Richard Guenther  <rguenther@suse.de>
32999
33000         PR tree-optimization/42717
33001         * tree-ssa-dce.c (get_live_post_dom): Remove.
33002         (forward_edge_to_pdom): Take an arbitrary edge to copy
33003         degenerate PHI args from.
33004         (remove_dead_stmt): Use the first post-dominator even if it
33005         does not contain live statements as redirection destination.
33006
33007 2010-01-20  Richard Guenther  <rguenther@suse.de>
33008
33009         * tree-inline.c (estimate_num_insns): Handle EH builtins.
33010
33011 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33012
33013         * sel-sched.c (create_speculation_check): Remove set but not used
33014         variable twin.
33015         (try_transformation_cache): Remove set but not used variable ds.
33016         (calculate_privileged_insns): Remove set but not used variables
33017         cur_insn and min_spec_insn.
33018         (find_best_expr): Remove set but not used variable avail_n.
33019         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
33020         variable e.
33021         * cgraphunit.c (assemble_thunk): Remove set but not used variable
33022         false_label.
33023         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
33024         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
33025         new_scop_exit_edge.
33026
33027 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
33028
33029         PR bootstrap/42786
33030         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
33031         cpu types.  Add support for *-sse3 cpu types.
33032         (x86_64-*-*): Ditto.
33033
33034 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33035
33036         PR middle-end/42803
33037         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
33038         argument, call initializer_constant_valid_p_1 instead of
33039         initializer_constant_valid_p, pass CACHE to it, return NULL
33040         immediately if first call returns NULL.
33041         (initializer_constant_valid_p_1): New function.
33042         (initializer_constant_valid_p): Use it.
33043
33044 2010-01-20  Thomas Quinot  <quinot@adacore.com>
33045
33046         * tree.def (PLACEHOLDER_EXPR): Fix comment.
33047
33048 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
33049
33050         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
33051         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
33052         (loc_list_from_tree): Don't handle unsigned division.  Handle
33053         signed modulo using DW_OP_{over,over,div,mul,minus}.
33054         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
33055         modulo instead of signed.
33056
33057 2010-01-20  DJ Delorie  <dj@redhat.com>
33058
33059         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
33060         (Fpa): Pass it
33061         (h8300_emit_stack_adjustment): Propogate it.
33062         (push): Pass it.
33063         (h8300_expand_prologue): Likewise.
33064         (h8300_expand_epilogue): Likewise.
33065
33066 2010-01-19  Michael Matz  <matz@suse.de>
33067
33068         PR tree-optimization/41783
33069         * tree-data-ref.c (toplevel): Include flags.h.
33070         (dump_data_dependence_relation):  Also dump the inputs if the
33071         result will be unknown.
33072         (split_constant_offset_1): Look through some conversions.
33073         * tree-predcom.c (determine_roots_comp): Restart a new chain if
33074         the offset from last element is too large.
33075         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
33076         (reassociate_to_the_same_stmt): Handle vector registers.
33077         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
33078         (e.g. conversions).
33079         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
33080         wide_prolog_niters argument, emit widening instructions.
33081         (vect_do_peeling_for_alignment): Adjust caller, use widened
33082         variant of the iteration cound.
33083         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
33084
33085 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
33086
33087         PR target/38697
33088         * config/arm/neon-testgen.m (emit_automatics): New parameter
33089         features. Adjust for Fixed_return_reg feature.
33090         (test_intrinsic): Call emit_automatics with new feature.
33091         * config/arm/neon.ml: Update copyright years.
33092         (features): New Fixed_return_reg feature.
33093         (ops): Update feature for Vget_low.
33094
33095 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
33096
33097         PR tree-optimization/42719
33098         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
33099         stmt uses.
33100
33101         PR debug/42728
33102         * fwprop.c (all_uses_available_at): Return false if def_set dest
33103         is a REG that is used in def_insn.
33104
33105 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
33106
33107         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
33108
33109         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
33110         Add argument names.
33111
33112         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
33113
33114         * target.h (struct gcc_target) <secondary_reload>: Change type
33115         of last argument to secondary_reload_info *.
33116
33117 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
33118
33119         PR target/42774
33120         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
33121         memory references with unaligned offsets.  Remove CQImode handling.
33122         (unaligned_memory_operand): Return 1 for memory references with
33123         unaligned offsets.  Remove CQImode handling.
33124
33125 2010-01-18  Richard Guenther  <rguenther@suse.de>
33126
33127         PR middle-end/39954
33128         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
33129         builtin calls.
33130
33131 2010-01-18  Richard Guenther  <rguenther@suse.de>
33132
33133         PR tree-optimization/42781
33134         * tree-ssa-structalias.c (find_what_var_points_to): Skip
33135         restrict processing only if the original variable was artificial.
33136
33137 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
33138
33139         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
33140         find number of popped argument bytes.
33141
33142         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
33143         Fix the text that describes the return value for invalid insns.
33144
33145         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
33146
33147         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
33148         Clarify what 'cost of the -dependence' is.  Fix quoting.
33149
33150         * toplev.c (default_get_pch_validity): Rename argument to "sz".
33151         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
33152
33153 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
33154
33155         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
33156         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
33157
33158 2010-01-17  Richard Guenther  <rguenther@suse.de>
33159
33160         PR middle-end/42248
33161         * function.c (split_complex_args): Take a VEC to modify.
33162         (assign_parms_augmented_arg_list): Build a VEC instead of
33163         a chain of PARM_DECLs.
33164         (assign_parms_unsplit_complex): Take a VEC of arguments.
33165         Do not fixup unmodified parms.
33166         (assign_parms): Deal with the VEC.
33167         (gimplify_parameters): Likewise.
33168
33169 2010-01-17  Richard Guenther  <rguenther@suse.de>
33170
33171         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
33172         node existence check.
33173         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
33174         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
33175         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
33176         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
33177         (gimple_execute_on_growing_pred): Likewise.
33178
33179 2010-01-17  Richard Guenther  <rguenther@suse.de>
33180
33181         PR tree-optimization/42773
33182         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
33183         (compute_antic_aux): Likewise.
33184         (compute_partial_antic_aux): Likewise.
33185
33186 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
33187
33188         PR debug/42767
33189         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
33190         and US_TRUNCATE.
33191
33192 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
33193
33194         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
33195         appearance.
33196
33197         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
33198         Fix markup for strict argument.
33199
33200         (TARGET_SCHED_REORDER2): Fix argument types.
33201
33202         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
33203         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
33204
33205         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
33206         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
33207
33208         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
33209         Add argument name.
33210
33211         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
33212         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
33213         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
33214         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
33215         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
33216
33217         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
33218
33219         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
33220
33221         (TARGET_ASM_RELOC_RW_MASK): Add return type.
33222         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
33223
33224         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
33225
33226         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
33227         Use prototype.
33228
33229         (TARGET_ASM_NAMED_SECTION): Fix argument list.
33230
33231         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
33232         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
33233
33234         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
33235
33236         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
33237
33238         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
33239         referring to it.  Fix language.
33240
33241         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
33242
33243         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
33244
33245         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
33246
33247         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
33248
33249         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
33250         '@var{stream}.  Remove stray 'and'.
33251
33252         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
33253
33254         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
33255
33256         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
33257
33258         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
33259         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
33260
33261         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
33262         Fix description of return value.
33263         Rename argument "sz" to "len."
33264
33265         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
33266         Clarify meaning of 'true' return value.
33267
33268         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
33269
33270         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
33271         rep_mode versus mode_rep.
33272
33273         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
33274
33275         (TARGET_BUILTIN_DECL): Fix name.
33276
33277         (TARGET_COMMUTATIVE_P): Fix type of first argument.
33278
33279         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
33280
33281         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
33282
33283         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
33284
33285         (TARGET_RELAXED_ORDERING): Use @deftypevr.
33286
33287         (TARGET_GET_DRAP_RTX): Note that this is a hook.
33288         Clarify language.
33289
33290         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
33291         Rename argument tm_fn to md_fn.
33292
33293         (TARGET_OPTION_PRINT): Fix argument list.
33294
33295 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
33296
33297         PR target/42664
33298         * config/i386/i386.c (ix86_fixup_binary_operands):
33299         Revert FMA4 fixup of operands.
33300
33301 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33302
33303         PR other/42525
33304         * Makefile.in (write_entries_to_file, install-plugin):
33305         Use \012 instead of \n with tr.
33306
33307 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
33308
33309         * configure.ac (HAVE_AS_REF): New C macro.
33310         * configure: Regenerate.
33311         * config.in: Likewise.
33312         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
33313         if HAVE_AS_REF.
33314         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
33315         if HAVE_AS_REF.
33316
33317 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
33318
33319         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
33320
33321         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
33322
33323         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
33324
33325         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
33326
33327         (TARGET_IN_SMALL_DATA_P): Fix argument type.
33328
33329         (TARGET_BINDS_LOCAL_P): Fix argument type.
33330
33331         (TARGET_ASM_FILE_END): Use prototype.
33332
33333         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
33334
33335         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
33336
33337         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
33338
33339         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
33340
33341         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
33342         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
33343
33344         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
33345         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
33346
33347         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
33348         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
33349         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
33350         (TARGET_ADDR_SPACE_CONVERT): Likewise.
33351
33352         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
33353
33354         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
33355
33356         (TARGET_INIT_BUILTINS): Use prototype.
33357
33358         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
33359         Put 'const char *' in braces.  Fix parameter types.
33360         (TARGET_INVALID_CONVERSION): Fix parameter types.
33361         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
33362         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
33363
33364         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
33365         Fix argument type.
33366
33367         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
33368
33369         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
33370
33371 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
33372
33373         * doc/tm.texi (TARGET_HELP): Fix return type.
33374
33375         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
33376         in braces.  Fix argument types.
33377
33378         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
33379
33380         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
33381
33382         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
33383
33384         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
33385         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
33386
33387         (TARGET_MANGLE_TYPE): Fix argument types.
33388
33389         (TARGET_IRA_COVER_CLASSES): Use prototype.
33390
33391         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
33392
33393         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
33394
33395         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
33396
33397         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
33398
33399         (TARGET_CALLEE_COPIES): Fix argument types.
33400
33401         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
33402
33403         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
33404
33405         (TARGET_FUNCTION_VALUE): Fix argument types.
33406
33407         (TARGET_RETURN_IN_MSB): Fix argument type.
33408
33409         (TARGET_RETURN_IN_MEMORY): Fix argument types.
33410
33411         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
33412
33413         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
33414
33415         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
33416         agree with return type.
33417
33418         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
33419
33420 2010-01-15  Jing Yu  <jingyu@google.com>
33421
33422         PR rtl-optimization/42691
33423         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
33424         a pseudo to a constant and are merged, and adjust comments.
33425
33426 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
33427
33428         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
33429
33430 2010-01-15  Richard Guenther  <rguenther@suse.de>
33431
33432         PR middle-end/42739
33433         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
33434         labels of computed or non-local gotos to the destination.
33435         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
33436         landing pad label is the first label.
33437
33438 2010-01-15  Richard Guenther  <rguenther@suse.de>
33439
33440         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
33441
33442 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
33443
33444         PR target/42747
33445         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
33446         to allow generation of the xssqrtdp instruction on power7.
33447         (sqrtdf2_fpr): Ditto.
33448
33449 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
33450
33451         PR middle-end/42674
33452         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
33453         functions with noreturn attribute.
33454
33455         PR c++/42608
33456         * varasm.c (declare_weak): Add weak attribute to decl if it
33457         doesn't have one already.
33458         (assemble_external): Only add decls to weak_decls if they also
33459         have weak attribute.
33460
33461 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
33462
33463         * var-tracking.c (var_reg_delete): Don't delete the association
33464         between REGs and values or one-part variables if the register
33465         isn't clobbered.
33466
33467 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
33468
33469         PR debug/42657
33470         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
33471         because its first operand is a non-localized variable.
33472
33473 2010-01-14  Martin Jambor  <mjambor@suse.cz>
33474
33475         PR tree-optimization/42706
33476         * tree-sra.c (encountered_recursive_call): New variable.
33477         (encountered_unchangable_recursive_call): Likewise.
33478         (sra_initialize): Initialize both new variables.
33479         (callsite_has_enough_arguments_p): New function.
33480         (scan_function): Call decl and flags check only for IPA-SRA, check
33481         whether there is a recursive call and whether it has enough arguments.
33482         (all_callers_have_enough_arguments_p): New function.
33483         (convert_callers): Look for recursive calls only when
33484         encountered_recursive_call is set.
33485         (ipa_early_sra): Bail out either if
33486         !all_callers_have_enough_arguments_p or
33487         encountered_unchangable_recursive_call.
33488
33489 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33490
33491         * sel-sched.c: Add 2010 to copyright years.
33492         * sel-sched-ir.c: Likewise.
33493         * sel-sched-ir.h: Likewise.
33494
33495 2010-01-14  Martin Jambor  <mjambor@suse.cz>
33496
33497         PR tree-optimization/42714
33498         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
33499         constructors specially.
33500
33501 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33502
33503         * config/i386/drivers-i386.c (detect_caches_intel):
33504         Add l2sizekb parameter and fill in.
33505         (host_detect_local_cpu): Add l2sizekb, fill in.
33506         Add Atom small cache heuristic.
33507
33508 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33509
33510         * config/i386/drivers-i386.c (detect_caches_cpuid4):
33511         Add level3 parameter and fill in.
33512         (detect_caches_intel): Handle level3 cache.
33513
33514 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33515
33516         * config/i386/drivers-i386.c (host_detect_local_cpu):
33517         Fix core duo detection.
33518
33519 2010-01-14  Andi Kleen  <ak@linux.intel.com>
33520
33521         * config/i386/drivers-i386.c (host_detect_local_cpu):
33522         Fix Atom detection.
33523
33524 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33525
33526         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
33527         (rs6000_variable_issue_1): this.  Use...
33528         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
33529
33530 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33531
33532         * sel-sched-ir.c (sel_restore_other_notes): Rename to
33533         sel_restore_notes.  Update all callers.  Call reemit_notes
33534         for all insns.
33535
33536 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33537
33538         PR rtl-optimization/42246
33539         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
33540         loops.
33541
33542 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33543
33544         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
33545         all successors is the same as number of successors in current region.
33546
33547 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33548
33549         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
33550         to rename is not separable.  Otherwise check that its LHS is not NULL.
33551
33552 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33553
33554         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
33555
33556 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33557
33558         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
33559         available registers when failed to discover LHS register class.
33560         Fix indentation.  Update comment.
33561
33562 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33563             Alexander Monakov  <amonakov@ispras.ru>
33564
33565         PR rtl-optimization/42389
33566         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
33567         to can_issue_more.
33568         (advance_state_on_fence): Likewise.
33569         (sel_target_adjust_priority): Print debug output only when
33570         sched_verbose >= 4, not 2.
33571         (get_expr_cost): Do not issue all unique insns on the next cycle.
33572         (fill_insns): Initialize can_issue_more from the value saved
33573         with the fence.
33574         * sel-sched-ir.c (flist_add): New parameter issue_more.
33575         Init FENCE_ISSUE_MORE with it.
33576         (merge_fences): Likewise.
33577         (init_fences): Update call to flist_add.
33578         (add_to_fences, add_clean_fence_to_fences)
33579         (add_dirty_fence_to_fences): Likewise.
33580         (move_fence_to_fences): Update call to merge_fences.
33581         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
33582         sched groups.
33583         * sel-sched-ir.h (struct _fence): New field issue_more.
33584         (FENCE_ISSUE_MORE): New accessor macro.
33585
33586 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33587
33588         PR rtl-optimization/42388
33589         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
33590         that have no predecessors nor successors.  Do not call move_bb_info
33591         for empty blocks outside of current region.
33592
33593 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33594
33595         PR rtl-optimization/42294
33596         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
33597         * sel-sched.c (move_exprs_to_boundary): Transitively add all
33598         originators' originators.
33599
33600 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
33601
33602         PR rtl-optimization/39453
33603         PR rtl-optimization/42246
33604         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
33605         for pipelining_p.
33606         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
33607
33608 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33609             Alexander Monakov  <amonakov@ispras.ru>
33610
33611         PR middle-end/42245
33612         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
33613         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
33614         argument.  Update all callers.
33615         (tidy_control_flow): ... and here.  Recompute topological order
33616         of basic blocks in region if necessary.
33617         (sel_redirect_edge_and_branch): Change return type.  Return true
33618         if topological order might have been invalidated.
33619         (purge_empty_blocks): Export and move from...
33620         * sel-sched.c (purge_empty_blocks): ... here.
33621         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
33622         (maybe_tidy_empty_bb): Delete prototype.
33623         (purge_empty_blocks): Declare.
33624
33625 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
33626
33627         PR rtl-optimization/42249
33628         * sel-sched.c (try_replace_dest_reg): When chosen register
33629         and original register is the same, do not bail out early, but
33630         still check all original insns for validity of replacing destination
33631         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
33632         in this case.
33633
33634 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
33635
33636         PR c/42721
33637         Port from no-undefined-overflow branch:
33638         2009-03-09  Richard Guenther  <rguenther@suse.de>
33639
33640         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
33641
33642 2010-01-14  Richard Guenther  <rguenther@suse.de>
33643
33644         PR lto/42665
33645         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
33646
33647 2010-01-14  Ira Rosen  <irar@il.ibm.com>
33648
33649         PR tree-optimization/42709
33650         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
33651         as scalar type in creation of constant vector operand.
33652
33653 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33654
33655         PR testsuite/42414
33656         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
33657         (check-parallel-%): Match `testsuite' directory component only
33658         at the end.
33659
33660 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
33661
33662         PR translation/39521
33663         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
33664         strings with _().
33665
33666 2010-01-13  Richard Guenther  <rguenther@suse.de>
33667
33668         PR tree-optimization/42730
33669         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
33670         offset zero.
33671
33672 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
33673
33674         PR target/pr42542
33675         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
33676         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
33677         them signed.
33678
33679 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
33680
33681         * config/bfin/libgcc-bfin.ver: Regenerate based on current
33682         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
33683         ___umulsi3_highpart.
33684
33685         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
33686         rather than schedule_insns if the pass is enabled.
33687
33688 2010-01-13  Martin Jambor  <mjambor@suse.cz>
33689
33690         PR tree-optimization/42704
33691         * tree-sra.c (sra_modify_assign): Do not delete assignments to
33692         SSA_NAMEs.
33693
33694 2010-01-13  Martin Jambor  <mjambor@suse.cz>
33695
33696         PR tree-optimization/42703
33697         * tree-sra.c (analyze_access_subtree): Check that we can build a
33698         reference to the original data within the aggregate.
33699
33700 2010-01-13  Richard Guenther  <rguenther@suse.de>
33701
33702         PR tree-optimization/42705
33703         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
33704
33705 2010-01-13  Richard Guenther  <rguenther@suse.de>
33706
33707         PR middle-end/42716
33708         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
33709
33710 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
33711
33712         PR debug/41371
33713         * var-tracking.c (values_to_unmark): New variable.
33714         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
33715         values_to_unmark vector.  Moved body to...
33716         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
33717         instead queue it into values_to_unmark vector.
33718         (vt_find_locations): Free values_to_unmark vector.
33719
33720 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
33721
33722         * config/s390/s390.c (override_options): Set
33723         default of max-pending-list-length to 256
33724
33725 2010-01-13  Richard Guenther  <rguenther@suse.de>
33726
33727         PR lto/42678
33728         * tree-pass.h (PROP_gimple_lcx): New.
33729         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
33730         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
33731         before the final cleanup_eh.
33732         (dump_properties): Dump PROP_gimple_lcx.
33733         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
33734         (tree_lower_complex_O0): Remove.
33735         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
33736         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
33737         tree_lower_complex, schedule TODO_update_ssa.
33738         * lto-streamer-out.c (output_function): Stream the functions
33739         properties.
33740         * lto-streamer-in.c (input_function): Likewise.
33741         (lto_read_body): Do not override them here.
33742
33743 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
33744
33745         PR c/42708
33746         * c-typeck.c (build_c_cast): Fold value cast to union type before
33747         wrapping it in a CONSTRUCTOR.
33748
33749 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
33750
33751         PR rtl-optimization/42699
33752         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
33753         involved.
33754
33755 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33756
33757         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33758         SUBTARGET_WARN_UNUSED_SPEC): Move ...
33759         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33760         SUBTARGET_WARN_UNUSED_SPEC): ... here
33761         * config/mips/iris5.h (LIBGCC_SPEC): Define.
33762
33763 2010-01-12  Julian Brown  <julian@codesourcery.com>
33764
33765         * config/arm/neon-schedgen.ml (Utils): Don't try to
33766         open missing module.
33767         (find_with_result): New.
33768
33769 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
33770
33771         PR debug/42662
33772         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
33773         sharing when canonicalizing ({lt,ge}u (plus a b) b).
33774
33775         PR tree-optimization/42645
33776         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
33777         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
33778         decl_map, set processing_debug_stmt to -1 and return name without
33779         any remapping.
33780
33781 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
33782
33783         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
33784         binutils version, and reword target configuration description.
33785
33786 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
33787
33788         * config/avr/avr.h (LINKER_NAME): Remove.
33789
33790 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
33791
33792         PR target/42416
33793         * config/rs6000/rs6000.c (rs6000_override_options): On targets
33794         that support VSX, warn for -mno-altivec if vsx is not disabled,
33795         and disable vsx.
33796
33797 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
33798             Shujing Zhao  <pearly.zhao@oracle.com>
33799
33800         PR translation/42469
33801         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
33802         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
33803         character between option name and help text.
33804         * c.opt (imultilib): Likewise.
33805
33806 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
33807
33808         * lto-streamer-out.c (output_unreferenced_globals): Output static
33809         variables.
33810
33811 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
33812
33813         PR rtl-optimization/42621
33814         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
33815         optimizing for size.
33816         (duplicate_computed_gotos): Remove now-redundant check.
33817
33818 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
33819
33820         PR target/37454
33821         * configure.ac: Save and restore LDFLAGS and LIBS
33822         * configure: Regenerate.
33823
33824 2010-01-10  Richard Guenther  <rguenther@suse.de>
33825
33826         PR middle-end/42667
33827         * builtins.c (fold_builtin_strlen): Add type argument and
33828         convert the resulting length to it.
33829         (fold_builtin_1): Adjust.
33830
33831 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
33832
33833         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
33834         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
33835         1 insn.
33836         (num_insns_constant_wide): Adjust for that change.
33837
33838 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33839
33840         PR debug/42631
33841         * web.c (union_defs): Add used argument, to combine uses of
33842         uninitialized regs.
33843         (entry_register): Adjust type and tests of used argument.
33844         (web_main): Widen used for new use.  Pass it to union_defs.
33845         * df.h (union_defs): Adjust prototype.
33846
33847 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33848
33849         PR debug/42630
33850         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
33851         uses in new incoming argument.  Free body.
33852         (reset_debug_uses_in_loop): New.
33853         (analyze_insn_to_expand_var): Call the latter if the former found
33854         anything.  Fix whitespace.  Reject invalid dest overlaps before
33855         going through all insns in the loop.
33856
33857 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33858
33859         PR debug/42629
33860         * haifa-sched.c (dying_use_p): Debug insns don't count.
33861
33862 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33863
33864         PR middle-end/42363
33865         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
33866         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
33867         (verify_gimple_call): Reject LHS in noreturn calls.
33868
33869 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33870
33871         PR debug/42604
33872         PR debug/42395
33873         * tree-vect-loop-manip.c (adjust_info): New type.
33874         (adjust_vec): New pointer to vector.
33875         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
33876         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
33877         (slpeel_update_phis_for_duplicate_loop): Use them.
33878         (slpeel_update_phi_nodes_for_guard1): Likewise.
33879         (slpeel_update_phi_nodes_for_guard2): Likewise.
33880         (slpeel_tree_peel_loop_to_edge): Likewise.
33881         (vect_update_ivs_after_vectorizer): Likewise.
33882
33883 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33884
33885         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
33886         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
33887
33888 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
33889
33890         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
33891         bogus uninitialized warning.
33892
33893 2010-01-09  Richard Guenther  <rguenther@suse.de>
33894
33895         PR middle-end/42512
33896         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
33897         the evolution is compatible with the initial condition.
33898
33899 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
33900
33901         * gcc.c (process_command): Update copyright notice dates.
33902         * gcov.c (print_version): Likewise.
33903         * gcov-dump.c (print_version): Likewise.
33904         * mips-tfile.c (main): Likewise.
33905         * mips-tdump.c (main): Likewise.
33906
33907 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
33908
33909         PR target/41885
33910         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
33911         (rotlhi3): Delete.
33912         (rotlhi3_8): Delete.
33913         (rotlsi3): Delete.
33914         (rotlsi3_8): Delete.
33915         (rotlsi3_16): Delete.
33916         (rotlsi3_24): Delete.
33917         (rotl<mode>3): New.
33918         (*rotw<mode>3): New.
33919         (*rotb<mode>3): New.
33920         * config/avr/avr.c (avr_rotate_bytes): New function.
33921         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
33922
33923 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
33924
33925         PR target/37454
33926         * configure.ac: Modify -rdynamic check.
33927         * configure: Regenerate.
33928
33929 2010-01-08  DJ Delorie  <dj@redhat.com>
33930
33931         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
33932         register popping order.
33933
33934 2010-01-08  Richard Guenther  <rguenther@suse.de>
33935
33936         PR lto/42528
33937         * c.opt (fsigned-char): Also let LTO handle this option.
33938         (funsigned-char): Likewise.
33939
33940 2010-01-07  Richard Guenther  <rguenther@suse.de>
33941
33942         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
33943         (gimple_op): Likewise.
33944         (gimple_op_ptr): Likewise.
33945         (gimple_assign_set_lhs): Remove gcc_assert.
33946         (gimple_assign_set_rhs1): Likewise.
33947         (gimple_assign_set_rhs2): Likewise.
33948         (gimple_call_set_lhs): Likewise.
33949         (gimple_call_set_fn): Likewise.
33950         (gimple_call_set_fndecl): Likewise.
33951         (gimple_call_fndecl): Likewise.
33952         (gimple_call_return_type): Likewise.
33953         (gimple_call_set_chain): Likewise.
33954         (gimple_call_num_args): Likewise.
33955         (gimple_call_set_arg): Likewise.
33956         (gimple_cond_set_code): Likewise.
33957         (gimple_cond_set_lhs): Likewise.
33958         (gimple_cond_set_rhs): Likewise.
33959         (gimple_cond_set_true_label): Likewise.
33960         (gimple_cond_set_false_label): Likewise.
33961         (gimple_label_set_label): Likewise.
33962         (gimple_goto_set_dest): Likewise.
33963         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
33964         (gimple_debug_bind_get_value): Likewise.
33965         (gimple_debug_bind_get_value_ptr): Likewise.
33966         (gimple_debug_bind_set_var): Likewise.
33967         (gimple_debug_bind_set_value): Likewise.
33968         (gimple_debug_bind_reset_value): Likewise.
33969         (gimple_debug_bind_has_value_p): Likewise.
33970         (gimple_return_retval_ptr): Remove gcc_assert.
33971         (gimple_return_retval): Likewise.
33972         (gimple_return_set_retval): Likewise.
33973         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
33974         (safe_referenced_var_iterator): Remove.
33975         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
33976         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
33977         (fill_referenced_var_vec): Remove.
33978         (first_readonly_imm_use): Remove redundant gcc_assert.
33979         (phi_arg_index_from_use): Combine gcc_asserts.
33980         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
33981         (first_imm_use_stmt): Remove redundant gcc_assert.
33982         * tree-cfg.c (verify_gimple_call): Verify function and chain
33983         operands.  Verify arguments.
33984         (verify_types_in_gimple_stmt): Verify condition code and labels.
33985
33986 2010-01-07  Richard Guenther  <rguenther@suse.de>
33987
33988         PR tree-optimization/42641
33989         * sese.c (rename_map_elt_info): Use the SSA name version, do
33990         not hash pointers.
33991
33992 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
33993
33994         PR tree-optimization/42625
33995         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
33996         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
33997
33998 2010-01-07  Duncan Sands  <baldrick@free.fr>
33999
34000         * Makefile.in (PLUGIN_HEADERS): Add version.h.
34001
34002 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
34003
34004         PR target/42511
34005         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
34006         note itself is not function_invariant_p.
34007
34008 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
34009
34010         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
34011         Do not add the DF_NOTE problem.
34012         * store-motion.c (execute_rtl_store_motion): Likewise.
34013
34014 2010-01-07  Martin Jambor  <mjambor@suse.cz>
34015
34016         PR tree-optimization/42157
34017         * tree-sra.c (compare_access_positions): Stabilize sort if both
34018         accesses have integer types, return zero immediately if they are the
34019         same.
34020
34021 2010-01-06  Richard Henderson  <rth@redhat.com>
34022
34023         PR middle-end/41883
34024         * haifa-sched.c (add_to_note_list): Merge into ...
34025         (concat_note_lists): ... here, and ...
34026         (unlink_other_notes, rm_other_notes): Merge into...
34027         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
34028         NOTE_INSN_EPILOGUE_BEG.
34029
34030 2010-01-06  Richard Guenther  <rguenther@suse.de>
34031
34032         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
34033         not inline regular functions into always-inline functions.
34034
34035 2010-01-06  Nick Clifton  <nickc@redhat.com>
34036
34037         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
34038         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
34039         used together.
34040         (OVERRIDE_OPTIONS): Delete.
34041         (OPTIMIZATION_OPTIONS): Define.
34042         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
34043         * config/rx/rx.c (rx_handle_option): Issue an error message if
34044         -mcpu=rx200 and -fpu are used together.
34045         (rx_set_optimization_options): New function.  Issue an error
34046         message if an optimization attribute attempts to reset the FPU/
34047         math optimization pairing.
34048         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
34049         * config/rx/rx.opt: Set the default to 32-bit doubles.
34050         * config/rx/t-rx: Add multilibs for -nofpu option.
34051         * doc/invoke.texi: Update documentation of RX options.
34052
34053 2010-01-06  Richard Guenther  <rguenther@suse.de>
34054
34055         * tree-ssa-pre.c (name_to_id): New global.
34056         (alloc_expression_id): Simplify SSA name handling.
34057         (lookup_expression_id): Likewise.
34058         (init_pre): Zero name_to_id.
34059         (fini_pre): Free it.
34060
34061 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
34062
34063         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
34064
34065 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
34066
34067         PR target/42542
34068         * config/i386/sse.md (smaxv2di3): New.
34069         (umaxv2di3): Likewise.
34070         (sminv2di3): Likewise.
34071         (uminv2di3): Likewise.
34072
34073 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
34074
34075         PR target/42564
34076         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
34077         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
34078         (legitimize_tls_address): Likewise.
34079         (sparc_tls_referenced_p): Likewise.
34080         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
34081         and adjust calls to legitimize_pic_address.
34082         (legitimate_constant_p) Use sparc_tls_referenced_p.
34083         (legitimate_pic_operand_p): Likewise.
34084         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
34085         (sparc_tls_symbol_ref_1): Delete.
34086         (sparc_tls_referenced_p): Make static, recognize specific patterns.
34087         (legitimize_tls_address): Make static, handle CONST patterns.
34088         (legitimize_pic_address): Make static, remove unused parameter and
34089         adjust recursive calls.
34090         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
34091         and adjust call to legitimize_pic_address.
34092         (sparc_output_mi_thunk): Likewise.
34093
34094 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
34095             H.J. Lu  <hongjiu.lu@intel.com>
34096
34097         PR target/42542
34098         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
34099         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
34100         operands to make them signed.
34101
34102         Revert:
34103         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
34104
34105         PR target/42542
34106         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
34107         GTU to GT for V4SI and V2DI.
34108
34109         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
34110         (umin<mode>3): Removed.
34111         (uminv8hi3): New.
34112         (uminv4si3): Likewise.
34113
34114 2010-01-05  Martin Jambor  <mjambor@suse.cz>
34115
34116         PR tree-optimization/42462
34117         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
34118         current_function_decl to helper functions and macros.
34119
34120 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
34121
34122         PR bootstrap/41771
34123         * flags.h: Don't include real.h.
34124         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
34125         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
34126         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
34127         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
34128         * dominance.c: Update copyright.
34129         * gimple.c (walk_gimple_op): Remove inline.
34130         * tree-ssa-reassoc.c: Include real.h.
34131         * Makefile.in (FLAGS_H): Remove $(REAL_H).
34132         (tree-ssa-reassoc.o): Depend on $(REAL_H).
34133
34134 2010-01-05  Nick Clifton  <nickc@redhat.com>
34135
34136         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
34137         register to push into the stack frame when the accumulator has to
34138         be saved during interrupts.
34139
34140 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
34141
34142         * doc/invoke.texi: Remove the documentation about option
34143         -Wunreachable-code.
34144         * common.opt (Wunreachable-code):  Preserved for backward
34145         compatibility.
34146         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
34147         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
34148         the backward compatibility flag section.
34149
34150 2010-01-05  Richard Guenther  <rguenther@suse.de>
34151
34152         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
34153
34154 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
34155
34156         PR other/42611
34157         * cfgexpand.c (expand_one_var): Diagnose too large variables.
34158
34159         PR tree-optimization/42508
34160         * tree-sra.c (convert_callers): Check for recursive call
34161         by comparing cgraph nodes instead of decls.
34162         (modify_function): Call ipa_modify_formal_parameters also
34163         on all same_body aliases.
34164
34165         * cgraphunit.c (cgraph_materialize_all_clones): Compare
34166         cgraph nodes when checking for same_body aliases.
34167
34168 2010-01-05  Richard Guenther  <rguenther@suse.de>
34169
34170         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
34171         allocation and lookup.
34172         (get_or_alloc_expr_for_constant): Likewise.
34173         (phi_translate): Sink allocation.
34174
34175 2010-01-04  Richard Guenther  <rguenther@suse.de>
34176
34177         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
34178         a new entry only if needed.
34179         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
34180         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
34181         hashtable lookup.
34182         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
34183         the result array.
34184         (phi_translate): Handle CONSTANTs early.
34185
34186 2010-01-04  Martin Jambor  <mjambor@suse.cz>
34187
34188         PR tree-optimization/42398
34189         * tree-sra.c (struct access): Removed flag grp_different_types.
34190         (dump_access): Do not dump the removed flag.
34191         (sort_and_splice_var_accesses): Do not set the removed flag.
34192         (sra_modify_expr): Check for type compatibility directly.
34193
34194 2010-01-04  Martin Jambor  <mjambor@suse.cz>
34195
34196         PR tree-optimization/42366
34197         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
34198         edges with variable number of parameters.
34199         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
34200         flag instead of asserting it.
34201         (ipa_read_node_info): Read uses_analysis_done flag.
34202
34203 2010-01-04  Richard Guenther  <rguenther@suse.de>
34204
34205         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
34206         iterative_hash_* as intended.
34207         (vn_reference_compute_hash): Likewise.  Simplify hashing
34208         SSA names.
34209         (vn_reference_lookup_2): Likewise.
34210         (vn_nary_op_compute_hash): Likewise.
34211         (vn_phi_compute_hash): Likewise.
34212         (expressions_equal_p): Remove strange code.
34213         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
34214         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
34215         (bitmap_insert_into_set_1): Take value-id as parameter.
34216         (add_to_value): Pass it.
34217         (bitmap_insert_into_set): Likewise.
34218         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
34219
34220 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
34221
34222         PR driver/42442
34223         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
34224         (do_self_spec): For switches with SWITCH_IGNORE set set also
34225         SWITCH_IGNORE_PERMANENTLY.
34226         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
34227         of SWITCH_IGNORE.
34228
34229 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
34230
34231         * lto-streamer-out.c (output_unreferenced_globals): Output the full
34232         tree of an unreferenced global var.
34233
34234 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
34235
34236         PR target/42542
34237         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
34238         GTU to GT for V4SI and V2DI.
34239
34240         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
34241         (umin<mode>3): Removed.
34242         (uminv8hi3): New.
34243         (uminv4si3): Likewise.
34244
34245 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
34246
34247         PR lto/42581
34248         * collect2.c (main): Turn on trace in collect2 if -v is passed
34249         to gcc with LTO.
34250
34251 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
34252
34253         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
34254         description of expression operand.
34255
34256 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
34257
34258         * configure.ac: Add install-html to target_list for Make-hooks.
34259         * configure: Regenerate.
34260         * fortran/Make-lang.in (F95_HTMLFILES): New.
34261         (fortran.html): Use it.
34262         (fortran.install-html): New.
34263         * Makefile.in (install-html): Add lang.install-html.
34264         * java/Make-lang.in (JAVA_HTMLFILES): New.
34265         (java.html): Use it.
34266         (java.install-html): New.
34267         * objc/Make-lang.in (objc.install-html): New.
34268         * objcp/Make-lang.in (obj-c++.install-html): New.
34269         * cp/Make-lang.in (c++.install-html): New.
34270         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
34271         * lto/Make-lang.in (lto.install-html): New.
34272
34273 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
34274
34275         PR lto/42520
34276         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
34277
34278 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
34279
34280         PR rtl-optimization/41862
34281         * store-motion.c (store_killed_in_insn, compute_store_table,
34282         remove_reachable_equiv_notes, replace_store_insn,
34283         build_store_vectors): Ignore all DEBUG_INSNs.
34284
34285 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
34286
34287         PR lto/41564
34288         * common.opt: Add dumpdir.
34289
34290         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
34291         isn't specified.
34292         (option_map): Add --dumpdir.
34293
34294         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
34295
34296         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
34297
34298         * opts.c (decode_options): Try dump_dir_name first if
34299         dump_base_name isn't an absolute path.
34300         (common_handle_option): Handle OPT_dumpdir.
34301
34302         * toplev.c (dump_dir_name): New.
34303         (print_switch_values): Also ignore -dumpdir.
34304
34305         * toplev.h (dump_dir_name): New.
34306
34307 2010-01-03  Richard Guenther  <rguenther@suse.de>
34308
34309         PR tree-optimization/42589
34310         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
34311         double-word expansion of bswap32.
34312
34313 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
34314
34315         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
34316         with BLOCK_FOR_INSN.
34317         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
34318         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
34319         noce_process_if_block): Likewise.
34320         * gcse.c (compute_local_properties, insert_expr_in_table,
34321         insert_set_in_table, canon_list_insert, find_avail_set,
34322         pre_insert_copy_insn): Likewise.
34323
34324         * basic-block.h (BLOCK_NUM): Move from here...
34325         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
34326
34327 2010-01-03  Richard Guenther  <rguenther@suse.de>
34328
34329         PR tree-optimization/42438
34330         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
34331         contains_may_not_return_call flag.
34332         (BB_MAY_NOTRETURN): New.
34333         (valid_in_sets): Trapping nary operations are not valid
34334         in blocks that may not return.
34335         (insert_into_preds_of_block): Remove check for trapping expressions.
34336         (compute_avail): Compute also BB_MAY_NOTRETURN.
34337
34338 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
34339
34340         * doc/invoke.texi: Add 2010 to copyright years.
34341
34342 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
34343
34344         * config/sparc/sparc.c: Fix formatting nits.
34345
34346 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
34347             Alexander Monakov  <amonakov@ispras.ru>
34348
34349         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
34350
34351 2010-01-02  Richard Guenther  <rguenther@suse.de>
34352
34353         PR middle-end/42577
34354         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
34355         (simplify_switch_using_ranges): Mark to be removed edges
34356         as non-executable.
34357
34358 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
34359
34360         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
34361
34362         * collect2.c (scan_libraries): Add missing argument in call to
34363         scan_prog_file.
34364
34365 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
34366
34367         PR target/42448
34368         * config/alpha/predicates.md (aligned_memory_operand): Return false
34369         for CQImode.
34370         (unaligned_memory_operand): Return true for CQImode.
34371         * config/alpha/alpha.c (get_aligned_mem): Assert that location
34372         doesn not cross aligned SImode word boundary.
34373
34374 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
34375
34376         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
34377         Remove.
34378         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
34379         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
34380
34381 2010-01-02  Richard Guenther  <rguenther@suse.de>
34382
34383         PR lto/41597
34384         * toplev.c (compile_file): Emit LTO marker properly.  Change
34385         it to __gnu_lto_v1.
34386         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
34387
34388 2010-01-01  Richard Guenther  <rguenther@suse.de>
34389
34390         PR debug/42455
34391         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
34392
34393 2010-01-01  Richard Guenther  <rguenther@suse.de>
34394
34395         PR c/42570
34396         * c-decl.c (grokdeclarator): For zero-size arrays force
34397         structural equality checks as layout_type does.
34398
34399 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
34400
34401         * builtins.c: Update copyright to 2010.
34402
34403 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
34404
34405         PR lto/42531
34406         * lto-streamer-out.c (produce_asm): Revert the last change.
34407         (copy_function): Likewise.
34408
34409         * lto-streamer.c (lto_get_section_name): Skip any leading
34410         asterisk in name.
34411
34412 2010-01-01  Richard Guenther  <rguenther@suse.de>
34413
34414         PR middle-end/42559
34415         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
34416         for LABEL_DECLs.
34417
34418 \f
34419 Copyright (C) 2010 Free Software Foundation, Inc.
34420
34421 Copying and distribution of this file, with or without modification,
34422 are permitted in any medium without royalty provided the copyright
34423 notice and this notice are preserved.