OSDN Git Service

2008-05-30 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-05-30  Richard Guenther  <rguenther@suse.de>
2
3         * builtins.c (build_string_literal): Avoid generating
4         a non-gimple_val result.
5
6 2008-05-30  DJ Delorie  <dj@redhat.com>
7
8         * exec-tool.in: Use an environment variable (private) instead of a
9         file (shared) as a semaphore, so as to not break parallel builds.
10
11 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
12
13         * optabs.c (maybe_encapsulate_block): Remove.
14         (emit_libcall_block): Adjust accordingly.
15         * optabs.h (maybe_encapsulate_block): Remove prototype.
16
17         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
18         Don't use maybe_encapsulate_block.
19
20 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
21
22         * config/rs6000/rs6000.c (rs6000_legitimize_address,
23         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
24         rtx is a SYMBOL_REF before calling get_pool_constant.
25
26 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
27
28         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
29
30 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
31
32         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
33         rather than OS names to choose INO_T_EQ definition.
34         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
35         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name
36         field.
37
38 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
39
40         PR target/36348
41         * config/darwin-f.c: New.
42         * config/t-darwin: Added rule to build darwin-f.o.
43         * config.gcc: Defined new variable, fortran_target_objs.
44         (*-*-darwin*): Set fortran_target_objs.
45         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
46         * configure.ac: Substitute fortran_target_objs, set
47         FORTRAN_TARGET_OBJS.
48         * configure: Regenerated.
49
50 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
51
52         PR target/35771
53         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
54         canonical type if needed.
55
56 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
57
58         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
59
60 2008-05-29  Richard Guenther  <rguenther@suse.de>
61
62         PR tree-optimization/36343
63         PR tree-optimization/36346
64         PR tree-optimization/36347
65         * tree-flow.h (clobber_what_p_points_to): Declare.
66         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
67         pointed-to variable is dereferenced is irrelevant to whether
68         the pointer can access the pointed-to variable.
69         (clobber_what_p_points_to): New function.
70         * tree-ssa-alias.c (set_initial_properties): Use it.
71         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
72         call clobber check for NMTs.
73
74 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
75         
76         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
77         for printing gcov_type.
78
79 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
80
81         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
82         and the eh region information.
83         * value-prof.c (gimple_move_stmt_histograms): New function.
84         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
85
86 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
87
88         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
89
90 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
91
92         * value-prof.c (tree_ic_transform): Print counts.
93         * tree-profile.c (tree_gen_ic_func_profiler):
94         Clear __gcov_indreict_call_callee variable
95         to avoid misattribution of the profile.
96
97 2008-05-28  Rafael Espindola  <espindola@google.com>
98
99         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
100         invalid sharing.
101
102 2008-05-28  Richard Guenther  <rguenther@suse.de>
103
104         PR tree-optimization/36339
105         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
106         and clobbering code out of the loop.
107
108 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
109
110         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
111         letters defined.
112
113         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
114         s390_contiguous_bitmask_p, s390_symref_operand_p,
115         s390_check_symref_alignment, s390_reload_larl_operand,
116         s390_reload_symref_address): New functions.
117         (s390_branch_condition_mnemonic): Support compare and branch
118         instructions.
119         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
120         and 'W' constraints.
121         (s390_secondary_reload): Add secondary reloads for unaligned
122         symbol refs or symbol refs to floating point or QI/TI mode
123         integer values.
124         (legitimate_address_p): Accept symbol references as addresses.
125         (s390_expand_insv): Use rotate and insert selected bits
126         instruction for insv when building for z10.
127         (print_operand_address): Handle symbol ref addresses.
128         (print_operand): Output modifier 'c' added for signed byte
129         values.
130         (s390_encode_section_info): Mark symbol refs with
131         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
132
133         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
134         (length attribute): RRF, RRR have 4 byte length.
135         (FPALL, INTALL): New mode iterators added.
136         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
137         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
138         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
139         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
140         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
141         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
142         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
143         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
144         instructions.
145         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
146         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
147         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
148         reload<INTALL:mode><P:mode>_toreg_z10,
149         reload<FPALL:mode><P:mode>_tomem_z10,
150         reload<FPALL:mode><P:mode>_toreg_z10,
151         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
152         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
153         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
154         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
155         definition.
156         (movmem, clrmem, cmpmem): New splitters added.
157
158         * config/s390/predicates.md (larl_operand): Use
159         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
160         SYMBOL_REF_ALIGN1_P.
161         (s390_signed_integer_comparison,
162         s390_unsigned_integer_comparison): New predicates.
163
164         * config/s390/s390-protos.h (s390_check_symref_alignment,
165         s390_contiguous_bitmask_p, s390_reload_larl_operand,
166         s390_reload_symref_address,
167         s390_compare_and_branch_condition_mask): Prototypes added.
168
169         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
170         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
171         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
172
173 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
174
175         * config/s390/s390.c (z10_cost): New cost function for z10.
176         (s390_handle_arch_option, override_options): Support
177         -march=z10 switch.
178         (s390_issue_rate): Adjust issue rate for z10.
179         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
180         (processor_flags): Add PF_Z10.
181         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
182         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
183         * gcc/config.gcc: Add z10.
184
185 2008-05-28  Richard Guenther  <rguenther@suse.de>
186
187         PR tree-optimization/36291
188         * tree-flow. h (struct gimple_df): Remove var_anns member.
189         * tree-flow-inline.h (gimple_var_anns): Remove.
190         (var_ann): Simplify.
191         * tree-dfa.c (create_var_ann): Simplify.
192         (remove_referenced_var): Clear alias info from var_anns of globals.
193         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
194         (delete_tree_ssa): Clear alias info from var_anns of globals.
195         Do not free var_anns.
196         (var_ann_eq): Remove.
197         (var_ann_hash): Likewise.
198
199 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
200
201         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
202         and loongson2f entries.
203         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
204         * config/mips/mips.h (processor_type): Add Loongson-2E
205         and Loongson-2F entries.
206         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
207         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
208         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
209         * doc/invoke.texi (MIPS Options): Document loongson2e
210         and loongson2f processor names.
211
212 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
213
214         PR target/35767
215         PR target/35771
216         * config/i386/i386.c (ix86_function_arg_boundary): Use
217         alignment of canonical type.
218         (ix86_expand_vector_move): Check unaligned memory access for
219         all SSE modes.
220
221 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
222
223         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
224         Moved to the front of file.
225
226 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
227             H.J. Lu  <hongjiu.lu@intel.com>
228
229         * dwarf2out.c (current_fde): New.
230         (add_cfi): Use it.
231         (lookup_cfa:): Likewise.
232         (dwarf2out_end_epilogue): Likewise.
233         (dwarf2out_note_section_used): Likewise.
234
235 2008-05-27  Michael Matz  <matz@suse.de>
236
237         PR c++/27975
238         * c.opt (Wenum-compare): New warning option.
239         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
240
241 2008-05-27  Michael Matz  <matz@suse.de>
242
243         PR middle-end/36326
244         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
245         non-BLKmode types.
246         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
247         into memory as tail calls.
248
249 2008-05-27  Richard Guenther  <rguenther@suse.de>
250
251         PR tree-optimization/36339
252         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
253         pointers cause all addressable variables to be call clobbered.
254
255 2008-05-27  Richard Guenther  <rguenther@suse.de>
256
257         PR tree-optimization/36245
258         * tree-ssa-address.c (add_to_parts): Deal with non-pointer
259         bases.
260
261 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
262
263         * config/s390/s390.md: Replace all occurences of the 'm'
264         constraint with 'RT'.
265
266 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
267
268         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
269         definitions added.
270         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
271         "*movdi_64".
272         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
273         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
274         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
275
276 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
277
278         * reload.c: (find_reloads): Skip alternatives according to the
279         "enabled" attribute. Constify the constraint variable.
280         * recog.c (get_attr_enabled): Add default implementation.
281         (extract_insn): Set the alternative_enabled_p array
282         in the recog_data struct.
283         (preprocess_constraints, constrain_operands): Skip
284         alternatives according to the "enabled" attribute
285         * recog.h (struct recog_data): New field alternative_enabled_p.
286         (skip_alternative): New inline function.
287         * regclass.c: (record_operand_costs): Check the "enabled"
288         attribute.
289         (record_reg_classes): Skip alternative according to the
290         "enabled" attribute.
291
292         * doc/md.texi: Add documention for the "enabled" attribute.
293
294 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
295
296         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
297         * postreload.c (reload_cse_simplify_operands): Replace 'm'
298         constraint with TARGET_MEM_CONSTRAINT.
299         * recog.c (asm_operand_ok, preprocess_constraints,
300         constrain_operands): Likewise.
301         * regclass.c (record_reg_classes): Likewise.
302         * reload.c (find_reloads, alternative_allows_const_pool_ref):
303         Likewise.
304         * reload1.c (maybe_fix_stack_asms): Likewise.
305         * stmt.c (parse_output_constraint, parse_input_constraint):
306         Likewise.
307         * recog.h: Adjust comment.
308         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
309         * genoutput.c (note_constraint): Don't emit error for 'm'
310         constraint.
311         * doc/md.texi: Add a note to description of 'm' constraint.
312         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
313
314 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
315
316         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
317         that the bitfield is of integral type before testing its precision.
318
319 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
320             Sa Liu  <saliu@de.ibm.com> 
321
322         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
323         __modti3, __udivti3, __umodti3 and __udivmodti4.
324         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
325         that implement TImode mul and div functions.
326         * config/spu/multi3.c: New. Implement __multi3.
327         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
328         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
329         functions on SPU.
330
331 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
332
333         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
334         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
335         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
336         tls_sysv_suffix): New mode and mode attribute iterators.
337         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
338         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
339         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
340         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
341         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
342         iterators.
343
344 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
345
346         PR tree-optimization/36329
347         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
348         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
349         * cgraphbuild.c (initialize_inline_failed): Use the latter
350         macro in lieu of the former.
351         * ipa-inline.c (cgraph_mark_inline): Likewise.
352         (cgraph_decide_inlining_of_small_function): Likewise.
353         (cgraph_decide_inlining): Likewise.
354         (cgraph_decide_inlining_incrementally): Likewise.
355
356 2008-05-26  Tristan Gingold  <gingold@adacore.com>
357             Anatoly Sokolov  <aesok@post.ru>
358
359         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
360         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
361         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
362         optimization for 'avr6' architecture.
363
364 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
365
366         PR target/34932
367         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
368
369 2008-05-26  Richard Guenther  <rguenther@suse.de>
370
371         * tree-ssa-sccvn.c (expr_has_constants): Declare.
372         (visit_reference_op_load): Initialize VN_INFO->has_constants
373         properly.
374
375 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
376
377         PR middle-end/36253
378         * caller-save.c (insert_restore): Verify alignment of spill
379         space.
380         (insert_save): Likewise.
381
382         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
383
384         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
385         (STACK_SLOT_ALIGNMENT): Likewise.
386
387         * function.c (LOCAL_ALIGNMENT): Removed.
388         (get_stack_local_alignment): New.
389         (assign_stack_local): Use it.  Set alignment on stack slot.
390         (assign_stack_temp_for_type): Use get_stack_local_alignment.
391
392         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
393         (STACK_SLOT_ALIGNMENT): New.
394
395         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
396         stack slot in XFmode.
397
398         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
399
400 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
401
402         PR/36321
403         * config/i386/i386.md (allocate_stack_worker_64): Make sure
404         argument operand in rax isn't removed.
405
406 2008-05-26  Richard Guenther  <rguenther@suse.de>
407
408         PR middle-end/36300
409         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
410         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
411
412 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
413
414         PR bootstrap/36331
415         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
416
417 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
418
419         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
420         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
421
422 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
423
424          * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
425         build a trampoline if we don't want one.
426         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
427         return zero for nested functions if we don't want a trampoline.
428
429 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
430
431         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
432
433 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
434
435         PR fortran/18428
436         * c.opt: Removed undocumented option '-lang-fortran'.
437         * c-common.h: Removed global variable 'lang_fortran'.
438         * c-opts.c (c_common_handle_option): Removed code to handle
439         option '-lang-fortran'. Updated includes.
440         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
441         definition of '__GFORTRAN__'.
442         (define__GNUC__): Reimplemented to use BASEVER and
443         cpp_define_formatted.
444         (builtin_define_with_value_n): Removed.
445         * c-incpath.h: Renamed to ...
446         * incpath.h: ... this.
447         * c-incpath.c: Renamed to ...
448         * incpath.c: ... this. Updated includes.
449         * fix-header.c: Updated includes.
450         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
451         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
452         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
453
454 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
455
456         * tree.h: Update the table of flags used on tree nodes.
457         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
458         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
459         (FORCED_LABEL): Add access check.
460         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
461         (ASM_INPUT_P): Likewise.
462         (ASM_VOLATILE_P): Likewise.
463         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
464         (OMP_SECTION_LAST): Access private_flag directly.
465         (OMP_RETURN_NOWAIT): Likewise.
466         (OMP_PARALLEL_COMBINED): Likewise.
467         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
468         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
469         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
470         deprecated_flag directly.
471
472 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
473
474         * final.c (frame_pointer_needed): Removed.
475         * flags.h (frame_pointer_needed): Likewise.
476
477         * function.h (rtl_data): Add frame_pointer_needed.
478         (frame_pointer_needed): New.
479
480 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
481
482         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
483
484 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
485
486         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
487         SRC is a REG.
488
489 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
490
491         * c-common.c (strip_array_types): Move function to..
492         * tree.c: ..here.
493         (get_inner_array_type): Delete.
494         * c-common.h (strip_array_types): Move declaration to..
495         * tree.h: ..here.
496         (get_inner_array_type): Delete.
497         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
498         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
499         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
500         * config/pa/pa.c (emit_move_sequence): Likewise.
501
502 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
503
504         * config/i386/i386.md (*sse_prologue_save_insn): Set length
505         attribute to 34.
506
507 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
508
509         * function.c: Include target hook for nonlocal_goto frame value.
510
511 2008-05-24  Richard Guenther  <rguenther@suse.de>
512
513         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that
514         a scalar variable can be only accessed through a pointer
515         or a union.
516
517 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
518
519         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
520         * doc/extend.texi: Likewise.
521
522 2008-05-23  DJ Delorie  <dj@redhat.com>
523
524         * config/m32c/jump.md (untyped_call): Add.
525
526         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
527         for A24 to PSImode.
528         (m32c_address_cost): Detail costs for indirect offsets.
529
530 2008-05-23  Rafael Espindola  <espindola@google.com>
531
532         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
533         if a node is a SUBREG.
534         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
535         is a SUBREG.
536
537 2008-05-23  Paul Brook  <paul@codesourcery.com>
538             Carlos O'Donell  <carlos@codesourcery.com>
539
540         * doc/extend.texi: Clarify use of __attribute__((naked)).
541         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
542         * target.h (gcc_target): Add allocate_stack_slots_for_args.
543         * function.c (use_register_for_decl): Use
544         targetm.calls.allocate_stack_slots_for_args.
545         * target-def.h (TARGET_CALLS): Add 
546         TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
547         * config/arm/arm.c (arm_allocate_stack_slots_for_args): 
548         New function.
549         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
550
551 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
552
553         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
554
555 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
556
557         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
558         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
559         is only rounded once.
560
561 2008-05-23  Richard Guenther  <rguenther@suse.de>
562
563         * tree-ssa-operands.c (mark_difference_for_renaming): Use
564         bitmap_xor.
565
566 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
567             Jakub Jelinek  <jakub@redhat.com>
568
569         PR target/36079
570         * configure.ac: Handle --enable-cld.
571         * configure: Regenerated.
572         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
573         * config/i386/i386.h (struct machine_function): Add needs_cld field.
574         (ix86_current_function_needs_cld): New define.
575         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
576         (cld): New isns pattern.
577         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
578         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
579         * config/i386/i386.opt (mcld): New option.
580         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
581         TARGET_CLD and ix86_current_function_needs_cld.
582         (override_options): Use -mcld by default for 32-bit code if
583         USE_IX86_CLD.
584
585         * doc/install.texi (Options specification): Document --enable-cld.
586         * doc/invoke.texi (Machine Dependent Options)
587         [i386 and x86-64 Options]: Add -mcld option.
588         (Intel 386 and AMD x86-64 Options): Document -mcld option.
589
590 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
591         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
592         (return_in_memory_64): Likewise.
593         (return_in_memory_ms_64): Likewise.
594
595 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
596
597         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
598         * builtins.c (fold_builtin_fpclassify): New.
599         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
600         * builtins.def (BUILT_IN_FPCLASSIFY): New.
601         * c-common.c (handle_type_generic_attribute): Adjust to accept
602         fixed arguments before an elipsis.
603         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
604         * doc/extend.texi: Document __builtin_fpclassify.
605
606 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
607
608         * omp-low.c (gate_expand_omp_ssa): Remove.
609         (pass_expand_omp_ssa): Remove.
610         (gate_expand_omp): Do not check for flag_openmp_ssa.
611         * common.opt (-fopenmp-ssa): Remove.
612         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
613
614 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
615
616         * config/sh/sh.opt (mfixed-range): New option.
617         * config/sh/sh-protos.h (sh_fix_range): Declare.
618         * config/sh/sh.c (sh_fix_range): New function.
619         * config/sh/sh.h (sh_fixed_range_str): Declare.
620         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
621         is not empty.
622         * doc/invoke.texi (SH Options): Document -mfixed-range.
623
624 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
625
626         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
627         it before the redeclaration.
628
629 2008-05-22  Anatoly Sokolov <aesok@post.ru>
630
631         * config/avr/avr.c (get_sequence_length): Add new function.
632         (expand_prologue, expand_epilogue): Remove duplicate code.
633
634 2008-05-22  Rafael Espindola  <espindola@google.com>
635
636         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
637         sharing.
638
639 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
640
641         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
642         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
643
644         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
645         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
646         (vect_update_misalignment_for_peel): Likewise.
647         (vector_alignment_reachable_p): Likewise.
648         * tree-vect-transform.c (vectorizable_load): Likewise.
649         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
650         (get_vectype_for_scalar_type): Pass mode of scalar_type
651         to UNITS_PER_SIMD_WORD.
652
653         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
654         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
655         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
656         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
657         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
658
659 2008-05-22  Ira Rosen  <irar@il.ibm.com>
660
661         PR tree-optimization/36293
662         * tree-vect-transform.c (vect_transform_strided_load): Don't check
663         if the first load must be skipped because of a gap.
664
665 2008-05-22  Richard Guenther  <rguenther@suse.de>
666
667         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
668         more cases of offset disambiguation that is possible if
669         strict-aliasing rules apply.
670         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
671         for basic offset and type-based disambiguation.
672
673 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
674
675         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
676         ix86_expand_vector_set on V16QImode for SSE4.1.
677
678 2008-05-21  Tom Tromey  <tromey@redhat.com>
679
680         * c.opt (Wimport): Mark as undocumented.
681         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
682         -Wno-import.
683         (Warning Options): Likewise.
684         * doc/cppopts.texi: Don't mention -Wimport.
685
686 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
687
688         PR tree-optimization/36287
689         PR tree-optimization/36286
690         * lambda-code.c (build_access_matrix): Do not use the loop->num
691         for computing the number of induction variables: use the loop depth
692         instead.
693
694 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
695
696         PR/36280
697         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
698         option -f(no-)leading-underscore.
699
700 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
701
702         * config/i386/i386.c (ix86_expand_vector_init_general): Use
703         GET_MODE_NUNITS (mode).
704
705 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
706
707         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
708         (-mmulhw): Add 464 to description.
709         (-mdlmzb): Likewise.
710         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
711         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
712         464fp entries.
713         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
714         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
715         * config/rs6000/rs6000.md: Update comments for 464.
716
717 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
718
719         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
720
721 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
722
723         * config/i386/sse.md (vec_extractv4sf): Removed.
724         (vec_extractv2df): Likewise.
725         (vec_extractv2di): Likewise.
726         (vec_extractv4si): Likewise.
727         (vec_extractv8hi): Likewise.
728         (vec_extractv16qi): Likewise.
729         (vec_extract<mode>): New.
730
731 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
732
733         * config/i386/sse.md (vec_setv4sf): Removed.
734         (vec_setv2df): Likewise.
735         (vec_setv2di): Likewise.
736         (vec_setv4si): Likewise.
737         (vec_setv8hi): Likewise.
738         (vec_setv16qi): Likewise.
739         (vec_set<mode>): New.
740
741 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
742
743         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
744         goto for vec_concat and vec_interleave.
745
746 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
747
748         * config/i386/sse.md (vec_initv4sf): Removed.
749         (vec_initv2df): Likewise.
750         (vec_initv2di): Likewise.
751         (vec_initv4si): Likewise.
752         (vec_initv8hi): Likewise.
753         (vec_initv16qi): Likewise.
754         (vec_init<mode>): New.
755
756 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
757
758         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
759
760 2008-05-21  Tom Tromey  <tromey@redhat.com>
761
762         * ggc-zone.c (lookup_page_table_if_allocated): New function.
763         (zone_find_object_offset): Likewise.
764         (gt_ggc_m_S): Likewise.
765         (highest_bit): Likewise.
766         * ggc-page.c (gt_ggc_m_S): New function.
767         * stringpool.c (string_stack): Remove.
768         (init_stringpool): Update.
769         (ggc_alloc_string): Use ggc_alloc.
770         (maybe_delete_ident): New function.
771         (ggc_purge_stringpool): Likewise.
772         (gt_ggc_m_S): Remove.
773         * ggc-common.c (ggc_protect_identifiers): New global.
774         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
775         ggc_protect_identifiers.
776         * ggc.h (ggc_protect_identifiers): Declare.
777         (gt_ggc_m_S): Update.
778         (ggc_purge_stringpool): Declare.
779         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
780         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
781         special case.
782         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
783
784 2008-05-21  David S. Miller  <davem@davemloft.net>
785
786         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
787         tmake_file.
788
789 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
790
791         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
792         once finished.
793
794 2008-05-20  David Daney  <ddaney@avtrex.com>
795
796         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
797         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
798         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
799         UNSPEC_UPDATE_GOT_VERSION): Renumber.
800         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
801         (atomic_hiqi_op): New define_code_iterator.
802         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
803         mips_expand_compare_and_swap_12.
804         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
805         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
806         (sync_<optab><mode>, sync_old_<optab><mode>,
807         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
808         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
809         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
810         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
811         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
812         (test_and_set_12): New insn.
813         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
814         sync_new_<optab><mode>, sync_old_nand<mode>,
815         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
816         clobber to operand 0 for SI and DI mode insns.
817         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
818         mips_gen_fn_4): New typedefs.
819         (mips_gen_fn_ptrs): Define new union type.
820         (mips_expand_compare_and_swap_12): Remove declaration.
821         (mips_expand_atomic_qihi): Declare function.
822         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
823         (mips_expand_atomic_qihi): ... this.  Use new generator function
824         parameter.
825         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
826         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
827         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP,
828         MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
829         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
830         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
831         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
832         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
833         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
834         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
835         MIPS_SYNC_EXCHANGE_12_ZERO_OP,
836         MIPS_SYNC_EXCHANGE_12_NONZERO_OP): New macros.
837
838 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
839
840         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
841         the missing break.
842
843 2008-05-20  Anatoly Sokolov <aesok@post.ru>
844
845         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
846         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
847         (avr_attribute_table): Add 'OS_main' function attribute.
848         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
849         functions with 'OS_main' attribute.
850
851 2008-05-20  Richard Guenther  <rguenther@suse.de>
852
853         PR tree-optimization/35204
854         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
855         helper, split out from ...
856         (DFS): ... here.  Make the DFS walk non-recursive.
857
858 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
859             Jan Sjodin  <jan.sjodin@amd.com>
860
861         PR tree-optimization/36181
862         * tree-parloops.c (loop_has_vector_phi_nodes): New.
863         (parallelize_loops): Don't parallelize when the loop has vector
864         phi nodes.
865
866 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
867             Sebastian Pop  <sebastian.pop@amd.com>
868
869         * tree-loop-linear.c (gather_interchange_stats): Look in the access
870         matrix, and never look at the tree representation of the memory
871         accesses.
872         (linear_transform_loops): Computes parameters and access matrices.
873         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
874         when fails.
875         (access_matrix_get_index_for_parameter): New.
876         * tree-data-ref.h (struct access_matrix): New.
877         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
878         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
879         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
880         am_vector_index_for_loop): New.
881         (struct data_reference): Add field access_matrix.
882         (DR_ACCESS_MATRIX): New.
883         (compute_data_dependences_for_loop): Update declaration.
884         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
885         * lambda.h (lambda_vector_vec_p): Declared.
886         * lambda-code.c: Depend on pointer-set.h.
887         (lambda_collect_parameters_from_af, lambda_collect_parameters,
888         av_for_af_base, av_for_af, build_access_matrix,
889         lambda_compute_access_matrices): New.
890         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
891
892 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
893
894         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
895         $SOURCEDIR/include.
896
897 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
898             Sebastian Pop  <sebastian.pop@amd.com>
899
900         PR tree-optimization/36206
901         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
902         FOLD_CONVERSIONS.
903         (instantiate_scev_1): Rename flags to fold_conversions.
904         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
905         outeside instantiation_loop.
906         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
907         (evolution_function_is_affine_or_constant_p): Removed.
908         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
909         instantiate_scev.
910         (analyze_siv_subscript): Pass in the loop nest number.
911         Call evolution_function_is_affine_in_loop instead of 
912         evolution_function_is_affine_p.
913         (analyze_overlapping_iterations): Pass in the loop nest number.
914
915 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
916             Sebastian Pop  <sebastian.pop@amd.com>
917
918         PR tree-optimization/36206
919         * tree-chrec.h (chrec_fold_op): New.
920         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
921         and other trees.
922
923 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
924
925         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
926         (DIRS_EQ): New.
927         (remove_duplicates): Do not set inode on non-inode systems.
928         Use DIRS_EQ.
929
930 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
931
932         * config.gcc (tm_file): Update comments about relative pathnames.
933
934 2008-05-20  Richard Guenther  <rguenther@suse.de>
935
936         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
937         * tree-ssa-sccvn.c (process_scc): Likewise.
938         * tree-ssa-sink.c (execute_sink_code): Likewise.
939         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
940         * tree-vrp.c (process_assert_insertions): Likewise.
941         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
942         (perform_tree_ssa_dce): Likewise.
943         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
944         (dump_dominator_optimization_stats): Likewise.
945         * tree-vectorizer.c (vectorize_loops): Likewise.
946
947 2008-05-20  Richard Guenther  <rguenther@suse.de>
948
949         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
950
951 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
952
953         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
954         (ix86_i386elf_return_in_memory): Likewise.
955         (ix86_i386interix_return_in_memory): Likewise.
956         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
957         (SUBTARGET_RETURN_IN_MEMORY): New.
958         * config/i386/i386elf.h: Likewise.
959         * config/i386/ptx4-i.h: Likewise.
960         * config/i386/sol2-10.h: Likewise.
961         * config/i386/sysv4.h: Likewise.
962         * config/i386/vx-common.h: Likewise.
963         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
964         * config/i386/i386.c (ix86_return_in_memory): Made static and
965         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
966         (ix86_i386elf_return_in_memory): Removed.
967         (ix86_i386interix_return_in_memory): Removed.
968         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
969         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
970
971 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
972
973         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
974
975 2008-05-19  Xinliang David Li  <davidxl@google.com>
976
977         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
978         * opts.c: Ditto.
979         * common.opt: Ditto.
980         * doc/invoke.texi: Ditto.
981
982 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
983
984         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
985         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
986
987 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
988
989         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
990         sizes of operand array from 8/4 to 4/2.
991         (ix86_expand_vector_init_general): Change size of operand array
992         from 32 to 16.  Remove op0, op1 and half_mode.
993
994 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
995
996         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
997         (ix86_expand_vector_init_interleave): Likewise.
998         (ix86_expand_vector_init_general): Use them.  Assert word_mode
999         == SImode when n_words == 4.
1000
1001 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
1002
1003         * config/i386/i386.c (ix86_secondary_reload): New static function.
1004         (TARGET_SECONDARY_RELOAD): New define.
1005         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
1006         * config/i386/i386.md (reload_outqi): Remove.
1007
1008 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1009
1010         PR middle-end/35509
1011         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
1012         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
1013         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
1014         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
1015         (fold_builtin_1): Likewise.
1016         * builtins.def (BUILT_IN_ISINF_SIGN): New.
1017         c-common.c (check_builtin_function_arguments): Handle
1018         BUILT_IN_ISINF_SIGN.
1019         * doc/extend.texi: Document __builtin_isinf_sign.
1020         * fold-const.c (operand_equal_p): Handle COND_EXPR.
1021
1022 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
1023
1024         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
1025         EH cleanup at the end of the pass, search for those that have been
1026         turned into forwarder blocks and do the cleanup on their successor.
1027
1028 2008-05-18  Richard Guenther  <rguenther@suse.de>
1029
1030         * tree-cfg.c (verify_gimple_expr): Allow conversions from
1031         pointers to sizetype and vice versa.
1032
1033 2008-05-18 Xinliang David Li   <davidxl@google.com>
1034
1035         * gcc/tree-ssa-dce.c: Coding style fix.
1036         (check_pow): Documentation comment. 
1037         (check_log): Documenation comment. Coding style fix.
1038         (is_unnecessary_except_errno_call): Ditto.
1039         (gen_conditions_for_pow): Ditto.
1040         (gen_conditions_for_log): Ditto.
1041         (gen_shrink_wrap_conditions): Ditto.
1042         (shrink_wrap_one_built_in_calls): Ditto.
1043         * gcc/doc/invoke.texi: Better documentation string.
1044         * ChangeLog: Fix wrong change log entries from 
1045         May 17 checkin on function call DCE.
1046
1047 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
1048
1049         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
1050
1051 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
1052
1053         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
1054         * df-problems.c (simulation routines): Fixed block comment to
1055         properly say how to add forwards scanning functions.
1056         
1057 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1058
1059         * tree-inline.c (setup_one_parameter): Remove dead code.
1060
1061 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
1062
1063         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
1064         a BIT_AND_EXPR only for an INTEGER_TYPE.
1065
1066 2008-05-17 Xinliang David Li   <davidxl@google.com>
1067
1068         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
1069         (check_pow, check_log, is_unnecessary_except_errno_call): New 
1070         functions to check for eliminating math functions that are pure 
1071         except for setting errno.
1072         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
1073         general condition expressions for shrink-wrapping pow/log calls.
1074         (gen_shrink_wrap_conditions): Ditto.
1075         (shrink_wrap_one_built_in_call): Ditto.
1076         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
1077         (mark_operand_necessary): If debugging, output if OP is necessary.
1078         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
1079         unnecessary.
1080         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
1081         opt level >= 2.
1082         * gcc/common.opt: New user flag -ftree-builtin-dce.
1083         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
1084
1085 2008-05-16  David S. Miller  <davem@davemloft.net>
1086
1087         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
1088         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1089
1090 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
1091
1092         PR target/36246
1093         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
1094
1095 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1096
1097         * ifcvt.c (dead_or_predicable): Rename
1098         df_simulate_one_insn_backwards to df_simulate_one_insn.
1099         * recog.c (peephole2_optimize): Ditto.
1100         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
1101         Ditto.
1102         * df.h: Rename df_simulate_one_insn_backwards to
1103         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
1104         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
1105         scanning of defs and uses.
1106         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
1107         (df_simulate_one_insn_forwards): Removed.
1108
1109 2008-05-16  Doug Kwan  <dougkwan@google.com>
1110
1111         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
1112         QNaN & SNaN.
1113         (real_from_string): Handle NaNs and Inf as approriate.
1114
1115 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
1116
1117         * doc/gty.texi (Source Files Containing Type Information): Note
1118         that headers should appear first in the gtfiles list.
1119
1120 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1121
1122         * tree.def (COND_EXEC): Properly documented this code.
1123
1124 2008-05-16  Diego Novillo  <dnovillo@google.com>
1125
1126         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
1127         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
1128         the new field.
1129
1130 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1131
1132         * tree-ssa-dse (max_stmt_uid): Removed.
1133         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
1134         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
1135         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
1136         * function.h (cfun.last_stmt_uid): New field.
1137         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
1138         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
1139         New functions.
1140         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
1141         (create_stmt_ann): Initialize the ann->uid field.
1142         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
1143         with new calls.
1144         * tree-flow.h (renumber_gimple_stmt_uids): New function.
1145
1146 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
1147
1148         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
1149         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
1150         (init_empty_tree_cfg): Call it.
1151
1152 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1153
1154         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
1155         Update all users.
1156
1157 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
1158
1159         * doc/invoke.text (-fdump-tree-*-verbose): New option.
1160         * tree-dump.c (dump_options): New verbose option.
1161         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
1162         Add verbose dump.
1163         * tree-pass.h (TDF_VERBOSE): New dump flag.
1164         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
1165         (tree-flow.h): Added include.
1166         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
1167
1168 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
1169
1170         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
1171
1172         From Jie Zhang  <jie.zhang@analog.com>
1173         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1174         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
1175         mcpu=bf561-none and mcpu=bf561-0.2.
1176         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1177         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
1178         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
1179         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
1180         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
1181         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
1182         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
1183         option.
1184         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
1185         (cputype_selected): Remove.
1186         (bfin_handle_option): Don't use cputype_selected.
1187         (override_options): When no mcpu option, enable all workarounds.
1188         Don't use bfin_workarounds.
1189         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
1190         processor type.
1191         (DEFAULT_CPU_TYPE): Don't define.
1192
1193 2008-05-16  Richard Guenther  <rguenther@suse.de>
1194
1195         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
1196         on deletion of the last stmt.
1197
1198 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1199
1200         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
1201         V8HImode for SSE2 and V16QImode for SSE4.1.
1202
1203 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
1204
1205         * cgraph.h (compute_inline_parameters): Made public.
1206         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
1207         variable_generate_summary, function_write_summary,
1208         variable_write_summary, variable_read_summary.  Added generate_summary,
1209         write_summary, read_summary.
1210         * cgraphunit.c (cgraph_process_new_functions): Changed call from
1211         pass_ipa_inline.function_generate_summary, to
1212         compute_inline_parameters. 
1213         * ipa-inline.c (compute_inline_parameters): Made public and added
1214         node parameter.
1215         (compute_inline_parameters_for_current): New function.
1216         (pass_inline_param): Now calls compute_inline_parameters_for_current.
1217         (inline_generate_summary): Removed parameter and made to loop over
1218         all cgraph nodes.
1219         (pass_ipa_inline): Updated for new IPA_PASS structure.
1220         * passes.c (execute_ipa_summary_passes): Now is called once per
1221         pass rather than once per node*pass.
1222         
1223 2008-05-15  Anatoly Sokolov <aesok@post.ru>
1224
1225         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
1226         avr_have_mul_p, avr_asm_only_p): Remove variables.
1227         (avr_override_options): Remove initialization of removed variables.
1228         (avr_file_start):  Convert removed variables to fields of 
1229         'struct base_arch_s *avr_current_arch'. 
1230         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
1231         (AVR_HAVE_MUL): (Ditto.).
1232         (AVR_HAVE_MOVW): (Ditto.).
1233         (AVR_HAVE_LPMX): (Ditto.). 
1234         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
1235         avr_asm_only_p): Remove declaration.
1236
1237 2008-05-15  Diego Novillo  <dnovillo@google.com>
1238
1239         * config/arm/arm.c (arm_return_in_memory): Fix return type.
1240         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
1241
1242 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
1243
1244         PR middle-end/36194
1245         * combine.c (check_conversion): Rename back to check_promoted_subreg.
1246         Don't call record_truncated_value from here.
1247         (record_truncated_value): Turn it into a for_each_rtx callback.
1248         (record_truncated_values): New function.
1249         (combine_instructions): Call note_uses with record_truncated_values.
1250         Change name of check_conversion to check_promoted_subreg. 
1251
1252 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
1253
1254         * doc/sourcebuild.texi: Document support for torture tests.
1255
1256 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
1257
1258         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
1259         to alternative 4 of operand 2.
1260
1261 2008-05-15  Richard Guenther  <rguenther@suse.de>
1262
1263         * tree-pass.h (current_pass): Declare.
1264         (get_pass_for_id): Likewise.
1265         * passes.c (passes_by_id, passes_by_id_size): New globals.
1266         (set_pass_for_id): New function.
1267         (get_pass_for_id): Likewise.
1268         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
1269         (execute_function_todo): Flush per function statistics.
1270         * toplev.c (compile_file): Init statistics.
1271         (general_init): Do early statistics initialization.
1272         (finalize): Finish statistics.
1273         * statistics.h (statistics_early_init): Declare.
1274         (statistics_init): Likewise.
1275         (statistics_fini): Likewise.
1276         (statistics_fini_pass): Likewise.
1277         (statistics_counter_event): Likewise.
1278         (statistics_histogram_event): Likewise.
1279         * statistics.c: New file.
1280         * Makefile.in (OBJS-common): Add statistics.o.
1281         (statistics.o): Add dependencies.
1282         * doc/invoke.texi (-fdump-statistics): Document.
1283
1284         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
1285         (insert): Likewise.
1286         (execute_pre): Use statistics_counter_event.
1287         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
1288         (substitute_and_fold): Increment it.  Use statistics_counter_event.
1289
1290 2008-05-15  Diego Novillo  <dnovillo@google.com>
1291
1292         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
1293
1294         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
1295         * tree-ssa-alias.c (new_type_alias): Remove references to
1296         sub-variables from comment.
1297         * tree-ssa-operands.c (swap_tree_operands): Likewise.
1298
1299 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1300
1301         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
1302         attribute to 1 only for insertps alternative.
1303
1304 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1305
1306         * config/bfin/bfin.md (loadbytes): New pattern.
1307         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
1308         (bfin_init_builtins): Initialize it.
1309         (bdesc_1arg): Add it.
1310
1311 2008-05-15  Sa Liu  <saliu@de.ibm.com>
1312
1313         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
1314         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
1315         * testsuite/lib/target-supports.exp: Add
1316         check_effective_target_fortran_integer_16.
1317
1318 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
1319
1320         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
1321         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
1322         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
1323         (TARGET_RETURN_IN_MEMORY): Define.
1324
1325 2008-05-15  Richard Guenther  <rguenther@suse.de>
1326
1327         PR middle-end/36244
1328         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
1329         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
1330         represent unmodifiable vars.
1331
1332 2008-05-15  Richard Guenther  <rguenther@suse.de>
1333
1334         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
1335         INDIRECT_REF and TARGET_MEM_REF.
1336         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1337         TARGET_MEM_REF.
1338
1339 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
1340             H.J. Lu  <hongjiu.lu@intel.com>
1341
1342         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
1343         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
1344         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
1345         insn alternatives.  Add missing alternatives.
1346         (*vec_concatv2di_rex64_sse4_1): Likewise.
1347         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
1348         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
1349         Require TARGET_SSE.
1350
1351 2008-05-15  Richard Guenther  <rguenther@suse.de>
1352
1353         PR tree-optimization/36009
1354         PR tree-optimization/36204
1355         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
1356         (determine_invariantness_stmt): Record the loop a store is
1357         always executed in.
1358         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
1359         dependency.
1360
1361 2008-05-15  Richard Guenther  <rguenther@suse.de>
1362
1363         PR tree-optimization/34330
1364         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
1365         through the pointer will alias the SMT.
1366
1367 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
1368
1369         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
1370
1371 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1372
1373         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
1374
1375 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1376             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
1377
1378         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
1379         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
1380         (vashl_optab): New optab for vector/vector shifts.
1381         (vashr_optab): Ditto.
1382         (vlshr_optab): Ditto.
1383         (vrotl_optab): Ditto.
1384         (vrotr_optab): Ditto.
1385         (optab_subtype): New enum for optab_for_tree_code call.
1386         (optab_for_tree_code): Add enum optab_subtype argument.
1387
1388         * optabs.c (optab_for_tree_code): Take an additional argument to
1389         distinguish between a vector shift by a scalar and vector shift by
1390         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
1391         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
1392         vector shift by a vector.
1393         (expand_widen_pattern_expr): Pass additional argument to
1394         optab_for_tree_code.
1395
1396         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
1397         vrotl_optab, vrotr_optab.
1398
1399         * expr.c (expand_expr_real_1): Update calls to
1400         optab_for_tree_code to distinguish between vector shifted by a
1401         scalar and vector shifted by a vector.
1402         * tree-vectorizer.c (supportable_widening_operation): Ditto.
1403         (supportable_narrowing_operation): Ditto.
1404         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
1405         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
1406         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
1407         (vect_create_epilog_for_reduction): Ditto.
1408         (vectorizable_reduction): Ditto.
1409         (vectorizable_operation): Ditto.
1410         (vect_strided_store_supported): Ditto.
1411         (vect_strided_load_supported): Ditto.
1412         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
1413         * expmed.c (expand_shift): Ditto.
1414
1415         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
1416         scalar type.
1417         (ashr@var{m}3): Ditto.
1418         (vashl@var{m}3): Document new vector/vector shift standard name.
1419         (vashr@var{m}3): Ditto.
1420         (vlshr@var{m}3): Ditto.
1421         (vrotl@var{m}3): Ditto.
1422         (vrotr@var{m}3): Ditto.
1423
1424         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
1425         (PPERM_INVERT): Ditto.
1426         (PPERM_REVERSE): Ditto.
1427         (PPERM_REV_INV): Ditto.
1428         (PPERM_ZERO): Ditto.
1429         (PPERM_ONES): Ditto.
1430         (PPERM_SIGN): Ditto.
1431         (PPERM_INV_SIGN): Ditto.
1432         (PPERM_SRC1): Ditto.
1433         (PPERM_SRC2): Ditto.
1434
1435         * config/i386/sse.md (mulv2di3): Add SSE5 support.
1436         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
1437         allows a memory operand to be the value being added, and split it
1438         to improve vectorization.
1439         (sse5_pmacsdqh_mem): Ditto.
1440         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
1441         (sse5_mulv2div2di3_high): Ditto.
1442         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
1443         (vec_pack_trunc_v4si): Ditto.
1444         (vec_pack_trunc_v2di): Ditto.
1445         (sse5_pcmov_<mode>): Remove code that tried to use use
1446         andps/andnps instead of pcmov.
1447         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
1448         pmacsdqh instructions.
1449         (vec_widen_smult_lo_v4si): Ditto.
1450
1451         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
1452         (PPERM_INVERT): Ditto.
1453         (PPERM_REVERSE): Ditto.
1454         (PPERM_REV_INV): Ditto.
1455         (PPERM_ZERO): Ditto.
1456         (PPERM_ONES): Ditto.
1457         (PPERM_SIGN): Ditto.
1458         (PPERM_INV_SIGN): Ditto.
1459         (PPERM_SRC1): Ditto.
1460         (PPERM_SRC2): Ditto.
1461         (ix86_expand_sse_movcc): Move the SSE5 test after the if
1462         true/false tests.
1463         (ix86_expand_int_vcond): If SSE5 generate all possible integer
1464         comparisons.
1465         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
1466         says ignore whether the last reference is a memory operand.
1467
1468 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1469             Paolo Bonzini <bonzini at gnu dot org>
1470
1471         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
1472         shift patterns.
1473
1474         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
1475         (vlshr<mode>3): Rename from vlshr<mode>3.
1476         (vashr<mode>3): Rename from vashr<mode>3.
1477         (mulv4sf3): Change the names of vector shift patterns.
1478         (mulv4si3): Ditto.
1479         (negv4sf2): Ditt.
1480
1481         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
1482         shift insns.
1483
1484         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
1485         (SI_SHLHI): Ditto.
1486         (SI_SHL): Ditto.
1487         (SI_SHLI): Ditto.
1488         (SI_ROTH): Ditto.
1489         (SI_ROTHI): Ditto.
1490         (SI_ROT): Ditto.
1491         (SI_ROTI): Ditto.
1492         (SPU_RL_0): Ditto.
1493         (SPU_RL_1): Ditto.
1494         (SPU_RL_2): Ditto.
1495         (SPU_RL_3): Ditto.
1496         (SPU_RL_4): Ditto.
1497         (SPU_RL_5): Ditto.
1498         (SPU_RL_6): Ditto.
1499         (SPU_RL_7): Ditto.
1500         (SPU_SL_0): Ditto.
1501         (SPU_SL_1): Ditto.
1502         (SPU_SL_2): Ditto.
1503         (SPU_SL_3): Ditto.
1504         (SPU_SL_4): Ditto.
1505         (SPU_SL_5): Ditto.
1506         (SPU_SL_6): Ditto.
1507         (SPU_SL_7): Ditto.
1508
1509         * config/spu/spu.md (v): New iterator macro to add v for vector types.
1510         (floatunssidf2_internal): Change vector/vector shift names.
1511         (floatunsdidf2_internal): Ditto.
1512         (mulv8hi3): Ditto.
1513         (ashrdi3): Ditto.
1514         (ashrti3): Ditto.
1515         (cgt_df): Ditto.
1516         (cgt_v2df): Ditto.
1517         (dftsv): Ditto.
1518         (vashl<mode>3): Rename from ashl<mode>3.
1519         (vashr<mode>3): Rename from ashr<mode>3.
1520         (vlshr<mode>3): Rename from lshr<mode>3.
1521         (vrotl<mode>3): Rename from rotl<mode>3.
1522
1523 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
1524
1525         PR target/36224
1526         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
1527         multiply gives the wrong value when doing widening multiplies.
1528         (vec_widen_smult_lo_v4si): Ditto.
1529
1530 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
1531
1532         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
1533         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
1534         emit_library_call_value. 
1535         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
1536         * tree.h (ECF_LIBCALL_BLOCK): Removed.
1537         * calls.c (initialize_argument_information, precompute_arguments, 
1538         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
1539         (precompute_arguments): Removed flags parameter.
1540         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
1541         
1542 2008-05-14  Richard Guenther  <rguenther@suse.de>
1543
1544         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
1545         Make sure to register the store if the use is a PHI_NODE.
1546
1547 2008-05-14  Olivier Hainque  <hainque@adacore.com>
1548
1549         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
1550         memory if the component is to be referenced in BLKmode according
1551         to get_inner_reference.
1552
1553 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
1554
1555         * calls.c (emit_library_call_value_1): Restore code clearing
1556         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
1557
1558 2008-05-14  Olivier Hainque  <hainque@adacore.com>
1559             Nicolas Roche  <roche@adacore.com>
1560
1561         * configure.ac: Add support for a "gcc_subdir" variable in
1562         config-lang.in, to denote a subdirectory where the language/GCC
1563         integration files are to be found.
1564         * configure: Regenerate.
1565
1566 2008-05-14  Ira Rosen  <irar@il.ibm.com>
1567
1568         PR tree-optimization/36098
1569         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
1570         value for the first load in the group in case of a gap.
1571         (vect_build_slp_tree): Check that there are no gaps in loads.
1572
1573 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
1574
1575         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
1576         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
1577         expand_copysign_bit, ): Change call to emit_no_conflict_block to
1578         emit_insn and remove unneeded code to construct extra args.
1579         (emit_no_conflict_block): Removed.
1580         * optabls.h: (emit_no_conflict_block): Removed.
1581         * cse.c (cse_extended_basic_block): Remove search for
1582         REG_NO_CONFLICT note.
1583         * global.c: Removed incorrect comment added in revision 117.
1584         * expr.c (convert_move): Change call to emit_no_conflict_block to
1585         emit_insn.
1586         * recog.c: Change comments so that they do not mention
1587         REG_NO_CONFLICT.
1588         * local_alloc.c (combine_regs): Removed last parameter.
1589         (no_conflict_p): Removed.
1590         (block_alloc): Removed note, no_conflict_combined_regno and set
1591         local vars. Removed all code to process REG_NO_CONFLICT blocks.
1592         (combine_regs): Removed already_dead and code to look for
1593         REG_NO_CONFLICT notes.
1594         * lower_subreg (remove_retval_note): Removed code to look for
1595         REG_NO_CONFLICT block.
1596         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
1597         (resolve_clobber): Remove code to process libcalls that have
1598         REG_NO_CONFLICT notes.
1599         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
1600         case.
1601         * combine.c (can_combine_p, distribute_notes):  Removed
1602         REG_NO_CONFLICT case.
1603         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
1604         to emit_insns.
1605         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
1606         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
1607         Ditto.
1608         * reg-notes.def (NO_CONFLICT): Removed.
1609
1610 2008-05-14  David S. Miller  <davem@davemloft.net>
1611
1612         * config/sparc/sparc.c (sparc_profile_hook): If
1613         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
1614         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
1615         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
1616
1617 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1618
1619         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
1620
1621 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
1622
1623         PR target/36222
1624         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
1625         and op1 expansion before vector concat to have less live pseudos.
1626
1627 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1628
1629         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
1630         ix86_expand_vector_set if supported.
1631
1632 2008-05-13  Diego Novillo  <dnovillo@google.com>
1633             Kenneth Zadeck  <zadeck@naturalbridge.com>
1634
1635         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
1636
1637         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
1638         phinodes_print_statistics, init_ssanames, fini_ssanames,
1639         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
1640         release_ssa_name, release_defs, replace_ssa_name_symbol,
1641         ssanames_print_statistics): Move ...
1642         * tree-flow.h: ... here.
1643         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
1644         Use FN instead of cfun.
1645         (make_ssa_name_fn): Rename from make_ssa_name.
1646         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
1647         * tree-flow-inline.h (make_ssa_name): Move from
1648         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
1649         * omp-low.c (expand_omp_parallel):
1650         * tree-flow-inline.h (redirect_edge_var_map_result):
1651         * tree-ssa.c (init_tree_ssa): Add argument FN.
1652         Use it instead of cfun.  Update all users.
1653
1654 2008-05-13  Tom Tromey  <tromey@redhat.com>
1655
1656         PR preprocessor/22168:
1657         * doc/cpp.texi (Top): Update menu.
1658         (Alternatives to Wrapper #ifndef): New node.
1659         (Other Directives): Document deprecation.
1660         (Obsolete Features): Remove menu.
1661         (Assertions): Merge node into Obsolete Features.
1662         (Obsolete once-only headers): Move earlier; rename to Alternatives
1663         to Wrapper #ifndef.
1664         * doc/cppopts.texi: Update.
1665         * c.opt (Wdeprecated): Enable for C and ObjC.
1666         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
1667         (C++ Dialect Options): Move -Wno-deprecated from here to...
1668         (Warning Options): ... here.
1669
1670 2008-05-13  Richard Guenther  <rguenther@suse.de>
1671
1672         PR middle-end/36227
1673         * fold-const.c (fold_sign_changed_comparison): Do not allow
1674         changes in pointer-ness.
1675
1676 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
1677
1678         PR target/24713
1679         * config/sh/sh.c (sh_expand_prologue): Don't clear
1680         RTX_FRAME_RELATED_P for push insns.
1681
1682 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
1683
1684         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
1685
1686 2008-05-12  Anatoly Sokolov <aesok@post.ru>
1687
1688         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
1689         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
1690         Use 'machine->is_leaf' instead of 'leaf_func_p'.
1691
1692 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1693
1694         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
1695         (*vec_concatv4sf_sse): This.
1696         (*sse2_concatv2si): Renamed to ...
1697         (*vec_concatv2si_sse2): This.
1698         (*sse1_concatv2si): Renamed to ...
1699         (*vec_concatv2si_sse): This.
1700         (*vec_concatv2di_rex): Renamed to ...
1701         (*vec_concatv2di_rex64): This.
1702         (*vec_concatv2si_sse4_1): New.
1703         (*vec_concatv2di_rex64_sse4_1): Likewise.
1704
1705 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
1706
1707         PR rtl-optimization/36111
1708         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
1709         that was created for swappable operands.
1710
1711 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
1712
1713         PR ada/36001
1714         * Makefile.in: Substitute GNATMAKE and GNATBIND.
1715         * configure.ac: Add call to ACX_PROG_GNAT.
1716
1717 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
1718
1719         * optc-gen.awk: Fix comment typo.
1720
1721 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
1722
1723         * pretty-print.c (pp_integer_with_precision): Use
1724         HOST_LONG_LONG_FORMAT.
1725
1726 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
1727
1728         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
1729                 
1730 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1731
1732         * config/i386/i386.c (bdesc_ptest): Removed.
1733         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
1734         (bdesc_args): Add __builtin_ia32_ptestz128,
1735         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
1736         (ix86_init_mmx_sse_builtins): Updated.
1737         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
1738         (ix86_expand_builtin): Updated.
1739
1740 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
1741
1742         * tree-cfg.c (valid_fixed_convert_types_p): New function.
1743         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
1744
1745 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
1746
1747         * value-prof.c (interesting_stringop_to_profile): Do not
1748         return early for BUILT_IN_MEMPCPY.
1749
1750 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1751
1752         * calls.c (expand_call): Don't use callgraph to increase
1753         preferred_stack_boundary.
1754
1755         * cgraph.h (cgraph_rtl_info): Use unsigned on
1756         preferred_incoming_stack_boundary.
1757
1758         * final.c (rest_of_clean_state): Use unsigned on
1759         preferred_stack_boundary.
1760
1761 2008-05-09  Tom Tromey  <tromey@redhat.com>
1762
1763         PR preprocessor/22231:
1764         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
1765         proceeding.
1766
1767 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
1768
1769         PR tree-optimization/36129
1770         * tree-ssa-ccp.c: Include value-prof.h.
1771         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
1772         built-in function was folded to a constant.
1773         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
1774
1775 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
1776             Sebastian Pop  <sebastian.pop@amd.com>
1777
1778         * tree-scalar-evolution.c: Document instantiate_scev.
1779         (instantiate_parameters_1): Renamed instantiate_scev_1.
1780         Don't use the same loop for instantiation_loop and evolution_loop.
1781         (instantiate_scev): New.
1782         (instantiate_parameters): Moved...
1783         (resolve_mixers): Update call to instantiate_scev_1 to pass the
1784         same loop twice.  Maintains the semantics for this function.
1785         * tree-scalar-evolution.h (instantiate_scev): Declare.
1786         (instantiate_parameters): ...here.  Now static inline.
1787         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
1788         instead of resolve_mixers.
1789
1790 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
1791
1792         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
1793
1794 2008-05-09  Tomas Bily  <tbily@suse.cz>
1795
1796         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
1797         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
1798         * tree-ssa-structalias.c (get_constraint_for): Likewise.
1799         * c-common.c (c_common_truthvalue_conversion): Likewise.
1800         * tree-object-size.c (compute_object_offset): Likewise.
1801         * tree-inline.c (estimate_num_insns_1): Likewise.
1802         * varasm.c (const_hash_1, compare_constant, copy_constant)
1803         (compute_reloc_for_constant, output_addressed_constants)
1804         (initializer_constant_valid_p): Likewise.
1805         * c-omp.c (check_omp_for_incr_expr): Likewise.
1806         * gimplify.c (gimplify_expr): Likewise.
1807         * c-typeck.c (c_finish_return): Likewise.
1808         * tree-vectorizer.c (supportable_widening_operation)
1809         (supportable_narrowing_operation): Likewise.
1810         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
1811         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
1812         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
1813         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
1814         (descr_info_loc): Likewise.
1815         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
1816         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
1817         (fold_unary): Likewise.
1818         * builtins.c (get_pointer_alignment): Likewise.
1819         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
1820         (instantiate_parameters_1): Likewise.
1821         * tree.c (expr_align, stabilize_reference): Likewise.
1822         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
1823         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
1824         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
1825         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
1826         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
1827         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
1828         Likewise.
1829         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
1830         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
1831         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
1832         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
1833         (forward_propagate_comparison)
1834         (tree_ssa_forward_propagate_single_use_vars): Likewise.
1835         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
1836         * emit-rtl.c (component_ref_for_mem_expr)
1837         (set_mem_attributes_minus_bitpos): Likewise.
1838         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
1839         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
1840         Likewise.
1841         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
1842         (build_function_call, pointer_diff, build_compound_expr)
1843         (c_finish_return): Likewise.
1844         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
1845         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
1846         Likewise.
1847         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
1848         * expr.c (is_aligning_offset): Likewise.
1849         * tree-ssa-alias.c (is_escape_site): Likewise.
1850         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
1851         (check_all_va_list_escapes): Likewise.
1852         * tree-ssa-loop-ivopts.c (determine_base_object)
1853         (determine_common_wider_type): Likewise.
1854         * dojump.c (do_jump): Likewise.
1855         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
1856         * tree-gimple.c (is_gimple_cast): Likewise.
1857         * fold-const.c (decode_field_reference, )
1858         (fold_sign_changed_comparison, fold_unary, fold_comparison)
1859         (fold_binary): Likewise.
1860         * tree-ssa-alias-warnings.c (find_alias_site_helper)
1861         (already_warned_in_frontend_p): Likewise.
1862         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
1863         * tree.c (really_constant_p, get_unwidened): Likewise.
1864         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
1865         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
1866         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
1867         Likewise.
1868         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
1869         CONVERT_EXPR_P.
1870         (CONVERT_EXPR_P): Define.
1871         (CASE_CONVERT): Define.
1872         
1873 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
1874
1875         PR middle-end/36117
1876         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
1877         (delete_unmarked_insns): When deleting a call, call
1878         delete_unreachable_blocks.
1879         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
1880         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
1881
1882 2008-05-08  Richard Guenther  <rguenther@suse.de>
1883
1884         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
1885         (-ftree-salias): Likewise.
1886         (salias-max-implicit-fields): Remove param documentation.
1887         (salias-max-array-elements): Likewise.
1888         * tree-pass.h (pass_create_structure_vars): Remove.
1889         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
1890         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
1891         * tree-ssa-alias.c (create_structure_vars): Remove.
1892         (gate_structure_vars): Likewise.
1893         (pass_create_structure_vars): Likewise.
1894         (gate_build_alias): Likewise.
1895         (pass_build_alias): Adjust to run always and dump the function.
1896         * common.opt (ftree-salias): Hide.
1897         * passes.c (init_optimization_passes): Remove
1898         pass_create_structure_vars, adjust comment.
1899         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
1900         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
1901         * opts.c (decode_options): Do not set flag_tree_salias.
1902         (common_handle_option): Add OPT_ftree_salias to the backward
1903         compatibility section.
1904
1905 2008-05-08  Richard Guenther  <rguenther@suse.de>
1906
1907         * tree-flow-inline.h (var_can_have_subvars): Move ...
1908         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
1909         * tree-flow.h (var_can_have_subvars): Remove.
1910         (push_fields_onto_fieldstack): Remove.
1911         (sort_fieldstack): Likewise.
1912         (struct fieldoff): Move ...
1913         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
1914         alias_set and base_for_components fields.
1915         (sort_fieldstack): Make static.
1916         (push_fields_onto_fieldstack): Likewise.  Remove code that
1917         handles anything but RECORD_TYPEs.  Remove alias_set and
1918         base_for_components handling.
1919         (create_variable_info_for): Adjust.
1920
1921 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
1922
1923         * common.opt (Wframe-larger-than=): Shorten the help message
1924         to one line.
1925         * doc/invoke.texi (Wframe-larger-than=): Add more description.
1926
1927 2008-05-08  Rafael Espindola  <espindola@google.com>
1928
1929         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
1930         trap.
1931         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
1932         trap and that both operands are gimple values.
1933         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
1934         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
1935         is a fp operation.
1936
1937 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
1938
1939         * read-rtl.c (join_c_conditions): Return the first string if the
1940         two strings are equal.
1941
1942 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
1943
1944         * gensupport.h (pred_data): Add a "num_codes" field.
1945         (add_predicate_code): Declare.
1946         * gensupport.c (add_predicate_code): New function.
1947         (std_pred_table): Add an "allows_const_p" field.
1948         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
1949         Remove the (incomplete) list of such codes from the codes field.
1950         (init_predicate_table): Use add_predicate_code.  Add all
1951         RTX_CONST_OBJs if allows_const_p is true.
1952         * genrecog.c (process_define_predicate): Use add_predicate_code.
1953
1954 2008-05-08  David Daney  <ddaney@avtrex.com>
1955             Richard Sandiford  <rsandifo@nildram.co.uk>
1956         
1957         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
1958         special case of constant zero operands.
1959         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
1960         old and new values.  Special case constant zero values.
1961         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
1962         fails.
1963         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
1964         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
1965
1966 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
1967
1968         PR target/36090
1969         * simplify-rtx.c (simplify_plus_minus): Create CONST of
1970         similar RTX_CONST_OBJ before CONST_INT.
1971
1972 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
1973
1974         * stmt.c (expand_stack_restore): Change sa mode if needed.
1975
1976 2008-05-08  Richard Guenther  <rguenther@suse.de>
1977
1978         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
1979         return type to bool.
1980         (ix86_sol10_return_in_memory): Likewise.
1981         (ix86_i386elf_return_in_memory): Likewise.
1982         (ix86_i386interix_return_in_memory): Likewise.
1983         * config/i386/i386.c (ix86_return_in_memory): Likewise.
1984         (ix86_sol10_return_in_memory): Likewise.
1985         (ix86_i386elf_return_in_memory): Likewise.
1986         (ix86_i386interix_return_in_memory): Likewise.
1987
1988 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
1989
1990         PR bootstrap/36180
1991         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
1992         fndecl argument.
1993         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
1994         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
1995         declared in front.
1996
1997 2008-05-08  Richard Guenther  <rguenther@suse.de>
1998
1999         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
2000         * tree-data-ref.h (struct dr_alias): Remove subvars field.
2001         (DR_SUBVARS): Remove.
2002         * tree-dfa.c (dump_subvars_for): Remove.
2003         (debug_subvars_for): Likewise.
2004         (dump_variable): Do not dump subvars.
2005         (remove_referenced_var): Do not remove subvars.
2006         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
2007         (lookup_subvars_for_var): Remove.
2008         (get_subvars_for_var): Likewise.
2009         (get_subvars_at): Likewise.
2010         (get_first_overlapping_subvar): Likewise.
2011         (overlap_subvar): Likewise.
2012         * tree-flow.h (subvar_t): Remove.
2013         (struct var_ann_d): Remove subvars field.
2014         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
2015         argument.  Remove special handling of SFTs.
2016         (compute_tag_properties): Likewise.
2017         (set_initial_properties): Likewise.
2018         (compute_call_clobbered): Likewise.
2019         (count_mem_refs): Likewise.
2020         (compute_memory_partitions): Likewise.
2021         (compute_flow_insensitive_aliasing): Likewise.
2022         (setup_pointers_and_addressables): Likewise.
2023         (new_type_alias): Likewise.
2024         (struct used_part): Remove.
2025         (used_portions): Likewise.
2026         (struct used_part_map): Likewise.
2027         (used_part_map_eq): Likewise.
2028         (used_part_map_hash): Likewise.
2029         (free_used_part_map): Likewise.
2030         (up_lookup): Likewise.
2031         (up_insert): Likewise.
2032         (get_or_create_used_part_for): Likewise.
2033         (create_sft): Likewise.
2034         (create_overlap_variables_for): Likewise.
2035         (find_used_portions): Likewise.
2036         (create_structure_vars): Likewise.
2037         * tree.def (STRUCT_FIELD_TAG): Remove.
2038         * tree.h (MTAG_P): Adjust.
2039         (struct tree_memory_tag): Remove base_for_components and
2040         unpartitionable flags.
2041         (struct tree_struct_field_tag): Remove.
2042         (SFT_PARENT_VAR): Likewise.
2043         (SFT_OFFSET): Likewise.
2044         (SFT_SIZE): Likewise.
2045         (SFT_NONADDRESSABLE_P): Likewise.
2046         (SFT_ALIAS_SET): Likewise.
2047         (SFT_UNPARTITIONABLE_P): Likewise.
2048         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
2049         (union tree_node): Remove sft field.
2050         * alias.c (get_alias_set): Remove special handling of SFTs.
2051         * print-tree.c (print_node): Remove handling of SFTs.
2052         * tree-dump.c (dequeue_and_dump): Likewise.
2053         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
2054         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
2055         * tree-predcom.c (set_alias_info): Do not set subvars.
2056         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
2057         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
2058         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
2059         (add_vars_for_offset): Remove.
2060         (add_virtual_operand): Remove special handling of SFTs.
2061         (add_call_clobber_ops): Likewise.
2062         (add_call_read_ops): Likewise.
2063         (get_asm_expr_operands): Likewise.
2064         (get_modify_stmt_operands): Likewise.
2065         (get_expr_operands): Likewise.
2066         (add_to_addressable_set): Likewise.
2067         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
2068         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2069         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
2070         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
2071         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
2072         (tree_node_structure): Likewise.
2073         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
2074         handling of SFTs.
2075         (find_what_p_points_to): Likewise.
2076
2077 2008-05-08  Sa Liu  <saliu@de.ibm.com>
2078
2079         * config/spu/spu.md: Fixed subti3 pattern.
2080
2081 2008-05-08  Richard Guenther  <rguenther@suse.de>
2082
2083         PR middle-end/36154
2084         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
2085         sure to create a representative for trailing arrays for PTA.
2086
2087 2008-05-08  Richard Guenther  <rguenther@suse.de>
2088
2089         PR middle-end/36172
2090         * fold-const.c (operand_equal_p): Two objects which types
2091         differ in pointerness are not equal.
2092
2093 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
2094
2095         * calls.c (compute_argument_block_size): Add argument tree fndecl.
2096         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
2097         (emit_library_call_value_1): Add new variable fndecl initialized by
2098         NULL_TREE. It should be the decl type of orgfun, but this information
2099         seems not to be available here, so it uses the default calling abi.
2100         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
2101         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
2102         by TARGET_RETURN_IN_MEMORY.
2103         * config/i386/i386-interix.h: Likewise.
2104         * config/i386/i386.h: Likewise.
2105         * config/i386/i386elf.h: Likewise.
2106         * config/i386/ptx4-i.h: Likewise.
2107         * config/i386/sol2-10.h: Likewise.
2108         * config/i386/sysv4.h: Likewise.
2109         * config/i386/vx-common.h: Likewise.
2110         * config/cris/cris.h: Removed #if 0 clause.
2111         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
2112         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
2113         argument.
2114         (ix86_sol10_return_in_memory): Likewise.
2115         (ix86_i386elf_return_in_memory): New.
2116         (ix86_i386interix_return_in_memory): New.
2117         * config/mt/mt-protos.h (mt_return_in_memory): New.
2118         * config/mt/mt.c: Likewise.
2119         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
2120         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
2121         * config/bfin/bfin.h: Likewise.
2122         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
2123         argument.
2124         * config/bfin/bfin.c: Likewise.
2125         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
2126         * config/alpha/unicosmk.h: Likewise.
2127         * config/i386/cygming.h: Likewise.
2128         * config/iq2000/iq2000.h: Likewise.
2129         * config/mips/mips.h: Likewise.
2130         * config/mn10300/mn10300.h: Likewise.
2131         * config/rs6000/rs6000.h: Likewise.
2132         * config/score/score.h: Likewise.
2133         * config/spu/spu.h: Likewise.
2134         * config/v850/v850.h: Likewise.
2135         * defaults.h: Likewise.
2136         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
2137         * expr.c (emit_block_move): Adjust use of
2138         OUTGOING_REG_PARM_STACK_SPACE.
2139         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
2140         OUTGOING_REG_PARM_STACK_SPACE.
2141         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
2142
2143 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
2144
2145         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
2146         on OMP_RETURN for OMP_FOR.
2147
2148         PR debug/35896
2149         * dwarf2out.c (dw_expand_expr, common_check): Removed.
2150         (fortran_common): New function.
2151         (gen_variable_die): Call fortran_common instead of common_check,
2152         adjust for it returning tree instead of rtx.  Formatting.
2153
2154 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
2155
2156         PR rtl/7335
2157         PR rtl/33826
2158         * see.c (see_copy_insn): Copy new pure const attributes for new call.
2159         * c-decl.c (merge_decls): Ditto.
2160         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
2161         to RTL_CONST_OR_PURE_CALL_P.
2162         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
2163         Initialized DECL_LOOPING_CONST_PURE.
2164         (process_call_operands): Set tree_side_effects properly.
2165         * tree.h (TREE_READONLY_DECL_P): Removed.
2166         (DECL_IS_PURE): Renamed to DECL_PURE_P.
2167         (DECL_LOOPING_OR_CONST_P): New macro.
2168         (struct tree_function_decl): Added looping_const_or_pure_p.
2169         (ECF_*) Renumbered.
2170         (ECF_LOOPING_OR_CONST_P): New macro.
2171         * rtlanal.c (pure_const_p): Removed.
2172         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
2173         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
2174         to RTL_CONST_CALL_P.
2175         * ipa-pure-const.c (pure_const_state_e): Added looping field.
2176         (check_decl, check_tree, check_call, scan_function): Initialize
2177         looping.
2178         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
2179         (static_execute): Set looping true for recursive functions.
2180         Undo setting state to IPA_NEITHER for recursive functions.
2181         * cse.c (cse_insn): 
2182         * ifcvt.c (noce_can_store_speculate_p): Changed
2183         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
2184         RTL_CONST_OR_PURE_CALL_P.
2185         * dse.c (scan_insn): Ditto.
2186         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
2187         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
2188         RTL_CONST_OR_PURE_CALL_P.
2189         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
2190         pure_call_p to RTL_CONST_CALL_P.
2191         * gimplify.c (gimplify_call_expr): Clear side effects for
2192         non-looping pure and constant calls.
2193         * calls.c (emit_call_1): Set rtl flags from ecf flags.
2194         (flags_from_decl_or_type): Set ecf flags from decl flags.
2195         (initialize_argument_information): Turn off
2196         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
2197         Change const to pure if callee_copies is true rather than just
2198         turning off const.
2199         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
2200         way of marking pure calls.
2201         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
2202         Remove hack that was supposed to fix pr7335 and remove old
2203         way of marking pure calls.
2204         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
2205         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
2206         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
2207         RTL_CONST_OR_PURE_CALL_P.
2208         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
2209         * loop-invariant.c (find_exits, find_invariant_bb): Changed
2210         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
2211         * sched-deps.c (schedule_analyze): Ditto.
2212         * rtl.h (struct rtx_def): Use call field, unchanging field, and
2213         return_val field of calls to represent pure and const function info.
2214         (CONST_OR_PURE_CALL_P): Deleted macro.
2215         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
2216         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
2217         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
2218         TREE_READONLY.
2219         * tree-optimize.c (execute_fixup_cfg): Added test for
2220         ECF_LOOPING_CONST_OR_PURE.
2221         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
2222         DECL_PURE_P.
2223         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
2224         effects for looping pure or const calls.
2225         (verify_gimple_expr): Added verification code. 
2226         * config/alpha/alpha.c (alpha_legitimize_address,
2227         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
2228         RTL_CONST_CALL_P.
2229         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
2230         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
2231         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
2232         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
2233         RTL_CONST_OR_PURE_CALL_P.
2234         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
2235         and const calls to be deleted.
2236
2237 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
2238
2239         PR target/35714
2240         * config/i386/mmx.md (mmx_subv2sf3): New expander.
2241         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
2242         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
2243         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2244         to handle nonimmediate operands.
2245         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
2246         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
2247         to handle nonimmediate operands.
2248         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
2249         (mmx_pmulhrwv4hi3): New expander.  Use
2250         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2251         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
2252         (sse2_umulv1siv1di3): New expander.  Use
2253         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2254         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
2255         (mmx_eq<mode>3): New expander.  Use
2256         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2257         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
2258         (mmx_uavgv8qi3): New expander.  Use
2259         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2260         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
2261         (mmx_uavgv4hi3): New expander.  Use
2262         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2263
2264         * config/i386/sse.md
2265         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
2266         to handle nonimmediate operands.
2267         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
2268         to handle nonimmediate operands.
2269         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
2270         to handle nonimmediate operands.
2271         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
2272         to handle nonimmediate operands.
2273         (sse2_unpckhpd_exp): New expander.  Use
2274         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2275         (sse2_unpcklpd_exp): New expander.  Use
2276         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2277         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
2278         to handle nonimmediate operands.
2279         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
2280         to handle nonimmediate operands.
2281         (*sse2_<plusminus_insn><mode>3): Rename from
2282         sse2_<plusminus_insn><mode>3 insn pattern.
2283         (sse2_<plusminus_insn><mode>3): New expander.  Use
2284         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2285         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
2286         (sse2_umulv2siv2di3): New expander.  Use
2287         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2288         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
2289         (sse4_1_mulv2siv2di3): New expander.  Use
2290         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2291         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
2292         (sse2_pmaddwd): New expander.  Use
2293         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2294         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
2295         (sse2_eq<mode>3): New expander.  Use
2296         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2297         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
2298         (sse4_1_eqv2di3): New expander.  Use
2299         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2300         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
2301         (sse2_uavgv16qi3): New expander.  Use
2302         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2303         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
2304         (sse2_uavgv16qi3): New expander.  Use
2305         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2306         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
2307         (sse2_uavgv8hi3): New expander.  Use
2308         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2309         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
2310         (ssse3_pmulhrswv8hi3): New expander.  Use
2311         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2312         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
2313         (ssse3_pmulhrswv4hi3): New expander.  Use
2314         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2315
2316         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
2317         (<sse>_vmmul<mode>3): Ditto.
2318         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
2319         (divv2df3): Ditto.
2320         (ssse3_pmaddubsw128): Use register_operand for operand 1.
2321         (ssse3_pmaddubsw): Ditto.
2322
2323         * config/i386/i386.c (struct_builtin_description)
2324         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
2325         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
2326         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
2327         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
2328         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
2329         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
2330         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
2331         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
2332         (ix86_fixup_binary_operands): Assert that src1
2333         and src2 must have the same mode when swapped.
2334         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
2335         and ix86_binary_operator_ok.  Do not force operands in registers
2336         when optimizing.
2337
2338 2008-05-07  Jan Hubicka  <jh@suse.cz>
2339
2340         * cgraph.c (dump_cgraph_node): Update.
2341         * cgraph.h (cgraph_local_info): Break out inline summary.
2342         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
2343         hook.
2344         * ipa-inline (inline_summary): New accestor function.
2345         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
2346         cgraph_decide_inlining, compute_inline_parameters): Update.
2347         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
2348
2349 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2350
2351         Cleanup ColdFire scheduling support and add V4 pipeline model.
2352
2353         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
2354         (define_attr cpu): Add cfv4 value.
2355         (define_attr type, define_attr type1): Merge into a single 'type'
2356         attribute.  Update all uses.
2357         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
2358         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
2359         Update all uses.
2360         (define_attr opx_mem, define_attr opy_mem): Remove.
2361         (define_attr op_mem): Clean up, update comment.
2362         (define_attr size): Use specific values instead of general int.
2363         (define_attr guess, define_attr split): Remove.  Update all uses.
2364         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
2365         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
2366         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
2367         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
2368         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
2369         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
2370         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
2371         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
2372         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
2373         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
2374         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
2375         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
2376         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
2377         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
2378         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
2379         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
2380         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
2381         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
2382         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
2383         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
2384         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
2385         Update or set attributes.
2386         (stack_tie): New fake instruction.
2387
2388         * config/m68k/m68k.h (TUNE_CFV4): New macro.
2389         (m68k_sched_attr_size): Update declaration.
2390         (m68k_sched_attr_type2): Remove.
2391         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
2392         Declare new bypass predicates.
2393
2394         * config/m68k/m68k.c (m68k_sched_issue_rate,
2395         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
2396         implementations.
2397         (TARGET_SCHED_ISSUE_RATE,
2398         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
2399         (override_options): Handle scheduling for ColdFire V4 core.
2400         (m68k_expand_prologue): Emit stack_tie.
2401         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
2402         'OP_TYPE_FPN'.  Update all uses.
2403         (sched_guess_p): Remove.
2404         (sched_address_type): Handle symbolic addresses.
2405         (sched_get_operand): New static function.
2406         (sched_operand_type): Merge into sched_attr_op_type.
2407         (sched_attr_op_type): Handle FP registers, handle quick constants,
2408         update.
2409         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
2410         (m68k_sched_attr_size): Update.  Move logic to ...
2411         (sched_get_attr_size_int): New static function.
2412         (sched_get_opxy_mem_type): New static function.
2413         (m68k_sched_attr_op_mem): Update.
2414         (m68k_sched_attr_type2): Remove.
2415         (sched_cfv4_bypass_data): New static variable.
2416         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
2417         (m68k_sched_issue_rate): Implement scheduler hook.
2418         (struct _sched_ib: enabled_p): New field.
2419         (m68k_sched_variable_issue): Update.  Handle V4.
2420         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
2421         sched_dump_class_func_t, sched_dump_split_class,
2422         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
2423         sched_dump_dfa_class, m68k_sched_dump): Remove.
2424         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
2425         hook.
2426         (m68k_sched_init_global): Remove statisctics dumping, introduce
2427         sanity check that all instructions have pipeline reservations.  Handle
2428         ColdFire V4 core.
2429         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
2430         Handle ColdFire V4 core.
2431         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
2432         New static functions.
2433         (m68k_sched_address_bypass_p): New bypass predicate.
2434         (sched_get_indexed_address_scale): New static function.
2435         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
2436
2437         * cf.md: Update comments.
2438         (define_attr type2): Remove.  Use 'type' attribute instead.
2439         Update all uses.
2440         (cf_ib): Rename to cfv123_ib.  Update all uses.
2441         (cf_oep): Rename to cfv123_oep.  Update all uses.
2442         (cf_chr): Rename to cfv123_chr.  Update all uses.
2443         (cf_mem): Rename to cfv123_mem.  Update all uses.
2444         (cf_mac): Move to more appropriate place.
2445         (cfv123_guess): New automaton and cpu_unit.
2446         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
2447         Update uses of 'size' attribute.  Handle before reload scheduling.
2448         (cfv123_guess): New dummy reservation for unhandled instructions.
2449         (cfv4_*): Pipeline description of ColdFire V4 core.
2450         (ignore): New reservation to handle 'ignore' type.
2451
2452 2008-05-07  Ian Lance Taylor  <iant@google.com>
2453
2454         PR middle-end/36013
2455         * gimplify.c (find_single_pointer_decl_1): Don't look through
2456         indirections.
2457         (find_single_pointer_decl): Adjust comments.
2458
2459 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
2460
2461         PR middle-end/36137
2462         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
2463         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
2464
2465         PR middle-end/36106
2466         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
2467         integral type rather than floating point, then VIEW_CONVERT_EXPR
2468         to the floating point type.
2469
2470 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
2471
2472         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
2473         TFmode op0 to register.
2474
2475 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
2476
2477         * c-decl.c (grokdeclarator): Comment typo.
2478
2479 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
2480
2481         * tree-flow.h: Remove prototype for computed_goto_p.
2482         * tree-cfg.c (computed_goto_p): Make static.
2483
2484 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
2485
2486         PR target/35657
2487         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
2488         (contains_aligned_value_p): This.  Handle _Decimal128.
2489         (ix86_function_arg_boundary): Only align _Decimal128 to its
2490         natural boundary and handle it properly.
2491
2492 2008-05-06  Martin Jambor  <mjambor@suse.cz>
2493
2494         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
2495         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
2496         (ipcp_method_set_orig_node): Removed.
2497         (ipcp_cval_get_cvalue_type): Removed.
2498         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
2499         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
2500         (ipcp_cval_set_cvalue_type): Removed.
2501         (ipcp_cval_get_cvalue): Removed.
2502         (ipcp_cval_set_cvalue): Removed.
2503         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
2504         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
2505         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
2506         (ipcp_cval_meet): Renamed to ipa_lattice_meet
2507         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
2508         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
2509         (ipcp_get_ith_lattice): Changed parameters.
2510         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
2511         (ipcp_lattice_from_jfunc): Changed parameters.
2512         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
2513         (ipcp_method_cval_print): Added temporary variable info.
2514         (ipcp_redirect): Removed already unused local variable caller.
2515         (ipcp_redirect): New temporary variable orig_callee_info
2516         (ipcp_redirect): Removed newly unused local variable callee.
2517         (ipcp_redirect): Removed (a bit confusing) local variable type.
2518         (ipcp_insert_stage): Added local variable info.
2519         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
2520         renamed too
2521         (ipcp_formal_create): Removed.
2522         (ipcp_method_cval_set): Removed.
2523         (ipcp_propagate_stage): Renamed lattice variables.
2524         (ipcp_method_cval_set_cvalue_type): Removed.
2525         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
2526         (ipcp_print_all_lattices): Changed printed strings to refer to 
2527         lattices rather than cvals.
2528         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
2529         (ipcp_propagate_const): Changed formal parameters.
2530         (build_const_val): Changed formal parameters.
2531         (ipcp_insert_stage): Removed useless variable cvalue
2532         (build_const_val): Changed formal parameters.
2533         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
2534         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
2535         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
2536         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
2537         (ipcp_print_func_profile_counts): Changed string from "method" to 
2538         "function"
2539         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
2540         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
2541         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
2542         (ipcp_structures_print): Renamed to ipcp_print_all_structures
2543         (ipcp_profile_print): Renamed to ipcp_print_profile_data
2544         (ipcp_lat_is_const): Changed parameters and made inline.
2545         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
2546         (ipcp_redirect): Renamed to ipcp_need_redirect_p
2547         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
2548         the predicate condition directly
2549         (ipcp_propagate_stage): Added local variable args. Removed local
2550         variable callee.  (Both are mere code simplifications.)
2551         (ipcp_method_dont_insert_const): Renamed to
2552         ipcp_node_not_modifiable_p.
2553         (ipcp_node_not_modifiable_p): Made inline.
2554         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
2555         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
2556         (ipcp_print_all_lattices): Removed variable cvalue
2557         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
2558         Updated comments.
2559
2560 2008-05-06  Olivier Hainque  <hainque@adacore.com>
2561
2562         * tree-sra.c (try_instantiate_multiple_fields): Early return
2563         if field has POINTER_TYPE.
2564
2565 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
2566
2567         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
2568         by using 'q' specifier for instruction.
2569         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
2570
2571 2008-05-06  Anatoly Sokolov <aesok@post.ru>
2572
2573         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
2574         Change mode of zero_extract from QImode to HImode.
2575         (sign bit tests peepholes): (Ditto.).
2576
2577 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
2578
2579         * config/i386/mmx.md: Remove double backslashes from asm templates.
2580         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
2581         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2582         to handle nonimmediate operands.
2583         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
2584         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
2585         to handle nonimmediate operands.
2586         (*mmx_<code>v2sf3_finite): New insn pattern.
2587         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
2588         (mmx_<code>v2sf3): New expander.  Use
2589         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2590         (mmx_<plusminus_insn><mode>3): New expander.  Use
2591         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2592         (*mmx_<plusminus_insn><mode>3): New insn pattern.
2593         (mmx_add<mode>3): Removed.
2594         (mmx_ssadd<mode>3): Ditto.
2595         (mmx_usadd<mode>3): Ditto.
2596         (mmx_sub<mode>3): Ditto.
2597         (mmx_sssub<mode>3): Ditto.
2598         (mmx_ussub<mode>3): Ditto.
2599         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
2600         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
2601         to handle nonimmediate operands.
2602         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
2603         insn pattern.
2604         (mmx_smulv4hi3_highpart): New expander.  Use
2605         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2606         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
2607         insn pattern.
2608         (mmx_umulv4hi3_highpart): New expander.  Use
2609         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2610         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
2611         (mmx_<code>v4hi3): New expander.  Use
2612         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2613         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
2614         (mmx_<code>v8qi3): New expander.  Use
2615         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2616         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
2617         (mmx_<code><mode>3): New expander.  Use
2618         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
2619
2620 2008-05-05  Jan Hubicka  <jh@suse.cz>
2621
2622         PR tree-optimization/36118
2623         * passes.c (pass_init_dump_file): Fix dump header.
2624
2625 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2626
2627         PR middle-end/36141
2628         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
2629         VCE for function decls.
2630
2631 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2632
2633         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
2634
2635 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
2636
2637         * config/i386/i386.md (sat_plusminus): New.
2638         (plusminus_insn): Likewise.
2639         (plusminus_mnemonic): Likewise.
2640         (addsub): Removed.
2641         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
2642         (*<addsub><mode>3_cc_overflow): Renamed to ...
2643         (*<plusminus_insn><mode>3_cc_overflow): This.
2644         (*<addsub>si3_zext_cc_overflow): Renamed to ...
2645         (*<plusminus_insn>si3_zext_cc_overflow): This.
2646
2647         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
2648         (<plusminus_insn><mode>3): This.
2649         (*<addsub><mode>3): Renamed to ...
2650         (*<plusminus_insn><mode>3): This.
2651         (<sse>_vm<addsub><mode>3): Renamed to ...
2652         (<sse>_vm<plusminus_insn><mode>3): This.
2653         (sse3_h<addsub>v4sf3): Renamed to ...
2654         (sse3_h<plusminus_insn>v4sf3): This.
2655         (sse3_h<addsub>v2df3): Renamed to ...
2656         (sse3_h<plusminus_insn>v2df3): This.
2657         (<plusminus_insn><mode>3): New.
2658         (*<plusminus_insn><mode>3): Likewise.
2659         (sse2_<plusminus_insn><mode>3): Likewise.
2660         (add<mode>): Removed.
2661         (*add<mode>3): Likewise.
2662         (sse2_ssadd<mode>3): Likewise.
2663         (sse2_usadd<mode>3): Likewise.
2664         (sub<mode>3): Likewise.
2665         (*sub<mode>3): Likewise.
2666         (sse2_sssub<mode>3): Likewise.
2667         (sse2_ussub<mode>3): Likewise.
2668
2669 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
2670
2671         * gthr-single.h: Add in required interface elements as per gthr.h.
2672         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
2673         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
2674         Generalize UNUSED macro. 
2675         (__gthread_once): Add.
2676         (__gthread_key_create): Add.
2677         (__gthread_key_delete): Add.
2678         (__gthread_getspecific): Add.
2679         (__gthread_setspecific): Add.
2680         
2681 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
2682
2683         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
2684         the same size types for the indirect reference on the rhs, then
2685         create a VCE.
2686
2687 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
2688
2689         * config/i386/i386.md
2690         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
2691         one insn template instead of template series.
2692         (*xordi_1_rex64): Ditto.
2693         (*xordi_2_rex64): Ditto.
2694
2695 2008-05-05  Ira Rosen  <irar@il.ibm.com>
2696
2697         PR tree-optimization/36119
2698         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
2699         in case of SLP.
2700
2701 2008-06-04  Jan Hubicka  <jh@suse.cz>
2702
2703         tree-optimization/36100
2704         * tree-pass.h (pass_O0_always_inline): Declare.
2705         * ipa-inline.c (inline_transform): Remove dead code.
2706         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
2707         pass_O0_always_inline): New.
2708         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
2709
2710 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
2711
2712         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
2713         mnemonic in this_param move for TARGET_64BIT.
2714
2715 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
2716
2717         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
2718         (*strmovsi_rex_1): Ditto.
2719         (*strsetsi_1): Ditto.
2720         (*strsetsi_rex_1): Ditto.
2721
2722         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
2723         adddicc expanders using SWI mode iterator.
2724
2725 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2726
2727         PR target/36121
2728         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
2729         argument handling.
2730
2731 2008-05-04  David S. Miller  <davem@davemloft.net>
2732
2733         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
2734         (sparc*-*-linux*): Use linux.h in tm_file.
2735         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
2736         compiler defaulting to 32-bit.
2737         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
2738         no longer needed.
2739         * config/sparc/linux.h: Remove definitions now obtained
2740         properly from linux.h
2741         * config/sparc/linux64.h: Likewise.
2742         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
2743         don't want this setting for 32-bit builds in a biarch compiler.
2744         * doc/install.texi: Add sparc-linux to list of targets
2745         supporting --enable-targets=all.
2746
2747 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
2748
2749         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
2750
2751 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
2752
2753         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
2754         after V4SI_FTYPE_V8HI.
2755         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
2756         case V4SI_FTYPE_V2DF.
2757
2758 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
2759
2760         * doc/invoke.texi (max-flow-memory-locations): Removed.
2761         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
2762         
2763 2008-05-03  Richard Guenther  <rguenther@suse.de>
2764
2765         PR middle-end/34973
2766         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
2767
2768 2008-05-02  David S. Miller  <davem@davemloft.net>
2769
2770         * config.gcc (need_64bit_hwint): Document libcpp dependency.
2771
2772 2008-05-02  Simon Baldwin <simonb@google.com>
2773
2774         PR bootstrap/36108
2775         * c-common.h (warn_array_subscript_range): Removed.
2776         * c-common.c (warn_array_subscript_range): Ditto.
2777         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
2778         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
2779
2780 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
2781
2782         * config/i386/i386.c (ix86_special_builtin_type): New.
2783         (bdesc_special_args): Likewise.
2784         (ix86_expand_special_args_builtin): Likewise.
2785         (ix86_init_mmx_sse_builtins): Updated.
2786         (ix86_expand_builtin): Updated.
2787         (ix86_expand_store_builtin): Removed.
2788         (ix86_expand_unop_builtin): Likewise.
2789
2790         * config/i386/mm3dnow.h (__v2sf): Moved to ...
2791         * config/i386/mmintrin.h (__v2sf): Here.
2792
2793         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
2794         const __v2sf.
2795         (_mm_loadl_pi): Likewise.
2796         (_mm_storeh_pi): Replace __v2si with __v2sf.
2797         (_mm_storel_pi): Likewise.
2798
2799         * doc/extend.texi: Correct __builtin_ia32_loadhps,
2800         __builtin_ia32_loadlps, __builtin_ia32_storehps,
2801         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
2802         __builtin_ia32_loadlpd.
2803
2804 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
2805
2806         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
2807         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
2808         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
2809         (ix86_init_mmx_sse_builtins): Updated.
2810         (ix86_expand_args_builtin): Likewise.
2811         (ix86_expand_builtin): Likewise.
2812         (ix86_expand_unop1_builtin): Renamed to ...
2813         (ix86_expand_unop_vec_merge_builtin): This.
2814
2815 2008-05-01  Jan Hubicka  <jh@suse.cz>
2816
2817         PR bootstrap/36100
2818         * ipa-inline.c (inline_generate_summary): Make static.
2819         (inline_transform): Do not call inlining at -O0; make static.
2820         * passes.c (execute_todo): Add sanity check.
2821         (execute_one_ipa_transform_pass): Execute proper flags.
2822
2823 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
2824
2825         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
2826         (DECL_NONADDRESSABLE_P): Likewise.
2827         * alias.c (record_component_aliases): Fix comment.
2828
2829 2008-05-01  Simon Baldwin <simonb@google.com>
2830
2831         * c-common.h (warn_array_subscript_range): New function.
2832         * c-common.c (warn_array_subscript_range): Ditto.
2833         * tree-vrp.c (check_array_ref): Corrected code to agree with
2834         comment, ignoring only arrays of size 0 or size 1.
2835         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
2836
2837 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2838
2839         * config/i386/i386.c (ix86_builtin_type): Replace
2840         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
2841         (bdesc_args): Updated.
2842         (ix86_init_mmx_sse_builtins): Likewise.
2843         (ix86_expand_args_builtin): Likewise.
2844
2845         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
2846         with __v1di.
2847
2848         * doc/extend.texi: Correct __builtin_ia32_palignr.
2849
2850 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2851
2852         PR target/36095
2853         * config/i386/i386.c (bdesc_crc32): Removed.
2854         (ix86_expand_crc32): Likewise.
2855         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
2856         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
2857         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
2858         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
2859         UINT_FTYPE_UINT_UCHAR.
2860         (bdesc_args): Updated. Add crc32 builtins.
2861         (ix86_init_mmx_sse_builtins): Updated.
2862         (ix86_expand_args_builtin): Updated to support subreg.
2863
2864         * doc/extend.texi: Correct __builtin_ia32_crc32di.
2865
2866 2008-05-01  Jan Hubicka  <jh@suse.cz>
2867
2868         * tree-pass.h (opt_pass): Add IPA_PASS.
2869         (varpool_node, cgraph_node): Forward declare.
2870         (ipa_opt_pass): Define.
2871         (pass_ipa_inline): Turn into ipa_opt_pass.
2872         (pass_apply_inline): Remove.
2873         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
2874         (apply_inline): Turn into ....
2875         (inline_transform): ... this one.
2876         (inline_generate_summary): New function.
2877         (pass_apply_inline): Remove.
2878         * function.h (ipa_opt_pass): Forward declare structure; typedef;
2879         vector.
2880         (struct function): Add ipa_transforms_to_apply.
2881         * passes.c (register_one_dump_file): Work on IPA_PASS.
2882         (init_optimization_passes): Remove pass_inline_parameters and
2883         pass_apply_inline.
2884         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
2885         (execute_one_pass) ... here; apply transforms when possible.
2886         (add_ipa_transform_pass, execute_ipa_summary_asses,
2887         execute_one_ipa_transform_pass): New.
2888         (execute_ipa_pass_list): Update for IPA_PASS type.
2889
2890 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2891
2892         * config/i386/i386.c (ix86_builtin_type): Add
2893         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
2894         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
2895         (bdesc_args): Add SSE4a builtins.
2896         (ix86_init_mmx_sse_builtins): Updated.
2897         (ix86_expand_args_builtin): Likewise.
2898         (ix86_expand_builtin): Likewise.
2899
2900 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
2901
2902         * config/i386/i386.c (ix86_builtin_type): Add
2903         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
2904         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
2905         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
2906         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
2907         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
2908         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
2909         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
2910         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
2911         and DI_FTYPE_DI_DI_INT.
2912         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
2913         (ix86_init_mmx_sse_builtins): Updated.
2914         (ix86_expand_args_builtin): Likewise.
2915         (ix86_expand_builtin): Likewise.
2916         (ix86_expand_binop_imm_builtin): Removed.
2917
2918         * doc/extend.texi: Correct __builtin_ia32_palignr128.
2919
2920 2008-04-30  Richard Guenther  <rguenther@suse.de>
2921
2922         PR tree-optimization/32921
2923         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
2924
2925 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
2926
2927         * config/arm/arm.c (arm_unwind_emit): Use
2928         crtl->all_throwers_are_sibcalls instead of
2929         cfun->all_throwers_are_sibcalls.
2930         (arm_output_fn_unwind): Likewise.
2931         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
2932         instead of cfun->uses_pic_offset_table.
2933         (frv_expand_prologue): Likewise.
2934         (frv_frame_pointer_required): Likewise.
2935         (frv_expand_fdpic_call): Likewise.
2936         (frv_emit_movsi): Likewise.
2937         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
2938         cfun->returns_pcc_struct instead of
2939         current_function_returns_pcc_struct.
2940         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
2941         instead of cfun->calls_eh_return.
2942         (m32c_pushm_popm): Likewise.
2943         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
2944         "extern" declaration.
2945
2946 2008-04-30  Richard Guenther  <rguenther@suse.de>
2947
2948         PR tree-optimization/21636
2949         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
2950         constant address.
2951         (evaluate_stmt): Print the likely value.
2952         (ccp_visit_stmt): Avoid excessive vertical spacing.
2953
2954 2008-04-30  Rafael Espindola  <espindola@google.com>
2955
2956         * builtins.c (fold_call_expr): Return realret.
2957         * tree-ssa-threadedge.c
2958         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
2959         __builtin_object_size.
2960
2961 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
2962
2963         * gcc.c (wrapper_string): New variable.
2964         (insert_wrapper): New function.
2965         (execute): New option -wrapper.
2966         * doc/invoke.texi (Overall Options): New driver option -wrapper.
2967
2968 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
2969
2970         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
2971         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
2972         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
2973         from...
2974         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
2975         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
2976         config/rs6000/e500crtres64gprctr.asm,
2977         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
2978         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
2979         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
2980         config/rs6000/e500crtsav64gprctr.asm,
2981         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
2982         config/rs6000/e500crtsavg64gprctr.asm: New files.
2983         * config/rs6000/t-ppccomm: Add build rules for new files.
2984         (LIB2FUNCS_STATIC_EXTRA): Add new files.
2985         * config/rs6000/t-netbsd: Add build rules for new files.
2986         (LIB2FUNCS_STATIC_EXTRA): New variable.
2987         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
2988         (CRTSAVRES_DEFAULT_SPEC): Likewise.
2989         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
2990
2991 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
2992
2993         * config/i386/i386.c (ix86_builtin_type): Add
2994         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
2995         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
2996         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
2997         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
2998         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
2999         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
3000         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
3001         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
3002         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
3003         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
3004         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
3005         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
3006         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
3007         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
3008         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
3009         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
3010         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
3011         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
3012         V1DI_FTYPE_V2SI_V2SI.
3013         (bdesc_2arg): Moved to ...
3014         (bdesc_args): Here.
3015         (ix86_init_mmx_sse_builtins): Updated.
3016         (ix86_expand_args_builtin): Updated.  Take a pointer
3017         to const struct builtin_description.  Handle comparison
3018         builtin functions.
3019         (ix86_expand_sse_compare): Take a new argument for swapping operands.
3020         (ix86_expand_builtin): Updated.
3021
3022         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
3023         (ssse3_pmaddubsw128): This.
3024         (ssse3_pmaddubswv4hi3): Renamed to ...
3025         (ssse3_pmaddubsw): This.
3026
3027         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
3028         (__builtin_ia32_packssdw128): Likewise.
3029         (__builtin_ia32_packuswb128): Likewise.
3030         (__builtin_ia32_pmaddubsw): Likewise.
3031         (__builtin_ia32_pmaddubsw128): Likewise.
3032
3033 2008-04-30  Richard Guenther  <rguenther@suse.de>
3034
3035         PR tree-optimization/14847
3036         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
3037         (recognize_bits_test): Use it.
3038         (recognize_single_bit_test): Likewise.
3039
3040 2008-04-30  Martin Jambor  <mjambor@suse.cz>
3041
3042         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
3043         instead of setting number of formal parameters to zero.
3044         (ipcp_init_stage): Do not set the number of actual parameters to zero 
3045         either.
3046         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
3047         which are called with variable number of arguments.
3048         (ipcp_insert_stage): Explicitely skipping all nodes which are
3049         called with variable number of arguments.
3050         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
3051         number of parameters.
3052
3053         * ipa-prop.h (struct ipa_node_params): Added flag
3054         called_with_var_arguments
3055         (ipa_set_param_count): Added.  Changed sole setter to use it.
3056         (ipa_get_param_count): Added.  All readers of param_count
3057         converted to use it instead.
3058         (ipa_set_called_with_variable_arg): Added.
3059         (ipa_is_called_with_var_arguments): Added.
3060         (ipa_get_ith_param): Added.  All readers of param_decls converted
3061         to use it instead.
3062         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
3063         changed to use it. 
3064         (ipa_get_cs_argument_count): Added, all readers of argument_count
3065         changed to cal it.
3066         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
3067         to use it.
3068         
3069         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
3070         (struct ipcp_lattice): Renamed cval_type to type
3071         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
3072
3073         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
3074         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
3075         (ipcp_insert_stage): Changed the type of variable cvalue to tree
3076         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
3077         (build_const_val): Changed the type of parameter cvalue to tree
3078         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
3079         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
3080         
3081         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
3082         constant 
3083
3084         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
3085         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
3086         (ipa_add_method): Renamed to ipa_push_func_to_list
3087         (ipa_remove_method): Renamed to ipa_pop_func_from_list
3088         (ipa_callsite_param_count): Removed.
3089         (ipa_callsite_param_count_set): Removed.
3090         (ipa_callsite_param): Removed.
3091         (ipa_callsite_callee): Removed.
3092         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
3093         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
3094         (ipa_method_formal_count): Removed.
3095         (ipa_method_formal_count_set): Removed.
3096         (ipa_method_get_tree): Removed.
3097         (ipa_method_tree_map_create): Removed.
3098         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
3099         (ipa_create_param_decls_array): Creates the array itself
3100         (ipa_create_param_decls_array): Temporary variable info instead of 
3101         a few dereferences.
3102         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
3103         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
3104         (get_type): Removed.
3105         (ipa_jf_get_info_type): Removed.
3106         (ipa_node_create): Renamed to ipa_create_node_params
3107         (ipa_free): Renamed to ipa_free_all_node_params
3108         (ipa_nodes_create): Renamed to ipa_create_all_node_params
3109         (ipa_edges_create): Renamed to ipa_create_all_edge_args
3110         (ipa_edges_free): Renamed to ipa_free_all_edge_args
3111         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
3112         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
3113         ipa_free_all_edge_args
3114         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
3115         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
3116         (ipa_create_methodlist_node): Removed.
3117         (ipa_methodlist_method): Removed.
3118         (ipa_methodlist_method_set): Removed.
3119         (ipa_methodlist_next_method): Removed.
3120         (ipa_methodlist_next_method_set): Removed.
3121         (ipa_method_is_modified): Removed.
3122         (ipa_method_modify_create): Removed.
3123         (ipa_method_modify_init): Temporary variable info instead of a few 
3124         dereferences.
3125         (ipa_detect_param_modifications): Temporary variable info instead of 
3126         a few dereferences.
3127         (ipa_compute_jump_functions): Temporary variable info instead of 
3128         a few dereferences.
3129         (ipa_method_modify_set): Removed.
3130         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
3131         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
3132         than craph_node as the first parameter.
3133         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
3134         (ipa_method_modify_init): Removed.
3135         (ipa_compute_jump_functions): Added a temp variable instead of 
3136         repeatadly dereferencing the cgraph_edge.aux pointer
3137         (ipa_callsite_param_set_type): Removed.
3138         (ipa_compute_jump_functions): i renamed to index and moved to 
3139         an inner block
3140         (ipa_callsite_param_set_info_type_formal): Removed.
3141         (ipa_callsite_param_set_info_type): Removed.
3142         (ipa_callsite_param_map_create): Removed.
3143         (ipa_callsite_tree): Removed.
3144         (ipa_callsite_caller): Removed.
3145         (ipa_pop_func_from_list): return_method removed to return_func
3146
3147         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
3148         prefixed all values with IPA_. Changed all users.
3149         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
3150         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
3151         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
3152         (union parameter_info): Renamed to jump_func_value.
3153         (union jump_func_value): Renamed value to constant
3154         (struct ipa_jump_func): Renamed info_type to value
3155         (struct ipa_node): Renamed to ipa_node_params
3156         (struct ipa_node_params): Renamed ipa_arg_num to param_count
3157         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
3158         (struct ipa_node_params): Renamed ipa_mod to modified_flags
3159         (struct ipa_edge): Renamed to ipa_edge_args
3160         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
3161         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
3162         (struct ipa_methodlist): Renamed to ipa_func_list
3163         (struct ipa_func_list): method_p renamed to node, next_method
3164         renamed to next
3165         (ipa_methodlist_p): Removed, switched all users to struct pointer
3166         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
3167
3168 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
3169
3170         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
3171         (rs6000_emit_epilogue): Use backchain to restore only when we
3172         have a large frame.  Make use of frame pointer to restore if we
3173         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
3174
3175 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
3176
3177         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
3178         Add mode to zero_extract.
3179         (sign bit tests peepholes): (Ditto.).
3180
3181 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
3182
3183         * config/i386/i386.c (ix86_builtins): Replace Prescott New
3184         Instructions in comments with SSE3.
3185         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
3186         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
3187         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
3188         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
3189         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
3190         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
3191         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
3192         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
3193         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
3194         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
3195         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
3196         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
3197         (bdesc_sse_args): Renamed to ...
3198         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
3199         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
3200         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
3201         IX86_BUILTIN_FABSQ.
3202         (bdesc_1arg): Moved to ...
3203         (bdesc_args): Here.
3204         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
3205         Instructions in comments with SSE3.
3206         (ix86_expand_sse_operands_builtin): Renamed to ...
3207         (ix86_expand_args_builtin): This.  Updated.
3208         (ix86_expand_unop1_builtin): Update comments.
3209         (ix86_expand_builtin): Updated.
3210
3211 2008-04-29  Richard Guenther  <rguenther@suse.de>
3212
3213         PR tree-optimization/36078
3214         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
3215         Update virtual SSA form after cleaning up the CFG.
3216
3217 2008-04-29  Richard Guenther  <rguenther@suse.de>
3218
3219         PR middle-end/15255
3220         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
3221
3222 2008-04-29  Richard Guenther  <rguenther@suse.de>
3223
3224         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
3225         (compute_may_aliases): Do not call finalize_ref_all_pointers.
3226         (compute_flow_insensitive_aliasing): Do not treat
3227         PTR_IS_REF_ALL pointers special.
3228         (get_smt_for): Likewise.
3229         (may_alias_p): Re-structure.
3230         (is_escape_site): A ref-all pointer conversion is not an escape site.
3231         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
3232         PTR_IS_REF_ALL pointers special.
3233         * tree-ssa-structalias.h (struct alias_info): Remove
3234         ref_all_symbol_mem_tag field.
3235         (PTR_IS_REF_ALL): Remove.
3236
3237 2008-04-29  Richard Guenther  <rguenther@suse.de>
3238
3239         PR middle-end/36077
3240         * fold-const.c (extract_muldiv_1): In combining division constants
3241         make sure to never overflow.
3242
3243 2008-04-29  Nick Clifton  <nickc@redhat.com>
3244
3245         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
3246
3247 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3248
3249         PR bootstrap/35169
3250         * optc-gen.awk: Work around HP-UX/IA awk bug.
3251
3252 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
3253
3254         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
3255         2008-04-25 commit.
3256
3257 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
3258
3259         PR target/36073
3260         * config/i386/i386.md
3261         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
3262         Change operand 1 predicate to nonimmediate_operand.
3263
3264 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
3265
3266         PR debug/36060
3267         * dwarf2out.c (struct die_struct): Mark as chain_circular through
3268         die_sub field.
3269         * gengtype.c (walk_type, write_func_for_structure): Handle
3270         chain_circular.
3271         * doc/gty.texi: Document chain_circular.
3272
3273 2008-04-28  Richard Guenther  <rguenther@suse.de>
3274
3275         PR tree-optimization/36066
3276         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
3277         SCEV and loop.
3278
3279 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
3280
3281         PR target/36064
3282         * config/i386/i386.md
3283         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
3284         Use match_scratch instead of match_operand for operands 3 and 4.
3285
3286 2008-04-27  Richard Guenther  <rguenther@suse.de>
3287
3288         PR tree-optimization/18754
3289         PR tree-optimization/34223
3290         * tree-pass.h (pass_complete_unrolli): Declare.
3291         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
3292         loop size before and after unconditionally of UL_NO_GROWTH in effect.
3293         Rewrite loop into loop closed SSA form if it is not already.
3294         (tree_unroll_loops_completely): Re-structure to iterate over
3295         innermost loops with intermediate CFG cleanups.
3296         Unroll outermost loops only if requested or the code does not grow
3297         doing so.
3298         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
3299         loops are available.
3300         (tree_vectorize): Instead do so here.
3301         (tree_complete_unroll): Also unroll outermost loops.
3302         (tree_complete_unroll_inner): New function.
3303         (gate_tree_complete_unroll_inner): Likewise.
3304         (pass_complete_unrolli): New pass.
3305         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
3306         uses outside of the loop.
3307         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
3308         form if it is available.  
3309         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
3310         * passes.c (init_optimization_passes): Schedule complete inner
3311         loop unrolling pass before the first CCP pass after final inlining.
3312
3313 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
3314
3315         * targhooks.h (default_emutls_var_fields,
3316         default_emutls_var_init): Declare.
3317         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
3318         * target.h (struct gcc_target): Add struct emutls member.
3319         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
3320         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
3321         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
3322         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
3323         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
3324         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
3325         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
3326         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
3327         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
3328         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
3329         emit debug information.
3330         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
3331         * varasm.c: Include targhooks.h.
3332         (emutls_object_section, emutls_tmpl_section): New.
3333         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
3334         (EMUTLS_SEPARATOR): New.
3335         (prefix_name): New.
3336         (get_emutls_object_name): New.
3337         (default_emutls_var_fields): New, broken out of ...
3338         (get_emutls_object_type): ... here.  Adjust to use target hooks.
3339         (get_emutls_init_templ_addr): Adjust to use target hooks.
3340         (emutls_decl): Adjust to use target hooks.
3341         (emutls_finish): Likewise.
3342         (default_emutls_var_init): New, broken out of ...
3343         (assemble_variable): ... here.  Adjust to use target hooks.
3344         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
3345         SECCAT_EMUTLS_TMPL.
3346         * c-common.c (handle_section_attribute): Prevent overriding
3347         sections for emulated tls with special sections.
3348         * config/i386/i386.c (x86_64_elf_select_section): Add
3349         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
3350         (x86_64_elf_unique_section): Likewise.
3351         * config/vxworks.c: Include tree.h.
3352         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
3353         (vxworks_override_options): Set TLS scheme.
3354         * doc/tm.texi (Emulated TLS): New node.
3355
3356 2008-04-26  Simon Baldwin <simonb@google.com>
3357
3358         PR c/35652
3359         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
3360         with propagated string constants.
3361
3362 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
3363
3364         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
3365         constraint for operand 2 when operand 0 is memory operand.
3366         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
3367         operand 0 is memory operand.
3368         (fix_trunc<mode>_i387_with_temp): Ditto.
3369         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
3370         operand 2 when operand 1 is memory operand.
3371         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
3372         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
3373         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
3374         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
3375         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
3376         operands 2,3 and 4 when operand 1 is memory operand.
3377         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
3378         is memory operand.
3379         (fistdi2_floor_with_temp): Ditto.
3380         (fist<mode>2_floor_with_temp): Ditto.
3381         (fistdi2_ceil_with_temp): Ditto.
3382         (fist<mode>2_ceil_with_temp): Ditto.
3383         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
3384
3385 2008-04-26  David Daney  <ddaney@avtrex.com>
3386
3387         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
3388         unspec_volitile.
3389         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
3390         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
3391         UNSPEC_UPDATE_GOT_VERSION): Renumber.
3392         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
3393         (compare_and_swap_12): New insn.
3394         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
3395         * config/mips/mips.c (mips_force_binary): New function.
3396         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
3397         (mips_expand_compare_and_swap_12): New function.
3398         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
3399
3400 2008-04-25  Jan Hubicka  <jh@suse.cz>
3401
3402         PR testsuite/35843
3403         * cfgexpand.c (pass_expand): Turn into RTL pass.
3404         * passes.c (execute_one_pass): Do pass typechecking after execution.
3405         * tree-pass.h (pass_expand): Turn into RTL pass.
3406
3407         * function.h (struct rtl_data): Move here fields
3408         accesses_prior_frames, calls_eh_return, saves_all_registers,
3409         has_nonlocal_goto, has_asm_statement, is_thunk,
3410         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
3411         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
3412         arg_pointer_save_area_init from struct function; turn into bool.
3413         (struct function): Move
3414         calls_eh_return, saves_all_registers, has_nonlocal_goto,
3415         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
3416         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
3417         tail_call_emit, arg_pointer_save_area_init
3418         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
3419         (current_function_returns_struct, current_function_returns_pcc_struct,
3420         current_function_calls_setjmp, current_function_calls_alloca,
3421         current_function_accesses_prior_frames,
3422         current_function_calls_eh_return, current_function_is_thunk,
3423         current_function_stdarg, current_function_profile,
3424         current_function_limit_stack, current_function_uses_pic_offset_table,
3425         current_function_uses_const_pool, current_function_has_nonlocal_label,
3426         current_function_saves_all_registers,
3427         current_function_has_nonlocal_goto,
3428         current_function_has_asm_statement): Remove accesor macros.
3429         * ra-conflict.c (global_conflicts): Update.
3430         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
3431         (suitable_for_tail_call_opt_p): Update.
3432         * builtins.c (expand_builtin_return_addr): Update.
3433         (expand_builtin_setjmp_setup): Update.
3434         (expand_builtin_nonlocal_goto): Update.
3435         * final.c (final_start_function): Update.
3436         (profile_function): Update.
3437         (leaf_function_p): Update.
3438         (only_leaf_regs_used): Update.
3439         * df-scan.c (df_get_exit_block_use_set): Update.
3440         * dojump.c (clear_pending_stack_adjust): Update.
3441         * tree-stdarg.c (gate_optimize_stdarg): Update.
3442         * gimple-low.c (lower_function_body): Update.
3443         * global.c (compute_regsets): Update.
3444         (global_alloc): Update.
3445         * dwarf2out.c (dwarf2out_begin_prologue): Update.
3446         * expr.c (expand_assignment): Update.
3447         * dse.c (dse_step0): Update.
3448         (dse_step1): Update.
3449         * c-decl.c (store_parm_decls): Update.
3450         * local-alloc.c (combine_regs): Update.
3451         (find_free_reg): Update.
3452         * function.c (assign_parms_augmented_arg_list): Update.
3453         (assign_parm_find_data_types): Update.
3454         (assign_parms): Update.
3455         (allocate_struct_function): Update.
3456         (expand_function_start): Update.
3457         (expand_function_end): Update.
3458         (get_arg_pointer_save_area): Update.
3459         (thread_prologue_and_epilogue_insns): Update.
3460         (rest_of_match_asm_constraints): Update.
3461         * stor-layout.c (variable_size): Update.
3462         * gcse.c (gcse_main): Update.
3463         (bypass_jumps): Update.
3464         * gimplify.c (gimplify_function_tree): Update.
3465         * calls.c (emit_call_1): Update.
3466         (expand_call): Update.
3467         * bt-load.c (compute_defs_uses_and_gen): Update.
3468         * except.c (sjlj_assign_call_site_values): Update.
3469         (sjlj_emit_function_enter): Update.
3470         (can_throw_external): Update.
3471         (set_nothrow_function_flags): Update.
3472         (expand_builtin_unwind_init): Update.
3473         (expand_eh_return): Update.
3474         (convert_to_eh_region_ranges): Update.
3475         (output_function_exception_table): Update.
3476         * emit-rtl.c (gen_tmp_stack_mem): Update.
3477         * cfgexpand.c (expand_used_vars): Update.
3478         (tree_expand_cfg): Update.
3479         * cfgcleanup.c (rest_of_handle_jump): Update.
3480         * explow.c (allocate_dynamic_stack_space): Update.
3481         * varasm.c (assemble_start_function): Update.
3482         (force_const_mem): Update.
3483         (mark_constant_pool): Update.
3484         * tree-optimize.c (tree_rest_of_compilation): Update.
3485         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
3486         * tree-cfg.c (notice_special_calls): Update.
3487         (is_ctrl_altering_stmt): Update.
3488         (tree_can_make_abnormal_goto): Update.
3489         (tree_purge_dead_abnormal_call_edges): Update.
3490         * config/alpha/predicates.md: Update.
3491         * config/alpha/alpha.c (alpha_sa_mask): Update.
3492         (alpha_sa_size): Update.
3493         (alpha_does_function_need_gp): Update.
3494         (alpha_expand_prologue): Update.
3495         (alpha_start_function): Update.
3496         (alpha_output_function_end_prologue): Update.
3497         (alpha_expand_epilogue): Update.
3498         * config/frv/frv.c (frv_stack_info): Update.
3499         (frv_expand_epilogue): Update.
3500         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
3501         (s390_register_info): Update.
3502         (s390_frame_info): Update.
3503         (s390_init_frame_layout): Update.
3504         (s390_can_eliminate): Update.
3505         (save_gprs): Update.
3506         * config/spu/spu.c (spu_split_immediate): Update.
3507         (need_to_save_reg): Update.
3508         (spu_expand_prologue): Update.
3509         (spu_expand_epilogue): Update.
3510         * config/sparc/sparc.md: Update.
3511         * config/sparc/sparc.c (eligible_for_return_delay): Update.
3512         (sparc_tls_got): Update.
3513         (legitimize_pic_address): Update.
3514         (sparc_emit_call_insn): Update.
3515         (sparc_expand_prologue): Update.
3516         (output_return): Update.
3517         (print_operand): Update.
3518         (sparc_function_ok_for_sibcall): Update.
3519         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
3520         * config/m32r/m32r.md: Update.
3521         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
3522         (m32r_compute_frame_size): Update.
3523         (m32r_expand_prologue): Update.
3524         (m32r_expand_epilogue): Update.
3525         (m32r_legitimize_pic_address): Update.
3526         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
3527         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3528         * config/i386/i386.c (ix86_frame_pointer_required): Update.
3529         (gen_push): Update.
3530         (ix86_save_reg): Update.
3531         (ix86_compute_frame_layout): Update.
3532         (ix86_expand_prologue): Update.
3533         (ix86_expand_epilogue): Update.
3534         * config/sh/sh.c (output_stack_adjust): Update.
3535         (calc_live_regs): Update.
3536         (sh5_schedule_saves): Update.
3537         (sh_expand_prologue): Update.
3538         (sh_expand_epilogue): Update.
3539         (sh_setup_incoming_varargs): Update.
3540         (sh_allocate_initial_value): Update.
3541         (sh_get_pr_initial_val): Update.
3542         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
3543         * config/sh/sh.md (label:): Update.
3544         * config/avr/avr.c (out_movhi_mr_r): Update.
3545         * config/crx/crx.h (enum): Update.
3546         * config/xtensa/xtensa.h (along): Update.
3547         * config/stormy16/stormy16.c Update.
3548         (xstormy16_compute_stack_layout): Update.
3549         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
3550         (fr30_expand_prologue): Update.
3551         * config/cris/cris.c (cris_conditional_register_usage): Update.
3552         (cris_reg_saved_in_regsave_area): Update.
3553         (cris_initial_frame_pointer_offset): Update.
3554         (cris_simple_epilogue): Update.
3555         (cris_expand_prologue): Update.
3556         (cris_expand_epilogue): Update.
3557         (cris_expand_pic_call_address): Update.
3558         (cris_asm_output_symbol_ref): Update.
3559         (cris_asm_output_label_ref): Update.
3560         * config/cris/cris.md Update.
3561         * config/iq2000/iq2000.c (compute_frame_size): Update.
3562         (iq2000_expand_epilogue): Update.
3563         * config/mt/mt.h (save_direction): Update.
3564         * config/mn10300/mn10300.c (mn10300_function_value): Update.
3565         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
3566         (ia64_secondary_reload_class): Update.
3567         * config/m68k/m68k.c (m68k_save_reg): Update.
3568         (m68k_expand_prologue): Update.
3569         (m68k_expand_epilogue): Update.
3570         (legitimize_pic_address): Update.
3571         * config/rs6000/rs6000.c (rs6000_got_register): Update.
3572         (first_reg_to_save): Update.
3573         (first_altivec_reg_to_save): Update.
3574         (compute_vrsave_mask): Update.
3575         (compute_save_world_info): Update.
3576         (rs6000_stack_info): Update.
3577         (spe_func_has_64bit_regs_p): Update.
3578         (rs6000_ra_ever_killed): Update.
3579         (rs6000_emit_eh_reg_restore): Update.
3580         (rs6000_emit_allocate_stack): Update.
3581         (rs6000_emit_prologue): Update.
3582         (rs6000_emit_epilogue): Update.
3583         (rs6000_output_function_epilogue): Update.
3584         (output_profile_hook): Update.
3585         (rs6000_elf_declare_function_name): Update.
3586         * config/rs6000/rs6000.h (rs6000_args): Update.
3587         * config/rs6000/rs6000.md: Update.
3588         * config/mcore/mcore.c (mcore_expand_prolog): Update.
3589         * config/arc/arc.c (arc_output_function_epilogue): Update.
3590         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
3591         * config/darwin.c (machopic_function_base_name): Update.
3592         * config/score/score3.c (score3_compute_frame_size): Update.
3593         (rpush): Update.
3594         (rpop): Update.
3595         (score3_epilogue): Update.
3596         * config/score/score7.c (score7_compute_frame_size): Update.
3597         (score7_prologue): Update.
3598         (score7_epilogue): Update.
3599         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
3600         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
3601         * config/arm/arm.c (use_return_insn): Update.
3602         (require_pic_register): Update.
3603         (arm_load_pic_register): Update.
3604         (arm_compute_save_reg0_reg12_mask): Update.
3605         (arm_compute_save_reg_mask): Update.
3606         (thumb1_compute_save_reg_mask): Update.
3607         (output_return_instruction): Update.
3608         (arm_output_function_prologue): Update.
3609         (arm_output_epilogue): Update.
3610         (arm_get_frame_offsets): Update.
3611         (arm_expand_prologue): Update.
3612         (thumb_pushpop): Update.
3613         (thumb_exit): Update.
3614         (thumb1_expand_prologue): Update.
3615         (thumb1_expand_epilogue): Update.
3616         (arm_unwind_emit): Update.
3617         (arm_output_fn_unwind): Update.
3618         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
3619         * config/arm/arm.md: Update.
3620         * config/pa/pa.md: Update.
3621         * config/pa/pa.c (legitimize_pic_address): Update.
3622         (compute_frame_size): Update.
3623         (hppa_expand_prologue): Update.
3624         (hppa_expand_epilogue): Update.
3625         (borx_reg_operand): Update.
3626         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
3627         (HARD_REGNO_RENAME_OK): Update.
3628         * config/mips/mips.c (mips_global_pointer): Update.
3629         (mips_save_reg_p): Update.
3630         (mips_compute_frame_info): Update.
3631         (mips_frame_pointer_required): Update.
3632         (mips_expand_prologue): Update.
3633         (mips_expand_epilogue): Update.
3634         (mips_can_use_return_insn): Update.
3635         (mips_reorg_process_insns): Update.
3636         * config/v850/v850.c (compute_register_save_size): Update.
3637         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
3638         * config/mmix/mmix.c (along): Update.
3639         (mmix_expand_epilogue): Update.
3640         * config/bfin/bfin.c (legitimize_pic_address): Update.
3641         (must_save_p): Update.
3642         (stack_frame_needed_p): Update.
3643         (add_to_reg): Update.
3644         (bfin_expand_prologue): Update.
3645         * stmt.c (expand_asm_operands): Update.
3646         * reload1.c (reload): Update.
3647         (init_elim_table): Update.
3648
3649 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
3650         
3651         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
3652         
3653 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
3654
3655         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
3656         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
3657         (mov<mode>): Removed.
3658         (*movv4sf_internal): Likewise.
3659         (*movv2df_internal): Likewise.
3660
3661 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
3662
3663         * config.gcc (crx-*-elf): Remove deprecation.
3664
3665 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
3666
3667         * config/i386/cygming-crtend.c (register_frame_ctor): Register
3668         __gcc_deregister_frame with atexit.
3669         (deregister_frame_dtor): Remove.
3670
3671 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
3672             Nathan Sidwell  <nathan@codesourcery.com>
3673
3674         * config/rs6000/rs6000.opt (mspe): Remove Var property.
3675         (misel): Likewise.
3676         * config/rs6000/rs6000.h (rs6000_spe): Declare.
3677         (rs6000_isel): Likewise.
3678         * config/rs6000/rs6000.c (rs6000_spe): New variable.
3679         (rs6000_isel): New variable.
3680         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
3681
3682 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3683
3684         PR c++/35758
3685         * c-common.c (handle_vector_size_attribute): Call
3686         lang_hooks.types.reconstruct_complex_type instead of
3687         reconstruct_complex_type.
3688         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
3689         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
3690         * langhooks.h (struct lang_hooks_for_types): Add
3691         reconstruct_complex_type hook.
3692         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
3693         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
3694
3695 2008-04-24  Richard Guenther  <rguenther@suse.de>
3696
3697         * c-common.h (check_builtin_function_arguments): Declare.
3698         * c-common.c (validate_nargs): New function.
3699         (check_builtin_function_arguments): Likewise.
3700         * c-typeck.c (build_function_call): Call
3701         check_builtin_function_arguments.
3702         * builtins.c (fold_builtin_classify): Remove error reporting code.
3703         (fold_builtin_unordered_cmp): Likewise.
3704         (fold_builtin_1): Likewise.
3705         (fold_builtin_n): Likewise.
3706
3707 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3708
3709         PR tree-optimization/36008
3710         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
3711         the original op1, rather than delta by step.
3712
3713 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
3714             Sebastian Pop  <sebastian.pop@amd.com>
3715
3716         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
3717         eliminate_local_variables_stmt, eliminate_local_variables,
3718         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
3719         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
3720         of code delimited by two edges in the CFG.
3721         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
3722         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
3723         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
3724         the case of parallelisation of reductions.
3725         (expr_invariant_in_region_p): New.
3726
3727         * tree-flow.h (gather_blocks_in_sese_region): Declared.
3728         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
3729
3730 2008-04-24  Ira Rosen  <irar@il.ibm.com>
3731             Richard Guenther  <rguenther@suse.de>
3732
3733         PR tree-optimization/36034
3734         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
3735         incapable of dealing with loads with gaps.
3736
3737 2008-04-24  Rafael Espindola  <espindola@google.com>
3738
3739         * tree-flow.h (vrp_evaluate_conditional): Change signature.
3740         * tree-ssa-propagate.c (fold_predicate_in): Update call to
3741         vrp_evaluate_conditional.
3742         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
3743         (vrp_evaluate_conditional): Split the cond argument.
3744         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
3745         (simplify_stmt_for_jump_threading): Update call to
3746         vrp_evaluate_conditional.
3747
3748 2008-04-24  Ira Rosen  <irar@il.ibm.com>
3749
3750         PR tree-optimization/35982
3751         * tree-vect-analyze.c (vect_check_interleaving): Check that the
3752         interleaved data-refs are of the same type.
3753
3754 2008-04-24  Danny Smith  <dannysmith@users.net>
3755
3756         * c-format.c (check_format_info_main): Use strncmp rather than a
3757         magic prefix to handle multichar length specs.
3758         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
3759         Don't prefix "I64" and "I32" with '\0'.
3760
3761 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
3762
3763         PR target/36015
3764         * config/i386/i386.c (init_cumulative_args): Don't pass anything
3765         in registers for -m32 only if stdarg_p (fntype).
3766
3767 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
3768
3769         PR rtl-optimization/36006
3770         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
3771         temp to op0 in order to avoid invalid rtx sharing.
3772
3773 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
3774
3775         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
3776         check TREE_INVARIANT.
3777         * tree-gimple.c (is_gimple_address): New.
3778         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
3779         * tree-gimple.h (is_gimple_address): New.
3780         * tree.h (decl_address_invariant_p): New.
3781         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
3782         (build_string): Likewise.
3783         (decl_address_invariant_p): New, from is_gimple_invariant_address.
3784         (tree_invariant_p_1): Likewise.
3785         (save_expr): Use it.
3786         (tree_invariant_p): New.
3787         (skip_simple_arithmetic): Use it.
3788         (stabilize_reference_1): Use it.
3789         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
3790         simplify.
3791         (build1_stat): Drop code to compute TREE_INVARIANT.
3792         (build2_stat): Drop code to compute TREE_INVARIANT.
3793         (build3_stat): Drop code to compute TREE_INVARIANT.
3794         (build4_stat): Drop code to compute TREE_INVARIANT.
3795         (build5_stat): Drop code to compute TREE_INVARIANT.
3796         (build7_stat): Drop code to compute TREE_INVARIANT.
3797         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
3798         * tree.h (struct tree_base): Remove invariant_flag.
3799         (TREE_INVARIANT): Remove.
3800         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
3801         (fold_builtin_expect): Check TREE_CONSTANT.
3802         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
3803         * c-tree.h (c_expr_to_decl): Drop third parameter.
3804         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
3805         (build_c_cast): Don't set TREE_INVARIANT.
3806         (pop_init_level): Don't set TREE_INVARIANT.
3807         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
3808         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
3809         TREE_CONSTANT.
3810         (gimplify_init_constructor): Don't set TREE_INVARIANT.
3811         (gimplify_addr_expr): Adjust comment.
3812         * tree-mudflap.c (mf_build_string):
3813         * print-tree.c (print_node): Don't print TREE_INVARIANT.
3814         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
3815         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
3816         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
3817         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
3818         * langhooks.h (struct lang_hooks): Drop third parameter from
3819         expr_to_decl.
3820
3821 2008-04-23  Richard Guenther  <rguenther@suse.de>
3822
3823         PR tree-optimization/27799
3824         PR tree-optimization/32921
3825         PR tree-optimization/32624
3826         * tree-ssa-structalias.c (merge_smts_into): Only merge the
3827         SMTs aliases and the tag itself into the solution.
3828         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
3829         merge the points-to solution back into the SMT aliases.
3830         (may_alias_p): Use alias_set_subset_of instead of
3831         aliases_conflict_p.  A pointer which points to
3832         memory with alias set zero may access any variable.
3833
3834 2008-04-23  Richard Guenther  <rguenther@suse.de>
3835
3836         * alias.c (alias_set_subset_of): Correctly handle asking
3837         if zero is a subset of an alias set with zero child.
3838         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
3839         (compute_flow_insensitive_aliasing): Correctly walk all
3840         pointers.  Do not unnecessarily union sets.
3841
3842 2008-04-23  Richard Guenther  <rguenther@suse.de>
3843
3844         PR middle-end/36021
3845         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
3846
3847 2008-04-22  Tomas Bily  <tbily@suse.cz>
3848
3849         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
3850         unreachable case.
3851         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
3852         NON_LVALUE_EXPR.
3853         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
3854         * tree-ssa-structalias.c (get_constraint_for): Likewise.
3855         * tree-inline.c (estimate_num_insns_1): Likewise.
3856         * varasm.c (const_hash_1, compare_constant, copy_constant)
3857         (compute_reloc_for_constant, output_addressed_constants): Likewise.
3858         * emit-rtl.c (component_ref_for_mem_expr)
3859         (set_mem_attributes_minus_bitpos): Likewise.
3860         * expr.c (highest_pow2_factor, expand_expr_real_1, )
3861         (is_aligning_offset): Likewise.
3862         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
3863         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
3864         * dojump.c (do_jump): Likewise.
3865         * builtins.c (get_pointer_alignment, get_memory_rtx)
3866         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
3867         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
3868
3869 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
3870
3871         PR rtl-optimization/36017
3872         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
3873         expanding the library call.
3874
3875 2008-04-22  Ian Lance Taylor  <iant@google.com>
3876
3877         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
3878         than size_in_bytes.
3879
3880 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
3881
3882         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
3883         of LR/CTR moves for Power6.
3884
3885 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
3886
3887         PR middle-end/36003
3888         * passes.c (init_optimization_passes): Remove
3889         pass_fast_rtl_byte_dce.
3890         
3891 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
3892
3893         PR target/29096
3894         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
3895         builtin functions to generate faster code.
3896         (_mm_cvtpu16_ps): Ditto.
3897         (_mm_cvtpi32x2_ps): Ditto.
3898
3899 2008-04-22  Nick Clifton  <nickc@redhat.com>
3900
3901         * common.opt (ftree-loop-distribution): Add Optimization
3902         attribute.
3903
3904         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
3905         (frv_expand_builtin_va_start): Likewise.
3906
3907         * config/arm/arm.c (thumb_find_work_register): Fix location of
3908         argument register count.
3909
3910 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3911
3912         Support scheduling for ColdFire V1 and V3 microarchitecture.
3913         Improve scheduling of multiplication instructions.
3914
3915         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
3916         (mac): New instruction attribute.
3917         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
3918         (m68k_sched_mac): New variable.
3919         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
3920         Handle cfv1 and cfv3.
3921         (max_insn_size): New static variable.
3922         (struct _sched_ib): New type.
3923         (sched_ib): New static variable.
3924         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
3925         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
3926         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
3927         Update.
3928         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
3929         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
3930         new variables.  Update.
3931         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
3932         Add modeling of cfv3 instruction buffer.  Update.
3933         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
3934         * config/m68k/m68k.h (TUNE_CFV3): New macro.
3935         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
3936         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
3937         a particular reservation applies to.
3938         (type2): Reorganize attribute values.  Rename alu to alu_reg,
3939         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
3940         to mul_l and mul_w.
3941         (cf_ib_*): Simplify description of instruction buffer.
3942         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
3943         (cf_mem): Split into cf_mem1 and cf_mem2.
3944         (cf_v2_move_??): Rename to cfv12_alu_??.
3945         (cf_v2_move_l_??): Rename to cfv12_omove_??.
3946         (cf_v2_mul_??): Remove reservations.
3947         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
3948         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
3949         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
3950         appropriate place.
3951         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
3952         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
3953         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
3954         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
3955         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
3956         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
3957         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
3958         expansions of the above reservations for instructions of sizes
3959         1, 2 and 3 words.
3960
3961 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
3962
3963         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
3964
3965 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
3966
3967         * coverage.c: Include tree-pass.h.
3968         (coverage_counter_alloc): Print da_file_name to the dump file.
3969
3970 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
3971
3972         * sbitmap.c (sbitmap_range_empty_p): New function.
3973         * sbitmap.h (sbitmap_range_empty_p): New function.
3974         * bitmap.h: Now includes obstack.h.
3975
3976 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
3977             Kenneth Zadeck  <zadeck@naturalbridge.com>
3978
3979         * dbgcnt.def (ra_byte_scan): Added.
3980         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
3981         when the last hit happens for a counter.  
3982         * timevar.def (TV_DF_BYTE_LR): New variable.
3983         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
3984         * passes.c (pass_fast_rtl_byte_dce): New pass.
3985         * fwprop.c (update_df): Added mode to call df_ref_create.
3986         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
3987         DF_REF_EXTRACT_OFFSET.
3988         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
3989         DF_BYTE_LR_OUT, df_byte_lr): New macro.
3990         (df_mm): New enum.
3991         (df_ref_extract): Added mode field.
3992         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
3993         DF_REF_EXTRACT_OFFSET.
3994         (DF_REF_EXTRACT_MODE): New macro.
3995         (df_byte_lr_bb_info): New structure.
3996         (df_print_byte_regset, df_compute_accessed_bytes, 
3997         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
3998         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
3999         df_byte_lr_simulate_uses,
4000         df_byte_lr_simulate_artificial_refs_at_top,
4001         df_byte_lr_simulate_artificial_refs_at_end,
4002         df_compute_accessed_bytes): New function.
4003         (df_ref_create): Add parameter.
4004         (df_byte_lr_get_bb_info): New inline function.
4005         * df-scan.c (df_ref_record, df_uses_record,
4006         df_ref_create_structure): Added mode parameter.
4007         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
4008         df_defs_record, df_uses_record, df_get_conditional_uses,
4009         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
4010         df_entry_block_defs_collect, df_exit_block_uses_collect):
4011         Added mode parameter to calls to df_ref_record, df_uses_record,
4012         df_ref_create_structure.
4013         (df_ref_equal_p, df_ref_compare): Added test for modes.
4014         (df_ref_create_structure): Added code to set mode.  Renamed
4015         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
4016         DF_REF_EXTRACT_OFFSET.
4017         * df-core.c (df_print_byte_regset): New function.
4018         * df-byte-scan.c: New file.
4019         * df-problems.c (df_rd_transfer_function): Removed unnecessary
4020         calls to BITMAP_FREE.  
4021         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
4022         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
4023         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
4024         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
4025         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
4026         df_byte_lr_local_compute, df_byte_lr_init,
4027         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
4028         df_byte_lr_transfer_function, df_byte_lr_free, 
4029         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
4030         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
4031         df_byte_lr_simulate_uses,
4032         df_byte_lr_simulate_artificial_refs_at_top,
4033         df_byte_lr_simulate_artificial_refs_at_end): New function.
4034         * dce.c (byte_dce_process_block): New function.
4035         (dce_process_block): au is now passed in rather than computed
4036         locally.  Changed loops that look at artificial defs to not look
4037         for conditional or partial ones, because there never are any.  
4038         (fast_dce): Now is able to drive byte_dce_process_block or 
4039         dce_process_block depending on the kind of dce being done.
4040         (rest_of_handle_fast_dce): Add parameter to fast_dce.
4041         (rest_of_handle_fast_byte_dce): New function.
4042         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
4043         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
4044
4045 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
4046
4047         PR fortran/35019
4048         * gcc.h: Added fortran options that take arguments to
4049         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
4050         macros.
4051
4052 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4053
4054         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
4055         scalarization if on the LHS and not a full access.
4056
4057 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4058
4059         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
4060
4061 2008-04-18  Rafael Espindola  <espindola@google.com>
4062
4063         * tree-vrp.c (find_case_label_index): Fix the binary search.
4064         (find_case_label_range): New.
4065         (vrp_visit_switch_stmt): Use find_case_label_range.
4066         (simplify_switch_using_ranges): Use find_case_label_range.
4067
4068 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
4069
4070         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
4071         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
4072
4073 2008-04-18  Tom Tromey  <tromey@redhat.com>
4074
4075         PR libcpp/15500:
4076         * doc/cpp.texi (Implementation-defined behavior): Mention
4077         -finput-charset.
4078
4079 2008-04-18  Ian Lance Taylor  <iant@google.com>
4080
4081         * fold-const.c (pointer_may_wrap_p): New static function.
4082         (fold_comparison): Add another test for pointer overflow.  Use
4083         pointer_may_wrap_p to disable some false positives.
4084
4085 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
4086           
4087         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
4088         (fname_as_string): Match updated cpp_interpret_string prototype.
4089         (fix_string_type): Support char16_t* and char32_t*.
4090         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
4091         derivative) nodes.  Register as builtin if C++0x.
4092         (c_parse_error): Support CPP_CHAR{16,32}.
4093         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
4094         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
4095         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
4096         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
4097         CTI_CHAR32_ARRAY_TYPE>: New elements.
4098         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
4099         char32_type_node, signed_char32_type_node, char16_array_type_node,
4100         char32_array_type_node): New defines.
4101         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
4102         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
4103         (lex_string): Support CPP_STRING{16,32}, match updated
4104         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
4105         (lex_charconst): Support CPP_CHAR{16,32}.
4106         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
4107         and CPP_STRING{16,32}.
4108
4109 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
4110
4111         PR bootstrap/35457
4112         * aclocal.m4: Regenerate.
4113         * configure: Regenerate.
4114
4115 2008-04-18  Jan Hubicka  <jh@suse.cz>
4116
4117         * except.c (dw2_size_of_call_site_table,
4118         sjlj_size_of_call_site_table): Use vector API for call_site_record.
4119
4120         * cgraphbuild.c (build_cgraph_edges): Update.
4121         * tree-pass.h: Update comment.
4122         * final.c (leaf_function_p): Update.
4123         (leaf_renumber_regs): Update.
4124         (rest_of_clean_state): Update.
4125         * omp-low.c (expand_omp_parallel): Update.
4126         * ipa-reference.c (analyze_function): Update.
4127         * reorg.c (find_end_label): Update.
4128         (optimize_skip): Update.
4129         (fill_simple_delay_slots): Update.
4130         (fill_simple_delay_slots): Update.
4131         (make_return_insns): Update.
4132         (dbr_schedule): Update.
4133         * gimple-low.c (record_vars_into): Update.
4134         * cfgbuild.c (make_edges): Update.
4135         * function.c (assign_stack_local): Update.
4136         (assign_parm_adjust_stack_rtl): Update.
4137         (locate_and_pad_parm): Update.
4138         (allocate_struct_function): Do not initialize stack_alignment_needed
4139         and preferred_stack_boundary here.
4140         (stack_protect_prologue): Update.
4141         (stack_protect_epilogue): Update.
4142         (expand_function_start): Initialize stack_alignment_needed,
4143         preferred_stack_boundary and max_jumptable_ents.
4144         (expand_function_end): Update.
4145         (free_after_compilation): Do not NULLify epilogue_delay_list.
4146         * function.h (struct rtl_data): Add stack_protect_guard,
4147         stack_alignment_needed,
4148         preferred_stack_boundary, epilogue_delay_list.
4149         (struct function): Remove value_histograms, stack_alignment_needed,
4150         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
4151         last_label_uid,
4152         unexpanded_var_list, stack_protect_guard.
4153         (current_function_epilogue_delay_list): Remove.
4154         * ipa-type-escape.c (analyze_function): Update.
4155         * gimplify.c (pop_gimplify_context): Update comment.
4156         * calls.c (expand_call): Update.
4157         (emit_library_call_value_1): Update.
4158         * except.c (set_nothrow_function_flags): Update.
4159         * cfgexpand.c (get_decl_align_unit): Update.
4160         (create_stack_guard): Update.
4161         (estimated_stack_frame_size): Update.
4162         (expand_used_vars): Update.
4163         (tree_expand_cfg): Free histogram earliers, init expansion variables.
4164         * explow.c (allocate_dynamic_stack_space): Update.
4165         * tree-ssa-live.c (remove_unused_locals): Update.
4166         * varasm.c (mark_constant_pool): Update.
4167         * tree-inline.c (remap_decls): Update.
4168         (initialize_cfun): Update.
4169         (declare_return_variable): Update.
4170         (inline_forbidden_p): Update.
4171         (expand_call_inline): Update.
4172         (declare_inline_vars): Update.
4173         (tree_function_versioning): Update.
4174         * tree-flow.h (value_histograms): New.
4175         (VALUE_HISTOGRAMS): New macro.
4176         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
4177         last_label_uid.
4178         * tree-cfg.c (set_bb_for_stmt): Update.
4179         (replace_by_duplicate_decl): Update.
4180         (move_block_to_fn): Update.
4181         (new_label_mapper): Update.
4182         (dump_function_to_file): Update.
4183         * ipa-struct-reorg.c (build_data_structure): Update.
4184         * cfgrtl.c (print_rtl_with_bb): Update.
4185         * reload1.c (reload): Update.
4186         (reload): Update.
4187         * config/i386/i386.c (setup_incoming_varargs_64,
4188         ix86_compute_frame_layout): Update.
4189         * config/arc/arc.c (arc_output_function_epilogue): Update.
4190
4191 2008-04-18  Marius Strobl <marius@FreeBSD.org>
4192
4193         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
4194         for FreeBSD as well.
4195         * gthr-posix95.h: Likewise.
4196
4197 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
4198
4199         PR rtl-optimization/35838
4200         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
4201         out the byte offset of the first subreg.
4202
4203 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
4204
4205         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
4206         to split_ti instead of three separate calls with single member arrays.
4207         (subti3 splitter): Ditto.
4208         (adddi3 splitter): Ditto with split_di.
4209         (subdi3 splitter): Ditto.
4210         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
4211         two separate calls with single member arrays.  Swap match_dup
4212         operands 1 and 2 to better fit into the array.
4213         (negdi2 splitter): Ditto with split_di.
4214         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
4215         two separate calls with single member arrays.  Swap match_dup operands
4216         6 and 7 to better fit into the array.
4217
4218 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
4219
4220         * config/i386/i386.c (sse_builtin_type): New.
4221         (bdesc_sse_args): Likewise.
4222         (bdesc_sse_3arg): Removed.
4223         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
4224         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
4225         IX86_BUILTIN_ROUNDPS.
4226         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
4227         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
4228         IX86_BUILTIN_ROUNDPS.
4229         (ix86_expand_sse_4_operands_builtin): Removed.
4230         (ix86_expand_sse_operands_builtin): New.
4231         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
4232         and CODE_FOR_sse4_1_roundps.
4233         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
4234         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
4235
4236 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
4237
4238         PR target/35907
4239         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
4240         regs before frame pop when needed.  If use_backchain_to_restore_sp
4241         then load backchain into a temp reg to restore vr and vrsave.  Add
4242         code to restore vr after frame pop if possible.
4243
4244 2008-04-17  Richard Guenther  <rguenther@suse.de>
4245
4246         * tree-vn.c (expressions_equal_p): Do not check type
4247         equality or compatibility before calling operand_equal_p.
4248         * fold-const.c (operand_equal_p): Check equivalence of
4249         integer constants before bailing out due to signedness or
4250         precision differences.
4251         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
4252         spurious differences in type qualification.  Ignore types
4253         for COMPONENT_REFs at all.
4254
4255 2008-04-17  Christian Bruel  <christian.bruel@st.com>
4256
4257         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
4258         msw_skip comparison.
4259         
4260 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
4261
4262         PR c/35739
4263         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
4264         reg type.
4265
4266         PR tree-optimization/35899
4267         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
4268         rather than TREE_OPERAND.
4269
4270 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
4271
4272         PR target/35944
4273         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
4274         temporary registers.  Change operand predicate to general_operand.
4275         (remainderxf3): Ditto.
4276
4277 2008-04-16  Richard Guenther  <rguenther@suse.de>
4278
4279         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
4280         * tree-affine.c (aff_combination_expand): Look through some
4281         conversions.
4282
4283 2008-04-15  Doug Kwan  <dougkwan@google.com>
4284
4285         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
4286         for hex printing.
4287         * tree-pretty-print.c (dump_generic_node): Ditto.
4288         * final.c (output_addr_const): Ditto.
4289         * dwarf2out.c (output_cfi): Ditto.
4290         * c-pretty-print.c (pp_c_integer_constant): Ditto.
4291         * print-rtl.c (print_rtx): Ditto.
4292         * print-tree.c (print_node_brief, print_node): Ditto.
4293         * c-common.c (match_case_to_enum_1): Ditto.
4294         * sched-vis.c (print_value): Ditto.
4295         * config/i386/i386.c (print_operand): Cast to long unsigned int
4296         for hex printing.
4297
4298 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
4299         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
4300         MS Windows VirtualProtect function.
4301
4302 2008-04-15  Jan Hubicka  <jh@suse.cz>
4303
4304         * gengtype.c (write_root): Param_is argument is OK.
4305         * expr.c (expand_expr_real_1): Update call of get_exception_*.
4306         * function.h: Include varray.h
4307         (rtl_eh): New stucture based on except.c one.
4308         (call_site_record): New forward declaration and vector type.
4309         * calls.c (emit_call_1): Do not call
4310         note_current_region_may_contain_throw.
4311         * except.c (eh_status): Remove cur_region, try_region since they are
4312         unused.
4313         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
4314         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
4315         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
4316         Remove call_site_data_used, call_site_data_size.
4317         Turn call_site_record into vector in function.h.
4318         (note_current_region_may_contain_throw): Remove.
4319         (get_exception_pointer, get_exception_filter): Do not take struct
4320         function argument; update.
4321         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
4322         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
4323         build_post_landing_pads, dw2_build_landing_pads,
4324         sjlj_assign_call_site_values, sjlj_mark_call_sites,
4325         sjlj_emit_function_enter, sjlj_emit_function_enter, 
4326         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
4327         sjlj_build_landing_pads, finish_eh_generation,
4328         remove_exception_handler_label, remove_eh_handler,
4329         maybe_remove_eh_handler, add_reachable_handler,
4330         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
4331         add_action_record, collect_one_action_chain, add_call_site,
4332         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
4333         sjlj_output_call_site_table, output_function_exception_table,
4334         * except.h (note_current_region_may_contain_throw): Remove
4335         (get_exception_pointer, get_exception_filter): Do not take struct
4336         function argument.
4337         * Makefile.in (GTFILES): Put varargs before struct function.
4338
4339 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4340
4341         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
4342         punt for STRING_CST.
4343         (get_constraint_for): Deal with STRING_CST here instead.
4344
4345 2008-04-15  Richard Guenther  <rguenther@suse.de>
4346
4347         * tree-ssa-propagate.c (substitute_and_fold): Substitute
4348         statements in a basic-block with a backward walk.  Do not
4349         substitute into dead statements but instead remove those.
4350
4351 2008-04-15  Richard Guenther  <rguenther@suse.de>
4352
4353         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
4354         to zero, thus disable creation of SFTs.
4355
4356 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
4357
4358         * tree-predcom.c (suitable_reference_p): Return false if the
4359         reference can throw.
4360
4361 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
4362
4363         PR c/35751
4364         * c-decl.c (finish_decl): If extern or static var has variable
4365         size, set TREE_TYPE (decl) to error_mark_node.
4366
4367 2008-04-15  Rafael Espindola  <espindola@google.com>
4368
4369         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
4370         variable arg1.
4371
4372 2008-04-15  Richard Guenther  <rguenther@suse.de>
4373
4374         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
4375         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
4376         (visit_reference_op_load): Do walk vuse-vdef chains on
4377         vn_reference_lookup.
4378         (visit_reference_op_store): But do not here.
4379         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
4380         vn_reference_lookup.
4381         (vn_lookup_with_vuses): But do so here.
4382
4383 2008-04-14  Ian Lance Taylor  <iant@google.com>
4384
4385         * fold-const.c (fold_overflow_warning): Remove assertion.
4386
4387 2008-04-15  Ben Elliston  <bje@au.ibm.com>
4388
4389         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
4390         temp1 local variables.
4391
4392 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
4393
4394         PR target/35661
4395         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
4396         ".text.unlikely" section as executable.
4397
4398 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
4399
4400         * config/ia64/ia64.c (rtx_needs_barrier): Handle
4401         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
4402         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
4403         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
4404         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
4405         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
4406         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
4407
4408 2008-04-14  Ian Lance Taylor  <iant@google.com>
4409
4410         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
4411         * fold-const.c (fold_comparison): If appropriate, test
4412         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
4413         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
4414         reassociating a pointer type.
4415         * doc/invoke.texi (Optimize Options): Document that
4416         -fstrict-overflow applies to pointer wraparound.
4417
4418 2008-04-13  Jan Hubicka  <jh@suse.cz>
4419
4420         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
4421
4422 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
4423
4424         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
4425         we are going to "save the world".
4426
4427 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
4428
4429         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
4430         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
4431         operand 0 constraint, not "=".
4432
4433 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
4434
4435         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
4436
4437 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
4438
4439         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
4440         of size of positions_needed * CHAR_BIT.
4441
4442 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
4443
4444         PR middle-end/35897
4445         * dse.c (store_info): Change positions_needed to unsigned
4446         HOST_WIDE_INT.
4447         (lowpart_bitmask): New.
4448         (record_store): Cast to unsigned HOST_WIDE_INT for
4449         positions_needed.  Assert width <= size of positions_needed *
4450         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
4451         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
4452         lowpart_bitmask to set mask.
4453
4454 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4455
4456         * config/bfin/constraints.md: New file.
4457         * config/bfin/bfin.md: Include it.
4458         (adddi3): Use satisfies_constraint functions instead of the old macros.
4459         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
4460         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
4461         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
4462         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
4463         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
4464         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
4465         EXTRA_CONSTRAINT): Delete.
4466         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
4467         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
4468         of the old macros.
4469         * config/bfin/bfin.c: Include "tm-constrs.h".
4470         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
4471         Use satisfies_constraint functions instead of the old macros.
4472         * doc/md.texi (Blackfin Constraints): Update file name reference.
4473
4474 2008-04-11  Richard Guenther  <rguenther@suse.de>
4475
4476         PR tree-optimization/35869
4477         * tree-vrp.c (execute_vrp): Move switch statement update after
4478         jump threading.  Schedule another cfg cleanup run.
4479
4480 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
4481
4482         PR c/35744
4483         * attribs.c (decl_attributes): Return early on errorneous node.
4484
4485 2008-04-10  Oleg Ryjkov  <olegr@google.com>
4486
4487         * tree.h (struct tree_base): Added a new flag default_def_flag.
4488         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
4489
4490 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
4491
4492         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
4493
4494 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4495
4496         PR target/35768
4497         * pa.md: Define mode iterator P.  Define mode attribute dwc.
4498         (dcacheflush): Update pattern to use iterator P and attribute dwc.
4499         (icacheflush): Likewise.
4500         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
4501         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
4502
4503 2008-04-11  Ben Elliston  <bje@au.ibm.com>
4504
4505         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
4506
4507 2008-04-10  Rafael Espindola  <espindola@google.com>
4508
4509         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
4510         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
4511         (extract_range_from_expr): The same.
4512
4513 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
4514
4515         * config/mips/mips.md (GPR2): New mode iterator.
4516         (seq): Add comment.
4517         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
4518         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
4519         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
4520         Rewrite these to take two modes, the mode of comparison and the
4521         mode of the destination.
4522         * config/mips/mips.c (mips_expand_scc): Instead of having
4523         paradoxical subreg as destination, expand "narrowing" scc if mode
4524         of comparison is SI and target is requested in DI mode.
4525         (mips_emit_int_order_test): Update comment.  Make mode of
4526         comparison match CMP0 rather than TARGET.  When creating inverse
4527         target use mode of TARGET.
4528
4529 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
4530
4531         * gcov-dump.c (tag_summary): Only print summaries for the first
4532         GCOV_COUNTERS_SUMMABLE counters.
4533
4534 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
4535
4536         * config/i386/i386.md (absneg): New code iterator.
4537         (absnegprefix): New code attribute.
4538         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
4539         patterns using absneg code iterator.
4540         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
4541         using absneg code iterator.
4542         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
4543         *neg<mode>2 patterns using absneg code iterator.
4544         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4545         *negextendsfdf2 patterns using absneg code iterator.
4546         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
4547         *negextendsfxf2 patterns using absneg code iterator.
4548         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
4549         *negextendsfdf2 patterns using absneg code iterator.
4550         * config/i386/sse.md (<code><mode>2): Macroize expander from
4551         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
4552
4553 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
4554
4555         * config/s390/s390.h: Remove the remains of the recent search
4556         & replace action of current_function_outgoing_args_size.
4557
4558 2008-04-10  Ira Rosen  <irar@il.ibm.com>
4559
4560         PR tree-optimization/35821
4561         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
4562         NEW_STMT_LIST is not NULL.
4563
4564 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
4565
4566         PR libstdc++/35597
4567         * toplev.c (process_options): Remove -ffunction-sections debugging
4568         warning.
4569
4570 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
4571
4572         PR middle-end/PR28690
4573         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
4574         than gen_rtx_fmt_ee to perform more canonicalizations.
4575
4576 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4577
4578         PR driver/35665
4579         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
4580
4581 2008-04-09  Richard Guenther  <rguenther@suse.de>
4582
4583         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
4584         (dump_function_to_file): Dump function arguments with types.
4585
4586 2008-04-08  Richard Guenther  <rguenther@suse.de>
4587
4588         * fold-const.c (fold_widened_comparison): Do not allow
4589         sign-changes that change the result.
4590
4591 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
4592
4593         PR target/35839
4594         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
4595         kinds of indirect references.
4596
4597 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
4598
4599         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
4600         GNU Fortran language string.
4601
4602 2008-04-08  Rafael Espindola  <espindola@google.com>
4603
4604         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
4605         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
4606         * tree.h (tree_call_nonnegative_warnv_p): New.
4607
4608 2008-04-08  Jan Hubicka  <jh@suse.cz>
4609
4610         * function.c (free_after_compilation): Clear out regno_reg_rtx
4611         pointer.
4612
4613 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
4614
4615         Revert
4616         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
4617
4618         PR middle-end/PR28690
4619         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
4620         same precedence as REG_POINTER and MEM_POINTER operands.
4621
4622 2008-04-08  Richard Guenther  <rguenther@suse.de>
4623
4624         PR middle-end/35834
4625         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
4626         for adding index to base.
4627
4628 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
4629
4630         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
4631         (MINGW_ENABLE_EXECUTE_STACK): New.
4632         (IN_LIBGCC2): For libgcc include windows.h file for
4633         function declarations.
4634
4635 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
4636
4637         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
4638         and tem2 if tem1 is not a REG or MULT.
4639
4640 2008-04-08  Jan Hubicka  <jh@suse.cz>
4641
4642         * function.h (incomming_args): Break out of struct function.
4643         (function_subsections): Break out of struct function.
4644         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
4645         return_rtx and hard_reg_initial_vals from struct function.
4646         Kill inl_max_label_num.
4647         (current_function_pops_args, current_function_args_info,
4648         current_function_args_size, current_function_args_size,
4649         current_function_pretend_args_size,
4650         current_function_outgoing_args_size,
4651         current_function_internal_arg_pointer, current_function_return_rtx):
4652         Kill compatibility accestor macros.
4653         * builtins.c (expand_builtin_apply_args_1): Update.
4654         (expand_builtin_next_arg): Update.
4655         * df-scan.c (df_get_call_refs): Update.
4656         * dbxout.c (dbxout_function_end): Update.
4657         * dwarf2out.c (dwarf2out_switch_text_section): Update.
4658         (output_line_info): Update.
4659         (secname_for_decl): Update.
4660         (dwarf2out_var_location): Update.
4661         * function.c (free_after_compilation): Update.
4662         (assign_parm_find_stack_rtl): Update.
4663         (assign_parms): Update.
4664         (expand_dummy_function_end): Update.
4665         (expand_function_end): Update.
4666         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
4667         (expand_call): Update.
4668         (emit_library_call_value_1): Update.
4669         (store_one_arg): Update.
4670         * varasm.c (initialize_cold_section_name): Update.
4671         (unlikely_text_section): Update.
4672         (unlikely_text_section_p): Update.
4673         (assemble_start_function): Update.
4674         (assemble_end_function): Update.
4675         (default_section_type_flags): Update.
4676         (switch_to_section): Update.
4677         * integrate.c (set_decl_abstract_flags): Update.
4678         (get_hard_reg_initial_val): Update.
4679         (has_hard_reg_initial_val): Update.
4680         (allocate_initial_values): Update.
4681         * resource.c (init_resource_info): Update.
4682         * config/alpha/alpha.c (NUM_ARGS): Update.
4683         (direct_return): Update.
4684         (alpha_va_start): Update.
4685         (alpha_sa_size): Update.
4686         (alpha_initial_elimination_offset): Update.
4687         (alpha_expand_prologue): Update.
4688         (alpha_start_function): Update.
4689         (alpha_expand_epilogue): Update.
4690         (unicosmk_initial_elimination_offset):
4691         * config/alpha/alpha.md (call expander): Update.
4692         * config/s390/s390.c (s390_register_info): Update.
4693         (s390_register_info): Update.
4694         (s390_frame_info): Update.
4695         (s390_initial_elimination_offset): Update.
4696         (s390_build_builtin_va_list): Update.
4697         (s390_va_start): Update.
4698         * config/spu/spu.c (direct_return): Update.
4699         (spu_expand_prologue): Update.
4700         (spu_initial_elimination_offset): Update.
4701         (spu_build_builtin_va_list): Update.
4702         (spu_va_start): Update.
4703         * config/sparc/sparc.c (sparc_init_modes): Update.
4704         (sparc_compute_frame_size): Update.
4705         (function_value): Update.
4706         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
4707         * config/i386/i386.md (return expander): Update.
4708         * config/i386/i386.c (ix86_va_start): Update.
4709         (ix86_can_use_return_insn_p): Update.
4710         (ix86_compute_frame_layout): Update.
4711         (ix86_expand_epilogue): Update.
4712         * config/sh/sh.c (output_stack_adjust): Update.
4713         (calc_live_regs): Update.
4714         (sh_expand_prologue): Update.
4715         (sh_builtin_saveregs): Update.
4716         (sh_va_start): Update.
4717         (initial_elimination_offset): Update.
4718         (sh_allocate_initial_value): Update.
4719         (sh_function_ok_for_sibcall): Update.
4720         (sh_get_pr_initial_val): Update.
4721         * config/sh/sh.md (return expander): Update.
4722         * config/avr/avr.c (frame_pointer_required_p): UPdate.
4723         * config/crx/crx.c (crx_compute_frame): UPdate.
4724         (crx_initial_elimination_offset): UPdate.
4725         * config/xtensa/xtensa.c (compute_frame_size): Update
4726         (xtensa_builtin_saveregs): Update.
4727         (xtensa_va_start): Update.
4728         (order_regs_for_local_alloc): Update.
4729         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
4730         (xstormy16_expand_builtin_va_start): Update.
4731         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
4732         * config/m68hc11/m68hc11.md (return expanders): Update.
4733         * config/m68hc11/m68hc11.c (expand_prologue): Update.
4734         (expand_epilogue): Update.
4735         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
4736         (cris_simple_epilogue): Update.
4737         (cris_expand_prologue): Update.
4738         (cris_expand_epilogue): Update.
4739         * config/iq2000/iq2000.c (iq2000_va_start): Update.
4740         (compute_frame_size): Update.
4741         * config/mt/mt.c (mt_compute_frame_size): Update.
4742         * config/mn10300/mn10300.c (expand_prologue): Update.
4743         (expand_epilogue): Update.
4744         (initial_offset): Update.
4745         (mn10300_builtin_saveregs):
4746         * config/mn10300/mn10300.md (return expander): Update.
4747         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
4748         (ia64_initial_elimination_offset): Update.
4749         (ia64_initial_elimination_offset): Update.
4750         (ia64_expand_prologue): Update.
4751         * config/m68k/m68k.md (return expander): Update.
4752         * config/rs6000/rs6000.c (rs6000_va_start): Update.
4753         (rs6000_stack_info): Update.
4754         * config/mcore/mcore.c (layout_mcore_frame): Update.
4755         (mcore_expand_prolog): Update.
4756         * config/arc/arc.c (arc_compute_frame_size): Update.
4757         * config/score/score3.c (score3_compute_frame_size): Update.
4758         * config/score/score7.c (score7_compute_frame_size): Update.
4759         * config/arm/arm.c (use_return_insn): Update.
4760         (thumb_find_work_register): Update.
4761         (arm_compute_save_reg_mask): Update.
4762         (arm_output_function_prologue): Update.
4763         (arm_output_epilogue): Update.
4764         (arm_size_return_regs): Update.
4765         (arm_get_frame_offsets): Update.
4766         (arm_expand_prologue): Update.
4767         (thumb_exit): Update.
4768         (thumb_unexpanded_epilogue): Update.
4769         (thumb1_output_function_prologue): Update.
4770         * config/pa/pa.md (return expander): Update.
4771         * config/pa/pa.c (compute_frame_size): Update.
4772         (hppa_builtin_saveregs): Update.
4773         * config/mips/mips.c (mips_va_start): Update.
4774         (mips16_build_function_stub): Update.
4775         (mips_compute_frame_info): Update.
4776         (mips_restore_gp): Update.
4777         (mips_output_function_prologue): Update.
4778         (mips_expand_prologue): Update.
4779         * config/v850/v850.c (compute_frame_size): Update.
4780         (expand_prologue): * config/mmix/mmix.c (along): update.
4781         (mmix_initial_elimination_offset): update.
4782         (mmix_reorg): update.
4783         (mmix_use_simple_return): update.
4784         (mmix_expand_prologue): update.
4785         (mmix_expand_epilogue): Update.
4786         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
4787         (emit_link_insn): Update.
4788
4789 2008-04-08  Anatoly Sokolov <aesok@post.ru>
4790
4791         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
4792         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
4793         instructions.
4794         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
4795         atmega103 device.
4796
4797 2008-04-07  Jan Hubicka  <jh@suse.cz>
4798
4799         * function.h (rtl): Rename to x_rtl.
4800         (crtl): New define.
4801         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
4802         frame_offset, stack_check_probe_note, arg_pointer_save_area,
4803         used_temp_slots avail_temp_slots, temp_slot_level,
4804         nonlocal_goto_handler_labels): Update accesstors.
4805         (rtl): New global variable.
4806         (struct function): Move some fileds to rtl_data.
4807         (get_arg_pointer_save_area): Update prototype.
4808         * builtins.c (expand_builtin_setjmp_receiver): Update call of
4809         get_arg_pointer_save_area.
4810         * expr.c (init_expr): Update
4811         * function.c (get_frame_size): Update
4812         (assign_stack_local): Update
4813         (expand_function_end): Update.
4814         (get_art_pointer_save_area): Update
4815         * function.h 
4816         * emit-rtl.c (rtl): Declare.
4817         (regno_reg_rtx): Declare.
4818         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
4819         Update.
4820         (gen_reg_rtx): Update.
4821         * varasm.c (n_deferred_constatns): Update accestor.
4822         (init_varasm_status): Do not allocate varasm_status.
4823         (force_const_mem, get_pool_size, output_constant_pool): Update.
4824         * stmt.c (force_label_rtx): Do not use x_ prefixes.
4825         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
4826         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
4827         * sparc/sparc.h (INIT_EXPANDERS): Update.
4828         * ia64/ia64.h (INIT_EXPANDERS): Update.
4829
4830 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
4831
4832         * reload.c (push_secondary_reload): Add missing break to for loop.
4833
4834 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
4835
4836         PR middle-end/PR28690
4837         * rtlanal.c: Update copyright years.
4838         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
4839         as REG_POINTER and MEM_POINTER operands.
4840         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
4841         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
4842         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
4843         * gcse.c: Update copyright years.
4844         (pre_delete): Call gen_reg_rtx_and_attrs.
4845         (hoist_code): Likewise.
4846         (build_store_vectors): Likewise.
4847         (delete_store): Likewise.
4848         * loop-invariant.c (move_invariant_reg): Likewise.
4849         Update copyright years.
4850
4851 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
4852
4853         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
4854         control string instead of quoted.
4855
4856 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
4857
4858         * doc/rtl.texi: Rewrite of subreg section.
4859
4860 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
4861
4862         PR/35842
4863         * config/i386/i386.c (legitimize_pic_address): Add treating
4864         of dllimport SYM_REF's.
4865         (legitimize_dllimport_symbol): Add prototype.
4866
4867 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4868
4869         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
4870         reference in constructor with non self-referential type.
4871
4872 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
4873
4874         Removal of Return with Depressed Stack Pointer support
4875         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
4876         (ECF_SP_DEPRESSED): Likewise.
4877         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
4878         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
4879         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
4880         (expand_call): Do not test ECF_SP_DEPRESSED.
4881         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
4882         * function.c (keep_stack_depressed): Delete.
4883         (handle_epilogue_set): Likewise.
4884         (update_epilogue_consts): Likewise.
4885         (emit_equiv_load): Likewise.
4886         (thread_prologue_and_epilogue_insns): Remove support for Return with
4887         Depressed Stack Pointer.
4888         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
4889
4890 2008-04-06  Richard Guenther  <rguenther@suse.de>
4891
4892         PR tree-optimization/35400
4893         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
4894         information from SSA_NAMEs.
4895
4896 2008-04-06  Anatoly Sokolov <aesok@post.ru>
4897
4898         * config/avr/avr.h (avr_mega_p): Remove declaration.
4899         (AVR_MEGA): Remove macro.
4900         * config/avr/avr.c (avr_mega_p): Remove variable.
4901         (avr_override_options): Remove inicializion of avr_mega_p.
4902         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
4903         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
4904         (avr_jump_mode): (Ditto.).
4905         (avr_output_progmem_section_asm_op): (Ditto.).
4906         (avr_asm_init_sections): (Ditto.).
4907         (avr_asm_init_sections): (Ditto.).
4908         (avr_rtx_costs): (Ditto.).
4909         * config/avr/avr.md: (Ditto.).
4910         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
4911         '__AVR_MEGA__'.
4912
4913 2008-04-06  Richard Guenther  <rguenther@suse.de>
4914
4915         PR tree-optimization/35842
4916         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
4917         is_gimple_invariant_address.
4918
4919 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4920
4921         * gcc.c (default_compilers): Sync Fortran extensions list with
4922         that in fortran/lang-specs.h.
4923         * doc/invoke.texi: Likewise.
4924         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
4925         * dwarf2out.c (gen_compile_unit_die): Likewise.
4926
4927 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
4928
4929         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
4930
4931 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
4932
4933         PR target/12329
4934         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
4935         attribute is used for nested functions.
4936
4937 2008-04-05  Jan Hubicka  <jh@suse.cz>
4938
4939         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
4940
4941         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
4942         letter argument.
4943         (dump_files): Update.
4944         (enable_rtl_dump_file): Do not accept letter argument.
4945         * tree-pass.h (dump_file_info): Remove letter argument.
4946         * toplev.c (decode_d_option): Update -da handling.
4947         * toplev.h (enable_rtl_dump_file): Update prototype.
4948         * passes.c (register_one_dump_file): Do not accept IPA argument; work
4949         it out based on pass type.
4950         (register_dump_files_1): Likewise.
4951         (init_optimization_passes): Update register_one_dump_file calls.
4952         (execute_one_pass): Sanity check that IPA passes are called at IPA
4953         level and RTL passes at RTL level.
4954         (execute_pass_list): IPA pass can not be after or subpass of
4955         GIMPLE/RTL pass.
4956         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
4957         disallov RTL subpasses of IPA subpasses.
4958
4959 2008-04-05  Ben Elliston  <bje@au.ibm.com>
4960
4961         * tree-cfg.c (need_fake_edge_p): Return false for calls to
4962         builtins that return exactly once and do not throw. Cache call to
4963         call_expr_flags.
4964
4965 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
4966
4967         PR rtl-optimization/34916
4968         PR middle-end/35519
4969         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
4970         between instruction pairs.
4971
4972 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
4973
4974         * doc/invoke.texi: Document -mbitops for SH.
4975         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
4976         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
4977         * config/sh/sh.c (print_operand): Add %t operand code.
4978         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
4979         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
4980         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
4981         (extendqihi2): Likewise.
4982         (movqi_i): Likewise.
4983         (insv): Use bset, bclr and bst instructions for SH2A if possible.
4984         (extv): Use bld instruction for SH2A if possible.
4985         (extzv): Likewise.
4986         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
4987         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
4988         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
4989         (bset.b, bclr.b): Define peepholes.
4990         * config/sh/sh.opt (mbitops): New option.
4991
4992 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
4993
4994         PR target/35620
4995         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
4996         and view convert expression.
4997
4998 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
4999
5000         PR target/35364
5001         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5002
5003 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
5004
5005         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
5006
5007         * config/i386/cpuid.h (bit_AES): New.
5008         (bit_PCLMUL): Likewise.
5009
5010         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
5011         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
5012         SSE2 if AES or PCLMUL is enabled.
5013         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
5014         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
5015         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
5016         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
5017         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
5018         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
5019         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
5020         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
5021         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
5022         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
5023         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
5024         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
5025         __builtin_ia32_aeskeygenassist128 and
5026         __builtin_ia32_pclmulqdq128.
5027         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
5028         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
5029         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
5030
5031         * config/i386/i386.h (TARGET_AES): New.
5032         (TARGET_PCLMUL): Likewise.
5033         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
5034
5035         * config/i386/i386.md (UNSPEC_AESENC): New.
5036         (UNSPEC_AESENCLAST): Likewise.
5037         (UNSPEC_AESDEC): Likewise.
5038         (UNSPEC_AESDECLAST): Likewise.
5039         (UNSPEC_AESIMC): Likewise.
5040         (UNSPEC_AESKEYGENASSIST): Likewise.
5041         (UNSPEC_PCLMUL): Likewise.
5042
5043         * config/i386/i386.opt (maes): New.
5044         (mpclmul): Likewise.
5045
5046         * config/i386/sse.md (aesenc): New pattern.
5047         (aesenclast): Likewise.
5048         (aesdec): Likewise.
5049         (aesdeclast): Likewise.
5050         (aesimc): Likewise.
5051         (aeskeygenassist): Likewise.
5052         (pclmulqdq): Likewise.
5053
5054         * config/i386/wmmintrin.h: New.
5055
5056         * doc/extend.texi: Document AES and PCLMUL built-in function.
5057
5058         * doc/invoke.texi: Document -maes and -mpclmul.
5059
5060 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
5061
5062         * function.c (free_after_parsing): Replace with
5063         cxx_push_function_context from C++ front-end.
5064         (allocate_struct_function): Don't call langhook.
5065         * langhooks.h (struct lang_hooks_for_functions): Delete.
5066         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
5067         member "function".
5068         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
5069         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
5070         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
5071         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
5072         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
5073         remove LANG_HOOKS_FUNCTION_INITIALIZER.
5074         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
5075
5076         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
5077         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
5078         
5079 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
5080
5081         PR c/35440
5082         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
5083         for all types.
5084
5085 2008-04-04  Richard Guenther  <rguenther@suse.de>
5086
5087         PR middle-end/35823
5088         * fold-const.c (optimize_minmax_comparison): Use the correct
5089         type for the constant in the simplified comparison.
5090
5091 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
5092
5093         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
5094         Pass L2 size as "--param l2-cache-size" to the compiler.
5095         (decode_l2_cache): New function to decode L2 cache parameters using
5096         0x8000006 extended cpuid function.
5097         (detect_caches_amd): Determine parameters of L2 cache using
5098         decode_l2_caches function.
5099         (decode_caches_intel): Decode L2 cache parameters.
5100         (detect_caches_intel): Determine L2 cache parameters using
5101         decode_caches_intel and decode_l2_caches functions.
5102
5103 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
5104
5105         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
5106         secondary input reload for subword loads from the constant pool.
5107
5108 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
5109
5110         PR target/35713
5111         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
5112           constants of the appropriate size for runtime calculations.
5113
5114         PR c/35712
5115         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
5116           decimal-float literal constant zero.
5117
5118 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
5119
5120         PR c/35738
5121         * c-parser.c (c_parser_omp_atomic): Call
5122         default_function_array_conversion on the RHS.
5123
5124         PR middle-end/35818
5125         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
5126         call is_variable_sized if decl has incomplete type.
5127
5128 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
5129
5130         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
5131
5132 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
5133
5134         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
5135         iterators.
5136         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
5137         (sgt<u>): Merge sgt and sgtu into new expander.
5138         (sgt, sgtu): Remove expanders.
5139         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
5140         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
5141         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
5142         *sgtu_<mode>_mips16 into new pattern.
5143         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
5144         (sge<u>): Merge sge and sgeu into new expander.
5145         (sge, sgeu): Remove expanders.
5146         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
5147         new pattern.
5148         (*sge_<mode>, second *sge_<mode>): Remove patterns.
5149         (slt<u>): Merge slt and sltu into new expander.
5150         (slt, sltu): Remove expanders.
5151         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
5152         (*slt_<mode>, *sltu_<mode>): Remove patterns.
5153         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
5154         *sltu_<mode>_mips16 into new pattern.
5155         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
5156         (sle<u>): Merge sle and sleu into new expander.
5157         (sle, sleu): Remove expanders.
5158         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
5159         (*sle_<mode>, *sleu_<mode>): Remove patterns.
5160         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
5161         *sleu_<mode>_mips16 into new pattern.
5162         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
5163
5164 2008-04-03  Jan Hubicka  <jh@suse.cz>
5165
5166         PR tree-optimization/35795
5167         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
5168         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
5169         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
5170         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
5171         * score/score3.c (score3_output_mi_thunk): Likewise.
5172         * score/score7.c (score7_output_mi_thunk): Likewise.
5173         * mips/mips.c (mips_output_mi_thunk): Likewise.
5174
5175 2008-04-03  Richard Guenther  <rguenther@suse.de>
5176
5177         * tree-vrp.c (extract_range_from_unary_expr): Handle all
5178         conversions.  Simplify code.
5179
5180 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5181
5182         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
5183
5184 2008-04-03  Tom Tromey  <tromey@redhat.com>
5185             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5186
5187         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
5188         * config/bfin/t-bfin-linux (generated_files): Add
5189         linux-sysroot-suffix.h.
5190         * doc/install.texi (Prerequisites): Require make 3.80.
5191         * doc/sourcebuild.texi (Front End Directory): Document new
5192         variable.
5193         * Makefile.in (generated_files): New variable.
5194         (ALL_HOST_OBJS): New variable.
5195         ($(ALL_HOST_OBJS)): New target.
5196
5197 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5198
5199         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
5200         (remap_block): Call id->transform_lang_insert_block instead
5201         of langhook.
5202         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
5203         Set id.transform_lang_insert_block to NULL.
5204         (clone_body): Move to cp/optimize.c
5205         * tree-inline.h (struct copy_body_data): Change
5206         transform_lang_insert_block to function pointer.
5207         (copy_generic_body, copy_decl_no_change): Export.
5208         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
5209         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
5210         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
5211
5212         * c-tree.h (insert_block): Kill.
5213         * c-decl.c (insert_block): Kill.
5214
5215 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
5216
5217         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5218         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
5219         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
5220         argument.
5221         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
5222         argument, call {push,pop}_function_context from here.
5223         * c-parser.c: Use c_{push,pop}_function_context.
5224
5225         * function.c (push_function_context_to): Move meat ...
5226         (push_function_context): ... here.  Simplify.
5227         * function.c (pop_function_context_from): Move meat ...
5228         (pop_function_context): ... here.  Simplify.
5229         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
5230         leave_nested).
5231         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5232         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
5233         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
5234         * tree.h (push_function_context_to, pop_function_context_from): Remove.
5235
5236 2008-04-03  Ben Elliston  <bje@au.ibm.com>
5237
5238         * expmed.c (extract_force_align_mem_bit_field): Remove.
5239
5240 2008-04-03  Richard Guenther  <rguenther@suse.de>
5241
5242         PR middle-end/35800
5243         * expr.h (try_casesi): Adjust prototype.
5244         * expr.c (try_casesi): Take fallback label as extra parameter.
5245         Use that for gen_casesi if default_label is NULL.
5246         * stmt.c (expand_case): Pass fallback label to try_casesi,
5247         make sure to fill gaps with a fallback label if default_label
5248         is not present.
5249
5250 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
5251
5252         PR target/35801
5253         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
5254
5255 2008-04-03  Ben Elliston  <bje@au.ibm.com>
5256
5257         * expmed.c (extract_split_bit_field): Remove if (0) code.
5258         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
5259         (do_ds_constraint): Likewise.
5260
5261 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
5262
5263         * doc/cppopts.texi (-dU): Document.
5264         * c-common.h (flag_dump_macros): Update comment.
5265         * c-opts.c (handle_OPT_d): Handle -dU.
5266         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
5267         dump_queued_macros, cb_used_define, cb_used_undef): New.
5268         (init_pp_output): Handle -dU.
5269         (cb_line_change): Call dump_queued_macros.
5270         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
5271
5272 2008-04-02  Anatoly Sokolov <aesok@post.ru>
5273
5274         * config/avr/predicates.md (io_address_operand): New predicate. 
5275         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
5276         * config/avr/avr.c (avr_io_address_p): Remove function.
5277         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
5278         'avr_io_address_p' function.
5279         (out_movhi_r_mr): (Ditto.).
5280         (out_movqi_mr_r): (Ditto.).
5281         (out_movhi_mr_r): (Ditto.).
5282         (avr_address_cost): (Ditto.).
5283
5284 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
5285
5286         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
5287         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
5288         in 32bit mode when XMM registers are available to avoid store
5289         forwarding stalls.
5290         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
5291         corresponding post-reload splitters.
5292
5293 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5294
5295         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
5296         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
5297         __builtin_ia32_roundss.
5298         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
5299         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
5300         __builtin_ia32_roundss.
5301         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
5302         IX86_BUILTIN_SHUFPD here.
5303
5304 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
5305
5306         * config/i386/i386.md (plogic): New.
5307         (plogicprefix): Likewise.
5308
5309         * config/i386/mmx.md (mmx_<code><mode>3): New.
5310         (mmx_and<mode>3): Removed.
5311         (mmx_ior<mode>3): Likewise.
5312         (mmx_xor<mode>3): Likewise.
5313
5314         * config/i386/sse.md (<code><mode>3): New.
5315         (*<code><mode>3): Likewise.
5316         (*<code><mode>3): Likewise.
5317         (<code><mode>3): Likewise.
5318         (*sse_<code><mode>3): Likewise.
5319         (*sse2_<code><mode>3): Likewise.
5320         (<code>tf3): Likewise.
5321         (*<code>tf3): Likewise.
5322         (and<mode>3): Likewise.
5323         (*and<mode>3): Likewise.
5324         (ior<mode>3): Removed.
5325         (*ior<mode>3): Likewise.
5326         (xor<mode>3): Likewise.
5327         (*xor<mode>3): Likewise.
5328         (*and<mode>3): Likewise.
5329         (*ior<mode>3): Likewise.
5330         (*xor<mode>3): Likewise.
5331         (and<mode>3): Likewise.
5332         (*sse_and<mode>3): Likewise.
5333         (*sse2_and<mode>3): Likewise.
5334         (andtf3): Likewise.
5335         (*andtf3): Likewise.
5336         (ior<mode>3): Likewise.
5337         (*sse_ior<mode>3): Likewise.
5338         (*sse2_ior<mode>3): Likewise.
5339         (iortf3): Likewise.
5340         (*iortf3): Likewise.
5341         (xor<mode>3): Likewise.
5342         (*sse_xor<mode>3): Likewise.
5343         (*sse2_xor<mode>3): Likewise.
5344         (xortf3): Likewise.
5345         (*xortf3): Likewise.
5346
5347 2008-04-02  Richard Guenther  <rguenther@suse.de>
5348
5349         PR tree-optimization/14495
5350         PR tree-optimization/34793
5351         * tree-vrp.c (struct switch_update): New structure.
5352         (to_remove_edges, to_update_switch_stmts): New VECs.
5353         (simplify_switch_using_ranges): New function.  Remove not taken
5354         case labels and edges.
5355         (simplify_stmt_using_ranges): Call it.
5356         (identify_jump_threads): Mark edges we have queued for removal
5357         so we don't thread them.
5358         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
5359         case label vector.
5360         * tree-cfg.c (group_case_labels): Deal with missing default label.
5361         (tree_verify_flow_info): Allow missing default label.
5362         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
5363         (emit_case_nodes): Likewise.
5364         (expand_case): Do not rely on the default label to be present.
5365         * expr.c (try_casesi): Deal with NULL default_label.
5366         (do_tablejump): Likewise.
5367
5368 2008-04-02  Richard Guenther  <rguenther@suse.de>
5369
5370         PR tree-optimization/14495
5371         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
5372         SWITCH_EXPR here ...
5373         (vrp_visit_switch_stmt): ... but here (new function).
5374         (find_case_label_index): New helper function.
5375         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
5376
5377 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5378
5379         * fwprop.c: Fix ISO-C99ism.
5380
5381 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5382
5383         PR bootstrap/35752
5384         * Makefile.in (objdir): Set it here.
5385         * configure.ac: Not here.  Find dynamic linker characteristics.
5386         * exec-tool.in: Use them.
5387         * aclocal.m4: Regenerate.
5388         * configure: Regenerate.
5389
5390 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5391
5392         * expr.c (expand_var): Delete it.
5393         * expr.h (expand_var): Delete prototype.
5394         * function.c (expand_function_start): Use expand_decl instead.
5395         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
5396         langhook.
5397
5398 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
5399
5400         PR rtl-optimization/35542
5401         * fwprop.c (forward_propagate_and_simplify): Replace
5402         loc_reg_mentioned_in_p with reg_mentioned_p.
5403
5404 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
5405
5406         PR rtl-optimization/35281
5407         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
5408         (propagate_rtx_1): Handle PR_HANDLE_MEM.
5409         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
5410         (varying_mem_p): Move above propagate_rtx.
5411         (all_uses_available_at): Do not check MEMs.
5412
5413 2008-04-02  Rafael Espindola  <espindola@google.com>
5414
5415         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
5416         (register_edge_assert_for_2): Split the cond argument.
5417         (register_edge_assert_for_1): Adjust for the change in
5418         register_edge_assert_for_2.
5419         (register_edge_assert_for): Split the cond argument.
5420         (find_switch_asserts): Adjust for the change in
5421         register_edge_assert_for.
5422
5423 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
5424
5425         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
5426         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
5427         offsets for 64-bit mingw.
5428         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
5429         abi for x86_64-pc-mingw.
5430
5431 2008-04-02  Richard Guenther  <rguenther@suse.de>
5432
5433         * tree-vrp.c (extract_range_from_assert): Make sure to not
5434         produce range min/max with TREE_OVERFOW set.
5435         If merging a anti-range and a range keep the anti-range if
5436         the range covers all values of the type.
5437         (register_edge_assert_for_2): Only allow sign-changing
5438         conversions in detecting canonical range checks.  Also
5439         register an assert for the unsigned name if useful.
5440
5441         PR tree-optimization/35787
5442         * tree-vrp.c (vrp_val_max): New function.
5443         (vrp_val_min): Likewise.
5444         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
5445         (vrp_val_is_min): Likewise.
5446         (supports_overflow_infinity): Use vrp_val_{min,max}.
5447         (negative_overflow_infinity): Likewise.
5448         (positive_overflow_infinity): Likewise.
5449         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
5450         (is_positive_overflow_infinity): Likewise.
5451         (is_overflow_infinity): Likewise.
5452         (avoid_overflow_infinity): Use vrp_val_{min,max} and
5453         vrp_val_is_{min,max}.
5454         (set_and_canonicalize_value_range): Canonicalize anti-ranges
5455         to ranges if possible.  Avoid empty ranges.
5456
5457 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5458
5459         PR middle-end/35705
5460         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
5461         the expression is a function address.
5462
5463 2008-04-01  George Helffrich  <george@gcc.gnu.org>
5464
5465         PR fortran/35154, fortran/23057
5466         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
5467         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
5468         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
5469         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
5470         in common.
5471         (dbxout_syms): Check for COMMON-based symbol and wrap in
5472         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
5473         in bracket for efficiency.
5474
5475         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
5476         using DW_TAG_common_block + member offset.
5477         (add_pubname_string): New function.
5478         (dw_expand_expr): New function to find block name and offset for
5479         COMMON var.
5480         (common_check): New function to check whether symbol in Fortran COMMON.
5481         (gen_variable_die): If COMMON, use DW_TAG_common_block.
5482
5483 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
5484
5485         PR c/35436
5486         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
5487
5488 2008-04-02  Ben Elliston  <bje@au.ibm.com>
5489
5490         * config/v850/v850.md (casesi): Remove if (0) code.
5491         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
5492         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
5493
5494 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
5495
5496         * config/i386/i386.md (rex64suffix): New mode attribute.
5497         (floathi<mode>2): Disable expander for SSE math.
5498         (*floathi<mode>2_1): New insn insn_and_split pattern.
5499         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
5500         corresponding post-reload splitters.
5501         (*floathi<mode>2_i387): New macroized insn pattern.
5502         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
5503         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
5504         insn_and_split pattern.
5505         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
5506         New macroized instruction patterns and corresponding post-reload
5507         splitters.
5508         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
5509         and corresponding post-reload splitters.
5510         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
5511         New macroized instruction patterns.
5512         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
5513         macroized instruction patterns and corresponding post-reload splitters.
5514         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
5515         corresponding post-reload splitters.
5516         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
5517         New macroized instruction patterns.
5518         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
5519         corresponding post-reload splitters.
5520         (*floatsi<mode>2_i387): New macroized instruction patterns.
5521
5522 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
5523
5524         * config/i386/i386.md (smaxmin): New.
5525         (umaxmin): Likewise.
5526         (maxminiprefix): Likewise.
5527         (maxminfprefix): Likewise.
5528         (<code><mode>3): Likewise.
5529         (smin<mode>3): Removed.
5530         (smax<mode>3): Likewise.
5531
5532         * config/i386/mmx.md (mmx_<code>v2sf3): New.
5533         (mmx_<code>v4hi3): Likewise.
5534         (mmx_<code>v8qi3): Likewise.
5535         (mmx_smaxv2sf3): Removed.
5536         (mmx_sminv2sf3): Likewise.
5537         (mmx_umaxv8qi3): Likewise.
5538         (mmx_smaxv4hi3): Likewise.
5539         (mmx_uminv8qi3): Likewise.
5540         (mmx_sminv4hi3): Likewise.
5541
5542         * config/i386/sse.md (<addsub><mode>3): New.
5543         (*<addsub><mode>3): Likewise.
5544         (<sse>_vm<addsub><mode>3): Likewise.
5545         (<maxmin><mode>3): Likewise.
5546         (*<maxmin><mode>3_finite): Likewise.
5547         (*<maxmin><mode>3): Likewise.
5548         (<sse>_vm<maxmin><mode>3): Likewise.
5549         (sse3_h<addsub>v4sf3): Likewise.
5550         (sse3_h<addsub>v2df3): Likewise.
5551         (<maxmin>v16qi3): Likewise.
5552         (*<maxmin>v16qi3): Likewise.
5553         (<maxmin>v8hi3): Likewise.
5554         (*<maxmin>v8hi3): Likewise.
5555         (*sse4_1_<maxmin><mode>3): Likewise.
5556         (*sse4_1_<maxmin><mode>3): Likewise.
5557         (add<mode>3): Removed.
5558         (*add<mode>3): Likewise.
5559         (<sse>_vmadd<mode>3): Likewise.
5560         (sub<mode>3): Likewise.
5561         (*sub<mode>3): Likewise.
5562         (<sse>_vmsub<mode>3): Likewise.
5563         (smin<mode>3): Likewise.
5564         (*smin<mode>3_finite): Likewise.
5565         (*smin<mode>3): Likewise.
5566         (<sse>_vmsmin<mode>3): Likewise.
5567         (smax<mode>3): Likewise.
5568         (*smax<mode>3_finite): Likewise.
5569         (*smax<mode>3): Likewise.
5570         (<sse>_vmsmax<mode>3): Likewise.
5571         (sse3_haddv4sf3): Likewise.
5572         (sse3_haddv2df3): Likewise.
5573         (sse3_hsubv4sf3): Likewise.
5574         (sse3_hsubv2df3): Likewise.
5575         (umaxv16qi3): Likewise.
5576         (*umaxv16qi3): Likewise.
5577         (smaxv8hi3): Likewise.
5578         (*smaxv8hi3): Likewise.
5579         (*sse4_1_smax<mode>3): Likewise.
5580         (*sse4_1_umax<mode>3): Likewise.
5581         (uminv16qi3): Likewise.
5582         (*uminv16qi3): Likewise.
5583         (sminv8hi3): Likewise.
5584         (*sminv8hi3): Likewise.
5585         (*sse4_1_smin<mode>3): Likewise.
5586         (*sse4_1_umin<mode>3): Likewise.
5587
5588 2008-04-01  Rafael Espindola  <espindola@google.com>
5589
5590         * tree-cfg.c (verify_expr): remove in_phi.
5591         (verify_stmt): Don't call walk_tree with verify_expr. Use
5592         is_gimple_min_invariant instead of is_gimple_val.
5593
5594 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
5595
5596         * doc/include/gpl_v3.texi: Update for manpage generation.
5597         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
5598         gpl.texi.
5599         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
5600         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
5601         gpl_v3.texi instead of gpl.texi.
5602         (gpl.pod): New.
5603
5604 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
5605
5606         PR pch/13675
5607         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
5608
5609 2008-04-01  Rafael Espindola  <espindola@google.com>
5610
5611         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
5612         (extract_code_and_val_from_cond): Use
5613         extract_code_and_val_from_cond_with_ops.
5614
5615 2008-04-01  Jan Hubicka  <jh@suse.cz>
5616
5617         * function.c (free_after_compilation): Free epilogue_delay_list.
5618         (prepare_function_start): Assert that previous compilation was freed.
5619
5620 2008-04-01  Jan Hubicka  <jh@suse.cz>
5621             Jim Wilson  <wilson@tuliptree.org>
5622             Andreas Tobler <andreast@gcc.gnu.org>
5623
5624         PR middle-end/35781
5625         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
5626         rtl.emit instead cfun->emit.
5627         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
5628         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
5629
5630 2008-04-01  Ben Elliston  <bje@au.ibm.com>
5631
5632         * doc/c-tree.texi (Function Basics): Fix grammatical error.
5633
5634 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
5635
5636         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
5637         New options
5638         (fprofile-use): Add var flag_profile_use
5639         * coverage.c (coverage_begin_output): Do not open a gcno file for
5640         output only if -ftest-coverage is set.
5641         Do not add getpwd() to gcda file path.
5642         (build_gcov_info): Check the new flag
5643         flag_profile_datafile_relative_path.
5644         (coverage_init): Use profile_data_prefix.
5645         Read profile counter only if flag_profile_use is set.
5646         * opts.c (common_handle_option): New option fprofile-use=,
5647         fprofile-dir=, fprofile-generate=.
5648         * toplev.c (profile_data_prefix): New variable definition.
5649         * toplev.h (profile_data_prefix): New declaration.
5650         * doc/invoke.tex (Option Summary, Optimization Options):
5651         Add new options.
5652
5653 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
5654
5655         * varasm.c (output_constant_pool_1): In LABEL_REF check,
5656         use tmp consistently.
5657
5658         PR target/35695
5659         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
5660         * config/ia64/ia64.c (rtx_needs_barrier): Handle
5661         UNSPEC_FR_RECIP_APPROX_RES.
5662         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
5663
5664 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
5665
5666         PR c/35750
5667         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
5668
5669 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5670
5671         PR middle-end/30186
5672         * fold-const.c (fold_indirect_ref_1): Support accessing non first
5673         element of the vector via a pointer.
5674
5675 2008-03-31  Ian Lance Taylor  <iant@google.com>
5676
5677         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
5678
5679 2008-03-31  Jan Hubicka  <jh@suse.cz>
5680
5681         * builtins.c (expand_builtin_setjmp_receiver): Update call of
5682         get_arg_pointer_save_area.
5683         * expr.c (init_expr): Just clear out rtl.expr.
5684         * function.c (free_after_compilation): Clear out whole RTL structure.
5685         (get_func_frame_size): Merge into ...
5686         (get_frame_size): ... this one.
5687         (assign_stack_local_1): Merge into ...
5688         (assign_stack_local): ... this one.
5689         (expand_function_end): Update call of get_arg_pointer_save_area.
5690         (get_art_pointer_save_area): Remove cfun argument.
5691         * function.h (emit_status): regno_pointer_align does not need length
5692         attribute. Move x_regno_reg_rtx to ...
5693         (regno_reg_rtx): ... new global array.
5694         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
5695         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
5696         apply_args_value, forced_labels, stack_pointer_delta):
5697         Update accestors.
5698         (struct varasm_status): Move here from varasm.c
5699         (struct rtl_data): New. Move here some fields from struct function.
5700         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
5701         frame_offset, stack_check_probe_note, arg_pointer_save_area,
5702         used_temp_slots avail_temp_slots, temp_slot_level,
5703         nonlocal_goto_handler_labels): Update accesstors.
5704         (rtl): New global variable.
5705         (struct function): Move some fileds to rtl_data.
5706         (get_arg_pointer_save_area): Update prototype.
5707         * emit-rtl.c (rtl): Declare.
5708         (regno_reg_rtx): Declare.
5709         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
5710         Update.
5711         (gen_reg_rtx): Update.
5712         (init_virtual_regs): Do not tate emit_status argument.
5713         (init_emit): Do not allocate emit.
5714         * varasm.c (varasm_statuc): Move to function.h.
5715         (n_deferred_constatns): Update accestor.
5716         (init_varasm_status): Do not allocate varasm_status.
5717         (force_const_mem, get_pool_size, output_constant_pool): Update.
5718         * stmt.c (force_label_rtx): Do not use x_ prefixes.
5719         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
5720
5721 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
5722
5723         PR rtl-optimization/35729
5724         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
5725         references.
5726
5727 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
5728
5729         PR target/32000
5730         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
5731         load/store if memory is unaligned.
5732         (*movti_rex64): Likewise.
5733
5734         * config/i386/predicates.md (misaligned_operand): New.
5735
5736 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
5737
5738         PR tree-opt/35431
5739         * tree-ssa-phiopt.c (conditional_replacement): Return early for
5740         complex types.
5741
5742 2008-03-31  Jan Beulich  <jbeulich@novell.com>
5743
5744         * config/ia64/constraints.md: Add 'j' constraint.
5745         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
5746         (movdi_internal): Likewise.
5747
5748 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
5749
5750         PR c/35748
5751         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
5752
5753 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
5754
5755         PR target/35757
5756         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
5757         proper error message for the third argument on blendpd and
5758         blendps.
5759
5760         * config/i386/sse.md (blendbits): New.
5761         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
5762
5763 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
5764
5765         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
5766
5767 2008-03-30  Richard Guenther  <rguenther@suse.de>
5768
5769         PR middle-end/31023
5770         * fold-const.c (fold_sign_changed_comparison): Do leave
5771         conversions to base-types alone.
5772
5773 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5774
5775         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
5776         the link register if one altivec register is be saved.
5777
5778 2008-03-30  Ben Elliston  <bje@au.ibm.com>
5779
5780         * final.c (final_scan_insn): Remove if (0) code.
5781
5782 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
5783
5784         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
5785
5786 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
5787
5788         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
5789         of V4SFmode to ix86_binary_operator_ok.
5790
5791 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
5792
5793         * config/i386/i386.c (override_options): Initialize
5794         ix86_veclib_handler to ix86_veclibabi_svml when
5795         -mveclibabi=svml is used.
5796         (ix86_veclibabi_svml): New function for SVML ABI style
5797         vectorization support.
5798         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
5799
5800 2008-03-28  Rafael Espindola  <espindola@google.com>
5801
5802         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
5803         (tree_binary_nonnegative_warnv_p): Make it public.
5804         (tree_single_nonnegative_warnv_p): Make it public.
5805         (tree_invalid_nonnegative_warnv_p): Make it public.
5806         (tree_unary_nonzero_warnv_p): Make it public.
5807         (tree_binary_nonzero_warnv_p): Make it public
5808         (tree_single_nonzero_warnv_p): Make it public.
5809         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
5810         (extract_range_from_binary_expr): Split the expr argument.
5811         (extract_range_from_unary_expr): Split the expr argument.
5812         (extract_range_from_comparison): Split the expr argument.
5813         (extract_range_from_expr): Use the new aux functions.
5814         (vrp_evaluate_conditional_warnv): Use
5815         vrp_evaluate_conditional_warnv_with_ops.
5816         * tree.h (tree_unary_nonzero_warnv_p): Declare.
5817         (tree_binary_nonzero_warnv_p): Declare.
5818         (tree_single_nonzero_warnv_p): Declare.
5819         (tree_expr_nonzero_warnv_p): Declare.
5820         (tree_unary_nonnegative_warnv_p): Declare.
5821         (tree_binary_nonnegative_warnv_p): Declare.
5822         (tree_single_nonnegative_warnv_p): Declare.
5823         (tree_invalid_nonnegative_warnv_p): Declare.
5824
5825 2008-03-28  Richard Guenther  <rguenther@suse.de>
5826
5827         PR tree-optimization/30317
5828         PR tree-optimization/30911
5829         PR tree-optimization/34793
5830         * tree-vrp.c (set_and_canonicalize_value_range): New function.
5831         (struct assert_locus_d): New member EXPR.
5832         (register_new_assert_for): Add EXPR parameter to support
5833         ASSERT_EXPR <name, expr OP limit>.
5834         (register_edge_assert_for_1): Adjust callers.
5835         (find_assert_locations): Likewise.
5836         (process_assert_insertions_for): Build condition from expression.
5837         (extract_range_from_assert): Handle ASSERT_EXPRs
5838         of the form ASSERT_EXPR <name, expr OP limit>.
5839         (register_edge_assert_for_2): New helper registering
5840         asserts for comparisons.  Recognize range tests of the form
5841         (unsigned)i - CST1 OP CST2.
5842         (register_edge_assert_for_1): Use it.
5843         (register_edge_assert_for): Likewise.
5844         (needs_overflow_infinity): Integer sub-types
5845         do not need overflow infinities.
5846         (vrp_val_is_max): The extreme values of integer sub-types
5847         are those of the base type.
5848         (vrp_val_is_min): Likewise.
5849         * tree.def (ASSERT_EXPR): Document extra allowed conditional
5850         expressions.
5851
5852 2008-03-28  Nick Clifton  <nickc@redhat.com>
5853
5854         PR target/31110
5855         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
5856         Return GENERAL_REGS for stack adjustment reloads.
5857
5858 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5859
5860         PR target/31334
5861         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
5862         const_vector when all the vectors are constant.
5863
5864 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
5865
5866         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
5867         comparisons.
5868         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
5869         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
5870         (scc_sf): New.
5871         (s<code>_sf): Use new scc_sf attribute for opcode names.
5872
5873 2008-03-27  Tom Tromey  <tromey@redhat.com>
5874
5875         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
5876         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
5877         config/spu/t-spu-elf, config/i386/t-interix,
5878         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
5879         config/i386/x-darwin, config/i386/x-mingw32,
5880         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
5881         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
5882         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
5883         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
5884         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
5885         config/rs6000/x-darwin, config/rs6000/t-rs6000,
5886         config/score/t-score-elf, config/arm/t-strongarm-pe,
5887         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
5888         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
5889         Revert automatic dependency patch.
5890
5891 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
5892
5893         PR target/35657
5894         * config/i386/i386.c (ix86_function_arg_boundary): Align
5895         decimal floating point to its natural boundary.
5896
5897 2008-03-27  Richard Guenther  <rguenther@suse.de>
5898
5899         PR middle-end/35716
5900         * fold-const.c (fold_comparison): Restrict distinct decl
5901         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
5902         solely rely on operand_equal_p.
5903
5904 2008-03-27  Richard Guenther  <rguenther@suse.de>
5905
5906         PR c/32511
5907         * c-common.c (handle_weak_attribute): Reject combination of
5908         weak and inline.
5909
5910 2008-03-27  Richard Guenther  <rguenther@suse.de>
5911
5912         PR tree-optimization/32810
5913         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
5914         conversions from DECL_INITIAL.
5915         (fold_const_aggregate_ref): Likewise from constructor elements.
5916
5917 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
5918
5919         * tree-affine.h (aff_combination_expand): Declare.
5920         (get_inner_reference_aff): Likewise.
5921         * tree-affine.c (aff_combination_expand): Split out from
5922         tree_to_aff_combination_expand.
5923         (get_inner_reference_aff): New function.
5924         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
5925         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
5926         (struct lim_aux_data): sm_done field removed.
5927         (mem_ref_loc_p, mem_ref_locs_p): New types.
5928         (struct mem_ref): Added id, stored, accesses_in_loop,
5929         indep_loop, dep_loop, indep_ref, dep_ref fields.
5930         Removed is_stored, locs and next fields.
5931         (memory_accesses): New variable.
5932         (movement_possibility): Do not allow moving statements
5933         that store to memory.
5934         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
5935         New functions.
5936         (determine_max_movement): For statements with memory references,
5937         find the outermost loop in that the reference is independent.
5938         (move_computations_stmt): Mark the virtual operands for renaming.
5939         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
5940         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
5941         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
5942         add_vop_ref_mapping, create_vop_ref_mapping_loop,
5943         create_vop_ref_mapping, analyze_memory_references,
5944         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
5945         get_all_locs_in_loop, ref_always_accessed_p,
5946         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
5947         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
5948         store_motion_loop, store_motion): New functions.
5949         (struct vop_to_refs_elt): New type.
5950         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
5951         memref_hash, memref_eq, hoist_memory_references): Rewritten.
5952         (schedule_sm): Replaced by...
5953         (execute_sm): ... this.
5954         (determine_lsm_ref, hoist_memory_references,
5955         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
5956         find_more_ref_vops, free_mem_ref, free_mem_refs,
5957         determine_lsm_loop, determine_lsm): Removed.
5958         (tree_ssa_lim_finalize): Free data structures used by store motion.
5959         (tree_ssa_lim): Call analyze_memory_references.  Use
5960         store_motion instead of determine_lsm.
5961
5962 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
5963
5964         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
5965         rename tmake_file to m68hc11/t-m68hc11.
5966         (mcore): Set inhibit_libc to true.
5967         * config.host (alpha*-dec-*vms*): Set extra_programs.
5968         (interix3*): Don't use host_xmake_file.
5969         * configure.ac: Let config.gcc override inhibit_libc.
5970         * configure: Regenerate.
5971
5972         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
5973         * config/t-openbsd-thread: Remove commented out lines.
5974         
5975         * config/x-interix: Remove.
5976
5977         * config/m68hc11/t-m68hc11-gas: Rename to...
5978         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
5979
5980         * config/mcore/t-mcore: Remove T_CFLAGS.
5981         * config/mcore/t-mcore-pe: Likewise.
5982
5983 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
5984
5985         * configure.ac: Replace custom __GNU_SOURCE test with
5986         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
5987         * aclocal.m4: Regenerate.
5988         * configure: Regenerate.
5989         * config.in: Regenerate.
5990
5991 2008-03-27  Richard Guenther  <rguenther@suse.de>
5992
5993         * fold-const.c (target.h): Include.
5994         (fold_comparison): Fold comparison of addresses of decls
5995         that bind locally or of constants.  Consolidate address folding code.
5996         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
5997         results from fold_binary_to_constant.
5998         (compare_values_warnv): Likewise.
5999
6000 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
6001
6002         PR middle-end/35429
6003         * fold-const.c (fold_truthop): Check for integeral types when folding
6004         a == 0 && b == 0 and a != 0 || b != 0 .
6005
6006 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
6007
6008         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
6009
6010 2008-03-26  Andreas Schwab  <schwab@suse.de>
6011
6012         * doc/invoke.texi: Fix use of @item vs. @itemx.
6013
6014 2008-03-26  Tom Tromey  <tromey@redhat.com>
6015
6016         * Makefile.in (build/gensupport.o, build/print-rtl.o,
6017         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
6018         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
6019         build/gencodes.o, build/genconditions.o, build/genconfig.o,
6020         build/genconstants.o, build/genemit.o, build/genextract.o,
6021         build/genflags.o, build/genmddeps.o, build/genopinit.o,
6022         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
6023         options.h.
6024
6025 2008-03-26  Richard Guenther  <rguenther@suse.de>
6026
6027         Revert
6028         2008-03-26  Richard Guenther  <rguenther@suse.de>
6029
6030         * fold-const.c (target.h): Include.
6031         (fold_comparison): Fold comparison of addresses of two decls
6032         that bind locally.  Consolidate address folding code.
6033
6034 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6035
6036         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
6037         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
6038         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
6039         dconstsqrt2, dconstthird, dconste and/or dconst10.
6040         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
6041         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
6042         dconstsqrt2, dconste): Delete.
6043         (init_emit_once): Likewise.  Simplify initializing dconstm1.
6044         Constify variable.
6045         * real.c (get_real_const): New.
6046         * real.h (dconst3, dconst10, dconstm2, dconstthird,
6047         dconstsqrt2, dconste): Delete.
6048         (real_value_const, get_real_const): New.
6049
6050 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
6051
6052         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
6053
6054         * config/i386/i386.c (ix86_function_arg_boundary): Check
6055         BIGGEST_ALIGNMENT instead of 128.
6056         (setup_incoming_varargs_64): Likewise.
6057
6058 2008-03-26  Tom Tromey  <tromey@redhat.com>
6059
6060         * Makefile.in (DEPFILES): Add missing '/'.
6061
6062 2008-03-26  Richard Guenther  <rguenther@suse.de>
6063
6064         * fold-const.c (target.h): Include.
6065         (fold_comparison): Fold comparison of addresses of two decls
6066         that bind locally.  Consolidate address folding code.
6067
6068 2008-03-26  Nick Clifton  <nickc@redhat.com>
6069
6070         PR target/31232
6071         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
6072         not allow INT+INT as a legitimate addressing mode.
6073
6074 2008-03-26  Richard Guenther  <rguenther@suse.de>
6075
6076         * tree-flow.h (widen_bitfield): Remove declaration.
6077         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
6078         (widen_bitfield): Remove function.
6079         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
6080         code.
6081
6082 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6083
6084         PR target/31558
6085         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
6086         error_mark_node's.
6087
6088 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
6089
6090         PR rtl-optimization/35232
6091         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
6092         (forget_old_reloads_1, forget_marked_reloads): Don't clear
6093         reg_reloaded_call_part_clobbered here.
6094         (reload_regs_reach_end_p): New function.
6095         (reload_reg_rtx_for_input): New variable.
6096         (reload_reg_rtx_for_output): Likewise.
6097         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
6098         when reassigning a pseudo register.  Load reloadreg from 
6099         reload_reg_rtx_for_input, moving the mode and register
6100         calculation to...
6101         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
6102         instead of the original when deciding whether an input reload
6103         would be a no-op or whether an output reload can be deleted.
6104         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
6105         when setting up new_spill_reg_store.  Load it from
6106         reload_reg_rtx_for_output, moving the mode and register
6107         calculation to...
6108         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
6109         instead of the original when deciding whether an output reload
6110         would be a no-op.  Do the same when modifying insn notes.
6111         Use rtx_equal_p instead of == to compare the registers.
6112         (inherit_piecemeal_p): Take a mode and two register numbers
6113         as argument.
6114         (emit_reload_insns): Clear new_spill_reg_store for every hard
6115         register in the reload register.  Remove spill registers
6116         from reg_reloaded_valid before considering whether to record
6117         inheritance information for them.  Use reload_reg_rtx_for_output
6118         instead of reg_rtx when recording output reloads.  Use
6119         reload_reg_rtx_for_input instead of reg_rtx when recording
6120         input reloads.  Set or clear reg_reloaded_call_part_clobbered
6121         at the same time as setting reg_reloaded_valid.
6122         (delete_output_reload): Add a new_reload_reg parameter and use it
6123         instead of rld[j].reg_rtx.
6124         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
6125         calls accordingly.
6126
6127 2008-03-25  Tom Tromey  <tromey@redhat.com>
6128
6129         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
6130         (build/genattr.o): Likewise.
6131         (build/genattrtab.o): Likewise.
6132         (build/gencodes.o): Likewise.
6133         (build/genconfig.o): Likewise.
6134         (build/genconstants.o): Likewise.
6135         (build/genemit.o): Likewise.
6136         (build/genextract.o): Likewise.
6137         (build/genflags.o): Likewise.
6138
6139 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
6140         
6141         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
6142         instead of size_int for integer types.
6143         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
6144         to match type of MINUS_EXPR.
6145         
6146 2008-03-25  Tom Tromey  <tromey@redhat.com>
6147
6148         * configure: Rebuilt.
6149         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
6150         Makefile.
6151
6152 2008-03-25  Tom Tromey  <tromey@redhat.com>
6153
6154         * config/x-solaris (host-solaris.o): Update.
6155         * config/x-linux (host-linux.o): Update.
6156         * config/x-hpux (host-hpux.o): Update.
6157         * config/x-darwin (host-darwin.o): Update.
6158         * config/v850/t-v850e (v850-c.o): Update.
6159         * config/v850/t-v850 (v850-c.o): Update.
6160         * config/t-vxworks (vxworks.o): Update.
6161         * config/t-sol2 (sol2-c.o, sol2.o): Update.
6162         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
6163         * config/spu/t-spu-elf (spu-c.o): Update.
6164         (spu.o): Remove.
6165         * config/sh/t-symbian (sh-c.o): Update.
6166         (symbian.o): Update.
6167         * config/sh/t-sh (sh-c.o): Update.
6168         * config/score/t-score-elf (score7.o, score3.o): Update.
6169         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
6170         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
6171         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
6172         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
6173         (rs6000.o): Remove.
6174         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
6175         * config/m32c/t-m32c (m32c-pragma.o): Update.
6176         * config/ia64/t-ia64 (ia64-c.o): Update.
6177         * config/i386/x-mingw32 (host-mingw32.o): Update.
6178         * config/i386/x-i386 (driver-i386.o): Update.
6179         * config/i386/x-darwin (host-i386-darwin.o): Update.
6180         * config/i386/x-cygwin (host-cygwin.o): Update.
6181         * config/i386/t-nwld (nwld.o): Update.
6182         * config/i386/t-netware (netware.o): Update.
6183         * config/i386/t-interix (winnt.o): Update.
6184         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
6185         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
6186         msformat-c.o): Update.
6187         * config/bfin/t-bfin-linux (generated_files): Add
6188         linux-sysroot-suffix.h.
6189         * config/arm/t-wince-pe (pe.o): Update.
6190         * config/arm/t-strongarm-pe (pe.o): Update.
6191         * config/arm/t-pe (pe.o): Update.
6192         * config/arm/t-arm (arm-c.o): Update.
6193         * doc/install.texi (Prerequisites): Require make 3.80.
6194         * Makefile.in: Remove .o targets.
6195         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
6196         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
6197         (simple_generated_h, simple_generated_c): Move earlier.
6198         (generated_files): New variable.
6199         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
6200         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
6201         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
6202         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
6203         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
6204         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
6205         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
6206         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
6207         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
6208         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
6209         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
6210         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
6211         (.c.o): Remove.
6212         (COMPILE.base, COMPILE): New variables.
6213         (%.o): New pattern rule.
6214         (ALL_HOST_OBJS): New variable.
6215         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
6216         (dummy-checksum.o, cc1-checksum.o): Remove.
6217         (DRIVER_SHLIB): New variable.
6218         (DRIVER_DEFINES): Use it.
6219         (gencondmd.c): Move out of build/.
6220         (s-conditions): Update.
6221         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
6222         (ALL_BUILD_OBJS): Likewise.
6223         (build/%.o): Use BUILDCOMPILE.
6224         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
6225         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
6226         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
6227         build/gencheck.o, build/gencodes.o, build/genconditions.o,
6228         build/genconfig.o, build/genconstants.o, build/genemit.o,
6229         build/genextract.o, build/genflags.o, build/genmddeps.o,
6230         build/genopinit.o, build/genoutput.o, build/genpeep.o,
6231         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
6232         build/gen-protos.o, build/scan.o, build/fix-header.o,
6233         build/scan-decls.o): Simplify.
6234         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
6235         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
6236         prefix.o, toplev.o): Reduce to variable setting.
6237         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
6238         ($(out_object_file), gcc-options.o): New targets.
6239         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
6240         * configure: Rebuilt.
6241         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
6242         * doc/sourcebuild.texi (Front End Directory): Document new variable.
6243
6244 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
6245
6246         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
6247         complain when we hit an error, return ERROR_MARK_NODE.
6248
6249 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6250
6251         * config/sh/constraints.md (Pso, Psz): New constraints.
6252         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
6253         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
6254
6255 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6256
6257         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
6258         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
6259
6260 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
6261
6262         * config/sh/sh.md (prefetch): Add condition for SH2A target.
6263         (prefetch_sh2a): New.   
6264
6265 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
6266             Naveen.H.S  <naveen.hs@kpitcummins.com>
6267
6268         * config/sh/constraints.md (I28): New constraint.
6269         * config/sh/sh.c (broken_move): Add support for movi20s.
6270         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
6271
6272 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
6273             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
6274             Naveen.H.S  <naveen.hs@kpitcummins.com>
6275
6276         * config/sh/sh.c (SH_ATTRIBUTES): Define.
6277         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
6278         (print_operand): Handle resbank in %@ operand code.
6279         (sh_encode_section_info): New.
6280         (push_regs): Add conditions for resbank.
6281         (sh_expand_epilogue): Likewise.
6282         (sh_insert_attributes): Likewise.
6283         (sh_attribute_table): Likewise.
6284         (sh_handle_resbank_handler_attribute): New.
6285         (sh2a_handle_function_vector_handler_attribute): New.
6286         (sh2a_is_function_vector_call): New.
6287         (sh2a_get_function_vector_number): New.
6288         (sh2a_function_vector_p): New.
6289         (sh_cfun_resbank_handler_p): New.
6290         * config/sh/sh.md (calli): Emit jsr/n if possible.
6291         (calli_tbr_rel): New.
6292         (calli_pcrel): Emit jsr/n if possible.
6293         (return_i): Emit rts/n if possible.
6294         (call_valuei_tbr_rel): New.
6295         (call_valuei_pcrel): Add condition for SH2A target.
6296         (call_value): Likewise.
6297         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
6298         (sh2a_get_function_vector_number): Likewise.
6299         (sh2a_is_function_vector_call): Likewise.
6300         * doc/extend.texi: Document TBR relative addressing of SH2A.
6301         (resbank): Add description for SH2A.
6302
6303 2008-03-24  Richard Guenther  <rguenther@suse.de>
6304
6305         PR c/22371
6306         * gimplify.c (gimplify_modify_expr): For frontend type-correct
6307         pointer assignments change conversions according to middle-end rules.
6308         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
6309         * configure.ac: Include type checking in yes.
6310         * configure: Regenerate.
6311
6312 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
6313
6314         * diagnostic.c (diagnostic_count_diagnostic): Delete.
6315         (diagnostic_report_diagnostic): Update. Handle ICEs here.
6316         
6317 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
6318
6319         * gthr-vxworks.h (UNUSED): Define.
6320
6321 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
6322
6323         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
6324
6325 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
6326
6327         * doc/extend.texi (Function Attributes): Add missing comma in the
6328         example of the "alloc_size" attribute.
6329         
6330 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
6331
6332         Revert:
6333         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6334
6335         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
6336         32bit host.
6337
6338         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
6339
6340         PR target/35496
6341         * stor-layout.c (update_alignment_for_field): Set minimum alignment
6342         of the underlying type of a MS bitfield layout to the natural
6343         alignment of the type.
6344
6345         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
6346
6347         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6348         to their natural alignment to avoid store forwarding stalls.
6349
6350 2008-03-22  Richard Guenther  <rguenther@suse.de>
6351
6352         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
6353         For PHI nodes verify the address is invariant.
6354         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
6355         (get_symbol_constant_value): Use is_gimple_min_invariant.
6356         (maybe_fold_stmt_indirect): Likewise.
6357
6358 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
6359
6360         PR rtl-optimization/33927
6361         * Makefile.in (dse.o): Depend on $(TM_P_H).
6362         * expr.h (extract_low_bits): Declare.
6363         * expmed.c (extract_low_bits): New function.
6364         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
6365         * dse.c: Include tm_p.h.
6366         (find_shift_sequence): Remove the read_reg argument and return the
6367         read value.  Emit the instructions instead of returning them.
6368         Iterate on new_mode rather than calculating it each time.
6369         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
6370         source to NEW_MODE and extract_low_bits to convert the shifted
6371         value to READ_MODE.
6372         (replace_read): Allow the load and store to have different mode
6373         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
6374         or extraction instructions before trying the replacement.  Update
6375         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
6376
6377 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
6378
6379         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
6380         to their natural alignment to avoid store forwarding stalls.
6381
6382 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6383
6384         PR target/27946
6385         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
6386         encouraging but not allowing gprs for input;
6387         change the input constraint to !f#r.
6388         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
6389         gprs for output;
6390         change the output constraint to !f#r.
6391
6392 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
6393
6394         PR target/13958
6395         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
6396         corresponding post-reload splitters.
6397         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
6398         when x87 FP math is selected.
6399         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
6400         New function prototype.
6401         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
6402         unreachable function to ease macroization of insn patterns.
6403
6404 2008-03-21  Martin Jambor  <mjambor@suse.cz>
6405
6406         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
6407         reference dumps if ddr is NULL or dependence is unknown.
6408
6409 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6410
6411         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
6412         unsigned extension into account.
6413         (ATOMIC_COMPARE_AND_SWAP): Likewise.
6414         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
6415         Do computations on a scratch register.
6416
6417 2008-03-21  Richard Guenther  <rguenther@suse.de>
6418
6419         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6420         Use is_gimple_min_invariant instead of TREE_INVARIANT.
6421         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
6422         * tree-ssa-dom.c (record_equality): Likewise.
6423         * tree-inline.c (copy_body_r): Likewise.
6424         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
6425         TREE_INVARIANT.
6426
6427 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
6428
6429         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
6430         as 'delete_unused' argument.
6431
6432 2008-03-20  Richard Guenther  <rguenther@suse.de>
6433
6434         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
6435         special casing of constant qualifiers.
6436         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
6437         care about them in general.
6438         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
6439         regardless of their type.
6440         (fold_stmt_r): Forcefully fold *& if we end up with that.
6441
6442 2008-03-20  Paul Brook  <paul@codesourcery.com>
6443
6444         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
6445         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
6446         linker flags.
6447         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
6448         definition.
6449         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
6450         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
6451
6452 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
6453
6454         * common.opt (Wmudflap): New option.
6455         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
6456         (mx_register_decls): Likewise.
6457         (mudflap_finish_file): Likewise.
6458         * doc/invoke.texi: Document -Wno-mudflap.
6459
6460 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
6461
6462         * c-format.c (replace_format_name_to_system_name): New.
6463         (cmp_attribs): New.
6464         (convert_format_name_to_system_name): New.
6465         (decode_format_attr): Add use of convert_format_name_to_system_name.
6466         (format_types_orig): Add gnu_ prefix to names.
6467         (check_format_info_main): Special treating of \0 escaped names for
6468         supporting multi-character format specifiers as I32, I64.
6469         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
6470         (gnu_target_overrides_format_attributes): New.
6471         * c-format.h: Add structure target_ovr_attr to hold
6472         system specific formatter names.
6473         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
6474         msformat-c.o file to c_target_objs and cxx_target_objs.
6475         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6476         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
6477         (TARGET_N_FORMAT_TYPES): New.
6478         * config/i386/msformat-c.c: New.
6479         * config/i386/t-cygming: Add build rule for msformat-c.o.
6480         * doc/extend.texi: Add new format names gnu_* and ms_* and
6481         further details.
6482         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
6483
6484 2008-03-20  Ira Rosen  <irar@il.ibm.com>
6485
6486         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
6487         optimizations turned on under -O3.
6488         (ftree-vectorize): Add that the flag is turned on with -O3.
6489
6490 2008-03-20  Ben Elliston  <bje@au.ibm.com>
6491
6492         * regmove.c (try_auto_increment): Fix spelling error in comment.
6493         * final.c (final_scan_insn): Likewise.
6494
6495 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
6496
6497         PR target/14552
6498         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
6499         allocator preferences for "y" and "r" class registers.
6500         ("*mov<mode>_internal"): Ditto.
6501         ("*movv2sf_internal_rex64"): Ditto.
6502         ("*movv2sf_internal"): Ditto.
6503
6504 2008-03-19  Michael Matz  <matz@suse.de>
6505
6506         PR middle-end/35616
6507         * calls.c (expand_call): Check overlap of arguments with call
6508         address for sibcalls.
6509
6510 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
6511
6512         PR target/35496
6513         * stor-layout.c (update_alignment_for_field): Set minimum alignment
6514         of the underlying type of a MS bitfield layout to the natural
6515         alignment of the type.
6516
6517 2008-03-19  Jan Hubicka  <jh@suse.cz>
6518
6519         PR other/35094
6520         * toplev.c (decode_d_option): Handle all CPP flags.
6521         * tree-vrp.c: Update tree_pass descriptors.
6522         * regrename.c: Update tree_pass descriptors.
6523         * fwprop.c: Update tree_pass descriptors.
6524         * doc/invoke.texi: Remove documentation of dropped -d? flags.
6525         * tree-into-ssa.c: Update tree_pass descriptors.
6526         * tree-dump.c: Update tree_pass descriptors.
6527         * tree-complex.c: Update tree_pass descriptors.
6528         * tree-dump.h: Update tree_pass descriptors.
6529         * see.c: Update tree_pass descriptors.
6530         * cgraphbuild.c: Update tree_pass descriptors.
6531         * tracer.c: Update tree_pass descriptors.
6532         * tree-loop-distribution.c: Update tree_pass descriptors.
6533         * cgraph.c: Update tree_pass descriptors.
6534         * postreload-gcse.c: Update tree_pass descriptors.
6535         * postreload.c: Update tree_pass descriptors.
6536         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
6537         * tree-tailcall.c: Update tree_pass descriptors.
6538         * tree-pass.h (tree_opt_pass): Rename to ...
6539         (opt_pass) ... this one; add "type" field and remove letter field.
6540         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
6541         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
6542         all_lowering_passes): Update declaration.
6543         * ipa-cp.c: Update tree_pass descriptors.
6544         * final.c: Update tree_pass descriptors.
6545         * omp-low.c: Update tree_pass descriptors.
6546         * tree-ssa-dse.c: Update tree_pass descriptors.
6547         * ipa-reference.c: Update tree_pass descriptors.
6548         * tree-ssa-uncprop.c: Update tree_pass descriptors.
6549         * auto-inc-dec.c: Update tree_pass descriptors.
6550         * reorg.c: Update tree_pass descriptors.
6551         * cgraphunit.c: Update tree_pass descriptors.
6552         * tree-ssa-copyrename.c: Update tree_pass descriptors.
6553         * tree-ssa-ccp.c: Update tree_pass descriptors.
6554         * df-core.c: Update tree_pass descriptors.
6555         * mode-switching.c: Update tree_pass descriptors.
6556         * tree-nomudflap.c: Update tree_pass descriptors.
6557         * modulo-sched.c: Update tree_pass descriptors.
6558         * ipa-pure-const.c: Update tree_pass descriptors.
6559         * cse.c: Update tree_pass descriptors.
6560         * web.c: Update tree_pass descriptors.
6561         * tree-stdarg.c: Update tree_pass descriptors.
6562         * tree-ssa-math-opts.c: Update tree_pass descriptors.
6563         * tree-ssa-dom.c: Update tree_pass descriptors.
6564         * tree-nrv.c: Update tree_pass descriptors.
6565         * tree-ssa-alias.c: Update tree_pass descriptors.
6566         * loop-init.c: Update tree_pass descriptors.
6567         * gimple-low.c: Update tree_pass descriptors.
6568         * ipa-inline.c: Update tree_pass descriptors.
6569         * tree-ssa-sink.c: Update tree_pass descriptors.
6570         * global.c: Update tree_pass descriptors.
6571         * ifcvt.c: Update tree_pass descriptors.
6572         * jump.c: Update tree_pass descriptors.
6573         * predict.c: Update tree_pass descriptors.
6574         * tree-ssa-loop.c: Update tree_pass descriptors.
6575         * recog.c: Update tree_pass descriptors.
6576         * dse.c: Update tree_pass descriptors.
6577         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
6578         * tree-eh.c: Update tree_pass descriptors.
6579         * regmove.c: Update tree_pass descriptors.
6580         * local-alloc.c
6581         * function.c: Update tree_pass descriptors.
6582         * tree-vectorizer.c: Update tree_pass descriptors.
6583         * gcse.c: Update tree_pass descriptors.
6584         * ipa-type-escape.c: Update tree_pass descriptors.
6585         * tree-if-conv.c: Update tree_pass descriptors.
6586         * init-regs.c: Update tree_pass descriptors.
6587         * ipa.c: Update tree_pass descriptors.
6588         * tree-ssa-phiopt.c: Update tree_pass descriptors.
6589         * rtl-factoring.c: Update tree_pass descriptors.
6590         * lower-subreg.c: Update tree_pass descriptors.
6591         * bt-load.c: Update tree_pass descriptors.
6592         * tree-dfa.c: Update tree_pass descriptors.
6593         * except.c: Update tree_pass descriptors.
6594         * emit-rtl.c: Update tree_pass descriptors.
6595         * cfgexpand.c: Update tree_pass descriptors.
6596         * tree-cfgcleanup.c: Update tree_pass descriptors.
6597         * cfgcleanup.c: Update tree_pass descriptors.
6598         * tree-ssa-pre.c: Update tree_pass descriptors.
6599         * tree-sra.c: Update tree_pass descriptors.
6600         * tree-mudflap.c: Update tree_pass descriptors.
6601         * tree-ssa-copy.c: Update tree_pass descriptors.
6602         * cfglayout.c: Update tree_pass descriptors.
6603         * tree-ssa-forwprop.c: Update tree_pass descriptors.
6604         * tree-ssa-dce.c: Update tree_pass descriptors.
6605         * tree-ssa.c: Update tree_pass descriptors.
6606         * regclass.c: Update tree_pass descriptors.
6607         * integrate.c: Update tree_pass descriptors.
6608         * tree-optimize.c: Update tree_pass descriptors.
6609         * tree-ssa-phiprop.c: Update tree_pass descriptors.
6610         * tree-object-size.c: Update tree_pass descriptors.
6611         * combine.c: Update tree_pass descriptors.
6612         * tree-outof-ssa.c: Update tree_pass descriptors.
6613         * bb-reorder.c: Update tree_pass descriptors.
6614         * stack-ptr-mod.c: Update tree_pass descriptors.
6615         * var-tracking.c: Update tree_pass descriptors.
6616         * tree-profile.c: Update tree_pass descriptors.
6617         * tree-vect-generic.c: Update tree_pass descriptors.
6618         * reg-stack.c: Update tree_pass descriptors.
6619         * sched-rgn.c: Update tree_pass descriptors.
6620         * tree-ssa-structalias.c: Update tree_pass descriptors.
6621         * tree-cfg.c: Update tree_pass descriptors.
6622         * passes.c (current_pass): Update declaration.
6623         (finish_optimization_passes): Update.
6624         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
6625         (register_one_dump_file, register_dump_files_1, next_pass_1):
6626         Update arguments.
6627         (init_optimization_passes): Update handling of new types.
6628         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
6629         * ipa-struct-reorg.c: Update tree_pass descriptors.
6630         * tree-ssa-reassoc.c: Update tree_pass descriptors.
6631         * combine-stack-adj.c: Update tree_pass descriptors.
6632         * cfgrtl.c: Update tree_pass descriptors.
6633         * dce.c: Update tree_pass descriptors.
6634         * tree-ssanames.c: Update tree_pass descriptors.
6635
6636 2008-03-19  Richard Guenther  <rguenther@suse.de>
6637
6638         PR middle-end/35609
6639         * tree-ssa.c (walk_data): New structure.
6640         (warn_uninitialized_var): If not always_executed warn with "maybe"
6641         instead of "is".
6642         (execute_early_warn_uninitialized): Compute post-dominators.
6643         Initialize always_executed before processing each basic block.
6644
6645 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
6646
6647         PR target/35504
6648         * config/i386/i386.c (x86_this_parameter): Calculate correct location
6649         of "this" pointer when "regparm = N" or "fastcall" is in effect.
6650
6651 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6652
6653         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
6654
6655 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
6656
6657         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
6658         is true.
6659         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
6660         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
6661         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
6662         target after ignore has been set, and move there also the commputation
6663         of subtarget and original_target.
6664         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
6665         (LANG_HOOKS_INITIALIZER): Remove it.
6666         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
6667
6668 2008-03-18  Richard Guenther  <rguenther@suse.de>
6669
6670         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
6671         found an expression with constants, note that in the VN for the lhs.
6672         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
6673         fold them to constants if possible.  Run cleanup_cfg if done so.
6674         (execute_pre): Return todo.
6675         (do_pre): Likewise.
6676         (execute_fre): Likewise.
6677         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
6678         of constants.
6679         (get_prop_source_stmt): Look through pointer conversions.
6680
6681 2008-03-18  Jan Hubicka  <jh@suse.cz>
6682
6683         * tree-pretty-print.c: Include predict.h.
6684         (dump_generic_node): Dump predictor.
6685         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
6686         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
6687         * gimple-low.c (lower_stmt): Likewise.
6688         * expr.c (expand_expr_real): Likewise.
6689         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
6690         them.
6691         (build_predict_expr, build_predict_expr): New.
6692         * predict.h (predictor_name, build_predict_expr): Update.
6693         * c-typeck.c (c_finish_bc_stmt): Add prediction.
6694         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
6695         * predict.def (PRED_CONTINUE): Update hitrate.
6696         * tree.def (PREDICT_EXPR): Define.
6697         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
6698         do not handle BIND_EXPR.
6699         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
6700         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
6701         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
6702         operands.
6703
6704 2008-03-18  Michael Matz  <matz@suse.de>
6705
6706         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
6707
6708 2008-03-18  Richard Guenther  <rguenther@suse.de>
6709
6710         * tree-gimple.h (is_gimple_invariant_address): Declare.
6711         (is_gimple_constant): Likewise.
6712         * tree-gimple.c (is_gimple_constant): New function.
6713         (is_gimple_invariant_address): Likewise.
6714         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
6715         and is_gimple_invariant_address.
6716         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
6717         previous change.
6718         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
6719         an addressable base.
6720
6721 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
6722
6723         PR middle-end/35611
6724         * gimplify.c (gimplify_expr): Gimplify second operand of
6725         OMP_ATOMIC_LOAD.
6726
6727 2008-03-17  Richard Guenther  <rguenther@suse.de>
6728
6729         PR tree-optimization/19637
6730         * fold-const.c (fold_unary): Remove restrictions of removing
6731         intermediate pointer-conversions (P2)(P1)P0.
6732         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
6733         conversion to void pointer.
6734         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
6735
6736 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
6737
6738         PR debug/31510
6739         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
6740         emulated thread local variables.
6741
6742 2008-03-16  Richard Guenther  <rguenther@suse.de>
6743
6744         PR middle-end/35607
6745         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6746         expand TREE_INVARIANT operations that are not gimple invariant.
6747
6748 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
6749
6750         * doc/extend.texi (Alignment): Say that the ABI controls
6751         the __alignof__ for non-strict-alignment targets rather
6752         than being a recommendation.
6753
6754 2008-03-15  Paul Brook  <paul@codesourcery.com>
6755
6756         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
6757         annotations.
6758         (arm_output_fn_unwind): Mark functions that can not be unwound.
6759
6760 2008-03-15  Paul Brook  <paul@codesourcery.com>
6761
6762         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
6763         extension instructions.
6764
6765 2008-03-15  Richard Guenther  <rguenther@suse.de>
6766
6767         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
6768         and fold constant aggregate refs.
6769         (fold_const_aggregate_ref): Handle string constants
6770         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
6771         (evaluate_stmt): Simplify now that ccp_fold folds constant
6772         aggregate refs.
6773
6774 2008-03-15  Paul Brook  <paul@codesourcery.com>
6775
6776         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
6777         (extzv): Use gen_extzv_t2.
6778         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
6779
6780 2008-03-15  Richard Guenther  <rguenther@suse.de>
6781
6782         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
6783         (fold_const_aggregate_ref): Likewise.
6784         (get_value): Return NULL if we don't have any values.
6785         (ccp_finalize): Set const_val to NULL after freeing it.
6786         * tree-flow.h (get_symbol_constant_value): Declare.
6787         (fold_const_aggregate_ref): Likewise.
6788         * tree-ssa-sccvn.c (try_to_simplify): Use them.
6789
6790 2008-03-15  Richard Guenther  <rguenther@suse.de>
6791
6792         PR middle-end/35593
6793         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
6794         to not produce negative array indices if not allowed.  Add
6795         parameter to indicate that.
6796         (maybe_fold_offset_to_component_ref): Allow negative array
6797         indices only for the first member of a structure.
6798         (maybe_fold_offset_to_reference): Allow negative array indices.
6799         (maybe_fold_stmt_addition): Likewise.
6800
6801 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
6802             Anatoly Sokolov <aesok@post.ru>
6803
6804         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
6805         (avr_arch): Add ARCH_AVR6.
6806         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
6807         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
6808         instead of fixed value 2.
6809         (print_operand_address): Use gs() asm specifier instead of pm().
6810         (avr_assemble_integer): (Ditto.).
6811         (avr_output_addr_vec_elt): (Ditto.).
6812         (print_operand): Handle "!" code.
6813         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
6814         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
6815         (AVR_HAVE_EIJMP_EICALL): Define.
6816         (AVR_3_BYTE_PC): Redefine.
6817         (AVR_2_BYTE_PC): (Ditto.).
6818         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
6819         (LINK_SPEC): Add atmega2560 and atmega2561.
6820         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
6821         (crtm2561.o).
6822         * config/avr/avr.md (call_insn): Use eicall instead of icall 
6823         for 3 byte PC devices.
6824         (call_value_insn): (Ditto.).
6825         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
6826         (indirect_jump): Use only for for 2 byte PC devices.
6827         (*tablejump): (Ditto.).
6828         (*indirect_jump_avr6): Add insn.
6829         (*tablejump_rjmp): Don't use for 3 byte PC devices.
6830         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
6831         instead of ijmp for 3 byte PC devices.
6832         (__tablejump2__): (Ditto.).
6833         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
6834         (MULITLIB_DIRNAMES): (Ditto.). 
6835         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
6836
6837 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
6838
6839         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
6840         "sse2_umulsidi3".  Use V1DI mode for operand 0.
6841         ("mmx_psadbw"): Use V1DI mode for operand 0.
6842         * config/i386/i386-modes.def (V1SI): New vector mode.
6843         * config/i386/i386.c (struct builtin_description)
6844         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
6845         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
6846         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
6847         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
6848         v1di_ftype_v8qi_v8qi type.
6849         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
6850
6851         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
6852         __builtin_ia32_pmuludq]: Fix the mode of return value.
6853
6854 2008-03-15  Richard Guenther  <rguenther@suse.de>
6855
6856         PR middle-end/35595
6857         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
6858         being a PHI_NODE.
6859
6860 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
6861         
6862         * doc/invoke.texi (Option Summary, Xtensa Options): Document
6863         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
6864         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
6865         unless TARGET_SERIALIZE_VOLATILE is enabled.
6866         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6867         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
6868         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
6869
6870 2008-03-14  Richard Guenther  <rguenther@suse.de>
6871
6872         PR tree-optimization/34172
6873         * tree-flow.h (refs_may_alias_p): Declare.
6874         (get_single_def_stmt): Likewise.
6875         (get_single_def_stmt_from_phi): Likewise.
6876         (get_single_def_stmt_with_phi): Likewise.
6877         * tree-dfa.c (refs_may_alias_p): New function.
6878         (get_single_def_stmt): Likewise.
6879         (get_single_def_stmt_from_phi): Likewise.
6880         (get_single_def_stmt_with_phi): Likewise.
6881         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
6882         (vn_reference_lookup_1): New helper function.
6883         (vn_reference_lookup): Walk the virtual use-def chain to
6884         continue searching for a match if the def does not alias the
6885         reference we are looking for.
6886
6887 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
6888
6889         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
6890         archive and Perzl.  Update The Written Word listing.
6891
6892 2008-03-14  Richard Guenther  <rguenther@suse.de>
6893
6894         PR tree-optimization/34043
6895         PR tree-optimization/33989
6896         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
6897         when doing FRE.
6898         (bitmap_find_leader): Use extra argument to verify dominance
6899         relationship inside a basic-block.
6900         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
6901         (find_leader_in_sets): Adjust.
6902         (create_component_ref_by_pieces): Take extra argument for
6903         dominance check, handle lookup failures.
6904         (find_or_generate_expression): Likewise.
6905         (create_expression_by_pieces): Likewise.
6906         (insert_into_preds_of_block): Adjust.
6907         (create_value_expr_from): If asked for, verify all operands
6908         are in the blocks AVAIL_OUT set.
6909         (make_values_for_stmt): Check for SSA_NAMEs that are life
6910         over an abnormal edge.
6911         (compute_avail): Remove such check.
6912         (do_SCCVN_insertion): New function.
6913         (eliminate): If we do not find a leader suitable for replacement
6914         insert a replacement expression from SCCVN if available.
6915         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
6916         (struct vn_ssa_aux): Add needs_insertion flag.
6917         * tree-ssa-sccvn.c (may_insert): New global flag.
6918         (copy_reference_ops_from_ref): Value-number union member access
6919         based on its size, not type and member if insertion is allowed.
6920         (visit_reference_op_load): For a weak match from union type
6921         punning lookup a view-converted value and insert a SSA_NAME
6922         for that value if that is not found.
6923         (visit_use): Make dumps shorter.  Do not disallow value numbering
6924         SSA_NAMEs that are life over an abnormal edge to constants.
6925         (free_scc_vn): Release inserted SSA_NAMEs.
6926         (run_scc_vn): New flag to specify whether insertion is allowed.
6927         Process SSA_NAMEs in forward order.
6928         * tree-ssa-loop-im.c (for_each_index): Handle invariant
6929         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
6930         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
6931         pointer type to/from integral types that do not change the
6932         precision to regular conversions.
6933
6934 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
6935
6936         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
6937         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
6938         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
6939         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
6940         input arguments and the mode of return value.  Built-in functions
6941         that operate on whole 64-bit MMX register now use V1DI mode.
6942
6943 2008-03-13  Alon Dayan  <alond@il.ibm.com>
6944             Olga Golovanevsky  <olga@il.ibm.com>
6945
6946         PR tree-optimization/35041
6947         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
6948         to locate the right position in a statement.
6949
6950 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
6951
6952         PR target/34000
6953         PR target/35553
6954         * config/i386/xmmintrin.h:  Change all static inline functions to
6955         extern inline and add __gnu_inline__ attribute.
6956         * config/i386/bmintrin.h: Ditto.
6957         * config/i386/smmintrin.h: Ditto.
6958         * config/i386/tmmintrin.h: Ditto.
6959         * config/i386/mmintrin-common.h: Ditto.
6960         * config/i386/ammintrin.h: Ditto.
6961         * config/i386/emmintrin.h: Ditto.
6962         * config/i386/pmmintrin.h: Ditto.
6963         * config/i386/mmintrin.h: Ditto.
6964         * config/i386/mm3dnow.h: Ditto.
6965
6966 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
6967
6968         PR middle-end/35185
6969         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
6970         (lower_omp_2): New function.
6971         (lower_omp_1, lower_omp): Rewritten.
6972
6973 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
6974
6975         PR 35054
6976         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
6977         with the phrase "Microsoft Windows compilers".
6978         (Push/Pop Macro Pragmas): New subsection. Document
6979         #pragma push_macro and pragma pop_macro.
6980
6981 2008-03-12  Paul Brook  <paul@codesourcery.com>
6982
6983         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
6984
6985 2008-03-12  Paul Brook  <paul@codesourcery.com>
6986
6987         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
6988         (thumb2_alusi3_short): Exclude PLUS and MINUS.
6989         (thumb2_addsi_shortim): Rename ...
6990         (thumb2_addsi_short): ... to this.  Allow register operands.
6991         (thumb2_subsi_short): New pattern.
6992         (thumb2_one_cmplsi2_short,
6993         thumb2_negsi2_short): New patterns and peepholes.
6994
6995 2008-03-12  Paul Brook  <paul@codesourcery.com>
6996
6997         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
6998
6999 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
7000
7001         * config/i386/i386.md (int_cond): New code iterator.
7002         (fp_cond): Ditto.
7003         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
7004         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
7005         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
7006         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
7007         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
7008         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
7009         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
7010         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
7011
7012 2008-03-12  Paul Brook  <paul@codesourcery.com>
7013
7014         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
7015         instead of {arm,thumb}_compute_save_reg_mask.
7016         (output_return_instruction): Ditto.
7017         (thumb_unexpanded_epilogue): Ditto.
7018         (thumb1_expand_prologue): Ditto.
7019         (thumb1_output_function_prologue): Ditto.
7020         (arm_set_return_address): Ditto.
7021         (thumb_set_return_address): Ditto.
7022         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
7023         regs to achieve stack alignment.
7024         (thumb1_compute_save_reg_mask): Fix compiler warning.
7025         (arm_output_epilogue): Use offsets->saved_regs_mask.
7026         Adjust stack pointer by poping call clobered registers.
7027         (arm_expand_prologue): Use offsets->saved_regs_mask.
7028         Adjust stack pointer by pushing extra registers.
7029         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
7030
7031 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
7032
7033         PR tree-opt/35422
7034         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
7035         conversion to the operands of a multiplication.
7036
7037 2008-03-12  Richard Guenther  <rguenther@suse.de>
7038
7039         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
7040         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
7041         * timevar.def (TV_TREE_PHIPROP): Add.
7042         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
7043         pass description.  Use TV_TREE_PHIPROP.
7044         * tree-ssa-forwprop.c: Remove phiprop code.
7045
7046 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
7047
7048         PR middle-end/35549
7049         * omp-low.c (maybe_lookup_decl): Constify first argument.
7050         (use_pointer_for_field): Change last argument from bool to
7051         omp_context *.  Disallow shared copy-in/out in nested
7052         parallel if decl is shared in outer parallel too.
7053         (build_outer_var_ref, scan_sharing_clauses,
7054         lower_rec_input_clauses, lower_copyprivate_clauses,
7055         lower_send_clauses, lower_send_shared_vars): Adjust callers.
7056
7057 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
7058             Ira Rosen  <irar@il.ibm.com>
7059
7060         * tree-vectorizer.c (free_stmt_vec_info): New function.
7061         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
7062         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
7063         * tree-vectorizer.h (free_stmt_vec_info): Declare.
7064         * tree-vect-transform.c (vectorizable_conversion): Free
7065         vec_oprnds0 if it was allocated.
7066         (vect_permute_store_chain): Remove unused VECs.
7067         (vectorizable_store): Free VECs that are allocated in the..
7068         function.
7069         (vect_transform_strided_load, vectorizable_load): Likewise.
7070         (vect_remove_stores): Simplify the code.
7071         (vect_transform_loop): Move code to vect_remove_stores().
7072         Call vect_remove_stores() and free_stmt_vec_info().
7073
7074 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7075
7076         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
7077         TARGET_HPUX.  Revise comment.
7078         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
7079         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
7080         Use sr4 variant of `be' instruction when not generating PIC code.
7081         (attr_length_call): Adjust for above change.
7082
7083 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7084
7085         * ipa-reference.c (static_execute): Remove module_statics_const and
7086         associated setting code.
7087
7088 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
7089
7090         PR target/35540
7091         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
7092         predicate for operand 1.
7093         (paritysi2_cmp): Use register_operand predicate for operand 2.
7094         Use earlyclobber modifier for operand 1.  Remove support for
7095         memory operands.
7096         (paritydi2_cmp): Use register_operand predicate for operand 3.
7097         Use earlyclobber modifier for operand 1.  Remove support for
7098         memory operands.
7099
7100 2008-03-11  Paul Brook  <paul@codesourcery.com>
7101             Vladimir Prus  <vladimir@codesourcery.com>
7102
7103         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
7104         (arm_compute_save_reg0_reg12_mask): Always
7105         check if register 11 must be saved.  Always safe hard frame pointer
7106         when frame_pointer_needeed.
7107         (arm_compute_save_reg_mask): Save IP and PC
7108         only with apcs frames.
7109         (arm_output_epilogue): Adjust Thumb2 codepath to
7110         be also invoked and work for ARM non-apcs frames.
7111         (arm_expand_prologue): Don't bother saving IP
7112         for non-apcs frame, since it's not clobbered by
7113         prologue code.  Implement non-apcs frame
7114         layout.
7115
7116 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
7117
7118         PR rtl-optimization/35281
7119         * expr.c (convert_move): Use a new pseudo for the intermediate
7120         from_mode->word_mode result.
7121
7122 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
7123
7124         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
7125         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
7126         * toplev.c (compile_file): Don't call it.
7127
7128 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
7129
7130         PR middle-end/35526
7131         * expr.c (store_expr): Call emit_block_move if the mode
7132         of "temp" RTX is BLKmode.
7133
7134 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7135             Richard Guenther  <rguenther@suse.de>
7136
7137         PR tree-optimization/31358
7138         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
7139         the step with a NULL_TREE.
7140         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
7141         to sizetype if type is a pointer type.
7142         (add_candidate_1): Don't convert the base and step to
7143         the generic type if the orginal type is a pointer type.
7144         (add_iv_value_candidates): Use sizetype for the step
7145         if type is a pointer type.
7146         (cand_value_at): Likewise.
7147         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
7148         for pointer types.
7149         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
7150         Don't convert the tem affine to the type.
7151         (add_elt_to_tree): Use sizetype for the step if a pointer.
7152         Use POINTER_PLUS_EXPR for pointers.
7153         (aff_combination_to_tree): Use sizetype for the step if a
7154         pointer.
7155
7156 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
7157
7158         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
7159         Remove commutativity hint.
7160
7161 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
7162
7163         PR c/35438
7164         PR c/35439
7165         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
7166         errorneous type.  Check that v is a VAR_DECL.
7167
7168         PR middle-end/35099
7169         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
7170
7171 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
7172
7173         PR tree-optimization/35494
7174         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
7175         may be overriden at link and run time.
7176
7177 2008-03-10  Richard Guenther  <rguenther@suse.de>
7178
7179         PR tree-optimization/34677
7180         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
7181         (poolify_tree): Likewise.
7182         (modify_expr_template): Likewise.
7183         (poolify_modify_stmt): Likewise.
7184         (insert_fake_stores): Handle all component-ref style stores
7185         in addition to INDIRECT_REF.  Also handle complex types.
7186         Do not poolify the inserted load.
7187         (realify_fake_stores): Do not rebuild the tree but only
7188         make it a SSA_NAME copy.
7189         (init_pre): Remove initialzation of modify_expr_template.
7190         Do not allocate modify_expr_node_pool.
7191         (fini_pre): Do not free modify_expr_node_pool.
7192
7193 2008-03-10  Paul Brook  <paul@codesourcery.com>
7194
7195         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
7196         to avoid conflicts.
7197
7198 2008-03-10  Paul Brook  <paul@codesourcery.com>
7199             Mark Shinwell  <shinwell@codesourcery.com>
7200
7201         * config/arm/cortex-r4.md: New.
7202         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
7203         insn attributes.
7204         * config/arm/arm.md: Include cortex-r4.md.
7205         (insn): Add smmls, sdiv and udiv values.
7206         (generic_sched): Don't use generic scheduling for Cortex-R4.
7207         (arm_issue_rate): New function.
7208         (TARGET_SCHED_ISSUE_RATE): Define.
7209
7210 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
7211
7212         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
7213
7214 2008-03-10  Richard Guenther  <rguenther@suse.de>
7215
7216         * tree-ssa-pre.c (get_sccvn_value): Simplify.
7217         (compute_avail): Do not add stmt uses to AVAIL_OUT.
7218
7219 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
7220
7221         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
7222         Set default to true.
7223
7224 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7225
7226         * c.opt (Wsynth): Deprecate.
7227         * doc/invoke.texi (Option Summary, Warning Options): Document
7228         -Wno-format-contains-nul.
7229
7230 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
7231
7232         PR target/35496
7233         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
7234         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
7235
7236 2008-03-09  Ira Rosen  <irar@il.ibm.com>
7237
7238         * config/rs6000/rs6000.c (builtin_description): Rename vector
7239         left shift operations.
7240         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
7241         (altivec_vsl<VI_char>): Rename to ...
7242         (ashl<mode>3): ... new name.
7243         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
7244         gen_ashlv4si3.
7245         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
7246
7247 2008-03-08  Richard Guenther  <rguenther@suse.de>
7248
7249         * coverage.h (tree_coverage_counter_addr): Declare.
7250         * coverage.c (tree_coverage_counter_addr): New function.
7251         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
7252         before using again.
7253         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
7254         (tree_gen_one_value_profiler): Likewise.
7255         (tree_gen_ic_profiler): Likewise.
7256         (tree_gen_average_profiler): Likewise.
7257         (tree_gen_ior_profiler): Likewise.
7258
7259 2008-03-08  Richard Guenther  <rguenther@suse.de>
7260
7261         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
7262         (vn_binary_op_insert): Likewise.
7263         (vn_unary_op_lookup): Likewise.
7264         (vn_unary_op_insert): Likewise.
7265         (vn_nary_op_lookup): Declare.
7266         (vn_nary_op_insert): Likewise.
7267         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
7268         and binary hashes, use a single obstack for unary_op_pool
7269         and binary_op_pool.
7270         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
7271         a single struct vn_nary_op_s.  Store tree code length and
7272         a variable number of operands.
7273         (struct vn_reference_op_struct): Remove unused op2.
7274         (vn_reference_op_eq): Do not compare op2.
7275         (vn_reference_op_compute_hash): Do not compute hash of op2.
7276         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
7277         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
7278         with vn_nary_op_compute_hash.
7279         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
7280         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
7281         vn_nary_op_lookup.
7282         (vn_unary_op_insert, vn_binary_op_insert): Replace with
7283         vn_nary_op_insert.
7284         (visit_unary_op): Call nary functions.
7285         (visit_binary_op): Likewise.
7286         (process_scc): Adjust for struct vn_tables_s changes.
7287         (allocate_vn_table): Likewise.
7288         (free_vn_table): Likewise.
7289         * tree-vn.c (vn_add): Call nary functions.
7290         (vn_lookup): Likewise.
7291
7292 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
7293
7294         PR target/35498
7295         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
7296         wdst back after sync_compare_and_swapqhi_internal.
7297
7298 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
7299
7300         PR target/22152
7301         * config/i386/i386-modes.def (V1DI): New vector mode.
7302         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
7303         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
7304         (MMXMODE248): Ditto.
7305         (MMXMODE): Add V1DI mode.
7306         (mmxvecsize): Change DI mode to V1DI mode.
7307         ("mov<mode>): Use MMXMODEI8 mode iterator.
7308         ("*mov<mode>_internal_rex64"): Ditto.
7309         ("*mov<mode>_internal"): Ditto.
7310         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
7311         ("mmx_sub<mode>3"): Ditto.
7312         ("mmx_adddi3"): Remove insn pattern.
7313         ("mmx_subdi3"): Ditto.
7314         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
7315         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
7316         ("mmx_ashl<mode>3"): Ditto.
7317         ("mmx_lshrdi3"): Remove insn pattern.
7318         ("mmx_ashldi3"): Ditto.
7319         * config/i386/i386.c (classify_argument): Handle V1DImode.
7320         (function_arg_advance_32): Ditto.
7321         (function_arg_32): Ditto.
7322         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
7323         mmx_addv1di3 insn pattern.
7324         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
7325         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
7326         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
7327         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
7328         Remove definitions of built-in functions.
7329         (V1DI_type_node): New node.
7330         (v1di_ftype_v1di_int): Ditto.
7331         (v1di_ftype_v1di_v1di): Ditto.
7332         (v2si_ftype_v2si_si): Ditto.
7333         (v4hi_ftype_v4hi_di): Remove node.
7334         (v2si_ftype_v2si_di): Ditto.
7335         (ix86_init_mmx_sse_builtins): Handle V1DImode.
7336         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
7337         Redefine builtins using def_builtin_const with *_ftype_*_int node.
7338         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
7339         Add new builtins using def_builtin_const.
7340         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
7341         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
7342         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
7343         * config/i386/mmintrin.h (__v1di): New typedef.
7344         (_mm_add_si64): Cast arguments to __v1di type.
7345         (_mm_sub_si64): Ditto.
7346         (_mm_sll_pi16): Cast __count to __v4hi type.
7347         (_mm_sll_pi32): Cast __count to __v2si type.
7348         (_mm_sll_si64): Cast arguments to __v1di type.
7349         (_mm_srl_pi16): Cast __count to __v4hi type.
7350         (_mm_srl_pi32): Cast __count to __v2si type.
7351         (_mm_srl_si64): Cast arguments to __v1di type.
7352         (_mm_sra_pi16): Cast __count to __v4hi type.
7353         (_mm_sra_pi32): Cast __count to __v2si type.
7354         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
7355         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
7356         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
7357         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
7358         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
7359         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
7360         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
7361         (_mm_srai_pi32): Use __builtin_ia32_psradi.
7362         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
7363         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
7364         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
7365         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
7366
7367 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
7368
7369         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
7370
7371 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
7372
7373         PR target/35373
7374         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
7375         reg+const addressing for Altivec modes.  Don't generate reg+reg
7376         addressing for TFmode or TDmode quantities.
7377
7378 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
7379
7380         * c-common.c (vector_types_convertible_p): Call langhook
7381         instead of comptypes.
7382
7383 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
7384
7385         PR tree-opt/35402
7386         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
7387         integral and scalar float variables which have a
7388         NULL DECL_INITIAL.
7389
7390 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
7391
7392         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
7393         dwarf_register_span hook when emitting unwind information for
7394         register-to-memory saves.
7395         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
7396         (rs6000_frame_related): Remove call to spe_synthesize_frame.
7397
7398 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
7399
7400         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
7401         for the same VAR_DECL.
7402
7403 2008-03-06  Tom Tromey  <tromey@redhat.com>
7404
7405         * treelang: Delete.
7406         * doc/standards.texi (Standards): Don't mention treelang.
7407         * doc/invoke.texi (Overall Options): Don't mention treelang.
7408         * doc/install.texi (Prerequisites): Don't mention bison or
7409         treelang.
7410         (Configuration): Don't mention treelang.
7411         (Building): Likewise.
7412         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
7413
7414 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
7415
7416         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
7417         word-extractions out of a multi-word object.
7418
7419 2008-03-06  Richard Guenther  <rguenther@suse.de>
7420
7421         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
7422         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
7423         result type and precision.
7424         * expr.c (get_inner_reference): Set unsignedp based on the result
7425         type of BIT_FIELD_REF.
7426         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
7427         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
7428         (try_instantiate_multiple_fields): Likewise.  Use the correct type
7429         for BIT_FIELD_REF.
7430         (sra_build_assignment): Likewise.
7431         (sra_build_elt_assignment): Likewise.
7432         (sra_explode_bitfield_assignment): Likewise.
7433         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
7434         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
7435         set BIT_FIELD_REF_UNSIGNED.
7436         (vectorizable_load): Likewise.
7437
7438 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
7439
7440         * cse.c (cse_extended_basic_block): Invalidate artificial defs
7441         at bb start.
7442
7443 2008-03-06  Richard Guenther  <rguenther@suse.de>
7444
7445         * alias.c (struct alias_set_entry): Move has_zero_child field
7446         to pack with alias_set.
7447
7448 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
7449
7450         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7451         32bit host.
7452
7453 2008-03-05  Ian Lance Taylor  <iant@google.com>
7454
7455         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
7456
7457 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
7458
7459         * fwprop.c (update_df): Support width and offset parameters of
7460         df_ref_create.
7461         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
7462         global_conflicts): Change DF_REF_EXTRACT to either
7463         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7464         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7465         * df-scan.c (df_ref_record, df_defs_record,
7466         df_ref_create_structure, df_def_record_1, df_uses_record,
7467         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
7468         df_bb_refs_collect, df_entry_block_defs_collect,
7469         df_exit_block_uses_collect): Support new width and offset fields.
7470         (ref_extract_pool): New storage pool.
7471         (df_free_ref): New function.
7472         (df_reg_chain_unlink, df_free_collection_rec,
7473         df_sort_and_compress_refs): Call df_free_ref.
7474         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
7475         of df_ref_extract.
7476         (df_ref_create_structure): Allocate df_ref_extract if offset and
7477         width fields are used.
7478         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
7479         (df_uses_record): Get offset and width from ZERO_EXTRACT 
7480         and SIGN_EXTRACT.
7481         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
7482         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7483         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7484         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
7485         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
7486         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
7487         (df_ref_extract): New structure.
7488         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
7489         (df_ref_create): Add width and offset parameters.
7490         
7491 2008-03-05  Richard Guenther  <rguenther@suse.de>
7492
7493         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7494         Use ranges_overlap_p.
7495         (offset_overlaps_with_access): Rename
7496         to ranges_overlap_p and move ...
7497         * tree-flow-inline.h (ranges_overlap_p): ... here.
7498
7499         * tree.h (get_inner_reference, handled_component_p): Update
7500         comments.
7501
7502         * tree.h (record_component_aliases, get_alias_set,
7503         alias_sets_conflict_p, alias_sets_must_conflict_p,
7504         objects_must_conflict_p): Move declarations ...
7505         * alias.h (record_component_aliases, get_alias_set,
7506         alias_sets_conflict_p, alias_sets_must_conflict_p,
7507         objects_must_conflict_p): ... here.
7508         Include coretypes.h.
7509         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
7510
7511 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
7512
7513         * cfg.c: Include tree-flow.h.
7514         (remove_edge_raw): Call redirect_edge_var_map_clear.
7515         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
7516         * tree-flow-inline.h (redirect_edge_var_map_def): New.
7517         (redirect_edge_var_map_result): New.
7518         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
7519         PENDING_STMT use with redirect_edge_var_map_*.
7520         * tree-ssa.c (edge_var_maps): New definition.
7521         (redirect_edge_var_map_add): New.
7522         (redirect_edge_var_map_clear): New.
7523         (redirect_edge_var_map_dup): New.
7524         (redirect_edge_var_map_vector): New.
7525         (redirect_edge_var_map_destroy): New.
7526         (ssa_redirect_edge): Replace PENDING_STMT use with
7527         redirect_edge_var_map_*.
7528         (flush_pending_stmts): Same.
7529         (delete_tree_ssa): Destroy edge var map.
7530         * tree-flow.h (struct _edge_var_map): New.
7531         Define edge_var_map vector type.
7532         Declare redirect_edge_var_map_* prototypes.
7533         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
7534         * tree-cfg.c (reinstall_phi_args): Replace
7535         PENDING_STMT use with redirect_edge_var_map_*.
7536
7537 2008-03-05  Richard Guenther  <rguenther@suse.de>
7538
7539         PR tree-optimization/35472
7540         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
7541         whose single use_stmt has a overlapping set of loaded and
7542         stored symbols as that use_stmt might be a noop assignment then.
7543
7544 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
7545
7546         * gthr-rtems.h: Implement __gthread_mutex_destroy.
7547
7548 2008-03-05  Richard Guenther  <rguenther@suse.de>
7549
7550         PR c++/35336
7551         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
7552         should be constants.
7553         * tree-cfg.c (verify_expr): Verify it.
7554         * fold-const.c (fold_truthop): Remove code generating
7555         BIT_FIELD_REFs of structure bases.
7556         (fold_binary): Likewise.
7557         (fold_ternary): Position and size of BIT_FIELD_REFs are
7558         always host integers.
7559         (make_bit_field_ref): Remove.
7560         (optimize_bit_field_compare): Remove.
7561         (all_ones_mask_p): Remove.
7562
7563 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
7564
7565         PR gcc/33009
7566         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
7567         (split_block_and_df_analyze): New. Split basic block and rebuild
7568         dataflow.
7569         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
7570         SPLIT_BLOCK.
7571         (split_pattern_seq): Likewise.
7572         (erase_matching_seqs): Likewise.
7573         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
7574
7575 2008-03-04  Geoff Keating  <geoffk@apple.com>
7576
7577         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
7578         declaration and code.
7579         (tree_invalid_nonnegative_warnv_p): Likewise.
7580
7581 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
7582
7583         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
7584         examples.  Truncate option-names then causing overfull hbox.
7585
7586 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7587
7588         PR target/35222
7589         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
7590         on hpux10.
7591         * configure: Rebuilt.
7592
7593 2008-03-04  Rafael Espindola  <espindola@google.com>
7594
7595         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
7596         (tree_unary_nonnegative_warnv_p): New.
7597         (tree_binary_nonnegative_warnv_p): New.
7598         (tree_single_nonnegative_warnv_p): New.
7599         (tree_invalid_nonnegative_warnv_p): New.
7600         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
7601
7602 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7603
7604         PR 28322
7605         * opts.c (handle_option): Postpone 'unknown option' errors only for
7606         warning options.
7607
7608 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
7609
7610         PR target/35453
7611         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
7612         (_SIDD_XXX): This.
7613
7614 2008-03-04  Rafael Espindola  <espindola@google.com>
7615
7616         * fold-const.c (tree_unary_nonzero_warnv_p): New.
7617         (tree_binary_nonzero_warnv_p): New.
7618         (tree_single_nonzero_warnv_p): New.
7619         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
7620
7621 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
7622
7623         PR middle-end/35456
7624         * fold-const.c (fold_cond_expr_with_comparison): Prevent
7625         transformations for modes that have signed zeros.
7626         * ifcvt.c (noce_try_abs): Ditto.
7627
7628 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
7629
7630         * config/i386/i386.c (override_options): Force
7631         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
7632
7633 2008-03-04  Jan Hubicka  <jh@suse.cz>
7634
7635         PR c++/35262
7636         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
7637         in last commit.
7638
7639 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
7640
7641         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
7642         label to probe the stack.
7643
7644 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
7645
7646         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
7647         (__gthr_win32_mutex_destroy): Declare.
7648         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
7649         __gthr_win32_mutex_destroy.
7650         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
7651
7652 2008-03-03  Jan Hubicka  <jh@suse.cz>
7653
7654         PR c++/35262
7655         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
7656         aggressive on inlining cold calls.
7657
7658 2008-03-03  Richard Guenther  <rguenther@suse.de>
7659
7660         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
7661         struct copies into the expression table.
7662         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
7663         (try_to_simplify): Likewise.
7664         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
7665         integral and pointer arguments which do not change the
7666         precision to NOP_EXPRs.
7667         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
7668         VIEW_CONVERT_EXPR case.
7669
7670 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
7671
7672         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
7673         defined in a loop at depth 0 is invariant.
7674         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
7675         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
7676         be called at loop depth 0.
7677
7678 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
7679
7680         PR driver/35420
7681         * gcc.c (process_command): Update copyright notice dates.
7682         * gcov.c (print_version): Likewise.
7683         * gcov-dump.c (print_version): Likewise.
7684         * mips-tfile.c (main): Likewise.
7685         * mips-tdump.c (main): Likewise.
7686
7687 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
7688
7689         PR 24924
7690         * c-common.c (flag_permissive): Delete.
7691         (constant_expression_warnings): Check flags first.
7692         (constant_expression_error): New.
7693         * c-common.h (flag_permissive): Delete.
7694         (constant_expression_error): Declare.
7695         * flags.h (flag_permissive): Declare. Update description.
7696         * diagnostic.c (pedwarn): Update.
7697         (permerror): New.
7698         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
7699         (permissive_error_kind): New.
7700         * toplev.c (flag_permissive): Define. Update description.
7701         * toplev.h (permissive_error_kind): Declare.
7702         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
7703         (pedwarn_c90): Use pedantic_warning_kind.
7704         * c-opts.c (c_common_post_options): flag_permissive does not affect
7705         flag_pedantic_errors.
7706
7707 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
7708
7709         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
7710         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
7711         __absvsi2, __absvDI2): Use unsigned arithmetic.
7712
7713 2008-03-02  Andi Kleen  <ak@suse.de>
7714             Richard Guenther  <rguenther@suse.de>
7715
7716         * struct-equiv.c: Remove file.
7717         * cfg_cleanup.c (condjump_equiv_p): Remove.
7718         * Makefile.in (OBJS-common): Remove struct-equiv.o.
7719         (struct-equiv.o): Remove rule.
7720         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
7721         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
7722         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
7723
7724 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7725
7726         * ifcvt.c (noce_process_if_block): Try to handle only the then
7727         block if the else block exists but isn't suitable.
7728
7729 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
7730
7731         PR gcc/35063
7732         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
7733         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
7734         regression from previous patch.
7735
7736 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
7737
7738         PR gcc/35063
7739         * gthr.h: Add __gthread_mutex_destroy as a function that must be
7740         implemented.
7741         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
7742         * gthr-single.h (__gthread_mutex_destroy): Likewise.
7743         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
7744         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
7745         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
7746         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
7747         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
7748         (__gthread_mutex_destroy_function): Rename to
7749         __gthread_mutex_destroy.
7750         * gthr-dce.h (__gthread_mutex_destroy): Call
7751         pthread_mutex_destroy.
7752         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
7753         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
7754         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
7755
7756 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7757
7758         * df-scan.c (df_ref_chain_change_bb): Simplify.
7759         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
7760         set_block_for_insn if there's any change.
7761         * df.h ((df_insn_change_bb): Fix prototype.
7762         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
7763         df_insn_change_bb, don't call set_block_for_insn.
7764         * emit-rtl.c (reorder_insns): Likewise.
7765         * haifa-sched.c (move_insn): Likewise.
7766
7767 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7768
7769         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
7770
7771 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
7772
7773         * tree-flow-inline.h (next_readonly_imm_use): Return
7774         NULL_USE_OPERAND_P after the end.
7775
7776 2008-03-01  Richard Guenther  <rguenther@suse.de>
7777
7778         PR tree-optimization/35411
7779         * tree-sra.c (sra_build_assignment): Split conversion to
7780         final type to a separate statement if we are not assigning
7781         to a register.
7782
7783 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
7784
7785         * fold-const.c (fold_convertible_p): Correct the logic to follow
7786         that in fold_convert().
7787
7788 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
7789
7790         PR c++/35315
7791         * tree-inline.c (build_duplicate_type): When we make a
7792         duplicate type, make it unique in the canonical types system.
7793
7794 2008-02-29  Tom Tromey  <tromey@redhat.com>
7795
7796         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
7797         input_file_stack_history, input_file_stack_restored): Remove.
7798         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7799         * input.h (struct file_stack): Remove.
7800         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
7801         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
7802         Likewise.
7803         * diagnostic.h (struct diagnostic_context) <last_module>: Change
7804         type.
7805         (diagnostic_last_module_changed): Add 'map' argument.
7806         (diagnostic_set_last_function): Likewise.
7807         * diagnostic.c (undiagnostic_report_current_module): Iterate using
7808         line map, not input_file_stack.
7809         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
7810
7811 2008-02-29  Paul Brook  <paul@codesourcery.com>
7812
7813         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
7814
7815 2008-02-29  Paul Brook  <paul@codesourcery.com>
7816
7817         * config/arm/ieee754-df.S (muldf3): Use RET macros.
7818
7819 2008-02-29  Richard Guenther  <rguenther@suse.de>
7820
7821         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
7822         vn_lookup_or_add.
7823         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
7824         value for comparing for a store match.
7825         (simplify_unary_expression): Do nothing for SSA_NAMEs.
7826         (try_to_simplify): Do not do a full-blown reference lookup.
7827
7828 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7829
7830         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
7831         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
7832
7833         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
7834
7835 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
7836
7837         * tree-loop-linear.c (try_interchange_loops): Compare memory access
7838         strides against cache sizes.
7839
7840 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
7841
7842         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
7843         constant to fpul.
7844
7845 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
7846
7847         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
7848         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
7849         is smaller than the original promoted value.
7850         (simplify_subreg): If OP is a SUBREG, try to preserve its
7851         SUBREG_PROMOTED_VAR_P information.
7852
7853 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
7854
7855         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
7856         (VN_INFO_GET): Allocate new objects on the obstack.
7857         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
7858         for rpo_numbers_temp, for consistency.
7859         (free_scc_vn): Free the obstack.
7860
7861 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
7862
7863         * doc/invoke.texi: Document -ftree-loop-distribution.
7864         * tree-loop-distribution.c: New.
7865         * tree-pass.h (pass_loop_distribution): New.
7866         * graphds.h (struct graph): Add htab_t indices.
7867         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7868         * tree-vectorizer.c (rename_variables_in_loop): Extern.
7869         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
7870         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
7871         * tree-data-ref.c (debug_data_dependence_relations): New.
7872         (dump_data_dependence_relation): Also print data references.
7873         (free_data_ref): Extern.
7874         (same_access_functions): Moved...
7875         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
7876         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7877         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
7878         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
7879         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
7880         (stmts_from_loop): Skip LABEL_EXPR.
7881         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
7882         New.
7883         (build_rdg): Initialize rdg->indices htab.
7884         (free_rdg, stores_from_loop, ref_base_address,
7885         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
7886         have_similar_memory_accesses_1, ref_base_address_1,
7887         remove_similar_memory_refs): New.
7888         * tree-data-ref.h: Depend on tree-chrec.h.
7889         (debug_data_dependence_relations, free_data_ref): Declared.
7890         (same_access_functions): ... here.
7891         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
7892         New.
7893         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
7894         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
7895         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
7896         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7897         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
7898         rdg_vertex_for_stmt): Declared.
7899         (struct rdg_edge): Add level.
7900         (RDGE_LEVEL): New.
7901         (free_rdg, stores_from_loop, remove_similar_memory_refs,
7902         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
7903         Declared.
7904         (rdg_has_similar_memory_accesses): New.
7905         * tree-vect-analyze.c: Remove unused static decls.
7906         * lambda.h (dependence_level): New.
7907         * common.opt (ftree-loop-distribution): New.
7908         * tree-flow.h (mark_virtual_ops_in_bb, 
7909         slpeel_tree_duplicate_loop_to_edge_cfg,
7910         rename_variables_in_loop): Declared.
7911         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
7912         (OBJS-common): Add tree-loop-distribution.o.
7913         (tree-loop-distribution.o): New rule.
7914         * tree-cfg.c (mark_virtual_ops_in_bb): New.
7915         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
7916         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
7917
7918 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
7919
7920         PR target/33963
7921         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
7922         other than structures and unions.
7923
7924 2008-02-28  Richard Guenther  <rguenther@suse.de>
7925
7926         Revert:
7927         2008-02-26  Richard Guenther  <rguenther@suse.de>
7928
7929         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
7930         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
7931         (lookup_decl_from_uid): Declare.
7932         (remove_decl_from_map): Likewise.
7933         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
7934         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
7935         (decl_for_uid_map): New global hashtable mapping DECL_UID
7936         to the decl tree.
7937         (init_ttree): Allocate it.
7938         (insert_decl_to_uid_decl_map): New helper function.
7939         (make_node_stat): Insert new decls into the map.
7940         (copy_node_stat): Likewise.
7941         (lookup_decl_from_uid): New function.
7942         (remove_decl_from_map): Likewise.
7943         (print_decl_for_uid_map_statistics): New helper.
7944         (dump_tree_statistics): Call it.
7945
7946         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
7947         (referenced_var_iterator): Adjust.
7948         (FOR_EACH_REFERENCED_VAR): Adjust.
7949         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
7950         (num_referenced_vars): Adjust.
7951         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
7952         (first_referenced_var): Remove.
7953         (end_referenced_vars_p): Likewise.
7954         (next_referenced_var): Likewise.
7955         (referenced_var_iterator_set): New helper function.
7956         * tree-dfa.c (referenced_var_lookup): Adjust.
7957         (referenced_var_check_and_insert): Likewise.
7958         (remove_referenced_var): Likewise.
7959         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
7960         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7961         (verify_call_clobbering): Likewise.
7962         (verify_memory_partitions): Likewise.
7963         (init_tree_ssa): Allocate bitmap instead of hashtable for
7964         referenced_vars.
7965         (delete_tree_ssa): Adjust.
7966         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
7967         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
7968         (compute_tag_properties): Likewise.
7969         (set_initial_properties): Likewise.
7970         (find_partition_for): Likewise.
7971         (update_reference_counts): Likewise.
7972         (dump_may_aliases_for): Likewise.
7973         * tree-ssa-operands.c (add_virtual_operand): Likewise.
7974         (add_call_clobber_ops): Likewise.
7975         (add_call_read_ops): Likewise.
7976         (get_asm_expr_operands): Likewise.
7977         * tree-into-ssa.c (dump_decl_set): Likewise.
7978         (update_ssa): Likewise.
7979         * tree-sra.c (scan_function): Likewise.
7980         (decide_instantiations): Likewise.
7981         (scalarize_parms): Likewise.
7982         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
7983         (dsa_named_for): Likewise.
7984         * tree-ssa-structalias.c (update_alias_info): Likewise.
7985         (merge_smts_into): Likewise.
7986
7987 2008-02-27  David Daney  <ddaney@avtrex.com>
7988
7989         PR target/34409
7990         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
7991         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
7992         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
7993         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
7994         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
7995
7996 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
7997
7998         PR target/25477
7999         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
8000         (BUILT_IN_NEXTTOWARD): Remove.
8001         (BUILT_IN_NEXTTOWARDF): Ditto.
8002         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
8003         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
8004
8005 2008-02-27  Tom Tromey  <tromey@redhat.com>
8006
8007         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
8008         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
8009
8010 2008-02-27  Jan Beulich  <jbeulich@novell.com>
8011
8012         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
8013         update the respective field on newdecl.
8014
8015 2008-02-27  Revital Eres  <eres@il.ibm.com>
8016
8017         PR rtl-optimization/34999
8018         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
8019         crossing edges that ends with a call insn.
8020         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
8021         call insn and clear the EDGE_CROSSING flag of the crossing edge
8022         when fixing fallthru edges.
8023
8024 2008-02-27  Richard Guenther  <rguenther@suse.de>
8025
8026         PR middle-end/35390
8027         * fold-const.c (fold_unary): Return the correct argument,
8028         converted to the result type.
8029
8030 2008-02-27  Richard Guenther  <rguenther@suse.de>
8031
8032         PR middle-end/34971
8033         * expr.c (expand_expr_real_1): Assert on rotates that operate
8034         on partial modes.
8035         * fold-const.c (fold_binary): Use the types precision, not the
8036         bitsize of the mode if folding rotate expressions.  Build rotates
8037         only for full modes.
8038
8039 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
8040
8041         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
8042         and CPP_PRAGMA_EOL.
8043         * c-pragma.c (pragma_ns_name): New typedef.
8044         (registered_pp_pragmas): New variable.
8045         (c_pp_lookup_pragma): New function.
8046         (c_register_pragma_1): If flag_preprocess_only, do nothing
8047         for non-expanded pragmas, for expanded ones push pragma's
8048         namespace and name into registered_pp_pragmas vector.
8049         (c_invoke_pragma_handler): Register OpenMP pragmas even when
8050         flag_preprocess_only, don't register GCC pch_preprocess
8051         pragma if flag_preprocess_only.
8052         * c-opts.c (c_common_init): Call init_pragma even if
8053         flag_preprocess_only.
8054         * c-pragma.c (c_pp_lookup_pragma): New prototype.
8055         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
8056         cpp_register_pragma if flag_preprocess_only.
8057
8058 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8059
8060         PR c/28800
8061         * c-parser.c (c_parser_translation_unit): Warn for empty
8062         translation unit, not empty source file.
8063
8064 2008-02-26  Paul Brook  <paul@codesourcery.com>
8065
8066         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
8067         operand for Thumb-2.
8068         * config/arm/arm.h (reg_class): Add CORE_REGS.
8069         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
8070         (BASE_REG_CLASS): Use CORE_REGS.
8071         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
8072         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
8073         (REGNO_OK_FOR_INDEX_P): Exclude SP.
8074         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
8075         ARM_REGNO_OK_FOR_INDEX_P.
8076         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
8077         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
8078         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
8079         (ldm/stm peepholes): Ditto.
8080         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
8081         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
8082         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
8083         * config/arm/constraints.md: Enable "k" constraint on ARM.
8084
8085 2008-02-27  Ben Elliston  <bje@au.ibm.com>
8086
8087         * config/rs6000/rs6000.c: Annotate cache line size field in all
8088         instances of struct processor_costs.
8089
8090 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
8091
8092         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
8093         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
8094         jump_bypass): New counters.
8095         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
8096         * dce.c (gate_ud_dce): Same.
8097         (gate_fast_dce): Same.
8098         * dse.c (gate_dse1): New function.
8099         (gate_dse2): New function.
8100         (gate_dse): Merge results of new gate functions.
8101         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
8102         (gate_handle_jump_bypass): Add dbg_cnt.
8103         (gate_handle_gcse): Add dbg_cnt.
8104         * ifcvt.c (gate_handle_if_conversion): Same.
8105         (gate_handle_if_after_combine): Same.
8106         (gate_handle_if_after_reload): Same.
8107         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
8108
8109 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
8110
8111         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
8112         line sizes.
8113         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
8114
8115 2008-02-26  Jason Merrill  <jason@redhat.com>
8116
8117         PR c++/35315
8118         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
8119         alone if it's the naming decl for the type's main variant.
8120
8121 2008-02-26  Tom Tromey  <tromey@redhat.com>
8122
8123         * system.h (USE_MAPPED_LOCATION): Poison.
8124         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
8125         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
8126         (make_goto_expr_edges): Likewise.
8127         (remove_bb): Likewise.
8128         (execute_warn_function_return): Likewise.
8129         * basic-block.h (struct edge_def) <goto_locus>: Change type to
8130         location_t.
8131         * c-common.c (fname_decl): Remove old location code.
8132         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
8133         location code.
8134         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
8135         variant.
8136         (ASM_INPUT_SOURCE_LOCATION): Likewise.
8137         (gen_rtx_ASM_INPUT): Likewise.
8138         (gen_rtx_ASM_INPUT_loc): Likewise.
8139         (get_rtx_asm_OPERANDS): Remove.
8140         * cfglayout.c (insn_locators_alloc): Remove old location code.
8141         (set_curr_insn_source_location): Likewise.
8142         (curr_insn_locator): Likewise.
8143         * print-tree.c (print_node): Remove old location code.
8144         * tree-mudflap.c (mf_varname_tree): Remove old location code.
8145         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
8146         * cfgexpand.c (expand_gimple_cond_expr): Don't use
8147         location_from_locus.
8148         (construct_exit_block): Remove old location code.
8149         * emit-rtl.c (force_next_line_note): Remove old location code.
8150         * profile.c (branch_prob): Remove old location code.
8151         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
8152         LOC_LINE): Remove old-location variants.
8153         * langhooks.c (lhd_print_error_function): Remove old location
8154         code.
8155         * configure, config.in: Rebuilt.
8156         * configure.ac (--enable-mapped-location): Remove.
8157         * c-decl.c (c_init_decl_processing): Remove old location code.
8158         (finish_function): Likewise.
8159         * recog.c (decode_asm_operands): Remove old location code.
8160         * c-pch.c (c_common_read_pch): Remove old location code.
8161         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
8162         variants.
8163         * gimple-low.c (lower_function_body): Remove old location code.
8164         * toplev.c (unknown_location): Remove.
8165         (push_srcloc): Remove old-location variant.
8166         (process_options): Remove old location code.
8167         (lang_dependent_init): Likewise.
8168         * input.h (UNKNOWN_LOCATION): Move definition.
8169         (location_t): Undeprecate.
8170         (source_locus): Remove.
8171         (location_from_locus): Remove.
8172         (struct location_s): Remove.
8173         Remove all old-location code.
8174         (input_line, input_filename): Remove.
8175         * final.c (final_scan_insn): Remove old location code.
8176         * diagnostic.c (diagnostic_build_prefix): Remove
8177         USE_MAPPED_LOCATION test.
8178         * tree.h (gimple_stmt) <locus>: Now a location_t.
8179         (tree_exp) <locus>: Likewise.
8180         (DECL_IS_BUILTIN): Remove old-location variant.
8181         (annotate_with_file_line, annotate_with_locus): Likewise.
8182         (expr_locus, set_expr_locus): Update.
8183         * tree.c (build1_stat): Remove old location code.
8184         (last_annotated_node): Remove.
8185         (annotate_with_file_line): Remove old-location variant.
8186         (annotate_with_locus): Likewise.
8187         (expr_location): Remove old location code.
8188         (set_expr_location): Likewise.
8189         (expr_has_location): Likewise.
8190         (expr_locus): Likewise.
8191         (set_expr_locus): Likewise.
8192         (expr_filename): Don't use location_from_locus.
8193         (expr_lineno): Likewise.
8194         * rtl-error.c (location_for_asm): Remove old location code.
8195         * c-lex.c (cb_line_change): Remove old location code.
8196         (fe_file_change): Likewise.
8197         (cb_def_pragma): Likewise.
8198         (c_lex_with_flags): Likewise.
8199         * gengtype.c (do_typedef): Don't special-case location types.
8200         (define_location_structures): Remove.
8201         (main): Don't call define_location_structures.
8202         * tree-pretty-print.c (dump_implicit_edges): Remove old location
8203         code.
8204
8205 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8206
8207         PR 26264
8208         * builtins.def (BUILT_IN_STDARG_START): Remove.
8209         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
8210         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8211         * tree-inline.c (inline_forbidden_p_1): Likewise.
8212         
8213 2008-02-26  Richard Guenther  <rguenther@suse.de>
8214
8215         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8216         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8217         (lookup_decl_from_uid): Declare.
8218         (remove_decl_from_map): Likewise.
8219         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8220         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8221         (decl_for_uid_map): New global hashtable mapping DECL_UID
8222         to the decl tree.
8223         (init_ttree): Allocate it.
8224         (insert_decl_to_uid_decl_map): New helper function.
8225         (make_node_stat): Insert new decls into the map.
8226         (copy_node_stat): Likewise.
8227         (lookup_decl_from_uid): New function.
8228         (remove_decl_from_map): Likewise.
8229         (print_decl_for_uid_map_statistics): New helper.
8230         (dump_tree_statistics): Call it.
8231
8232         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8233         (referenced_var_iterator): Adjust.
8234         (FOR_EACH_REFERENCED_VAR): Adjust.
8235         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8236         (num_referenced_vars): Adjust.
8237         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8238         (first_referenced_var): Remove.
8239         (end_referenced_vars_p): Likewise.
8240         (next_referenced_var): Likewise.
8241         (referenced_var_iterator_set): New helper function.
8242         * tree-dfa.c (referenced_var_lookup): Adjust.
8243         (referenced_var_check_and_insert): Likewise.
8244         (remove_referenced_var): Likewise.
8245         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8246         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8247         (verify_call_clobbering): Likewise.
8248         (verify_memory_partitions): Likewise.
8249         (init_tree_ssa): Allocate bitmap instead of hashtable for
8250         referenced_vars.
8251         (delete_tree_ssa): Adjust.
8252         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8253         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8254         (compute_tag_properties): Likewise.
8255         (set_initial_properties): Likewise.
8256         (find_partition_for): Likewise.
8257         (update_reference_counts): Likewise.
8258         (dump_may_aliases_for): Likewise.
8259         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8260         (add_call_clobber_ops): Likewise.
8261         (add_call_read_ops): Likewise.
8262         (get_asm_expr_operands): Likewise.
8263         * tree-into-ssa.c (dump_decl_set): Likewise.
8264         (update_ssa): Likewise.
8265         * tree-sra.c (scan_function): Likewise.
8266         (decide_instantiations): Likewise.
8267         (scalarize_parms): Likewise.
8268         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8269         (dsa_named_for): Likewise.
8270         * tree-ssa-structalias.c (update_alias_info): Likewise.
8271         (merge_smts_into): Likewise.
8272
8273 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8274
8275         PR 34351
8276         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
8277         * c-opts.c (c_common_handle_option): Wall enables
8278         Wvolatile-register-var.
8279         * common.opt: Move Wvolatile-register-var to...
8280         * c.opt: ...here.
8281         
8282 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8283
8284         * common.opt (Wlarger-than=): New.
8285         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
8286         -Wlarger-than=.
8287         * opts.c (common_handle_option): Handle -Wlarger-than=.
8288         * optc-gen.awk: Likewise.
8289         * opth-gen.awk: Likewise.
8290         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
8291         * tree-optimize.c (tree_rest_of_compilation): Likewise.
8292         
8293 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8294
8295         * c-common.c (match_case_to_enum_1): Add appropriate
8296         OPT_W* parameter to warning.
8297         (c_do_switch_warnings): Likewise.
8298         * c-typeck.c (warning_init): Add one more parameter following
8299         'warning' function.
8300         (push_init_level): Update call to warning_init.
8301         (pop_init_level): Likewise.
8302         (add_pending_init): Likewise.
8303         (output_init_element: Likewise.
8304
8305 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8306
8307         PR 28322
8308         * toplev.c (toplev_main): If there are warnings or error, print
8309         errors for ignored options.
8310         * opts.c (ignored_options): New static variable.
8311         (postpone_unknown_option_error): New.
8312         (print_ignored_options): New.
8313         (handle_option): Postpone errors for unknown -Wno-* options.
8314         * opts.h (print_ignored_options): Declare.
8315         
8316 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
8317
8318         * config/mips/mips.md (loadgp_blockage, blockage): Change type
8319         to "ghost".
8320
8321 2008-02-25  Richard Guenther  <rguenther@suse.de>
8322
8323         Revert:
8324         2008-02-25  Richard Guenther  <rguenther@suse.de>
8325
8326         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8327         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8328         (lookup_decl_from_uid): Declare.
8329         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8330         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8331         (decl_for_uid_map): New global hashtable mapping DECL_UID
8332         to the decl tree.
8333         (init_ttree): Allocate it.
8334         (insert_decl_to_uid_decl_map): New helper function.
8335         (make_node_stat): Insert new decls into the map.
8336         (copy_node_stat): Likewise.
8337         (lookup_decl_from_uid): New function.
8338         (print_decl_for_uid_map_statistics): New helper.
8339         (dump_tree_statistics): Call it.
8340
8341         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8342         (referenced_var_iterator): Adjust.
8343         (FOR_EACH_REFERENCED_VAR): Adjust.
8344         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8345         (num_referenced_vars): Adjust.
8346         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8347         (first_referenced_var): Remove.
8348         (end_referenced_vars_p): Likewise.
8349         (next_referenced_var): Likewise.
8350         (referenced_var_iterator_set): New helper function.
8351         * tree-dfa.c (referenced_var_lookup): Adjust.
8352         (referenced_var_check_and_insert): Likewise.
8353         (remove_referenced_var): Likewise.
8354         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8355         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8356         (verify_call_clobbering): Likewise.
8357         (verify_memory_partitions): Likewise.
8358         (init_tree_ssa): Allocate bitmap instead of hashtable for
8359         referenced_vars.
8360         (delete_tree_ssa): Adjust.
8361         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8362         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8363         (compute_tag_properties): Likewise.
8364         (set_initial_properties): Likewise.
8365         (find_partition_for): Likewise.
8366         (update_reference_counts): Likewise.
8367         (dump_may_aliases_for): Likewise.
8368         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8369         (add_call_clobber_ops): Likewise.
8370         (add_call_read_ops): Likewise.
8371         (get_asm_expr_operands): Likewise.
8372         * tree-into-ssa.c (dump_decl_set): Likewise.
8373         (update_ssa): Likewise.
8374         * tree-sra.c (scan_function): Likewise.
8375         (decide_instantiations): Likewise.
8376         (scalarize_parms): Likewise.
8377         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8378         (dsa_named_for): Likewise.
8379         * tree-ssa-structalias.c (update_alias_info): Likewise.
8380         (merge_smts_into): Likewise.
8381
8382 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
8383
8384         PR fortran/29549
8385         * doc/invoke.texi (-fcx-limited-range): Document new option.
8386         * toplev.c (process_options): Handle -fcx-fortran-rules.
8387         * common.opt: Add documentation for -fcx-fortran-rules.
8388
8389 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
8390
8391         PR c/35162
8392         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
8393         actual behaviour and C99.
8394         
8395 2008-02-26  Ben Elliston  <bje@au.ibm.com>
8396
8397         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
8398         (ASM_CPU_POWER6_SPEC): Likewise.
8399         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
8400         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
8401         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
8402
8403 2008-02-25  Richard Guenther  <rguenther@suse.de>
8404
8405         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
8406         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
8407         (lookup_decl_from_uid): Declare.
8408         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
8409         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
8410         (decl_for_uid_map): New global hashtable mapping DECL_UID
8411         to the decl tree.
8412         (init_ttree): Allocate it.
8413         (insert_decl_to_uid_decl_map): New helper function.
8414         (make_node_stat): Insert new decls into the map.
8415         (copy_node_stat): Likewise.
8416         (lookup_decl_from_uid): New function.
8417         (print_decl_for_uid_map_statistics): New helper.
8418         (dump_tree_statistics): Call it.
8419
8420         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
8421         (referenced_var_iterator): Adjust.
8422         (FOR_EACH_REFERENCED_VAR): Adjust.
8423         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
8424         (num_referenced_vars): Adjust.
8425         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
8426         (first_referenced_var): Remove.
8427         (end_referenced_vars_p): Likewise.
8428         (next_referenced_var): Likewise.
8429         (referenced_var_iterator_set): New helper function.
8430         * tree-dfa.c (referenced_var_lookup): Adjust.
8431         (referenced_var_check_and_insert): Likewise.
8432         (remove_referenced_var): Likewise.
8433         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
8434         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8435         (verify_call_clobbering): Likewise.
8436         (verify_memory_partitions): Likewise.
8437         (init_tree_ssa): Allocate bitmap instead of hashtable for
8438         referenced_vars.
8439         (delete_tree_ssa): Adjust.
8440         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
8441         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
8442         (compute_tag_properties): Likewise.
8443         (set_initial_properties): Likewise.
8444         (find_partition_for): Likewise.
8445         (update_reference_counts): Likewise.
8446         (dump_may_aliases_for): Likewise.
8447         * tree-ssa-operands.c (add_virtual_operand): Likewise.
8448         (add_call_clobber_ops): Likewise.
8449         (add_call_read_ops): Likewise.
8450         (get_asm_expr_operands): Likewise.
8451         * tree-into-ssa.c (dump_decl_set): Likewise.
8452         (update_ssa): Likewise.
8453         * tree-sra.c (scan_function): Likewise.
8454         (decide_instantiations): Likewise.
8455         (scalarize_parms): Likewise.
8456         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
8457         (dsa_named_for): Likewise.
8458         * tree-ssa-structalias.c (update_alias_info): Likewise.
8459         (merge_smts_into): Likewise.
8460
8461 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
8462
8463         PR target/35258
8464         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
8465         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
8466         * alias.h (nonoverlapping_memrefs_p): Likewise.
8467
8468 2008-02-25  Jan Beulich  <jbeulich@novell.com>
8469
8470         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
8471         * config/i386/netware-libgcc.exp: Add __bswap?i2,
8472         __emultls_get_address, __emultls_register_common,
8473         __floatundi?f, and _Unwind_GetIPInfo.
8474         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
8475         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
8476         (gen_regparm_prefix): Likewise.
8477         (i386_nlm_encode_section_info): Sync with
8478         config/i386/winnt.c:i386_pe_encode_section_info().
8479         (i386_nlm_maybe_mangle_decl_assembler_name): New.
8480         i386_nlm_mangle_decl_assembler_name): New.
8481         (netware_override_options): New.
8482         * config/i386/netware.h (netware_override_options): Declare.
8483         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
8484         (i386_nlm_mangle_decl_assembler_name): Declare.
8485         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
8486
8487 2008-02-25  Ben Elliston  <bje@au.ibm.com>
8488
8489         PR other/32948
8490         * c-decl.c (grokdeclarator): Remove unused local variables
8491         `typedef_type' and `type_as_written'.
8492         * bb-reorder.c
8493         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
8494         unused local variable `has_hot_blocks'.
8495         (fix_crossing_conditional_branches): Remove unused local variable
8496         `prev_bb'.
8497         
8498 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
8499
8500         PR middle-end/19984
8501         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
8502         using DEF_C99_BUILTIN.
8503         (BUILT_IN_NANF): Ditto.
8504         (BUILT_IN_NANL): Ditto.
8505
8506 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
8507             Revital Eres  <eres@il.ibm.com>
8508
8509         * modulo-sched.c (calculate_must_precede_follow): Address TODO
8510         regarding the order of two dependent insns in the same row.
8511
8512 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
8513
8514         * stor-layout.c (layout_decl): Do not bump the alignment of a
8515         bit-field to more than byte alignment if it is packed.
8516
8517 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
8518
8519         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
8520         e300c2 and e300c3.
8521
8522 2008-02-24  Diego Novillo  <dnovillo@google.com>
8523
8524         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
8525
8526         PR 33738
8527         * tree-vrp.c (vrp_evaluate_conditional): With
8528         -Wtype-limits, emit a warning when comparing against a
8529         constant outside the natural range of OP0's type.
8530         * c.opt (Wtype-limits): Move ...
8531         * common.opt (Wtype-limits): ... here.
8532
8533 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
8534
8535         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
8536         * config/rs6000/e300c2c3.md: New file.
8537         * config/rs6000/rs6000.c (processor_costs): Add new costs for
8538         e300c2 and e300c3.
8539         (rs6000_override_options): Add e300c2 and e300c3 cases to
8540         processor_target_table. Do not allow usage of Altivec or Spe
8541         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
8542         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
8543         * config/rs6000/rs6000.h (processor_type): Add
8544         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
8545         (ASM_CPU_SPEC): Add e300c2 and e300c3.
8546         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
8547         and ppce300c3. Include e300c2c3.md.
8548
8549 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
8550
8551         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
8552         instead of TARGET_STRICT_ALIGN.
8553
8554 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
8555
8556         * explow.c (memory_address): Assert that the generated address is
8557         valid.
8558
8559 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
8560
8561         PR target/25477
8562         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
8563         * config/darwin-ppc-ldouble-patch.def: New file.
8564         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
8565         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
8566         SUBTARGET_INIT_BUILTINS if defined.
8567         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
8568         New functions.
8569
8570 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8571
8572         PR rtl-opt/33512
8573         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
8574         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
8575
8576 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8577
8578         PR pch/35027
8579         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
8580         file" warning condtional on -Winvalid-PCH.
8581
8582 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
8583
8584         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
8585
8586 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
8587
8588         PR target/22076
8589         PR target/34256 
8590         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
8591         prevent reload from using MMX registers.
8592         (*mov<mode>_internal): Ditto.
8593         (*movv2sf_internal_rex64): Ditto.
8594         (*movv2sf_internal): Ditto.
8595
8596 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8597
8598         PR documentation/31569
8599         * doc/install.texi2html: Use makeinfo --no-number-sections.
8600
8601 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8602
8603         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
8604         ensure that we can address an entire entity > 8 bytes.  Don't
8605         generate reg+reg addressing for such data.
8606
8607 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8608
8609         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
8610         strings when optimizing for size, unless the target cares about
8611         alignment.
8612
8613 2008-02-22  Tom Tromey  <tromey@redhat.com>
8614
8615         * regclass.c (current_pass): Remove declaration.
8616
8617 2008-02-22  Anatoly Sokolov <aesok@post.ru>
8618
8619         * config/avr/libgcc.S (__RAMPZ__): Define.
8620         (__do_copy_data): Add for devices with 128KB code memory.
8621
8622 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
8623
8624         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
8625         Use spe_abi.
8626         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
8627
8628 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
8629
8630         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
8631         GENNONACR_REGS.
8632
8633 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8634
8635         PR c/19999
8636         * c-typeck.c (build_binary_op): Warn about floating point
8637         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
8638
8639 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
8640
8641         PR target/34526
8642         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
8643         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
8644         add vrsave.
8645         (rs6000_override_options): Set altivec_abi as default, not override,
8646         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
8647         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
8648         is used; use new member spe_abi.
8649         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
8650         spe_abi and altivec_abi.
8651
8652 2008-02-22  Tomas Bily  <tbily@suse.cz>
8653
8654         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
8655
8656 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8657
8658         PR bootstrap/35273
8659         * config.build (build_file_translate): Set to `CMD //c' only if
8660         it works.
8661         * Makefile.in (build_file_translate): Improve comment.
8662
8663 2008-02-21  Jan Hubicka  <jh@suse.cz>
8664
8665         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
8666         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
8667         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
8668
8669 2008-02-21  Michael Matz  <matz@suse.de>
8670
8671         PR target/35264
8672         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
8673
8674 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
8675
8676         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
8677         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
8678         as insn constraint.
8679         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
8680         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
8681         SSE_VEC_FLOAT_MODE_P as insn constraint.
8682         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
8683         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
8684         sse4a_movntdf using MODEF mode iterator.
8685         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
8686         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
8687         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
8688         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
8689         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
8690         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
8691         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
8692
8693 2008-02-21  Richard Guenther  <rguenther@suse.de>
8694
8695         * tree.def (PAREN_EXPR): New tree code.
8696         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
8697         and PAREN_EXPR.
8698         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
8699         * expr.c (expand_expr_real_1): Likewise.
8700         * tree-inline.c (estimate_num_insns_1): Likewise.
8701         * tree-complex.c (expand_complex_move): Likewise.
8702         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
8703         as plain x.
8704
8705 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8706
8707         PR target/35225
8708         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
8709
8710 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
8711
8712         PR target/35190
8713         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
8714
8715         * config/sh/sh.c (find_barrier): Don't go past
8716         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
8717
8718 2008-02-20  DJ Delorie  <dj@redhat.com>
8719
8720         * config/h8300/h8300.md (insv): Force source operand to be a register.
8721
8722         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
8723         as a jump, not as a plain insn.
8724         
8725 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
8726
8727         * doc/invoke.texi (Warning Options): Add new option
8728         -Wframe-larger-than=.
8729         (-Wframe-larger-than): Document.
8730
8731         * flags.h (warn_frame_larger_than, frame_larger_than_size):
8732         Add declarations for new option variables.
8733
8734         * final.c (final_start_function): Check the frame size
8735         before emission and issue a Wframe-larger-than warning.
8736
8737         * opts.c (warn_frame_larger_than, frame_larger_than_size):
8738         Add definitions for new option variables.
8739         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
8740
8741         * common.opt (Wframe-larger-than=): New option.
8742
8743 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
8744
8745         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
8746         (<sse>_div<mode>3): Ditto.
8747         (<sse>_vmdiv<mode>3): Ditto.
8748         (<sse>_vmsqrt<mode>2): Ditto.
8749         (*smax<mode>3): Ditto.
8750         (sse5_frcz<mode>2): Ditto.
8751         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
8752         as insn constraint.
8753
8754 2008-02-20  Richard Guenther  <rguenther@suse.de>
8755
8756         PR middle-end/35265
8757         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
8758         be happy with INTEGRAL_TYPE_P.
8759
8760 2008-02-20  Richard Guenther  <rguenther@suse.de>
8761
8762         * fold-const.c (split_tree): Associate floatig-point expressions
8763         if flag_associative_math is set.
8764
8765 2008-02-20  Richard Guenther  <rguenther@suse.de>
8766
8767         * tree.h (fold_real_zero_addition_p): Declare.
8768         * fold-const.c (fold_real_zero_addition_p): Export.
8769         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
8770         floating-point operations with zero and one.
8771
8772 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
8773
8774         * doc/install.texi: Correct references to CFLAGS, replacing them
8775         with BOOT_CFLAGS.  Document flags used during bootstrap for
8776         target libraries.
8777                                 
8778 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
8779
8780         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
8781         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
8782         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
8783         insn constraint.
8784         (smin<mode>3): Ditto from similar patterns.
8785         (smax<mode>3): Ditto.
8786         (*ieee_smin<mode>3): Ditto.
8787         (*ieee_smax<mode>3): Ditto.
8788         * config/i386/sse.md (sse): New mode attribute.
8789         (mov<mode>): Macroize expander from movv4sf and movv2df using
8790         SSEMODEF2P mode iterator.
8791         (<sse>_movnt<mode>): Ditto from similar patterns. Use
8792         SSE_VEC_FLOAT_MODE_P as insn constraint.
8793         (storent<mode>): Ditto.
8794         (storent<mode>): Macroize expander from storentsf and storentdf using
8795         MODEF mode iterator.
8796         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
8797         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
8798         (abs<mode>2): Ditto from similar patterns.
8799         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
8800         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
8801         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
8802         (<sse>_vmsqrt<mode>2): Ditto.
8803         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
8804         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
8805         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
8806         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
8807         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
8808         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
8809         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
8810         insn constraint.
8811         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
8812         iterator and SSE_FLOAT_MODE_P as insn constraint.
8813         (<sse>_ucomi): Ditto from similar patterns.
8814         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
8815         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
8816         SSE_VEC_FLOAT_MODE_P as insn constraint.
8817         (vcond<mode>): Ditto from similar patterns.
8818         (and<mode>3, *and<mode>3): Ditto.
8819         (<sse>_nand<mode>3): Ditto.
8820         (ior<mode>3, *ior<mode>3): Ditto.
8821         (xor<mode>3, *xor<mode>3): Ditto.
8822         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
8823         iterator and SSE_FLOAT_MODE_P as insn constraint.
8824         (*nand<mode>3): Ditto from similar patterns.
8825         (*ior<mode>3): Ditto.
8826         (*xor<mode>3): Ditto.
8827
8828 2008-02-20  Ira Rosen  <irar@il.ibm.com>
8829
8830         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
8831         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
8832         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
8833
8834 2008-02-19  Jan Hubicka  <jh@suse.cz>
8835
8836         * predict.c (tree_bb_level_predictions): Remove variable next
8837         mistakely introduced by previous commit.
8838
8839 2008-02-19  Jan Hubicka  <jh@suse.cz>
8840
8841         * predict.c (predict_paths_leading_to): Rewrite.
8842         (predict_paths_for_bb): New.
8843         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
8844
8845 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8846
8847         PR bootstrap/35218
8848         * Makefile.in (build_file_translate): New.
8849         (gcc-vers.texi): Use it for translating $(abs_srcdir).
8850         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
8851         * configure.ac (build_file_translate): Substitute it.
8852         * configure: Regenerate.
8853
8854 2008-02-19  Jan Hubicka  <jh@suse.cz>
8855
8856         PR rtl-optimization/34408
8857         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
8858         invalid sharing.
8859
8860 2008-02-19  Jan Hubicka  <jh@suse.cz>
8861
8862         PR middle-end/28779
8863         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
8864         call_expr.
8865
8866 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
8867
8868         PR Ada/35186
8869         * config/i386/i386-modes.def: Revert the last DI alignment
8870         change until Ada people can look into it.
8871
8872 2008-02-19  Nick Clifton  <nickc@redhat.com>
8873
8874         * opts.c (print_specific_help): Fix typo in --help text.
8875
8876 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
8877
8878         PR target/35239
8879         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
8880         32-bit inline asm without asm alternatives for host GCC < 3.0.
8881
8882 2008-02-19  Richard Guenther  <rguenther@suse.de>
8883
8884         PR tree-optimization/34989
8885         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
8886         Allow propagation to INDIRECT_REF if we can simplify only.
8887
8888 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8889
8890         * c-common.c (warn_for_collisions_1): Use appropriate option when
8891         warning.
8892
8893 2008-02-19  Nick Clifton  <nickc@redhat.com>
8894
8895         PR other/31349
8896         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
8897         (handle_options): Fix indentation.
8898         (print_filtered_help): If no language-specific options were
8899         displayed tell the user how to list all the options supported by
8900         the language's front-end.
8901         (print_specific_help): Fix indentation and remove duplicate line.
8902         (common_handle_option): Handle the -v option.
8903         For --help enable the display of undocumented options if the -v
8904         switch has been included on the command line.
8905         For --help= check for overlaps in the arguments between the option
8906         classes and the language names and issue a warning when they
8907         cannot be disambiguated.
8908         * c.opt (v): Pass on to the common option handler.
8909
8910 2008-02-19  Revital Eres  <eres@il.ibm.com> 
8911
8912         * modulo-sched.c (sms_schedule): Change dump message when
8913         create_ddg function fails.
8914         (try_scheduling_node_in_cycle): Rename row to cycle.
8915         (print_partial_schedule): Rename CYCLE to ROW.
8916
8917 2008-02-19  Christian Bruel  <christian.bruel@st.com>
8918             Zdenek Dvorak  <ook@ucw.cz>
8919
8920         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
8921
8922 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
8923
8924         PR target/33555
8925         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
8926         (*x86_movdicc_0_m1_se): Ditto.
8927
8928 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
8929
8930         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
8931         (CMPtype): Define as __gcc_CMPtype.
8932         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
8933         (CMPtype): Define as __gcc_CMPtype.
8934
8935 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
8936
8937         Support valgrind 3.3 for --enable-checking=valgrind.
8938         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
8939         here.
8940         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
8941         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
8942         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
8943         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
8944         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
8945         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
8946         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
8947         respectively.
8948         * ggc-zone.c: Similar.
8949         * ggc-page.c: Similar.
8950
8951 2008-02-19  Paul Brook  <paul@codesourcery.com>
8952
8953         PR target/35071
8954         * config/arm/ieee754-df.S: Fix do_it typo.
8955         * config/arm/ieee754-sf.S: Fix do_it typo.
8956
8957 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8958
8959         PR target/35189
8960         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
8961         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
8962         (OPTION_MASK_ISA_SSE_SET): Likewise.
8963         (OPTION_MASK_ISA_SSE2_SET): Likewise.
8964         (OPTION_MASK_ISA_SSE3_SET): Likewise.
8965         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
8966         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
8967         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
8968         (OPTION_MASK_ISA_SSE4_SET): Likewise.
8969         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
8970         (OPTION_MASK_ISA_SSE5_SET): Likewise.
8971         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
8972         (OPTION_MASK_ISA_MMX_UNSET): Updated.
8973         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
8974         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
8975         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
8976         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
8977         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
8978         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
8979         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
8980         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
8981         (OPTION_MASK_ISA_SSE4): Removed.
8982         (ix86_handle_option): Turn on bits in ix86_isa_flags and
8983         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
8984         (override_options): Don't turn on implied SSE/MMX bits in
8985         ix86_isa_flags.
8986
8987 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
8988
8989         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8990         32bit host.
8991
8992 2008-02-18  Joey Ye  <joey.ye@intel.com>
8993
8994         PR middle-end/34921
8995         * tree-nested.c (insert_field_into_struct): Set type alignment
8996         to field alignment if the former is less than the latter.
8997
8998 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
8999
9000         * BASE-VER: Set to 4.4.0.
9001
9002 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9003
9004         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
9005         * doc/cfg.texi: Likewise.
9006         * doc/extend.texi: Likewise.
9007         * doc/gty.texi: Likewise.
9008         * doc/invoke.texi: Likewise.
9009         * doc/loop.texi: Likewise.
9010         * doc/md.texi: Likewise.
9011         * doc/passes.texi: Likewise.
9012         * doc/rtl.texi: Likewise.
9013         * doc/sourcebuild.texi: Likewise.
9014         * doc/tm.texi: Likewise.
9015         * doc/tree-ssa.texi: Likewise.
9016
9017 2008-02-17  Richard Guenther  <rguenther@suse.de>
9018
9019         PR middle-end/35227
9020         * tree-complex.c (init_parameter_lattice_values): Handle parameters
9021         without default definition.
9022
9023 2008-02-17  Richard Guenther  <rguenther@suse.de>
9024
9025         PR tree-optimization/35231
9026         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
9027         if A | B != 1.
9028
9029 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
9030
9031         Revert:
9032         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
9033         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
9034         libgcc_cmp_return mode.
9035
9036 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9037
9038         PR c/28368
9039         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
9040
9041 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
9042
9043         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
9044         multilibs.
9045
9046 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9047
9048         * doc/c-tree.texi: Use `@.' where appropriate.
9049         * doc/extend.texi: Likewise.
9050         * doc/install.texi: Likewise.
9051         * doc/invoke.texi: Likewise.
9052         * doc/loop.texi: Likewise.
9053         * doc/makefile.texi: Likewise.
9054         * doc/md.texi: Likewise.
9055         * doc/passes.texi: Likewise.
9056         * doc/standards.texi: Likewise.
9057         * doc/tm.texi: Likewise.
9058
9059 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
9060
9061         PR middle-end/35196
9062         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
9063         in entry_bb.
9064         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
9065         rather than in entry_bb.
9066
9067 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9068
9069         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
9070         libgcc_cmp_return mode.
9071
9072 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
9073
9074         PR middle-end/35130
9075         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
9076         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
9077
9078 2008-02-15  Richard Guenther  <rguenther@suse.de>
9079             Zdenek Dvorak  <ook@ucw.cz>
9080
9081         PR tree-optimization/35164
9082         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
9083         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
9084         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
9085         Only propagate addresses which do not have abnormal SSA_NAMEs
9086         in their operands.
9087
9088 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
9089
9090         PR target/35088
9091         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
9092
9093 2008-02-15  Jan Hubicka  <jh@suse.cz>
9094
9095         PR middle-end/35149
9096         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
9097
9098 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9099
9100         PR middle-end/34621
9101         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
9102         when calculating alignment_pad.
9103
9104 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
9105
9106         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
9107         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
9108         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
9109         and STACK_BOUNDARY define.
9110
9111 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
9112
9113         PR preprocessor/35061
9114         * c-pragma.c (handle_pragma_pop_macro): Check that
9115         pushed_macro_table has been allocated.
9116
9117 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
9118
9119         PR middle-end/35136
9120         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
9121         (force_gimple_operand): Likewise.
9122         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
9123         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
9124         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
9125         (find_interesting_uses_address): Check addressability and alignment
9126         of the base expression only after substituting bases of IVs into it.
9127
9128 2008-02-14  Michael Matz  <matz@suse.de>
9129
9130         PR target/34930
9131         * function.c (instantiate_virtual_regs_in_insn): Reload address
9132         before falling back to reloading the whole operand.
9133
9134 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
9135
9136         * config/s390/s390.c (s390_mainpool_start): Emit the pool
9137         before the first section switch note.
9138
9139 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9140
9141         * doc/bugreport.texi: Update copyright years.
9142         * doc/c-tree.texi: Likewise.
9143         * doc/cfg.texi: Likewise.
9144         * doc/cpp.texi: Likewise.
9145         * doc/cppinternals.texi: Likewise.
9146         * doc/fragments.texi: Likewise.
9147         * doc/frontends.texi: Likewise.
9148         * doc/gcc.texi: Likewise.
9149         * doc/gty.texi: Likewise.
9150         * doc/hostconfig.texi: Likewise.
9151         * doc/implement-c.texi: Likewise.
9152         * doc/libgcc.texi: Likewise.
9153         * doc/loop.texi: Likewise.
9154         * doc/makefile.texi: Likewise.
9155         * doc/options.texi: Likewise.
9156         * doc/passes.texi: Likewise.
9157         * doc/rtl.texi: Likewise.
9158         * doc/sourcebuild.texi: Likewise.
9159         * doc/standards.texi: Likewise.
9160         * doc/tree-ssa.texi: Likewise.
9161         * doc/trouble.texi: Likewise.
9162
9163         * doc/extend.texi: Use @: or add comma where appropriate.
9164         * doc/invoke.texi: Likewise.
9165         * doc/tm.texi: Likewise.
9166
9167 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
9168
9169         PR target/34393
9170         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
9171         to a reg.
9172
9173 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
9174
9175         * doc/md.texi (clz, ctz): Add reference.
9176         * doc/rtl.texi (clz, ctz): Likewise.
9177
9178 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9179
9180         PR other/35148
9181         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
9182         srcdir.
9183
9184 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
9185
9186         * config/s390/s390.c (struct constant_pool): New field
9187         emit_pool_after added.
9188         (s390_mainpool_start): Set the emit_pool_after flag according
9189         to the section switch notes.
9190         (s390_mainpool_finish): Consider emit_pool_after when emitting
9191         the literal pool at the end of the function.
9192         (s390_chunkify_start): Force literal pool splits at section
9193         switch notes.
9194
9195 2008-02-13  Michael Matz  <matz@suse.de>
9196
9197         PR debug/35065
9198         * var-tracking.c (clobber_variable_part): Correctly traverse the
9199         list.
9200
9201 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9202
9203         PR 29673
9204         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
9205         Add -fdump-ipa-inline.
9206         * tree-dump.c (dump_files): Remove tree-inlined dump.
9207         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
9208         
9209 2008-02-12  Richard Guenther  <rguenther@suse.de>
9210
9211         PR tree-optimization/35171
9212         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
9213         default defs.
9214
9215 2008-02-12  Richard Guenther  <rguenther@suse.de>
9216
9217         PR middle-end/35163
9218         * fold-const.c (fold_widened_comparison): Use get_unwidened in
9219         value-preserving mode.  Disallow final truncation.
9220
9221 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
9222
9223         PR middle-end/35136
9224         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
9225         code from here to...
9226         (force_gimple_operand): ...here.
9227
9228 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
9229
9230         PR c++/35144
9231         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
9232         non-compatible pointers.
9233         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
9234         different FIELD_DECLs, try harder by comparing field offsets, sizes
9235         and types.
9236
9237         PR inline-asm/35160
9238         * function.c (match_asm_constraints_1): Don't replace the same input
9239         multiple times.
9240
9241 2008-02-12  Anatoly Sokolov <aesok@post.ru>
9242
9243         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
9244         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
9245         (expand_epilogue): Restore RAMPZ register.
9246         * config/avr/avr.md (RAMPZ_ADDR): New constant.
9247
9248 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
9249
9250         * config/i386/cygwin.asm: (__alloca): Correct calling
9251         convention and alignment.
9252         (__chkstk): Force 8 byte stack alignment.
9253
9254 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
9255             Richard Guenther  <rguenther@suse.de>
9256
9257         PR tree-optimization/33992
9258         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
9259         the zero we compare against.
9260
9261 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
9262
9263         PR libfortran/35063
9264         * gthr-win32.h (__gthread_mutex_destroy_function): New function
9265         to CloseHandle after unlocking to prevent accumulation of handle
9266         count.
9267
9268 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9269
9270         PR middle_end/34150
9271         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
9272         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
9273         and update LABEL_NUSES during and after reload.
9274
9275 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
9276
9277         PR middle-end/34627
9278         * combine.c (simplify_if_then_else): Make sure the comparison is
9279         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
9280
9281 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
9282
9283         PR bootstrap/35051
9284         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
9285         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
9286         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
9287         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
9288         * tree.h (get_type_static_bounds): Likewise.
9289
9290 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9291
9292         * doc/invoke.texi (Option Summary, C++ Dialect Options)
9293         (Objective-C and Objective-C++ Dialect Options, Warning Options):
9294         Make -Wfoo language annotations match what the compiler outputs.
9295
9296 2008-02-08  Sa Liu  <saliu@de.ibm.com>
9297
9298         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
9299         intrinsics spu_convts, spu_convtu, spu_convtf.
9300
9301 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
9302
9303         * doc/extend.texi (Function Attributes) <noinline>: Mention
9304         asm ("") as method to keep calls.
9305
9306 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9307
9308         PR other/32754
9309         * doc/options.texi (Options): Replace references to opts.sh with
9310         optc-gen.awk.
9311         * opts-common.c: Likewise.
9312         * optc-gen.awk: Likewise.
9313         
9314 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
9315
9316         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
9317
9318 2008-02-07  Richard Henderson  <rth@redhat.com>
9319
9320         PR rtl-opt/33410
9321         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
9322         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
9323         funny mode.
9324
9325 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
9326
9327         PR tree-optimization/35085
9328         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
9329         for operand entry oe2 in addition to operand entry oe3 in order to
9330         expose more opportunities for vectorizer sum reduction.
9331
9332 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9333
9334         PR other/35107
9335         * Makefile.in (LIBS): Remove $(GMPLIBS).
9336         (cc1-dummy, cc1): Add $(GMPLIBS).
9337
9338 2008-02-06  Jan Hubicka  <jh@suse.cz>
9339
9340         PR target/23322
9341         * i386.md (moddf_integer): Do not produce partial memory stalls for
9342         targets where it hurts.
9343
9344 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
9345
9346         PR target/35083
9347         * optabs.c (expand_float): Do not check for decimal modes when
9348         expanding unsigned integer through signed conversion.
9349
9350 2008-02-06  Nick Clifton  <nickc@redhat.com>
9351
9352         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
9353         inside the clobber with a match_operand and duplicated operand
9354         number in the constraint.
9355         (ineqbranchsi): Delete redundant comment.
9356
9357 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
9358
9359         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
9360         builtin_define ("__USE_INIT_FINI__").
9361         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
9362         -msx multilibs.
9363         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
9364
9365 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9366
9367         PR documentation/30330
9368         * doc/invoke.texi (C++ Dialect Options)
9369         (Objective-C and Objective-C++ Dialect Options, Warning Options):
9370         For each warning option -Wfoo that allows -Wno-foo, ensure both
9371         -Wfoo and -Wno-foo are listed in the option index.  Fix index
9372         entry of -Wswitch-default, index -Wnormalized= including the
9373         `=', and -Wlarger-than-@var{len} including @var{len}.
9374
9375 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
9376
9377         * config/i386/i386.md (floatunssisf2): Use
9378         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
9379         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
9380         Macroize expander using MODEF mode iterator.
9381
9382 2008-02-05  Diego Novillo  <dnovillo@google.com>
9383
9384         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
9385
9386         PR 33738
9387         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
9388
9389 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9390
9391         PR other/35070
9392         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
9393
9394 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
9395
9396         PR target/35084
9397         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
9398         to indicate if a message should be generated.
9399         (init_cumulative_args): Updated.
9400         (function_value_32): Likewise.
9401
9402 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
9403
9404         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
9405
9406 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
9407
9408         PR target/35083
9409         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
9410         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
9411
9412 2008-02-04  Diego Novillo  <dnovillo@google.com>
9413
9414         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
9415
9416         PR 33738
9417         * tree-vrp.c (vrp_evaluate_conditional): With
9418         -Wtype-limits, emit a warning when comparing against a
9419         constant outside the natural range of OP0's type.
9420
9421 2008-02-04  Richard Guenther  <rguenther@suse.de>
9422
9423         PR middle-end/33631
9424         * expr.c (count_type_elements): Give for unions instead of
9425         guessing.
9426
9427 2008-02-04  Richard Guenther  <rguenther@suse.de>
9428
9429         PR middle-end/35043
9430         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
9431         to TYPE_DOMAINs base type instead of using bitsizetype here.
9432
9433 2008-02-03  Jason Merrill  <jason@redhat.com>
9434
9435         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
9436
9437 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9438
9439         PR other/29972
9440         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
9441         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
9442         (RS/6000 and PowerPC Options): Fix typos and markup.
9443         * doc/passes.texi (Tree-SSA passes): Likewise.
9444
9445 2008-02-02  Michael Matz  <matz@suse.de>
9446
9447         PR target/35045
9448         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
9449         from record_last_reg_set_info.
9450         (record_last_reg_set_info): Take an RTX argument, iterate over all
9451         constituent hardregs.
9452         (record_last_set_info, record_opr_changes): Change calls to
9453         new signature or to record_last_reg_set_info_regno.
9454
9455 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
9456
9457         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
9458
9459 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
9460
9461         PR rtl-optimization/34773
9462         * reg-notes.def (EQUAL): Mention significance of combination of
9463         REG_EQUAL and REG_RETVAL.
9464         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
9465         insn that has a REG_RETVAL.
9466
9467 2008-02-01  Roger Sayle  <roger@eyesopen.com>
9468
9469         PR bootstrap/33781
9470         * configure.ac (--enable-fixed-point): Disable unless explicitly
9471         requested on IRIX.
9472         * configure: Regenerate.
9473
9474 2008-02-01  Richard Guenther  <rguenther@suse.de>
9475
9476         PR other/35042
9477         * invoke.texi (-finline-limit): Remove no longer true parts
9478         of the documentation.  Note that there is no default value.
9479
9480 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
9481             Mark Mitchell  <mark@codesourcery.com>
9482             Ben Elliston  <bje@au.ibm.com>
9483
9484         PR c/29326
9485         * doc/extend.texi (Other Builtins): Document.
9486
9487 2008-01-31  Tom Browder <tom.browder@gmail.com>
9488
9489         * doc/c-tree.texi (Types): Fix grammar.
9490         (Expression trees): Ditto.
9491         * doc/passes.texi (Tree-SSA passes): Ditto.
9492         
9493         * doc/configterms.texi (Configure Terms): Fix typo.
9494         * doc/cpp.texi (Common Predefined Macros): Ditto.
9495         * doc/md.texi (Machine Constraints): Ditto.
9496         
9497         * doc/makefile.texi (Makefile): Add comma.
9498
9499 2008-01-31  Tom Browder  <tom.browder@gmail.com>
9500             Gerald Pfeifer  <gerald@pfeifer.com>
9501         
9502         * doc/sourcebuild.texi (Front End): Remove references to CVS
9503         and CVSROOT/modules.
9504         (Texinfo Manuals): Replace reference to CVS by one to SVN.
9505         (Back End): Remove reference to CVS.
9506
9507 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
9508
9509         PR target/34900
9510         * config/mips/mips.c (gen_load_const_gp): New function, taking a
9511         comment from...
9512         (mips16_gp_pseudo_reg): ...here.
9513         * config/mips/mips.md (load_const_gp): Replace with...
9514         (load_const_gp_<mode>): ...this :P-based insn.
9515
9516 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9517
9518         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
9519         options. Minor fixes.
9520         (-std): Move reference to standards closer to where language
9521         standards are first mentioned.
9522         
9523 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
9524
9525         PR rtl-optimization/34995
9526         * reload.c (alternative_allows_const_pool_ref): Take an rtx
9527         parameter and return a bool.  If the rtx parameter is nonnull,
9528         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
9529         (find_reloads): Update call accordingly.  Pass the new operand
9530         if it needed no address reloads, otherwise pass null.
9531
9532 2008-01-30  Richard Henderson  <rth@redhat.com>
9533
9534         PR c/34993
9535         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
9536         for unbounded arrays.
9537
9538 2008-01-30  Silvius Rus  <rus@google.com>
9539
9540         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
9541
9542 2008-01-30  Jan Hubicka  <jh@suse.cz>
9543
9544         PR target/34982
9545         * i386.c (init_cumulative_args): Use real function declaration when
9546         calling locally.
9547
9548 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
9549
9550         PR rtl-optimization/34998
9551         * global.c (build_insn_chain): Treat non-subreg_lowpart
9552         SUBREGs of pseudos as clobbering all the words covered by the
9553         SUBREG, not just all the bytes.
9554         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
9555         original df_ref rather than an extract parameter.
9556         (global_conflicts): Update call accordingly.
9557
9558 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
9559
9560         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
9561         the overflow check to make it easier to read.
9562         (__fixtfdi): Change the type of the ll member in union
9563         long_double to UDItype_x.
9564
9565 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
9566
9567         PR middle-end/34969
9568         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
9569         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
9570         * tree-inline.c (fold_marked_statements): Call
9571         cgraph_update_edges_for_call_stmt if folding a call statement.
9572         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
9573         debug_generic_stmt calls, reset it back afterwards.
9574
9575         PR c/35017
9576         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
9577         static decls.
9578         * c-typeck.c (build_external_ref): Don't pedwarn about
9579         static vars in current function's scope.
9580
9581 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
9582
9583         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
9584
9585 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
9586
9587         PR c/35002
9588         * ipa-struct-reorg.c: Fix spelling.
9589         * params.def: Ditto.
9590
9591 2008-01-29  Richard Guenther  <rguenther@suse.de>
9592
9593         PR middle-end/35006
9594         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
9595         field.
9596         * tree-inline.c (remap_type): Increment remapping_type_depth
9597         around remapping types.
9598         (copy_body_r): Only add referenced variables if they are referenced
9599         from code, not types.
9600
9601 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
9602
9603         PR c++/34055
9604         PR c++/34103
9605         PR c++/34219
9606         PR c++/34606
9607         PR c++/34753
9608         PR c++/34754
9609         PR c++/34755
9610         PR c++/34919
9611         PR c++/34961
9612         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
9613         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
9614
9615 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
9616
9617         PR target/34412
9618         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
9619         pointer for tiny stack.
9620
9621 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
9622
9623         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
9624
9625 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
9626
9627         * config/vx-common.h: Fix typo in comment.
9628
9629 2008-01-28  Ian Lance Taylor  <iant@google.com>
9630
9631         PR c++/34862
9632         PR c++/33407
9633         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
9634         coalesce pointers if they have different DECL_NO_TBAA_P values.
9635         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
9636         between variables with different DECL_NO_TBAA_P values.
9637
9638 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
9639
9640         PR 31535
9641         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
9642         are not legitimate small data references on SPE targets.
9643
9644 2008-01-28  David Daney  <ddaney@avtrex.com>
9645
9646         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
9647
9648 2008-01-28  David Daney  <ddaney@avtrex.com>
9649
9650         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
9651
9652 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
9653
9654         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
9655         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
9656         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
9657         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
9658         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
9659         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
9660         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
9661         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
9662
9663 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9664
9665         * basic-block.h (condjump_equiv_p): Fix comment.
9666
9667 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9668
9669         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
9670         print_generic_stmt_indented): Fix comment.
9671
9672 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
9673
9674         * configure.ac (__stack_chk_fail): Add detecion for availability
9675         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
9676         * configure: Regenerate.
9677
9678 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
9679
9680         PR middle-end/34688
9681         * final.c (output_addr_const): Handle TRUNCATE.
9682
9683 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
9684
9685         PR target/34711
9686         * tree-ssa-loop-ivopts.c (comp_cost): New type.
9687         (zero_cost, infinite_cost): New constants.
9688         (struct cost_pair): Change type of cost to comp_cost.
9689         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
9690         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
9691         New functions.
9692         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
9693         split_address_cost, ptr_difference_cost, difference_cost,
9694         get_computation_cost_at, get_computation_cost,
9695         determine_use_iv_cost_generic, determine_use_iv_cost_address,
9696         determine_use_iv_cost_condition, determine_use_iv_costs,
9697         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
9698         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
9699         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
9700         Change type of cost to comp_cost.
9701         (determine_iv_cost): Increase cost of non-original ivs, instead
9702         of decreasing the cost of original ones.
9703         (get_address_cost): Indicate the complexity of the addressing mode 
9704         in comp_cost.
9705         (try_add_cand_for): Prefer using ivs not specific to some object.
9706         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
9707
9708 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
9709             Janis Johnson  <janis187@us.ibm.com>
9710
9711         PR target/34814
9712         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
9713         (TARGET_INSTANTIATE_DECLS): Likewise.
9714         * target.h (expand_to_rtl_hook): New target hook.
9715         (instantiate_decls): Likewise.
9716         * function.c (instantiate_decl): Make non-static.  Rename to...
9717         (instantiate_decl_rtl): ... this.
9718         (instantiate_expr): Use instantiate_decl_rtl.
9719         (instantiate_decls_1): Likewise.
9720         (instantiate_decls): Likewise.
9721         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
9722         * function.h (instantiate_decl_rtl): Add prototype.
9723         * cfgexpand.c (target.h): New include.
9724         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
9725         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
9726         (TARGET_INSTANTIATE_DECLS): Likewise.
9727         (TARGET_INITIALIZER): New target hooks added.
9728         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
9729         New prototype.
9730         * config/rs6000/rs6000.c (tree-flow.h): New include.
9731         (machine_function): Add sdmode_stack_slot field.
9732         (rs6000_alloc_sdmode_stack_slot): New function.
9733         (rs6000_instantiate_decls): Likewise.
9734         (rs6000_secondary_memory_needed_rtx): Likewise.
9735         (rs6000_check_sdmode): Likewise.
9736         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
9737         (TARGET_INSTANTIATE_DECLS): Likewise.
9738         (rs6000_hard_regno_mode_ok): Allow SDmode.
9739         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
9740         (rs6000_emit_move): Handle SDmode.
9741         (function_arg_advance): Likewise.
9742         (function_arg): Likewise.
9743         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
9744         SDmode var args for 32-bit compiles.
9745         (rs6000_secondary_reload_class): Handle SDmode.
9746         (rs6000_output_function_epilogue): Likewise.
9747         (rs6000_function_value): Simplify if statement.
9748         (rs6000_libcall_value): Likewise.
9749         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
9750         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
9751         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
9752         (movsd_hardfloat): New define_insn.
9753         (movsd_softfloat): Likewise.
9754         (movsd_store): Likewise.
9755         (movsd_load): Likewise.
9756         (extendsddd2): Likewise.
9757         (extendsdtd2): Likewise.
9758         (truncddsd2): Likewise.
9759         (movdd_hardfloat64): Fixup comment.
9760         (UNSPEC_MOVSD_LOAD): New constant.
9761         (UNSPEC_MOVSD_STORE): Likewise.
9762
9763 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
9764
9765         PR c++/34965
9766         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
9767         TRUTH_XOR_EXPR.
9768         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
9769         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
9770         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
9771         and TRUTH_XOR_EXPR.
9772
9773 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
9774
9775         PR target/34794
9776         * config.gcc: Separate AIX 5.3 from AIX 6.1.
9777         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9778         __LONGDOUBLE128 too.
9779         * config/rs6000/aix61.h: New file.
9780
9781 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
9782
9783         PR rtl-optimization/34959
9784         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
9785         popcount and parity rtxes the same mode as their operand.
9786         Truncate or extend the result to the return value's mode
9787         if necessary.
9788
9789 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
9790
9791         PR target/34981
9792         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
9793         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
9794         to GOT_VERSION_REGNUM.
9795         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
9796         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
9797         * config/mips/mips.c (mips_emit_call_insn): New function.
9798         (mips_call_tls_get_addr): Call mips_expand_call directly.
9799         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
9800         emit_call_insn.
9801         (mips16_build_call_stub): Likewise.  Return the call insn or null.
9802         (mips_expand_call): Update the call to mips16_build_call_stub
9803         accordingly and a remove redundant condition.  Assert that MIPS16
9804         stubs do not use lazy binding.  Use mips_emit_call_insn and return
9805         the call insn.
9806         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
9807         TARGET_USE_GOT.
9808         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
9809         (mips_avoid_hazard): Remove hazard_set handling.
9810         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
9811         (UNSPEC_RESTORE_GP): ...this.
9812         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
9813         (FAKE_CALL_REGNO): Rename to...
9814         (GOT_VERSION_REGNUM): ...this.
9815         (type): Add "ghost" value.  Add an associated insn reservation.
9816         (hazard_set): Remove.
9817         (exception_receiver): Rename to...
9818         (restore_gp): ...this and update the unspec identifier accordingly.
9819         (exception_receiver, nonlocal_got_receiver): New expanders.
9820         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
9821         FAKE_CALL_REGNO.  Remove hazard_set attribute.
9822         (set_got_version, update_got_version): New patterns.
9823
9824 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
9825
9826         PR target/34970
9827         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
9828
9829 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
9830
9831         PR other/31955
9832         * doc/install.texi2html: Generate gcc-vers.texi.
9833
9834 2008-01-25  DJ Delorie  <dj@redhat.com>
9835
9836         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9837
9838 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
9839
9840         * config/c4x: Remove directory.
9841         * config.gcc (crx-*, mt-*): Mark obsolete.
9842         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
9843         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
9844         sh-*-rtemscoff*): Remove cases.
9845         * defaults.h (C4X_FLOAT_FORMAT): Remove.
9846         * real.c (encode_c4x_single, decode_c4x_single,
9847         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
9848         c4x_extended_format): Remove.
9849         * real.h (c4x_single_format, c4x_extended_format): Remove.
9850         * doc/extend.texi (interrupt, naked): Remove mention of attributes
9851         on C4x.
9852         (Pragmas): Remove comment about c4x pragmas.
9853         * doc/install.texi (c4x): Remove target-specific instructions.
9854         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
9855         * doc/md.texi (Machine Constraints): Remove C4x documentation.
9856         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
9857         refer to C4x source files as examples.
9858         (C4X_FLOAT_FORMAT): Remove documentation.
9859
9860 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
9861
9862         * config/bfin/bfin.c (override_options): Reorder tests so that
9863         flag_pic gets enabled for -msep-data.
9864
9865 2008-01-25  Richard Guenther  <rguenther@suse.de>
9866
9867         PR middle-end/32244
9868         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
9869         to its bitfield precision if required.
9870
9871 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
9872
9873         PR middle-end/33880
9874         * tree-nested.c (walk_omp_for): New function.
9875         (convert_nonlocal_reference, convert_local_reference): Call
9876         walk_omp_for on OMP_FOR.
9877         (convert_call_expr): Call walk_body on OMP_FOR's
9878         OMP_FOR_PRE_INIT_BODY.
9879
9880 2008-01-25  Richard Guenther  <rguenther@suse.de>
9881
9882         PR tree-optimization/34966
9883         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
9884         default defs and PHI_NODEs we have to insert after the
9885         defining statement.
9886
9887 2008-01-24  Nick Clifton  <nickc@redhat.com>
9888
9889         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
9890         Provide a default definition.
9891         (LIBGCC2_UNITS_PER_WORD): Likewise.
9892
9893         * config/stormy16/stormy16.c: Include df.h for the prototype
9894         for df_regs_ever_live_p.
9895         (xstormy16_expand_builtin_va_start): Convert the stack offset
9896         into a component_ref and then use POINTER_PLUS_EXPR to add it
9897         to the incoming_virtual_args_rtx.
9898         (xstormy16_gimplify_va_arg_expr): Rename to
9899         xstormy16_gimplify_va_arg_expr.
9900         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
9901         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
9902         xstormy16_gimplify_va_arg_expr.
9903         Fix up some formatting issues.
9904
9905         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
9906         Move to predicates.md.
9907         (xs_hi_general_operand): Likewise.
9908         (xs_hi_nonmemory_operand): Likewise.
9909         * config/stormy16/predicates.md:
9910         (xstormy16_carry_plus_operand): New predicate.
9911         (xs_hi_general_operand): New predicate.
9912         (xs_hi_nonmemory_operand): New predicate.
9913         * config/stormy16/stormy16-protos.h:
9914         (xstormy16_carry_plus_operand): Delete prototype.
9915         (xs_hi_general_operand): Likewise.
9916         (xs_hi_nonmemory_operand): Likewise.
9917
9918         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
9919         modifiers as they are no longer needed and they can trigger
9920         reload spill failures.
9921
9922         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
9923         with a match_operand in order to help reload.
9924
9925         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
9926         constraint with 'e' for the 8th alternative as this version of
9927         the mov.w instruction only accepts the lower 8 registers.
9928
9929 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
9930
9931         PR target/34856
9932         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
9933         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
9934         vector elements.
9935
9936 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
9937
9938         PR middle-end/33333
9939         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
9940
9941 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
9942
9943         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
9944         New functions.
9945         (remove_structure): Update allocations list before removing structure.
9946         
9947 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
9948
9949         * ipa-struct-reorg.c (is_safe_cond_expr, 
9950         create_new_stmts_for_cond_expr): Use integer_zerop function,
9951         that recognize not only zero-pointer, but zero-integer too.
9952
9953 2008-01-25  Ben Elliston  <bje@au.ibm.com>
9954
9955         PR other/22232
9956         * fixproto: Escape "." in sed expression that strips leading "./".
9957
9958 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
9959
9960         PR driver/34904
9961         * gcc.c (SWITCH_OK): Removed.
9962         (SWITCH_LIVE): Changed to bit.
9963         (SWITCH_FALSE): Likewise.
9964         (SWITCH_IGNORE): Likewise.
9965         (switchstr): Change live_cond to unsigned int.
9966         (process_command): Replace SWITCH_OK with 0.
9967         (do_self_spec): Likewise.
9968         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
9969         (give_switch): Likewise.
9970         (used_arg): Likewise.
9971         (do_spec_1): Set the SWITCH_IGNORE bit.
9972         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
9973         bits.  Set the SWITCH_LIVE bit.
9974
9975 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
9976
9977         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
9978
9979 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
9980
9981         PR tree-optimization/34472
9982         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
9983         parameter to a "bool *" and set *DATA to false if there is
9984         an unsafe access.  Do not delete the structure here.
9985         (check_cond_exprs): Delete it here instead.
9986         (check_cond_exprs, exclude_cold_structs): Do not increase
9987         I when removing a structure.
9988
9989 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
9990
9991         PR target/34856
9992         * config/i386/i386.c (ix86_expand_vector_init): Consider only
9993         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
9994
9995 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
9996
9997         PR middle-end/34934
9998         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
9999         a fixed vector for stack.
10000
10001 2008-01-24  Ben Elliston  <bje@au.ibm.com>
10002
10003         PR c++/25701
10004         * doc/gcc.texi (Software development): Add a direntry for g++.
10005         
10006 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
10007
10008         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
10009         stale and straggling -fforce-addr comments above.
10010
10011         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
10012         define.
10013         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
10014         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
10015
10016 2008-01-23  Michael Matz  <matz@suse.de>
10017
10018         PR debug/34895
10019         * dwarf2out.c (force_type_die): Use modified_type_die instead of
10020         gen_type_die.
10021
10022 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
10023
10024         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
10025         malloc result type.
10026
10027 2008-01-23 Anatoly Sokolov <aesok@post.ru>
10028
10029         * config/avr/avr.c (avr_current_arch): New variable.
10030         (avr_arch_types): Add 'avr31' and 'avr51' entries.
10031         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
10032         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
10033         (avr_override_options): Init 'avr_current_arch'. 
10034         (base_arch_s): Move from here...
10035         * config/avr/avr.h (base_arch_s): ... here. Add new members 
10036         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
10037         'mega' to 'have_jmp_call'.
10038         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
10039         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
10040         macros.
10041         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
10042         architectures.
10043         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
10044         MULTILIB_MATCHES): (Ditto.).
10045
10046 2008-01-23  Richard Guenther  <rguenther@suse.de>
10047
10048         PR middle-end/31529
10049         * cgraphunit.c (cgraph_reset_node): Always mark the node
10050         not reachable if it is not queued already.
10051
10052 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
10053
10054         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
10055         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
10056         (cputype_selected): New static variable.
10057         (bfin_handle_option): Set it if -mcpu is used.
10058         (override_option): Select default set of workarounds if no cpu type
10059         selected on the command line.
10060         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
10061
10062         From  Michael Frysinger  <michael.frysinger@analog.com>
10063         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
10064         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
10065
10066         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
10067         for bf547, bf523, bf524, and bf526.
10068         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
10069         bf526.
10070         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
10071         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
10072         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
10073         __ADSPBF547__ and __ADSPBF54x__ for bf547.
10074         * doc/invoke.texi (Blackfin Options): Document that
10075         -mcpu now accept bf547, bf523, bf524, and bf526.
10076
10077 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
10078
10079         PR rtl-optimization/34628
10080         * combine.c (try_combine): Stop and undo after the first combination
10081         if an autoincrement side-effect on the first insn has effectively
10082         been lost.
10083
10084 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
10085
10086         PR target/34529
10087         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
10088         Offset addresses are not valid for Altivec or paired float modes.
10089
10090 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
10091
10092         PR c++/34607
10093         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
10094         if DECL_INITIAL (decl) is error_mark_node.
10095
10096         PR c++/34914
10097         * c-common.c (handle_vector_size_attribute): Only allow
10098         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
10099         the same way as pointer, array etc. types.
10100         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
10101
10102         PR c++/34917
10103         * tree.c (build_type_attribute_qual_variant): Call
10104         build_qualified_type if attributes are equal, but quals are not.
10105
10106 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10107
10108         PR 32102
10109         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
10110         * flags.h (warn_strict_aliasing): Remove.
10111         (warn_strict_overflow): Remove.
10112         * opts.c (warn_strict_aliasing): Remove.
10113         (warn_strict_overflow): Remove.
10114         * c-opts.c (c_common_handle_option): -Wall only sets
10115         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
10116         (c_common_post_options): Give default values to -Wstrict-aliasing
10117         and -Wstrict-overflow if they are uninitialized.
10118         * common.opt (Wstrict-aliasing): Specify Var and Init.
10119         (Wstrict-overflow): Likewise.
10120
10121 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
10122
10123         PR rtl-optimization/26854
10124         PR rtl-optimization/34400
10125         PR rtl-optimization/34884
10126         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
10127         DF_RD->gen.
10128         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
10129         (df_rd_bb_info.expanded_lr_out): Deleted
10130         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
10131         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
10132         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
10133         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
10134         Removed code to allocate, initialize or free expanded_lr_out.
10135         (df_rd_bb_local_compute_process_def): Restructured to make more
10136         understandable.
10137         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
10138         sets if the sets are being trimmed.
10139
10140 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
10141
10142         PR bootstrap/32287
10143         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
10144         (as_vers): Likewise.
10145         * configure: Regenerated.
10146
10147 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10148
10149         PR middle-end/33092
10150         * tree-pass.h (pass_build_alias): New pass.
10151         * tree-ssa-alias.c (gate_build_alias): New.
10152         (pass_build_alias): New.
10153         * passes.c (init_optimization_passes): Add pass_build_alias after
10154         pass_create_structure_vars.
10155
10156 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
10157
10158         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
10159         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
10160         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
10161         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
10162         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
10163         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
10164         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
10165         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
10166         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
10167         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
10168         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
10169         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
10170         * config/s390/s390.md (FP_ALL): New mode iterator.
10171         (_d): New mode attribute.
10172         ("*signbit<mode>2>"): Changed mode of first operand.
10173         ("isinf<mode>2"): Changed mode of first operand.
10174         ("*TDC_insn"): Adaptation for DFP modes.
10175
10176 2008-01-22  Ben Elliston  <bje@au.ibm.com>
10177
10178         * tree.c (check_qualified_type): Improve function description.
10179
10180 2008-01-21  Jason Merrill  <jason@redhat.com>
10181
10182         PR c++/34196
10183         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
10184         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
10185         if it is set.
10186
10187 2008-01-21  DJ Delorie  <dj@redhat.com>
10188
10189         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
10190         return zero.
10191
10192 2008-01-21  Richard Guenther  <rguenther@suse.de>
10193
10194         PR middle-end/34856
10195         * tree-cfg.c (verify_expr): Allow all invariant expressions
10196         instead of just constant class ones as reference argument.
10197         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
10198         like any other constant.
10199         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
10200
10201 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
10202
10203         * regmove.c (fixup_match_1): Update call crossed frequencies.
10204
10205 2008-01-21  Richard Guenther  <rguenther@suse.de>
10206
10207         PR c/34885
10208         * tree-inline.c (setup_one_parameter): Deal with mismatched
10209         types using a VIEW_CONVERT_EXPR.
10210
10211 2008-01-21  Alon Dayan  <alond@il.ibm.com>
10212             Olga Golovanevsky  <olga@il.ibm.com>
10213         
10214         PR tree-optimization/34701
10215         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
10216         when the structure size is not a power of 2.
10217
10218 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
10219
10220         * doc/install.texi: Add doc for --enable-checking=df.
10221         
10222 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10223
10224         PR rtl-optimization/34808
10225         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
10226
10227 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
10228
10229         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
10230         input.
10231
10232 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
10233
10234         PR rtl-optimization/26854
10235         PR rtl-optimization/34400
10236         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
10237         DF_RD->gen.
10238         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
10239         (df_rd_bb_info.expanded_lr_out): New.
10240         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
10241         * loop_iv.c (iv_analysis_loop_init): Ditto.
10242         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
10243         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
10244         Added code to allocate, initialize or free expanded_lr_out.
10245         (df_rd_bb_local_compute_process_def): Restructured to make
10246         more understandable.
10247         (df_rd_confluence_n): Add code to do nothing with fake edges and
10248         code to no apply invalidate_by_call sets if the sets are being trimmed.
10249         (df_lr_local_finalize): Renamed to df_lr_finalize.
10250         (df_live_local_finalize): Renamed to df_live_finalize.
10251
10252 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
10253
10254         PR target/34831
10255         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
10256         deciding whether to use reciprocal instructions.
10257
10258 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
10259
10260         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
10261         dwarf2out_note_section_used if cold_text_section is NULL.
10262
10263 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
10264
10265         PR gcov-profile/34610
10266         * tree-cfg.c (make_edges): Mark both outgoing edges from
10267         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
10268         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
10269         from OMP_FOR and OMP_CONTINUE outgoing edges.
10270
10271         * tree-profile.c (tree_profiling): Return early if
10272         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
10273         at the end.
10274         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
10275         from cfun to child_cfun.
10276         * function.h (struct function): Add after_tree_profile bit.
10277
10278 2008-01-19 Anatoly Sokolov <aesok@post.ru>
10279
10280         * config/avr/avr.S (_exit): Disable interrupt.
10281
10282 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
10283             Steven Bosscher  <stevenb.gcc@gmail.com>
10284
10285         PR rtl-optimization/26854
10286         PR rtl-optimization/34400
10287         * df-problems.c (df_live_scratch): New scratch bitmap.
10288         (df_live_alloc): Allocate df_live_scratch when doing df_live.
10289         (df_live_reset): Clear the proper bitmaps.
10290         (df_live_bb_local_compute): Only process the artificial defs once
10291         since the order is not important.
10292         (df_live_init): Init the df_live sets only with the variables
10293         found live by df_lr.
10294         (df_live_transfer_function): Use the df_lr sets to prune the
10295         df_live sets as they are being computed.  
10296         (df_live_free): Free df_live_scratch.
10297
10298 2008-01-18  Ian Lance Taylor  <iant@google.com>
10299
10300         * common.opt: Add fmerge-debug-strings.
10301         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
10302         flag_merge_debug_strings rather than flag_merge_constants.
10303         * doc/invoke.texi (Option Summary): Mention
10304         -fmerge-debug-strings.
10305         (Debugging Options): Document -fmerge-debug-strings.
10306
10307 2008-01-18  Ian Lance Taylor  <iant@google.com>
10308
10309         PR c++/33407
10310         * tree.h (DECL_IS_OPERATOR_NEW): Define.
10311         (struct tree_function_decl): Add new field operator_new_flag.
10312         * tree-inline.c (expand_call_inline): When inlining a call to
10313         operator new, force the return value to go into a variable, and
10314         set DECL_NO_TBAA_P on that variable.
10315         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
10316
10317 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
10318
10319         PR debug/34484
10320         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
10321         DWARF2_DEBUGGING_INFO.
10322         (dwarf2out_note_section_used): Ditto.  Add prototype.
10323         (have_multiple_function_sections, text_section_used,
10324         cold_text_section_used, *cold_text_sections): Move declarations
10325         before their uses.
10326
10327 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
10328
10329         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
10330         field and add signal_ra.
10331         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
10332         assignments to frame state pc.  Move end of stack check after
10333         MD_FALLBACK_FRAME_STATE_FOR.
10334         (uw_update_context_1): Use frame state signal_regs if set, instead
10335         of checking signal_frame flag.
10336         (uw_update_context): Use frame state signal_ra if set.
10337         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
10338         * config/xtensa/linux-unwind.h: New file.
10339
10340 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
10341
10342         * modulo-sched.c (get_sched_window): Fix comment typo.
10343
10344 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
10345
10346         PR tree-optimization/34648
10347         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
10348
10349 2008-01-17  Anatoly Sokolov <aesok@post.ru>
10350
10351         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
10352         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
10353
10354 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
10355
10356         PR rtl-optimization/34400
10357         * df-core.c (df_worklist_dataflow_overeager,
10358         df_worklist_dataflow_doublequeue): New functions.
10359         (df_worklist_dataflow): Two different worklist solvers.
10360         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
10361         New param.
10362
10363 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10364
10365         PR testsuite/34821
10366         * doc/invoke.texi: Document the dependence on pthread for fopenmp
10367         and ftree-parallelize-loops.
10368
10369 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
10370
10371         PR rtl-optimization/34826
10372         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
10373
10374 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
10375
10376         * global.c (find_reg): Mark the eh regs as used if necessary.
10377         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
10378         * ra.h (struct allocno): no_eh_reg field added.  Changed
10379         no_stack_reg type to bitfield.
10380
10381 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
10382
10383         * tree.c (substitute_in_expr): Add missing 'break'.
10384
10385 2008-01-17  Richard Guenther  <rguenther@suse.de>
10386
10387         PR tree-optimization/34825
10388         * tree-ssa-math-opts.c (is_division_by): Do not recognize
10389         x / x as division to handle.
10390
10391 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10392
10393         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
10394         "-pthread" is specified.
10395         * pa-hpux11.h (LIB_SPEC): Likewise.
10396
10397 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
10398             Peter Bergner  <bergner@vnet.ibm.com>
10399
10400         PR rtl-optimization/33796
10401         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
10402
10403 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10404
10405         PR libgfortran/34699
10406         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
10407         static links.
10408         * pa-hpux10.h (LINK_SPEC): Likewise.
10409         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
10410
10411 2008-01-16  Richard Guenther  <rguenther@suse.de>
10412
10413         PR middle-end/32628
10414         * fold-const.c (fold_convert_const_int_from_int): Do not
10415         set overflow if that occured only because of a sign extension
10416         change when converting from/to a sizetype with the same
10417         precision and signedness.
10418
10419 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
10420
10421         PR debug/34249
10422         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
10423         location address to the correct place.  Update copyright year.
10424
10425 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10426
10427         * lambda-code.c (lambda_transform_legal_p): Handle the case of
10428         no dependences in the dependence_relations vector.
10429
10430 2008-01-16  Jan Hubicka  <jh@suse.cz>
10431
10432         PR rtl-optimization/31396
10433         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
10434         * cfg.c (dump_reg_info): Print it.
10435         * regs.h (struct reg_info_t): add freq_calls_crossed.
10436         (REG_FREQ_CALLS_CROSSED): New macro.
10437         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
10438         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
10439         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
10440         regmove_optimize): Update call crossed frequencies.
10441         * local-alloc.c (struct qty): Add freq_calls_crossed.
10442         (alloc_qty): Copute freq_calls_crossed.
10443         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
10444         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
10445         * ra.h (struct allocno): Add freq_calls_crossed.
10446
10447 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10448
10449         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
10450         libgomp when compiling with ftree-parallelize-loops.
10451         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
10452
10453 2008-01-16  Richard Guenther  <rguenther@suse.de>
10454
10455         PR tree-optimization/34769
10456         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
10457         * tree.c (int_cst_value): Instead make this function more
10458         permissive in what it accepts as valid input.  Document this
10459         function always sign-extends the value.
10460
10461 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
10462             Richard Guenther  <rguenther@suse.de>
10463
10464         PR c/34668
10465         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
10466         (gimple_fold_indirect_ref_rhs): ... this.
10467         (gimple_fold_indirect_ref): New function with foldings
10468         that preserve lvalueness.
10469         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
10470         * tree-flow.h (gimple_fold_indirect_ref): Declare.
10471         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
10472         to fold an INDIRECT_REF, fall back to the old use of
10473         fold_indirect_ref_1.
10474
10475 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10476
10477         * tree-data-ref.c (subscript_dependence_tester_1): Call 
10478         free_conflict_function.
10479         (compute_self_dependence): Same.
10480
10481 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
10482
10483         PR debug/34249
10484         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
10485         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
10486         function global.
10487         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
10488         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
10489         for DWARF2_UNWIND_INFO targets.
10490
10491 2008-01-16  Richard Guenther  <rguenther@suse.de>
10492
10493         PR c/34768
10494         * c-typeck.c (common_pointer_type): Do not merge inconsistent
10495         type qualifiers for function types.
10496
10497 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
10498
10499         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
10500         loop_iterator li from previous commit.
10501
10502 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
10503
10504         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
10505
10506 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
10507
10508         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
10509         (parallelize_loops): Don't parallelize irreducible components.
10510
10511 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10512
10513         PR c++/24924
10514         * c-opts (c_common_post_options): Do not enable CPP
10515         flag_pedantic_errors by default.
10516         
10517 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
10518
10519         PR rtl-optimization/31944
10520         * cse.c (remove_pseudo_from_table): New function.
10521         (merge_equiv_classes): Use above function to remove pseudo-registers.
10522         (invalidate): Likewise.
10523
10524 2008-01-13  Richard Guenther  <rguenther@suse.de>
10525
10526         PR middle-end/34601
10527         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
10528         instead of TYPE_MODE to deal with calls from expand_one_error_var.
10529
10530 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
10531
10532         * gcse.c (cprop_jump): Call validate_unshare_change instead of
10533         validate_change to unshare the source of the PC set.
10534
10535 2008-01-12  Jan Hubicka  <jh@suse.cz>
10536
10537         PR middle-end/32135
10538         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
10539         references above array bounds.  This might trigger bounds checks for
10540         pointers to arrays.
10541
10542 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
10543
10544         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
10545         new_replaceable_dependencies.
10546
10547 2008-01-12  Doug Kwan  <dougkwan@google.com>
10548
10549         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
10550         instead of OPT_Wreturn_type in warning due to ignored return type
10551         qualifiers.
10552         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
10553         options included in -Wextra.
10554         * c.opt: New option -Wignored_qualifiers.
10555         * doc/invoke.texi (Warning Options, -Wextra): Add new option
10556         -Wignore_qualifiers.
10557         (-Wignored-qualifiers): Document.
10558         (-Wreturn-type): Remove description of functionality now handled
10559         by -Wignored-qualifiers.
10560
10561 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
10562
10563         PR ada/33788
10564         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
10565         NOP_EXPR if it is between integral types with the same precision.
10566
10567 2008-01-12  Jan Hubicka  <jh@suse.cz>
10568
10569         PR other/28023
10570         * invoke.texi (max-inline-recursive-depth): Fix default value.
10571
10572 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
10573
10574         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
10575         correct type.
10576
10577 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
10578         
10579         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
10580         
10581 2008-01-11  James E. Wilson  <wilson@specifix.com>
10582
10583         PR target/26015
10584         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
10585
10586 2008-01-11  Anatoly Sokolov <aesok@post.ru>
10587
10588         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
10589         save/restore frame pointer register and don't use 'call-prologues' 
10590         optimization in function with "OS_task" attribute.
10591
10592 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
10593
10594         PR middle-end/31309
10595         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
10596         when copying to memory.
10597
10598 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
10599
10600         PR rtl-optimization/30905
10601         * cfgcleanup.c: Include dce.h
10602         (crossjumps_occured): New global variable.
10603         (try_crossjump_bb): Exit loop after finding a fallthru edge.
10604         If something changed, set crossjumps_occured to true.
10605         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
10606         Don't add/remove fake edges to exit here...
10607         (cleanup_cfg): ...but do it here, when crossjumping.
10608         Run a fast DCE when successful crossjumps occured in the latest
10609         iteration of try_optimize_cfg.
10610
10611 2008-01-11  Richard Guenther  <rguenther@suse.de>
10612
10613         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
10614         (struct vn_unary_op_s): Likewise.
10615         (vn_reference_insert): Free old reference on hash collision.
10616
10617 2008-01-10  Raksit Ashok  <raksit@google.com>
10618
10619         PR rtl-optimization/27971
10620         * combine.c (find_split_point): Split PLUS expressions which are
10621         inside a MEM rtx, and whose first operand is complex.
10622
10623 2008-01-10  DJ Delorie  <dj@redhat.com>
10624
10625         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
10626         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
10627         (m32c_hard_regno_ok): Call the underlying function.
10628
10629 2008-01-10  Richard Guenther  <rguenther@suse.de>
10630
10631         PR middle-end/34683
10632         * tree-cfg.c (tree_merge_blocks): Do not go through the
10633         full-blown folding and stmt updating path if we just deal
10634         with virtual operands.
10635         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
10636         test for abnormal SSA_NAMEs.
10637
10638 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10639
10640         PR middle-end/34641
10641         * reload.c (push_reload): Add assertions.  All constants from
10642         reg_equiv_constant should have been used for replacing the respective
10643         pseudo earlier.
10644         (find_reloads_address): Invoke find_reloads_address_part for
10645         constant taken from the reg_equiv_constant array.
10646
10647 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
10648
10649         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
10650         field (valnum) the first in the struct.  Replace bools with
10651         unit bit fields.
10652
10653 2008-01-10  Richard Guenther  <rguenther@suse.de>
10654
10655         PR tree-optimization/34651
10656         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
10657         types and ordering for masking and converting.
10658
10659 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
10660
10661         PR tree-optimization/34017
10662         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
10663         also for PHI_NODE expressions.
10664
10665 2008-01-09  Jan Hubicka  <jh@suse.cz>
10666
10667         PR tree-optimization/34708
10668         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
10669         based on number of case labels.
10670         (init_inline_once): Remove switch_cost.
10671         * tree-inline.h (eni_weights_d): Remove switch_cost.
10672
10673 2008-01-09  Richard Guenther  <rguenther@suse.de>
10674         Andrew Pinski  <andrew_pinski@playstation.sony.com>
10675
10676         PR middle-end/30132
10677         * gimplify.c (gimplify_cond_expr): Do not create an addressable
10678         temporary if an rvalue is ok or an lvalue is not required.
10679
10680 2008-01-09  Richard Guenther  <rguenther@suse.de>
10681
10682         PR middle-end/34458
10683         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
10684         adjust return type.
10685
10686 2008-01-09  Richard Guenther  <rguenther@suse.de>
10687
10688         PR middle-end/34679
10689         * tree.c (host_integerp): Check for sizetype only if the
10690         type is an integer type.
10691
10692 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
10693
10694         PR debug/26364
10695         * opts.c (decode_options): Disable inlining of functions called
10696         once if not in unit-at-a-time mode.
10697
10698 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
10699
10700         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
10701
10702 2008-01-08  Richard Guenther  <rguenther@suse.de>
10703
10704         PR middle-end/31863
10705         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
10706         out early if the result will be unused.
10707
10708 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
10709
10710         PR target/34709
10711         Revert:
10712
10713         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10714         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10715         for TARGET_RECIP.       
10716         
10717 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
10718         
10719         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
10720         for vectorization tuned.
10721         
10722 2008-01-08  Richard Guenther  <rguenther@suse.de>
10723
10724         PR tree-optimization/34683
10725         * tree-ssa-operands.c (operand_build_cmp): Export.
10726         * tree-ssa-operands.h (operand_build_cmp): Declare.
10727         * tree-vn.c (vuses_compare): Remove.
10728         (sort_vuses): Use operand_build_cmp.
10729         (sort_vuses_heap): Likewise.
10730         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
10731         to re-use old VEC if available.  Do not sort already sorted VUSEs.
10732         (vdefs_to_vec): Do not sort already sorted VDEFs.
10733
10734 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
10735
10736         PR middle-end/34694
10737         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
10738
10739 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
10740
10741         PR target/34702
10742         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
10743         limitations of reciprocal sequences on x86 targets.
10744
10745 2008-01-08  Richard Guenther  <rguenther@suse.de>
10746
10747         PR tree-optimization/34683
10748         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
10749
10750 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
10751
10752         PR target/34622
10753         * config/darwin.c (darwin_mergeable_string_section): Don't use
10754         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
10755
10756 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
10757
10758         PR target/34682
10759         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
10760         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
10761         predicates of op0 and op1 to register_operand.
10762         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
10763         expander using X87MODEF mode iterator.  Change predicates of
10764         op0 and op1 to register_operand.
10765         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
10766         corresponding patterns and macroize using MODEF macro.  Change
10767         predicates of op0 and op1 to register_operand and remove
10768         "m" constraint. Disparage "r" alternative with "!".
10769         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
10770         macroize using X87MODEF macro.  Change predicates of op0 and op1
10771         to register_operand and remove "m" constraint.  Disparage "r"
10772         alternative with "!".
10773         (absneg splitter with memory operands): Remove.
10774         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
10775         patterns and macroize using X87MODEF mode iterator.
10776         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
10777         Change predicate of op1 to register_operand.
10778         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
10779         for memory operands.
10780
10781 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
10782
10783         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
10784
10785 2008-01-07  Richard Guenther  <rguenther@suse.de>
10786
10787         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
10788         fields.
10789
10790 2008-01-07  Richard Guenther  <rguenther@suse.de>
10791
10792         PR tree-optimization/34683
10793         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
10794         VOPs of the needed size to save memory.  Use VEC_quick_push
10795         to save compile-time.
10796         (vdefs_to_vec): Likewise.
10797
10798 2008-01-07  Sa Liu  <saliu@de.ibm.com>
10799
10800         * config/spu/spu.md (divdf3): Genetate inline code for double
10801         division.  The implementation doesn't handle INF or NAN, therefore it
10802         only applies when -ffinite-math-only is given.
10803
10804 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
10805
10806         PR libstdc++/34680
10807         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
10808         * doc/cpp.texi ([Common Predefined Macros]): Document.
10809
10810 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
10811
10812         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
10813         order to use commutative addition instead of subtraction.
10814
10815 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10816             Mircea Namolaru  <namolaru@il.ibm.com>
10817             Vladimir Yanovsky  <yanov@il.ibm.com>
10818             Revital Eres  <eres@il.ibm.com>
10819
10820         PR tree-optimization/34263
10821         * tree-outof-ssa.c (process_single_block_loop_latch,
10822         contains_tree_r): New functions.
10823         (analyze_edges_for_bb): Call process_single_block_loop_latch
10824         function to empty single-basic-block latch block if possible.
10825
10826 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10827
10828         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
10829         for TARGET_RECIP.
10830         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
10831
10832 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
10833
10834         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
10835
10836 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
10837
10838         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
10839
10840 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
10841
10842         PR tree-optimization/34618
10843         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
10844         flag from T.
10845
10846 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
10847
10848         PR target/34673
10849         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
10850         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
10851         Update copyright year.
10852
10853         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
10854         Update copyright year.
10855         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
10856         using NR fixup.
10857
10858 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
10859
10860         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
10861         edge does not point to current bb before changing need_assert.
10862
10863 2008-01-04  Richard Guenther  <rguenther@suse.de>
10864
10865         PR middle-end/34029
10866         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
10867         for verifying purposes if they are is_gimple_min_invariant.
10868
10869 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
10870
10871         PR tree-optimization/34448
10872         PR tree-optimization/34465
10873         * gimplify.c (gimplify_init_constructor): Add new parameter
10874         notify_temp_creation.  Use it.
10875         (gimplify_modify_expr_rhs): Take volatiles into account when
10876         optimizing constructors.
10877         Do not optimize constructors if gimplify_init_constructor will dump to
10878         memory.
10879         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
10880         * gcc.c-torture/compile/pr34448.c: New.
10881
10882 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
10883
10884         PR gcov-profile/34609
10885         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
10886         return_slot if result is TREE_ADDRESSABLE.
10887
10888 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
10889
10890         * config/mips/mips.md (sqrt_condition): Tweak comment.
10891         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
10892
10893 2008-01-03  Tom Tromey  <tromey@redhat.com>
10894
10895         PR c/34457
10896         * c-common.c (c_type_hash): Handle VLAs.
10897
10898 2008-01-03  Jan Hubicka  <jh@suse.cz>
10899
10900         PR tree-optimization/31081
10901         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
10902         0 when inlining and not inlining to first basic block.
10903         (remap_decl): When var is initialized to 0, don't set default_def.
10904         (expand_call_inline): Set entry_bb.
10905         * tree-inline.h (copy_body_data): Add entry_bb.
10906
10907 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
10908
10909         PR c++/34619
10910         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
10911         before returning.
10912
10913         PR tree-optimization/29484
10914         * tree-inline.c (inline_forbidden_p_2): New function.
10915         (inline_forbidden_p): Disallow inlining if some static var
10916         has an address of a local LABEL_DECL in its initializer.
10917         * doc/extend.texi (Labels as Values): Document &&foo behaviour
10918         vs. inlining.
10919
10920 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
10921
10922         PR tree-optimization/34635
10923         * tree-data-ref.c (add_other_self_distances): Make sure that the
10924         evolution step is constant.
10925
10926 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
10927
10928         PR middle-end/34608
10929         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
10930
10931 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
10932
10933         * tree-sra.c (scalarize_init): Insert the generate_element_init
10934         statements after the generate_element_zero statements.
10935
10936 2008-01-02  Richard Guenther  <rguenther@suse.de>
10937
10938         PR middle-end/34093
10939         PR middle-end/31976
10940         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
10941         for very large number of operands instead of ICEing.
10942
10943 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
10944
10945         PR target/34013
10946         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
10947         while stack probing.
10948
10949 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
10950
10951         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
10952         in C++0x mode.
10953
10954 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
10955
10956         PR libmudflap/26442
10957         * tree-mudflap.c (mx_register_decls): Guard warning by
10958         !DECL_ARTIFICIAL check.
10959
10960 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
10961
10962         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
10963         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
10964         sse5_perm<mode>): Fix constraints.