OSDN Git Service

* config/i386/i386.md (*jcc_fused_1): Handle all valid compare
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
2
3         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4         operators for "test" insn.  Macroize insn using SWI mode macro.
5         (*jcc_fused_2): Ditto.
6         (*jcc_fused_3): Macroize insn using SWI mode macro.
7         (*jcc_fused_4): Ditto.
8
9 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
10
11         * tree-ssa-pre.c: Fix typo in comment.
12         (init_antic, fini_antic): Add explicit funtions for
13         initializing and deinitializing ANTIC and AVAIL sets.
14         (create_expression_by_pieces): Fix typo in comment.
15         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
16         (execute_pre): Eventually dump details about ANTIC_IN.
17
18 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19
20         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
21         * gcc.c (translate_options, init_spec, store_arg, read_specs,
22         add_to_obstack, file_at_path, find_a_file, execute,
23         add_preprocessor_option, add_assembler_option, add_linker_option,
24         process_command, insert_wrapper, do_option_spec, do_self_spec,
25         spec_path, do_spec_1, is_directory, main, used_arg,
26         getenv_spec_function): Likewise.
27         * tlink.c (symbol_hash_lookup, file_hash_lookup,
28         demangled_hash_lookup, symbol_push, file_push, frob_extension):
29         Likewise.
30
31 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
32
33         * doc/rtl.texi: Updated subreg section.
34
35 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
36
37         PR c++/36523
38         * cgraphunit.c (cgraph_process_new_functions): Don't clear
39         node->needed and node->reachable.
40         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
41         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
42         (expand_task_call): Don't call expand_task_copyfn.
43         (expand_task_copyfn): Renamed to...
44         (finalize_task_copyfn): ... this.
45
46 2008-06-19  Jan Hubicka  <jh@suse.cz>
47
48         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
49         clobbering framepointer.
50
51 2008-06-19  Jan Hubicka  <jh@suse.cz>
52
53         * tree-optimize.c (execute_early_local_optimizations): Set
54         cgraph_state only at first invocation.
55
56 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
57
58         * system.h (-Wc++-compat): Activate as a warning, no an error.
59
60 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
61
62         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
63         instead of "#" in insn asm template.
64         (*jcc_fused_2): Ditto.
65
66 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
67
68         * config/i386/i386.h (ix86_tune_indices)
69         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
70         (TARGET_FUSE_CMP_AND_BRANCH): New define.
71         * config/i386/i386.md (*jcc_fused_1): New insn pattern
72         (*jcc_fused_2): Ditto.
73         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
74         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
75         (print operand): Handle 'E' and 'e' code.
76
77 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
78
79         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
80         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
81         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
82
83 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
84
85         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
86         node->decl.
87         (cgraph_expand_function): Use local copy of decl.
88         (cgraph_expand_all_functions): Remove redundant initialization of
89         order_pos.
90         (cgraph_optimize): Reword internal_error message.
91
92 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
93
94         * arm-protos.h (arm_return_in_memory): Remove public
95         arm_return_in_memory() prototype.
96         * arm.c (arm_return_in_memory): Add static prototype, add target
97         hook macro, change definition and comments.
98         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
99
100 2008-06-19  Ben Elliston  <bje@au.ibm.com>
101
102         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
103         real.c: Remove references to IEEE 754R.
104         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
105         * doc/libgcc.texi (Decimal float library routines): Likewise.
106
107 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
108
109         * targhooks.h (struct gcc_target): New member unwind_word_mode.
110         (default_unwind_word_mode): Add prototype.
111         * targhooks.c (default_unwind_word_mode): New function.
112         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
113         instead of word_mode.
114         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
115         (TARGET_INITIALIZER): Use it.
116
117         * c-common.c (handle_mode_attribute): Support "unwind_word"
118         mode attribute.
119         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
120
121         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
122         word_mode to access SjLj_Function_Context member "data".
123         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
124         conversion from targetm.eh_return_filter_mode () to
125         targetm.unwind_word_mode () if they differ.
126
127         * builtin-types.def (BT_UNWINDWORD): New primitive type.
128         (BT_FN_UNWINDWORD_PTR): New function type.
129         (BT_FN_WORD_PTR): Remove.
130         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
131         * except.c (expand_builtin_extend_pointer): Convert pointer to
132         targetm.unwind_word_mode () instead of word_mode.
133
134         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
135         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
136         (spu_unwind_word_mode): New function.
137         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
138         (TARGET_UNWIND_WORD_MODE): Define.
139         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
140
141 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
142
143         * config/spu/spu.c (reg_align): Remove.
144         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
145         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
146         (spu_split_store): Likewise.
147
148 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
149
150         * gcc/tree-vn.c: Fix typo in comment.
151
152 2008-06-18  Jan Hubicka  <jh@suse.cz>
153
154         * cgraphunit.c (cgraph_optimize): Output debug info when doing
155         toplevel reorder too.
156
157 2008-06-18  Jan Hubicka  <jh@suse.cz>
158
159         * c-opts.c (c_common_post_options): PCH is not compatible with
160         no-unit-at-a-time.
161         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
162         -fno-toplevel-reorder by default now.
163
164 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
165
166         PR documentation/30739
167         * doc/install.texi (Prerequisites): Document dependency on awk.
168
169 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
170             Ian Lance Taylor  <iant@google.com>
171
172         PR rtl-optimization/35604
173         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
174         only want to change jump destinations, not eventual label comparisons.
175
176 2008-06-16  Jan Hubicka  <jh@suse.cz>
177
178         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
179         syntax errors.
180         (cgraph_analyze_function): Likewise.
181
182 2008-06-16  Jan Hubicka  <jh@suse.cz>
183
184         * cgraph.h (cgraph_mark_if_needed): New function.
185         * cgraphunit.c (cgraph_mark_if_needed): New function.
186         * c-decl.c (duplicate_decl): Use it.
187
188 2008-06-16  Jan Hubicka  <jh@suse.cz>
189
190         * cgraph.c (cgraph_add_new_function): When in expansion state, do
191         lowering.
192
193 2008-06-16  Jan Hubicka  <jh@suse.cz>
194
195         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
196
197 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
198             Kazu Hirata  <kazu@codesourcery.com>
199             Maxim Kuvyrkov  <maxim@codesourcery.com
200
201         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
202         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
203         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
204         EXTRA_SPEC_FUNCTIONS.
205         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
206         (DRIVER_SELF_SPECS): Adjust.
207         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
208         * config/mips/st.h, config/mips/t-st: New.
209         * config/mips/driver-native.c, config/mips/x-native: New.
210         * doc/invoke.texi (MIPS): Document 'native' value for -march and
211         -mtune options.
212
213 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
214
215         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
216         from it.
217         (ISA_HAS_FP_CONDMOVE): New macro.
218         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
219         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
220         (ISA_HAS_NMADD3_NMSUB3): New macro.
221         * config/mips/mips.c (mips_rtx_costs): Update.
222         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
223         compiling for ST Loongson 2E/2F.
224         (madd<mode>): Rename to madd4<mode>.  Update.
225         (madd3<mode>): New pattern.
226         (msub<mode>): Rename to msub4<mode>.  Update.
227         (msub3<mode>): New pattern.
228         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
229         (nmadd3<mode>): New pattern.
230         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
231         (nmadd3<mode>_fastmath): New pattern.
232         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
233         (nmsub3<mode>): New pattern.
234         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
235         (nmsub3<mode>_fastmath): New pattern.
236         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
237
238 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
239
240         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
241         (DF_REF_INSN_INFO): New.
242         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
243         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
244         with a NULL DF_REF_INSN_INFO.
245         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
246         DF_INSN_SET.
247         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
248         DF_INSN_INFO_EQ_USES): New.
249         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
250         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
251         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
252         * df-core.c: Update comment for above changes.
253         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
254         DF_INSN_UID_* macros.
255         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
256         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
257         insn rtx.  Update all callers.
258         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
259         df_ref_create_structure, df_insn_refs_collect): Likewise.
260         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
261         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
262         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
263         macros to access the insn refs.
264         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
265         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
266         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
267         for accessing the refs.
268         (try_fwprop_subst): Likewise.
269         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
270         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
271         for accessing the refs.
272         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
273         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
274         to look at the insn refs.
275         (record_uses): Likewise.
276         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
277         function anymore.
278         (mark_artificial_uses): Don't mark_insn for artificial refs.
279         (mark_reg_rependencies): Likewise.
280
281         * doc/rtl.texi: Remove documentation of ADDRESSOF.
282
283 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
284
285         * configure: Regenerate.
286
287 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
288
289         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
290         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
291         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
292
293 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
294
295         * config/avr/avr.c (avr_mcu_t): Add attiny167.
296         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
297         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
298
299 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
300
301         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
302         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
303         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
304
305 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
306
307         * tree-ssa-sccvn.c: Fix format of comments.
308
309 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
310
311         * cgraph.c: Remove unneeded forward declarations of eq_node()
312         and hash_node().
313
314 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
315
316         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
317         REG_RETVAL notes.
318         (see_update_relevancy): Likewise.
319         * fwprop.c (try_fwprop_subst): Likewise.
320         * rtlanal.c (noop_move_p): Likewise.
321         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
322         notes to non-existing libcall blocks.
323         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
324         Remove orig_set.
325         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
326         (dead_libcall_p): Remove.
327         (delete_trivially_dead_insns): Don't use it.
328         * web.c (union_defs): Remove comment about keeping nops.
329         * gcse.c (hash_scan_insn): Don't take libcall pointers.
330         (compute_hash_table_work): Don't track libcall notes.
331         (do_local_cprop): Don't take libcall pointers.  Don't update
332         libcall notes.
333         (adjust_libcall_notes): Deleted.
334         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
335         ever have existed in the first place).
336         (replace_store_insn): Don't try to remove libcall notes.
337         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
338         (resolve_reg_notes): Don't call them.
339         (resolve_simple_move): Likewise.
340         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
341         Don't remove REG_RETVAL notes.
342         * emit-rtl.c (try_split): Don't update libcall notes.
343         (emit_copy_of_insn_after): Dito.
344         * cselib.c (cselib_current_insn_in_libcall): Remove.
345         (cselib_process_insn): Don't set/clear it.
346         (new_elt_loc_list): Don't record it.
347         (cselib_init): Don't initialize it.
348         * cselib.c (struct elt_loc_list): Remove in_libcall field.
349         * loop-invariant.c (find_invariant_insn): Don't look for libcall
350         notes.
351         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
352         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
353         (init_deps): Don't initialize it.
354         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
355         * combine.c (delete_noop_moves): Don't update libcall notes.
356         (can_combine_p): Remove now pointless #if 0 block.
357         (try_combine): Remove another obsolete #if 0 block.
358         (distribute_notes): Don't distribute libcall notes.
359         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
360         * dce.c (libcall_dead_p): Remove.
361         (delete_unmarked_insns): Don't handle libcall blocks.
362         (preserve_libcall_for_dce): Remove.
363         (prescan_insns_for_dce): Don't special-case libcall block insns.
364         * reload1 (reload): Don't handle libcall notes. 
365         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
366         documentation.
367
368 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
369
370         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
371         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
372         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
373
374 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
375
376         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
377         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
378         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
379
380 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
381
382         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
383
384 2008-06-16  Ira Rosen  <irar@il.ibm.com>
385
386         PR tree-optimization/36493
387         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
388         the arguments list. Use VECTYPE to create vector pointer.
389         (vectorizable_store): Fail if accesses through a pointer to vectype
390         do not alias the original memory reference operands.
391         Call vect_create_data_ref_ptr without the removed argument.
392         (vectorizable_load): Likewise.
393         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
394         removed argument.
395
396 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
397
398         PR target/36336
399         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
400         reg_equiv_constant.
401
402 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
403
404         * config/mips/loongson2ef.md: New file.
405         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
406         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
407         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
408         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
409         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
410         and loongson_2f.
411         (loongson2ef.md): New include.
412         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
413         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
414         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
415         (loongson_gt_<mode>, loongson_extract_halfword)
416         (loongson_insert_halfword_0, loongson_insert_halfword_2)
417         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
418         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
419         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
420         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
421         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
422         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
423         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
424         (vec_interleave_low<mode>): Define type attribute.
425         * config/mips/mips.c (mips_ls2): New static variable.
426         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
427         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
428         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
429         Implement target scheduling hooks.
430         (mips_multipass_dfa_lookahead): Update to handle tuning for
431         Loongson 2E/2F.
432         (mips_sched_init): Initialize data for Loongson scheduling.
433         (mips_ls2_variable_issue): New static function.
434         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
435         Add sanity check.
436         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
437         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
438         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
439         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
440         Handle ST Loongson 2E/2F cores.
441         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
442
443 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
444
445         * omp-low.c (extract_omp_for_data): Fix comment typo.
446         * c.opt: Fix typo.
447
448 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
449
450         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
451         FIXME note about gcc/config.guess.
452         * doc/options.texi (Option file format): Remove non-ASCII bytes.
453         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
454         * doc/cppopts.texi: Likewise.
455         * doc/extend.texi: Likewise.
456         * doc/gcc.texi: Likewise.
457         * doc/gccint.texi: Likewise.
458         * doc/gcov.texi: Likewise.
459         * doc/gty.texi: Likewise.
460         * doc/hostconfig.texi: Likewise.
461         * doc/install.texi: Likewise.
462         * doc/invoke.texi: Likewise.
463         * doc/loop.texi: Likewise.
464         * doc/makefile.texi: Likewise.
465         * doc/md.texi: Likewise.
466         * doc/passes.texi: Likewise.
467         * doc/tm.texi: Likewise.
468         * doc/tree-ssa.texi: Likewise.
469         * doc/trouble.texi: Likewise.
470
471 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
472             Nathan Sidwell  <nathan@codesourcery.com>
473             Maxim Kuvyrkov  <maxim@codesourcery.com>
474             Richard Sandiford  <rdsandiford@googlemail.com>
475         
476         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
477         * config/mips/mips-protos.h (mips_expand_vector_init): New.
478         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
479         builtins.
480         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
481         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
482         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
483         V8QImode cases.
484         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
485         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
486         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
487         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
488         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
489         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
490         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
491         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
492         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
493         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
494         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
495         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
496         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
497         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
498         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
499         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
500         (mips_builtins): Add Loongson builtins.
501         (mips_loongson_2ef_bdesc): New.
502         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
503         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
504         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
505         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
506         New.
507         (mips_expand_vector_init): New.
508         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
509         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
510         if appropriate.
511         * config/mips/mips.md: Add unspec numbers for Loongson
512         builtins.  Include loongson.md.
513         (MOVE64): Include Loongson vector modes.
514         (SPLITF): Include Loongson vector modes.
515         (HALFMODE): Handle Loongson vector modes.
516         * config/mips/loongson.md: New.
517         * config/mips/loongson.h: New.
518         * config.gcc: Add loongson.h header for mips*-*-* targets.
519         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
520
521 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
522
523         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
524         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
525         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
526         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
527         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
528         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
529         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
530         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
531         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
532         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
533         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
534         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
535         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
536         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
537         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
538         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
539         Remove use_fixproto=yes.
540         (ia64*-*-hpux*): Remove comment about using fixproto.
541         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
542
543 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
544
545         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
546         library rebuilds.
547         * configure: Regenerate.
548
549 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
550
551         PR middle-end/36520
552         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
553         before evaluating it.
554
555 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
556
557         PR c/36507
558         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
559         nested inline functions.
560         (start_decl, start_function): Don't invert DECL_EXTERNAL
561         for nested inline functions.
562
563 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
564
565         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
566         splits that must be made for correctness.
567
568 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
569
570         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
571         (AVAIL_NON_MIPS16): Likewise.
572         (mips_builtin_description): Replace target_flags with a predicate.
573         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
574         (dspr2_32): New availability predicates.
575         (MIPS_BUILTIN): New macro.
576         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
577         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
578         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
579         Replace the TARGET_FLAGS parameters with AVAIL parameters.
580         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
581         (mips_dsp_32only_bdesc): Merge into...
582         (mips_builtins): ...this new array.
583         (mips_bdesc_map, mips_bdesc_arrays): Delete.
584         (mips_init_builtins): Update after above changes.
585         (mips_expand_builtin_1): Merge into...
586         (mips_expand_builtin): ...here and update after above changes.
587
588 2008-06-12  Paul Brook  <paul@codesourcery.com>
589
590         * longlong.h (__arm__): Define count_leading_zeros.
591         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
592         (clzsi2, clzdi2): New functions.
593         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
594         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
595         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
596         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
597         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
598         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
599         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
600         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
601         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
602         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
603
604 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
605
606         * config/m68k/m68k.c (m68k_tune_flags): New.
607         (override_options): Compute m68k_tune_flags.
608         (MULL_COST, MULW_COST): Update for various variants of CFV2.
609         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
610
611 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
612
613         PR middle-end/36506
614         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
615
616 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
617
618         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
619         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
620
621 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
622
623         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
624         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
625
626 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
627
628         PR middle-end/36506
629         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
630         reductions.
631
632 2008-06-12  Richard Guenther  <rguenther@suse.de>
633
634         PR tree-optimization/36345
635         * tree-flow.h (struct ptr_info_def): Align escape_mask,
636         add memory_tag_needed flag.
637         (may_alias_p): Declare.
638         * tree-ssa-alias.c (may_alias_p): Export.
639         (set_initial_properties): Use memory_tag_needed flag.
640         (update_reference_counts): Likewise.
641         (reset_alias_info): Reset memory_tag_needed flag.
642         (create_name_tags): Check memory_tag_needed flag.
643         (dump_points_to_info_for): Dump it.
644         * tree-ssa-structalias.c (struct variable_info): Remove
645         directly_dereferenced flag.
646         (new_var_info): Do not initialize it.
647         (process_constraint_1): Do not set it.
648         (update_alias_info): Set is_dereferenced flag.
649         (set_uids_in_ptset): Use may_alias_p.
650         (set_used_smts): Check memory_tag_needed flag.
651         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
652         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
653         memory_tag_needed flag.
654         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
655         from broken design.
656
657 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
658
659         * config/i386/i386.c (ix86_compute_frame_layout): Disable
660         red zone for w64 abi.
661         (ix86_expand_prologue): Likewise.
662         (ix86_force_to_memory): Likewise.
663         (ix86_free_from_memory): Likewise.
664
665 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
666
667         PR target/36425
668         * config/rs6000/rs6000.c (rs6000_override_options): Set
669         rs6000_isel conditionally to the absence of comand line override.
670         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
671         Remove duplicate rs6000_isel setting.
672         * config/rs6000/eabispe.h: Ditto.
673
674 2008-06-11  Richard Guenther  <rguenther@suse.de>
675
676         * alias.c (get_alias_set): Use the element alias-set for arrays.
677         (record_component_aliases): For arrays and vectors do nothing.
678         * c-common.c (strict_aliasing_warning): Handle the cases
679         of alias set zero explicitly.
680         * Makefile.in (dfp.o-warn): Add -Wno-error.
681
682 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
683
684         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
685         tune_32 tune_64.
686         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
687         tune_32 tune_64 to supported_defaults.  Allow values not
688         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
689         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
690         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
691         with_cpu_64 to generic for 64-bit-supporting configurations, not
692         with_cpu.  Remove FIXMEs.
693         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
694         --with-arch-64, --with-tune-32, --with-tune-64): Document.
695         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
696         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
697         arch_32 and arch_64.
698
699 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
700             Olivier Hainque  <hainque@adacore.com>
701
702         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
703         Use DECL_SIZE_UNIT to retrieve the size of the field.
704
705 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
706
707         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
708         with function calls after declarations.  Lay out
709         neon_float_type_node before further use.
710
711 2008-06-11  Richard Guenther  <rguenther@suse.de>
712
713         * tree-flow.h (may_point_to_global_var): Declare.
714         * tree-ssa-alias.c (may_point_to_global_var): New function.
715         * tree-ssa-sink.c (is_hidden_global_store): Use it.
716
717 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
718
719         * configure.ac: Teach that fido supports .debug_line.
720         * configure: Regenerate.
721
722 2008-06-10  Tom Tromey  <tromey@redhat.com>
723
724         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
725         debug hook.
726
727 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
728
729         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
730         (encode_decimal64, decode_decimal64, encode_decimal128,
731         decode_decimal128): Reverse order of 32-bit parts of value if host
732         and target endianness differ.
733
734 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
735
736         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
737         Avoid division by 0.
738         (tree_mod_pow2_value_transform): Likewise.
739         (tree_ic_transform): Likewise.
740         (tree_stringops_transform): Likewise.
741         (tree_mod_subtract_transform): Likewise.
742         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
743         (copy_edges_for_bb): Likewise.
744         (initialize_cfun): Likewise.
745
746 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
747
748         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
749         nonmemory_operand. Add "N" operand constraint.
750         (*btsi): Ditto.
751         (*jcc_btdi_mask_rex64): New instruction and split pattern.
752         (*jcc_btsi_mask): Ditto.
753         (*jcc_btsi_mask_1): Ditto.
754
755 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
756
757         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
758         TYPE_CANONICAL for copied element type.
759
760 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
761
762         PR target/36473
763         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
764         Add m_CORE2 and m_GENERIC.
765         * config/i386/predicates.md (bt_comparison_operator): New predicate.
766         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
767         (*btsi): Ditto.
768         (*jcc_btdi_rex64): New instruction and split pattern.
769         (*jcc_btsi): Ditto.
770         (*jcc_btsi_1): Ditto.
771         (*btsq): Fix Intel asm dialect operand order.
772         (*btrq): Ditto.
773         (*btcq): Ditto.
774
775 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
776
777         PR middle-end/36447
778         * simplify-rtx.c (simplify_subreg): Add check for shift count 
779         greater than size.
780
781 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
782
783         * doc/md.texi: Synchronize with later constraints.md change.
784         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
785         with a C implementation.
786         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
787         MFLO handling.
788         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
789         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
790         when moving to and from MD_REGNUM.
791         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
792         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
793         Handle byte and halfword moves.
794         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
795         separately.
796         * config/mips/constraints.md (h): Turn into NO_REGS.
797         (l, x): Update documentation.
798         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
799         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
800         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
801         (HILO): New mode iterator.
802         (MOVE128): Add TI.
803         (any_div): New code iterator.
804         (u): Extend code attribute to div and udiv.
805         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
806         d_operand in the splitters.  Remove redundant CONST_INT checks.
807         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
808         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
809         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
810         accordingly, using normal moves instead of unspecs to move LO into
811         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
812         (<u>mulsidi3): Handle expansion in C code.
813         (<u>mulsidi3_32bit_internal): Rename to...
814         (<u>mulsidi3_32bit): ...this.
815         (<u>mulsidi3_32bit_r4000): Fix insn separator.
816         (*<u>mulsidi3_64bit): Rename to...
817         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
818         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
819         to set LO and HI to the multiplication result.  Use a normal move
820         for MFLO and an unspec for MFHI.
821         (*<u>mulsidi3_64bit_parts): Replace with...
822         (<u>mulsidi3_64bit_hilo): ...this new instruction.
823         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
824         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
825         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
826         instead of HI.  Split the instruction into a separate multiplication
827         and MFHI if !TARGET_FIX_R4000.
828         (<su>muldi3_highpart): Likewise.
829         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
830         and the "=h" clobber.
831         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
832         (<u>mulditi3): New expander.
833         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
834         (madsi): Remove "=h" clobber.
835         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
836         Force the modulus result to be a GPR and split the instruction into
837         a division followed by an MFHI after reload.
838         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
839         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
840         the MIPS16 HIGH define_split.
841         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
842         of acc<->gpr moves to "multi".
843         (*movdi_64bit): Replace the single "x" alternative with
844         alternatives for moving into and out of "a".
845         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
846         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
847         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
848         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
849         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
850         (movti): New expander.
851         (*movti, *movti_mips16): New insns.
852         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
853         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
854         (mthi<GPR:mode>_<HILO:mode>): Likewise.
855         * config/mips/predicates.md (fpr_operand): Delete.
856         (d_operand): New predicate.
857
858 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
859
860         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
861         failure on some Bourne shells.
862         (x86_64-*-*): Ditto.
863
864 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
865
866         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
867
868 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
869
870         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
871         (sparc-sun-solaris2*): Likewise.
872
873 2008-06-09  Arnaud Charlet  <charlet@adacore.com
874
875         * doc/install.texi: Update requirements to build the Ada compiler.
876
877 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
878
879         * df-scan.c (struct df_scan_problem_data): Remove the
880         mw_link_pool alloc pool.
881         (df_scan_free_internal): Don't free it.
882         (df_scan_alloc): Don't allocate it.
883         * df.h (struct df_link): Update comment.
884
885 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
886
887         * except.h: Correct checks for when SJLJ exceptions must be used.
888
889 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
890
891         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
892         default.
893         
894 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
895
896         PR tree-optimization/36218
897         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
898         configure for the build system.
899         (BUILD_LDFLAGS): Define.
900         * configure: Regenerate.
901         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
902
903 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
904
905         PR target/36424
906         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
907         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
908         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
909
910 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
911
912         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
913
914 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
915
916         * config.gcc (Obsolete configurations): Remove list of
917         configurations.
918         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
919         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
920         targets matched by those patterns.
921         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
922         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
923         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
924         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
925         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
926         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
927         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
928         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
929         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
930         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
931         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
932         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
933         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
934         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
935         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
936         Make code for Solaris 7 and greater unconditional for Solaris.
937         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
938         Remove --with-* handling.
939         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
940         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
941         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
942         LINK_OS_WINDISS_SPEC): Remove.
943         * config/rs6000/sysv4.opt (mwindiss): Remove.
944         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
945         * configure: Regenerate.
946         * doc/cpp.texi: Don't mention BeOS.
947         * doc/extend.texi (interrupt): Don't mention MS1.
948         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
949         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
950         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
951         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
952         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
953         Remove.
954         * doc/invoke.texi (MT Options): Remove.
955         (-mwindiss): Remove.
956         (CRIS Options): Remove cris-axis-aout references.
957         (HPPA Options): Don't mention hppa1.1-*-pro.
958         * doc/md.texi: (MorphoTech family): Remove.
959         * libgcc2.c: Don't handle UWIN.
960         * config/alpha/t-unicosmk: Remove.
961         * config/alpha/unicosmk.h: Remove.
962         * config/arm/kaos-arm.h: Remove.
963         * config/arm/kaos-strongarm.h: Remove.
964         * config/arm/strongarm-coff.h: Remove.
965         * config/arm/strongarm-elf.h: Remove.
966         * config/arm/strongarm-pe.h: Remove.
967         * config/arm/t-strongarm-pe: Remove.
968         * config/arm/t-xscale-coff: Remove.
969         * config/arm/t-xscale-elf: Remove.
970         * config/arm/xscale-coff.h: Remove.
971         * config/arm/xscale-elf.h: Remove.
972         * config/chorus.h: Remove.
973         * config/cris/aout.h: Remove.
974         * config/cris/aout.opt: Remove.
975         * config/cris/t-aout: Remove.
976         * config/i386/beos-elf.h: Remove.
977         * config/i386/kaos-i386.h: Remove.
978         * config/i386/ptx4-i.h: Remove.
979         * config/i386/sco5.h: Remove.
980         * config/i386/sco5.opt: Remove.
981         * config/i386/sysv4-cpp.h: Remove.
982         * config/i386/sysv5.h: Remove.
983         * config/i386/t-beos: Remove.
984         * config/i386/t-sco5: Remove.
985         * config/i386/t-uwin: Remove.
986         * config/i386/uwin.asm: Remove.
987         * config/i386/uwin.h: Remove.
988         * config/kaos.h: Remove.
989         * config/mips/windiss.h: Remove.
990         * config/mt: Remove directory.
991         * config/pa/pa-osf.h: Remove.
992         * config/pa/pa-pro-end.h: Remove.
993         * config/pa/t-pro: Remove.
994         * config/ptx4.h: Remove.
995         * config/rs6000/beos.h: Remove.
996         * config/rs6000/kaos-ppc.h: Remove.
997         * config/rs6000/t-beos: Remove.
998         * config/rs6000/windiss.h: Remove.
999         * config/sh/kaos-sh.h: Remove.
1000         * config/sol2-6.h: Remove.
1001         * config/sparc/sol26-sld.h: Remove.
1002         * config/sparc/sysv4-only.h: Remove.
1003         * config/vax/bsd.h: Remove.
1004         * config/vax/t-memfuncs: Remove.
1005         * config/vax/ultrix.h: Remove.
1006         * config/vax/vaxv.h: Remove.
1007         * config/windiss.h: Remove.
1008
1009 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
1010
1011         PR rtl-optimization/36438
1012         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
1013         for vector shifts with constant scalar shift operands.
1014
1015 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
1016
1017         * doc/invoke.texi: Document -march=xlr.
1018         * config/mips/xlr.md: New file.
1019         * config/mips/mips.md: Include it.
1020         (cpu): Add "xlr".
1021         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
1022         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
1023         (mips_rtx_cost_data): Likewise.
1024
1025 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
1026
1027         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
1028         PRE_INC and PRE_DEC cases.
1029
1030 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1031
1032         PR rtl-optimization/36419
1033         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
1034         the emitting jump insn.
1035
1036         PR target/36362
1037         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
1038         is not bool, boolify the whole *expr_p and convert to the desired type.
1039
1040 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
1041
1042         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
1043         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
1044         Add omp_private_outer_ref hook, add another argument to
1045         omp_clause_default_ctor hook.
1046         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
1047         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
1048         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
1049         hook_tree_tree_tree_tree_null.
1050         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
1051         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
1052         * hooks.c (hook_tree_tree_tree_tree_null): New function.
1053         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
1054         * tree.def (OMP_TASK): New tree code.
1055         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
1056         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
1057         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
1058         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
1059         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
1060         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
1061         OMP_CLAUSE_COLLAPSE_EXPR): Define.
1062         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
1063         (OMP_DIRECTIVE_P): Add OMP_TASK.
1064         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
1065         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
1066         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
1067         and OMP_CLAUSE_UNTIED entries.
1068         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
1069         num_ops to 2.
1070         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
1071         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
1072         * tree-pretty-print.c (dump_omp_clause): Handle
1073         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
1074         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
1075         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
1076         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
1077         warning about unsigned iterators.  Change decl/init/cond/incr
1078         arguments to TREE_VECs, check arguments for all collapsed loops.
1079         (c_finish_omp_taskwait): New function.
1080         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
1081         ws_clauses.
1082         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
1083         default_function_array_conversion on init.  Add par_clauses argument.
1084         If decl is present in parallel's lastprivate clause, change it to
1085         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
1086         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
1087         collapse count in clauses.
1088         (c_parser_omp_for, c_parser_omp_parallel): Adjust
1089         c_parser_omp_for_loop callers.
1090         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
1091         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
1092         (c_parser_omp_clause_name): Handle collapse and untied clauses.
1093         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
1094         functions.
1095         (c_parser_omp_clause_schedule): Handle schedule(auto).
1096         Include correct location in the error message.
1097         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
1098         and PRAGMA_OMP_CLAUSE_UNTIED.
1099         (OMP_TASK_CLAUSE_MASK): Define.
1100         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
1101         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
1102         * tree-nested.c (convert_nonlocal_omp_clauses,
1103         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
1104         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
1105         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
1106         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
1107         OMP_CLAUSE_DECL.
1108         (conver_nonlocal_reference, convert_local_reference,
1109         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
1110         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
1111         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
1112         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
1113         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
1114         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
1115         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
1116         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
1117         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
1118         OMP_CLAUSE_UNTIED.
1119         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
1120         * c-common.h (c_finish_omp_taskwait): New prototype.
1121         * gimple-low.c (lower_stmt): Handle OMP_TASK.
1122         * tree-parloops.c (create_parallel_loop): Create 1 entry
1123         vectors for OMP_FOR_{INIT,COND,INCR}.
1124         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
1125         (make_edges): Handle OMP_TASK.
1126         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
1127         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
1128         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
1129         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
1130         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
1131         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
1132         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
1133         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
1134         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
1135         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
1136         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
1137         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
1138         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
1139         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
1140         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
1141         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
1142         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
1143         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
1144         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
1145         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
1146         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
1147         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
1148         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
1149         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
1150         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
1151         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
1152         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
1153         original iterator is present in lastprivate clause or if
1154         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
1155         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
1156         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
1157         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
1158         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
1159         if it is set, lookup var in outer contexts too.  Handle
1160         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
1161         to be implicitly determined firstprivate for task regions.
1162         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
1163         if it is set, lookup var in outer contexts too.  Set
1164         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
1165         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
1166         OMP_CLAUSE_UNTIED.  Take region_type as last argument
1167         instead of in_parallel and in_combined_parallel.
1168         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
1169         Adjust callers.
1170         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
1171         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
1172         (new_omp_context): Set default_kind to
1173         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
1174         (omp_region_type): New enum.
1175         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
1176         fields, add region_type.
1177         (new_omp_context): Take region_type as argument instead of is_parallel
1178         and is_combined_parallel.
1179         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
1180         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
1181         ctx->is_combined_parallel checks.
1182         (gimplify_omp_task): New function.
1183         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
1184         OMP_CLAUSE_UNTIED.
1185         * omp-low.c (extract_omp_for_data): Use schedule(static)
1186         for schedule(auto).  Handle pointer and unsigned iterators.
1187         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
1188         Add loops argument.  Extract data for collapsed OMP_FOR loops.
1189         (expand_parallel_call): Assert sched_kind isn't auto,
1190         map runtime schedule to index 3.
1191         (struct omp_for_data_loop): New type.
1192         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
1193         Add loop, loops, collapse and iter_type fields.
1194         (workshare_safe_to_combine_p): Disallow combined for if
1195         iter_type is unsigned long long.  Don't combine collapse > 1 loops
1196         unless all bounds and steps are constant.  Adjust extract_omp_for_data
1197         caller.
1198         (expand_omp_for_generic): Handle pointer, unsigned and long long
1199         iterators.  Handle collapsed OMP_FOR loops.  Adjust
1200         for struct omp_for_data changes.  If libgomp function doesn't return
1201         boolean_type_node, add comparison of the return value with 0.
1202         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
1203         pointer, unsigned and long long iterators.  Adjust for struct
1204         omp_for_data changes.
1205         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
1206         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
1207         unsigned long long.  Allocate loops array, pass it to
1208         extract_omp_for_data.  For collapse > 1 loops use always
1209         expand_omp_for_generic.
1210         (omp_context): Add sfield_map and srecord_type fields.
1211         (is_task_ctx, lookup_sfield): New functions.
1212         (use_pointer_for_field): Use is_task_ctx helper.  Change first
1213         argument's type from const_tree to tree.  Clarify comment.
1214         In OMP_TASK disallow copy-in/out sharing.
1215         (build_sender_ref): Call lookup_sfield instead of lookup_field.
1216         (install_var_field): Add mask argument.  Populate both record_type
1217         and srecord_type if needed.
1218         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
1219         in srecord_type.
1220         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
1221         and DECL_FIELD_OFFSET.
1222         (scan_sharing_clauses): Adjust install_var_field callers.  For
1223         firstprivate clauses on explicit tasks allocate the var by value in
1224         record_type unconditionally, rather than by reference.
1225         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
1226         Use is_taskreg_ctx instead of is_parallel_ctx.
1227         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
1228         (create_omp_child_function_name): Add task_copy argument, use
1229         *_omp_cpyfn* names if it is true.
1230         (create_omp_child_function): Add task_copy argument, if true create
1231         *_omp_cpyfn* helper function.
1232         (scan_omp_parallel): Adjust create_omp_child_function callers.
1233         Rename parallel_nesting_level to taskreg_nesting_level.
1234         (scan_omp_task): New function.
1235         (lower_rec_input_clauses): Don't run constructors for firstprivate
1236         explicit task vars which are initialized by *_omp_cpyfn*.  
1237         Pass outer var ref to omp_clause_default_ctor hook if
1238         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
1239         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
1240         OMP_CLAUSE_REDUCTION_INIT.
1241         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
1242         avoid duplicate setting of fields.  Handle
1243         OMP_CLAUSE_PRIVATE_OUTER_REF.
1244         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
1245         copy-out if TREE_READONLY, only copy-in.
1246         (expand_task_copyfn): New function.
1247         (expand_task_call): New function.
1248         (struct omp_taskcopy_context): New type.
1249         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
1250         New functions.
1251         (lower_omp_parallel): Rename to...
1252         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
1253         Call create_task_copyfn if srecord_type is needed.  Adjust
1254         sender_decl type.
1255         (task_shared_vars): New variable.
1256         (check_omp_nesting_restrictions): Warn if work-sharing,
1257         barrier, master or ordered region is closely nested inside OMP_TASK.
1258         Add warnings for barrier if closely nested inside of work-sharing,
1259         ordered, or master region.
1260         (scan_omp_1): Call check_omp_nesting_restrictions even for
1261         GOMP_barrier calls.  Rename parallel_nesting_level to
1262         taskreg_nesting_level.  Handle OMP_TASK.
1263         (lower_lastprivate_clauses): Even if some lastprivate is found on a
1264         work-sharing construct, continue looking for them on parent parallel
1265         construct.
1266         (lower_omp_for_lastprivate): Add lastprivate clauses
1267         to the beginning of dlist rather than end.  Adjust for struct
1268         omp_for_data changes.
1269         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
1270         not after it.  Handle collapsed OMP_FOR loops, adjust for
1271         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
1272         (get_ws_args_for): Adjust extract_omp_for_data caller.
1273         (scan_omp_for): Handle collapsed OMP_FOR
1274         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
1275         (lower_omp_single_simple): If libgomp function doesn't return
1276         boolean_type_node, add comparison of the return value with 0.
1277         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
1278         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
1279         (parallel_nesting_level): Rename to...
1280         (taskreg_nesting_level): ... this.
1281         (is_taskreg_ctx): New function.
1282         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
1283         of is_parallel_ctx.
1284         (execute_lower_omp): Rename parallel_nesting_level to
1285         taskreg_nesting_level.
1286         (expand_omp_parallel): Rename to...
1287         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
1288         Call omp_task_call for OMP_TASK regions.
1289         (expand_omp): Adjust caller, handle OMP_TASK.
1290         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
1291
1292         * bitmap.c (bitmap_default_obstack_depth): New variable.
1293         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
1294         if argument is NULL and bitmap_default_obstack is already initialized.
1295         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
1296         at the end.
1297         * matrix-reorg.c (matrix_reorg): Likewise.
1298
1299 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
1300
1301         * config/i386/i386.md (*indirect_jump): Macroize using P
1302         mode iterator.  Remove !TARGET_64BIT from insn constraints.
1303         (*tablejump_1): Ditto.
1304         (*indirect_jump_rex64): Remove insn pattern.
1305         (*tablejump_1_rex64): Ditto.
1306         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
1307         and eh_return_si insn patterns.
1308
1309 2008-06-06  Richard Guenther  <rguenther@suse.de>
1310
1311         * tree-ssa-structalias.c (merge_smts_into): Remove.
1312         (find_what_p_points_to): Do not bother to compute the
1313         points-to set for pt_anything pointers.
1314         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
1315         for pt_anything pointers is ok.
1316
1317 2008-06-06  Jan Hubicka  <jh@suse.cz>
1318
1319         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
1320
1321 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1322
1323         * cgraph.c: Fix typos in comments.
1324         (cgraph_availability_names): Fix string typo.
1325         * fold-const.c: Fix typos in comments.
1326         (fold_binary): Fix typo in warning.
1327         * genautomata.c: Fix typos in comments.
1328         (check_presence_pattern_sets): Fix typo in local variable.
1329         (output_description): Fix typo in output.
1330         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
1331         * hwint.h: Likewise.
1332         * matrix-reorg.c (check_allocation_function): Likewise.
1333         * omega.c (smooth_weird_equations): Likewise.
1334         * auto-inc-dec.c: Fix typos in comments.
1335         * bb-reorder.c: Likewise.
1336         * builtins.c: Likewise.
1337         * c-common.c: Likewise.
1338         * c-cppbuiltin.c: Likewise.
1339         * c-parser.c: Likewise.
1340         * c-pretty-print.c: Likewise.
1341         * cfgcleanup.c: Likewise.
1342         * cfgexpand.c: Likewise.
1343         * cfghooks.c: Likewise.
1344         * cfglayout.c: Likewise.
1345         * cfgloopmanip.c: Likewise.
1346         * cgraphunit.c: Likewise.
1347         * coverage.c: Likewise.
1348         * dbxout.c: Likewise.
1349         * df-byte-scan.c: Likewise.
1350         * df-core.c: Likewise.
1351         * df-problems.c: Likewise.
1352         * df-scan.c: Likewise.
1353         * dfp.c: Likewise.
1354         * dominance.c: Likewise.
1355         * domwalk.c: Likewise.
1356         * dse.c: Likewise.
1357         * dwarf2out.c: Likewise.
1358         * emit-rtl.c: Likewise.
1359         * et-forest.c: Likewise.
1360         * function.c: Likewise.
1361         * function.h: Likewise.
1362         * gcc.c: Likewise.
1363         * gcov-io.c: Likewise.
1364         * gcov.c: Likewise.
1365         * gcse.c: Likewise.
1366         * genattrtab.c: Likewise.
1367         * ggc-page.c: Likewise.
1368         * gimplify.c: Likewise.
1369         * gthr-lynx.h: Likewise.
1370         * haifa-sched.c: Likewise.
1371         * ipa-cp.c: Likewise.
1372         * ipa-inline.c: Likewise.
1373         * ipa-prop.h: Likewise.
1374         * ipa-pure-const.c: Likewise.
1375         * ipa-struct-reorg.c: Likewise.
1376         * ipa-struct-reorg.h: Likewise.
1377         * ipa-type-escape.c: Likewise.
1378         * ipa.c: Likewise.
1379         * loop-doloop.c: Likewise.
1380         * mips-tfile.c: Likewise.
1381         * mkmap-flat.awk: Likewise.
1382         * mkmap-symver.awk: Likewise.
1383         * modulo-sched.c: Likewise.
1384         * omp-low.c: Likewise.
1385         * optabs.c: Likewise.
1386         * optabs.h: Likewise.
1387         * opts.c: Likewise.
1388         * passes.c: Likewise.
1389         * postreload-gcse.c: Likewise.
1390         * postreload.c: Likewise.
1391         * predict.c: Likewise.
1392         * pretty-print.h: Likewise.
1393         * profile.c: Likewise.
1394         * protoize.c: Likewise.
1395         * ra-conflict.c: Likewise.
1396         * real.c: Likewise.
1397         * recog.c: Likewise.
1398         * regclass.c: Likewise.
1399         * regs.h: Likewise.
1400         * reload.c: Likewise.
1401         * rtl-error.c: Likewise.
1402         * rtlanal.c: Likewise.
1403         * scan.h: Likewise.
1404         * sched-rgn.c: Likewise.
1405         * see.c: Likewise.
1406         * stmt.c: Likewise.
1407         * target.h: Likewise.
1408         * tree-dfa.c: Likewise.
1409         * tree-eh.c: Likewise.
1410         * tree-flow-inline.h: Likewise.
1411         * tree-inline.c: Likewise.
1412         * tree-into-ssa.c: Likewise.
1413         * tree-loop-distribution.c: Likewise.
1414         * tree-nested.c: Likewise.
1415         * tree-parloops.c: Likewise.
1416         * tree-pass.h: Likewise.
1417         * tree-pretty-print.c: Likewise.
1418         * tree-profile.c: Likewise.
1419         * tree-scalar-evolution.c: Likewise.
1420         * tree-sra.c: Likewise.
1421         * tree-ssa-alias-warnings.c: Likewise.
1422         * tree-ssa-ccp.c: Likewise.
1423         * tree-ssa-coalesce.c: Likewise.
1424         * tree-ssa-dom.c: Likewise.
1425         * tree-ssa-dse.c: Likewise.
1426         * tree-ssa-forwprop.c: Likewise.
1427         * tree-ssa-live.c: Likewise.
1428         * tree-ssa-live.h: Likewise.
1429         * tree-ssa-loop-im.c: Likewise.
1430         * tree-ssa-loop-ivopts.c: Likewise.
1431         * tree-ssa-loop-niter.c: Likewise.
1432         * tree-ssa-loop-prefetch.c: Likewise.
1433         * tree-ssa-phiopt.c: Likewise.
1434         * tree-ssa-phiprop.c: Likewise.
1435         * tree-ssa-sccvn.c: Likewise.
1436         * tree-ssa-ter.c: Likewise.
1437         * tree-ssa-threadupdate.c: Likewise.
1438         * tree-ssa.c: Likewise.
1439         * tree-vect-analyze.c: Likewise.
1440         * tree-vect-transform.c: Likewise.
1441         * tree-vectorizer.c: Likewise.
1442         * tree-vn.c: Likewise.
1443         * tree-vrp.c: Likewise.
1444         * tree.c: Likewise.
1445         * tree.def: Likewise.
1446         * tree.h: Likewise.
1447         * unwind-dw2-fde.c: Likewise.
1448         * unwind.inc: Likewise.
1449         * value-prof.c: Likewise.
1450         * vmsdbgout.c: Likewise.
1451
1452 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
1453
1454         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
1455         always place FP constants in the TOC for TARGET_POWERPC64.
1456         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
1457
1458 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
1459
1460         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
1461         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
1462         enable for TARGET_E500_DOUBLE.
1463         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
1464         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
1465         floating-point modes like integer modes for E500 double.
1466         (rs6000_legitimate_offset_address_p): Likewise.
1467         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
1468         addressing for DDmode for E500 double.
1469         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
1470         modes as using 64-bits of registers for E500 double.
1471         (spe_build_register_parallel): Do not handle DDmode or TDmode.
1472         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
1473         specially for E500 double.
1474         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
1475         TDmode for E500 double.
1476         (rs6000_gimplify_va_arg): Only handle SDmode in registers
1477         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
1478         (rs6000_split_multireg_move): Do not handle TDmode specially for
1479         E500 double.
1480         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
1481         using 64-bit registers for E500 double.
1482         (emit_frame_save): Do not handle DDmode specially for E500 double.
1483         (gen_frame_mem_offset): Likewise.
1484         (rs6000_function_value): Do not call spe_build_register_parallel
1485         for DDmode or TDmode.
1486         (rs6000_libcall_value): Likewise.
1487         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
1488         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
1489         for E500 double.
1490
1491 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
1492
1493         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
1494         in comments.
1495
1496 2008-06-04  Junjie Gu <jgu@tensilica.com>
1497
1498         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
1499         comparison for frame pointers.
1500
1501 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
1502
1503         PR target/27386
1504         * config/avr/avr.h (PUSH_ROUNDING): Remove.
1505
1506 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
1507
1508         PR target/30243
1509         * builtins.c (expand_builtin_signbit): Don't take lowpart when
1510         register is already smaller or equal to required mode. 
1511
1512 2008-06-04  Xinliang David Li  <davidxl@google.com>
1513
1514         * tree-call-cdce.c: New file. 
1515         (cond_dead_built_in_calls): New static variable.
1516         (input_domain): New struct.
1517         (check_pow): New function.
1518         (check_builtin_call): Ditto.
1519         (check_target_format): Ditto.
1520         (is_call_dce_candidate): Ditto.
1521         (gen_one_condition): Ditto.
1522         (gen_conditions_for_domain): Ditto.
1523         (get_domain): Ditto.
1524         (gen_conditions_for_pow_cst_base): Ditto.
1525         (gen_conditions_for_pow_int_base): Ditto.
1526         (gen_conditions_for_pow): Ditto.
1527         (get_no_error_domain): Ditto.
1528         (gen_shrink_wrap_conditions): Ditto.
1529         (shrink_wrap_one_built_in_call): Ditto.
1530         (shink_wrap_conditional_dead_built_in_calls): Ditto.
1531         (tree_call_cdce): Ditto.
1532         (gate_call_cdce): Ditto.
1533         (pass_call_cdce): New gimple pass.
1534         * passes.c: (init_optimization_passes): New pass.
1535         * tree-pass.h: New pass declaration.
1536         * opts.c (decode_options): New flag setting.
1537         * common.opt: Add -ftree-builtin-call-dce flag.
1538         * Makefile.in: Add new source file.
1539         * tempvar.def: New tv_id.
1540         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
1541
1542 2008-06-04  Richard Guenther  <rguenther@suse.de>
1543
1544         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
1545         (is_call_clobbered): Always check var_ann->call_clobbered.
1546         (mark_call_clobbered): Always set var_ann->call_clobbered.
1547         (clear_call_clobbered): Always clear var_ann->call_clobbered.
1548         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
1549         (reset_alias_info): Clear call clobbering info on MTAGs and
1550         globals as well.
1551         (set_pt_anything): Set pt_global_mem.
1552         (create_tag_raw): Adjust comment.
1553         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
1554
1555 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
1556             Maxim Kuvyrkov  <maxim@codesourcery.com>
1557
1558         * config/m68k/m68k.opt (mxgot): New option.
1559         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
1560         (m68k_output_addr_const_extra): New.
1561         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
1562         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
1563         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
1564         * doc/invoke.texi (M680x0 Options): Document -mxgot.
1565
1566 2008-06-04  Richard Guenther  <rguenther@suse.de>
1567
1568         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
1569         negative or non-representable offsets.
1570
1571 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
1572
1573         * config/i386/i386.c (ix86_gen_leave): New.
1574         (ix86_gen_pop1): Likewise.
1575         (ix86_gen_add3): Likewise.
1576         (ix86_gen_sub3): Likewise.
1577         (ix86_gen_sub3_carry): Likewise.
1578         (ix86_gen_one_cmpl2): Likewise.
1579         (ix86_gen_monitor): Likewise.
1580         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
1581         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
1582         ix86_gen_one_cmpl2 and ix86_gen_monitor.
1583         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
1584         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
1585         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
1586         (ix86_expand_epilogue): Updated.
1587         (print_operand): Handle integer register operand for 'z'.
1588         (ix86_expand_strlensi_unroll_1): Likewise.
1589         (ix86_expand_strlen): Likewise.
1590         (ix86_expand_builtin): Likewise.
1591         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
1592         mov{q}/mov{l} and add{q}/add{l}.
1593
1594 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
1595
1596         * config/i386/i386.md (P): New mode iterator.
1597         (SFmode push_operand splitter): Macroize DImode and SImode pushes
1598         using P mode iterator.
1599         (DFmode push_operand splitter): Ditto.
1600         (XFmode push_operand splitter): Ditto.
1601         (DFmode float_extend SFmode push_operand splitter): Ditto.
1602         (XFmode float_extend SFmode push_operand splitter): Do not generate
1603         SImode pushes for 64bit target.  Macroize Dimode and SImode
1604         pushes using P mode iterator.
1605         (XFmode float_extend DFmode push_operand splitter): Ditto.
1606
1607 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
1608
1609         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
1610         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
1611         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
1612         return type to int.
1613         (ix86_call_abi_override): Remove check for call_used_regs.
1614
1615 2008-06-03  Richard Guenther  <rguenther@suse.de>
1616
1617         * tree-ssa-structalias.c (find_func_aliases): Add constraints
1618         for the lhs of calls if the return type contains pointers.
1619
1620 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
1621
1622         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
1623         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
1624         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
1625         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
1626         of cfun and DEFAULT_ABI to deceide abi mode.
1627         (DEFAULT_ABI): New.
1628         (REG_PARM_STACK_SPACE): Removed.
1629         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
1630         (STACK_BOUNDARY): Use default target to deceide stack boundary.
1631         * config/i386/i386-protos.h (ix86_cfun_abi): New.
1632         (ix86_function_abi): Likewise.
1633         (ix86_function_type_abi): Likewise.
1634         (ix86_call_abi_override): Likewise.
1635         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
1636         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
1637         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
1638         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
1639         specific defines.
1640         (X86_64_REGPARM_MAX): New.
1641         (X86_64_SSE_REGPARM_MAX): New.
1642         (X64_REGPARM_MAX): New.
1643         (X64_SSE_REGPARM_MAX): New.
1644         (X86_32_REGPARM_MAX): New.
1645         (X86_32_SSE_REGPARM_MAX): New.
1646         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
1647         (ix86_function_regparm): Handle user calling abi.
1648         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
1649         by DEFAULT_ABI versus SYSV_ABI check.
1650         (ix86_reg_parm_stack_space): New.
1651         (ix86_function_type_abi): New.
1652         (ix86_call_abi_override): New.
1653         (ix86_function_abi): New.
1654         (ix86_cfun_abi): New.
1655         (init_cumulative_args): Call abi specific initialization.
1656         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
1657         (function_arg_64): Extend SSE_REGPARM_MAX check.
1658         (function_arg (): Remove TARGET_64BIT_MS_ABI.
1659         (ix86_pass_by_reference): Likewise.
1660         (ix86_function_value_regno_p): Likewise.
1661         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
1662         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
1663         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
1664         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
1665         (setup_incoming_varargs_64): Adjust regparm for call abi.
1666         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
1667         (ix86_va_start): Likewise.
1668         (ix86_gimplify_va_arg): Likewise.
1669         (ix86_expand_prologue): Likewise.
1670         (output_pic_addr_const): Likewise.
1671         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
1672         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
1673         (x86_output_mi_thunk): Likewise.
1674         (x86_function_profiler): Likewise.
1675         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
1676         (SYSV_ABI, MS_ABI): New constants.
1677         (DEFAULT_ABI): New.
1678         (init_regs): Add prototype of function in regclass.c file.
1679         (OVERRIDE_ABI_FORMAT): New.
1680         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
1681         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
1682         (OUTGOING_REG_PARM_STACK_SPACE): New.
1683         (ix86_reg_parm_stack_space): New prototype.
1684         (CUMULATIVE_ARGS): Add call_abi member.
1685         (machine_function): Add call_abi member.
1686         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
1687         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
1688
1689 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
1690
1691         PR target/34879
1692         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
1693         (avr_builtin_setjmp_frame_value): New function.
1694         * config/avr/avr.md (nonlocal_goto_receiver): Define.
1695         (nonlocal_goto): Define.
1696
1697 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
1698
1699         * config/mips/mips.c (mips_emit_loadgp): Return early if
1700         there is nothing do to, otherwise emit a blockage if
1701         !TARGET_EXPLICIT_RELOCS || crtl->profile.
1702         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
1703
1704 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1705
1706         * configure.ac: Drop unneeded backslash ending up in config.in.
1707         * acinclude.m4: Likewise.
1708         * config.in: Regenerate.
1709
1710 2008-05-26  Jan Hubicka  <jh@suse.cz>
1711
1712         * predict.c (maybe_hot_frequency_p): Break out of...
1713         (maybe_hot_bb_p): ... here.
1714         (maybe_hot_edge_p): New.
1715         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
1716         * basic-block.h (maybe_hot_edge_p): Declare.
1717
1718 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
1719
1720         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
1721         (*cmpfp_<mode>_cc): Ditto.
1722         (*fp_jcc_8<mode>_387): Ditto.
1723         (*fop_<MODEF:mode>_2_i387): Ditto.
1724         (*fop_<MODEF:mode>_3_i387): Ditto.
1725         (*fop_xf_2_i387): Ditto.
1726         (*fop_xf_3_i387): Ditto.
1727
1728 2008-06-02  Tomas Bily  <tbily@suse.cz>
1729
1730         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
1731
1732 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1733
1734         * config/mips/mips.c (mips_valid_offset_p): New function.
1735         (mips_valid_lo_sum_p): Likewise.
1736         (mips_classify_address): Use them.
1737         (mips_force_address): New function.
1738         (mips_legitimize_address): Use it.
1739         * config/mips/mips.md (MOVE128): New mode iterator.
1740         (movtf): Require TARGET_64BIT.  Remove empty strings.
1741         (*movtf_internal): Rename to...
1742         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
1743         of "R" and use {,fp}{load,store} attributes instead of "multi".
1744         Use a separate define_split.
1745         (*movtf_mips16): New pattern.
1746
1747 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1748
1749         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
1750         * config/mips/mips.c (mips_expand_before_return): New function.
1751         (mips_expand_epilogue): Call it.
1752         * config/mips/mips.md (return): Turn into a define_expand.
1753         (*return): New insn.
1754
1755 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
1756
1757         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
1758         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
1759         functions.  Do not emit uses and clobbers of CONCATs; individually
1760         use and clobber their operands.
1761         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
1762         gen_clobber, emit_use and gen_use.
1763         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1764         (expand_builtin_return): Likewise.
1765         * cfgbuild.c (count_basic_blocks): Likewise.
1766         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1767         * explow.c (emit_stack_restore): Likewise.
1768         * expmed.c (extract_bit_field_1): Likewise.
1769         * expr.c (convert_move, emit_move_complex_parts): Likewise.
1770         (emit_move_multi_word, store_constructor): Likewise.
1771         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
1772         (thread_prologue_and_epilogue_insns): Likewise.
1773         * lower-subreg.c (resolve_simple_move): Likewise.
1774         * optabs.c (widen_operand, expand_binop): Likewise.
1775         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
1776         * reload.c (find_reloads): Likewise.
1777         * reload1.c (eliminate_regs_in_insn): Likewise.
1778         * stmt.c (expand_nl_goto_receiver): Likewise.
1779         * config/alpha/alpha.md (builtin_longjmp): Likewise.
1780         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
1781         * config/arm/arm.c (arm_load_pic_register): Likewise.
1782         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
1783         * config/arm/arm.md (untyped_return): Likewise.
1784         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
1785         * config/avr/avr.c (expand_prologue): Likewise.
1786         * config/bfin/bfin.c (do_unlink): Likewise.
1787         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
1788         * config/cris/cris.c (cris_expand_prologue): Likewise.
1789         * config/darwin.c (machopic_indirect_data_reference): Likewise.
1790         (machopic_legitimize_pic_address): Likewise.
1791         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
1792         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
1793         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
1794         (ix86_expand_convert_uns_didf_sse): Likewise.
1795         (ix86_expand_vector_init_general): Likewise.
1796         * config/ia64/ia64.md (eh_epilogue): Likewise.
1797         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
1798         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
1799         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
1800         (config/iq2000/iq2000.c): Likewise.
1801         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
1802         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1803         (builtin_longjmp): Likewise.
1804         * config/mn10300/mn10300.md (call, call_value): Likewise.
1805         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
1806         * config/pdp11/pdp11.md (abshi2): Likewise.
1807         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1808         * config/s390/s390.c (s390_emit_prologue): Likewise.
1809         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
1810         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
1811         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
1812         * config/sh/sh.c (prepare_move_operands): Likewise.
1813         (output_stack_adjust, sh_expand_epilogue): Likewise.
1814         (sh_set_return_address, sh_expand_t_scc): Likewise.
1815         * config/sparc/sparc.c (load_pic_register): Likewise.
1816         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
1817         * config/spu/spu.c (spu_expand_epilogue): Likewise.
1818         * config/v850/v850.c (expand_epilogue): Likewise.
1819
1820 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
1821
1822         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
1823         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
1824         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
1825         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
1826         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
1827         stack pointer register.
1828         (output_movhi): Remove code for interrupt specific writing to the 
1829         stack pointer register.
1830
1831 2008-05-31  Richard Guenther  <rguenther@suse.de>
1832
1833         PR tree-optimization/34244
1834         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
1835         (tree_expr_nonzero_warnv_p): Likewise.
1836         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
1837         ssa_name_nonnegative_p.
1838         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
1839         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
1840         not tree_expr_nonzero_warnv_p.
1841
1842         PR tree-optimization/36262
1843         Revert
1844         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
1845
1846         PR tree-optimization/34244
1847         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
1848         (record_numbers_of_iterations): New function.
1849         (execute_vrp): Cache the numbers of iterations of loops.
1850         * tree-scalar-evolution.c (scev_reset_except_niters):
1851         New function.
1852         (scev_reset): Use scev_reset_except_niters.
1853         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
1854
1855 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
1856
1857         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1858         __WORKAROUND_RETS when appropriate.
1859
1860 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
1861
1862         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
1863         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
1864         mode iterator.
1865         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
1866         *fop_df_comm_sse insn patterns using MODEF mode iterator.
1867         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
1868         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
1869         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
1870         *fop_df_1_mixed insn patterns using MODEF mode iterator.
1871         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
1872         *fop_df_1_sse insn patterns using MODEF mode iterator.
1873         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
1874         *fop_df_1_i387 insn patterns using MODEF mode iterator.
1875         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
1876         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
1877         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
1878         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
1879         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
1880         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
1881         (*fop_xf_4_i387): Use <MODE> for mode attribute.
1882         (*fop_xf_5_i387): Ditto.
1883         (*fop_xf_6_i387): Ditto.
1884
1885 2008-05-30  Richard Guenther  <rguenther@suse.de>
1886
1887         * builtins.c (build_string_literal): Avoid generating
1888         a non-gimple_val result.
1889
1890 2008-05-30  DJ Delorie  <dj@redhat.com>
1891
1892         * exec-tool.in: Use an environment variable (private) instead of a
1893         file (shared) as a semaphore, so as to not break parallel builds.
1894
1895 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
1896
1897         * optabs.c (maybe_encapsulate_block): Remove.
1898         (emit_libcall_block): Adjust accordingly.
1899         * optabs.h (maybe_encapsulate_block): Remove prototype.
1900
1901         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
1902         Don't use maybe_encapsulate_block.
1903
1904 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
1905
1906         * config/rs6000/rs6000.c (rs6000_legitimize_address,
1907         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
1908         rtx is a SYMBOL_REF before calling get_pool_constant.
1909
1910 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
1911
1912         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
1913
1914 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
1915
1916         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
1917         rather than OS names to choose INO_T_EQ definition.
1918         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
1919         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
1920
1921 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
1922
1923         PR target/36348
1924         * config/darwin-f.c: New.
1925         * config/t-darwin: Added rule to build darwin-f.o.
1926         * config.gcc: Defined new variable, fortran_target_objs.
1927         (*-*-darwin*): Set fortran_target_objs.
1928         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
1929         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
1930         * configure: Regenerated.
1931
1932 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
1933
1934         PR target/35771
1935         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
1936         canonical type if needed.
1937
1938 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
1939
1940         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
1941
1942 2008-05-29  Richard Guenther  <rguenther@suse.de>
1943
1944         PR tree-optimization/36343
1945         PR tree-optimization/36346
1946         PR tree-optimization/36347
1947         * tree-flow.h (clobber_what_p_points_to): Declare.
1948         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
1949         pointed-to variable is dereferenced is irrelevant to whether
1950         the pointer can access the pointed-to variable.
1951         (clobber_what_p_points_to): New function.
1952         * tree-ssa-alias.c (set_initial_properties): Use it.
1953         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
1954         call clobber check for NMTs.
1955
1956 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
1957         
1958         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
1959         for printing gcov_type.
1960
1961 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
1962
1963         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
1964         and the eh region information.
1965         * value-prof.c (gimple_move_stmt_histograms): New function.
1966         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
1967
1968 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
1969
1970         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
1971
1972 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
1973
1974         * value-prof.c (tree_ic_transform): Print counts.
1975         * tree-profile.c (tree_gen_ic_func_profiler):
1976         Clear __gcov_indreict_call_callee variable to avoid misattribution
1977         of the profile.
1978
1979 2008-05-28  Rafael Espindola  <espindola@google.com>
1980
1981         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
1982         invalid sharing.
1983
1984 2008-05-28  Richard Guenther  <rguenther@suse.de>
1985
1986         PR tree-optimization/36339
1987         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
1988         and clobbering code out of the loop.
1989
1990 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
1991
1992         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
1993         letters defined.
1994
1995         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
1996         s390_contiguous_bitmask_p, s390_symref_operand_p,
1997         s390_check_symref_alignment, s390_reload_larl_operand,
1998         s390_reload_symref_address): New functions.
1999         (s390_branch_condition_mnemonic): Support compare and branch
2000         instructions.
2001         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
2002         and 'W' constraints.
2003         (s390_secondary_reload): Add secondary reloads for unaligned
2004         symbol refs or symbol refs to floating point or QI/TI mode
2005         integer values.
2006         (legitimate_address_p): Accept symbol references as addresses.
2007         (s390_expand_insv): Use rotate and insert selected bits
2008         instruction for insv when building for z10.
2009         (print_operand_address): Handle symbol ref addresses.
2010         (print_operand): Output modifier 'c' added for signed byte values.
2011         (s390_encode_section_info): Mark symbol refs with
2012         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
2013
2014         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
2015         (length attribute): RRF, RRR have 4 byte length.
2016         (FPALL, INTALL): New mode iterators added.
2017         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
2018         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
2019         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
2020         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
2021         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
2022         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
2023         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
2024         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
2025         instructions.
2026         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
2027         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
2028         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
2029         reload<INTALL:mode><P:mode>_toreg_z10,
2030         reload<FPALL:mode><P:mode>_tomem_z10,
2031         reload<FPALL:mode><P:mode>_toreg_z10,
2032         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
2033         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
2034         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
2035         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
2036         definition.
2037         (movmem, clrmem, cmpmem): New splitters added.
2038
2039         * config/s390/predicates.md (larl_operand): Use
2040         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
2041         SYMBOL_REF_ALIGN1_P.
2042         (s390_signed_integer_comparison,
2043         s390_unsigned_integer_comparison): New predicates.
2044
2045         * config/s390/s390-protos.h (s390_check_symref_alignment,
2046         s390_contiguous_bitmask_p, s390_reload_larl_operand,
2047         s390_reload_symref_address,
2048         s390_compare_and_branch_condition_mask): Prototypes added.
2049
2050         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
2051         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
2052         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
2053
2054 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
2055
2056         * config/s390/s390.c (z10_cost): New cost function for z10.
2057         (s390_handle_arch_option, override_options): Support -march=z10 switch.
2058         (s390_issue_rate): Adjust issue rate for z10.
2059         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
2060         (processor_flags): Add PF_Z10.
2061         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
2062         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
2063         * gcc/config.gcc: Add z10.
2064
2065 2008-05-28  Richard Guenther  <rguenther@suse.de>
2066
2067         PR tree-optimization/36291
2068         * tree-flow. h (struct gimple_df): Remove var_anns member.
2069         * tree-flow-inline.h (gimple_var_anns): Remove.
2070         (var_ann): Simplify.
2071         * tree-dfa.c (create_var_ann): Simplify.
2072         (remove_referenced_var): Clear alias info from var_anns of globals.
2073         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
2074         (delete_tree_ssa): Clear alias info from var_anns of globals.
2075         Do not free var_anns.
2076         (var_ann_eq): Remove.
2077         (var_ann_hash): Likewise.
2078
2079 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
2080
2081         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
2082         and loongson2f entries.
2083         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
2084         * config/mips/mips.h (processor_type): Add Loongson-2E
2085         and Loongson-2F entries.
2086         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
2087         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
2088         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
2089         * doc/invoke.texi (MIPS Options): Document loongson2e
2090         and loongson2f processor names.
2091
2092 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2093
2094         PR target/35767
2095         PR target/35771
2096         * config/i386/i386.c (ix86_function_arg_boundary): Use
2097         alignment of canonical type.
2098         (ix86_expand_vector_move): Check unaligned memory access for
2099         all SSE modes.
2100
2101 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
2102
2103         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
2104         Moved to the front of file.
2105
2106 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
2107             H.J. Lu  <hongjiu.lu@intel.com>
2108
2109         * dwarf2out.c (current_fde): New.
2110         (add_cfi): Use it.
2111         (lookup_cfa:): Likewise.
2112         (dwarf2out_end_epilogue): Likewise.
2113         (dwarf2out_note_section_used): Likewise.
2114
2115 2008-05-27  Michael Matz  <matz@suse.de>
2116
2117         PR c++/27975
2118         * c.opt (Wenum-compare): New warning option.
2119         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
2120
2121 2008-05-27  Michael Matz  <matz@suse.de>
2122
2123         PR middle-end/36326
2124         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
2125         non-BLKmode types.
2126         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
2127         into memory as tail calls.
2128
2129 2008-05-27  Richard Guenther  <rguenther@suse.de>
2130
2131         PR tree-optimization/36339
2132         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
2133         pointers cause all addressable variables to be call clobbered.
2134
2135 2008-05-27  Richard Guenther  <rguenther@suse.de>
2136
2137         PR tree-optimization/36245
2138         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
2139
2140 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
2141
2142         * config/s390/s390.md: Replace all occurences of the 'm'
2143         constraint with 'RT'.
2144
2145 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
2146
2147         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
2148         definitions added.
2149         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
2150         "*movdi_64".
2151         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
2152         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
2153         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
2154
2155 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
2156
2157         * reload.c: (find_reloads): Skip alternatives according to the
2158         "enabled" attribute. Constify the constraint variable.
2159         * recog.c (get_attr_enabled): Add default implementation.
2160         (extract_insn): Set the alternative_enabled_p array
2161         in the recog_data struct.
2162         (preprocess_constraints, constrain_operands): Skip
2163         alternatives according to the "enabled" attribute
2164         * recog.h (struct recog_data): New field alternative_enabled_p.
2165         (skip_alternative): New inline function.
2166         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
2167         (record_reg_classes): Skip alternative according to the
2168         "enabled" attribute.
2169
2170         * doc/md.texi: Add documention for the "enabled" attribute.
2171
2172 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
2173
2174         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
2175         * postreload.c (reload_cse_simplify_operands): Replace 'm'
2176         constraint with TARGET_MEM_CONSTRAINT.
2177         * recog.c (asm_operand_ok, preprocess_constraints,
2178         constrain_operands): Likewise.
2179         * regclass.c (record_reg_classes): Likewise.
2180         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
2181         * reload1.c (maybe_fix_stack_asms): Likewise.
2182         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
2183         * recog.h: Adjust comment.
2184         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
2185         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
2186         * doc/md.texi: Add a note to description of 'm' constraint.
2187         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
2188
2189 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
2190
2191         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
2192         that the bitfield is of integral type before testing its precision.
2193
2194 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2195             Sa Liu  <saliu@de.ibm.com> 
2196
2197         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
2198         __modti3, __udivti3, __umodti3 and __udivmodti4.
2199         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
2200         that implement TImode mul and div functions.
2201         * config/spu/multi3.c: New. Implement __multi3.
2202         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
2203         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
2204         functions on SPU.
2205
2206 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
2207
2208         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
2209         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
2210         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
2211         tls_sysv_suffix): New mode and mode attribute iterators.
2212         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
2213         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
2214         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
2215         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
2216         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
2217         iterators.
2218
2219 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
2220
2221         PR tree-optimization/36329
2222         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
2223         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
2224         * cgraphbuild.c (initialize_inline_failed): Use the latter
2225         macro in lieu of the former.
2226         * ipa-inline.c (cgraph_mark_inline): Likewise.
2227         (cgraph_decide_inlining_of_small_function): Likewise.
2228         (cgraph_decide_inlining): Likewise.
2229         (cgraph_decide_inlining_incrementally): Likewise.
2230
2231 2008-05-26  Tristan Gingold  <gingold@adacore.com>
2232             Anatoly Sokolov  <aesok@post.ru>
2233
2234         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
2235         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
2236         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
2237         optimization for 'avr6' architecture.
2238
2239 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
2240
2241         PR target/34932
2242         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
2243
2244 2008-05-26  Richard Guenther  <rguenther@suse.de>
2245
2246         * tree-ssa-sccvn.c (expr_has_constants): Declare.
2247         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
2248
2249 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
2250
2251         PR middle-end/36253
2252         * caller-save.c (insert_restore): Verify alignment of spill space.
2253         (insert_save): Likewise.
2254         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
2255         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
2256         (STACK_SLOT_ALIGNMENT): Likewise.
2257         * function.c (LOCAL_ALIGNMENT): Removed.
2258         (get_stack_local_alignment): New.
2259         (assign_stack_local): Use it.  Set alignment on stack slot.
2260         (assign_stack_temp_for_type): Use get_stack_local_alignment.
2261         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
2262         (STACK_SLOT_ALIGNMENT): New.
2263         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
2264         stack slot in XFmode.
2265
2266         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
2267
2268 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
2269
2270         PR/36321
2271         * config/i386/i386.md (allocate_stack_worker_64): Make sure
2272         argument operand in rax isn't removed.
2273
2274 2008-05-26  Richard Guenther  <rguenther@suse.de>
2275
2276         PR middle-end/36300
2277         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
2278         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
2279
2280 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
2281
2282         PR bootstrap/36331
2283         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
2284
2285 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
2286
2287         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
2288         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
2289
2290 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2291
2292         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
2293         build a trampoline if we don't want one.
2294         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
2295         return zero for nested functions if we don't want a trampoline.
2296
2297 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
2298
2299         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
2300
2301 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
2302
2303         PR fortran/18428
2304         * c.opt: Removed undocumented option '-lang-fortran'.
2305         * c-common.h: Removed global variable 'lang_fortran'.
2306         * c-opts.c (c_common_handle_option): Removed code to handle
2307         option '-lang-fortran'. Updated includes.
2308         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
2309         definition of '__GFORTRAN__'.
2310         (define__GNUC__): Reimplemented to use BASEVER and
2311         cpp_define_formatted.
2312         (builtin_define_with_value_n): Removed.
2313         * c-incpath.h: Renamed to ...
2314         * incpath.h: ... this.
2315         * c-incpath.c: Renamed to ...
2316         * incpath.c: ... this. Updated includes.
2317         * fix-header.c: Updated includes.
2318         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
2319         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
2320         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
2321
2322 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
2323
2324         * tree.h: Update the table of flags used on tree nodes.
2325         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
2326         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
2327         (FORCED_LABEL): Add access check.
2328         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
2329         (ASM_INPUT_P): Likewise.
2330         (ASM_VOLATILE_P): Likewise.
2331         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
2332         (OMP_SECTION_LAST): Access private_flag directly.
2333         (OMP_RETURN_NOWAIT): Likewise.
2334         (OMP_PARALLEL_COMBINED): Likewise.
2335         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
2336         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
2337         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
2338         deprecated_flag directly.
2339
2340 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
2341
2342         * final.c (frame_pointer_needed): Removed.
2343         * flags.h (frame_pointer_needed): Likewise.
2344
2345         * function.h (rtl_data): Add frame_pointer_needed.
2346         (frame_pointer_needed): New.
2347
2348 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
2349
2350         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
2351
2352 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
2353
2354         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
2355         SRC is a REG.
2356
2357 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
2358
2359         * c-common.c (strip_array_types): Move function to..
2360         * tree.c: ..here.
2361         (get_inner_array_type): Delete.
2362         * c-common.h (strip_array_types): Move declaration to..
2363         * tree.h: ..here.
2364         (get_inner_array_type): Delete.
2365         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
2366         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
2367         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
2368         * config/pa/pa.c (emit_move_sequence): Likewise.
2369
2370 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
2371
2372         * config/i386/i386.md (*sse_prologue_save_insn): Set length
2373         attribute to 34.
2374
2375 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
2376
2377         * function.c: Include target hook for nonlocal_goto frame value.
2378
2379 2008-05-24  Richard Guenther  <rguenther@suse.de>
2380
2381         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
2382         variable can be only accessed through a pointer or a union.
2383
2384 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2385
2386         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
2387         * doc/extend.texi: Likewise.
2388
2389 2008-05-23  DJ Delorie  <dj@redhat.com>
2390
2391         * config/m32c/jump.md (untyped_call): Add.
2392
2393         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
2394         for A24 to PSImode.
2395         (m32c_address_cost): Detail costs for indirect offsets.
2396
2397 2008-05-23  Rafael Espindola  <espindola@google.com>
2398
2399         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
2400         if a node is a SUBREG.
2401         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
2402         is a SUBREG.
2403
2404 2008-05-23  Paul Brook  <paul@codesourcery.com>
2405             Carlos O'Donell  <carlos@codesourcery.com>
2406
2407         * doc/extend.texi: Clarify use of __attribute__((naked)).
2408         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
2409         * target.h (gcc_target): Add allocate_stack_slots_for_args.
2410         * function.c (use_register_for_decl): Use
2411         targetm.calls.allocate_stack_slots_for_args.
2412         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
2413         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
2414         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
2415
2416 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
2417
2418         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
2419
2420 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
2421
2422         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
2423         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
2424         is only rounded once.
2425
2426 2008-05-23  Richard Guenther  <rguenther@suse.de>
2427
2428         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
2429
2430 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
2431             Jakub Jelinek  <jakub@redhat.com>
2432
2433         PR target/36079
2434         * configure.ac: Handle --enable-cld.
2435         * configure: Regenerated.
2436         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
2437         * config/i386/i386.h (struct machine_function): Add needs_cld field.
2438         (ix86_current_function_needs_cld): New define.
2439         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
2440         (cld): New isns pattern.
2441         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
2442         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
2443         * config/i386/i386.opt (mcld): New option.
2444         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
2445         TARGET_CLD and ix86_current_function_needs_cld.
2446         (override_options): Use -mcld by default for 32-bit code if
2447         USE_IX86_CLD.
2448
2449         * doc/install.texi (Options specification): Document --enable-cld.
2450         * doc/invoke.texi (Machine Dependent Options)
2451         [i386 and x86-64 Options]: Add -mcld option.
2452         (Intel 386 and AMD x86-64 Options): Document -mcld option.
2453
2454 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
2455         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
2456         (return_in_memory_64): Likewise.
2457         (return_in_memory_ms_64): Likewise.
2458
2459 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2460
2461         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
2462         * builtins.c (fold_builtin_fpclassify): New.
2463         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
2464         * builtins.def (BUILT_IN_FPCLASSIFY): New.
2465         * c-common.c (handle_type_generic_attribute): Adjust to accept
2466         fixed arguments before an elipsis.
2467         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
2468         * doc/extend.texi: Document __builtin_fpclassify.
2469
2470 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
2471
2472         * omp-low.c (gate_expand_omp_ssa): Remove.
2473         (pass_expand_omp_ssa): Remove.
2474         (gate_expand_omp): Do not check for flag_openmp_ssa.
2475         * common.opt (-fopenmp-ssa): Remove.
2476         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
2477
2478 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
2479
2480         * config/sh/sh.opt (mfixed-range): New option.
2481         * config/sh/sh-protos.h (sh_fix_range): Declare.
2482         * config/sh/sh.c (sh_fix_range): New function.
2483         * config/sh/sh.h (sh_fixed_range_str): Declare.
2484         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
2485         is not empty.
2486         * doc/invoke.texi (SH Options): Document -mfixed-range.
2487
2488 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
2489
2490         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
2491         it before the redeclaration.
2492
2493 2008-05-22  Anatoly Sokolov <aesok@post.ru>
2494
2495         * config/avr/avr.c (get_sequence_length): Add new function.
2496         (expand_prologue, expand_epilogue): Remove duplicate code.
2497
2498 2008-05-22  Rafael Espindola  <espindola@google.com>
2499
2500         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
2501         sharing.
2502
2503 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
2504
2505         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
2506         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
2507
2508         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
2509         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
2510         (vect_update_misalignment_for_peel): Likewise.
2511         (vector_alignment_reachable_p): Likewise.
2512         * tree-vect-transform.c (vectorizable_load): Likewise.
2513         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
2514         (get_vectype_for_scalar_type): Pass mode of scalar_type
2515         to UNITS_PER_SIMD_WORD.
2516
2517         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
2518         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2519         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2520         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2521         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2522
2523 2008-05-22  Ira Rosen  <irar@il.ibm.com>
2524
2525         PR tree-optimization/36293
2526         * tree-vect-transform.c (vect_transform_strided_load): Don't check
2527         if the first load must be skipped because of a gap.
2528
2529 2008-05-22  Richard Guenther  <rguenther@suse.de>
2530
2531         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
2532         more cases of offset disambiguation that is possible if
2533         strict-aliasing rules apply.
2534         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
2535         for basic offset and type-based disambiguation.
2536
2537 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2538
2539         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
2540         ix86_expand_vector_set on V16QImode for SSE4.1.
2541
2542 2008-05-21  Tom Tromey  <tromey@redhat.com>
2543
2544         * c.opt (Wimport): Mark as undocumented.
2545         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
2546         -Wno-import.
2547         (Warning Options): Likewise.
2548         * doc/cppopts.texi: Don't mention -Wimport.
2549
2550 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
2551
2552         PR tree-optimization/36287
2553         PR tree-optimization/36286
2554         * lambda-code.c (build_access_matrix): Do not use the loop->num
2555         for computing the number of induction variables: use the loop depth
2556         instead.
2557
2558 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
2559
2560         PR/36280
2561         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
2562         option -f(no-)leading-underscore.
2563
2564 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2565
2566         * config/i386/i386.c (ix86_expand_vector_init_general): Use
2567         GET_MODE_NUNITS (mode).
2568
2569 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
2570
2571         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
2572         (-mmulhw): Add 464 to description.
2573         (-mdlmzb): Likewise.
2574         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
2575         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
2576         464fp entries.
2577         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
2578         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
2579         * config/rs6000/rs6000.md: Update comments for 464.
2580
2581 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
2582
2583         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
2584
2585 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2586
2587         * config/i386/sse.md (vec_extractv4sf): Removed.
2588         (vec_extractv2df): Likewise.
2589         (vec_extractv2di): Likewise.
2590         (vec_extractv4si): Likewise.
2591         (vec_extractv8hi): Likewise.
2592         (vec_extractv16qi): Likewise.
2593         (vec_extract<mode>): New.
2594
2595 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2596
2597         * config/i386/sse.md (vec_setv4sf): Removed.
2598         (vec_setv2df): Likewise.
2599         (vec_setv2di): Likewise.
2600         (vec_setv4si): Likewise.
2601         (vec_setv8hi): Likewise.
2602         (vec_setv16qi): Likewise.
2603         (vec_set<mode>): New.
2604
2605 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2606
2607         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
2608         goto for vec_concat and vec_interleave.
2609
2610 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
2611
2612         * config/i386/sse.md (vec_initv4sf): Removed.
2613         (vec_initv2df): Likewise.
2614         (vec_initv2di): Likewise.
2615         (vec_initv4si): Likewise.
2616         (vec_initv8hi): Likewise.
2617         (vec_initv16qi): Likewise.
2618         (vec_init<mode>): New.
2619
2620 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
2621
2622         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
2623
2624 2008-05-21  Tom Tromey  <tromey@redhat.com>
2625
2626         * ggc-zone.c (lookup_page_table_if_allocated): New function.
2627         (zone_find_object_offset): Likewise.
2628         (gt_ggc_m_S): Likewise.
2629         (highest_bit): Likewise.
2630         * ggc-page.c (gt_ggc_m_S): New function.
2631         * stringpool.c (string_stack): Remove.
2632         (init_stringpool): Update.
2633         (ggc_alloc_string): Use ggc_alloc.
2634         (maybe_delete_ident): New function.
2635         (ggc_purge_stringpool): Likewise.
2636         (gt_ggc_m_S): Remove.
2637         * ggc-common.c (ggc_protect_identifiers): New global.
2638         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
2639         ggc_protect_identifiers.
2640         * ggc.h (ggc_protect_identifiers): Declare.
2641         (gt_ggc_m_S): Update.
2642         (ggc_purge_stringpool): Declare.
2643         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
2644         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
2645         special case.
2646         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
2647
2648 2008-05-21  David S. Miller  <davem@davemloft.net>
2649
2650         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
2651         tmake_file.
2652
2653 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2654
2655         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
2656         once finished.
2657
2658 2008-05-20  David Daney  <ddaney@avtrex.com>
2659
2660         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
2661         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
2662         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2663         UNSPEC_UPDATE_GOT_VERSION): Renumber.
2664         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
2665         (atomic_hiqi_op): New define_code_iterator.
2666         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
2667         mips_expand_compare_and_swap_12.
2668         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
2669         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
2670         (sync_<optab><mode>, sync_old_<optab><mode>,
2671         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
2672         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
2673         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
2674         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
2675         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
2676         (test_and_set_12): New insn.
2677         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
2678         sync_new_<optab><mode>, sync_old_nand<mode>,
2679         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
2680         clobber to operand 0 for SI and DI mode insns.
2681         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
2682         mips_gen_fn_4): New typedefs.
2683         (mips_gen_fn_ptrs): Define new union type.
2684         (mips_expand_compare_and_swap_12): Remove declaration.
2685         (mips_expand_atomic_qihi): Declare function.
2686         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
2687         (mips_expand_atomic_qihi): ... this.  Use new generator function
2688         parameter.
2689         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
2690         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
2691         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
2692         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
2693         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
2694         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
2695         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
2696         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
2697         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
2698         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
2699         New macros.
2700
2701 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
2702
2703         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
2704         the missing break.
2705
2706 2008-05-20  Anatoly Sokolov <aesok@post.ru>
2707
2708         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
2709         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
2710         (avr_attribute_table): Add 'OS_main' function attribute.
2711         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
2712         functions with 'OS_main' attribute.
2713
2714 2008-05-20  Richard Guenther  <rguenther@suse.de>
2715
2716         PR tree-optimization/35204
2717         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
2718         helper, split out from ...
2719         (DFS): ... here.  Make the DFS walk non-recursive.
2720
2721 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
2722             Jan Sjodin  <jan.sjodin@amd.com>
2723
2724         PR tree-optimization/36181
2725         * tree-parloops.c (loop_has_vector_phi_nodes): New.
2726         (parallelize_loops): Don't parallelize when the loop has vector
2727         phi nodes.
2728
2729 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
2730             Sebastian Pop  <sebastian.pop@amd.com>
2731
2732         * tree-loop-linear.c (gather_interchange_stats): Look in the access
2733         matrix, and never look at the tree representation of the memory
2734         accesses.
2735         (linear_transform_loops): Computes parameters and access matrices.
2736         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
2737         when fails.
2738         (access_matrix_get_index_for_parameter): New.
2739         * tree-data-ref.h (struct access_matrix): New.
2740         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
2741         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
2742         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
2743         am_vector_index_for_loop): New.
2744         (struct data_reference): Add field access_matrix.
2745         (DR_ACCESS_MATRIX): New.
2746         (compute_data_dependences_for_loop): Update declaration.
2747         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
2748         * lambda.h (lambda_vector_vec_p): Declared.
2749         * lambda-code.c: Depend on pointer-set.h.
2750         (lambda_collect_parameters_from_af, lambda_collect_parameters,
2751         av_for_af_base, av_for_af, build_access_matrix,
2752         lambda_compute_access_matrices): New.
2753         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
2754
2755 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
2756
2757         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
2758         $SOURCEDIR/include.
2759
2760 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
2761             Sebastian Pop  <sebastian.pop@amd.com>
2762
2763         PR tree-optimization/36206
2764         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
2765         FOLD_CONVERSIONS.
2766         (instantiate_scev_1): Rename flags to fold_conversions.
2767         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
2768         outeside instantiation_loop.
2769         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
2770         (evolution_function_is_affine_or_constant_p): Removed.
2771         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
2772         instantiate_scev.
2773         (analyze_siv_subscript): Pass in the loop nest number.
2774         Call evolution_function_is_affine_in_loop instead of 
2775         evolution_function_is_affine_p.
2776         (analyze_overlapping_iterations): Pass in the loop nest number.
2777
2778 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
2779             Sebastian Pop  <sebastian.pop@amd.com>
2780
2781         PR tree-optimization/36206
2782         * tree-chrec.h (chrec_fold_op): New.
2783         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
2784         and other trees.
2785
2786 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
2787
2788         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
2789         (DIRS_EQ): New.
2790         (remove_duplicates): Do not set inode on non-inode systems.
2791         Use DIRS_EQ.
2792
2793 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
2794
2795         * config.gcc (tm_file): Update comments about relative pathnames.
2796
2797 2008-05-20  Richard Guenther  <rguenther@suse.de>
2798
2799         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
2800         * tree-ssa-sccvn.c (process_scc): Likewise.
2801         * tree-ssa-sink.c (execute_sink_code): Likewise.
2802         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2803         * tree-vrp.c (process_assert_insertions): Likewise.
2804         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
2805         (perform_tree_ssa_dce): Likewise.
2806         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2807         (dump_dominator_optimization_stats): Likewise.
2808         * tree-vectorizer.c (vectorize_loops): Likewise.
2809
2810 2008-05-20  Richard Guenther  <rguenther@suse.de>
2811
2812         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
2813
2814 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
2815
2816         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
2817         (ix86_i386elf_return_in_memory): Likewise.
2818         (ix86_i386interix_return_in_memory): Likewise.
2819         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
2820         (SUBTARGET_RETURN_IN_MEMORY): New.
2821         * config/i386/i386elf.h: Likewise.
2822         * config/i386/ptx4-i.h: Likewise.
2823         * config/i386/sol2-10.h: Likewise.
2824         * config/i386/sysv4.h: Likewise.
2825         * config/i386/vx-common.h: Likewise.
2826         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
2827         * config/i386/i386.c (ix86_return_in_memory): Made static and
2828         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
2829         (ix86_i386elf_return_in_memory): Removed.
2830         (ix86_i386interix_return_in_memory): Removed.
2831         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
2832         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
2833
2834 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
2835
2836         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
2837
2838 2008-05-19  Xinliang David Li  <davidxl@google.com>
2839
2840         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
2841         * opts.c: Ditto.
2842         * common.opt: Ditto.
2843         * doc/invoke.texi: Ditto.
2844
2845 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
2846
2847         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
2848         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
2849
2850 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2851
2852         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
2853         sizes of operand array from 8/4 to 4/2.
2854         (ix86_expand_vector_init_general): Change size of operand array
2855         from 32 to 16.  Remove op0, op1 and half_mode.
2856
2857 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
2858
2859         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
2860         (ix86_expand_vector_init_interleave): Likewise.
2861         (ix86_expand_vector_init_general): Use them.  Assert
2862         word_mode == SImode when n_words == 4.
2863
2864 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
2865
2866         * config/i386/i386.c (ix86_secondary_reload): New static function.
2867         (TARGET_SECONDARY_RELOAD): New define.
2868         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2869         * config/i386/i386.md (reload_outqi): Remove.
2870
2871 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2872
2873         PR middle-end/35509
2874         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
2875         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
2876         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
2877         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
2878         (fold_builtin_1): Likewise.
2879         * builtins.def (BUILT_IN_ISINF_SIGN): New.
2880         c-common.c (check_builtin_function_arguments): Handle
2881         BUILT_IN_ISINF_SIGN.
2882         * doc/extend.texi: Document __builtin_isinf_sign.
2883         * fold-const.c (operand_equal_p): Handle COND_EXPR.
2884
2885 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
2886
2887         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
2888         EH cleanup at the end of the pass, search for those that have been
2889         turned into forwarder blocks and do the cleanup on their successor.
2890
2891 2008-05-18  Richard Guenther  <rguenther@suse.de>
2892
2893         * tree-cfg.c (verify_gimple_expr): Allow conversions from
2894         pointers to sizetype and vice versa.
2895
2896 2008-05-18 Xinliang David Li   <davidxl@google.com>
2897
2898         * gcc/tree-ssa-dce.c: Coding style fix.
2899         (check_pow): Documentation comment. 
2900         (check_log): Documenation comment. Coding style fix.
2901         (is_unnecessary_except_errno_call): Ditto.
2902         (gen_conditions_for_pow): Ditto.
2903         (gen_conditions_for_log): Ditto.
2904         (gen_shrink_wrap_conditions): Ditto.
2905         (shrink_wrap_one_built_in_calls): Ditto.
2906         * gcc/doc/invoke.texi: Better documentation string.
2907         * ChangeLog: Fix wrong change log entries from 
2908         May 17 checkin on function call DCE.
2909
2910 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
2911
2912         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
2913
2914 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
2915
2916         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
2917         * df-problems.c (simulation routines): Fixed block comment to
2918         properly say how to add forwards scanning functions.
2919         
2920 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
2921
2922         * tree-inline.c (setup_one_parameter): Remove dead code.
2923
2924 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
2925
2926         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
2927         a BIT_AND_EXPR only for an INTEGER_TYPE.
2928
2929 2008-05-17 Xinliang David Li   <davidxl@google.com>
2930
2931         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
2932         (check_pow, check_log, is_unnecessary_except_errno_call): New 
2933         functions to check for eliminating math functions that are pure 
2934         except for setting errno.
2935         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
2936         general condition expressions for shrink-wrapping pow/log calls.
2937         (gen_shrink_wrap_conditions): Ditto.
2938         (shrink_wrap_one_built_in_call): Ditto.
2939         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
2940         (mark_operand_necessary): If debugging, output if OP is necessary.
2941         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
2942         unnecessary.
2943         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
2944         opt level >= 2.
2945         * gcc/common.opt: New user flag -ftree-builtin-dce.
2946         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
2947
2948 2008-05-16  David S. Miller  <davem@davemloft.net>
2949
2950         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
2951         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2952
2953 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
2954
2955         PR target/36246
2956         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
2957
2958 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2959
2960         * ifcvt.c (dead_or_predicable): Rename
2961         df_simulate_one_insn_backwards to df_simulate_one_insn.
2962         * recog.c (peephole2_optimize): Ditto.
2963         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
2964         Ditto.
2965         * df.h: Rename df_simulate_one_insn_backwards to
2966         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
2967         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
2968         scanning of defs and uses.
2969         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
2970         (df_simulate_one_insn_forwards): Removed.
2971
2972 2008-05-16  Doug Kwan  <dougkwan@google.com>
2973
2974         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
2975         QNaN & SNaN.
2976         (real_from_string): Handle NaNs and Inf as approriate.
2977
2978 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
2979
2980         * doc/gty.texi (Source Files Containing Type Information): Note
2981         that headers should appear first in the gtfiles list.
2982
2983 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2984
2985         * tree.def (COND_EXEC): Properly documented this code.
2986
2987 2008-05-16  Diego Novillo  <dnovillo@google.com>
2988
2989         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
2990         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
2991         the new field.
2992
2993 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
2994
2995         * tree-ssa-dse (max_stmt_uid): Removed.
2996         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
2997         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
2998         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
2999         * function.h (cfun.last_stmt_uid): New field.
3000         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
3001         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
3002         New functions.
3003         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
3004         (create_stmt_ann): Initialize the ann->uid field.
3005         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
3006         with new calls.
3007         * tree-flow.h (renumber_gimple_stmt_uids): New function.
3008
3009 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
3010
3011         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
3012         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
3013         (init_empty_tree_cfg): Call it.
3014
3015 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
3016
3017         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
3018         Update all users.
3019
3020 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
3021
3022         * doc/invoke.text (-fdump-tree-*-verbose): New option.
3023         * tree-dump.c (dump_options): New verbose option.
3024         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
3025         Add verbose dump.
3026         * tree-pass.h (TDF_VERBOSE): New dump flag.
3027         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
3028         (tree-flow.h): Added include.
3029         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
3030
3031 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
3032
3033         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
3034
3035         From Jie Zhang  <jie.zhang@analog.com>
3036         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3037         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
3038         mcpu=bf561-none and mcpu=bf561-0.2.
3039         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3040         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
3041         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3042         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
3043         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
3044         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
3045         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
3046         option.
3047         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
3048         (cputype_selected): Remove.
3049         (bfin_handle_option): Don't use cputype_selected.
3050         (override_options): When no mcpu option, enable all workarounds.
3051         Don't use bfin_workarounds.
3052         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
3053         processor type.
3054         (DEFAULT_CPU_TYPE): Don't define.
3055
3056 2008-05-16  Richard Guenther  <rguenther@suse.de>
3057
3058         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
3059         on deletion of the last stmt.
3060
3061 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3062
3063         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
3064         V8HImode for SSE2 and V16QImode for SSE4.1.
3065
3066 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
3067
3068         * cgraph.h (compute_inline_parameters): Made public.
3069         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
3070         variable_generate_summary, function_write_summary,
3071         variable_write_summary, variable_read_summary.  Added generate_summary,
3072         write_summary, read_summary.
3073         * cgraphunit.c (cgraph_process_new_functions): Changed call from
3074         pass_ipa_inline.function_generate_summary, to
3075         compute_inline_parameters. 
3076         * ipa-inline.c (compute_inline_parameters): Made public and added
3077         node parameter.
3078         (compute_inline_parameters_for_current): New function.
3079         (pass_inline_param): Now calls compute_inline_parameters_for_current.
3080         (inline_generate_summary): Removed parameter and made to loop over
3081         all cgraph nodes.
3082         (pass_ipa_inline): Updated for new IPA_PASS structure.
3083         * passes.c (execute_ipa_summary_passes): Now is called once per
3084         pass rather than once per node*pass.
3085         
3086 2008-05-15  Anatoly Sokolov <aesok@post.ru>
3087
3088         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
3089         avr_have_mul_p, avr_asm_only_p): Remove variables.
3090         (avr_override_options): Remove initialization of removed variables.
3091         (avr_file_start):  Convert removed variables to fields of 
3092         'struct base_arch_s *avr_current_arch'. 
3093         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
3094         (AVR_HAVE_MUL): (Ditto.).
3095         (AVR_HAVE_MOVW): (Ditto.).
3096         (AVR_HAVE_LPMX): (Ditto.). 
3097         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
3098         avr_asm_only_p): Remove declaration.
3099
3100 2008-05-15  Diego Novillo  <dnovillo@google.com>
3101
3102         * config/arm/arm.c (arm_return_in_memory): Fix return type.
3103         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
3104
3105 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
3106
3107         PR middle-end/36194
3108         * combine.c (check_conversion): Rename back to check_promoted_subreg.
3109         Don't call record_truncated_value from here.
3110         (record_truncated_value): Turn it into a for_each_rtx callback.
3111         (record_truncated_values): New function.
3112         (combine_instructions): Call note_uses with record_truncated_values.
3113         Change name of check_conversion to check_promoted_subreg. 
3114
3115 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
3116
3117         * doc/sourcebuild.texi: Document support for torture tests.
3118
3119 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
3120
3121         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
3122         to alternative 4 of operand 2.
3123
3124 2008-05-15  Richard Guenther  <rguenther@suse.de>
3125
3126         * tree-pass.h (current_pass): Declare.
3127         (get_pass_for_id): Likewise.
3128         * passes.c (passes_by_id, passes_by_id_size): New globals.
3129         (set_pass_for_id): New function.
3130         (get_pass_for_id): Likewise.
3131         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
3132         (execute_function_todo): Flush per function statistics.
3133         * toplev.c (compile_file): Init statistics.
3134         (general_init): Do early statistics initialization.
3135         (finalize): Finish statistics.
3136         * statistics.h (statistics_early_init): Declare.
3137         (statistics_init): Likewise.
3138         (statistics_fini): Likewise.
3139         (statistics_fini_pass): Likewise.
3140         (statistics_counter_event): Likewise.
3141         (statistics_histogram_event): Likewise.
3142         * statistics.c: New file.
3143         * Makefile.in (OBJS-common): Add statistics.o.
3144         (statistics.o): Add dependencies.
3145         * doc/invoke.texi (-fdump-statistics): Document.
3146
3147         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
3148         (insert): Likewise.
3149         (execute_pre): Use statistics_counter_event.
3150         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
3151         (substitute_and_fold): Increment it.  Use statistics_counter_event.
3152
3153 2008-05-15  Diego Novillo  <dnovillo@google.com>
3154
3155         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
3156
3157         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
3158         * tree-ssa-alias.c (new_type_alias): Remove references to
3159         sub-variables from comment.
3160         * tree-ssa-operands.c (swap_tree_operands): Likewise.
3161
3162 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
3163
3164         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
3165         attribute to 1 only for insertps alternative.
3166
3167 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
3168
3169         * config/bfin/bfin.md (loadbytes): New pattern.
3170         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
3171         (bfin_init_builtins): Initialize it.
3172         (bdesc_1arg): Add it.
3173
3174 2008-05-15  Sa Liu  <saliu@de.ibm.com>
3175
3176         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
3177         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
3178         * testsuite/lib/target-supports.exp: Add
3179         check_effective_target_fortran_integer_16.
3180
3181 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
3182
3183         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
3184         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
3185         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
3186         (TARGET_RETURN_IN_MEMORY): Define.
3187
3188 2008-05-15  Richard Guenther  <rguenther@suse.de>
3189
3190         PR middle-end/36244
3191         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
3192         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
3193         represent unmodifiable vars.
3194
3195 2008-05-15  Richard Guenther  <rguenther@suse.de>
3196
3197         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
3198         INDIRECT_REF and TARGET_MEM_REF.
3199         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
3200         TARGET_MEM_REF.
3201
3202 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
3203             H.J. Lu  <hongjiu.lu@intel.com>
3204
3205         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
3206         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
3207         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
3208         insn alternatives.  Add missing alternatives.
3209         (*vec_concatv2di_rex64_sse4_1): Likewise.
3210         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
3211         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
3212         Require TARGET_SSE.
3213
3214 2008-05-15  Richard Guenther  <rguenther@suse.de>
3215
3216         PR tree-optimization/36009
3217         PR tree-optimization/36204
3218         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
3219         (determine_invariantness_stmt): Record the loop a store is
3220         always executed in.
3221         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
3222         dependency.
3223
3224 2008-05-15  Richard Guenther  <rguenther@suse.de>
3225
3226         PR tree-optimization/34330
3227         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
3228         through the pointer will alias the SMT.
3229
3230 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
3231
3232         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
3233
3234 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
3235
3236         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
3237
3238 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
3239             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
3240
3241         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
3242         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
3243         (vashl_optab): New optab for vector/vector shifts.
3244         (vashr_optab): Ditto.
3245         (vlshr_optab): Ditto.
3246         (vrotl_optab): Ditto.
3247         (vrotr_optab): Ditto.
3248         (optab_subtype): New enum for optab_for_tree_code call.
3249         (optab_for_tree_code): Add enum optab_subtype argument.
3250
3251         * optabs.c (optab_for_tree_code): Take an additional argument to
3252         distinguish between a vector shift by a scalar and vector shift by
3253         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
3254         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
3255         vector shift by a vector.
3256         (expand_widen_pattern_expr): Pass additional argument to
3257         optab_for_tree_code.
3258
3259         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
3260         vrotl_optab, vrotr_optab.
3261
3262         * expr.c (expand_expr_real_1): Update calls to
3263         optab_for_tree_code to distinguish between vector shifted by a
3264         scalar and vector shifted by a vector.
3265         * tree-vectorizer.c (supportable_widening_operation): Ditto.
3266         (supportable_narrowing_operation): Ditto.
3267         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
3268         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
3269         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
3270         (vect_create_epilog_for_reduction): Ditto.
3271         (vectorizable_reduction): Ditto.
3272         (vectorizable_operation): Ditto.
3273         (vect_strided_store_supported): Ditto.
3274         (vect_strided_load_supported): Ditto.
3275         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
3276         * expmed.c (expand_shift): Ditto.
3277
3278         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
3279         scalar type.
3280         (ashr@var{m}3): Ditto.
3281         (vashl@var{m}3): Document new vector/vector shift standard name.
3282         (vashr@var{m}3): Ditto.
3283         (vlshr@var{m}3): Ditto.
3284         (vrotl@var{m}3): Ditto.
3285         (vrotr@var{m}3): Ditto.
3286
3287         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
3288         (PPERM_INVERT): Ditto.
3289         (PPERM_REVERSE): Ditto.
3290         (PPERM_REV_INV): Ditto.
3291         (PPERM_ZERO): Ditto.
3292         (PPERM_ONES): Ditto.
3293         (PPERM_SIGN): Ditto.
3294         (PPERM_INV_SIGN): Ditto.
3295         (PPERM_SRC1): Ditto.
3296         (PPERM_SRC2): Ditto.
3297
3298         * config/i386/sse.md (mulv2di3): Add SSE5 support.
3299         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
3300         allows a memory operand to be the value being added, and split it
3301         to improve vectorization.
3302         (sse5_pmacsdqh_mem): Ditto.
3303         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
3304         (sse5_mulv2div2di3_high): Ditto.
3305         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
3306         (vec_pack_trunc_v4si): Ditto.
3307         (vec_pack_trunc_v2di): Ditto.
3308         (sse5_pcmov_<mode>): Remove code that tried to use use
3309         andps/andnps instead of pcmov.
3310         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
3311         pmacsdqh instructions.
3312         (vec_widen_smult_lo_v4si): Ditto.
3313
3314         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
3315         (PPERM_INVERT): Ditto.
3316         (PPERM_REVERSE): Ditto.
3317         (PPERM_REV_INV): Ditto.
3318         (PPERM_ZERO): Ditto.
3319         (PPERM_ONES): Ditto.
3320         (PPERM_SIGN): Ditto.
3321         (PPERM_INV_SIGN): Ditto.
3322         (PPERM_SRC1): Ditto.
3323         (PPERM_SRC2): Ditto.
3324         (ix86_expand_sse_movcc): Move the SSE5 test after the if
3325         true/false tests.
3326         (ix86_expand_int_vcond): If SSE5 generate all possible integer
3327         comparisons.
3328         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
3329         says ignore whether the last reference is a memory operand.
3330
3331 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
3332             Paolo Bonzini <bonzini at gnu dot org>
3333
3334         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
3335         shift patterns.
3336
3337         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
3338         (vlshr<mode>3): Rename from vlshr<mode>3.
3339         (vashr<mode>3): Rename from vashr<mode>3.
3340         (mulv4sf3): Change the names of vector shift patterns.
3341         (mulv4si3): Ditto.
3342         (negv4sf2): Ditt.
3343
3344         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
3345         shift insns.
3346
3347         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
3348         (SI_SHLHI): Ditto.
3349         (SI_SHL): Ditto.
3350         (SI_SHLI): Ditto.
3351         (SI_ROTH): Ditto.
3352         (SI_ROTHI): Ditto.
3353         (SI_ROT): Ditto.
3354         (SI_ROTI): Ditto.
3355         (SPU_RL_0): Ditto.
3356         (SPU_RL_1): Ditto.
3357         (SPU_RL_2): Ditto.
3358         (SPU_RL_3): Ditto.
3359         (SPU_RL_4): Ditto.
3360         (SPU_RL_5): Ditto.
3361         (SPU_RL_6): Ditto.
3362         (SPU_RL_7): Ditto.
3363         (SPU_SL_0): Ditto.
3364         (SPU_SL_1): Ditto.
3365         (SPU_SL_2): Ditto.
3366         (SPU_SL_3): Ditto.
3367         (SPU_SL_4): Ditto.
3368         (SPU_SL_5): Ditto.
3369         (SPU_SL_6): Ditto.
3370         (SPU_SL_7): Ditto.
3371
3372         * config/spu/spu.md (v): New iterator macro to add v for vector types.
3373         (floatunssidf2_internal): Change vector/vector shift names.
3374         (floatunsdidf2_internal): Ditto.
3375         (mulv8hi3): Ditto.
3376         (ashrdi3): Ditto.
3377         (ashrti3): Ditto.
3378         (cgt_df): Ditto.
3379         (cgt_v2df): Ditto.
3380         (dftsv): Ditto.
3381         (vashl<mode>3): Rename from ashl<mode>3.
3382         (vashr<mode>3): Rename from ashr<mode>3.
3383         (vlshr<mode>3): Rename from lshr<mode>3.
3384         (vrotl<mode>3): Rename from rotl<mode>3.
3385
3386 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
3387
3388         PR target/36224
3389         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned