1 2008-06-18 Maxim Kuvyrkov <maxim@codesourcery.com>
3 * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
5 (ISA_HAS_FP_CONDMOVE): New macro.
6 (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
7 (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
8 (ISA_HAS_NMADD3_NMSUB3): New macro.
9 * config/mips/mips.c (mips_rtx_costs): Update.
10 * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
11 compiling for ST Loongson 2E/2F.
12 (madd<mode>): Rename to madd4<mode>. Update.
13 (madd3<mode>): New pattern.
14 (msub<mode>): Rename to msub4<mode>. Update.
15 (msub3<mode>): New pattern.
16 (nmadd<mode>): Rename to nmadd4<mode>. Update.
17 (nmadd3<mode>): New pattern.
18 (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath. Update.
19 (nmadd3<mode>_fastmath): New pattern.
20 (nmsub<mode>): Rename to nmsub4<mode>. Update.
21 (nmsub3<mode>): New pattern.
22 (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath. Update.
23 (nmsub3<mode>_fastmath): New pattern.
24 (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
26 2008-06-18 Steven Bosscher <steven@gcc.gnu.org>
28 * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
29 (DF_REF_INSN_INFO): New.
30 (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
31 (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
32 with a NULL DF_REF_INSN_INFO.
33 (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
35 (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
36 DF_INSN_INFO_EQ_USES): New.
37 (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
38 DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
39 DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
40 * df-core.c: Update comment for above changes.
41 (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
43 (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
44 * df-scan.c (df_ref_record): Take a df_insn_info instead of an
45 insn rtx. Update all callers.
46 (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
47 df_ref_create_structure, df_insn_refs_collect): Likewise.
48 (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
49 * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
50 (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
51 macros to access the insn refs.
52 (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
53 * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
54 (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
55 for accessing the refs.
56 (try_fwprop_subst): Likewise.
57 * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
58 * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
59 for accessing the refs.
60 * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
61 (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
62 to look at the insn refs.
63 (record_uses): Likewise.
64 * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
66 (mark_artificial_uses): Don't mark_insn for artificial refs.
67 (mark_reg_rependencies): Likewise.
69 * doc/rtl.texi: Remove documentation of ADDRESSOF.
71 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73 * configure: Regenerate.
75 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
77 * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
78 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
79 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
81 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
83 * config/avr/avr.c (avr_mcu_t): Add attiny167.
84 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
85 * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
87 2008-06-17 Eric B. Weddington <eric.weddington@atmel.com>
89 * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
90 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
91 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
93 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
95 * tree-ssa-sccvn.c: Fix format of comments.
97 2008-06-17 Bernhard Fischer <aldot@gcc.gnu.org>
99 * cgraph.c: Remove unneeded forward declarations of eq_node()
102 2008-06-17 Steven Bosscher <steven@gcc.gnu.org>
104 * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
106 (see_update_relevancy): Likewise.
107 * fwprop.c (try_fwprop_subst): Likewise.
108 * rtlanal.c (noop_move_p): Likewise.
109 * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
110 notes to non-existing libcall blocks.
111 * cse.c (cse_insn): Change prototype. Don't update libcall notes.
113 (cse_extended_basic_block): Don't track libcall and no-conflict notes.
114 (dead_libcall_p): Remove.
115 (delete_trivially_dead_insns): Don't use it.
116 * web.c (union_defs): Remove comment about keeping nops.
117 * gcse.c (hash_scan_insn): Don't take libcall pointers.
118 (compute_hash_table_work): Don't track libcall notes.
119 (do_local_cprop): Don't take libcall pointers. Don't update
121 (adjust_libcall_notes): Deleted.
122 (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
123 ever have existed in the first place).
124 (replace_store_insn): Don't try to remove libcall notes.
125 * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
126 (resolve_reg_notes): Don't call them.
127 (resolve_simple_move): Likewise.
128 (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
129 Don't remove REG_RETVAL notes.
130 * emit-rtl.c (try_split): Don't update libcall notes.
131 (emit_copy_of_insn_after): Dito.
132 * cselib.c (cselib_current_insn_in_libcall): Remove.
133 (cselib_process_insn): Don't set/clear it.
134 (new_elt_loc_list): Don't record it.
135 (cselib_init): Don't initialize it.
136 * cselib.c (struct elt_loc_list): Remove in_libcall field.
137 * loop-invariant.c (find_invariant_insn): Don't look for libcall
139 * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
140 (sched_analyze): Don't set up deps->libcall_block_tail_insn.
141 (init_deps): Don't initialize it.
142 * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
143 * combine.c (delete_noop_moves): Don't update libcall notes.
144 (can_combine_p): Remove now pointless #if 0 block.
145 (try_combine): Remove another obsolete #if 0 block.
146 (distribute_notes): Don't distribute libcall notes.
147 * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
148 * dce.c (libcall_dead_p): Remove.
149 (delete_unmarked_insns): Don't handle libcall blocks.
150 (preserve_libcall_for_dce): Remove.
151 (prescan_insns_for_dce): Don't special-case libcall block insns.
152 * reload1 (reload): Don't handle libcall notes.
153 * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
156 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
158 * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
159 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
160 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
162 2008-06-16 Eric B. Weddington <eric.weddington@atmel.com>
164 * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
165 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
166 * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
168 2008-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
170 * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
172 2008-06-16 Ira Rosen <irar@il.ibm.com>
174 PR tree-optimization/36493
175 * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
176 the arguments list. Use VECTYPE to create vector pointer.
177 (vectorizable_store): Fail if accesses through a pointer to vectype
178 do not alias the original memory reference operands.
179 Call vect_create_data_ref_ptr without the removed argument.
180 (vectorizable_load): Likewise.
181 (vect_setup_realignment): Call vect_create_data_ref_ptr without the
184 2008-06-015 Andy Hutchinson <hutchinsonandy@aim.com>
187 * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
190 2008-06-15 Maxim Kuvyrkov <maxim@codesourcery.com>
192 * config/mips/loongson2ef.md: New file.
193 * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
194 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
195 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
196 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
197 (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
199 (loongson2ef.md): New include.
200 * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
201 (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
202 (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
203 (loongson_gt_<mode>, loongson_extract_halfword)
204 (loongson_insert_halfword_0, loongson_insert_halfword_2)
205 (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
206 (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
207 (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
208 (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
209 (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
210 (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
211 (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
212 (vec_interleave_low<mode>): Define type attribute.
213 * config/mips/mips.c (mips_ls2): New static variable.
214 (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
215 (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
216 (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
217 Implement target scheduling hooks.
218 (mips_multipass_dfa_lookahead): Update to handle tuning for
220 (mips_sched_init): Initialize data for Loongson scheduling.
221 (mips_ls2_variable_issue): New static function.
222 (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
224 (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
225 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
226 * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
227 (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
228 Handle ST Loongson 2E/2F cores.
229 (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
231 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
233 * omp-low.c (extract_omp_for_data): Fix comment typo.
236 2008-06-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
238 * doc/sourcebuild.texi (Config Fragments): Remove obsolete
239 FIXME note about gcc/config.guess.
240 * doc/options.texi (Option file format): Remove non-ASCII bytes.
241 * doc/cpp.texi: Expand TABs, drop indentation outside examples.
242 * doc/cppopts.texi: Likewise.
243 * doc/extend.texi: Likewise.
244 * doc/gcc.texi: Likewise.
245 * doc/gccint.texi: Likewise.
246 * doc/gcov.texi: Likewise.
247 * doc/gty.texi: Likewise.
248 * doc/hostconfig.texi: Likewise.
249 * doc/install.texi: Likewise.
250 * doc/invoke.texi: Likewise.
251 * doc/loop.texi: Likewise.
252 * doc/makefile.texi: Likewise.
253 * doc/md.texi: Likewise.
254 * doc/passes.texi: Likewise.
255 * doc/tm.texi: Likewise.
256 * doc/tree-ssa.texi: Likewise.
257 * doc/trouble.texi: Likewise.
259 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
260 Nathan Sidwell <nathan@codesourcery.com>
261 Maxim Kuvyrkov <maxim@codesourcery.com>
262 Richard Sandiford <rdsandiford@googlemail.com>
264 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
265 * config/mips/mips-protos.h (mips_expand_vector_init): New.
266 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
268 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
269 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
270 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
272 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
273 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
274 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
275 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
276 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
277 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
278 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
279 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
280 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
281 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
282 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
283 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
284 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
285 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
286 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
287 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
288 (mips_builtins): Add Loongson builtins.
289 (mips_loongson_2ef_bdesc): New.
290 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
291 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
292 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
293 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
295 (mips_expand_vector_init): New.
296 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
297 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
299 * config/mips/mips.md: Add unspec numbers for Loongson
300 builtins. Include loongson.md.
301 (MOVE64): Include Loongson vector modes.
302 (SPLITF): Include Loongson vector modes.
303 (HALFMODE): Handle Loongson vector modes.
304 * config/mips/loongson.md: New.
305 * config/mips/loongson.h: New.
306 * config.gcc: Add loongson.h header for mips*-*-* targets.
307 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
309 2008-06-14 Joseph Myers <joseph@codesourcery.com>
311 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
312 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
313 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
314 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
315 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
316 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
317 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
318 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
319 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
320 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
321 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
322 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
323 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
324 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
325 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
326 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
327 Remove use_fixproto=yes.
328 (ia64*-*-hpux*): Remove comment about using fixproto.
329 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
331 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
333 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
335 * configure: Regenerate.
337 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
340 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
341 before evaluating it.
343 2008-06-13 Jakub Jelinek <jakub@redhat.com>
346 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
347 nested inline functions.
348 (start_decl, start_function): Don't invert DECL_EXTERNAL
349 for nested inline functions.
351 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
353 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
354 splits that must be made for correctness.
356 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
358 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
359 (AVAIL_NON_MIPS16): Likewise.
360 (mips_builtin_description): Replace target_flags with a predicate.
361 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
362 (dspr2_32): New availability predicates.
363 (MIPS_BUILTIN): New macro.
364 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
365 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
366 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
367 Replace the TARGET_FLAGS parameters with AVAIL parameters.
368 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
369 (mips_dsp_32only_bdesc): Merge into...
370 (mips_builtins): ...this new array.
371 (mips_bdesc_map, mips_bdesc_arrays): Delete.
372 (mips_init_builtins): Update after above changes.
373 (mips_expand_builtin_1): Merge into...
374 (mips_expand_builtin): ...here and update after above changes.
376 2008-06-12 Paul Brook <paul@codesourcery.com>
378 * longlong.h (__arm__): Define count_leading_zeros.
379 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
380 (clzsi2, clzdi2): New functions.
381 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
382 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
383 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
384 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
385 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
386 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
387 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
388 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
389 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
390 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
392 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
394 * config/m68k/m68k.c (m68k_tune_flags): New.
395 (override_options): Compute m68k_tune_flags.
396 (MULL_COST, MULW_COST): Update for various variants of CFV2.
397 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
399 2008-06-12 Jakub Jelinek <jakub@redhat.com>
402 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus
405 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
407 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
408 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
410 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
412 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
413 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
415 2008-06-12 Jakub Jelinek <jakub@redhat.com>
418 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
421 2008-06-12 Richard Guenther <rguenther@suse.de>
423 PR tree-optimization/36345
424 * tree-flow.h (struct ptr_info_def): Align escape_mask,
425 add memory_tag_needed flag.
426 (may_alias_p): Declare.
427 * tree-ssa-alias.c (may_alias_p): Export.
428 (set_initial_properties): Use memory_tag_needed flag.
429 (update_reference_counts): Likewise.
430 (reset_alias_info): Reset memory_tag_needed flag.
431 (create_name_tags): Check memory_tag_needed flag.
432 (dump_points_to_info_for): Dump it.
433 * tree-ssa-structalias.c (struct variable_info): Remove
434 directly_dereferenced flag.
435 (new_var_info): Do not initialize it.
436 (process_constraint_1): Do not set it.
437 (update_alias_info): Set is_dereferenced flag.
438 (set_uids_in_ptset): Use may_alias_p.
439 (set_used_smts): Check memory_tag_needed flag.
440 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
441 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
442 memory_tag_needed flag.
443 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
446 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
448 * config/i386/i386.c (ix86_compute_frame_layout): Disable red zone for
450 (ix86_expand_prologue): Likewise.
451 (ix86_force_to_memory): Likewise.
452 (ix86_free_from_memory): Likewise.
454 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
457 * config/rs6000/rs6000.c (rs6000_override_options): Set
458 rs6000_isel conditionally to the absence of comand line
460 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
461 Remove duplicate rs6000_isel setting.
462 * config/rs6000/eabispe.h: Ditto.
464 2008-06-11 Richard Guenther <rguenther@suse.de>
466 * alias.c (get_alias_set): Use the element alias-set for arrays.
467 (record_component_aliases): For arrays and vectors do nothing.
468 * c-common.c (strict_aliasing_warning): Handle the cases
469 of alias set zero explicitly.
470 * Makefile.in (dfp.o-warn): Add -Wno-error.
472 2008-06-11 Joseph Myers <joseph@codesourcery.com>
474 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
476 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
477 tune_32 tune_64 to supported_defaults. Allow values not
478 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
479 x86_64. Do not override cpu_32 or cpu_64 values from target name.
480 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
481 with_cpu_64 to generic for 64-bit-supporting configurations, not
482 with_cpu. Remove FIXMEs.
483 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
484 --with-arch-64, --with-tune-32, --with-tune-64): Document.
485 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
486 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
489 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
490 Olivier Hainque <hainque@adacore.com>
492 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
493 Use DECL_SIZE_UNIT to retrieve the size of the field.
495 2008-06-11 Joseph Myers <joseph@codesourcery.com>
497 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
498 with function calls after declarations. Lay out
499 neon_float_type_node before further use.
501 2008-06-11 Richard Guenther <rguenther@suse.de>
503 * tree-flow.h (may_point_to_global_var): Declare.
504 * tree-ssa-alias.c (may_point_to_global_var): New function.
505 * tree-ssa-sink.c (is_hidden_global_store): Use it.
507 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
509 * configure.ac: Teach that fido supports .debug_line.
510 * configure: Regenerate.
512 2008-06-10 Tom Tromey <tromey@redhat.com>
514 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
517 2008-06-10 Joseph Myers <joseph@codesourcery.com>
519 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
520 (encode_decimal64, decode_decimal64, encode_decimal128,
521 decode_decimal128): Reverse order of 32-bit parts of value if host
522 and target endianness differ.
524 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
525 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
527 (tree_mod_pow2_value_transform): Likewise.
528 (tree_ic_transform): Likewise.
529 (tree_stringops_transform): Likewise.
530 (tree_mod_subtract_transform): Likewise.
531 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
532 (copy_edges_for_bb): Likewise.
533 (initialize_cfun): Likewise.
535 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
537 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
538 nonmemory_operand. Add "N" operand constraint.
540 (*jcc_btdi_mask_rex64): New instruction and split pattern.
541 (*jcc_btsi_mask): Ditto.
542 (*jcc_btsi_mask_1): Ditto.
544 2008-06-10 Joseph Myers <joseph@codesourcery.com>
546 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
547 TYPE_CANONICAL for copied element type.
549 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
552 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
553 Add m_CORE2 and m_GENERIC.
554 * config/i386/predicates.md (bt_comparison_operator): New predicate.
555 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
557 (*jcc_btdi_rex64): New instruction and split pattern.
559 (*jcc_btsi_1): Ditto.
560 (*btsq): Fix Intel asm dialect operand order.
564 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
567 * simplify-rtx.c (simplify_subreg): Add check for shift count
570 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
572 * doc/md.texi: Synchronize with later constraints.md change.
573 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
574 with a C implementation.
575 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
577 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
578 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
579 when moving to and from MD_REGNUM.
580 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
581 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
582 Handle byte and halfword moves.
583 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
585 * config/mips/constraints.md (h): Turn into NO_REGS.
586 (l, x): Update documentation.
587 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
588 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
589 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
590 (HILO): New mode iterator.
592 (any_div): New code iterator.
593 (u): Extend code attribute to div and udiv.
594 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
595 d_operand in the splitters. Remove redundant CONST_INT checks.
596 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
597 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
598 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
599 accordingly, using normal moves instead of unspecs to move LO into
600 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
601 (<u>mulsidi3): Handle expansion in C code.
602 (<u>mulsidi3_32bit_internal): Rename to...
603 (<u>mulsidi3_32bit): ...this.
604 (<u>mulsidi3_32bit_r4000): Fix insn separator.
605 (*<u>mulsidi3_64bit): Rename to...
606 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
607 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
608 to set LO and HI to the multiplication result. Use a normal move
609 for MFLO and an unspec for MFHI.
610 (*<u>mulsidi3_64bit_parts): Replace with...
611 (<u>mulsidi3_64bit_hilo): ...this new instruction.
612 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
613 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
614 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
615 instead of HI. Split the instruction into a separate multiplication
616 and MFHI if !TARGET_FIX_R4000.
617 (<su>muldi3_highpart): Likewise.
618 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
619 and the "=h" clobber.
620 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
621 (<u>mulditi3): New expander.
622 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
623 (madsi): Remove "=h" clobber.
624 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
625 Force the modulus result to be a GPR and split the instruction into
626 a division followed by an MFHI after reload.
627 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
628 (*lea_high64): Use d_operand in the define_peephole2. Likewise
629 the MIPS16 HIGH define_split.
630 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
631 of acc<->gpr moves to "multi".
632 (*movdi_64bit): Replace the single "x" alternative with
633 alternatives for moving into and out of "a".
634 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
635 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
636 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
637 Use d_operand in the splitters. Remove redundant CONST_INT checks.
638 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
639 (movti): New expander.
640 (*movti, *movti_mips16): New insns.
641 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
642 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
643 (mthi<GPR:mode>_<HILO:mode>): Likewise.
644 * config/mips/predicates.md (fpr_operand): Delete.
645 (d_operand): New predicate.
647 2008-06-09 Michael Meissner <michael.meissner@amd.com>
649 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
650 failure on some Bourne shells.
653 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
655 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
657 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
659 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
660 (sparc-sun-solaris2*): Likewise.
662 2008-06-09 Arnaud Charlet <charlet@adacore.com
664 * doc/install.texi: Update requirements to build the Ada compiler.
666 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
668 * df-scan.c (struct df_scan_problem_data): Remove the
669 mw_link_pool alloc pool.
670 (df_scan_free_internal): Don't free it.
671 (df_scan_alloc): Don't allocate it.
672 * df.h (struct df_link): Update comment.
674 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
676 * except.h: Correct checks for when SJLJ exceptions must be used.
678 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
680 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
683 2008-06-08 Joseph Myers <joseph@codesourcery.com>
685 PR tree-optimization/36218
686 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
687 configure for the build system.
688 (BUILD_LDFLAGS): Define.
689 * configure: Regenerate.
690 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
692 2008-07-08 Anatoly Sokolov <aesok@post.ru>
695 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
696 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
697 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
699 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
701 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
703 2008-06-07 Joseph Myers <joseph@codesourcery.com>
705 * config.gcc (Obsolete configurations): Remove list of
707 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
708 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
709 targets matched by those patterns.
710 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
711 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
712 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
713 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
714 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
715 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
716 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
717 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
718 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
719 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
720 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
721 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
722 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
723 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
724 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
725 Make code for Solaris 7 and greater unconditional for Solaris.
726 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
727 Remove --with-* handling.
728 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
729 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
730 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
731 LINK_OS_WINDISS_SPEC): Remove.
732 * config/rs6000/sysv4.opt (mwindiss): Remove.
733 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
734 * configure: Regenerate.
735 * doc/cpp.texi: Don't mention BeOS.
736 * doc/extend.texi (interrupt): Don't mention MS1.
737 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
738 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
739 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
740 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
741 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
743 * doc/invoke.texi (MT Options): Remove.
745 (CRIS Options): Remove cris-axis-aout references.
746 (HPPA Options): Don't mention hppa1.1-*-pro.
747 * doc/md.texi: (MorphoTech family): Remove.
748 * libgcc2.c: Don't handle UWIN.
749 * config/alpha/t-unicosmk: Remove.
750 * config/alpha/unicosmk.h: Remove.
751 * config/arm/kaos-arm.h: Remove.
752 * config/arm/kaos-strongarm.h: Remove.
753 * config/arm/strongarm-coff.h: Remove.
754 * config/arm/strongarm-elf.h: Remove.
755 * config/arm/strongarm-pe.h: Remove.
756 * config/arm/t-strongarm-pe: Remove.
757 * config/arm/t-xscale-coff: Remove.
758 * config/arm/t-xscale-elf: Remove.
759 * config/arm/xscale-coff.h: Remove.
760 * config/arm/xscale-elf.h: Remove.
761 * config/chorus.h: Remove.
762 * config/cris/aout.h: Remove.
763 * config/cris/aout.opt: Remove.
764 * config/cris/t-aout: Remove.
765 * config/i386/beos-elf.h: Remove.
766 * config/i386/kaos-i386.h: Remove.
767 * config/i386/ptx4-i.h: Remove.
768 * config/i386/sco5.h: Remove.
769 * config/i386/sco5.opt: Remove.
770 * config/i386/sysv4-cpp.h: Remove.
771 * config/i386/sysv5.h: Remove.
772 * config/i386/t-beos: Remove.
773 * config/i386/t-sco5: Remove.
774 * config/i386/t-uwin: Remove.
775 * config/i386/uwin.asm: Remove.
776 * config/i386/uwin.h: Remove.
777 * config/kaos.h: Remove.
778 * config/mips/windiss.h: Remove.
779 * config/mt: Remove directory.
780 * config/pa/pa-osf.h: Remove.
781 * config/pa/pa-pro-end.h: Remove.
782 * config/pa/t-pro: Remove.
783 * config/ptx4.h: Remove.
784 * config/rs6000/beos.h: Remove.
785 * config/rs6000/kaos-ppc.h: Remove.
786 * config/rs6000/t-beos: Remove.
787 * config/rs6000/windiss.h: Remove.
788 * config/sh/kaos-sh.h: Remove.
789 * config/sol2-6.h: Remove.
790 * config/sparc/sol26-sld.h: Remove.
791 * config/sparc/sysv4-only.h: Remove.
792 * config/vax/bsd.h: Remove.
793 * config/vax/t-memfuncs: Remove.
794 * config/vax/ultrix.h: Remove.
795 * config/vax/vaxv.h: Remove.
796 * config/windiss.h: Remove.
798 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
800 PR rtl-optimization/36438
801 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
802 for vector shifts with constant scalar shift operands.
804 2008-06-06 Sandip Matte <sandip@rmicorp.com>
806 * doc/invoke.texi: Document -march=xlr.
807 * config/mips/xlr.md: New file.
808 * config/mips/mips.md: Include it.
810 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
811 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
812 (mips_rtx_cost_data): Likewise.
814 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
816 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
817 PRE_INC and PRE_DEC cases.
819 2008-06-06 Jakub Jelinek <jakub@redhat.com>
821 PR rtl-optimization/36419
822 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
823 the emitting jump insn.
826 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
827 is not bool, boolify the whole *expr_p and convert to the desired type.
829 2008-06-06 Jakub Jelinek <jakub@redhat.com>
831 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
832 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
833 Add omp_private_outer_ref hook, add another argument to
834 omp_clause_default_ctor hook.
835 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
836 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
837 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
838 hook_tree_tree_tree_tree_null.
839 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
840 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
841 * hooks.c (hook_tree_tree_tree_tree_null): New function.
842 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
843 * tree.def (OMP_TASK): New tree code.
844 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
845 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
846 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
847 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
848 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
849 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
850 OMP_CLAUSE_COLLAPSE_EXPR): Define.
851 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
852 (OMP_DIRECTIVE_P): Add OMP_TASK.
853 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
854 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
855 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
856 and OMP_CLAUSE_UNTIED entries.
857 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
859 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
860 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
861 * tree-pretty-print.c (dump_omp_clause): Handle
862 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
863 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
864 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
865 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
866 warning about unsigned iterators. Change decl/init/cond/incr
867 arguments to TREE_VECs, check arguments for all collapsed loops.
868 (c_finish_omp_taskwait): New function.
869 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
871 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
872 default_function_array_conversion on init. Add par_clauses argument.
873 If decl is present in parallel's lastprivate clause, change it to
874 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
875 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
876 collapse count in clauses.
877 (c_parser_omp_for, c_parser_omp_parallel): Adjust
878 c_parser_omp_for_loop callers.
879 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
880 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
881 (c_parser_omp_clause_name): Handle collapse and untied clauses.
882 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
884 (c_parser_omp_clause_schedule): Handle schedule(auto).
885 Include correct location in the error message.
886 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
887 and PRAGMA_OMP_CLAUSE_UNTIED.
888 (OMP_TASK_CLAUSE_MASK): Define.
889 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
890 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
891 * tree-nested.c (convert_nonlocal_omp_clauses,
892 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
893 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
894 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
895 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
897 (conver_nonlocal_reference, convert_local_reference,
898 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
899 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
900 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
901 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
902 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
903 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
904 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
905 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
906 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
908 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
909 * c-common.h (c_finish_omp_taskwait): New prototype.
910 * gimple-low.c (lower_stmt): Handle OMP_TASK.
911 * tree-parloops.c (create_parallel_loop): Create 1 entry
912 vectors for OMP_FOR_{INIT,COND,INCR}.
913 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
914 (make_edges): Handle OMP_TASK.
915 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
916 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
917 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
918 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
919 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
920 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
921 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
922 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
923 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
924 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
925 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
926 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
927 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
928 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
929 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
930 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
931 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
932 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
933 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
934 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
935 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
936 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
937 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
938 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
939 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
940 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
941 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
942 original iterator is present in lastprivate clause or if
943 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
944 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
945 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
946 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
947 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
948 if it is set, lookup var in outer contexts too. Handle
949 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
950 to be implicitly determined firstprivate for task regions.
951 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
952 if it is set, lookup var in outer contexts too. Set
953 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
954 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
955 OMP_CLAUSE_UNTIED. Take region_type as last argument
956 instead of in_parallel and in_combined_parallel.
957 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
959 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
960 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
961 (new_omp_context): Set default_kind to
962 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
963 (omp_region_type): New enum.
964 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
965 fields, add region_type.
966 (new_omp_context): Take region_type as argument instead of is_parallel
967 and is_combined_parallel.
968 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
969 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
970 ctx->is_combined_parallel checks.
971 (gimplify_omp_task): New function.
972 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
974 * omp-low.c (extract_omp_for_data): Use schedule(static)
975 for schedule(auto). Handle pointer and unsigned iterators.
976 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
977 Add loops argument. Extract data for collapsed OMP_FOR loops.
978 (expand_parallel_call): Assert sched_kind isn't auto,
979 map runtime schedule to index 3.
980 (struct omp_for_data_loop): New type.
981 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
982 Add loop, loops, collapse and iter_type fields.
983 (workshare_safe_to_combine_p): Disallow combined for if
984 iter_type is unsigned long long. Don't combine collapse > 1 loops
985 unless all bounds and steps are constant. Adjust extract_omp_for_data
987 (expand_omp_for_generic): Handle pointer, unsigned and long long
988 iterators. Handle collapsed OMP_FOR loops. Adjust
989 for struct omp_for_data changes. If libgomp function doesn't return
990 boolean_type_node, add comparison of the return value with 0.
991 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
992 pointer, unsigned and long long iterators. Adjust for struct
993 omp_for_data changes.
994 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
995 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
996 unsigned long long. Allocate loops array, pass it to
997 extract_omp_for_data. For collapse > 1 loops use always
998 expand_omp_for_generic.
999 (omp_context): Add sfield_map and srecord_type fields.
1000 (is_task_ctx, lookup_sfield): New functions.
1001 (use_pointer_for_field): Use is_task_ctx helper. Change first
1002 argument's type from const_tree to tree. Clarify comment.
1003 In OMP_TASK disallow copy-in/out sharing.
1004 (build_sender_ref): Call lookup_sfield instead of lookup_field.
1005 (install_var_field): Add mask argument. Populate both record_type
1006 and srecord_type if needed.
1007 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
1009 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
1010 and DECL_FIELD_OFFSET.
1011 (scan_sharing_clauses): Adjust install_var_field callers. For
1012 firstprivate clauses on explicit tasks allocate the var by value in
1013 record_type unconditionally, rather than by reference.
1014 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
1015 Use is_taskreg_ctx instead of is_parallel_ctx.
1016 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
1017 (create_omp_child_function_name): Add task_copy argument, use
1018 *_omp_cpyfn* names if it is true.
1019 (create_omp_child_function): Add task_copy argument, if true create
1020 *_omp_cpyfn* helper function.
1021 (scan_omp_parallel): Adjust create_omp_child_function callers.
1022 Rename parallel_nesting_level to taskreg_nesting_level.
1023 (scan_omp_task): New function.
1024 (lower_rec_input_clauses): Don't run constructors for firstprivate
1025 explicit task vars which are initialized by *_omp_cpyfn*.
1026 Pass outer var ref to omp_clause_default_ctor hook if
1027 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
1028 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
1029 OMP_CLAUSE_REDUCTION_INIT.
1030 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
1031 avoid duplicate setting of fields. Handle
1032 OMP_CLAUSE_PRIVATE_OUTER_REF.
1033 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
1034 copy-out if TREE_READONLY, only copy-in.
1035 (expand_task_copyfn): New function.
1036 (expand_task_call): New function.
1037 (struct omp_taskcopy_context): New type.
1038 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
1040 (lower_omp_parallel): Rename to...
1041 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
1042 Call create_task_copyfn if srecord_type is needed. Adjust
1044 (task_shared_vars): New variable.
1045 (check_omp_nesting_restrictions): Warn if work-sharing,
1046 barrier, master or ordered region is closely nested inside OMP_TASK.
1047 Add warnings for barrier if closely nested inside of work-sharing,
1048 ordered, or master region.
1049 (scan_omp_1): Call check_omp_nesting_restrictions even for
1050 GOMP_barrier calls. Rename parallel_nesting_level to
1051 taskreg_nesting_level. Handle OMP_TASK.
1052 (lower_lastprivate_clauses): Even if some lastprivate is found on a
1053 work-sharing construct, continue looking for them on parent parallel
1055 (lower_omp_for_lastprivate): Add lastprivate clauses
1056 to the beginning of dlist rather than end. Adjust for struct
1057 omp_for_data changes.
1058 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
1059 not after it. Handle collapsed OMP_FOR loops, adjust for
1060 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
1061 (get_ws_args_for): Adjust extract_omp_for_data caller.
1062 (scan_omp_for): Handle collapsed OMP_FOR
1063 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
1064 (lower_omp_single_simple): If libgomp function doesn't return
1065 boolean_type_node, add comparison of the return value with 0.
1066 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
1067 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
1068 (parallel_nesting_level): Rename to...
1069 (taskreg_nesting_level): ... this.
1070 (is_taskreg_ctx): New function.
1071 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
1073 (execute_lower_omp): Rename parallel_nesting_level to
1074 taskreg_nesting_level.
1075 (expand_omp_parallel): Rename to...
1076 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
1077 Call omp_task_call for OMP_TASK regions.
1078 (expand_omp): Adjust caller, handle OMP_TASK.
1079 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
1081 * bitmap.c (bitmap_default_obstack_depth): New variable.
1082 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
1083 if argument is NULL and bitmap_default_obstack is already initialized.
1084 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
1086 * matrix-reorg.c (matrix_reorg): Likewise.
1088 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
1090 * config/i386/i386.md (*indirect_jump): Macroize using P
1091 mode iterator. Remove !TARGET_64BIT from insn constraints.
1092 (*tablejump_1): Ditto.
1093 (*indirect_jump_rex64): Remove insn pattern.
1094 (*tablejump_1_rex64): Ditto.
1095 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
1096 and eh_return_si insn patterns.
1098 2008-06-06 Richard Guenther <rguenther@suse.de>
1100 * tree-ssa-structalias.c (merge_smts_into): Remove.
1101 (find_what_p_points_to): Do not bother to compute the
1102 points-to set for pt_anything pointers.
1103 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
1104 for pt_anything pointers is ok.
1106 2008-06-06 Jan Hubicka <jh@suse.cz>
1108 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
1110 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1112 * cgraph.c: Fix typos in comments.
1113 (cgraph_availability_names): Fix string typo.
1114 * fold-const.c: Fix typos in comments.
1115 (fold_binary): Fix typo in warning.
1116 * genautomata.c: Fix typos in comments.
1117 (check_presence_pattern_sets): Fix typo in local variable.
1118 (output_description): Fix typo in output.
1119 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
1120 * hwint.h: Likewise.
1121 * matrix-reorg.c (check_allocation_function): Likewise.
1122 * omega.c (smooth_weird_equations): Likewise.
1123 * auto-inc-dec.c: Fix typos in comments.
1124 * bb-reorder.c: Likewise.
1125 * builtins.c: Likewise.
1126 * c-common.c: Likewise.
1127 * c-cppbuiltin.c: Likewise.
1128 * c-parser.c: Likewise.
1129 * c-pretty-print.c: Likewise.
1130 * cfgcleanup.c: Likewise.
1131 * cfgexpand.c: Likewise.
1132 * cfghooks.c: Likewise.
1133 * cfglayout.c: Likewise.
1134 * cfgloopmanip.c: Likewise.
1135 * cgraphunit.c: Likewise.
1136 * coverage.c: Likewise.
1137 * dbxout.c: Likewise.
1138 * df-byte-scan.c: Likewise.
1139 * df-core.c: Likewise.
1140 * df-problems.c: Likewise.
1141 * df-scan.c: Likewise.
1143 * dominance.c: Likewise.
1144 * domwalk.c: Likewise.
1146 * dwarf2out.c: Likewise.
1147 * emit-rtl.c: Likewise.
1148 * et-forest.c: Likewise.
1149 * function.c: Likewise.
1150 * function.h: Likewise.
1152 * gcov-io.c: Likewise.
1155 * genattrtab.c: Likewise.
1156 * ggc-page.c: Likewise.
1157 * gimplify.c: Likewise.
1158 * gthr-lynx.h: Likewise.
1159 * haifa-sched.c: Likewise.
1160 * ipa-cp.c: Likewise.
1161 * ipa-inline.c: Likewise.
1162 * ipa-prop.h: Likewise.
1163 * ipa-pure-const.c: Likewise.
1164 * ipa-struct-reorg.c: Likewise.
1165 * ipa-struct-reorg.h: Likewise.
1166 * ipa-type-escape.c: Likewise.
1168 * loop-doloop.c: Likewise.
1169 * mips-tfile.c: Likewise.
1170 * mkmap-flat.awk: Likewise.
1171 * mkmap-symver.awk: Likewise.
1172 * modulo-sched.c: Likewise.
1173 * omp-low.c: Likewise.
1174 * optabs.c: Likewise.
1175 * optabs.h: Likewise.
1177 * passes.c: Likewise.
1178 * postreload-gcse.c: Likewise.
1179 * postreload.c: Likewise.
1180 * predict.c: Likewise.
1181 * pretty-print.h: Likewise.
1182 * profile.c: Likewise.
1183 * protoize.c: Likewise.
1184 * ra-conflict.c: Likewise.
1186 * recog.c: Likewise.
1187 * regclass.c: Likewise.
1189 * reload.c: Likewise.
1190 * rtl-error.c: Likewise.
1191 * rtlanal.c: Likewise.
1193 * sched-rgn.c: Likewise.
1196 * target.h: Likewise.
1197 * tree-dfa.c: Likewise.
1198 * tree-eh.c: Likewise.
1199 * tree-flow-inline.h: Likewise.
1200 * tree-inline.c: Likewise.
1201 * tree-into-ssa.c: Likewise.
1202 * tree-loop-distribution.c: Likewise.
1203 * tree-nested.c: Likewise.
1204 * tree-parloops.c: Likewise.
1205 * tree-pass.h: Likewise.
1206 * tree-pretty-print.c: Likewise.
1207 * tree-profile.c: Likewise.
1208 * tree-scalar-evolution.c: Likewise.
1209 * tree-sra.c: Likewise.
1210 * tree-ssa-alias-warnings.c: Likewise.
1211 * tree-ssa-ccp.c: Likewise.
1212 * tree-ssa-coalesce.c: Likewise.
1213 * tree-ssa-dom.c: Likewise.
1214 * tree-ssa-dse.c: Likewise.
1215 * tree-ssa-forwprop.c: Likewise.
1216 * tree-ssa-live.c: Likewise.
1217 * tree-ssa-live.h: Likewise.
1218 * tree-ssa-loop-im.c: Likewise.
1219 * tree-ssa-loop-ivopts.c: Likewise.
1220 * tree-ssa-loop-niter.c: Likewise.
1221 * tree-ssa-loop-prefetch.c: Likewise.
1222 * tree-ssa-phiopt.c: Likewise.
1223 * tree-ssa-phiprop.c: Likewise.
1224 * tree-ssa-sccvn.c: Likewise.
1225 * tree-ssa-ter.c: Likewise.
1226 * tree-ssa-threadupdate.c: Likewise.
1227 * tree-ssa.c: Likewise.
1228 * tree-vect-analyze.c: Likewise.
1229 * tree-vect-transform.c: Likewise.
1230 * tree-vectorizer.c: Likewise.
1231 * tree-vn.c: Likewise.
1232 * tree-vrp.c: Likewise.
1234 * tree.def: Likewise.
1236 * unwind-dw2-fde.c: Likewise.
1237 * unwind.inc: Likewise.
1238 * value-prof.c: Likewise.
1239 * vmsdbgout.c: Likewise.
1241 2008-06-05 David Edelsohn <edelsohn@gnu.org>
1243 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
1244 always place FP constants in the TOC for TARGET_POWERPC64.
1245 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
1247 2008-06-05 Joseph Myers <joseph@codesourcery.com>
1249 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
1250 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
1251 enable for TARGET_E500_DOUBLE.
1252 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
1253 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
1254 floating-point modes like integer modes for E500 double.
1255 (rs6000_legitimate_offset_address_p): Likewise.
1256 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
1257 addressing for DDmode for E500 double.
1258 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
1259 modes as using 64-bits of registers for E500 double.
1260 (spe_build_register_parallel): Do not handle DDmode or TDmode.
1261 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
1262 specially for E500 double.
1263 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
1264 TDmode for E500 double.
1265 (rs6000_gimplify_va_arg): Only handle SDmode in registers
1266 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
1267 (rs6000_split_multireg_move): Do not handle TDmode specially for
1269 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
1270 using 64-bit registers for E500 double.
1271 (emit_frame_save): Do not handle DDmode specially for E500 double.
1272 (gen_frame_mem_offset): Likewise.
1273 (rs6000_function_value): Do not call spe_build_register_parallel
1274 for DDmode or TDmode.
1275 (rs6000_libcall_value): Likewise.
1276 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
1277 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
1280 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
1282 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
1285 2008-06-04 Junjie Gu <jgu@tensilica.com>
1287 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
1288 comparison for frame pointers.
1290 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
1293 * config/avr/avr.h (PUSH_ROUNDING): Remove.
1295 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
1298 * builtins.c (expand_builtin_signbit): Don't take lowpart when
1299 register is already smaller or equal to required mode.
1301 2008-06-04 Xinliang David Li <davidxl@google.com>
1303 * tree-call-cdce.c: New file.
1304 (cond_dead_built_in_calls): New static variable.
1305 (input_domain): New struct.
1306 (check_pow): New function.
1307 (check_builtin_call): Ditto.
1308 (check_target_format): Ditto.
1309 (is_call_dce_candidate): Ditto.
1310 (gen_one_condition): Ditto.
1311 (gen_conditions_for_domain): Ditto.
1312 (get_domain): Ditto.
1313 (gen_conditions_for_pow_cst_base): Ditto.
1314 (gen_conditions_for_pow_int_base): Ditto.
1315 (gen_conditions_for_pow): Ditto.
1316 (get_no_error_domain): Ditto.
1317 (gen_shrink_wrap_conditions): Ditto.
1318 (shrink_wrap_one_built_in_call): Ditto.
1319 (shink_wrap_conditional_dead_built_in_calls): Ditto.
1320 (tree_call_cdce): Ditto.
1321 (gate_call_cdce): Ditto.
1322 (pass_call_cdce): New gimple pass.
1323 * passes.c: (init_optimization_passes): New pass.
1324 * tree-pass.h: New pass declaration.
1325 * opts.c (decode_options): New flag setting.
1326 * common.opt: Add -ftree-builtin-call-dce flag.
1327 * Makefile.in: Add new source file.
1328 * tempvar.def: New tv_id.
1329 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
1331 2008-06-04 Richard Guenther <rguenther@suse.de>
1333 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
1334 (is_call_clobbered): Always check var_ann->call_clobbered.
1335 (mark_call_clobbered): Always set var_ann->call_clobbered.
1336 (clear_call_clobbered): Always clear var_ann->call_clobbered.
1337 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
1338 (reset_alias_info): Clear call clobbering info on MTAGs and
1340 (set_pt_anything): Set pt_global_mem.
1341 (create_tag_raw): Adjust comment.
1342 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
1344 2008-06-04 Joseph Myers <joseph@codesourcery.com>
1345 Maxim Kuvyrkov <maxim@codesourcery.com>
1347 * config/m68k/m68k.opt (mxgot): New option.
1348 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
1349 (m68k_output_addr_const_extra): New.
1350 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
1351 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
1352 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
1353 * doc/invoke.texi (M680x0 Options): Document -mxgot.
1355 2008-06-04 Richard Guenther <rguenther@suse.de>
1357 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
1358 negative or non-representable offsets.
1360 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
1362 * config/i386/i386.c (ix86_gen_leave): New.
1363 (ix86_gen_pop1): Likewise.
1364 (ix86_gen_add3): Likewise.
1365 (ix86_gen_sub3): Likewise.
1366 (ix86_gen_sub3_carry): Likewise.
1367 (ix86_gen_one_cmpl2): Likewise.
1368 (ix86_gen_monitor): Likewise.
1369 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
1370 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
1371 ix86_gen_one_cmpl2 and ix86_gen_monitor.
1372 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
1373 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
1374 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
1375 (ix86_expand_epilogue): Updated.
1376 (print_operand): Handle integer register operand for 'z'.
1377 (ix86_expand_strlensi_unroll_1): Likewise.
1378 (ix86_expand_strlen): Likewise.
1379 (ix86_expand_builtin): Likewise.
1380 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
1381 mov{q}/mov{l} and add{q}/add{l}.
1383 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
1385 * config/i386/i386.md (P): New mode iterator.
1386 (SFmode push_operand splitter): Macroize DImode and SImode pushes
1387 using P mode iterator.
1388 (DFmode push_operand splitter): Ditto.
1389 (XFmode push_operand splitter): Ditto.
1390 (DFmode float_extend SFmode push_operand splitter): Ditto.
1391 (XFmode float_extend SFmode push_operand splitter): Do not generate
1392 SImode pushes for 64bit target. Macroize Dimode and SImode
1393 pushes using P mode iterator.
1394 (XFmode float_extend DFmode push_operand splitter): Ditto.
1396 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
1398 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
1399 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
1400 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
1402 (ix86_call_abi_override): Remove check for call_used_regs.
1404 2008-06-03 Richard Guenther <rguenther@suse.de>
1406 * tree-ssa-structalias.c (find_func_aliases): Add constraints
1407 for the lhs of calls if the return type contains pointers.
1409 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
1411 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
1412 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
1413 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
1414 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
1415 of cfun and DEFAULT_ABI to deceide abi mode.
1417 (REG_PARM_STACK_SPACE): Removed.
1418 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
1419 (STACK_BOUNDARY): Use default target to deceide stack boundary.
1420 * config/i386/i386-protos.h (ix86_cfun_abi): New.
1421 (ix86_function_abi): Likewise.
1422 (ix86_function_type_abi): Likewise.
1423 (ix86_call_abi_override): Likewise.
1424 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
1425 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
1426 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
1427 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
1429 (X86_64_REGPARM_MAX): New.
1430 (X86_64_SSE_REGPARM_MAX): New.
1431 (X64_REGPARM_MAX): New.
1432 (X64_SSE_REGPARM_MAX): New.
1433 (X86_32_REGPARM_MAX): New.
1434 (X86_32_SSE_REGPARM_MAX): New.
1435 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
1436 (ix86_function_regparm): Handle user calling abi.
1437 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
1438 by DEFAULT_ABI versus SYSV_ABI check.
1439 (ix86_reg_parm_stack_space): New.
1440 (ix86_function_type_abi): New.
1441 (ix86_call_abi_override): New.
1442 (ix86_function_abi): New.
1443 (ix86_cfun_abi): New.
1444 (init_cumulative_args): Call abi specific initialization.
1445 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
1446 (function_arg_64): Extend SSE_REGPARM_MAX check.
1447 (function_arg (): Remove TARGET_64BIT_MS_ABI.
1448 (ix86_pass_by_reference): Likewise.
1449 (ix86_function_value_regno_p): Likewise.
1450 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
1451 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
1452 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
1453 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
1454 (setup_incoming_varargs_64): Adjust regparm for call abi.
1455 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
1456 (ix86_va_start): Likewise.
1457 (ix86_gimplify_va_arg): Likewise.
1458 (ix86_expand_prologue): Likewise.
1459 (output_pic_addr_const): Likewise.
1460 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
1461 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
1462 (x86_output_mi_thunk): Likewise.
1463 (x86_function_profiler): Likewise.
1464 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
1465 (SYSV_ABI, MS_ABI): New constants.
1467 (init_regs): Add prototype of function in regclass.c file.
1468 (OVERRIDE_ABI_FORMAT): New.
1469 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
1470 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
1471 (OUTGOING_REG_PARM_STACK_SPACE): New.
1472 (ix86_reg_parm_stack_space): New prototype.
1473 (CUMULATIVE_ARGS): Add call_abi member.
1474 (machine_function): Add call_abi member.
1475 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
1476 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
1478 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
1481 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
1482 (avr_builtin_setjmp_frame_value): New function.
1483 * config/avr/avr.md (nonlocal_goto_receiver): Define.
1484 (nonlocal_goto): Define.
1486 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
1488 * config/mips/mips.c (mips_emit_loadgp): Return early if
1489 there is nothing do to, otherwise emit a blockage if
1490 !TARGET_EXPLICIT_RELOCS || crtl->profile.
1491 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
1493 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1495 * configure.ac: Drop unneeded backslash ending up in config.in.
1496 * acinclude.m4: Likewise.
1497 * config.in: Regenerate.
1499 2008-05-26 Jan Hubicka <jh@suse.cz>
1501 * predict.c (maybe_hot_frequency_p): Break out of...
1502 (maybe_hot_bb_p): ... here.
1503 (maybe_hot_edge_p): New.
1504 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
1505 * basic-block.h (maybe_hot_edge_p): Declare.
1507 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
1509 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
1510 (*cmpfp_<mode>_cc): Ditto.
1511 (*fp_jcc_8<mode>_387): Ditto.
1512 (*fop_<MODEF:mode>_2_i387): Ditto.
1513 (*fop_<MODEF:mode>_3_i387): Ditto.
1514 (*fop_xf_2_i387): Ditto.
1515 (*fop_xf_3_i387): Ditto.
1517 2008-06-02 Tomas Bily <tbily@suse.cz>
1519 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
1521 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1523 * config/mips/mips.c (mips_valid_offset_p): New function.
1524 (mips_valid_lo_sum_p): Likewise.
1525 (mips_classify_address): Use them.
1526 (mips_force_address): New function.
1527 (mips_legitimize_address): Use it.
1528 * config/mips/mips.md (MOVE128): New mode iterator.
1529 (movtf): Require TARGET_64BIT. Remove empty strings.
1530 (*movtf_internal): Rename to...
1531 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
1532 of "R" and use {,fp}{load,store} attributes instead of "multi".
1533 Use a separate define_split.
1534 (*movtf_mips16): New pattern.
1536 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1538 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
1539 * config/mips/mips.c (mips_expand_before_return): New function.
1540 (mips_expand_epilogue): Call it.
1541 * config/mips/mips.md (return): Turn into a define_expand.
1542 (*return): New insn.
1544 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1546 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
1547 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
1548 functions. Do not emit uses and clobbers of CONCATs; individually
1549 use and clobber their operands.
1550 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
1551 gen_clobber, emit_use and gen_use.
1552 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1553 (expand_builtin_return): Likewise.
1554 * cfgbuild.c (count_basic_blocks): Likewise.
1555 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1556 * explow.c (emit_stack_restore): Likewise.
1557 * expmed.c (extract_bit_field_1): Likewise.
1558 * expr.c (convert_move, emit_move_complex_parts): Likewise.
1559 (emit_move_multi_word, store_constructor): Likewise.
1560 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
1561 (thread_prologue_and_epilogue_insns): Likewise.
1562 * lower-subreg.c (resolve_simple_move): Likewise.
1563 * optabs.c (widen_operand, expand_binop): Likewise.
1564 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
1565 * reload.c (find_reloads): Likewise.
1566 * reload1.c (eliminate_regs_in_insn): Likewise.
1567 * stmt.c (expand_nl_goto_receiver): Likewise.
1568 * config/alpha/alpha.md (builtin_longjmp): Likewise.
1569 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
1570 * config/arm/arm.c (arm_load_pic_register): Likewise.
1571 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
1572 * config/arm/arm.md (untyped_return): Likewise.
1573 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
1574 * config/avr/avr.c (expand_prologue): Likewise.
1575 * config/bfin/bfin.c (do_unlink): Likewise.
1576 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
1577 * config/cris/cris.c (cris_expand_prologue): Likewise.
1578 * config/darwin.c (machopic_indirect_data_reference): Likewise.
1579 (machopic_legitimize_pic_address): Likewise.
1580 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
1581 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
1582 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
1583 (ix86_expand_convert_uns_didf_sse): Likewise.
1584 (ix86_expand_vector_init_general): Likewise.
1585 * config/ia64/ia64.md (eh_epilogue): Likewise.
1586 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
1587 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
1588 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
1589 (config/iq2000/iq2000.c): Likewise.
1590 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
1591 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1592 (builtin_longjmp): Likewise.
1593 * config/mn10300/mn10300.md (call, call_value): Likewise.
1594 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
1595 * config/pdp11/pdp11.md (abshi2): Likewise.
1596 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1597 * config/s390/s390.c (s390_emit_prologue): Likewise.
1598 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
1599 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
1600 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
1601 * config/sh/sh.c (prepare_move_operands): Likewise.
1602 (output_stack_adjust, sh_expand_epilogue): Likewise.
1603 (sh_set_return_address, sh_expand_t_scc): Likewise.
1604 * config/sparc/sparc.c (load_pic_register): Likewise.
1605 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
1606 * config/spu/spu.c (spu_expand_epilogue): Likewise.
1607 * config/v850/v850.c (expand_epilogue): Likewise.
1609 2008-05-31 Anatoly Sokolov <aesok@post.ru>
1611 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
1612 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
1613 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
1614 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
1615 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
1616 stack pointer register.
1617 (output_movhi): Remove code for interrupt specific writing to the
1618 stack pointer register.
1620 2008-05-31 Richard Guenther <rguenther@suse.de>
1622 PR tree-optimization/34244
1623 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
1624 (tree_expr_nonzero_warnv_p): Likewise.
1625 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
1626 ssa_name_nonnegative_p.
1627 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
1628 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
1629 not tree_expr_nonzero_warnv_p.
1631 PR tree-optimization/36262
1633 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
1635 PR tree-optimization/34244
1636 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
1637 (record_numbers_of_iterations): New function.
1638 (execute_vrp): Cache the numbers of iterations of loops.
1639 * tree-scalar-evolution.c (scev_reset_except_niters):
1641 (scev_reset): Use scev_reset_except_niters.
1642 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
1644 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
1646 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1647 __WORKAROUND_RETS when appropriate.
1649 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
1651 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
1652 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
1654 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
1655 *fop_df_comm_sse insn patterns using MODEF mode iterator.
1656 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
1657 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
1658 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
1659 *fop_df_1_mixed insn patterns using MODEF mode iterator.
1660 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
1661 *fop_df_1_sse insn patterns using MODEF mode iterator.
1662 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
1663 *fop_df_1_i387 insn patterns using MODEF mode iterator.
1664 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
1665 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
1666 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
1667 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
1668 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
1669 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
1670 (*fop_xf_4_i387): Use <MODE> for mode attribute.
1671 (*fop_xf_5_i387): Ditto.
1672 (*fop_xf_6_i387): Ditto.
1674 2008-05-30 Richard Guenther <rguenther@suse.de>
1676 * builtins.c (build_string_literal): Avoid generating
1677 a non-gimple_val result.
1679 2008-05-30 DJ Delorie <dj@redhat.com>
1681 * exec-tool.in: Use an environment variable (private) instead of a
1682 file (shared) as a semaphore, so as to not break parallel builds.
1684 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1686 * optabs.c (maybe_encapsulate_block): Remove.
1687 (emit_libcall_block): Adjust accordingly.
1688 * optabs.h (maybe_encapsulate_block): Remove prototype.
1690 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
1691 Don't use maybe_encapsulate_block.
1693 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1695 * config/rs6000/rs6000.c (rs6000_legitimize_address,
1696 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
1697 rtx is a SYMBOL_REF before calling get_pool_constant.
1699 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
1701 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
1703 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
1705 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
1706 rather than OS names to choose INO_T_EQ definition.
1707 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
1708 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
1710 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
1713 * config/darwin-f.c: New.
1714 * config/t-darwin: Added rule to build darwin-f.o.
1715 * config.gcc: Defined new variable, fortran_target_objs.
1716 (*-*-darwin*): Set fortran_target_objs.
1717 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
1718 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
1719 * configure: Regenerated.
1721 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
1724 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
1725 canonical type if needed.
1727 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
1729 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
1731 2008-05-29 Richard Guenther <rguenther@suse.de>
1733 PR tree-optimization/36343
1734 PR tree-optimization/36346
1735 PR tree-optimization/36347
1736 * tree-flow.h (clobber_what_p_points_to): Declare.
1737 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
1738 pointed-to variable is dereferenced is irrelevant to whether
1739 the pointer can access the pointed-to variable.
1740 (clobber_what_p_points_to): New function.
1741 * tree-ssa-alias.c (set_initial_properties): Use it.
1742 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
1743 call clobber check for NMTs.
1745 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1747 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
1748 for printing gcov_type.
1750 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1752 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
1753 and the eh region information.
1754 * value-prof.c (gimple_move_stmt_histograms): New function.
1755 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
1757 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
1759 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
1761 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1763 * value-prof.c (tree_ic_transform): Print counts.
1764 * tree-profile.c (tree_gen_ic_func_profiler):
1765 Clear __gcov_indreict_call_callee variable to avoid misattribution
1768 2008-05-28 Rafael Espindola <espindola@google.com>
1770 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
1773 2008-05-28 Richard Guenther <rguenther@suse.de>
1775 PR tree-optimization/36339
1776 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
1777 and clobbering code out of the loop.
1779 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
1781 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
1784 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
1785 s390_contiguous_bitmask_p, s390_symref_operand_p,
1786 s390_check_symref_alignment, s390_reload_larl_operand,
1787 s390_reload_symref_address): New functions.
1788 (s390_branch_condition_mnemonic): Support compare and branch
1790 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
1791 and 'W' constraints.
1792 (s390_secondary_reload): Add secondary reloads for unaligned
1793 symbol refs or symbol refs to floating point or QI/TI mode
1795 (legitimate_address_p): Accept symbol references as addresses.
1796 (s390_expand_insv): Use rotate and insert selected bits
1797 instruction for insv when building for z10.
1798 (print_operand_address): Handle symbol ref addresses.
1799 (print_operand): Output modifier 'c' added for signed byte values.
1800 (s390_encode_section_info): Mark symbol refs with
1801 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
1803 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
1804 (length attribute): RRF, RRR have 4 byte length.
1805 (FPALL, INTALL): New mode iterators added.
1806 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
1807 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
1808 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
1809 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
1810 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
1811 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
1812 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
1813 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
1815 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
1816 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
1817 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
1818 reload<INTALL:mode><P:mode>_toreg_z10,
1819 reload<FPALL:mode><P:mode>_tomem_z10,
1820 reload<FPALL:mode><P:mode>_toreg_z10,
1821 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
1822 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
1823 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
1824 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
1826 (movmem, clrmem, cmpmem): New splitters added.
1828 * config/s390/predicates.md (larl_operand): Use
1829 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
1830 SYMBOL_REF_ALIGN1_P.
1831 (s390_signed_integer_comparison,
1832 s390_unsigned_integer_comparison): New predicates.
1834 * config/s390/s390-protos.h (s390_check_symref_alignment,
1835 s390_contiguous_bitmask_p, s390_reload_larl_operand,
1836 s390_reload_symref_address,
1837 s390_compare_and_branch_condition_mask): Prototypes added.
1839 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
1840 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
1841 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
1843 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
1845 * config/s390/s390.c (z10_cost): New cost function for z10.
1846 (s390_handle_arch_option, override_options): Support -march=z10 switch.
1847 (s390_issue_rate): Adjust issue rate for z10.
1848 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
1849 (processor_flags): Add PF_Z10.
1850 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
1851 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
1852 * gcc/config.gcc: Add z10.
1854 2008-05-28 Richard Guenther <rguenther@suse.de>
1856 PR tree-optimization/36291
1857 * tree-flow. h (struct gimple_df): Remove var_anns member.
1858 * tree-flow-inline.h (gimple_var_anns): Remove.
1859 (var_ann): Simplify.
1860 * tree-dfa.c (create_var_ann): Simplify.
1861 (remove_referenced_var): Clear alias info from var_anns of globals.
1862 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
1863 (delete_tree_ssa): Clear alias info from var_anns of globals.
1864 Do not free var_anns.
1865 (var_ann_eq): Remove.
1866 (var_ann_hash): Likewise.
1868 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
1870 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
1871 and loongson2f entries.
1872 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
1873 * config/mips/mips.h (processor_type): Add Loongson-2E
1874 and Loongson-2F entries.
1875 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
1876 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
1877 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
1878 * doc/invoke.texi (MIPS Options): Document loongson2e
1879 and loongson2f processor names.
1881 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
1885 * config/i386/i386.c (ix86_function_arg_boundary): Use
1886 alignment of canonical type.
1887 (ix86_expand_vector_move): Check unaligned memory access for
1890 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
1892 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
1893 Moved to the front of file.
1895 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
1896 H.J. Lu <hongjiu.lu@intel.com>
1898 * dwarf2out.c (current_fde): New.
1900 (lookup_cfa:): Likewise.
1901 (dwarf2out_end_epilogue): Likewise.
1902 (dwarf2out_note_section_used): Likewise.
1904 2008-05-27 Michael Matz <matz@suse.de>
1907 * c.opt (Wenum-compare): New warning option.
1908 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
1910 2008-05-27 Michael Matz <matz@suse.de>
1913 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
1915 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
1916 into memory as tail calls.
1918 2008-05-27 Richard Guenther <rguenther@suse.de>
1920 PR tree-optimization/36339
1921 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
1922 pointers cause all addressable variables to be call clobbered.
1924 2008-05-27 Richard Guenther <rguenther@suse.de>
1926 PR tree-optimization/36245
1927 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
1929 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1931 * config/s390/s390.md: Replace all occurences of the 'm'
1932 constraint with 'RT'.
1934 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1936 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
1938 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
1940 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
1941 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
1942 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
1944 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1946 * reload.c: (find_reloads): Skip alternatives according to the
1947 "enabled" attribute. Constify the constraint variable.
1948 * recog.c (get_attr_enabled): Add default implementation.
1949 (extract_insn): Set the alternative_enabled_p array
1950 in the recog_data struct.
1951 (preprocess_constraints, constrain_operands): Skip
1952 alternatives according to the "enabled" attribute
1953 * recog.h (struct recog_data): New field alternative_enabled_p.
1954 (skip_alternative): New inline function.
1955 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
1956 (record_reg_classes): Skip alternative according to the
1957 "enabled" attribute.
1959 * doc/md.texi: Add documention for the "enabled" attribute.
1961 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1963 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
1964 * postreload.c (reload_cse_simplify_operands): Replace 'm'
1965 constraint with TARGET_MEM_CONSTRAINT.
1966 * recog.c (asm_operand_ok, preprocess_constraints,
1967 constrain_operands): Likewise.
1968 * regclass.c (record_reg_classes): Likewise.
1969 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
1970 * reload1.c (maybe_fix_stack_asms): Likewise.
1971 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1972 * recog.h: Adjust comment.
1973 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
1974 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
1975 * doc/md.texi: Add a note to description of 'm' constraint.
1976 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
1978 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1980 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
1981 that the bitfield is of integral type before testing its precision.
1983 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1984 Sa Liu <saliu@de.ibm.com>
1986 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
1987 __modti3, __udivti3, __umodti3 and __udivmodti4.
1988 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
1989 that implement TImode mul and div functions.
1990 * config/spu/multi3.c: New. Implement __multi3.
1991 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
1992 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
1995 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
1997 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
1998 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
1999 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
2000 tls_sysv_suffix): New mode and mode attribute iterators.
2001 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
2002 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
2003 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
2004 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
2005 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
2008 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
2010 PR tree-optimization/36329
2011 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
2012 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
2013 * cgraphbuild.c (initialize_inline_failed): Use the latter
2014 macro in lieu of the former.
2015 * ipa-inline.c (cgraph_mark_inline): Likewise.
2016 (cgraph_decide_inlining_of_small_function): Likewise.
2017 (cgraph_decide_inlining): Likewise.
2018 (cgraph_decide_inlining_incrementally): Likewise.
2020 2008-05-26 Tristan Gingold <gingold@adacore.com>
2021 Anatoly Sokolov <aesok@post.ru>
2023 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
2024 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
2025 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
2026 optimization for 'avr6' architecture.
2028 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
2031 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
2033 2008-05-26 Richard Guenther <rguenther@suse.de>
2035 * tree-ssa-sccvn.c (expr_has_constants): Declare.
2036 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
2038 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
2041 * caller-save.c (insert_restore): Verify alignment of spill space.
2042 (insert_save): Likewise.
2043 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
2044 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
2045 (STACK_SLOT_ALIGNMENT): Likewise.
2046 * function.c (LOCAL_ALIGNMENT): Removed.
2047 (get_stack_local_alignment): New.
2048 (assign_stack_local): Use it. Set alignment on stack slot.
2049 (assign_stack_temp_for_type): Use get_stack_local_alignment.
2050 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
2051 (STACK_SLOT_ALIGNMENT): New.
2052 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
2053 stack slot in XFmode.
2055 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
2057 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
2060 * config/i386/i386.md (allocate_stack_worker_64): Make sure
2061 argument operand in rax isn't removed.
2063 2008-05-26 Richard Guenther <rguenther@suse.de>
2066 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
2067 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
2069 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
2072 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
2074 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
2076 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
2077 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
2079 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
2081 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
2082 build a trampoline if we don't want one.
2083 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
2084 return zero for nested functions if we don't want a trampoline.
2086 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
2088 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
2090 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
2093 * c.opt: Removed undocumented option '-lang-fortran'.
2094 * c-common.h: Removed global variable 'lang_fortran'.
2095 * c-opts.c (c_common_handle_option): Removed code to handle
2096 option '-lang-fortran'. Updated includes.
2097 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
2098 definition of '__GFORTRAN__'.
2099 (define__GNUC__): Reimplemented to use BASEVER and
2100 cpp_define_formatted.
2101 (builtin_define_with_value_n): Removed.
2102 * c-incpath.h: Renamed to ...
2103 * incpath.h: ... this.
2104 * c-incpath.c: Renamed to ...
2105 * incpath.c: ... this. Updated includes.
2106 * fix-header.c: Updated includes.
2107 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
2108 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
2109 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
2111 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
2113 * tree.h: Update the table of flags used on tree nodes.
2114 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
2115 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
2116 (FORCED_LABEL): Add access check.
2117 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
2118 (ASM_INPUT_P): Likewise.
2119 (ASM_VOLATILE_P): Likewise.
2120 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
2121 (OMP_SECTION_LAST): Access private_flag directly.
2122 (OMP_RETURN_NOWAIT): Likewise.
2123 (OMP_PARALLEL_COMBINED): Likewise.
2124 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
2125 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
2126 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
2127 deprecated_flag directly.
2129 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
2131 * final.c (frame_pointer_needed): Removed.
2132 * flags.h (frame_pointer_needed): Likewise.
2134 * function.h (rtl_data): Add frame_pointer_needed.
2135 (frame_pointer_needed): New.
2137 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
2139 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
2141 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
2143 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
2146 2008-05-25 Alan Modra <amodra@bigpond.net.au>
2148 * c-common.c (strip_array_types): Move function to..
2150 (get_inner_array_type): Delete.
2151 * c-common.h (strip_array_types): Move declaration to..
2153 (get_inner_array_type): Delete.
2154 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
2155 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
2156 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
2157 * config/pa/pa.c (emit_move_sequence): Likewise.
2159 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
2161 * config/i386/i386.md (*sse_prologue_save_insn): Set length
2164 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
2166 * function.c: Include target hook for nonlocal_goto frame value.
2168 2008-05-24 Richard Guenther <rguenther@suse.de>
2170 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
2171 variable can be only accessed through a pointer or a union.
2173 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2175 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
2176 * doc/extend.texi: Likewise.
2178 2008-05-23 DJ Delorie <dj@redhat.com>
2180 * config/m32c/jump.md (untyped_call): Add.
2182 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
2184 (m32c_address_cost): Detail costs for indirect offsets.
2186 2008-05-23 Rafael Espindola <espindola@google.com>
2188 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
2189 if a node is a SUBREG.
2190 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
2193 2008-05-23 Paul Brook <paul@codesourcery.com>
2194 Carlos O'Donell <carlos@codesourcery.com>
2196 * doc/extend.texi: Clarify use of __attribute__((naked)).
2197 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
2198 * target.h (gcc_target): Add allocate_stack_slots_for_args.
2199 * function.c (use_register_for_decl): Use
2200 targetm.calls.allocate_stack_slots_for_args.
2201 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
2202 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
2203 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
2205 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
2207 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
2209 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
2211 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
2212 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
2213 is only rounded once.
2215 2008-05-23 Richard Guenther <rguenther@suse.de>
2217 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
2219 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
2220 Jakub Jelinek <jakub@redhat.com>
2223 * configure.ac: Handle --enable-cld.
2224 * configure: Regenerated.
2225 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
2226 * config/i386/i386.h (struct machine_function): Add needs_cld field.
2227 (ix86_current_function_needs_cld): New define.
2228 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
2229 (cld): New isns pattern.
2230 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
2231 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
2232 * config/i386/i386.opt (mcld): New option.
2233 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
2234 TARGET_CLD and ix86_current_function_needs_cld.
2235 (override_options): Use -mcld by default for 32-bit code if
2238 * doc/install.texi (Options specification): Document --enable-cld.
2239 * doc/invoke.texi (Machine Dependent Options)
2240 [i386 and x86-64 Options]: Add -mcld option.
2241 (Intel 386 and AMD x86-64 Options): Document -mcld option.
2243 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
2244 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
2245 (return_in_memory_64): Likewise.
2246 (return_in_memory_ms_64): Likewise.
2248 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2250 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
2251 * builtins.c (fold_builtin_fpclassify): New.
2252 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
2253 * builtins.def (BUILT_IN_FPCLASSIFY): New.
2254 * c-common.c (handle_type_generic_attribute): Adjust to accept
2255 fixed arguments before an elipsis.
2256 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
2257 * doc/extend.texi: Document __builtin_fpclassify.
2259 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
2261 * omp-low.c (gate_expand_omp_ssa): Remove.
2262 (pass_expand_omp_ssa): Remove.
2263 (gate_expand_omp): Do not check for flag_openmp_ssa.
2264 * common.opt (-fopenmp-ssa): Remove.
2265 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
2267 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
2269 * config/sh/sh.opt (mfixed-range): New option.
2270 * config/sh/sh-protos.h (sh_fix_range): Declare.
2271 * config/sh/sh.c (sh_fix_range): New function.
2272 * config/sh/sh.h (sh_fixed_range_str): Declare.
2273 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
2275 * doc/invoke.texi (SH Options): Document -mfixed-range.
2277 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
2279 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
2280 it before the redeclaration.
2282 2008-05-22 Anatoly Sokolov <aesok@post.ru>
2284 * config/avr/avr.c (get_sequence_length): Add new function.
2285 (expand_prologue, expand_epilogue): Remove duplicate code.
2287 2008-05-22 Rafael Espindola <espindola@google.com>
2289 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
2292 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
2294 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
2295 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
2297 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
2298 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
2299 (vect_update_misalignment_for_peel): Likewise.
2300 (vector_alignment_reachable_p): Likewise.
2301 * tree-vect-transform.c (vectorizable_load): Likewise.
2302 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
2303 (get_vectype_for_scalar_type): Pass mode of scalar_type
2304 to UNITS_PER_SIMD_WORD.
2306 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
2307 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2308 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2309 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2310 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2312 2008-05-22 Ira Rosen <irar@il.ibm.com>
2314 PR tree-optimization/36293
2315 * tree-vect-transform.c (vect_transform_strided_load): Don't check
2316 if the first load must be skipped because of a gap.
2318 2008-05-22 Richard Guenther <rguenther@suse.de>
2320 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
2321 more cases of offset disambiguation that is possible if
2322 strict-aliasing rules apply.
2323 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
2324 for basic offset and type-based disambiguation.
2326 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2328 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
2329 ix86_expand_vector_set on V16QImode for SSE4.1.
2331 2008-05-21 Tom Tromey <tromey@redhat.com>
2333 * c.opt (Wimport): Mark as undocumented.
2334 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
2336 (Warning Options): Likewise.
2337 * doc/cppopts.texi: Don't mention -Wimport.
2339 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
2341 PR tree-optimization/36287
2342 PR tree-optimization/36286
2343 * lambda-code.c (build_access_matrix): Do not use the loop->num
2344 for computing the number of induction variables: use the loop depth
2347 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
2350 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
2351 option -f(no-)leading-underscore.
2353 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2355 * config/i386/i386.c (ix86_expand_vector_init_general): Use
2356 GET_MODE_NUNITS (mode).
2358 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
2360 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
2361 (-mmulhw): Add 464 to description.
2362 (-mdlmzb): Likewise.
2363 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
2364 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
2366 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
2367 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
2368 * config/rs6000/rs6000.md: Update comments for 464.
2370 2008-05-21 Janis Johnson <janis187@us.ibm.com>
2372 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
2374 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2376 * config/i386/sse.md (vec_extractv4sf): Removed.
2377 (vec_extractv2df): Likewise.
2378 (vec_extractv2di): Likewise.
2379 (vec_extractv4si): Likewise.
2380 (vec_extractv8hi): Likewise.
2381 (vec_extractv16qi): Likewise.
2382 (vec_extract<mode>): New.
2384 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2386 * config/i386/sse.md (vec_setv4sf): Removed.
2387 (vec_setv2df): Likewise.
2388 (vec_setv2di): Likewise.
2389 (vec_setv4si): Likewise.
2390 (vec_setv8hi): Likewise.
2391 (vec_setv16qi): Likewise.
2392 (vec_set<mode>): New.
2394 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2396 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
2397 goto for vec_concat and vec_interleave.
2399 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2401 * config/i386/sse.md (vec_initv4sf): Removed.
2402 (vec_initv2df): Likewise.
2403 (vec_initv2di): Likewise.
2404 (vec_initv4si): Likewise.
2405 (vec_initv8hi): Likewise.
2406 (vec_initv16qi): Likewise.
2407 (vec_init<mode>): New.
2409 2008-05-21 Joseph Myers <joseph@codesourcery.com>
2411 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
2413 2008-05-21 Tom Tromey <tromey@redhat.com>
2415 * ggc-zone.c (lookup_page_table_if_allocated): New function.
2416 (zone_find_object_offset): Likewise.
2417 (gt_ggc_m_S): Likewise.
2418 (highest_bit): Likewise.
2419 * ggc-page.c (gt_ggc_m_S): New function.
2420 * stringpool.c (string_stack): Remove.
2421 (init_stringpool): Update.
2422 (ggc_alloc_string): Use ggc_alloc.
2423 (maybe_delete_ident): New function.
2424 (ggc_purge_stringpool): Likewise.
2425 (gt_ggc_m_S): Remove.
2426 * ggc-common.c (ggc_protect_identifiers): New global.
2427 (ggc_mark_roots): Call ggc_purge_stringpool. Use
2428 ggc_protect_identifiers.
2429 * ggc.h (ggc_protect_identifiers): Declare.
2430 (gt_ggc_m_S): Update.
2431 (ggc_purge_stringpool): Declare.
2432 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
2433 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
2435 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
2437 2008-05-21 David S. Miller <davem@davemloft.net>
2439 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
2442 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
2444 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
2447 2008-05-20 David Daney <ddaney@avtrex.com>
2449 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
2450 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
2451 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2452 UNSPEC_UPDATE_GOT_VERSION): Renumber.
2453 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
2454 (atomic_hiqi_op): New define_code_iterator.
2455 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
2456 mips_expand_compare_and_swap_12.
2457 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
2458 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
2459 (sync_<optab><mode>, sync_old_<optab><mode>,
2460 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
2461 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
2462 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
2463 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
2464 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
2465 (test_and_set_12): New insn.
2466 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
2467 sync_new_<optab><mode>, sync_old_nand<mode>,
2468 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
2469 clobber to operand 0 for SI and DI mode insns.
2470 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
2471 mips_gen_fn_4): New typedefs.
2472 (mips_gen_fn_ptrs): Define new union type.
2473 (mips_expand_compare_and_swap_12): Remove declaration.
2474 (mips_expand_atomic_qihi): Declare function.
2475 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
2476 (mips_expand_atomic_qihi): ... this. Use new generator function
2478 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
2479 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
2480 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
2481 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
2482 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
2483 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
2484 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
2485 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
2486 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
2487 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
2490 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
2492 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
2495 2008-05-20 Anatoly Sokolov <aesok@post.ru>
2497 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
2498 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
2499 (avr_attribute_table): Add 'OS_main' function attribute.
2500 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
2501 functions with 'OS_main' attribute.
2503 2008-05-20 Richard Guenther <rguenther@suse.de>
2505 PR tree-optimization/35204
2506 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
2507 helper, split out from ...
2508 (DFS): ... here. Make the DFS walk non-recursive.
2510 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
2511 Jan Sjodin <jan.sjodin@amd.com>
2513 PR tree-optimization/36181
2514 * tree-parloops.c (loop_has_vector_phi_nodes): New.
2515 (parallelize_loops): Don't parallelize when the loop has vector
2518 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2519 Sebastian Pop <sebastian.pop@amd.com>
2521 * tree-loop-linear.c (gather_interchange_stats): Look in the access
2522 matrix, and never look at the tree representation of the memory
2524 (linear_transform_loops): Computes parameters and access matrices.
2525 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
2527 (access_matrix_get_index_for_parameter): New.
2528 * tree-data-ref.h (struct access_matrix): New.
2529 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
2530 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
2531 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
2532 am_vector_index_for_loop): New.
2533 (struct data_reference): Add field access_matrix.
2534 (DR_ACCESS_MATRIX): New.
2535 (compute_data_dependences_for_loop): Update declaration.
2536 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
2537 * lambda.h (lambda_vector_vec_p): Declared.
2538 * lambda-code.c: Depend on pointer-set.h.
2539 (lambda_collect_parameters_from_af, lambda_collect_parameters,
2540 av_for_af_base, av_for_af, build_access_matrix,
2541 lambda_compute_access_matrices): New.
2542 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
2544 2008-05-20 Joseph Myers <joseph@codesourcery.com>
2546 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
2549 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2550 Sebastian Pop <sebastian.pop@amd.com>
2552 PR tree-optimization/36206
2553 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
2555 (instantiate_scev_1): Rename flags to fold_conversions.
2556 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
2557 outeside instantiation_loop.
2558 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
2559 (evolution_function_is_affine_or_constant_p): Removed.
2560 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
2562 (analyze_siv_subscript): Pass in the loop nest number.
2563 Call evolution_function_is_affine_in_loop instead of
2564 evolution_function_is_affine_p.
2565 (analyze_overlapping_iterations): Pass in the loop nest number.
2567 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2568 Sebastian Pop <sebastian.pop@amd.com>
2570 PR tree-optimization/36206
2571 * tree-chrec.h (chrec_fold_op): New.
2572 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
2575 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
2577 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
2579 (remove_duplicates): Do not set inode on non-inode systems.
2582 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
2584 * config.gcc (tm_file): Update comments about relative pathnames.
2586 2008-05-20 Richard Guenther <rguenther@suse.de>
2588 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
2589 * tree-ssa-sccvn.c (process_scc): Likewise.
2590 * tree-ssa-sink.c (execute_sink_code): Likewise.
2591 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2592 * tree-vrp.c (process_assert_insertions): Likewise.
2593 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
2594 (perform_tree_ssa_dce): Likewise.
2595 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2596 (dump_dominator_optimization_stats): Likewise.
2597 * tree-vectorizer.c (vectorize_loops): Likewise.
2599 2008-05-20 Richard Guenther <rguenther@suse.de>
2601 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
2603 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
2605 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
2606 (ix86_i386elf_return_in_memory): Likewise.
2607 (ix86_i386interix_return_in_memory): Likewise.
2608 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
2609 (SUBTARGET_RETURN_IN_MEMORY): New.
2610 * config/i386/i386elf.h: Likewise.
2611 * config/i386/ptx4-i.h: Likewise.
2612 * config/i386/sol2-10.h: Likewise.
2613 * config/i386/sysv4.h: Likewise.
2614 * config/i386/vx-common.h: Likewise.
2615 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
2616 * config/i386/i386.c (ix86_return_in_memory): Made static and
2617 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
2618 (ix86_i386elf_return_in_memory): Removed.
2619 (ix86_i386interix_return_in_memory): Removed.
2620 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
2621 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
2623 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
2625 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
2627 2008-05-19 Xinliang David Li <davidxl@google.com>
2629 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
2631 * common.opt: Ditto.
2632 * doc/invoke.texi: Ditto.
2634 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
2636 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
2637 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
2639 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
2641 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
2642 sizes of operand array from 8/4 to 4/2.
2643 (ix86_expand_vector_init_general): Change size of operand array
2644 from 32 to 16. Remove op0, op1 and half_mode.
2646 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
2648 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
2649 (ix86_expand_vector_init_interleave): Likewise.
2650 (ix86_expand_vector_init_general): Use them. Assert
2651 word_mode == SImode when n_words == 4.
2653 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
2655 * config/i386/i386.c (ix86_secondary_reload): New static function.
2656 (TARGET_SECONDARY_RELOAD): New define.
2657 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2658 * config/i386/i386.md (reload_outqi): Remove.
2660 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2663 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
2664 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
2665 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
2666 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
2667 (fold_builtin_1): Likewise.
2668 * builtins.def (BUILT_IN_ISINF_SIGN): New.
2669 c-common.c (check_builtin_function_arguments): Handle
2670 BUILT_IN_ISINF_SIGN.
2671 * doc/extend.texi: Document __builtin_isinf_sign.
2672 * fold-const.c (operand_equal_p): Handle COND_EXPR.
2674 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
2676 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
2677 EH cleanup at the end of the pass, search for those that have been
2678 turned into forwarder blocks and do the cleanup on their successor.
2680 2008-05-18 Richard Guenther <rguenther@suse.de>
2682 * tree-cfg.c (verify_gimple_expr): Allow conversions from
2683 pointers to sizetype and vice versa.
2685 2008-05-18 Xinliang David Li <davidxl@google.com>
2687 * gcc/tree-ssa-dce.c: Coding style fix.
2688 (check_pow): Documentation comment.
2689 (check_log): Documenation comment. Coding style fix.
2690 (is_unnecessary_except_errno_call): Ditto.
2691 (gen_conditions_for_pow): Ditto.
2692 (gen_conditions_for_log): Ditto.
2693 (gen_shrink_wrap_conditions): Ditto.
2694 (shrink_wrap_one_built_in_calls): Ditto.
2695 * gcc/doc/invoke.texi: Better documentation string.
2696 * ChangeLog: Fix wrong change log entries from
2697 May 17 checkin on function call DCE.
2699 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
2701 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
2703 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
2705 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
2706 * df-problems.c (simulation routines): Fixed block comment to
2707 properly say how to add forwards scanning functions.
2709 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2711 * tree-inline.c (setup_one_parameter): Remove dead code.
2713 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2715 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
2716 a BIT_AND_EXPR only for an INTEGER_TYPE.
2718 2008-05-17 Xinliang David Li <davidxl@google.com>
2720 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
2721 (check_pow, check_log, is_unnecessary_except_errno_call): New
2722 functions to check for eliminating math functions that are pure
2723 except for setting errno.
2724 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
2725 general condition expressions for shrink-wrapping pow/log calls.
2726 (gen_shrink_wrap_conditions): Ditto.
2727 (shrink_wrap_one_built_in_call): Ditto.
2728 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
2729 (mark_operand_necessary): If debugging, output if OP is necessary.
2730 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
2732 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
2734 * gcc/common.opt: New user flag -ftree-builtin-dce.
2735 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
2737 2008-05-16 David S. Miller <davem@davemloft.net>
2739 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
2740 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2742 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
2745 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
2747 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2749 * ifcvt.c (dead_or_predicable): Rename
2750 df_simulate_one_insn_backwards to df_simulate_one_insn.
2751 * recog.c (peephole2_optimize): Ditto.
2752 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
2754 * df.h: Rename df_simulate_one_insn_backwards to
2755 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
2756 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
2757 scanning of defs and uses.
2758 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
2759 (df_simulate_one_insn_forwards): Removed.
2761 2008-05-16 Doug Kwan <dougkwan@google.com>
2763 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
2765 (real_from_string): Handle NaNs and Inf as approriate.
2767 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
2769 * doc/gty.texi (Source Files Containing Type Information): Note
2770 that headers should appear first in the gtfiles list.
2772 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2774 * tree.def (COND_EXEC): Properly documented this code.
2776 2008-05-16 Diego Novillo <dnovillo@google.com>
2778 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
2779 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
2782 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2784 * tree-ssa-dse (max_stmt_uid): Removed.
2785 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
2786 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
2787 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
2788 * function.h (cfun.last_stmt_uid): New field.
2789 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
2790 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
2792 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
2793 (create_stmt_ann): Initialize the ann->uid field.
2794 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
2796 * tree-flow.h (renumber_gimple_stmt_uids): New function.
2798 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
2800 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
2801 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
2802 (init_empty_tree_cfg): Call it.
2804 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2806 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
2809 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2811 * doc/invoke.text (-fdump-tree-*-verbose): New option.
2812 * tree-dump.c (dump_options): New verbose option.
2813 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
2815 * tree-pass.h (TDF_VERBOSE): New dump flag.
2816 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
2817 (tree-flow.h): Added include.
2818 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
2820 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
2822 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
2824 From Jie Zhang <jie.zhang@analog.com>
2825 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2826 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
2827 mcpu=bf561-none and mcpu=bf561-0.2.
2828 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2829 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2830 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2831 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2832 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
2833 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
2834 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
2836 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
2837 (cputype_selected): Remove.
2838 (bfin_handle_option): Don't use cputype_selected.
2839 (override_options): When no mcpu option, enable all workarounds.
2840 Don't use bfin_workarounds.
2841 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
2843 (DEFAULT_CPU_TYPE): Don't define.
2845 2008-05-16 Richard Guenther <rguenther@suse.de>
2847 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
2848 on deletion of the last stmt.
2850 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
2852 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
2853 V8HImode for SSE2 and V16QImode for SSE4.1.
2855 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
2857 * cgraph.h (compute_inline_parameters): Made public.
2858 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
2859 variable_generate_summary, function_write_summary,
2860 variable_write_summary, variable_read_summary. Added generate_summary,
2861 write_summary, read_summary.
2862 * cgraphunit.c (cgraph_process_new_functions): Changed call from
2863 pass_ipa_inline.function_generate_summary, to
2864 compute_inline_parameters.
2865 * ipa-inline.c (compute_inline_parameters): Made public and added
2867 (compute_inline_parameters_for_current): New function.
2868 (pass_inline_param): Now calls compute_inline_parameters_for_current.
2869 (inline_generate_summary): Removed parameter and made to loop over
2871 (pass_ipa_inline): Updated for new IPA_PASS structure.
2872 * passes.c (execute_ipa_summary_passes): Now is called once per
2873 pass rather than once per node*pass.
2875 2008-05-15 Anatoly Sokolov <aesok@post.ru>
2877 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
2878 avr_have_mul_p, avr_asm_only_p): Remove variables.
2879 (avr_override_options): Remove initialization of removed variables.
2880 (avr_file_start): Convert removed variables to fields of
2881 'struct base_arch_s *avr_current_arch'.
2882 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
2883 (AVR_HAVE_MUL): (Ditto.).
2884 (AVR_HAVE_MOVW): (Ditto.).
2885 (AVR_HAVE_LPMX): (Ditto.).
2886 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
2887 avr_asm_only_p): Remove declaration.
2889 2008-05-15 Diego Novillo <dnovillo@google.com>
2891 * config/arm/arm.c (arm_return_in_memory): Fix return type.
2892 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
2894 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
2897 * combine.c (check_conversion): Rename back to check_promoted_subreg.
2898 Don't call record_truncated_value from here.
2899 (record_truncated_value): Turn it into a for_each_rtx callback.
2900 (record_truncated_values): New function.
2901 (combine_instructions): Call note_uses with record_truncated_values.
2902 Change name of check_conversion to check_promoted_subreg.
2904 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2906 * doc/sourcebuild.texi: Document support for torture tests.
2908 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
2910 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
2911 to alternative 4 of operand 2.
2913 2008-05-15 Richard Guenther <rguenther@suse.de>
2915 * tree-pass.h (current_pass): Declare.
2916 (get_pass_for_id): Likewise.
2917 * passes.c (passes_by_id, passes_by_id_size): New globals.
2918 (set_pass_for_id): New function.
2919 (get_pass_for_id): Likewise.
2920 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
2921 (execute_function_todo): Flush per function statistics.
2922 * toplev.c (compile_file): Init statistics.
2923 (general_init): Do early statistics initialization.
2924 (finalize): Finish statistics.
2925 * statistics.h (statistics_early_init): Declare.
2926 (statistics_init): Likewise.
2927 (statistics_fini): Likewise.
2928 (statistics_fini_pass): Likewise.
2929 (statistics_counter_event): Likewise.
2930 (statistics_histogram_event): Likewise.
2931 * statistics.c: New file.
2932 * Makefile.in (OBJS-common): Add statistics.o.
2933 (statistics.o): Add dependencies.
2934 * doc/invoke.texi (-fdump-statistics): Document.
2936 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
2938 (execute_pre): Use statistics_counter_event.
2939 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
2940 (substitute_and_fold): Increment it. Use statistics_counter_event.
2942 2008-05-15 Diego Novillo <dnovillo@google.com>
2944 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
2946 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
2947 * tree-ssa-alias.c (new_type_alias): Remove references to
2948 sub-variables from comment.
2949 * tree-ssa-operands.c (swap_tree_operands): Likewise.
2951 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
2953 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
2954 attribute to 1 only for insertps alternative.
2956 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
2958 * config/bfin/bfin.md (loadbytes): New pattern.
2959 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
2960 (bfin_init_builtins): Initialize it.
2961 (bdesc_1arg): Add it.
2963 2008-05-15 Sa Liu <saliu@de.ibm.com>
2965 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
2966 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
2967 * testsuite/lib/target-supports.exp: Add
2968 check_effective_target_fortran_integer_16.
2970 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
2972 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
2973 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
2974 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
2975 (TARGET_RETURN_IN_MEMORY): Define.
2977 2008-05-15 Richard Guenther <rguenther@suse.de>
2980 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
2981 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
2982 represent unmodifiable vars.
2984 2008-05-15 Richard Guenther <rguenther@suse.de>
2986 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
2987 INDIRECT_REF and TARGET_MEM_REF.
2988 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2991 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
2992 H.J. Lu <hongjiu.lu@intel.com>
2994 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
2995 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
2996 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
2997 insn alternatives. Add missing alternatives.
2998 (*vec_concatv2di_rex64_sse4_1): Likewise.
2999 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
3000 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
3003 2008-05-15 Richard Guenther <rguenther@suse.de>
3005 PR tree-optimization/36009
3006 PR tree-optimization/36204
3007 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
3008 (determine_invariantness_stmt): Record the loop a store is
3010 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
3013 2008-05-15 Richard Guenther <rguenther@suse.de>
3015 PR tree-optimization/34330
3016 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
3017 through the pointer will alias the SMT.
3019 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
3021 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
3023 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
3025 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
3027 2008-05-14 Michael Meissner <michael.meissner@amd.com>
3028 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3030 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
3031 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
3032 (vashl_optab): New optab for vector/vector shifts.
3033 (vashr_optab): Ditto.
3034 (vlshr_optab): Ditto.
3035 (vrotl_optab): Ditto.
3036 (vrotr_optab): Ditto.
3037 (optab_subtype): New enum for optab_for_tree_code call.
3038 (optab_for_tree_code): Add enum optab_subtype argument.
3040 * optabs.c (optab_for_tree_code): Take an additional argument to
3041 distinguish between a vector shift by a scalar and vector shift by
3042 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
3043 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
3044 vector shift by a vector.
3045 (expand_widen_pattern_expr): Pass additional argument to
3046 optab_for_tree_code.
3048 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
3049 vrotl_optab, vrotr_optab.
3051 * expr.c (expand_expr_real_1): Update calls to
3052 optab_for_tree_code to distinguish between vector shifted by a
3053 scalar and vector shifted by a vector.
3054 * tree-vectorizer.c (supportable_widening_operation): Ditto.
3055 (supportable_narrowing_operation): Ditto.
3056 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
3057 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
3058 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
3059 (vect_create_epilog_for_reduction): Ditto.
3060 (vectorizable_reduction): Ditto.
3061 (vectorizable_operation): Ditto.
3062 (vect_strided_store_supported): Ditto.
3063 (vect_strided_load_supported): Ditto.
3064 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
3065 * expmed.c (expand_shift): Ditto.
3067 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
3069 (ashr@var{m}3): Ditto.
3070 (vashl@var{m}3): Document new vector/vector shift standard name.
3071 (vashr@var{m}3): Ditto.
3072 (vlshr@var{m}3): Ditto.
3073 (vrotl@var{m}3): Ditto.
3074 (vrotr@var{m}3): Ditto.
3076 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
3077 (PPERM_INVERT): Ditto.
3078 (PPERM_REVERSE): Ditto.
3079 (PPERM_REV_INV): Ditto.
3080 (PPERM_ZERO): Ditto.
3081 (PPERM_ONES): Ditto.
3082 (PPERM_SIGN): Ditto.
3083 (PPERM_INV_SIGN): Ditto.
3084 (PPERM_SRC1): Ditto.
3085 (PPERM_SRC2): Ditto.
3087 * config/i386/sse.md (mulv2di3): Add SSE5 support.
3088 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
3089 allows a memory operand to be the value being added, and split it
3090 to improve vectorization.
3091 (sse5_pmacsdqh_mem): Ditto.
3092 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
3093 (sse5_mulv2div2di3_high): Ditto.
3094 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
3095 (vec_pack_trunc_v4si): Ditto.
3096 (vec_pack_trunc_v2di): Ditto.
3097 (sse5_pcmov_<mode>): Remove code that tried to use use
3098 andps/andnps instead of pcmov.
3099 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
3100 pmacsdqh instructions.
3101 (vec_widen_smult_lo_v4si): Ditto.
3103 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
3104 (PPERM_INVERT): Ditto.
3105 (PPERM_REVERSE): Ditto.
3106 (PPERM_REV_INV): Ditto.
3107 (PPERM_ZERO): Ditto.
3108 (PPERM_ONES): Ditto.
3109 (PPERM_SIGN): Ditto.
3110 (PPERM_INV_SIGN): Ditto.
3111 (PPERM_SRC1): Ditto.
3112 (PPERM_SRC2): Ditto.
3113 (ix86_expand_sse_movcc): Move the SSE5 test after the if
3115 (ix86_expand_int_vcond): If SSE5 generate all possible integer
3117 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
3118 says ignore whether the last reference is a memory operand.
3120 2008-05-14 Michael Meissner <michael.meissner@amd.com>
3121 Paolo Bonzini <bonzini at gnu dot org>
3123 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
3126 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
3127 (vlshr<mode>3): Rename from vlshr<mode>3.
3128 (vashr<mode>3): Rename from vashr<mode>3.
3129 (mulv4sf3): Change the names of vector shift patterns.
3133 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
3136 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
3161 * config/spu/spu.md (v): New iterator macro to add v for vector types.
3162 (floatunssidf2_internal): Change vector/vector shift names.
3163 (floatunsdidf2_internal): Ditto.
3170 (vashl<mode>3): Rename from ashl<mode>3.
3171 (vashr<mode>3): Rename from ashr<mode>3.
3172 (vlshr<mode>3): Rename from lshr<mode>3.
3173 (vrotl<mode>3): Rename from rotl<mode>3.
3175 2008-05-14 Michael Meissner <michael.meissner@amd.com>
3178 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
3179 multiply gives the wrong value when doing widening multiplies.
3180 (vec_widen_smult_lo_v4si): Ditto.
3182 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
3184 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
3185 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
3186 emit_library_call_value.
3187 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
3188 * tree.h (ECF_LIBCALL_BLOCK): Removed.
3189 * calls.c (initialize_argument_information, precompute_arguments,
3190 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
3191 (precompute_arguments): Removed flags parameter.
3192 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
3194 2008-05-14 Richard Guenther <rguenther@suse.de>
3196 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
3197 Make sure to register the store if the use is a PHI_NODE.
3199 2008-05-14 Olivier Hainque <hainque@adacore.com>
3201 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
3202 memory if the component is to be referenced in BLKmode according
3203 to get_inner_reference.
3205 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
3207 * calls.c (emit_library_call_value_1): Restore code clearing
3208 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
3210 2008-05-14 Olivier Hainque <hainque@adacore.com>
3211 Nicolas Roche <roche@adacore.com>
3213 * configure.ac: Add support for a "gcc_subdir" variable in
3214 config-lang.in, to denote a subdirectory where the language/GCC
3215 integration files are to be found.
3216 * configure: Regenerate.
3218 2008-05-14 Ira Rosen <irar@il.ibm.com>
3220 PR tree-optimization/36098
3221 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
3222 value for the first load in the group in case of a gap.
3223 (vect_build_slp_tree): Check that there are no gaps in loads.
3225 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
3227 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
3228 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
3229 expand_copysign_bit, ): Change call to emit_no_conflict_block to
3230 emit_insn and remove unneeded code to construct extra args.
3231 (emit_no_conflict_block): Removed.
3232 * optabls.h: (emit_no_conflict_block): Removed.
3233 * cse.c (cse_extended_basic_block): Remove search for
3234 REG_NO_CONFLICT note.
3235 * global.c: Removed incorrect comment added in revision 117.
3236 * expr.c (convert_move): Change call to emit_no_conflict_block to
3238 * recog.c: Change comments so that they do not mention
3240 * local_alloc.c (combine_regs): Removed last parameter.
3241 (no_conflict_p): Removed.
3242 (block_alloc): Removed note, no_conflict_combined_regno and set
3243 local vars. Removed all code to process REG_NO_CONFLICT blocks.
3244 (combine_regs): Removed already_dead and code to look for
3245 REG_NO_CONFLICT notes.
3246 * lower_subreg (remove_retval_note): Removed code to look for
3247 REG_NO_CONFLICT block.
3248 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
3249 (resolve_clobber): Remove code to process libcalls that have
3250 REG_NO_CONFLICT notes.
3251 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
3253 * combine.c (can_combine_p, distribute_notes): Removed
3254 REG_NO_CONFLICT case.
3255 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
3257 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
3258 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
3260 * reg-notes.def (NO_CONFLICT): Removed.
3262 2008-05-14 David S. Miller <davem@davemloft.net>
3264 * config/sparc/sparc.c (sparc_profile_hook): If
3265 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
3266 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
3267 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
3269 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
3271 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
3273 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
3276 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
3277 and op1 expansion before vector concat to have less live pseudos.
3279 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
3281 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
3282 ix86_expand_vector_set if supported.
3284 2008-05-13 Diego Novillo <dnovillo@google.com>
3285 Kenneth Zadeck <zadeck@naturalbridge.com>
3287 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
3289 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
3290 phinodes_print_statistics, init_ssanames, fini_ssanames,
3291 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
3292 release_ssa_name, release_defs, replace_ssa_name_symbol,
3293 ssanames_print_statistics): Move ...
3294 * tree-flow.h: ... here.
3295 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
3296 Use FN instead of cfun.
3297 (make_ssa_name_fn): Rename from make_ssa_name.
3298 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
3299 * tree-flow-inline.h (make_ssa_name): Move from
3300 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
3301 * omp-low.c (expand_omp_parallel):
3302 * tree-flow-inline.h (redirect_edge_var_map_result):
3303 * tree-ssa.c (init_tree_ssa): Add argument FN.
3304 Use it instead of cfun. Update all users.
3306 2008-05-13 Tom Tromey <tromey@redhat.com>
3308 PR preprocessor/22168:
3309 * doc/cpp.texi (Top): Update menu.
3310 (Alternatives to Wrapper #ifndef): New node.
3311 (Other Directives): Document deprecation.
3312 (Obsolete Features): Remove menu.
3313 (Assertions): Merge node into Obsolete Features.
3314 (Obsolete once-only headers): Move earlier; rename to Alternatives
3316 * doc/cppopts.texi: Update.
3317 * c.opt (Wdeprecated): Enable for C and ObjC.
3318 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
3319 (C++ Dialect Options): Move -Wno-deprecated from here to...
3320 (Warning Options): ... here.
3322 2008-05-13 Richard Guenther <rguenther@suse.de>
3325 * fold-const.c (fold_sign_changed_comparison): Do not allow
3326 changes in pointer-ness.
3328 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
3331 * config/sh/sh.c (sh_expand_prologue): Don't clear
3332 RTX_FRAME_RELATED_P for push insns.
3334 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
3336 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
3338 2008-05-12 Anatoly Sokolov <aesok@post.ru>
3340 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
3341 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
3342 Use 'machine->is_leaf' instead of 'leaf_func_p'.
3344 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
3346 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
3347 (*vec_concatv4sf_sse): This.
3348 (*sse2_concatv2si): Renamed to ...
3349 (*vec_concatv2si_sse2): This.
3350 (*sse1_concatv2si): Renamed to ...
3351 (*vec_concatv2si_sse): This.
3352 (*vec_concatv2di_rex): Renamed to ...
3353 (*vec_concatv2di_rex64): This.
3354 (*vec_concatv2si_sse4_1): New.
3355 (*vec_concatv2di_rex64_sse4_1): Likewise.
3357 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
3359 PR rtl-optimization/36111
3360 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
3361 that was created for swappable operands.
3363 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
3366 * Makefile.in: Substitute GNATMAKE and GNATBIND.
3367 * configure.ac: Add call to ACX_PROG_GNAT.
3369 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
3371 * optc-gen.awk: Fix comment typo.
3373 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3375 * pretty-print.c (pp_integer_with_precision): Use
3376 HOST_LONG_LONG_FORMAT.
3378 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
3380 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
3382 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
3384 * config/i386/i386.c (bdesc_ptest): Removed.
3385 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
3386 (bdesc_args): Add __builtin_ia32_ptestz128,
3387 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
3388 (ix86_init_mmx_sse_builtins): Updated.
3389 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
3390 (ix86_expand_builtin): Updated.
3392 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
3394 * tree-cfg.c (valid_fixed_convert_types_p): New function.
3395 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
3397 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
3399 * value-prof.c (interesting_stringop_to_profile): Do not
3400 return early for BUILT_IN_MEMPCPY.
3402 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
3404 * calls.c (expand_call): Don't use callgraph to increase
3405 preferred_stack_boundary.
3407 * cgraph.h (cgraph_rtl_info): Use unsigned on
3408 preferred_incoming_stack_boundary.
3410 * final.c (rest_of_clean_state): Use unsigned on
3411 preferred_stack_boundary.
3413 2008-05-09 Tom Tromey <tromey@redhat.com>
3415 PR preprocessor/22231:
3416 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
3419 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
3421 PR tree-optimization/36129
3422 * tree-ssa-ccp.c: Include value-prof.h.
3423 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
3424 built-in function was folded to a constant.
3425 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
3427 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
3428 Sebastian Pop <sebastian.pop@amd.com>
3430 * tree-scalar-evolution.c: Document instantiate_scev.
3431 (instantiate_parameters_1): Renamed instantiate_scev_1.
3432 Don't use the same loop for instantiation_loop and evolution_loop.
3433 (instantiate_scev): New.
3434 (instantiate_parameters): Moved...
3435 (resolve_mixers): Update call to instantiate_scev_1 to pass the
3436 same loop twice. Maintains the semantics for this function.
3437 * tree-scalar-evolution.h (instantiate_scev): Declare.
3438 (instantiate_parameters): ...here. Now static inline.
3439 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
3440 instead of resolve_mixers.
3442 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
3444 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
3446 2008-05-09 Tomas Bily <tbily@suse.cz>
3448 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
3449 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
3450 * tree-ssa-structalias.c (get_constraint_for): Likewise.
3451 * c-common.c (c_common_truthvalue_conversion): Likewise.
3452 * tree-object-size.c (compute_object_offset): Likewise.
3453 * tree-inline.c (estimate_num_insns_1): Likewise.
3454 * varasm.c (const_hash_1, compare_constant, copy_constant)
3455 (compute_reloc_for_constant, output_addressed_constants)
3456 (initializer_constant_valid_p): Likewise.
3457 * c-omp.c (check_omp_for_incr_expr): Likewise.
3458 * gimplify.c (gimplify_expr): Likewise.
3459 * c-typeck.c (c_finish_return): Likewise.
3460 * tree-vectorizer.c (supportable_widening_operation)
3461 (supportable_narrowing_operation): Likewise.
3462 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
3463 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
3464 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
3465 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
3466 (descr_info_loc): Likewise.
3467 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
3468 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
3469 (fold_unary): Likewise.
3470 * builtins.c (get_pointer_alignment): Likewise.
3471 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
3472 (instantiate_parameters_1): Likewise.
3473 * tree.c (expr_align, stabilize_reference): Likewise.
3474 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
3475 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3476 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
3477 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
3478 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
3479 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
3481 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
3482 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
3483 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
3484 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
3485 (forward_propagate_comparison)
3486 (tree_ssa_forward_propagate_single_use_vars): Likewise.
3487 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
3488 * emit-rtl.c (component_ref_for_mem_expr)
3489 (set_mem_attributes_minus_bitpos): Likewise.
3490 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
3491 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
3493 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
3494 (build_function_call, pointer_diff, build_compound_expr)
3495 (c_finish_return): Likewise.
3496 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
3497 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
3499 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
3500 * expr.c (is_aligning_offset): Likewise.
3501 * tree-ssa-alias.c (is_escape_site): Likewise.
3502 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
3503 (check_all_va_list_escapes): Likewise.
3504 * tree-ssa-loop-ivopts.c (determine_base_object)
3505 (determine_common_wider_type): Likewise.
3506 * dojump.c (do_jump): Likewise.
3507 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
3508 * tree-gimple.c (is_gimple_cast): Likewise.
3509 * fold-const.c (decode_field_reference, )
3510 (fold_sign_changed_comparison, fold_unary, fold_comparison)
3511 (fold_binary): Likewise.
3512 * tree-ssa-alias-warnings.c (find_alias_site_helper)
3513 (already_warned_in_frontend_p): Likewise.
3514 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
3515 * tree.c (really_constant_p, get_unwidened): Likewise.
3516 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
3517 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
3518 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
3520 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
3522 (CONVERT_EXPR_P): Define.
3523 (CASE_CONVERT): Define.
3525 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
3528 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
3529 (delete_unmarked_insns): When deleting a call, call
3530 delete_unreachable_blocks.
3531 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3532 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
3534 2008-05-08 Richard Guenther <rguenther@suse.de>
3536 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
3537 (-ftree-salias): Likewise.
3538 (salias-max-implicit-fields): Remove param documentation.
3539 (salias-max-array-elements): Likewise.
3540 * tree-pass.h (pass_create_structure_vars): Remove.
3541 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3542 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3543 * tree-ssa-alias.c (create_structure_vars): Remove.
3544 (gate_structure_vars): Likewise.
3545 (pass_create_structure_vars): Likewise.
3546 (gate_build_alias): Likewise.
3547 (pass_build_alias): Adjust to run always and dump the function.
3548 * common.opt (ftree-salias): Hide.
3549 * passes.c (init_optimization_passes): Remove
3550 pass_create_structure_vars, adjust comment.
3551 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3552 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3553 * opts.c (decode_options): Do not set flag_tree_salias.
3554 (common_handle_option): Add OPT_ftree_salias to the backward
3555 compatibility section.
3557 2008-05-08 Richard Guenther <rguenther@suse.de>
3559 * tree-flow-inline.h (var_can_have_subvars): Move ...
3560 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
3561 * tree-flow.h (var_can_have_subvars): Remove.
3562 (push_fields_onto_fieldstack): Remove.
3563 (sort_fieldstack): Likewise.
3564 (struct fieldoff): Move ...
3565 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
3566 alias_set and base_for_components fields.
3567 (sort_fieldstack): Make static.
3568 (push_fields_onto_fieldstack): Likewise. Remove code that
3569 handles anything but RECORD_TYPEs. Remove alias_set and
3570 base_for_components handling.
3571 (create_variable_info_for): Adjust.
3573 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
3575 * common.opt (Wframe-larger-than=): Shorten the help message
3577 * doc/invoke.texi (Wframe-larger-than=): Add more description.
3579 2008-05-08 Rafael Espindola <espindola@google.com>
3581 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
3583 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
3584 trap and that both operands are gimple values.
3585 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
3586 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
3589 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
3591 * read-rtl.c (join_c_conditions): Return the first string if the
3592 two strings are equal.
3594 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
3596 * gensupport.h (pred_data): Add a "num_codes" field.
3597 (add_predicate_code): Declare.
3598 * gensupport.c (add_predicate_code): New function.
3599 (std_pred_table): Add an "allows_const_p" field.
3600 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
3601 Remove the (incomplete) list of such codes from the codes field.
3602 (init_predicate_table): Use add_predicate_code. Add all
3603 RTX_CONST_OBJs if allows_const_p is true.
3604 * genrecog.c (process_define_predicate): Use add_predicate_code.
3606 2008-05-08 David Daney <ddaney@avtrex.com>
3607 Richard Sandiford <rsandifo@nildram.co.uk>
3609 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
3610 special case of constant zero operands.
3611 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
3612 old and new values. Special case constant zero values.
3613 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
3615 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
3616 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
3618 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
3621 * simplify-rtx.c (simplify_plus_minus): Create CONST of
3622 similar RTX_CONST_OBJ before CONST_INT.
3624 2008-05-08 Steve Ellcey <sje@cup.hp.com>
3626 * stmt.c (expand_stack_restore): Change sa mode if needed.
3628 2008-05-08 Richard Guenther <rguenther@suse.de>
3630 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
3631 return type to bool.
3632 (ix86_sol10_return_in_memory): Likewise.
3633 (ix86_i386elf_return_in_memory): Likewise.
3634 (ix86_i386interix_return_in_memory): Likewise.
3635 * config/i386/i386.c (ix86_return_in_memory): Likewise.
3636 (ix86_sol10_return_in_memory): Likewise.
3637 (ix86_i386elf_return_in_memory): Likewise.
3638 (ix86_i386interix_return_in_memory): Likewise.
3640 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
3643 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
3645 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
3646 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
3649 2008-05-08 Richard Guenther <rguenther@suse.de>
3651 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
3652 * tree-data-ref.h (struct dr_alias): Remove subvars field.
3653 (DR_SUBVARS): Remove.
3654 * tree-dfa.c (dump_subvars_for): Remove.
3655 (debug_subvars_for): Likewise.
3656 (dump_variable): Do not dump subvars.
3657 (remove_referenced_var): Do not remove subvars.
3658 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
3659 (lookup_subvars_for_var): Remove.
3660 (get_subvars_for_var): Likewise.
3661 (get_subvars_at): Likewise.
3662 (get_first_overlapping_subvar): Likewise.
3663 (overlap_subvar): Likewise.
3664 * tree-flow.h (subvar_t): Remove.
3665 (struct var_ann_d): Remove subvars field.
3666 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
3667 argument. Remove special handling of SFTs.
3668 (compute_tag_properties): Likewise.
3669 (set_initial_properties): Likewise.
3670 (compute_call_clobbered): Likewise.
3671 (count_mem_refs): Likewise.
3672 (compute_memory_partitions): Likewise.
3673 (compute_flow_insensitive_aliasing): Likewise.
3674 (setup_pointers_and_addressables): Likewise.
3675 (new_type_alias): Likewise.
3676 (struct used_part): Remove.
3677 (used_portions): Likewise.
3678 (struct used_part_map): Likewise.
3679 (used_part_map_eq): Likewise.
3680 (used_part_map_hash): Likewise.
3681 (free_used_part_map): Likewise.
3682 (up_lookup): Likewise.
3683 (up_insert): Likewise.
3684 (get_or_create_used_part_for): Likewise.
3685 (create_sft): Likewise.
3686 (create_overlap_variables_for): Likewise.
3687 (find_used_portions): Likewise.
3688 (create_structure_vars): Likewise.
3689 * tree.def (STRUCT_FIELD_TAG): Remove.
3690 * tree.h (MTAG_P): Adjust.
3691 (struct tree_memory_tag): Remove base_for_components and
3692 unpartitionable flags.
3693 (struct tree_struct_field_tag): Remove.
3694 (SFT_PARENT_VAR): Likewise.
3695 (SFT_OFFSET): Likewise.
3696 (SFT_SIZE): Likewise.
3697 (SFT_NONADDRESSABLE_P): Likewise.
3698 (SFT_ALIAS_SET): Likewise.
3699 (SFT_UNPARTITIONABLE_P): Likewise.
3700 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
3701 (union tree_node): Remove sft field.
3702 * alias.c (get_alias_set): Remove special handling of SFTs.
3703 * print-tree.c (print_node): Remove handling of SFTs.
3704 * tree-dump.c (dequeue_and_dump): Likewise.
3705 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
3706 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
3707 * tree-predcom.c (set_alias_info): Do not set subvars.
3708 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
3709 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
3710 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
3711 (add_vars_for_offset): Remove.
3712 (add_virtual_operand): Remove special handling of SFTs.
3713 (add_call_clobber_ops): Likewise.
3714 (add_call_read_ops): Likewise.
3715 (get_asm_expr_operands): Likewise.
3716 (get_modify_stmt_operands): Likewise.
3717 (get_expr_operands): Likewise.
3718 (add_to_addressable_set): Likewise.
3719 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
3720 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3721 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
3722 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
3723 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
3724 (tree_node_structure): Likewise.
3725 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
3727 (find_what_p_points_to): Likewise.
3729 2008-05-08 Sa Liu <saliu@de.ibm.com>
3731 * config/spu/spu.md: Fixed subti3 pattern.
3733 2008-05-08 Richard Guenther <rguenther@suse.de>
3736 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
3737 sure to create a representative for trailing arrays for PTA.
3739 2008-05-08 Richard Guenther <rguenther@suse.de>
3742 * fold-const.c (operand_equal_p): Two objects which types
3743 differ in pointerness are not equal.
3745 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
3747 * calls.c (compute_argument_block_size): Add argument tree fndecl.
3748 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
3749 (emit_library_call_value_1): Add new variable fndecl initialized by
3750 NULL_TREE. It should be the decl type of orgfun, but this information
3751 seems not to be available here, so it uses the default calling abi.
3752 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
3753 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
3754 by TARGET_RETURN_IN_MEMORY.
3755 * config/i386/i386-interix.h: Likewise.
3756 * config/i386/i386.h: Likewise.
3757 * config/i386/i386elf.h: Likewise.
3758 * config/i386/ptx4-i.h: Likewise.
3759 * config/i386/sol2-10.h: Likewise.
3760 * config/i386/sysv4.h: Likewise.
3761 * config/i386/vx-common.h: Likewise.
3762 * config/cris/cris.h: Removed #if 0 clause.
3763 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
3764 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
3766 (ix86_sol10_return_in_memory): Likewise.
3767 (ix86_i386elf_return_in_memory): New.
3768 (ix86_i386interix_return_in_memory): New.
3769 * config/mt/mt-protos.h (mt_return_in_memory): New.
3770 * config/mt/mt.c: Likewise.
3771 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3772 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
3773 * config/bfin/bfin.h: Likewise.
3774 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
3776 * config/bfin/bfin.c: Likewise.
3777 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3778 * config/alpha/unicosmk.h: Likewise.
3779 * config/i386/cygming.h: Likewise.
3780 * config/iq2000/iq2000.h: Likewise.
3781 * config/mips/mips.h: Likewise.
3782 * config/mn10300/mn10300.h: Likewise.
3783 * config/rs6000/rs6000.h: Likewise.
3784 * config/score/score.h: Likewise.
3785 * config/spu/spu.h: Likewise.
3786 * config/v850/v850.h: Likewise.
3787 * defaults.h: Likewise.
3788 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
3789 * expr.c (emit_block_move): Adjust use of
3790 OUTGOING_REG_PARM_STACK_SPACE.
3791 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
3792 OUTGOING_REG_PARM_STACK_SPACE.
3793 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
3795 2008-05-08 Jakub Jelinek <jakub@redhat.com>
3797 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
3798 on OMP_RETURN for OMP_FOR.
3801 * dwarf2out.c (dw_expand_expr, common_check): Removed.
3802 (fortran_common): New function.
3803 (gen_variable_die): Call fortran_common instead of common_check,
3804 adjust for it returning tree instead of rtx. Formatting.
3806 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
3810 * see.c (see_copy_insn): Copy new pure const attributes for new call.
3811 * c-decl.c (merge_decls): Ditto.
3812 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
3813 to RTL_CONST_OR_PURE_CALL_P.
3814 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
3815 Initialized DECL_LOOPING_CONST_PURE.
3816 (process_call_operands): Set tree_side_effects properly.
3817 * tree.h (TREE_READONLY_DECL_P): Removed.
3818 (DECL_IS_PURE): Renamed to DECL_PURE_P.
3819 (DECL_LOOPING_OR_CONST_P): New macro.
3820 (struct tree_function_decl): Added looping_const_or_pure_p.
3822 (ECF_LOOPING_OR_CONST_P): New macro.
3823 * rtlanal.c (pure_const_p): Removed.
3824 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
3825 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
3826 to RTL_CONST_CALL_P.
3827 * ipa-pure-const.c (pure_const_state_e): Added looping field.
3828 (check_decl, check_tree, check_call, scan_function): Initialize
3830 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
3831 (static_execute): Set looping true for recursive functions.
3832 Undo setting state to IPA_NEITHER for recursive functions.
3834 * ifcvt.c (noce_can_store_speculate_p): Changed
3835 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
3836 RTL_CONST_OR_PURE_CALL_P.
3837 * dse.c (scan_insn): Ditto.
3838 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
3839 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
3840 RTL_CONST_OR_PURE_CALL_P.
3841 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
3842 pure_call_p to RTL_CONST_CALL_P.
3843 * gimplify.c (gimplify_call_expr): Clear side effects for
3844 non-looping pure and constant calls.
3845 * calls.c (emit_call_1): Set rtl flags from ecf flags.
3846 (flags_from_decl_or_type): Set ecf flags from decl flags.
3847 (initialize_argument_information): Turn off
3848 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
3849 Change const to pure if callee_copies is true rather than just
3851 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
3852 way of marking pure calls.
3853 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
3854 Remove hack that was supposed to fix pr7335 and remove old
3855 way of marking pure calls.
3856 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
3857 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
3858 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
3859 RTL_CONST_OR_PURE_CALL_P.
3860 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
3861 * loop-invariant.c (find_exits, find_invariant_bb): Changed
3862 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
3863 * sched-deps.c (schedule_analyze): Ditto.
3864 * rtl.h (struct rtx_def): Use call field, unchanging field, and
3865 return_val field of calls to represent pure and const function info.
3866 (CONST_OR_PURE_CALL_P): Deleted macro.
3867 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3868 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
3869 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
3871 * tree-optimize.c (execute_fixup_cfg): Added test for
3872 ECF_LOOPING_CONST_OR_PURE.
3873 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
3875 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
3876 effects for looping pure or const calls.
3877 (verify_gimple_expr): Added verification code.
3878 * config/alpha/alpha.c (alpha_legitimize_address,
3879 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
3881 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
3882 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
3883 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
3884 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
3885 RTL_CONST_OR_PURE_CALL_P.
3886 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
3887 and const calls to be deleted.
3889 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
3892 * config/i386/mmx.md (mmx_subv2sf3): New expander.
3893 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
3894 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
3895 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3896 to handle nonimmediate operands.
3897 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
3898 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
3899 to handle nonimmediate operands.
3900 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
3901 (mmx_pmulhrwv4hi3): New expander. Use
3902 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3903 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
3904 (sse2_umulv1siv1di3): New expander. Use
3905 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3906 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
3907 (mmx_eq<mode>3): New expander. Use
3908 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3909 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
3910 (mmx_uavgv8qi3): New expander. Use
3911 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3912 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
3913 (mmx_uavgv4hi3): New expander. Use
3914 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3916 * config/i386/sse.md
3917 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
3918 to handle nonimmediate operands.
3919 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
3920 to handle nonimmediate operands.
3921 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
3922 to handle nonimmediate operands.
3923 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
3924 to handle nonimmediate operands.
3925 (sse2_unpckhpd_exp): New expander. Use
3926 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3927 (sse2_unpcklpd_exp): New expander. Use
3928 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3929 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
3930 to handle nonimmediate operands.
3931 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
3932 to handle nonimmediate operands.
3933 (*sse2_<plusminus_insn><mode>3): Rename from
3934 sse2_<plusminus_insn><mode>3 insn pattern.
3935 (sse2_<plusminus_insn><mode>3): New expander. Use
3936 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3937 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
3938 (sse2_umulv2siv2di3): New expander. Use
3939 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3940 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
3941 (sse4_1_mulv2siv2di3): New expander. Use
3942 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3943 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
3944 (sse2_pmaddwd): New expander. Use
3945 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3946 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
3947 (sse2_eq<mode>3): New expander. Use
3948 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3949 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
3950 (sse4_1_eqv2di3): New expander. Use
3951 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3952 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3953 (sse2_uavgv16qi3): New expander. Use
3954 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3955 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3956 (sse2_uavgv16qi3): New expander. Use
3957 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3958 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
3959 (sse2_uavgv8hi3): New expander. Use
3960 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3961 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
3962 (ssse3_pmulhrswv8hi3): New expander. Use
3963 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3964 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
3965 (ssse3_pmulhrswv4hi3): New expander. Use
3966 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3968 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
3969 (<sse>_vmmul<mode>3): Ditto.
3970 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
3972 (ssse3_pmaddubsw128): Use register_operand for operand 1.
3973 (ssse3_pmaddubsw): Ditto.
3975 * config/i386/i386.c (struct_builtin_description)
3976 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
3977 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
3978 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
3979 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
3980 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
3981 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
3982 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
3983 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
3984 (ix86_fixup_binary_operands): Assert that src1
3985 and src2 must have the same mode when swapped.
3986 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
3987 and ix86_binary_operator_ok. Do not force operands in registers
3990 2008-05-07 Jan Hubicka <jh@suse.cz>
3992 * cgraph.c (dump_cgraph_node): Update.
3993 * cgraph.h (cgraph_local_info): Break out inline summary.
3994 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
3996 * ipa-inline (inline_summary): New accestor function.
3997 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
3998 cgraph_decide_inlining, compute_inline_parameters): Update.
3999 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
4001 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
4003 Cleanup ColdFire scheduling support and add V4 pipeline model.
4005 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
4006 (define_attr cpu): Add cfv4 value.
4007 (define_attr type, define_attr type1): Merge into a single 'type'
4008 attribute. Update all uses.
4009 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
4010 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
4012 (define_attr opx_mem, define_attr opy_mem): Remove.
4013 (define_attr op_mem): Clean up, update comment.
4014 (define_attr size): Use specific values instead of general int.
4015 (define_attr guess, define_attr split): Remove. Update all uses.
4016 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
4017 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
4018 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
4019 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
4020 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
4021 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
4022 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
4023 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
4024 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
4025 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
4026 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
4027 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
4028 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
4029 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
4030 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
4031 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
4032 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
4033 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
4034 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
4035 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
4036 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
4037 Update or set attributes.
4038 (stack_tie): New fake instruction.
4040 * config/m68k/m68k.h (TUNE_CFV4): New macro.
4041 (m68k_sched_attr_size): Update declaration.
4042 (m68k_sched_attr_type2): Remove.
4043 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
4044 Declare new bypass predicates.
4046 * config/m68k/m68k.c (m68k_sched_issue_rate,
4047 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
4049 (TARGET_SCHED_ISSUE_RATE,
4050 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
4051 (override_options): Handle scheduling for ColdFire V4 core.
4052 (m68k_expand_prologue): Emit stack_tie.
4053 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
4054 'OP_TYPE_FPN'. Update all uses.
4055 (sched_guess_p): Remove.
4056 (sched_address_type): Handle symbolic addresses.
4057 (sched_get_operand): New static function.
4058 (sched_operand_type): Merge into sched_attr_op_type.
4059 (sched_attr_op_type): Handle FP registers, handle quick constants,
4061 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
4062 (m68k_sched_attr_size): Update. Move logic to ...
4063 (sched_get_attr_size_int): New static function.
4064 (sched_get_opxy_mem_type): New static function.
4065 (m68k_sched_attr_op_mem): Update.
4066 (m68k_sched_attr_type2): Remove.
4067 (sched_cfv4_bypass_data): New static variable.
4068 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
4069 (m68k_sched_issue_rate): Implement scheduler hook.
4070 (struct _sched_ib: enabled_p): New field.
4071 (m68k_sched_variable_issue): Update. Handle V4.
4072 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
4073 sched_dump_class_func_t, sched_dump_split_class,
4074 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
4075 sched_dump_dfa_class, m68k_sched_dump): Remove.
4076 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
4078 (m68k_sched_init_global): Remove statisctics dumping, introduce
4079 sanity check that all instructions have pipeline reservations. Handle
4081 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
4082 Handle ColdFire V4 core.
4083 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
4084 New static functions.
4085 (m68k_sched_address_bypass_p): New bypass predicate.
4086 (sched_get_indexed_address_scale): New static function.
4087 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
4089 * cf.md: Update comments.
4090 (define_attr type2): Remove. Use 'type' attribute instead.
4092 (cf_ib): Rename to cfv123_ib. Update all uses.
4093 (cf_oep): Rename to cfv123_oep. Update all uses.
4094 (cf_chr): Rename to cfv123_chr. Update all uses.
4095 (cf_mem): Rename to cfv123_mem. Update all uses.
4096 (cf_mac): Move to more appropriate place.
4097 (cfv123_guess): New automaton and cpu_unit.
4098 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
4099 Update uses of 'size' attribute. Handle before reload scheduling.
4100 (cfv123_guess): New dummy reservation for unhandled instructions.
4101 (cfv4_*): Pipeline description of ColdFire V4 core.
4102 (ignore): New reservation to handle 'ignore' type.
4104 2008-05-07 Ian Lance Taylor <iant@google.com>
4107 * gimplify.c (find_single_pointer_decl_1): Don't look through
4109 (find_single_pointer_decl): Adjust comments.
4111 2008-05-07 Jakub Jelinek <jakub@redhat.com>
4114 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
4115 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
4118 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
4119 integral type rather than floating point, then VIEW_CONVERT_EXPR
4120 to the floating point type.
4122 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
4124 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
4125 TFmode op0 to register.
4127 2008-05-07 Alan Modra <amodra@bigpond.net.au>
4129 * c-decl.c (grokdeclarator): Comment typo.
4131 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
4133 * tree-flow.h: Remove prototype for computed_goto_p.
4134 * tree-cfg.c (computed_goto_p): Make static.
4136 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
4139 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
4140 (contains_aligned_value_p): This. Handle _Decimal128.
4141 (ix86_function_arg_boundary): Only align _Decimal128 to its
4142 natural boundary and handle it properly.
4144 2008-05-06 Martin Jambor <mjambor@suse.cz>
4146 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
4147 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
4148 (ipcp_method_set_orig_node): Removed.
4149 (ipcp_cval_get_cvalue_type): Removed.
4150 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
4151 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
4152 (ipcp_cval_set_cvalue_type): Removed.
4153 (ipcp_cval_get_cvalue): Removed.
4154 (ipcp_cval_set_cvalue): Removed.
4155 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
4156 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
4157 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
4158 (ipcp_cval_meet): Renamed to ipa_lattice_meet
4159 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
4160 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
4161 (ipcp_get_ith_lattice): Changed parameters.
4162 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
4163 (ipcp_lattice_from_jfunc): Changed parameters.
4164 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
4165 (ipcp_method_cval_print): Added temporary variable info.
4166 (ipcp_redirect): Removed already unused local variable caller.
4167 (ipcp_redirect): New temporary variable orig_callee_info
4168 (ipcp_redirect): Removed newly unused local variable callee.
4169 (ipcp_redirect): Removed (a bit confusing) local variable type.
4170 (ipcp_insert_stage): Added local variable info.
4171 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
4173 (ipcp_formal_create): Removed.
4174 (ipcp_method_cval_set): Removed.
4175 (ipcp_propagate_stage): Renamed lattice variables.
4176 (ipcp_method_cval_set_cvalue_type): Removed.
4177 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
4178 (ipcp_print_all_lattices): Changed printed strings to refer to
4179 lattices rather than cvals.
4180 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
4181 (ipcp_propagate_const): Changed formal parameters.
4182 (build_const_val): Changed formal parameters.
4183 (ipcp_insert_stage): Removed useless variable cvalue
4184 (build_const_val): Changed formal parameters.
4185 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
4186 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
4187 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
4188 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
4189 (ipcp_print_func_profile_counts): Changed string from "method" to
4191 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
4192 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
4193 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
4194 (ipcp_structures_print): Renamed to ipcp_print_all_structures
4195 (ipcp_profile_print): Renamed to ipcp_print_profile_data
4196 (ipcp_lat_is_const): Changed parameters and made inline.
4197 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
4198 (ipcp_redirect): Renamed to ipcp_need_redirect_p
4199 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
4200 the predicate condition directly
4201 (ipcp_propagate_stage): Added local variable args. Removed local
4202 variable callee. (Both are mere code simplifications.)
4203 (ipcp_method_dont_insert_const): Renamed to
4204 ipcp_node_not_modifiable_p.
4205 (ipcp_node_not_modifiable_p): Made inline.
4206 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
4207 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
4208 (ipcp_print_all_lattices): Removed variable cvalue
4209 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
4212 2008-05-06 Olivier Hainque <hainque@adacore.com>
4214 * tree-sra.c (try_instantiate_multiple_fields): Early return
4215 if field has POINTER_TYPE.
4217 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
4219 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
4220 by using 'q' specifier for instruction.
4221 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
4223 2008-05-06 Anatoly Sokolov <aesok@post.ru>
4225 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
4226 Change mode of zero_extract from QImode to HImode.
4227 (sign bit tests peepholes): (Ditto.).
4229 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
4231 * config/i386/mmx.md: Remove double backslashes from asm templates.
4232 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
4233 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
4234 to handle nonimmediate operands.
4235 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
4236 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
4237 to handle nonimmediate operands.
4238 (*mmx_<code>v2sf3_finite): New insn pattern.
4239 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
4240 (mmx_<code>v2sf3): New expander. Use
4241 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4242 (mmx_<plusminus_insn><mode>3): New expander. Use
4243 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4244 (*mmx_<plusminus_insn><mode>3): New insn pattern.
4245 (mmx_add<mode>3): Removed.
4246 (mmx_ssadd<mode>3): Ditto.
4247 (mmx_usadd<mode>3): Ditto.
4248 (mmx_sub<mode>3): Ditto.
4249 (mmx_sssub<mode>3): Ditto.
4250 (mmx_ussub<mode>3): Ditto.
4251 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
4252 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
4253 to handle nonimmediate operands.
4254 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
4256 (mmx_smulv4hi3_highpart): New expander. Use
4257 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4258 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
4260 (mmx_umulv4hi3_highpart): New expander. Use
4261 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4262 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
4263 (mmx_<code>v4hi3): New expander. Use
4264 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4265 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
4266 (mmx_<code>v8qi3): New expander. Use
4267 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4268 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
4269 (mmx_<code><mode>3): New expander. Use
4270 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4272 2008-05-05 Jan Hubicka <jh@suse.cz>
4274 PR tree-optimization/36118
4275 * passes.c (pass_init_dump_file): Fix dump header.
4277 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
4280 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
4281 VCE for function decls.
4283 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
4285 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
4287 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
4289 * config/i386/i386.md (sat_plusminus): New.
4290 (plusminus_insn): Likewise.
4291 (plusminus_mnemonic): Likewise.
4293 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
4294 (*<addsub><mode>3_cc_overflow): Renamed to ...
4295 (*<plusminus_insn><mode>3_cc_overflow): This.
4296 (*<addsub>si3_zext_cc_overflow): Renamed to ...
4297 (*<plusminus_insn>si3_zext_cc_overflow): This.
4299 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
4300 (<plusminus_insn><mode>3): This.
4301 (*<addsub><mode>3): Renamed to ...
4302 (*<plusminus_insn><mode>3): This.
4303 (<sse>_vm<addsub><mode>3): Renamed to ...
4304 (<sse>_vm<plusminus_insn><mode>3): This.
4305 (sse3_h<addsub>v4sf3): Renamed to ...
4306 (sse3_h<plusminus_insn>v4sf3): This.
4307 (sse3_h<addsub>v2df3): Renamed to ...
4308 (sse3_h<plusminus_insn>v2df3): This.
4309 (<plusminus_insn><mode>3): New.
4310 (*<plusminus_insn><mode>3): Likewise.
4311 (sse2_<plusminus_insn><mode>3): Likewise.
4312 (add<mode>): Removed.
4313 (*add<mode>3): Likewise.
4314 (sse2_ssadd<mode>3): Likewise.
4315 (sse2_usadd<mode>3): Likewise.
4316 (sub<mode>3): Likewise.
4317 (*sub<mode>3): Likewise.
4318 (sse2_sssub<mode>3): Likewise.
4319 (sse2_ussub<mode>3): Likewise.
4321 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
4323 * gthr-single.h: Add in required interface elements as per gthr.h.
4324 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
4325 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
4326 Generalize UNUSED macro.
4327 (__gthread_once): Add.
4328 (__gthread_key_create): Add.
4329 (__gthread_key_delete): Add.
4330 (__gthread_getspecific): Add.
4331 (__gthread_setspecific): Add.
4333 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
4335 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
4336 the same size types for the indirect reference on the rhs, then
4339 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
4341 * config/i386/i386.md
4342 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
4343 one insn template instead of template series.
4344 (*xordi_1_rex64): Ditto.
4345 (*xordi_2_rex64): Ditto.
4347 2008-05-05 Ira Rosen <irar@il.ibm.com>
4349 PR tree-optimization/36119
4350 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
4353 2008-06-04 Jan Hubicka <jh@suse.cz>
4355 tree-optimization/36100
4356 * tree-pass.h (pass_O0_always_inline): Declare.
4357 * ipa-inline.c (inline_transform): Remove dead code.
4358 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
4359 pass_O0_always_inline): New.
4360 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
4362 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
4364 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
4365 mnemonic in this_param move for TARGET_64BIT.
4367 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
4369 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
4370 (*strmovsi_rex_1): Ditto.
4371 (*strsetsi_1): Ditto.
4372 (*strsetsi_rex_1): Ditto.
4374 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
4375 adddicc expanders using SWI mode iterator.
4377 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
4380 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
4383 2008-05-04 David S. Miller <davem@davemloft.net>
4385 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
4386 (sparc*-*-linux*): Use linux.h in tm_file.
4387 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
4388 compiler defaulting to 32-bit.
4389 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
4391 * config/sparc/linux.h: Remove definitions now obtained
4392 properly from linux.h
4393 * config/sparc/linux64.h: Likewise.
4394 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
4395 don't want this setting for 32-bit builds in a biarch compiler.
4396 * doc/install.texi: Add sparc-linux to list of targets
4397 supporting --enable-targets=all.
4399 2008-05-03 Andrew Pinski <pinskia@gmail.com>
4401 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
4403 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
4405 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
4406 after V4SI_FTYPE_V8HI.
4407 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
4408 case V4SI_FTYPE_V2DF.
4410 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
4412 * doc/invoke.texi (max-flow-memory-locations): Removed.
4413 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
4415 2008-05-03 Richard Guenther <rguenther@suse.de>
4418 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
4420 2008-05-02 David S. Miller <davem@davemloft.net>
4422 * config.gcc (need_64bit_hwint): Document libcpp dependency.
4424 2008-05-02 Simon Baldwin <simonb@google.com>
4427 * c-common.h (warn_array_subscript_range): Removed.
4428 * c-common.c (warn_array_subscript_range): Ditto.
4429 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
4430 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
4432 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
4434 * config/i386/i386.c (ix86_special_builtin_type): New.
4435 (bdesc_special_args): Likewise.
4436 (ix86_expand_special_args_builtin): Likewise.
4437 (ix86_init_mmx_sse_builtins): Updated.
4438 (ix86_expand_builtin): Updated.
4439 (ix86_expand_store_builtin): Removed.
4440 (ix86_expand_unop_builtin): Likewise.
4442 * config/i386/mm3dnow.h (__v2sf): Moved to ...
4443 * config/i386/mmintrin.h (__v2sf): Here.
4445 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
4447 (_mm_loadl_pi): Likewise.
4448 (_mm_storeh_pi): Replace __v2si with __v2sf.
4449 (_mm_storel_pi): Likewise.
4451 * doc/extend.texi: Correct __builtin_ia32_loadhps,
4452 __builtin_ia32_loadlps, __builtin_ia32_storehps,
4453 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
4454 __builtin_ia32_loadlpd.
4456 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
4458 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
4459 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
4460 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
4461 (ix86_init_mmx_sse_builtins): Updated.
4462 (ix86_expand_args_builtin): Likewise.
4463 (ix86_expand_builtin): Likewise.
4464 (ix86_expand_unop1_builtin): Renamed to ...
4465 (ix86_expand_unop_vec_merge_builtin): This.
4467 2008-05-01 Jan Hubicka <jh@suse.cz>
4470 * ipa-inline.c (inline_generate_summary): Make static.
4471 (inline_transform): Do not call inlining at -O0; make static.
4472 * passes.c (execute_todo): Add sanity check.
4473 (execute_one_ipa_transform_pass): Execute proper flags.
4475 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4477 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
4478 (DECL_NONADDRESSABLE_P): Likewise.
4479 * alias.c (record_component_aliases): Fix comment.
4481 2008-05-01 Simon Baldwin <simonb@google.com>
4483 * c-common.h (warn_array_subscript_range): New function.
4484 * c-common.c (warn_array_subscript_range): Ditto.
4485 * tree-vrp.c (check_array_ref): Corrected code to agree with
4486 comment, ignoring only arrays of size 0 or size 1.
4487 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
4489 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4491 * config/i386/i386.c (ix86_builtin_type): Replace
4492 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
4493 (bdesc_args): Updated.
4494 (ix86_init_mmx_sse_builtins): Likewise.
4495 (ix86_expand_args_builtin): Likewise.
4497 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
4500 * doc/extend.texi: Correct __builtin_ia32_palignr.
4502 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4505 * config/i386/i386.c (bdesc_crc32): Removed.
4506 (ix86_expand_crc32): Likewise.
4507 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
4508 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
4509 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
4510 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
4511 UINT_FTYPE_UINT_UCHAR.
4512 (bdesc_args): Updated. Add crc32 builtins.
4513 (ix86_init_mmx_sse_builtins): Updated.
4514 (ix86_expand_args_builtin): Updated to support subreg.
4516 * doc/extend.texi: Correct __builtin_ia32_crc32di.
4518 2008-05-01 Jan Hubicka <jh@suse.cz>
4520 * tree-pass.h (opt_pass): Add IPA_PASS.
4521 (varpool_node, cgraph_node): Forward declare.
4522 (ipa_opt_pass): Define.
4523 (pass_ipa_inline): Turn into ipa_opt_pass.
4524 (pass_apply_inline): Remove.
4525 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
4526 (apply_inline): Turn into ....
4527 (inline_transform): ... this one.
4528 (inline_generate_summary): New function.
4529 (pass_apply_inline): Remove.
4530 * function.h (ipa_opt_pass): Forward declare structure; typedef;
4532 (struct function): Add ipa_transforms_to_apply.
4533 * passes.c (register_one_dump_file): Work on IPA_PASS.
4534 (init_optimization_passes): Remove pass_inline_parameters and
4536 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
4537 (execute_one_pass) ... here; apply transforms when possible.
4538 (add_ipa_transform_pass, execute_ipa_summary_asses,
4539 execute_one_ipa_transform_pass): New.
4540 (execute_ipa_pass_list): Update for IPA_PASS type.
4542 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4544 * config/i386/i386.c (ix86_builtin_type): Add
4545 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
4546 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
4547 (bdesc_args): Add SSE4a builtins.
4548 (ix86_init_mmx_sse_builtins): Updated.
4549 (ix86_expand_args_builtin): Likewise.
4550 (ix86_expand_builtin): Likewise.
4552 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4554 * config/i386/i386.c (ix86_builtin_type): Add
4555 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
4556 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
4557 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
4558 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
4559 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
4560 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
4561 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
4562 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
4563 and DI_FTYPE_DI_DI_INT.
4564 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
4565 (ix86_init_mmx_sse_builtins): Updated.
4566 (ix86_expand_args_builtin): Likewise.
4567 (ix86_expand_builtin): Likewise.
4568 (ix86_expand_binop_imm_builtin): Removed.
4570 * doc/extend.texi: Correct __builtin_ia32_palignr128.
4572 2008-04-30 Richard Guenther <rguenther@suse.de>
4574 PR tree-optimization/32921
4575 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
4577 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
4579 * config/arm/arm.c (arm_unwind_emit): Use
4580 crtl->all_throwers_are_sibcalls instead of
4581 cfun->all_throwers_are_sibcalls.
4582 (arm_output_fn_unwind): Likewise.
4583 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
4584 instead of cfun->uses_pic_offset_table.
4585 (frv_expand_prologue): Likewise.
4586 (frv_frame_pointer_required): Likewise.
4587 (frv_expand_fdpic_call): Likewise.
4588 (frv_emit_movsi): Likewise.
4589 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
4590 cfun->returns_pcc_struct instead of
4591 current_function_returns_pcc_struct.
4592 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
4593 instead of cfun->calls_eh_return.
4594 (m32c_pushm_popm): Likewise.
4595 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
4596 "extern" declaration.
4598 2008-04-30 Richard Guenther <rguenther@suse.de>
4600 PR tree-optimization/21636
4601 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
4603 (evaluate_stmt): Print the likely value.
4604 (ccp_visit_stmt): Avoid excessive vertical spacing.
4606 2008-04-30 Rafael Espindola <espindola@google.com>
4608 * builtins.c (fold_call_expr): Return realret.
4609 * tree-ssa-threadedge.c
4610 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
4611 __builtin_object_size.
4613 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
4615 * gcc.c (wrapper_string): New variable.
4616 (insert_wrapper): New function.
4617 (execute): New option -wrapper.
4618 * doc/invoke.texi (Overall Options): New driver option -wrapper.
4620 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
4622 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
4623 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
4624 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
4626 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
4627 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
4628 config/rs6000/e500crtres64gprctr.asm,
4629 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
4630 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
4631 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
4632 config/rs6000/e500crtsav64gprctr.asm,
4633 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
4634 config/rs6000/e500crtsavg64gprctr.asm: New files.
4635 * config/rs6000/t-ppccomm: Add build rules for new files.
4636 (LIB2FUNCS_STATIC_EXTRA): Add new files.
4637 * config/rs6000/t-netbsd: Add build rules for new files.
4638 (LIB2FUNCS_STATIC_EXTRA): New variable.
4639 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
4640 (CRTSAVRES_DEFAULT_SPEC): Likewise.
4641 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
4643 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
4645 * config/i386/i386.c (ix86_builtin_type): Add
4646 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
4647 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
4648 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
4649 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
4650 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
4651 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
4652 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
4653 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
4654 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
4655 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
4656 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
4657 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
4658 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
4659 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
4660 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
4661 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
4662 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
4663 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
4664 V1DI_FTYPE_V2SI_V2SI.
4665 (bdesc_2arg): Moved to ...
4667 (ix86_init_mmx_sse_builtins): Updated.
4668 (ix86_expand_args_builtin): Updated. Take a pointer
4669 to const struct builtin_description. Handle comparison
4671 (ix86_expand_sse_compare): Take a new argument for swapping operands.
4672 (ix86_expand_builtin): Updated.
4674 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
4675 (ssse3_pmaddubsw128): This.
4676 (ssse3_pmaddubswv4hi3): Renamed to ...
4677 (ssse3_pmaddubsw): This.
4679 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
4680 (__builtin_ia32_packssdw128): Likewise.
4681 (__builtin_ia32_packuswb128): Likewise.
4682 (__builtin_ia32_pmaddubsw): Likewise.
4683 (__builtin_ia32_pmaddubsw128): Likewise.
4685 2008-04-30 Richard Guenther <rguenther@suse.de>
4687 PR tree-optimization/14847
4688 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
4689 (recognize_bits_test): Use it.
4690 (recognize_single_bit_test): Likewise.
4692 2008-04-30 Martin Jambor <mjambor@suse.cz>
4694 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
4695 instead of setting number of formal parameters to zero.
4696 (ipcp_init_stage): Do not set the number of actual parameters to zero
4698 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
4699 which are called with variable number of arguments.
4700 (ipcp_insert_stage): Explicitely skipping all nodes which are
4701 called with variable number of arguments.
4702 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
4703 number of parameters.
4705 * ipa-prop.h (struct ipa_node_params): Added flag
4706 called_with_var_arguments
4707 (ipa_set_param_count): Added. Changed sole setter to use it.
4708 (ipa_get_param_count): Added. All readers of param_count
4709 converted to use it instead.
4710 (ipa_set_called_with_variable_arg): Added.
4711 (ipa_is_called_with_var_arguments): Added.
4712 (ipa_get_ith_param): Added. All readers of param_decls converted
4714 (ipa_set_cs_argument_count): Added, sole writer to argument_count
4716 (ipa_get_cs_argument_count): Added, all readers of argument_count
4718 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
4721 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
4722 (struct ipcp_lattice): Renamed cval_type to type
4723 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
4725 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
4726 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
4727 (ipcp_insert_stage): Changed the type of variable cvalue to tree
4728 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
4729 (build_const_val): Changed the type of parameter cvalue to tree
4730 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
4731 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
4733 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
4736 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
4737 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
4738 (ipa_add_method): Renamed to ipa_push_func_to_list
4739 (ipa_remove_method): Renamed to ipa_pop_func_from_list
4740 (ipa_callsite_param_count): Removed.
4741 (ipa_callsite_param_count_set): Removed.
4742 (ipa_callsite_param): Removed.
4743 (ipa_callsite_callee): Removed.
4744 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
4745 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
4746 (ipa_method_formal_count): Removed.
4747 (ipa_method_formal_count_set): Removed.
4748 (ipa_method_get_tree): Removed.
4749 (ipa_method_tree_map_create): Removed.
4750 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
4751 (ipa_create_param_decls_array): Creates the array itself
4752 (ipa_create_param_decls_array): Temporary variable info instead of
4754 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
4755 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
4756 (get_type): Removed.
4757 (ipa_jf_get_info_type): Removed.
4758 (ipa_node_create): Renamed to ipa_create_node_params
4759 (ipa_free): Renamed to ipa_free_all_node_params
4760 (ipa_nodes_create): Renamed to ipa_create_all_node_params
4761 (ipa_edges_create): Renamed to ipa_create_all_edge_args
4762 (ipa_edges_free): Renamed to ipa_free_all_edge_args
4763 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
4764 (ipa_free_all_node_params): Deallocation to jump_functions moved to
4765 ipa_free_all_edge_args
4766 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
4767 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
4768 (ipa_create_methodlist_node): Removed.
4769 (ipa_methodlist_method): Removed.
4770 (ipa_methodlist_method_set): Removed.
4771 (ipa_methodlist_next_method): Removed.
4772 (ipa_methodlist_next_method_set): Removed.
4773 (ipa_method_is_modified): Removed.
4774 (ipa_method_modify_create): Removed.
4775 (ipa_method_modify_init): Temporary variable info instead of a few
4777 (ipa_detect_param_modifications): Temporary variable info instead of
4779 (ipa_compute_jump_functions): Temporary variable info instead of
4781 (ipa_method_modify_set): Removed.
4782 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
4783 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
4784 than craph_node as the first parameter.
4785 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
4786 (ipa_method_modify_init): Removed.
4787 (ipa_compute_jump_functions): Added a temp variable instead of
4788 repeatadly dereferencing the cgraph_edge.aux pointer
4789 (ipa_callsite_param_set_type): Removed.
4790 (ipa_compute_jump_functions): i renamed to index and moved to
4792 (ipa_callsite_param_set_info_type_formal): Removed.
4793 (ipa_callsite_param_set_info_type): Removed.
4794 (ipa_callsite_param_map_create): Removed.
4795 (ipa_callsite_tree): Removed.
4796 (ipa_callsite_caller): Removed.
4797 (ipa_pop_func_from_list): return_method removed to return_func
4799 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
4800 prefixed all values with IPA_. Changed all users.
4801 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
4802 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
4803 and FORMAL_IPATYPE IPA_PASS_THROUGH.
4804 (union parameter_info): Renamed to jump_func_value.
4805 (union jump_func_value): Renamed value to constant
4806 (struct ipa_jump_func): Renamed info_type to value
4807 (struct ipa_node): Renamed to ipa_node_params
4808 (struct ipa_node_params): Renamed ipa_arg_num to param_count
4809 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
4810 (struct ipa_node_params): Renamed ipa_mod to modified_flags
4811 (struct ipa_edge): Renamed to ipa_edge_args
4812 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
4813 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
4814 (struct ipa_methodlist): Renamed to ipa_func_list
4815 (struct ipa_func_list): method_p renamed to node, next_method
4817 (ipa_methodlist_p): Removed, switched all users to struct pointer
4818 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
4820 2008-04-30 Alan Modra <amodra@bigpond.net.au>
4822 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
4823 (rs6000_emit_epilogue): Use backchain to restore only when we
4824 have a large frame. Make use of frame pointer to restore if we
4825 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
4827 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
4829 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
4830 Add mode to zero_extract.
4831 (sign bit tests peepholes): (Ditto.).
4833 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
4835 * config/i386/i386.c (ix86_builtins): Replace Prescott New
4836 Instructions in comments with SSE3.
4837 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
4838 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
4839 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
4840 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
4841 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
4842 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
4843 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
4844 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
4845 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
4846 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
4847 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
4848 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
4849 (bdesc_sse_args): Renamed to ...
4850 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
4851 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
4852 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
4854 (bdesc_1arg): Moved to ...
4856 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
4857 Instructions in comments with SSE3.
4858 (ix86_expand_sse_operands_builtin): Renamed to ...
4859 (ix86_expand_args_builtin): This. Updated.
4860 (ix86_expand_unop1_builtin): Update comments.
4861 (ix86_expand_builtin): Updated.
4863 2008-04-29 Richard Guenther <rguenther@suse.de>
4865 PR tree-optimization/36078
4866 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4867 Update virtual SSA form after cleaning up the CFG.
4869 2008-04-29 Richard Guenther <rguenther@suse.de>
4872 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
4874 2008-04-29 Richard Guenther <rguenther@suse.de>
4876 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
4877 (compute_may_aliases): Do not call finalize_ref_all_pointers.
4878 (compute_flow_insensitive_aliasing): Do not treat
4879 PTR_IS_REF_ALL pointers special.
4880 (get_smt_for): Likewise.
4881 (may_alias_p): Re-structure.
4882 (is_escape_site): A ref-all pointer conversion is not an escape site.
4883 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
4884 PTR_IS_REF_ALL pointers special.
4885 * tree-ssa-structalias.h (struct alias_info): Remove
4886 ref_all_symbol_mem_tag field.
4887 (PTR_IS_REF_ALL): Remove.
4889 2008-04-29 Richard Guenther <rguenther@suse.de>
4892 * fold-const.c (extract_muldiv_1): In combining division constants
4893 make sure to never overflow.
4895 2008-04-29 Nick Clifton <nickc@redhat.com>
4897 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
4899 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4902 * optc-gen.awk: Work around HP-UX/IA awk bug.
4904 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
4906 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
4909 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
4912 * config/i386/i386.md
4913 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
4914 Change operand 1 predicate to nonimmediate_operand.
4916 2008-04-28 Jakub Jelinek <jakub@redhat.com>
4919 * dwarf2out.c (struct die_struct): Mark as chain_circular through
4921 * gengtype.c (walk_type, write_func_for_structure): Handle
4923 * doc/gty.texi: Document chain_circular.
4925 2008-04-28 Richard Guenther <rguenther@suse.de>
4927 PR tree-optimization/36066
4928 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
4931 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
4934 * config/i386/i386.md
4935 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
4936 Use match_scratch instead of match_operand for operands 3 and 4.
4938 2008-04-27 Richard Guenther <rguenther@suse.de>
4940 PR tree-optimization/18754
4941 PR tree-optimization/34223
4942 * tree-pass.h (pass_complete_unrolli): Declare.
4943 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
4944 loop size before and after unconditionally of UL_NO_GROWTH in effect.
4945 Rewrite loop into loop closed SSA form if it is not already.
4946 (tree_unroll_loops_completely): Re-structure to iterate over
4947 innermost loops with intermediate CFG cleanups.
4948 Unroll outermost loops only if requested or the code does not grow
4950 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
4951 loops are available.
4952 (tree_vectorize): Instead do so here.
4953 (tree_complete_unroll): Also unroll outermost loops.
4954 (tree_complete_unroll_inner): New function.
4955 (gate_tree_complete_unroll_inner): Likewise.
4956 (pass_complete_unrolli): New pass.
4957 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
4958 uses outside of the loop.
4959 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
4960 form if it is available.
4961 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
4962 * passes.c (init_optimization_passes): Schedule complete inner
4963 loop unrolling pass before the first CCP pass after final inlining.
4965 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
4967 * targhooks.h (default_emutls_var_fields,
4968 default_emutls_var_init): Declare.
4969 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
4970 * target.h (struct gcc_target): Add struct emutls member.
4971 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
4972 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
4973 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
4974 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
4975 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
4976 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
4977 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
4978 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
4979 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
4980 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
4981 emit debug information.
4982 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
4983 * varasm.c: Include targhooks.h.
4984 (emutls_object_section, emutls_tmpl_section): New.
4985 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
4986 (EMUTLS_SEPARATOR): New.
4988 (get_emutls_object_name): New.
4989 (default_emutls_var_fields): New, broken out of ...
4990 (get_emutls_object_type): ... here. Adjust to use target hooks.
4991 (get_emutls_init_templ_addr): Adjust to use target hooks.
4992 (emutls_decl): Adjust to use target hooks.
4993 (emutls_finish): Likewise.
4994 (default_emutls_var_init): New, broken out of ...
4995 (assemble_variable): ... here. Adjust to use target hooks.
4996 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
4998 * c-common.c (handle_section_attribute): Prevent overriding
4999 sections for emulated tls with special sections.
5000 * config/i386/i386.c (x86_64_elf_select_section): Add
5001 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
5002 (x86_64_elf_unique_section): Likewise.
5003 * config/vxworks.c: Include tree.h.
5004 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
5005 (vxworks_override_options): Set TLS scheme.
5006 * doc/tm.texi (Emulated TLS): New node.
5008 2008-04-26 Simon Baldwin <simonb@google.com>
5011 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
5012 with propagated string constants.
5014 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
5016 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
5017 constraint for operand 2 when operand 0 is memory operand.
5018 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
5019 operand 0 is memory operand.
5020 (fix_trunc<mode>_i387_with_temp): Ditto.
5021 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
5022 operand 2 when operand 1 is memory operand.
5023 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
5024 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
5025 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
5026 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
5027 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
5028 operands 2,3 and 4 when operand 1 is memory operand.
5029 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
5031 (fistdi2_floor_with_temp): Ditto.
5032 (fist<mode>2_floor_with_temp): Ditto.
5033 (fistdi2_ceil_with_temp): Ditto.
5034 (fist<mode>2_ceil_with_temp): Ditto.
5035 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
5037 2008-04-26 David Daney <ddaney@avtrex.com>
5039 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
5041 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
5042 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
5043 UNSPEC_UPDATE_GOT_VERSION): Renumber.
5044 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
5045 (compare_and_swap_12): New insn.
5046 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
5047 * config/mips/mips.c (mips_force_binary): New function.
5048 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
5049 (mips_expand_compare_and_swap_12): New function.
5050 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
5052 2008-04-25 Jan Hubicka <jh@suse.cz>
5055 * cfgexpand.c (pass_expand): Turn into RTL pass.
5056 * passes.c (execute_one_pass): Do pass typechecking after execution.
5057 * tree-pass.h (pass_expand): Turn into RTL pass.
5059 * function.h (struct rtl_data): Move here fields
5060 accesses_prior_frames, calls_eh_return, saves_all_registers,
5061 has_nonlocal_goto, has_asm_statement, is_thunk,
5062 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
5063 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
5064 arg_pointer_save_area_init from struct function; turn into bool.
5065 (struct function): Move
5066 calls_eh_return, saves_all_registers, has_nonlocal_goto,
5067 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
5068 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
5069 tail_call_emit, arg_pointer_save_area_init
5070 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
5071 (current_function_returns_struct, current_function_returns_pcc_struct,
5072 current_function_calls_setjmp, current_function_calls_alloca,
5073 current_function_accesses_prior_frames,
5074 current_function_calls_eh_return, current_function_is_thunk,
5075 current_function_stdarg, current_function_profile,
5076 current_function_limit_stack, current_function_uses_pic_offset_table,
5077 current_function_uses_const_pool, current_function_has_nonlocal_label,
5078 current_function_saves_all_registers,
5079 current_function_has_nonlocal_goto,
5080 current_function_has_asm_statement): Remove accesor macros.
5081 * ra-conflict.c (global_conflicts): Update.
5082 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
5083 (suitable_for_tail_call_opt_p): Update.
5084 * builtins.c (expand_builtin_return_addr): Update.
5085 (expand_builtin_setjmp_setup): Update.
5086 (expand_builtin_nonlocal_goto): Update.
5087 * final.c (final_start_function): Update.
5088 (profile_function): Update.
5089 (leaf_function_p): Update.
5090 (only_leaf_regs_used): Update.
5091 * df-scan.c (df_get_exit_block_use_set): Update.
5092 * dojump.c (clear_pending_stack_adjust): Update.
5093 * tree-stdarg.c (gate_optimize_stdarg): Update.
5094 * gimple-low.c (lower_function_body): Update.
5095 * global.c (compute_regsets): Update.
5096 (global_alloc): Update.
5097 * dwarf2out.c (dwarf2out_begin_prologue): Update.
5098 * expr.c (expand_assignment): Update.
5099 * dse.c (dse_step0): Update.
5100 (dse_step1): Update.
5101 * c-decl.c (store_parm_decls): Update.
5102 * local-alloc.c (combine_regs): Update.
5103 (find_free_reg): Update.
5104 * function.c (assign_parms_augmented_arg_list): Update.
5105 (assign_parm_find_data_types): Update.
5106 (assign_parms): Update.
5107 (allocate_struct_function): Update.
5108 (expand_function_start): Update.
5109 (expand_function_end): Update.
5110 (get_arg_pointer_save_area): Update.
5111 (thread_prologue_and_epilogue_insns): Update.
5112 (rest_of_match_asm_constraints): Update.
5113 * stor-layout.c (variable_size): Update.
5114 * gcse.c (gcse_main): Update.
5115 (bypass_jumps): Update.
5116 * gimplify.c (gimplify_function_tree): Update.
5117 * calls.c (emit_call_1): Update.
5118 (expand_call): Update.
5119 * bt-load.c (compute_defs_uses_and_gen): Update.
5120 * except.c (sjlj_assign_call_site_values): Update.
5121 (sjlj_emit_function_enter): Update.
5122 (can_throw_external): Update.
5123 (set_nothrow_function_flags): Update.
5124 (expand_builtin_unwind_init): Update.
5125 (expand_eh_return): Update.
5126 (convert_to_eh_region_ranges): Update.
5127 (output_function_exception_table): Update.
5128 * emit-rtl.c (gen_tmp_stack_mem): Update.
5129 * cfgexpand.c (expand_used_vars): Update.
5130 (tree_expand_cfg): Update.
5131 * cfgcleanup.c (rest_of_handle_jump): Update.
5132 * explow.c (allocate_dynamic_stack_space): Update.
5133 * varasm.c (assemble_start_function): Update.
5134 (force_const_mem): Update.
5135 (mark_constant_pool): Update.
5136 * tree-optimize.c (tree_rest_of_compilation): Update.
5137 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
5138 * tree-cfg.c (notice_special_calls): Update.
5139 (is_ctrl_altering_stmt): Update.
5140 (tree_can_make_abnormal_goto): Update.
5141 (tree_purge_dead_abnormal_call_edges): Update.
5142 * config/alpha/predicates.md: Update.
5143 * config/alpha/alpha.c (alpha_sa_mask): Update.
5144 (alpha_sa_size): Update.
5145 (alpha_does_function_need_gp): Update.
5146 (alpha_expand_prologue): Update.
5147 (alpha_start_function): Update.
5148 (alpha_output_function_end_prologue): Update.
5149 (alpha_expand_epilogue): Update.
5150 * config/frv/frv.c (frv_stack_info): Update.
5151 (frv_expand_epilogue): Update.
5152 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
5153 (s390_register_info): Update.
5154 (s390_frame_info): Update.
5155 (s390_init_frame_layout): Update.
5156 (s390_can_eliminate): Update.
5157 (save_gprs): Update.
5158 * config/spu/spu.c (spu_split_immediate): Update.
5159 (need_to_save_reg): Update.
5160 (spu_expand_prologue): Update.
5161 (spu_expand_epilogue): Update.
5162 * config/sparc/sparc.md: Update.
5163 * config/sparc/sparc.c (eligible_for_return_delay): Update.
5164 (sparc_tls_got): Update.
5165 (legitimize_pic_address): Update.
5166 (sparc_emit_call_insn): Update.
5167 (sparc_expand_prologue): Update.
5168 (output_return): Update.
5169 (print_operand): Update.
5170 (sparc_function_ok_for_sibcall): Update.
5171 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
5172 * config/m32r/m32r.md: Update.
5173 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
5174 (m32r_compute_frame_size): Update.
5175 (m32r_expand_prologue): Update.
5176 (m32r_expand_epilogue): Update.
5177 (m32r_legitimize_pic_address): Update.
5178 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
5179 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
5180 * config/i386/i386.c (ix86_frame_pointer_required): Update.
5182 (ix86_save_reg): Update.
5183 (ix86_compute_frame_layout): Update.
5184 (ix86_expand_prologue): Update.
5185 (ix86_expand_epilogue): Update.
5186 * config/sh/sh.c (output_stack_adjust): Update.
5187 (calc_live_regs): Update.
5188 (sh5_schedule_saves): Update.
5189 (sh_expand_prologue): Update.
5190 (sh_expand_epilogue): Update.
5191 (sh_setup_incoming_varargs): Update.
5192 (sh_allocate_initial_value): Update.
5193 (sh_get_pr_initial_val): Update.
5194 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
5195 * config/sh/sh.md (label:): Update.
5196 * config/avr/avr.c (out_movhi_mr_r): Update.
5197 * config/crx/crx.h (enum): Update.
5198 * config/xtensa/xtensa.h (along): Update.
5199 * config/stormy16/stormy16.c Update.
5200 (xstormy16_compute_stack_layout): Update.
5201 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
5202 (fr30_expand_prologue): Update.
5203 * config/cris/cris.c (cris_conditional_register_usage): Update.
5204 (cris_reg_saved_in_regsave_area): Update.
5205 (cris_initial_frame_pointer_offset): Update.
5206 (cris_simple_epilogue): Update.
5207 (cris_expand_prologue): Update.
5208 (cris_expand_epilogue): Update.
5209 (cris_expand_pic_call_address): Update.
5210 (cris_asm_output_symbol_ref): Update.
5211 (cris_asm_output_label_ref): Update.
5212 * config/cris/cris.md Update.
5213 * config/iq2000/iq2000.c (compute_frame_size): Update.
5214 (iq2000_expand_epilogue): Update.
5215 * config/mt/mt.h (save_direction): Update.
5216 * config/mn10300/mn10300.c (mn10300_function_value): Update.
5217 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
5218 (ia64_secondary_reload_class): Update.
5219 * config/m68k/m68k.c (m68k_save_reg): Update.
5220 (m68k_expand_prologue): Update.
5221 (m68k_expand_epilogue): Update.
5222 (legitimize_pic_address): Update.
5223 * config/rs6000/rs6000.c (rs6000_got_register): Update.
5224 (first_reg_to_save): Update.
5225 (first_altivec_reg_to_save): Update.
5226 (compute_vrsave_mask): Update.
5227 (compute_save_world_info): Update.
5228 (rs6000_stack_info): Update.
5229 (spe_func_has_64bit_regs_p): Update.
5230 (rs6000_ra_ever_killed): Update.
5231 (rs6000_emit_eh_reg_restore): Update.
5232 (rs6000_emit_allocate_stack): Update.
5233 (rs6000_emit_prologue): Update.
5234 (rs6000_emit_epilogue): Update.
5235 (rs6000_output_function_epilogue): Update.
5236 (output_profile_hook): Update.
5237 (rs6000_elf_declare_function_name): Update.
5238 * config/rs6000/rs6000.h (rs6000_args): Update.
5239 * config/rs6000/rs6000.md: Update.
5240 * config/mcore/mcore.c (mcore_expand_prolog): Update.
5241 * config/arc/arc.c (arc_output_function_epilogue): Update.
5242 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
5243 * config/darwin.c (machopic_function_base_name): Update.
5244 * config/score/score3.c (score3_compute_frame_size): Update.
5247 (score3_epilogue): Update.
5248 * config/score/score7.c (score7_compute_frame_size): Update.
5249 (score7_prologue): Update.
5250 (score7_epilogue): Update.
5251 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
5252 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
5253 * config/arm/arm.c (use_return_insn): Update.
5254 (require_pic_register): Update.
5255 (arm_load_pic_register): Update.
5256 (arm_compute_save_reg0_reg12_mask): Update.
5257 (arm_compute_save_reg_mask): Update.
5258 (thumb1_compute_save_reg_mask): Update.
5259 (output_return_instruction): Update.
5260 (arm_output_function_prologue): Update.
5261 (arm_output_epilogue): Update.
5262 (arm_get_frame_offsets): Update.
5263 (arm_expand_prologue): Update.
5264 (thumb_pushpop): Update.
5265 (thumb_exit): Update.
5266 (thumb1_expand_prologue): Update.
5267 (thumb1_expand_epilogue): Update.
5268 (arm_unwind_emit): Update.
5269 (arm_output_fn_unwind): Update.
5270 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
5271 * config/arm/arm.md: Update.
5272 * config/pa/pa.md: Update.
5273 * config/pa/pa.c (legitimize_pic_address): Update.
5274 (compute_frame_size): Update.
5275 (hppa_expand_prologue): Update.
5276 (hppa_expand_epilogue): Update.
5277 (borx_reg_operand): Update.
5278 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
5279 (HARD_REGNO_RENAME_OK): Update.
5280 * config/mips/mips.c (mips_global_pointer): Update.
5281 (mips_save_reg_p): Update.
5282 (mips_compute_frame_info): Update.
5283 (mips_frame_pointer_required): Update.
5284 (mips_expand_prologue): Update.
5285 (mips_expand_epilogue): Update.
5286 (mips_can_use_return_insn): Update.
5287 (mips_reorg_process_insns): Update.
5288 * config/v850/v850.c (compute_register_save_size): Update.
5289 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
5290 * config/mmix/mmix.c (along): Update.
5291 (mmix_expand_epilogue): Update.
5292 * config/bfin/bfin.c (legitimize_pic_address): Update.
5293 (must_save_p): Update.
5294 (stack_frame_needed_p): Update.
5295 (add_to_reg): Update.
5296 (bfin_expand_prologue): Update.
5297 * stmt.c (expand_asm_operands): Update.
5298 * reload1.c (reload): Update.
5299 (init_elim_table): Update.
5301 2008-04-25 Bob Wilson <bob.wilson@acm.org>
5303 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
5305 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
5307 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
5308 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
5309 (mov<mode>): Removed.
5310 (*movv4sf_internal): Likewise.
5311 (*movv2df_internal): Likewise.
5313 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
5315 * config.gcc (crx-*-elf): Remove deprecation.
5317 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
5319 * config/i386/cygming-crtend.c (register_frame_ctor): Register
5320 __gcc_deregister_frame with atexit.
5321 (deregister_frame_dtor): Remove.
5323 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
5324 Nathan Sidwell <nathan@codesourcery.com>
5326 * config/rs6000/rs6000.opt (mspe): Remove Var property.
5328 * config/rs6000/rs6000.h (rs6000_spe): Declare.
5329 (rs6000_isel): Likewise.
5330 * config/rs6000/rs6000.c (rs6000_spe): New variable.
5331 (rs6000_isel): New variable.
5332 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
5334 2008-04-24 Jakub Jelinek <jakub@redhat.com>
5337 * c-common.c (handle_vector_size_attribute): Call
5338 lang_hooks.types.reconstruct_complex_type instead of
5339 reconstruct_complex_type.
5340 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
5341 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
5342 * langhooks.h (struct lang_hooks_for_types): Add
5343 reconstruct_complex_type hook.
5344 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
5345 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
5347 2008-04-24 Richard Guenther <rguenther@suse.de>
5349 * c-common.h (check_builtin_function_arguments): Declare.
5350 * c-common.c (validate_nargs): New function.
5351 (check_builtin_function_arguments): Likewise.
5352 * c-typeck.c (build_function_call): Call
5353 check_builtin_function_arguments.
5354 * builtins.c (fold_builtin_classify): Remove error reporting code.
5355 (fold_builtin_unordered_cmp): Likewise.
5356 (fold_builtin_1): Likewise.
5357 (fold_builtin_n): Likewise.
5359 2008-04-24 Jakub Jelinek <jakub@redhat.com>
5361 PR tree-optimization/36008
5362 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
5363 the original op1, rather than delta by step.
5365 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
5366 Sebastian Pop <sebastian.pop@amd.com>
5368 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
5369 eliminate_local_variables_stmt, eliminate_local_variables,
5370 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
5371 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
5372 of code delimited by two edges in the CFG.
5373 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
5374 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
5375 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
5376 the case of parallelisation of reductions.
5377 (expr_invariant_in_region_p): New.
5379 * tree-flow.h (gather_blocks_in_sese_region): Declared.
5380 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
5382 2008-04-24 Ira Rosen <irar@il.ibm.com>
5383 Richard Guenther <rguenther@suse.de>
5385 PR tree-optimization/36034
5386 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
5387 incapable of dealing with loads with gaps.
5389 2008-04-24 Rafael Espindola <espindola@google.com>
5391 * tree-flow.h (vrp_evaluate_conditional): Change signature.
5392 * tree-ssa-propagate.c (fold_predicate_in): Update call to
5393 vrp_evaluate_conditional.
5394 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
5395 (vrp_evaluate_conditional): Split the cond argument.
5396 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
5397 (simplify_stmt_for_jump_threading): Update call to
5398 vrp_evaluate_conditional.
5400 2008-04-24 Ira Rosen <irar@il.ibm.com>
5402 PR tree-optimization/35982
5403 * tree-vect-analyze.c (vect_check_interleaving): Check that the
5404 interleaved data-refs are of the same type.
5406 2008-04-24 Danny Smith <dannysmith@users.net>
5408 * c-format.c (check_format_info_main): Use strncmp rather than a
5409 magic prefix to handle multichar length specs.
5410 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
5411 Don't prefix "I64" and "I32" with '\0'.
5413 2008-04-24 Jakub Jelinek <jakub@redhat.com>
5416 * config/i386/i386.c (init_cumulative_args): Don't pass anything
5417 in registers for -m32 only if stdarg_p (fntype).
5419 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
5421 PR rtl-optimization/36006
5422 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
5423 temp to op0 in order to avoid invalid rtx sharing.
5425 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
5427 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
5428 check TREE_INVARIANT.
5429 * tree-gimple.c (is_gimple_address): New.
5430 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
5431 * tree-gimple.h (is_gimple_address): New.
5432 * tree.h (decl_address_invariant_p): New.
5433 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
5434 (build_string): Likewise.
5435 (decl_address_invariant_p): New, from is_gimple_invariant_address.
5436 (tree_invariant_p_1): Likewise.
5437 (save_expr): Use it.
5438 (tree_invariant_p): New.
5439 (skip_simple_arithmetic): Use it.
5440 (stabilize_reference_1): Use it.
5441 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
5443 (build1_stat): Drop code to compute TREE_INVARIANT.
5444 (build2_stat): Drop code to compute TREE_INVARIANT.
5445 (build3_stat): Drop code to compute TREE_INVARIANT.
5446 (build4_stat): Drop code to compute TREE_INVARIANT.
5447 (build5_stat): Drop code to compute TREE_INVARIANT.
5448 (build7_stat): Drop code to compute TREE_INVARIANT.
5449 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
5450 * tree.h (struct tree_base): Remove invariant_flag.
5451 (TREE_INVARIANT): Remove.
5452 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
5453 (fold_builtin_expect): Check TREE_CONSTANT.
5454 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
5455 * c-tree.h (c_expr_to_decl): Drop third parameter.
5456 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
5457 (build_c_cast): Don't set TREE_INVARIANT.
5458 (pop_init_level): Don't set TREE_INVARIANT.
5459 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
5460 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
5462 (gimplify_init_constructor): Don't set TREE_INVARIANT.
5463 (gimplify_addr_expr): Adjust comment.
5464 * tree-mudflap.c (mf_build_string):
5465 * print-tree.c (print_node): Don't print TREE_INVARIANT.
5466 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
5467 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
5468 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
5469 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
5470 * langhooks.h (struct lang_hooks): Drop third parameter from
5473 2008-04-23 Richard Guenther <rguenther@suse.de>
5475 PR tree-optimization/27799
5476 PR tree-optimization/32921
5477 PR tree-optimization/32624
5478 * tree-ssa-structalias.c (merge_smts_into): Only merge the
5479 SMTs aliases and the tag itself into the solution.
5480 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
5481 merge the points-to solution back into the SMT aliases.
5482 (may_alias_p): Use alias_set_subset_of instead of
5483 aliases_conflict_p. A pointer which points to
5484 memory with alias set zero may access any variable.
5486 2008-04-23 Richard Guenther <rguenther@suse.de>
5488 * alias.c (alias_set_subset_of): Correctly handle asking
5489 if zero is a subset of an alias set with zero child.
5490 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
5491 (compute_flow_insensitive_aliasing): Correctly walk all
5492 pointers. Do not unnecessarily union sets.
5494 2008-04-23 Richard Guenther <rguenther@suse.de>
5497 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
5499 2008-04-22 Tomas Bily <tbily@suse.cz>
5501 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
5503 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
5505 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
5506 * tree-ssa-structalias.c (get_constraint_for): Likewise.
5507 * tree-inline.c (estimate_num_insns_1): Likewise.
5508 * varasm.c (const_hash_1, compare_constant, copy_constant)
5509 (compute_reloc_for_constant, output_addressed_constants): Likewise.
5510 * emit-rtl.c (component_ref_for_mem_expr)
5511 (set_mem_attributes_minus_bitpos): Likewise.
5512 * expr.c (highest_pow2_factor, expand_expr_real_1, )
5513 (is_aligning_offset): Likewise.
5514 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
5515 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
5516 * dojump.c (do_jump): Likewise.
5517 * builtins.c (get_pointer_alignment, get_memory_rtx)
5518 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
5519 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
5521 2008-04-23 Jakub Jelinek <jakub@redhat.com>
5523 PR rtl-optimization/36017
5524 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
5525 expanding the library call.
5527 2008-04-22 Ian Lance Taylor <iant@google.com>
5529 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
5532 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
5534 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
5535 of LR/CTR moves for Power6.
5537 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
5540 * passes.c (init_optimization_passes): Remove
5541 pass_fast_rtl_byte_dce.
5543 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
5546 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
5547 builtin functions to generate faster code.
5548 (_mm_cvtpu16_ps): Ditto.
5549 (_mm_cvtpi32x2_ps): Ditto.
5551 2008-04-22 Nick Clifton <nickc@redhat.com>
5553 * common.opt (ftree-loop-distribution): Add Optimization
5556 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
5557 (frv_expand_builtin_va_start): Likewise.
5559 * config/arm/arm.c (thumb_find_work_register): Fix location of
5560 argument register count.
5562 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5564 Support scheduling for ColdFire V1 and V3 microarchitecture.
5565 Improve scheduling of multiplication instructions.
5567 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
5568 (mac): New instruction attribute.
5569 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
5570 (m68k_sched_mac): New variable.
5571 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
5572 Handle cfv1 and cfv3.
5573 (max_insn_size): New static variable.
5574 (struct _sched_ib): New type.
5575 (sched_ib): New static variable.
5576 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
5577 to fields of 'struct _sched_ib sched_ib'. Update all uses.
5578 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
5580 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
5581 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
5582 new variables. Update.
5583 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
5584 Add modeling of cfv3 instruction buffer. Update.
5585 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
5586 * config/m68k/m68k.h (TUNE_CFV3): New macro.
5587 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
5588 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
5589 a particular reservation applies to.
5590 (type2): Reorganize attribute values. Rename alu to alu_reg,
5591 alu_l to alu, move_l to omove. Join move to alu. Split mul
5593 (cf_ib_*): Simplify description of instruction buffer.
5594 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
5595 (cf_mem): Split into cf_mem1 and cf_mem2.
5596 (cf_v2_move_??): Rename to cfv12_alu_??.
5597 (cf_v2_move_l_??): Rename to cfv12_omove_??.
5598 (cf_v2_mul_??): Remove reservations.
5599 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
5600 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
5601 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
5603 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
5604 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
5605 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
5606 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
5607 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
5608 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
5609 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
5610 expansions of the above reservations for instructions of sizes
5613 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5615 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
5617 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
5619 * coverage.c: Include tree-pass.h.
5620 (coverage_counter_alloc): Print da_file_name to the dump file.
5622 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
5624 * sbitmap.c (sbitmap_range_empty_p): New function.
5625 * sbitmap.h (sbitmap_range_empty_p): New function.
5626 * bitmap.h: Now includes obstack.h.
5628 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
5629 Kenneth Zadeck <zadeck@naturalbridge.com>
5631 * dbgcnt.def (ra_byte_scan): Added.
5632 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
5633 when the last hit happens for a counter.
5634 * timevar.def (TV_DF_BYTE_LR): New variable.
5635 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
5636 * passes.c (pass_fast_rtl_byte_dce): New pass.
5637 * fwprop.c (update_df): Added mode to call df_ref_create.
5638 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
5639 DF_REF_EXTRACT_OFFSET.
5640 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
5641 DF_BYTE_LR_OUT, df_byte_lr): New macro.
5643 (df_ref_extract): Added mode field.
5644 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
5645 DF_REF_EXTRACT_OFFSET.
5646 (DF_REF_EXTRACT_MODE): New macro.
5647 (df_byte_lr_bb_info): New structure.
5648 (df_print_byte_regset, df_compute_accessed_bytes,
5649 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
5650 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
5651 df_byte_lr_simulate_uses,
5652 df_byte_lr_simulate_artificial_refs_at_top,
5653 df_byte_lr_simulate_artificial_refs_at_end,
5654 df_compute_accessed_bytes): New function.
5655 (df_ref_create): Add parameter.
5656 (df_byte_lr_get_bb_info): New inline function.
5657 * df-scan.c (df_ref_record, df_uses_record,
5658 df_ref_create_structure): Added mode parameter.
5659 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
5660 df_defs_record, df_uses_record, df_get_conditional_uses,
5661 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
5662 df_entry_block_defs_collect, df_exit_block_uses_collect):
5663 Added mode parameter to calls to df_ref_record, df_uses_record,
5664 df_ref_create_structure.
5665 (df_ref_equal_p, df_ref_compare): Added test for modes.
5666 (df_ref_create_structure): Added code to set mode. Renamed
5667 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
5668 DF_REF_EXTRACT_OFFSET.
5669 * df-core.c (df_print_byte_regset): New function.
5670 * df-byte-scan.c: New file.
5671 * df-problems.c (df_rd_transfer_function): Removed unnecessary
5672 calls to BITMAP_FREE.
5673 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
5674 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
5675 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
5676 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
5677 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
5678 df_byte_lr_local_compute, df_byte_lr_init,
5679 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5680 df_byte_lr_transfer_function, df_byte_lr_free,
5681 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
5682 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
5683 df_byte_lr_simulate_uses,
5684 df_byte_lr_simulate_artificial_refs_at_top,
5685 df_byte_lr_simulate_artificial_refs_at_end): New function.
5686 * dce.c (byte_dce_process_block): New function.
5687 (dce_process_block): au is now passed in rather than computed
5688 locally. Changed loops that look at artificial defs to not look
5689 for conditional or partial ones, because there never are any.
5690 (fast_dce): Now is able to drive byte_dce_process_block or
5691 dce_process_block depending on the kind of dce being done.
5692 (rest_of_handle_fast_dce): Add parameter to fast_dce.
5693 (rest_of_handle_fast_byte_dce): New function.
5694 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
5695 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
5697 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
5700 * gcc.h: Added fortran options that take arguments to
5701 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
5704 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
5706 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
5707 scalarization if on the LHS and not a full access.
5709 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5711 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
5713 2008-04-18 Rafael Espindola <espindola@google.com>
5715 * tree-vrp.c (find_case_label_index): Fix the binary search.
5716 (find_case_label_range): New.
5717 (vrp_visit_switch_stmt): Use find_case_label_range.
5718 (simplify_switch_using_ranges): Use find_case_label_range.
5720 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5722 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
5723 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
5725 2008-04-18 Tom Tromey <tromey@redhat.com>
5728 * doc/cpp.texi (Implementation-defined behavior): Mention
5731 2008-04-18 Ian Lance Taylor <iant@google.com>
5733 * fold-const.c (pointer_may_wrap_p): New static function.
5734 (fold_comparison): Add another test for pointer overflow. Use
5735 pointer_may_wrap_p to disable some false positives.
5737 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
5739 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
5740 (fname_as_string): Match updated cpp_interpret_string prototype.
5741 (fix_string_type): Support char16_t* and char32_t*.
5742 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
5743 derivative) nodes. Register as builtin if C++0x.
5744 (c_parse_error): Support CPP_CHAR{16,32}.
5745 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
5746 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
5747 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
5748 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
5749 CTI_CHAR32_ARRAY_TYPE>: New elements.
5750 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
5751 char32_type_node, signed_char32_type_node, char16_array_type_node,
5752 char32_array_type_node): New defines.
5753 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
5754 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
5755 (lex_string): Support CPP_STRING{16,32}, match updated
5756 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
5757 (lex_charconst): Support CPP_CHAR{16,32}.
5758 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
5759 and CPP_STRING{16,32}.
5761 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
5764 * aclocal.m4: Regenerate.
5765 * configure: Regenerate.
5767 2008-04-18 Jan Hubicka <jh@suse.cz>
5769 * except.c (dw2_size_of_call_site_table,
5770 sjlj_size_of_call_site_table): Use vector API for call_site_record.
5772 * cgraphbuild.c (build_cgraph_edges): Update.
5773 * tree-pass.h: Update comment.
5774 * final.c (leaf_function_p): Update.
5775 (leaf_renumber_regs): Update.
5776 (rest_of_clean_state): Update.
5777 * omp-low.c (expand_omp_parallel): Update.
5778 * ipa-reference.c (analyze_function): Update.
5779 * reorg.c (find_end_label): Update.
5780 (optimize_skip): Update.
5781 (fill_simple_delay_slots): Update.
5782 (fill_simple_delay_slots): Update.
5783 (make_return_insns): Update.
5784 (dbr_schedule): Update.
5785 * gimple-low.c (record_vars_into): Update.
5786 * cfgbuild.c (make_edges): Update.
5787 * function.c (assign_stack_local): Update.
5788 (assign_parm_adjust_stack_rtl): Update.
5789 (locate_and_pad_parm): Update.
5790 (allocate_struct_function): Do not initialize stack_alignment_needed
5791 and preferred_stack_boundary here.
5792 (stack_protect_prologue): Update.
5793 (stack_protect_epilogue): Update.
5794 (expand_function_start): Initialize stack_alignment_needed,
5795 preferred_stack_boundary and max_jumptable_ents.
5796 (expand_function_end): Update.
5797 (free_after_compilation): Do not NULLify epilogue_delay_list.
5798 * function.h (struct rtl_data): Add stack_protect_guard,
5799 stack_alignment_needed,
5800 preferred_stack_boundary, epilogue_delay_list.
5801 (struct function): Remove value_histograms, stack_alignment_needed,
5802 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
5804 unexpanded_var_list, stack_protect_guard.
5805 (current_function_epilogue_delay_list): Remove.
5806 * ipa-type-escape.c (analyze_function): Update.
5807 * gimplify.c (pop_gimplify_context): Update comment.
5808 * calls.c (expand_call): Update.
5809 (emit_library_call_value_1): Update.
5810 * except.c (set_nothrow_function_flags): Update.
5811 * cfgexpand.c (get_decl_align_unit): Update.
5812 (create_stack_guard): Update.
5813 (estimated_stack_frame_size): Update.
5814 (expand_used_vars): Update.
5815 (tree_expand_cfg): Free histogram earliers, init expansion variables.
5816 * explow.c (allocate_dynamic_stack_space): Update.
5817 * tree-ssa-live.c (remove_unused_locals): Update.
5818 * varasm.c (mark_constant_pool): Update.
5819 * tree-inline.c (remap_decls): Update.
5820 (initialize_cfun): Update.
5821 (declare_return_variable): Update.
5822 (inline_forbidden_p): Update.
5823 (expand_call_inline): Update.
5824 (declare_inline_vars): Update.
5825 (tree_function_versioning): Update.
5826 * tree-flow.h (value_histograms): New.
5827 (VALUE_HISTOGRAMS): New macro.
5828 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
5830 * tree-cfg.c (set_bb_for_stmt): Update.
5831 (replace_by_duplicate_decl): Update.
5832 (move_block_to_fn): Update.
5833 (new_label_mapper): Update.
5834 (dump_function_to_file): Update.
5835 * ipa-struct-reorg.c (build_data_structure): Update.
5836 * cfgrtl.c (print_rtl_with_bb): Update.
5837 * reload1.c (reload): Update.
5839 * config/i386/i386.c (setup_incoming_varargs_64,
5840 ix86_compute_frame_layout): Update.
5841 * config/arc/arc.c (arc_output_function_epilogue): Update.
5843 2008-04-18 Marius Strobl <marius@FreeBSD.org>
5845 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
5846 for FreeBSD as well.
5847 * gthr-posix95.h: Likewise.
5849 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
5851 PR rtl-optimization/35838
5852 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
5853 out the byte offset of the first subreg.
5855 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
5857 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
5858 to split_ti instead of three separate calls with single member arrays.
5859 (subti3 splitter): Ditto.
5860 (adddi3 splitter): Ditto with split_di.
5861 (subdi3 splitter): Ditto.
5862 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
5863 two separate calls with single member arrays. Swap match_dup
5864 operands 1 and 2 to better fit into the array.
5865 (negdi2 splitter): Ditto with split_di.
5866 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
5867 two separate calls with single member arrays. Swap match_dup operands
5868 6 and 7 to better fit into the array.
5870 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
5872 * config/i386/i386.c (sse_builtin_type): New.
5873 (bdesc_sse_args): Likewise.
5874 (bdesc_sse_3arg): Removed.
5875 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
5876 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
5877 IX86_BUILTIN_ROUNDPS.
5878 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
5879 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
5880 IX86_BUILTIN_ROUNDPS.
5881 (ix86_expand_sse_4_operands_builtin): Removed.
5882 (ix86_expand_sse_operands_builtin): New.
5883 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
5884 and CODE_FOR_sse4_1_roundps.
5885 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
5886 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
5888 2008-04-17 Alan Modra <amodra@bigpond.net.au>
5891 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
5892 regs before frame pop when needed. If use_backchain_to_restore_sp
5893 then load backchain into a temp reg to restore vr and vrsave. Add
5894 code to restore vr after frame pop if possible.
5896 2008-04-17 Richard Guenther <rguenther@suse.de>
5898 * tree-vn.c (expressions_equal_p): Do not check type
5899 equality or compatibility before calling operand_equal_p.
5900 * fold-const.c (operand_equal_p): Check equivalence of
5901 integer constants before bailing out due to signedness or
5902 precision differences.
5903 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
5904 spurious differences in type qualification. Ignore types
5905 for COMPONENT_REFs at all.
5907 2008-04-17 Christian Bruel <christian.bruel@st.com>
5909 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
5910 msw_skip comparison.
5912 2008-04-16 Jakub Jelinek <jakub@redhat.com>
5915 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
5918 PR tree-optimization/35899
5919 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
5920 rather than TREE_OPERAND.
5922 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
5925 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
5926 temporary registers. Change operand predicate to general_operand.
5927 (remainderxf3): Ditto.
5929 2008-04-16 Richard Guenther <rguenther@suse.de>
5931 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
5932 * tree-affine.c (aff_combination_expand): Look through some
5935 2008-04-15 Doug Kwan <dougkwan@google.com>
5937 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
5939 * tree-pretty-print.c (dump_generic_node): Ditto.
5940 * final.c (output_addr_const): Ditto.
5941 * dwarf2out.c (output_cfi): Ditto.
5942 * c-pretty-print.c (pp_c_integer_constant): Ditto.
5943 * print-rtl.c (print_rtx): Ditto.
5944 * print-tree.c (print_node_brief, print_node): Ditto.
5945 * c-common.c (match_case_to_enum_1): Ditto.
5946 * sched-vis.c (print_value): Ditto.
5947 * config/i386/i386.c (print_operand): Cast to long unsigned int
5950 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
5951 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
5952 MS Windows VirtualProtect function.
5954 2008-04-15 Jan Hubicka <jh@suse.cz>
5956 * gengtype.c (write_root): Param_is argument is OK.
5957 * expr.c (expand_expr_real_1): Update call of get_exception_*.
5958 * function.h: Include varray.h
5959 (rtl_eh): New stucture based on except.c one.
5960 (call_site_record): New forward declaration and vector type.
5961 * calls.c (emit_call_1): Do not call
5962 note_current_region_may_contain_throw.
5963 * except.c (eh_status): Remove cur_region, try_region since they are
5965 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
5966 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
5967 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
5968 Remove call_site_data_used, call_site_data_size.
5969 Turn call_site_record into vector in function.h.
5970 (note_current_region_may_contain_throw): Remove.
5971 (get_exception_pointer, get_exception_filter): Do not take struct
5972 function argument; update.
5973 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
5974 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
5975 build_post_landing_pads, dw2_build_landing_pads,
5976 sjlj_assign_call_site_values, sjlj_mark_call_sites,
5977 sjlj_emit_function_enter, sjlj_emit_function_enter,
5978 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
5979 sjlj_build_landing_pads, finish_eh_generation,
5980 remove_exception_handler_label, remove_eh_handler,
5981 maybe_remove_eh_handler, add_reachable_handler,
5982 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
5983 add_action_record, collect_one_action_chain, add_call_site,
5984 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
5985 sjlj_output_call_site_table, output_function_exception_table,
5986 * except.h (note_current_region_may_contain_throw): Remove
5987 (get_exception_pointer, get_exception_filter): Do not take struct
5989 * Makefile.in (GTFILES): Put varargs before struct function.
5991 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
5993 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
5994 punt for STRING_CST.
5995 (get_constraint_for): Deal with STRING_CST here instead.
5997 2008-04-15 Richard Guenther <rguenther@suse.de>
5999 * tree-ssa-propagate.c (substitute_and_fold): Substitute
6000 statements in a basic-block with a backward walk. Do not
6001 substitute into dead statements but instead remove those.
6003 2008-04-15 Richard Guenther <rguenther@suse.de>
6005 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
6006 to zero, thus disable creation of SFTs.
6008 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
6010 * tree-predcom.c (suitable_reference_p): Return false if the
6011 reference can throw.
6013 2008-04-15 Jakub Jelinek <jakub@redhat.com>
6016 * c-decl.c (finish_decl): If extern or static var has variable
6017 size, set TREE_TYPE (decl) to error_mark_node.
6019 2008-04-15 Rafael Espindola <espindola@google.com>
6021 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
6024 2008-04-15 Richard Guenther <rguenther@suse.de>
6026 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
6027 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
6028 (visit_reference_op_load): Do walk vuse-vdef chains on
6029 vn_reference_lookup.
6030 (visit_reference_op_store): But do not here.
6031 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
6032 vn_reference_lookup.
6033 (vn_lookup_with_vuses): But do so here.
6035 2008-04-14 Ian Lance Taylor <iant@google.com>
6037 * fold-const.c (fold_overflow_warning): Remove assertion.
6039 2008-04-15 Ben Elliston <bje@au.ibm.com>
6041 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
6042 temp1 local variables.
6044 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
6047 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
6048 ".text.unlikely" section as executable.
6050 2008-04-14 James E. Wilson <wilson@tuliptree.org>
6052 * config/ia64/ia64.c (rtx_needs_barrier): Handle
6053 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
6054 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
6055 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
6056 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
6057 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
6058 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
6060 2008-04-14 Ian Lance Taylor <iant@google.com>
6062 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
6063 * fold-const.c (fold_comparison): If appropriate, test
6064 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
6065 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
6066 reassociating a pointer type.
6067 * doc/invoke.texi (Optimize Options): Document that
6068 -fstrict-overflow applies to pointer wraparound.
6070 2008-04-13 Jan Hubicka <jh@suse.cz>
6072 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
6074 2008-04-12 Andrew Pinski <pinskia@gmail.com>
6076 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
6077 we are going to "save the world".
6079 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
6081 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
6082 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
6083 operand 0 constraint, not "=".
6085 2008-04-11 James E. Wilson <wilson@tuliptree.org>
6087 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
6089 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
6091 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
6092 of size of positions_needed * CHAR_BIT.
6094 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
6097 * dse.c (store_info): Change positions_needed to unsigned
6099 (lowpart_bitmask): New.
6100 (record_store): Cast to unsigned HOST_WIDE_INT for
6101 positions_needed. Assert width <= size of positions_needed *
6102 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
6103 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
6104 lowpart_bitmask to set mask.
6106 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
6108 * config/bfin/constraints.md: New file.
6109 * config/bfin/bfin.md: Include it.
6110 (adddi3): Use satisfies_constraint functions instead of the old macros.
6111 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
6112 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
6113 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
6114 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
6115 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
6116 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
6117 EXTRA_CONSTRAINT): Delete.
6118 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
6119 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
6121 * config/bfin/bfin.c: Include "tm-constrs.h".
6122 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
6123 Use satisfies_constraint functions instead of the old macros.
6124 * doc/md.texi (Blackfin Constraints): Update file name reference.
6126 2008-04-11 Richard Guenther <rguenther@suse.de>
6128 PR tree-optimization/35869
6129 * tree-vrp.c (execute_vrp): Move switch statement update after
6130 jump threading. Schedule another cfg cleanup run.
6132 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
6135 * attribs.c (decl_attributes): Return early on errorneous node.
6137 2008-04-10 Oleg Ryjkov <olegr@google.com>
6139 * tree.h (struct tree_base): Added a new flag default_def_flag.
6140 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
6142 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
6144 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
6146 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6149 * pa.md: Define mode iterator P. Define mode attribute dwc.
6150 (dcacheflush): Update pattern to use iterator P and attribute dwc.
6151 (icacheflush): Likewise.
6152 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
6153 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
6155 2008-04-11 Ben Elliston <bje@au.ibm.com>
6157 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
6159 2008-04-10 Rafael Espindola <espindola@google.com>
6161 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
6162 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
6163 (extract_range_from_expr): The same.
6165 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
6167 * config/mips/mips.md (GPR2): New mode iterator.
6169 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
6170 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
6171 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
6172 Rewrite these to take two modes, the mode of comparison and the
6173 mode of the destination.
6174 * config/mips/mips.c (mips_expand_scc): Instead of having
6175 paradoxical subreg as destination, expand "narrowing" scc if mode
6176 of comparison is SI and target is requested in DI mode.
6177 (mips_emit_int_order_test): Update comment. Make mode of
6178 comparison match CMP0 rather than TARGET. When creating inverse
6179 target use mode of TARGET.
6181 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
6183 * gcov-dump.c (tag_summary): Only print summaries for the first
6184 GCOV_COUNTERS_SUMMABLE counters.
6186 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
6188 * config/i386/i386.md (absneg): New code iterator.
6189 (absnegprefix): New code attribute.
6190 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
6191 patterns using absneg code iterator.
6192 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
6193 using absneg code iterator.
6194 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
6195 *neg<mode>2 patterns using absneg code iterator.
6196 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
6197 *negextendsfdf2 patterns using absneg code iterator.
6198 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
6199 *negextendsfxf2 patterns using absneg code iterator.
6200 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
6201 *negextendsfdf2 patterns using absneg code iterator.
6202 * config/i386/sse.md (<code><mode>2): Macroize expander from
6203 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
6205 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
6207 * config/s390/s390.h: Remove the remains of the recent search
6208 & replace action of current_function_outgoing_args_size.
6210 2008-04-10 Ira Rosen <irar@il.ibm.com>
6212 PR tree-optimization/35821
6213 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
6214 NEW_STMT_LIST is not NULL.
6216 2008-04-09 David Edelsohn <edelsohn@gnu.org>
6219 * toplev.c (process_options): Remove -ffunction-sections debugging
6222 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
6224 PR middle-end/PR28690
6225 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
6226 than gen_rtx_fmt_ee to perform more canonicalizations.
6228 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6231 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
6233 2008-04-09 Richard Guenther <rguenther@suse.de>
6235 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
6236 (dump_function_to_file): Dump function arguments with types.
6238 2008-04-08 Richard Guenther <rguenther@suse.de>
6240 * fold-const.c (fold_widened_comparison): Do not allow
6241 sign-changes that change the result.
6243 2008-04-08 Janis Johnson <janis187@us.ibm.com>
6246 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
6247 kinds of indirect references.
6249 2008-04-08 David Edelsohn <edelsohn@gnu.org>
6251 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
6252 GNU Fortran language string.
6254 2008-04-08 Rafael Espindola <espindola@google.com>
6256 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
6257 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
6258 * tree.h (tree_call_nonnegative_warnv_p): New.
6260 2008-04-08 Jan Hubicka <jh@suse.cz>
6262 * function.c (free_after_compilation): Clear out regno_reg_rtx
6265 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
6268 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
6270 PR middle-end/PR28690
6271 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
6272 same precedence as REG_POINTER and MEM_POINTER operands.
6274 2008-04-08 Richard Guenther <rguenther@suse.de>
6277 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
6278 for adding index to base.
6280 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
6282 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
6283 (MINGW_ENABLE_EXECUTE_STACK): New.
6284 (IN_LIBGCC2): For libgcc include windows.h file for
6285 function declarations.
6287 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
6289 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
6290 and tem2 if tem1 is not a REG or MULT.
6292 2008-04-08 Jan Hubicka <jh@suse.cz>
6294 * function.h (incomming_args): Break out of struct function.
6295 (function_subsections): Break out of struct function.
6296 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
6297 return_rtx and hard_reg_initial_vals from struct function.
6298 Kill inl_max_label_num.
6299 (current_function_pops_args, current_function_args_info,
6300 current_function_args_size, current_function_args_size,
6301 current_function_pretend_args_size,
6302 current_function_outgoing_args_size,
6303 current_function_internal_arg_pointer, current_function_return_rtx):
6304 Kill compatibility accestor macros.
6305 * builtins.c (expand_builtin_apply_args_1): Update.
6306 (expand_builtin_next_arg): Update.
6307 * df-scan.c (df_get_call_refs): Update.
6308 * dbxout.c (dbxout_function_end): Update.
6309 * dwarf2out.c (dwarf2out_switch_text_section): Update.
6310 (output_line_info): Update.
6311 (secname_for_decl): Update.
6312 (dwarf2out_var_location): Update.
6313 * function.c (free_after_compilation): Update.
6314 (assign_parm_find_stack_rtl): Update.
6315 (assign_parms): Update.
6316 (expand_dummy_function_end): Update.
6317 (expand_function_end): Update.
6318 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
6319 (expand_call): Update.
6320 (emit_library_call_value_1): Update.
6321 (store_one_arg): Update.
6322 * varasm.c (initialize_cold_section_name): Update.
6323 (unlikely_text_section): Update.
6324 (unlikely_text_section_p): Update.
6325 (assemble_start_function): Update.
6326 (assemble_end_function): Update.
6327 (default_section_type_flags): Update.
6328 (switch_to_section): Update.
6329 * integrate.c (set_decl_abstract_flags): Update.
6330 (get_hard_reg_initial_val): Update.
6331 (has_hard_reg_initial_val): Update.
6332 (allocate_initial_values): Update.
6333 * resource.c (init_resource_info): Update.
6334 * config/alpha/alpha.c (NUM_ARGS): Update.
6335 (direct_return): Update.
6336 (alpha_va_start): Update.
6337 (alpha_sa_size): Update.
6338 (alpha_initial_elimination_offset): Update.
6339 (alpha_expand_prologue): Update.
6340 (alpha_start_function): Update.
6341 (alpha_expand_epilogue): Update.
6342 (unicosmk_initial_elimination_offset):
6343 * config/alpha/alpha.md (call expander): Update.
6344 * config/s390/s390.c (s390_register_info): Update.
6345 (s390_register_info): Update.
6346 (s390_frame_info): Update.
6347 (s390_initial_elimination_offset): Update.
6348 (s390_build_builtin_va_list): Update.
6349 (s390_va_start): Update.
6350 * config/spu/spu.c (direct_return): Update.
6351 (spu_expand_prologue): Update.
6352 (spu_initial_elimination_offset): Update.
6353 (spu_build_builtin_va_list): Update.
6354 (spu_va_start): Update.
6355 * config/sparc/sparc.c (sparc_init_modes): Update.
6356 (sparc_compute_frame_size): Update.
6357 (function_value): Update.
6358 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
6359 * config/i386/i386.md (return expander): Update.
6360 * config/i386/i386.c (ix86_va_start): Update.
6361 (ix86_can_use_return_insn_p): Update.
6362 (ix86_compute_frame_layout): Update.
6363 (ix86_expand_epilogue): Update.
6364 * config/sh/sh.c (output_stack_adjust): Update.
6365 (calc_live_regs): Update.
6366 (sh_expand_prologue): Update.
6367 (sh_builtin_saveregs): Update.
6368 (sh_va_start): Update.
6369 (initial_elimination_offset): Update.
6370 (sh_allocate_initial_value): Update.
6371 (sh_function_ok_for_sibcall): Update.
6372 (sh_get_pr_initial_val): Update.
6373 * config/sh/sh.md (return expander): Update.
6374 * config/avr/avr.c (frame_pointer_required_p): UPdate.
6375 * config/crx/crx.c (crx_compute_frame): UPdate.
6376 (crx_initial_elimination_offset): UPdate.
6377 * config/xtensa/xtensa.c (compute_frame_size): Update
6378 (xtensa_builtin_saveregs): Update.
6379 (xtensa_va_start): Update.
6380 (order_regs_for_local_alloc): Update.
6381 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
6382 (xstormy16_expand_builtin_va_start): Update.
6383 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
6384 * config/m68hc11/m68hc11.md (return expanders): Update.
6385 * config/m68hc11/m68hc11.c (expand_prologue): Update.
6386 (expand_epilogue): Update.
6387 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
6388 (cris_simple_epilogue): Update.
6389 (cris_expand_prologue): Update.
6390 (cris_expand_epilogue): Update.
6391 * config/iq2000/iq2000.c (iq2000_va_start): Update.
6392 (compute_frame_size): Update.
6393 * config/mt/mt.c (mt_compute_frame_size): Update.
6394 * config/mn10300/mn10300.c (expand_prologue): Update.
6395 (expand_epilogue): Update.
6396 (initial_offset): Update.
6397 (mn10300_builtin_saveregs):
6398 * config/mn10300/mn10300.md (return expander): Update.
6399 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
6400 (ia64_initial_elimination_offset): Update.
6401 (ia64_initial_elimination_offset): Update.
6402 (ia64_expand_prologue): Update.
6403 * config/m68k/m68k.md (return expander): Update.
6404 * config/rs6000/rs6000.c (rs6000_va_start): Update.
6405 (rs6000_stack_info): Update.
6406 * config/mcore/mcore.c (layout_mcore_frame): Update.
6407 (mcore_expand_prolog): Update.
6408 * config/arc/arc.c (arc_compute_frame_size): Update.
6409 * config/score/score3.c (score3_compute_frame_size): Update.
6410 * config/score/score7.c (score7_compute_frame_size): Update.
6411 * config/arm/arm.c (use_return_insn): Update.
6412 (thumb_find_work_register): Update.
6413 (arm_compute_save_reg_mask): Update.
6414 (arm_output_function_prologue): Update.
6415 (arm_output_epilogue): Update.
6416 (arm_size_return_regs): Update.
6417 (arm_get_frame_offsets): Update.
6418 (arm_expand_prologue): Update.
6419 (thumb_exit): Update.
6420 (thumb_unexpanded_epilogue): Update.
6421 (thumb1_output_function_prologue): Update.
6422 * config/pa/pa.md (return expander): Update.
6423 * config/pa/pa.c (compute_frame_size): Update.
6424 (hppa_builtin_saveregs): Update.
6425 * config/mips/mips.c (mips_va_start): Update.
6426 (mips16_build_function_stub): Update.
6427 (mips_compute_frame_info): Update.
6428 (mips_restore_gp): Update.
6429 (mips_output_function_prologue): Update.
6430 (mips_expand_prologue): Update.
6431 * config/v850/v850.c (compute_frame_size): Update.
6432 (expand_prologue): * config/mmix/mmix.c (along): update.
6433 (mmix_initial_elimination_offset): update.
6434 (mmix_reorg): update.
6435 (mmix_use_simple_return): update.
6436 (mmix_expand_prologue): update.
6437 (mmix_expand_epilogue): Update.
6438 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
6439 (emit_link_insn): Update.
6441 2008-04-08 Anatoly Sokolov <aesok@post.ru>
6443 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
6444 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
6446 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
6449 2008-04-07 Jan Hubicka <jh@suse.cz>
6451 * function.h (rtl): Rename to x_rtl.
6453 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
6454 frame_offset, stack_check_probe_note, arg_pointer_save_area,
6455 used_temp_slots avail_temp_slots, temp_slot_level,
6456 nonlocal_goto_handler_labels): Update accesstors.
6457 (rtl): New global variable.
6458 (struct function): Move some fileds to rtl_data.
6459 (get_arg_pointer_save_area): Update prototype.
6460 * builtins.c (expand_builtin_setjmp_receiver): Update call of
6461 get_arg_pointer_save_area.
6462 * expr.c (init_expr): Update
6463 * function.c (get_frame_size): Update
6464 (assign_stack_local): Update
6465 (expand_function_end): Update.
6466 (get_art_pointer_save_area): Update
6468 * emit-rtl.c (rtl): Declare.
6469 (regno_reg_rtx): Declare.
6470 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
6472 (gen_reg_rtx): Update.
6473 * varasm.c (n_deferred_constatns): Update accestor.
6474 (init_varasm_status): Do not allocate varasm_status.
6475 (force_const_mem, get_pool_size, output_constant_pool): Update.
6476 * stmt.c (force_label_rtx): Do not use x_ prefixes.
6477 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
6478 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
6479 * sparc/sparc.h (INIT_EXPANDERS): Update.
6480 * ia64/ia64.h (INIT_EXPANDERS): Update.
6482 2008-04-07 James E. Wilson <wilson@tuliptree.org>
6484 * reload.c (push_secondary_reload): Add missing break to for loop.
6486 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
6488 PR middle-end/PR28690
6489 * rtlanal.c: Update copyright years.
6490 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
6491 as REG_POINTER and MEM_POINTER operands.
6492 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
6493 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
6494 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
6495 * gcse.c: Update copyright years.
6496 (pre_delete): Call gen_reg_rtx_and_attrs.
6497 (hoist_code): Likewise.
6498 (build_store_vectors): Likewise.
6499 (delete_store): Likewise.
6500 * loop-invariant.c (move_invariant_reg): Likewise.
6501 Update copyright years.
6503 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
6505 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
6506 control string instead of quoted.
6508 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
6510 * doc/rtl.texi: Rewrite of subreg section.
6512 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
6515 * config/i386/i386.c (legitimize_pic_address): Add treating
6516 of dllimport SYM_REF's.
6517 (legitimize_dllimport_symbol): Add prototype.
6519 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6521 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
6522 reference in constructor with non self-referential type.
6524 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6526 Removal of Return with Depressed Stack Pointer support
6527 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
6528 (ECF_SP_DEPRESSED): Likewise.
6529 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
6530 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
6531 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6532 (expand_call): Do not test ECF_SP_DEPRESSED.
6533 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6534 * function.c (keep_stack_depressed): Delete.
6535 (handle_epilogue_set): Likewise.
6536 (update_epilogue_consts): Likewise.
6537 (emit_equiv_load): Likewise.
6538 (thread_prologue_and_epilogue_insns): Remove support for Return with
6539 Depressed Stack Pointer.
6540 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6542 2008-04-06 Richard Guenther <rguenther@suse.de>
6544 PR tree-optimization/35400
6545 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
6546 information from SSA_NAMEs.
6548 2008-04-06 Anatoly Sokolov <aesok@post.ru>
6550 * config/avr/avr.h (avr_mega_p): Remove declaration.
6551 (AVR_MEGA): Remove macro.
6552 * config/avr/avr.c (avr_mega_p): Remove variable.
6553 (avr_override_options): Remove inicializion of avr_mega_p.
6554 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
6555 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
6556 (avr_jump_mode): (Ditto.).
6557 (avr_output_progmem_section_asm_op): (Ditto.).
6558 (avr_asm_init_sections): (Ditto.).
6559 (avr_asm_init_sections): (Ditto.).
6560 (avr_rtx_costs): (Ditto.).
6561 * config/avr/avr.md: (Ditto.).
6562 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
6565 2008-04-06 Richard Guenther <rguenther@suse.de>
6567 PR tree-optimization/35842
6568 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
6569 is_gimple_invariant_address.
6571 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6573 * gcc.c (default_compilers): Sync Fortran extensions list with
6574 that in fortran/lang-specs.h.
6575 * doc/invoke.texi: Likewise.
6576 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
6577 * dwarf2out.c (gen_compile_unit_die): Likewise.
6579 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
6581 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
6583 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
6586 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
6587 attribute is used for nested functions.
6589 2008-04-05 Jan Hubicka <jh@suse.cz>
6591 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
6593 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
6595 (dump_files): Update.
6596 (enable_rtl_dump_file): Do not accept letter argument.
6597 * tree-pass.h (dump_file_info): Remove letter argument.
6598 * toplev.c (decode_d_option): Update -da handling.
6599 * toplev.h (enable_rtl_dump_file): Update prototype.
6600 * passes.c (register_one_dump_file): Do not accept IPA argument; work
6601 it out based on pass type.
6602 (register_dump_files_1): Likewise.
6603 (init_optimization_passes): Update register_one_dump_file calls.
6604 (execute_one_pass): Sanity check that IPA passes are called at IPA
6605 level and RTL passes at RTL level.
6606 (execute_pass_list): IPA pass can not be after or subpass of
6608 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
6609 disallov RTL subpasses of IPA subpasses.
6611 2008-04-05 Ben Elliston <bje@au.ibm.com>
6613 * tree-cfg.c (need_fake_edge_p): Return false for calls to
6614 builtins that return exactly once and do not throw. Cache call to
6617 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
6619 PR rtl-optimization/34916
6621 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
6622 between instruction pairs.
6624 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
6626 * doc/invoke.texi: Document -mbitops for SH.
6627 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
6628 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
6629 * config/sh/sh.c (print_operand): Add %t operand code.
6630 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
6631 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
6632 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
6633 (extendqihi2): Likewise.
6634 (movqi_i): Likewise.
6635 (insv): Use bset, bclr and bst instructions for SH2A if possible.
6636 (extv): Use bld instruction for SH2A if possible.
6638 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
6639 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
6640 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
6641 (bset.b, bclr.b): Define peepholes.
6642 * config/sh/sh.opt (mbitops): New option.
6644 2008-04-04 Janis Johnson <janis187@us.ibm.com>
6647 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
6648 and view convert expression.
6650 2008-04-04 Jakub Jelinek <jakub@redhat.com>
6653 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
6655 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
6657 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
6659 * config/i386/cpuid.h (bit_AES): New.
6660 (bit_PCLMUL): Likewise.
6662 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
6663 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
6664 SSE2 if AES or PCLMUL is enabled.
6665 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
6666 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
6667 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
6668 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
6669 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
6670 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
6671 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
6672 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
6673 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
6674 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
6675 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
6676 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
6677 __builtin_ia32_aeskeygenassist128 and
6678 __builtin_ia32_pclmulqdq128.
6679 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
6680 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
6681 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
6683 * config/i386/i386.h (TARGET_AES): New.
6684 (TARGET_PCLMUL): Likewise.
6685 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
6687 * config/i386/i386.md (UNSPEC_AESENC): New.
6688 (UNSPEC_AESENCLAST): Likewise.
6689 (UNSPEC_AESDEC): Likewise.
6690 (UNSPEC_AESDECLAST): Likewise.
6691 (UNSPEC_AESIMC): Likewise.
6692 (UNSPEC_AESKEYGENASSIST): Likewise.
6693 (UNSPEC_PCLMUL): Likewise.
6695 * config/i386/i386.opt (maes): New.
6696 (mpclmul): Likewise.
6698 * config/i386/sse.md (aesenc): New pattern.
6699 (aesenclast): Likewise.
6701 (aesdeclast): Likewise.
6703 (aeskeygenassist): Likewise.
6704 (pclmulqdq): Likewise.
6706 * config/i386/wmmintrin.h: New.
6708 * doc/extend.texi: Document AES and PCLMUL built-in function.
6710 * doc/invoke.texi: Document -maes and -mpclmul.
6712 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
6714 * function.c (free_after_parsing): Replace with
6715 cxx_push_function_context from C++ front-end.
6716 (allocate_struct_function): Don't call langhook.
6717 * langhooks.h (struct lang_hooks_for_functions): Delete.
6718 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
6720 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
6721 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
6722 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
6723 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
6724 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
6725 remove LANG_HOOKS_FUNCTION_INITIALIZER.
6726 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
6728 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
6729 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
6731 2008-04-04 Jakub Jelinek <jakub@redhat.com>
6734 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
6737 2008-04-04 Richard Guenther <rguenther@suse.de>
6740 * fold-const.c (optimize_minmax_comparison): Use the correct
6741 type for the constant in the simplified comparison.
6743 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
6745 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
6746 Pass L2 size as "--param l2-cache-size" to the compiler.
6747 (decode_l2_cache): New function to decode L2 cache parameters using
6748 0x8000006 extended cpuid function.
6749 (detect_caches_amd): Determine parameters of L2 cache using
6750 decode_l2_caches function.
6751 (decode_caches_intel): Decode L2 cache parameters.
6752 (detect_caches_intel): Determine L2 cache parameters using
6753 decode_caches_intel and decode_l2_caches functions.
6755 2008-04-03 Bob Wilson <bob.wilson@acm.org>
6757 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
6758 secondary input reload for subword loads from the constant pool.
6760 2008-04-03 Janis Johnson <janis187@us.ibm.com>
6763 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
6764 constants of the appropriate size for runtime calculations.
6767 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
6768 decimal-float literal constant zero.
6770 2008-04-03 Jakub Jelinek <jakub@redhat.com>
6773 * c-parser.c (c_parser_omp_atomic): Call
6774 default_function_array_conversion on the RHS.
6777 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
6778 call is_variable_sized if decl has incomplete type.
6780 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
6782 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
6784 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
6786 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
6788 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
6789 (sgt<u>): Merge sgt and sgtu into new expander.
6790 (sgt, sgtu): Remove expanders.
6791 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
6792 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
6793 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
6794 *sgtu_<mode>_mips16 into new pattern.
6795 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
6796 (sge<u>): Merge sge and sgeu into new expander.
6797 (sge, sgeu): Remove expanders.
6798 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
6800 (*sge_<mode>, second *sge_<mode>): Remove patterns.
6801 (slt<u>): Merge slt and sltu into new expander.
6802 (slt, sltu): Remove expanders.
6803 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
6804 (*slt_<mode>, *sltu_<mode>): Remove patterns.
6805 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
6806 *sltu_<mode>_mips16 into new pattern.
6807 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
6808 (sle<u>): Merge sle and sleu into new expander.
6809 (sle, sleu): Remove expanders.
6810 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
6811 (*sle_<mode>, *sleu_<mode>): Remove patterns.
6812 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
6813 *sleu_<mode>_mips16 into new pattern.
6814 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
6816 2008-04-03 Jan Hubicka <jh@suse.cz>
6818 PR tree-optimization/35795
6819 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
6820 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6821 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6822 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
6823 * score/score3.c (score3_output_mi_thunk): Likewise.
6824 * score/score7.c (score7_output_mi_thunk): Likewise.
6825 * mips/mips.c (mips_output_mi_thunk): Likewise.
6827 2008-04-03 Richard Guenther <rguenther@suse.de>
6829 * tree-vrp.c (extract_range_from_unary_expr): Handle all
6830 conversions. Simplify code.
6832 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
6834 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
6836 2008-04-03 Tom Tromey <tromey@redhat.com>
6837 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6839 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
6840 * config/bfin/t-bfin-linux (generated_files): Add
6841 linux-sysroot-suffix.h.
6842 * doc/install.texi (Prerequisites): Require make 3.80.
6843 * doc/sourcebuild.texi (Front End Directory): Document new
6845 * Makefile.in (generated_files): New variable.
6846 (ALL_HOST_OBJS): New variable.
6847 ($(ALL_HOST_OBJS)): New target.
6849 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6851 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
6852 (remap_block): Call id->transform_lang_insert_block instead
6854 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
6855 Set id.transform_lang_insert_block to NULL.
6856 (clone_body): Move to cp/optimize.c
6857 * tree-inline.h (struct copy_body_data): Change
6858 transform_lang_insert_block to function pointer.
6859 (copy_generic_body, copy_decl_no_change): Export.
6860 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
6861 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
6862 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
6864 * c-tree.h (insert_block): Kill.
6865 * c-decl.c (insert_block): Kill.
6867 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6869 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6870 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
6871 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
6873 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
6874 argument, call {push,pop}_function_context from here.
6875 * c-parser.c: Use c_{push,pop}_function_context.
6877 * function.c (push_function_context_to): Move meat ...
6878 (push_function_context): ... here. Simplify.
6879 * function.c (pop_function_context_from): Move meat ...
6880 (pop_function_context): ... here. Simplify.
6881 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
6883 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6884 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
6885 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
6886 * tree.h (push_function_context_to, pop_function_context_from): Remove.
6888 2008-04-03 Ben Elliston <bje@au.ibm.com>
6890 * expmed.c (extract_force_align_mem_bit_field): Remove.
6892 2008-04-03 Richard Guenther <rguenther@suse.de>
6895 * expr.h (try_casesi): Adjust prototype.
6896 * expr.c (try_casesi): Take fallback label as extra parameter.
6897 Use that for gen_casesi if default_label is NULL.
6898 * stmt.c (expand_case): Pass fallback label to try_casesi,
6899 make sure to fill gaps with a fallback label if default_label
6902 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
6905 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
6907 2008-04-03 Ben Elliston <bje@au.ibm.com>
6909 * expmed.c (extract_split_bit_field): Remove if (0) code.
6910 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
6911 (do_ds_constraint): Likewise.
6913 2008-04-02 Joseph Myers <joseph@codesourcery.com>
6915 * doc/cppopts.texi (-dU): Document.
6916 * c-common.h (flag_dump_macros): Update comment.
6917 * c-opts.c (handle_OPT_d): Handle -dU.
6918 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
6919 dump_queued_macros, cb_used_define, cb_used_undef): New.
6920 (init_pp_output): Handle -dU.
6921 (cb_line_change): Call dump_queued_macros.
6922 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
6924 2008-04-02 Anatoly Sokolov <aesok@post.ru>
6926 * config/avr/predicates.md (io_address_operand): New predicate.
6927 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
6928 * config/avr/avr.c (avr_io_address_p): Remove function.
6929 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
6930 'avr_io_address_p' function.
6931 (out_movhi_r_mr): (Ditto.).
6932 (out_movqi_mr_r): (Ditto.).
6933 (out_movhi_mr_r): (Ditto.).
6934 (avr_address_cost): (Ditto.).
6936 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
6938 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
6939 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
6940 in 32bit mode when XMM registers are available to avoid store
6942 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
6943 corresponding post-reload splitters.
6945 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
6947 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
6948 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
6949 __builtin_ia32_roundss.
6950 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
6951 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
6952 __builtin_ia32_roundss.
6953 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
6954 IX86_BUILTIN_SHUFPD here.
6956 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
6958 * config/i386/i386.md (plogic): New.
6959 (plogicprefix): Likewise.
6961 * config/i386/mmx.md (mmx_<code><mode>3): New.
6962 (mmx_and<mode>3): Removed.
6963 (mmx_ior<mode>3): Likewise.
6964 (mmx_xor<mode>3): Likewise.
6966 * config/i386/sse.md (<code><mode>3): New.
6967 (*<code><mode>3): Likewise.
6968 (*<code><mode>3): Likewise.
6969 (<code><mode>3): Likewise.
6970 (*sse_<code><mode>3): Likewise.
6971 (*sse2_<code><mode>3): Likewise.
6972 (<code>tf3): Likewise.
6973 (*<code>tf3): Likewise.
6974 (and<mode>3): Likewise.
6975 (*and<mode>3): Likewise.
6976 (ior<mode>3): Removed.
6977 (*ior<mode>3): Likewise.
6978 (xor<mode>3): Likewise.
6979 (*xor<mode>3): Likewise.
6980 (*and<mode>3): Likewise.
6981 (*ior<mode>3): Likewise.
6982 (*xor<mode>3): Likewise.
6983 (and<mode>3): Likewise.
6984 (*sse_and<mode>3): Likewise.
6985 (*sse2_and<mode>3): Likewise.
6987 (*andtf3): Likewise.
6988 (ior<mode>3): Likewise.
6989 (*sse_ior<mode>3): Likewise.
6990 (*sse2_ior<mode>3): Likewise.
6992 (*iortf3): Likewise.
6993 (xor<mode>3): Likewise.
6994 (*sse_xor<mode>3): Likewise.
6995 (*sse2_xor<mode>3): Likewise.
6997 (*xortf3): Likewise.
6999 2008-04-02 Richard Guenther <rguenther@suse.de>
7001 PR tree-optimization/14495
7002 PR tree-optimization/34793
7003 * tree-vrp.c (struct switch_update): New structure.
7004 (to_remove_edges, to_update_switch_stmts): New VECs.
7005 (simplify_switch_using_ranges): New function. Remove not taken
7006 case labels and edges.
7007 (simplify_stmt_using_ranges): Call it.
7008 (identify_jump_threads): Mark edges we have queued for removal
7009 so we don't thread them.
7010 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
7012 * tree-cfg.c (group_case_labels): Deal with missing default label.
7013 (tree_verify_flow_info): Allow missing default label.
7014 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
7015 (emit_case_nodes): Likewise.
7016 (expand_case): Do not rely on the default label to be present.
7017 * expr.c (try_casesi): Deal with NULL default_label.
7018 (do_tablejump): Likewise.
7020 2008-04-02 Richard Guenther <rguenther@suse.de>
7022 PR tree-optimization/14495
7023 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
7024 SWITCH_EXPR here ...
7025 (vrp_visit_switch_stmt): ... but here (new function).
7026 (find_case_label_index): New helper function.
7027 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
7029 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
7031 * fwprop.c: Fix ISO-C99ism.
7033 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
7036 * Makefile.in (objdir): Set it here.
7037 * configure.ac: Not here. Find dynamic linker characteristics.
7038 * exec-tool.in: Use them.
7039 * aclocal.m4: Regenerate.
7040 * configure: Regenerate.
7042 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
7044 * expr.c (expand_var): Delete it.
7045 * expr.h (expand_var): Delete prototype.
7046 * function.c (expand_function_start): Use expand_decl instead.
7047 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
7050 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
7052 PR rtl-optimization/35542
7053 * fwprop.c (forward_propagate_and_simplify): Replace
7054 loc_reg_mentioned_in_p with reg_mentioned_p.
7056 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
7058 PR rtl-optimization/35281
7059 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
7060 (propagate_rtx_1): Handle PR_HANDLE_MEM.
7061 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
7062 (varying_mem_p): Move above propagate_rtx.
7063 (all_uses_available_at): Do not check MEMs.
7065 2008-04-02 Rafael Espindola <espindola@google.com>
7067 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
7068 (register_edge_assert_for_2): Split the cond argument.
7069 (register_edge_assert_for_1): Adjust for the change in
7070 register_edge_assert_for_2.
7071 (register_edge_assert_for): Split the cond argument.
7072 (find_switch_asserts): Adjust for the change in
7073 register_edge_assert_for.
7075 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
7077 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
7078 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
7079 offsets for 64-bit mingw.
7080 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
7081 abi for x86_64-pc-mingw.
7083 2008-04-02 Richard Guenther <rguenther@suse.de>
7085 * tree-vrp.c (extract_range_from_assert): Make sure to not
7086 produce range min/max with TREE_OVERFOW set.
7087 If merging a anti-range and a range keep the anti-range if
7088 the range covers all values of the type.
7089 (register_edge_assert_for_2): Only allow sign-changing
7090 conversions in detecting canonical range checks. Also
7091 register an assert for the unsigned name if useful.
7093 PR tree-optimization/35787
7094 * tree-vrp.c (vrp_val_max): New function.
7095 (vrp_val_min): Likewise.
7096 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
7097 (vrp_val_is_min): Likewise.
7098 (supports_overflow_infinity): Use vrp_val_{min,max}.
7099 (negative_overflow_infinity): Likewise.
7100 (positive_overflow_infinity): Likewise.
7101 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
7102 (is_positive_overflow_infinity): Likewise.
7103 (is_overflow_infinity): Likewise.
7104 (avoid_overflow_infinity): Use vrp_val_{min,max} and
7105 vrp_val_is_{min,max}.
7106 (set_and_canonicalize_value_range): Canonicalize anti-ranges
7107 to ranges if possible. Avoid empty ranges.
7109 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7112 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
7113 the expression is a function address.
7115 2008-04-01 George Helffrich <george@gcc.gnu.org>
7117 PR fortran/35154, fortran/23057
7118 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
7119 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
7120 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
7121 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
7123 (dbxout_syms): Check for COMMON-based symbol and wrap in
7124 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
7125 in bracket for efficiency.
7127 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
7128 using DW_TAG_common_block + member offset.
7129 (add_pubname_string): New function.
7130 (dw_expand_expr): New function to find block name and offset for
7132 (common_check): New function to check whether symbol in Fortran COMMON.
7133 (gen_variable_die): If COMMON, use DW_TAG_common_block.
7135 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
7138 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
7140 2008-04-02 Ben Elliston <bje@au.ibm.com>
7142 * config/v850/v850.md (casesi): Remove if (0) code.
7143 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7144 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
7146 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
7148 * config/i386/i386.md (rex64suffix): New mode attribute.
7149 (floathi<mode>2): Disable expander for SSE math.
7150 (*floathi<mode>2_1): New insn insn_and_split pattern.
7151 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
7152 corresponding post-reload splitters.
7153 (*floathi<mode>2_i387): New macroized insn pattern.
7154 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
7155 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
7156 insn_and_split pattern.
7157 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
7158 New macroized instruction patterns and corresponding post-reload
7160 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
7161 and corresponding post-reload splitters.
7162 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
7163 New macroized instruction patterns.
7164 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
7165 macroized instruction patterns and corresponding post-reload splitters.
7166 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
7167 corresponding post-reload splitters.
7168 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
7169 New macroized instruction patterns.
7170 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
7171 corresponding post-reload splitters.
7172 (*floatsi<mode>2_i387): New macroized instruction patterns.
7174 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
7176 * config/i386/i386.md (smaxmin): New.
7177 (umaxmin): Likewise.
7178 (maxminiprefix): Likewise.
7179 (maxminfprefix): Likewise.
7180 (<code><mode>3): Likewise.
7181 (smin<mode>3): Removed.
7182 (smax<mode>3): Likewise.
7184 * config/i386/mmx.md (mmx_<code>v2sf3): New.
7185 (mmx_<code>v4hi3): Likewise.
7186 (mmx_<code>v8qi3): Likewise.
7187 (mmx_smaxv2sf3): Removed.
7188 (mmx_sminv2sf3): Likewise.
7189 (mmx_umaxv8qi3): Likewise.
7190 (mmx_smaxv4hi3): Likewise.
7191 (mmx_uminv8qi3): Likewise.
7192 (mmx_sminv4hi3): Likewise.
7194 * config/i386/sse.md (<addsub><mode>3): New.
7195 (*<addsub><mode>3): Likewise.
7196 (<sse>_vm<addsub><mode>3): Likewise.
7197 (<maxmin><mode>3): Likewise.
7198 (*<maxmin><mode>3_finite): Likewise.
7199 (*<maxmin><mode>3): Likewise.
7200 (<sse>_vm<maxmin><mode>3): Likewise.
7201 (sse3_h<addsub>v4sf3): Likewise.
7202 (sse3_h<addsub>v2df3): Likewise.
7203 (<maxmin>v16qi3): Likewise.
7204 (*<maxmin>v16qi3): Likewise.
7205 (<maxmin>v8hi3): Likewise.
7206 (*<maxmin>v8hi3): Likewise.
7207 (*sse4_1_<maxmin><mode>3): Likewise.
7208 (*sse4_1_<maxmin><mode>3): Likewise.
7209 (add<mode>3): Removed.
7210 (*add<mode>3): Likewise.
7211 (<sse>_vmadd<mode>3): Likewise.
7212 (sub<mode>3): Likewise.
7213 (*sub<mode>3): Likewise.
7214 (<sse>_vmsub<mode>3): Likewise.
7215 (smin<mode>3): Likewise.
7216 (*smin<mode>3_finite): Likewise.
7217 (*smin<mode>3): Likewise.
7218 (<sse>_vmsmin<mode>3): Likewise.
7219 (smax<mode>3): Likewise.
7220 (*smax<mode>3_finite): Likewise.
7221 (*smax<mode>3): Likewise.
7222 (<sse>_vmsmax<mode>3): Likewise.
7223 (sse3_haddv4sf3): Likewise.
7224 (sse3_haddv2df3): Likewise.
7225 (sse3_hsubv4sf3): Likewise.
7226 (sse3_hsubv2df3): Likewise.
7227 (umaxv16qi3): Likewise.
7228 (*umaxv16qi3): Likewise.
7229 (smaxv8hi3): Likewise.
7230 (*smaxv8hi3): Likewise.
7231 (*sse4_1_smax<mode>3): Likewise.
7232 (*sse4_1_umax<mode>3): Likewise.
7233 (uminv16qi3): Likewise.
7234 (*uminv16qi3): Likewise.
7235 (sminv8hi3): Likewise.
7236 (*sminv8hi3): Likewise.
7237 (*sse4_1_smin<mode>3): Likewise.
7238 (*sse4_1_umin<mode>3): Likewise.
7240 2008-04-01 Rafael Espindola <espindola@google.com>
7242 * tree-cfg.c (verify_expr): remove in_phi.
7243 (verify_stmt): Don't call walk_tree with verify_expr. Use
7244 is_gimple_min_invariant instead of is_gimple_val.
7246 2008-04-01 Joseph Myers <joseph@codesourcery.com>
7248 * doc/include/gpl_v3.texi: Update for manpage generation.
7249 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
7251 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
7252 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
7253 gpl_v3.texi instead of gpl.texi.
7256 2008-04-01 Jakub Jelinek <jakub@redhat.com>
7259 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
7261 2008-04-01 Rafael Espindola <espindola@google.com>
7263 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
7264 (extract_code_and_val_from_cond): Use
7265 extract_code_and_val_from_cond_with_ops.
7267 2008-04-01 Jan Hubicka <jh@suse.cz>
7269 * function.c (free_after_compilation): Free epilogue_delay_list.
7270 (prepare_function_start): Assert that previous compilation was freed.
7272 2008-04-01 Jan Hubicka <jh@suse.cz>
7273 Jim Wilson <wilson@tuliptree.org>
7274 Andreas Tobler <andreast@gcc.gnu.org>
7277 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
7278 rtl.emit instead cfun->emit.
7279 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
7280 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
7282 2008-04-01 Ben Elliston <bje@au.ibm.com>
7284 * doc/c-tree.texi (Function Basics): Fix grammatical error.
7286 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
7288 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
7290 (fprofile-use): Add var flag_profile_use
7291 * coverage.c (coverage_begin_output): Do not open a gcno file for
7292 output only if -ftest-coverage is set.
7293 Do not add getpwd() to gcda file path.
7294 (build_gcov_info): Check the new flag
7295 flag_profile_datafile_relative_path.
7296 (coverage_init): Use profile_data_prefix.
7297 Read profile counter only if flag_profile_use is set.
7298 * opts.c (common_handle_option): New option fprofile-use=,
7299 fprofile-dir=, fprofile-generate=.
7300 * toplev.c (profile_data_prefix): New variable definition.
7301 * toplev.h (profile_data_prefix): New declaration.
7302 * doc/invoke.tex (Option Summary, Optimization Options):
7305 2008-03-31 James E. Wilson <wilson@tuliptree.org>
7307 * varasm.c (output_constant_pool_1): In LABEL_REF check,
7308 use tmp consistently.
7311 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
7312 * config/ia64/ia64.c (rtx_needs_barrier): Handle
7313 UNSPEC_FR_RECIP_APPROX_RES.
7314 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
7316 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
7319 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
7321 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
7324 * fold-const.c (fold_indirect_ref_1): Support accessing non first
7325 element of the vector via a pointer.
7327 2008-03-31 Ian Lance Taylor <iant@google.com>
7329 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
7331 2008-03-31 Jan Hubicka <jh@suse.cz>
7333 * builtins.c (expand_builtin_setjmp_receiver): Update call of
7334 get_arg_pointer_save_area.
7335 * expr.c (init_expr): Just clear out rtl.expr.
7336 * function.c (free_after_compilation): Clear out whole RTL structure.
7337 (get_func_frame_size): Merge into ...
7338 (get_frame_size): ... this one.
7339 (assign_stack_local_1): Merge into ...
7340 (assign_stack_local): ... this one.
7341 (expand_function_end): Update call of get_arg_pointer_save_area.
7342 (get_art_pointer_save_area): Remove cfun argument.
7343 * function.h (emit_status): regno_pointer_align does not need length
7344 attribute. Move x_regno_reg_rtx to ...
7345 (regno_reg_rtx): ... new global array.
7346 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
7347 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
7348 apply_args_value, forced_labels, stack_pointer_delta):
7350 (struct varasm_status): Move here from varasm.c
7351 (struct rtl_data): New. Move here some fields from struct function.
7352 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
7353 frame_offset, stack_check_probe_note, arg_pointer_save_area,
7354 used_temp_slots avail_temp_slots, temp_slot_level,
7355 nonlocal_goto_handler_labels): Update accesstors.
7356 (rtl): New global variable.
7357 (struct function): Move some fileds to rtl_data.
7358 (get_arg_pointer_save_area): Update prototype.
7359 * emit-rtl.c (rtl): Declare.
7360 (regno_reg_rtx): Declare.
7361 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
7363 (gen_reg_rtx): Update.
7364 (init_virtual_regs): Do not tate emit_status argument.
7365 (init_emit): Do not allocate emit.
7366 * varasm.c (varasm_statuc): Move to function.h.
7367 (n_deferred_constatns): Update accestor.
7368 (init_varasm_status): Do not allocate varasm_status.
7369 (force_const_mem, get_pool_size, output_constant_pool): Update.
7370 * stmt.c (force_label_rtx): Do not use x_ prefixes.
7371 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
7373 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
7375 PR rtl-optimization/35729
7376 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
7379 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
7382 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
7383 load/store if memory is unaligned.
7384 (*movti_rex64): Likewise.
7386 * config/i386/predicates.md (misaligned_operand): New.
7388 2008-03-31 Andrew Pinski <pinskia@gmail.com>
7391 * tree-ssa-phiopt.c (conditional_replacement): Return early for
7394 2008-03-31 Jan Beulich <jbeulich@novell.com>
7396 * config/ia64/constraints.md: Add 'j' constraint.
7397 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
7398 (movdi_internal): Likewise.
7400 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
7403 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
7405 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
7408 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
7409 proper error message for the third argument on blendpd and
7412 * config/i386/sse.md (blendbits): New.
7413 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
7415 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
7417 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
7419 2008-03-30 Richard Guenther <rguenther@suse.de>
7422 * fold-const.c (fold_sign_changed_comparison): Do leave
7423 conversions to base-types alone.
7425 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
7427 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
7428 the link register if one altivec register is be saved.
7430 2008-03-30 Ben Elliston <bje@au.ibm.com>
7432 * final.c (final_scan_insn): Remove if (0) code.
7434 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
7436 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
7438 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
7440 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
7441 of V4SFmode to ix86_binary_operator_ok.
7443 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
7445 * config/i386/i386.c (override_options): Initialize
7446 ix86_veclib_handler to ix86_veclibabi_svml when
7447 -mveclibabi=svml is used.
7448 (ix86_veclibabi_svml): New function for SVML ABI style
7449 vectorization support.
7450 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
7452 2008-03-28 Rafael Espindola <espindola@google.com>
7454 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
7455 (tree_binary_nonnegative_warnv_p): Make it public.
7456 (tree_single_nonnegative_warnv_p): Make it public.
7457 (tree_invalid_nonnegative_warnv_p): Make it public.
7458 (tree_unary_nonzero_warnv_p): Make it public.
7459 (tree_binary_nonzero_warnv_p): Make it public
7460 (tree_single_nonzero_warnv_p): Make it public.
7461 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
7462 (extract_range_from_binary_expr): Split the expr argument.
7463 (extract_range_from_unary_expr): Split the expr argument.
7464 (extract_range_from_comparison): Split the expr argument.
7465 (extract_range_from_expr): Use the new aux functions.
7466 (vrp_evaluate_conditional_warnv): Use
7467 vrp_evaluate_conditional_warnv_with_ops.
7468 * tree.h (tree_unary_nonzero_warnv_p): Declare.
7469 (tree_binary_nonzero_warnv_p): Declare.
7470 (tree_single_nonzero_warnv_p): Declare.
7471 (tree_expr_nonzero_warnv_p): Declare.
7472 (tree_unary_nonnegative_warnv_p): Declare.
7473 (tree_binary_nonnegative_warnv_p): Declare.
7474 (tree_single_nonnegative_warnv_p): Declare.
7475 (tree_invalid_nonnegative_warnv_p): Declare.
7477 2008-03-28 Richard Guenther <rguenther@suse.de>
7479 PR tree-optimization/30317
7480 PR tree-optimization/30911
7481 PR tree-optimization/34793
7482 * tree-vrp.c (set_and_canonicalize_value_range): New function.
7483 (struct assert_locus_d): New member EXPR.
7484 (register_new_assert_for): Add EXPR parameter to support
7485 ASSERT_EXPR <name, expr OP limit>.
7486 (register_edge_assert_for_1): Adjust callers.
7487 (find_assert_locations): Likewise.
7488 (process_assert_insertions_for): Build condition from expression.
7489 (extract_range_from_assert): Handle ASSERT_EXPRs
7490 of the form ASSERT_EXPR <name, expr OP limit>.
7491 (register_edge_assert_for_2): New helper registering
7492 asserts for comparisons. Recognize range tests of the form
7493 (unsigned)i - CST1 OP CST2.
7494 (register_edge_assert_for_1): Use it.
7495 (register_edge_assert_for): Likewise.
7496 (needs_overflow_infinity): Integer sub-types
7497 do not need overflow infinities.
7498 (vrp_val_is_max): The extreme values of integer sub-types
7499 are those of the base type.
7500 (vrp_val_is_min): Likewise.
7501 * tree.def (ASSERT_EXPR): Document extra allowed conditional
7504 2008-03-28 Nick Clifton <nickc@redhat.com>
7507 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
7508 Return GENERAL_REGS for stack adjustment reloads.
7510 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
7513 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
7514 const_vector when all the vectors are constant.
7516 2008-03-27 Bob Wilson <bob.wilson@acm.org>
7518 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
7520 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
7521 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
7523 (s<code>_sf): Use new scc_sf attribute for opcode names.
7525 2008-03-27 Tom Tromey <tromey@redhat.com>
7527 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
7528 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
7529 config/spu/t-spu-elf, config/i386/t-interix,
7530 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
7531 config/i386/x-darwin, config/i386/x-mingw32,
7532 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
7533 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
7534 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
7535 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
7536 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
7537 config/rs6000/x-darwin, config/rs6000/t-rs6000,
7538 config/score/t-score-elf, config/arm/t-strongarm-pe,
7539 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
7540 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
7541 Revert automatic dependency patch.
7543 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
7546 * config/i386/i386.c (ix86_function_arg_boundary): Align
7547 decimal floating point to its natural boundary.
7549 2008-03-27 Richard Guenther <rguenther@suse.de>
7552 * fold-const.c (fold_comparison): Restrict distinct decl
7553 comparison folding to VAR_DECLs and PARM_DECLs. Do not
7554 solely rely on operand_equal_p.
7556 2008-03-27 Richard Guenther <rguenther@suse.de>
7559 * c-common.c (handle_weak_attribute): Reject combination of
7562 2008-03-27 Richard Guenther <rguenther@suse.de>
7564 PR tree-optimization/32810
7565 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
7566 conversions from DECL_INITIAL.
7567 (fold_const_aggregate_ref): Likewise from constructor elements.
7569 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
7571 * tree-affine.h (aff_combination_expand): Declare.
7572 (get_inner_reference_aff): Likewise.
7573 * tree-affine.c (aff_combination_expand): Split out from
7574 tree_to_aff_combination_expand.
7575 (get_inner_reference_aff): New function.
7576 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
7577 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
7578 (struct lim_aux_data): sm_done field removed.
7579 (mem_ref_loc_p, mem_ref_locs_p): New types.
7580 (struct mem_ref): Added id, stored, accesses_in_loop,
7581 indep_loop, dep_loop, indep_ref, dep_ref fields.
7582 Removed is_stored, locs and next fields.
7583 (memory_accesses): New variable.
7584 (movement_possibility): Do not allow moving statements
7585 that store to memory.
7586 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
7588 (determine_max_movement): For statements with memory references,
7589 find the outermost loop in that the reference is independent.
7590 (move_computations_stmt): Mark the virtual operands for renaming.
7591 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
7592 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
7593 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
7594 add_vop_ref_mapping, create_vop_ref_mapping_loop,
7595 create_vop_ref_mapping, analyze_memory_references,
7596 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
7597 get_all_locs_in_loop, ref_always_accessed_p,
7598 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
7599 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
7600 store_motion_loop, store_motion): New functions.
7601 (struct vop_to_refs_elt): New type.
7602 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
7603 memref_hash, memref_eq, hoist_memory_references): Rewritten.
7604 (schedule_sm): Replaced by...
7605 (execute_sm): ... this.
7606 (determine_lsm_ref, hoist_memory_references,
7607 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
7608 find_more_ref_vops, free_mem_ref, free_mem_refs,
7609 determine_lsm_loop, determine_lsm): Removed.
7610 (tree_ssa_lim_finalize): Free data structures used by store motion.
7611 (tree_ssa_lim): Call analyze_memory_references. Use
7612 store_motion instead of determine_lsm.
7614 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
7616 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
7617 rename tmake_file to m68hc11/t-m68hc11.
7618 (mcore): Set inhibit_libc to true.
7619 * config.host (alpha*-dec-*vms*): Set extra_programs.
7620 (interix3*): Don't use host_xmake_file.
7621 * configure.ac: Let config.gcc override inhibit_libc.
7622 * configure: Regenerate.
7624 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
7625 * config/t-openbsd-thread: Remove commented out lines.
7627 * config/x-interix: Remove.
7629 * config/m68hc11/t-m68hc11-gas: Rename to...
7630 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
7632 * config/mcore/t-mcore: Remove T_CFLAGS.
7633 * config/mcore/t-mcore-pe: Likewise.
7635 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
7637 * configure.ac: Replace custom __GNU_SOURCE test with
7638 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
7639 * aclocal.m4: Regenerate.
7640 * configure: Regenerate.
7641 * config.in: Regenerate.
7643 2008-03-27 Richard Guenther <rguenther@suse.de>
7645 * fold-const.c (target.h): Include.
7646 (fold_comparison): Fold comparison of addresses of decls
7647 that bind locally or of constants. Consolidate address folding code.
7648 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
7649 results from fold_binary_to_constant.
7650 (compare_values_warnv): Likewise.
7652 2008-03-27 Andrew Pinski <pinskia@gmail.com>
7655 * fold-const.c (fold_truthop): Check for integeral types when folding
7656 a == 0 && b == 0 and a != 0 || b != 0 .
7658 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
7660 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
7662 2008-03-26 Andreas Schwab <schwab@suse.de>
7664 * doc/invoke.texi: Fix use of @item vs. @itemx.
7666 2008-03-26 Tom Tromey <tromey@redhat.com>
7668 * Makefile.in (build/gensupport.o, build/print-rtl.o,
7669 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
7670 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
7671 build/gencodes.o, build/genconditions.o, build/genconfig.o,
7672 build/genconstants.o, build/genemit.o, build/genextract.o,
7673 build/genflags.o, build/genmddeps.o, build/genopinit.o,
7674 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
7677 2008-03-26 Richard Guenther <rguenther@suse.de>
7680 2008-03-26 Richard Guenther <rguenther@suse.de>
7682 * fold-const.c (target.h): Include.
7683 (fold_comparison): Fold comparison of addresses of two decls
7684 that bind locally. Consolidate address folding code.
7686 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7688 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
7689 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
7690 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
7691 dconstsqrt2, dconstthird, dconste and/or dconst10.
7692 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
7693 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
7694 dconstsqrt2, dconste): Delete.
7695 (init_emit_once): Likewise. Simplify initializing dconstm1.
7697 * real.c (get_real_const): New.
7698 * real.h (dconst3, dconst10, dconstm2, dconstthird,
7699 dconstsqrt2, dconste): Delete.
7700 (real_value_const, get_real_const): New.
7702 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
7704 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
7706 * config/i386/i386.c (ix86_function_arg_boundary): Check
7707 BIGGEST_ALIGNMENT instead of 128.
7708 (setup_incoming_varargs_64): Likewise.
7710 2008-03-26 Tom Tromey <tromey@redhat.com>
7712 * Makefile.in (DEPFILES): Add missing '/'.
7714 2008-03-26 Richard Guenther <rguenther@suse.de>
7716 * fold-const.c (target.h): Include.
7717 (fold_comparison): Fold comparison of addresses of two decls
7718 that bind locally. Consolidate address folding code.
7720 2008-03-26 Nick Clifton <nickc@redhat.com>
7723 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
7724 not allow INT+INT as a legitimate addressing mode.
7726 2008-03-26 Richard Guenther <rguenther@suse.de>
7728 * tree-flow.h (widen_bitfield): Remove declaration.
7729 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
7730 (widen_bitfield): Remove function.
7731 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
7734 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
7737 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
7740 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
7742 PR rtl-optimization/35232
7743 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
7744 (forget_old_reloads_1, forget_marked_reloads): Don't clear
7745 reg_reloaded_call_part_clobbered here.
7746 (reload_regs_reach_end_p): New function.
7747 (reload_reg_rtx_for_input): New variable.
7748 (reload_reg_rtx_for_output): Likewise.
7749 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
7750 when reassigning a pseudo register. Load reloadreg from
7751 reload_reg_rtx_for_input, moving the mode and register
7753 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
7754 instead of the original when deciding whether an input reload
7755 would be a no-op or whether an output reload can be deleted.
7756 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
7757 when setting up new_spill_reg_store. Load it from
7758 reload_reg_rtx_for_output, moving the mode and register
7760 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
7761 instead of the original when deciding whether an output reload
7762 would be a no-op. Do the same when modifying insn notes.
7763 Use rtx_equal_p instead of == to compare the registers.
7764 (inherit_piecemeal_p): Take a mode and two register numbers
7766 (emit_reload_insns): Clear new_spill_reg_store for every hard
7767 register in the reload register. Remove spill registers
7768 from reg_reloaded_valid before considering whether to record
7769 inheritance information for them. Use reload_reg_rtx_for_output
7770 instead of reg_rtx when recording output reloads. Use
7771 reload_reg_rtx_for_input instead of reg_rtx when recording
7772 input reloads. Set or clear reg_reloaded_call_part_clobbered
7773 at the same time as setting reg_reloaded_valid.
7774 (delete_output_reload): Add a new_reload_reg parameter and use it
7775 instead of rld[j].reg_rtx.
7776 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
7779 2008-03-25 Tom Tromey <tromey@redhat.com>
7781 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
7782 (build/genattr.o): Likewise.
7783 (build/genattrtab.o): Likewise.
7784 (build/gencodes.o): Likewise.
7785 (build/genconfig.o): Likewise.
7786 (build/genconstants.o): Likewise.
7787 (build/genemit.o): Likewise.
7788 (build/genextract.o): Likewise.
7789 (build/genflags.o): Likewise.
7791 2008-03-25 Bob Wilson <bob.wilson@acm.org>
7793 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
7794 instead of size_int for integer types.
7795 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
7796 to match type of MINUS_EXPR.
7798 2008-03-25 Tom Tromey <tromey@redhat.com>
7800 * configure: Rebuilt.
7801 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
7804 2008-03-25 Tom Tromey <tromey@redhat.com>
7806 * config/x-solaris (host-solaris.o): Update.
7807 * config/x-linux (host-linux.o): Update.
7808 * config/x-hpux (host-hpux.o): Update.
7809 * config/x-darwin (host-darwin.o): Update.
7810 * config/v850/t-v850e (v850-c.o): Update.
7811 * config/v850/t-v850 (v850-c.o): Update.
7812 * config/t-vxworks (vxworks.o): Update.
7813 * config/t-sol2 (sol2-c.o, sol2.o): Update.
7814 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
7815 * config/spu/t-spu-elf (spu-c.o): Update.
7817 * config/sh/t-symbian (sh-c.o): Update.
7818 (symbian.o): Update.
7819 * config/sh/t-sh (sh-c.o): Update.
7820 * config/score/t-score-elf (score7.o, score3.o): Update.
7821 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
7822 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
7823 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
7824 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
7826 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
7827 * config/m32c/t-m32c (m32c-pragma.o): Update.
7828 * config/ia64/t-ia64 (ia64-c.o): Update.
7829 * config/i386/x-mingw32 (host-mingw32.o): Update.
7830 * config/i386/x-i386 (driver-i386.o): Update.
7831 * config/i386/x-darwin (host-i386-darwin.o): Update.
7832 * config/i386/x-cygwin (host-cygwin.o): Update.
7833 * config/i386/t-nwld (nwld.o): Update.
7834 * config/i386/t-netware (netware.o): Update.
7835 * config/i386/t-interix (winnt.o): Update.
7836 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
7837 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
7838 msformat-c.o): Update.
7839 * config/bfin/t-bfin-linux (generated_files): Add
7840 linux-sysroot-suffix.h.
7841 * config/arm/t-wince-pe (pe.o): Update.
7842 * config/arm/t-strongarm-pe (pe.o): Update.
7843 * config/arm/t-pe (pe.o): Update.
7844 * config/arm/t-arm (arm-c.o): Update.
7845 * doc/install.texi (Prerequisites): Require make 3.80.
7846 * Makefile.in: Remove .o targets.
7847 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
7848 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
7849 (simple_generated_h, simple_generated_c): Move earlier.
7850 (generated_files): New variable.
7851 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
7852 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
7853 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
7854 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
7855 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
7856 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
7857 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
7858 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
7859 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
7860 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
7861 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
7862 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
7864 (COMPILE.base, COMPILE): New variables.
7865 (%.o): New pattern rule.
7866 (ALL_HOST_OBJS): New variable.
7867 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
7868 (dummy-checksum.o, cc1-checksum.o): Remove.
7869 (DRIVER_SHLIB): New variable.
7870 (DRIVER_DEFINES): Use it.
7871 (gencondmd.c): Move out of build/.
7872 (s-conditions): Update.
7873 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
7874 (ALL_BUILD_OBJS): Likewise.
7875 (build/%.o): Use BUILDCOMPILE.
7876 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
7877 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
7878 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
7879 build/gencheck.o, build/gencodes.o, build/genconditions.o,
7880 build/genconfig.o, build/genconstants.o, build/genemit.o,
7881 build/genextract.o, build/genflags.o, build/genmddeps.o,
7882 build/genopinit.o, build/genoutput.o, build/genpeep.o,
7883 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
7884 build/gen-protos.o, build/scan.o, build/fix-header.o,
7885 build/scan-decls.o): Simplify.
7886 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
7887 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
7888 prefix.o, toplev.o): Reduce to variable setting.
7889 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
7890 ($(out_object_file), gcc-options.o): New targets.
7891 ($(ALL_HOST_OBJS)): New target. Include dependency files.
7892 * configure: Rebuilt.
7893 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
7894 * doc/sourcebuild.texi (Front End Directory): Document new variable.
7896 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
7898 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
7899 complain when we hit an error, return ERROR_MARK_NODE.
7901 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7903 * config/sh/constraints.md (Pso, Psz): New constraints.
7904 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
7905 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
7907 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7909 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
7910 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
7912 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7914 * config/sh/sh.md (prefetch): Add condition for SH2A target.
7915 (prefetch_sh2a): New.
7917 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
7918 Naveen.H.S <naveen.hs@kpitcummins.com>
7920 * config/sh/constraints.md (I28): New constraint.
7921 * config/sh/sh.c (broken_move): Add support for movi20s.
7922 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
7924 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
7925 Jayant Sonar <Jayant.sonar@kpitcummins.com>
7926 Naveen.H.S <naveen.hs@kpitcummins.com>
7928 * config/sh/sh.c (SH_ATTRIBUTES): Define.
7929 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
7930 (print_operand): Handle resbank in %@ operand code.
7931 (sh_encode_section_info): New.
7932 (push_regs): Add conditions for resbank.
7933 (sh_expand_epilogue): Likewise.
7934 (sh_insert_attributes): Likewise.
7935 (sh_attribute_table): Likewise.
7936 (sh_handle_resbank_handler_attribute): New.
7937 (sh2a_handle_function_vector_handler_attribute): New.
7938 (sh2a_is_function_vector_call): New.
7939 (sh2a_get_function_vector_number): New.
7940 (sh2a_function_vector_p): New.
7941 (sh_cfun_resbank_handler_p): New.
7942 * config/sh/sh.md (calli): Emit jsr/n if possible.
7943 (calli_tbr_rel): New.
7944 (calli_pcrel): Emit jsr/n if possible.
7945 (return_i): Emit rts/n if possible.
7946 (call_valuei_tbr_rel): New.
7947 (call_valuei_pcrel): Add condition for SH2A target.
7948 (call_value): Likewise.
7949 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
7950 (sh2a_get_function_vector_number): Likewise.
7951 (sh2a_is_function_vector_call): Likewise.
7952 * doc/extend.texi: Document TBR relative addressing of SH2A.
7953 (resbank): Add description for SH2A.
7955 2008-03-24 Richard Guenther <rguenther@suse.de>
7958 * gimplify.c (gimplify_modify_expr): For frontend type-correct
7959 pointer assignments change conversions according to middle-end rules.
7960 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
7961 * configure.ac: Include type checking in yes.
7962 * configure: Regenerate.
7964 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7966 * diagnostic.c (diagnostic_count_diagnostic): Delete.
7967 (diagnostic_report_diagnostic): Update. Handle ICEs here.
7969 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
7971 * gthr-vxworks.h (UNUSED): Define.
7973 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
7975 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
7977 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
7979 * doc/extend.texi (Function Attributes): Add missing comma in the
7980 example of the "alloc_size" attribute.
7982 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
7985 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
7987 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7990 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
7993 * stor-layout.c (update_alignment_for_field): Set minimum alignment
7994 of the underlying type of a MS bitfield layout to the natural
7995 alignment of the type.
7997 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
7999 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
8000 to their natural alignment to avoid store forwarding stalls.
8002 2008-03-22 Richard Guenther <rguenther@suse.de>
8004 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
8005 For PHI nodes verify the address is invariant.
8006 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
8007 (get_symbol_constant_value): Use is_gimple_min_invariant.
8008 (maybe_fold_stmt_indirect): Likewise.
8010 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
8012 PR rtl-optimization/33927
8013 * Makefile.in (dse.o): Depend on $(TM_P_H).
8014 * expr.h (extract_low_bits): Declare.
8015 * expmed.c (extract_low_bits): New function.
8016 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
8017 * dse.c: Include tm_p.h.
8018 (find_shift_sequence): Remove the read_reg argument and return the
8019 read value. Emit the instructions instead of returning them.
8020 Iterate on new_mode rather than calculating it each time.
8021 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
8022 source to NEW_MODE and extract_low_bits to convert the shifted
8024 (replace_read): Allow the load and store to have different mode
8025 classes. Use extract_low_bits when SHIFT == 0. Create the shift
8026 or extraction instructions before trying the replacement. Update
8027 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
8029 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
8031 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
8032 to their natural alignment to avoid store forwarding stalls.
8034 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
8037 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
8038 encouraging but not allowing gprs for input;
8039 change the input constraint to !f#r.
8040 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
8042 change the output constraint to !f#r.
8044 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
8047 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
8048 corresponding post-reload splitters.
8049 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
8050 when x87 FP math is selected.
8051 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
8052 New function prototype.
8053 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
8054 unreachable function to ease macroization of insn patterns.
8056 2008-03-21 Martin Jambor <mjambor@suse.cz>
8058 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
8059 reference dumps if ddr is NULL or dependence is unknown.
8061 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
8063 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
8064 unsigned extension into account.
8065 (ATOMIC_COMPARE_AND_SWAP): Likewise.
8066 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
8067 Do computations on a scratch register.
8069 2008-03-21 Richard Guenther <rguenther@suse.de>
8071 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8072 Use is_gimple_min_invariant instead of TREE_INVARIANT.
8073 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8074 * tree-ssa-dom.c (record_equality): Likewise.
8075 * tree-inline.c (copy_body_r): Likewise.
8076 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
8079 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
8081 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
8082 as 'delete_unused' argument.
8084 2008-03-20 Richard Guenther <rguenther@suse.de>
8086 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
8087 special casing of constant qualifiers.
8088 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
8089 care about them in general.
8090 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
8091 regardless of their type.
8092 (fold_stmt_r): Forcefully fold *& if we end up with that.
8094 2008-03-20 Paul Brook <paul@codesourcery.com>
8096 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
8097 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
8099 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
8101 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
8102 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
8104 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
8106 * common.opt (Wmudflap): New option.
8107 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
8108 (mx_register_decls): Likewise.
8109 (mudflap_finish_file): Likewise.
8110 * doc/invoke.texi: Document -Wno-mudflap.
8112 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
8114 * c-format.c (replace_format_name_to_system_name): New.
8116 (convert_format_name_to_system_name): New.
8117 (decode_format_attr): Add use of convert_format_name_to_system_name.
8118 (format_types_orig): Add gnu_ prefix to names.
8119 (check_format_info_main): Special treating of \0 escaped names for
8120 supporting multi-character format specifiers as I32, I64.
8121 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
8122 (gnu_target_overrides_format_attributes): New.
8123 * c-format.h: Add structure target_ovr_attr to hold
8124 system specific formatter names.
8125 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
8126 msformat-c.o file to c_target_objs and cxx_target_objs.
8127 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
8128 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
8129 (TARGET_N_FORMAT_TYPES): New.
8130 * config/i386/msformat-c.c: New.
8131 * config/i386/t-cygming: Add build rule for msformat-c.o.
8132 * doc/extend.texi: Add new format names gnu_* and ms_* and
8134 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
8136 2008-03-20 Ira Rosen <irar@il.ibm.com>
8138 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
8139 optimizations turned on under -O3.
8140 (ftree-vectorize): Add that the flag is turned on with -O3.
8142 2008-03-20 Ben Elliston <bje@au.ibm.com>
8144 * regmove.c (try_auto_increment): Fix spelling error in comment.
8145 * final.c (final_scan_insn): Likewise.
8147 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
8150 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
8151 allocator preferences for "y" and "r" class registers.
8152 ("*mov<mode>_internal"): Ditto.
8153 ("*movv2sf_internal_rex64"): Ditto.
8154 ("*movv2sf_internal"): Ditto.
8156 2008-03-19 Michael Matz <matz@suse.de>
8159 * calls.c (expand_call): Check overlap of arguments with call
8160 address for sibcalls.
8162 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
8165 * stor-layout.c (update_alignment_for_field): Set minimum alignment
8166 of the underlying type of a MS bitfield layout to the natural
8167 alignment of the type.
8169 2008-03-19 Jan Hubicka <jh@suse.cz>
8172 * toplev.c (decode_d_option): Handle all CPP flags.
8173 * tree-vrp.c: Update tree_pass descriptors.
8174 * regrename.c: Update tree_pass descriptors.
8175 * fwprop.c: Update tree_pass descriptors.
8176 * doc/invoke.texi: Remove documentation of dropped -d? flags.
8177 * tree-into-ssa.c: Update tree_pass descriptors.
8178 * tree-dump.c: Update tree_pass descriptors.
8179 * tree-complex.c: Update tree_pass descriptors.
8180 * tree-dump.h: Update tree_pass descriptors.
8181 * see.c: Update tree_pass descriptors.
8182 * cgraphbuild.c: Update tree_pass descriptors.
8183 * tracer.c: Update tree_pass descriptors.
8184 * tree-loop-distribution.c: Update tree_pass descriptors.
8185 * cgraph.c: Update tree_pass descriptors.
8186 * postreload-gcse.c: Update tree_pass descriptors.
8187 * postreload.c: Update tree_pass descriptors.
8188 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
8189 * tree-tailcall.c: Update tree_pass descriptors.
8190 * tree-pass.h (tree_opt_pass): Rename to ...
8191 (opt_pass) ... this one; add "type" field and remove letter field.
8192 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
8193 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
8194 all_lowering_passes): Update declaration.
8195 * ipa-cp.c: Update tree_pass descriptors.
8196 * final.c: Update tree_pass descriptors.
8197 * omp-low.c: Update tree_pass descriptors.
8198 * tree-ssa-dse.c: Update tree_pass descriptors.
8199 * ipa-reference.c: Update tree_pass descriptors.
8200 * tree-ssa-uncprop.c: Update tree_pass descriptors.
8201 * auto-inc-dec.c: Update tree_pass descriptors.
8202 * reorg.c: Update tree_pass descriptors.
8203 * cgraphunit.c: Update tree_pass descriptors.
8204 * tree-ssa-copyrename.c: Update tree_pass descriptors.
8205 * tree-ssa-ccp.c: Update tree_pass descriptors.
8206 * df-core.c: Update tree_pass descriptors.
8207 * mode-switching.c: Update tree_pass descriptors.
8208 * tree-nomudflap.c: Update tree_pass descriptors.
8209 * modulo-sched.c: Update tree_pass descriptors.
8210 * ipa-pure-const.c: Update tree_pass descriptors.
8211 * cse.c: Update tree_pass descriptors.
8212 * web.c: Update tree_pass descriptors.
8213 * tree-stdarg.c: Update tree_pass descriptors.
8214 * tree-ssa-math-opts.c: Update tree_pass descriptors.
8215 * tree-ssa-dom.c: Update tree_pass descriptors.
8216 * tree-nrv.c: Update tree_pass descriptors.
8217 * tree-ssa-alias.c: Update tree_pass descriptors.
8218 * loop-init.c: Update tree_pass descriptors.
8219 * gimple-low.c: Update tree_pass descriptors.
8220 * ipa-inline.c: Update tree_pass descriptors.
8221 * tree-ssa-sink.c: Update tree_pass descriptors.
8222 * global.c: Update tree_pass descriptors.
8223 * ifcvt.c: Update tree_pass descriptors.
8224 * jump.c: Update tree_pass descriptors.
8225 * predict.c: Update tree_pass descriptors.
8226 * tree-ssa-loop.c: Update tree_pass descriptors.
8227 * recog.c: Update tree_pass descriptors.
8228 * dse.c: Update tree_pass descriptors.
8229 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
8230 * tree-eh.c: Update tree_pass descriptors.
8231 * regmove.c: Update tree_pass descriptors.
8233 * function.c: Update tree_pass descriptors.
8234 * tree-vectorizer.c: Update tree_pass descriptors.
8235 * gcse.c: Update tree_pass descriptors.
8236 * ipa-type-escape.c: Update tree_pass descriptors.
8237 * tree-if-conv.c: Update tree_pass descriptors.
8238 * init-regs.c: Update tree_pass descriptors.
8239 * ipa.c: Update tree_pass descriptors.
8240 * tree-ssa-phiopt.c: Update tree_pass descriptors.
8241 * rtl-factoring.c: Update tree_pass descriptors.
8242 * lower-subreg.c: Update tree_pass descriptors.
8243 * bt-load.c: Update tree_pass descriptors.
8244 * tree-dfa.c: Update tree_pass descriptors.
8245 * except.c: Update tree_pass descriptors.
8246 * emit-rtl.c: Update tree_pass descriptors.
8247 * cfgexpand.c: Update tree_pass descriptors.
8248 * tree-cfgcleanup.c: Update tree_pass descriptors.
8249 * cfgcleanup.c: Update tree_pass descriptors.
8250 * tree-ssa-pre.c: Update tree_pass descriptors.
8251 * tree-sra.c: Update tree_pass descriptors.
8252 * tree-mudflap.c: Update tree_pass descriptors.
8253 * tree-ssa-copy.c: Update tree_pass descriptors.
8254 * cfglayout.c: Update tree_pass descriptors.
8255 * tree-ssa-forwprop.c: Update tree_pass descriptors.
8256 * tree-ssa-dce.c: Update tree_pass descriptors.
8257 * tree-ssa.c: Update tree_pass descriptors.
8258 * regclass.c: Update tree_pass descriptors.
8259 * integrate.c: Update tree_pass descriptors.
8260 * tree-optimize.c: Update tree_pass descriptors.
8261 * tree-ssa-phiprop.c: Update tree_pass descriptors.
8262 * tree-object-size.c: Update tree_pass descriptors.
8263 * combine.c: Update tree_pass descriptors.
8264 * tree-outof-ssa.c: Update tree_pass descriptors.
8265 * bb-reorder.c: Update tree_pass descriptors.
8266 * stack-ptr-mod.c: Update tree_pass descriptors.
8267 * var-tracking.c: Update tree_pass descriptors.
8268 * tree-profile.c: Update tree_pass descriptors.
8269 * tree-vect-generic.c: Update tree_pass descriptors.
8270 * reg-stack.c: Update tree_pass descriptors.
8271 * sched-rgn.c: Update tree_pass descriptors.
8272 * tree-ssa-structalias.c: Update tree_pass descriptors.
8273 * tree-cfg.c: Update tree_pass descriptors.
8274 * passes.c (current_pass): Update declaration.
8275 (finish_optimization_passes): Update.
8276 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
8277 (register_one_dump_file, register_dump_files_1, next_pass_1):
8279 (init_optimization_passes): Update handling of new types.
8280 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
8281 * ipa-struct-reorg.c: Update tree_pass descriptors.
8282 * tree-ssa-reassoc.c: Update tree_pass descriptors.
8283 * combine-stack-adj.c: Update tree_pass descriptors.
8284 * cfgrtl.c: Update tree_pass descriptors.
8285 * dce.c: Update tree_pass descriptors.
8286 * tree-ssanames.c: Update tree_pass descriptors.
8288 2008-03-19 Richard Guenther <rguenther@suse.de>
8291 * tree-ssa.c (walk_data): New structure.
8292 (warn_uninitialized_var): If not always_executed warn with "maybe"
8294 (execute_early_warn_uninitialized): Compute post-dominators.
8295 Initialize always_executed before processing each basic block.
8297 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8300 * config/i386/i386.c (x86_this_parameter): Calculate correct location
8301 of "this" pointer when "regparm = N" or "fastcall" is in effect.
8303 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8305 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
8307 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
8309 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
8311 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
8312 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
8313 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
8314 target after ignore has been set, and move there also the commputation
8315 of subtarget and original_target.
8316 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
8317 (LANG_HOOKS_INITIALIZER): Remove it.
8318 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
8320 2008-03-18 Richard Guenther <rguenther@suse.de>
8322 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
8323 found an expression with constants, note that in the VN for the lhs.
8324 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
8325 fold them to constants if possible. Run cleanup_cfg if done so.
8326 (execute_pre): Return todo.
8328 (execute_fre): Likewise.
8329 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
8331 (get_prop_source_stmt): Look through pointer conversions.
8333 2008-03-18 Jan Hubicka <jh@suse.cz>
8335 * tree-pretty-print.c: Include predict.h.
8336 (dump_generic_node): Dump predictor.
8337 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
8338 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
8339 * gimple-low.c (lower_stmt): Likewise.
8340 * expr.c (expand_expr_real): Likewise.
8341 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
8343 (build_predict_expr, build_predict_expr): New.
8344 * predict.h (predictor_name, build_predict_expr): Update.
8345 * c-typeck.c (c_finish_bc_stmt): Add prediction.
8346 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
8347 * predict.def (PRED_CONTINUE): Update hitrate.
8348 * tree.def (PREDICT_EXPR): Define.
8349 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
8350 do not handle BIND_EXPR.
8351 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
8352 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
8353 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
8356 2008-03-18 Michael Matz <matz@suse.de>
8358 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
8360 2008-03-18 Richard Guenther <rguenther@suse.de>
8362 * tree-gimple.h (is_gimple_invariant_address): Declare.
8363 (is_gimple_constant): Likewise.
8364 * tree-gimple.c (is_gimple_constant): New function.
8365 (is_gimple_invariant_address): Likewise.
8366 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
8367 and is_gimple_invariant_address.
8368 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
8370 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
8371 an addressable base.
8373 2008-03-18 Jakub Jelinek <jakub@redhat.com>
8376 * gimplify.c (gimplify_expr): Gimplify second operand of
8379 2008-03-17 Richard Guenther <rguenther@suse.de>
8381 PR tree-optimization/19637
8382 * fold-const.c (fold_unary): Remove restrictions of removing
8383 intermediate pointer-conversions (P2)(P1)P0.
8384 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
8385 conversion to void pointer.
8386 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
8388 2008-03-16 James E. Wilson <wilson@tuliptree.org>
8391 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
8392 emulated thread local variables.
8394 2008-03-16 Richard Guenther <rguenther@suse.de>
8397 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8398 expand TREE_INVARIANT operations that are not gimple invariant.
8400 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
8402 * doc/extend.texi (Alignment): Say that the ABI controls
8403 the __alignof__ for non-strict-alignment targets rather
8404 than being a recommendation.
8406 2008-03-15 Paul Brook <paul@codesourcery.com>
8408 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
8410 (arm_output_fn_unwind): Mark functions that can not be unwound.
8412 2008-03-15 Paul Brook <paul@codesourcery.com>
8414 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
8415 extension instructions.
8417 2008-03-15 Richard Guenther <rguenther@suse.de>
8419 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
8420 and fold constant aggregate refs.
8421 (fold_const_aggregate_ref): Handle string constants
8422 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
8423 (evaluate_stmt): Simplify now that ccp_fold folds constant
8426 2008-03-15 Paul Brook <paul@codesourcery.com>
8428 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
8429 (extzv): Use gen_extzv_t2.
8430 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
8432 2008-03-15 Richard Guenther <rguenther@suse.de>
8434 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
8435 (fold_const_aggregate_ref): Likewise.
8436 (get_value): Return NULL if we don't have any values.
8437 (ccp_finalize): Set const_val to NULL after freeing it.
8438 * tree-flow.h (get_symbol_constant_value): Declare.
8439 (fold_const_aggregate_ref): Likewise.
8440 * tree-ssa-sccvn.c (try_to_simplify): Use them.
8442 2008-03-15 Richard Guenther <rguenther@suse.de>
8445 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
8446 to not produce negative array indices if not allowed. Add
8447 parameter to indicate that.
8448 (maybe_fold_offset_to_component_ref): Allow negative array
8449 indices only for the first member of a structure.
8450 (maybe_fold_offset_to_reference): Allow negative array indices.
8451 (maybe_fold_stmt_addition): Likewise.
8453 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
8454 Anatoly Sokolov <aesok@post.ru>
8456 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
8457 (avr_arch): Add ARCH_AVR6.
8458 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
8459 (initial_elimination_offset): Initialize and use 'avr_pc_size'
8460 instead of fixed value 2.
8461 (print_operand_address): Use gs() asm specifier instead of pm().
8462 (avr_assemble_integer): (Ditto.).
8463 (avr_output_addr_vec_elt): (Ditto.).
8464 (print_operand): Handle "!" code.
8465 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
8466 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
8467 (AVR_HAVE_EIJMP_EICALL): Define.
8468 (AVR_3_BYTE_PC): Redefine.
8469 (AVR_2_BYTE_PC): (Ditto.).
8470 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
8471 (LINK_SPEC): Add atmega2560 and atmega2561.
8472 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
8474 * config/avr/avr.md (call_insn): Use eicall instead of icall
8475 for 3 byte PC devices.
8476 (call_value_insn): (Ditto.).
8477 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
8478 (indirect_jump): Use only for for 2 byte PC devices.
8479 (*tablejump): (Ditto.).
8480 (*indirect_jump_avr6): Add insn.
8481 (*tablejump_rjmp): Don't use for 3 byte PC devices.
8482 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
8483 instead of ijmp for 3 byte PC devices.
8484 (__tablejump2__): (Ditto.).
8485 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
8486 (MULITLIB_DIRNAMES): (Ditto.).
8487 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
8489 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
8491 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
8492 "sse2_umulsidi3". Use V1DI mode for operand 0.
8493 ("mmx_psadbw"): Use V1DI mode for operand 0.
8494 * config/i386/i386-modes.def (V1SI): New vector mode.
8495 * config/i386/i386.c (struct builtin_description)
8496 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
8497 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
8498 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
8499 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
8500 v1di_ftype_v8qi_v8qi type.
8501 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
8503 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
8504 __builtin_ia32_pmuludq]: Fix the mode of return value.
8506 2008-03-15 Richard Guenther <rguenther@suse.de>
8509 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
8512 2008-03-14 Bob Wilson <bob.wilson@acm.org>
8514 * doc/invoke.texi (Option Summary, Xtensa Options): Document
8515 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
8516 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
8517 unless TARGET_SERIALIZE_VOLATILE is enabled.
8518 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
8519 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
8520 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
8522 2008-03-14 Richard Guenther <rguenther@suse.de>
8524 PR tree-optimization/34172
8525 * tree-flow.h (refs_may_alias_p): Declare.
8526 (get_single_def_stmt): Likewise.
8527 (get_single_def_stmt_from_phi): Likewise.
8528 (get_single_def_stmt_with_phi): Likewise.
8529 * tree-dfa.c (refs_may_alias_p): New function.
8530 (get_single_def_stmt): Likewise.
8531 (get_single_def_stmt_from_phi): Likewise.
8532 (get_single_def_stmt_with_phi): Likewise.
8533 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
8534 (vn_reference_lookup_1): New helper function.
8535 (vn_reference_lookup): Walk the virtual use-def chain to
8536 continue searching for a match if the def does not alias the
8537 reference we are looking for.
8539 2008-03-14 David Edelsohn <edelsohn@gnu.org>
8541 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
8542 archive and Perzl. Update The Written Word listing.
8544 2008-03-14 Richard Guenther <rguenther@suse.de>
8546 PR tree-optimization/34043
8547 PR tree-optimization/33989
8548 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
8550 (bitmap_find_leader): Use extra argument to verify dominance
8551 relationship inside a basic-block.
8552 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
8553 (find_leader_in_sets): Adjust.
8554 (create_component_ref_by_pieces): Take extra argument for
8555 dominance check, handle lookup failures.
8556 (find_or_generate_expression): Likewise.
8557 (create_expression_by_pieces): Likewise.
8558 (insert_into_preds_of_block): Adjust.
8559 (create_value_expr_from): If asked for, verify all operands
8560 are in the blocks AVAIL_OUT set.
8561 (make_values_for_stmt): Check for SSA_NAMEs that are life
8562 over an abnormal edge.
8563 (compute_avail): Remove such check.
8564 (do_SCCVN_insertion): New function.
8565 (eliminate): If we do not find a leader suitable for replacement
8566 insert a replacement expression from SCCVN if available.
8567 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
8568 (struct vn_ssa_aux): Add needs_insertion flag.
8569 * tree-ssa-sccvn.c (may_insert): New global flag.
8570 (copy_reference_ops_from_ref): Value-number union member access
8571 based on its size, not type and member if insertion is allowed.
8572 (visit_reference_op_load): For a weak match from union type
8573 punning lookup a view-converted value and insert a SSA_NAME
8574 for that value if that is not found.
8575 (visit_use): Make dumps shorter. Do not disallow value numbering
8576 SSA_NAMEs that are life over an abnormal edge to constants.
8577 (free_scc_vn): Release inserted SSA_NAMEs.
8578 (run_scc_vn): New flag to specify whether insertion is allowed.
8579 Process SSA_NAMEs in forward order.
8580 * tree-ssa-loop-im.c (for_each_index): Handle invariant
8581 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
8582 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
8583 pointer type to/from integral types that do not change the
8584 precision to regular conversions.
8586 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
8588 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8589 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8590 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
8591 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
8592 input arguments and the mode of return value. Built-in functions
8593 that operate on whole 64-bit MMX register now use V1DI mode.
8595 2008-03-13 Alon Dayan <alond@il.ibm.com>
8596 Olga Golovanevsky <olga@il.ibm.com>
8598 PR tree-optimization/35041
8599 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
8600 to locate the right position in a statement.
8602 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
8606 * config/i386/xmmintrin.h: Change all static inline functions to
8607 extern inline and add __gnu_inline__ attribute.
8608 * config/i386/bmintrin.h: Ditto.
8609 * config/i386/smmintrin.h: Ditto.
8610 * config/i386/tmmintrin.h: Ditto.
8611 * config/i386/mmintrin-common.h: Ditto.
8612 * config/i386/ammintrin.h: Ditto.
8613 * config/i386/emmintrin.h: Ditto.
8614 * config/i386/pmmintrin.h: Ditto.
8615 * config/i386/mmintrin.h: Ditto.
8616 * config/i386/mm3dnow.h: Ditto.
8618 2008-03-13 Jakub Jelinek <jakub@redhat.com>
8621 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
8622 (lower_omp_2): New function.
8623 (lower_omp_1, lower_omp): Rewritten.
8625 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
8628 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
8629 with the phrase "Microsoft Windows compilers".
8630 (Push/Pop Macro Pragmas): New subsection. Document
8631 #pragma push_macro and pragma pop_macro.
8633 2008-03-12 Paul Brook <paul@codesourcery.com>
8635 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
8637 2008-03-12 Paul Brook <paul@codesourcery.com>
8639 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
8640 (thumb2_alusi3_short): Exclude PLUS and MINUS.
8641 (thumb2_addsi_shortim): Rename ...
8642 (thumb2_addsi_short): ... to this. Allow register operands.
8643 (thumb2_subsi_short): New pattern.
8644 (thumb2_one_cmplsi2_short,
8645 thumb2_negsi2_short): New patterns and peepholes.
8647 2008-03-12 Paul Brook <paul@codesourcery.com>
8649 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
8651 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
8653 * config/i386/i386.md (int_cond): New code iterator.
8655 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
8656 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
8657 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
8658 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
8659 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
8660 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
8661 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
8662 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
8664 2008-03-12 Paul Brook <paul@codesourcery.com>
8666 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
8667 instead of {arm,thumb}_compute_save_reg_mask.
8668 (output_return_instruction): Ditto.
8669 (thumb_unexpanded_epilogue): Ditto.
8670 (thumb1_expand_prologue): Ditto.
8671 (thumb1_output_function_prologue): Ditto.
8672 (arm_set_return_address): Ditto.
8673 (thumb_set_return_address): Ditto.
8674 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
8675 regs to achieve stack alignment.
8676 (thumb1_compute_save_reg_mask): Fix compiler warning.
8677 (arm_output_epilogue): Use offsets->saved_regs_mask.
8678 Adjust stack pointer by poping call clobered registers.
8679 (arm_expand_prologue): Use offsets->saved_regs_mask.
8680 Adjust stack pointer by pushing extra registers.
8681 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
8683 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
8686 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
8687 conversion to the operands of a multiplication.
8689 2008-03-12 Richard Guenther <rguenther@suse.de>
8691 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
8692 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
8693 * timevar.def (TV_TREE_PHIPROP): Add.
8694 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
8695 pass description. Use TV_TREE_PHIPROP.
8696 * tree-ssa-forwprop.c: Remove phiprop code.
8698 2008-03-12 Jakub Jelinek <jakub@redhat.com>
8701 * omp-low.c (maybe_lookup_decl): Constify first argument.
8702 (use_pointer_for_field): Change last argument from bool to
8703 omp_context *. Disallow shared copy-in/out in nested
8704 parallel if decl is shared in outer parallel too.
8705 (build_outer_var_ref, scan_sharing_clauses,
8706 lower_rec_input_clauses, lower_copyprivate_clauses,
8707 lower_send_clauses, lower_send_shared_vars): Adjust callers.
8709 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
8710 Ira Rosen <irar@il.ibm.com>
8712 * tree-vectorizer.c (free_stmt_vec_info): New function.
8713 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
8714 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
8715 * tree-vectorizer.h (free_stmt_vec_info): Declare.
8716 * tree-vect-transform.c (vectorizable_conversion): Free
8717 vec_oprnds0 if it was allocated.
8718 (vect_permute_store_chain): Remove unused VECs.
8719 (vectorizable_store): Free VECs that are allocated in the..
8721 (vect_transform_strided_load, vectorizable_load): Likewise.
8722 (vect_remove_stores): Simplify the code.
8723 (vect_transform_loop): Move code to vect_remove_stores().
8724 Call vect_remove_stores() and free_stmt_vec_info().
8726 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8728 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
8729 TARGET_HPUX. Revise comment.
8730 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
8731 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
8732 Use sr4 variant of `be' instruction when not generating PIC code.
8733 (attr_length_call): Adjust for above change.
8735 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
8737 * ipa-reference.c (static_execute): Remove module_statics_const and
8738 associated setting code.
8740 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
8743 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
8744 predicate for operand 1.
8745 (paritysi2_cmp): Use register_operand predicate for operand 2.
8746 Use earlyclobber modifier for operand 1. Remove support for
8748 (paritydi2_cmp): Use register_operand predicate for operand 3.
8749 Use earlyclobber modifier for operand 1. Remove support for
8752 2008-03-11 Paul Brook <paul@codesourcery.com>
8753 Vladimir Prus <vladimir@codesourcery.com>
8755 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
8756 (arm_compute_save_reg0_reg12_mask): Always
8757 check if register 11 must be saved. Always safe hard frame pointer
8758 when frame_pointer_needeed.
8759 (arm_compute_save_reg_mask): Save IP and PC
8760 only with apcs frames.
8761 (arm_output_epilogue): Adjust Thumb2 codepath to
8762 be also invoked and work for ARM non-apcs frames.
8763 (arm_expand_prologue): Don't bother saving IP
8764 for non-apcs frame, since it's not clobbered by
8765 prologue code. Implement non-apcs frame
8768 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
8770 PR rtl-optimization/35281
8771 * expr.c (convert_move): Use a new pseudo for the intermediate
8772 from_mode->word_mode result.
8774 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
8776 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
8777 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
8778 * toplev.c (compile_file): Don't call it.
8780 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
8783 * expr.c (store_expr): Call emit_block_move if the mode
8784 of "temp" RTX is BLKmode.
8786 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
8787 Richard Guenther <rguenther@suse.de>
8789 PR tree-optimization/31358
8790 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
8791 the step with a NULL_TREE.
8792 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
8793 to sizetype if type is a pointer type.
8794 (add_candidate_1): Don't convert the base and step to
8795 the generic type if the orginal type is a pointer type.
8796 (add_iv_value_candidates): Use sizetype for the step
8797 if type is a pointer type.
8798 (cand_value_at): Likewise.
8799 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
8801 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
8802 Don't convert the tem affine to the type.
8803 (add_elt_to_tree): Use sizetype for the step if a pointer.
8804 Use POINTER_PLUS_EXPR for pointers.
8805 (aff_combination_to_tree): Use sizetype for the step if a
8808 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
8810 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
8811 Remove commutativity hint.
8813 2008-03-10 Jakub Jelinek <jakub@redhat.com>
8817 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
8818 errorneous type. Check that v is a VAR_DECL.
8821 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
8823 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
8825 PR tree-optimization/35494
8826 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
8827 may be overriden at link and run time.
8829 2008-03-10 Richard Guenther <rguenther@suse.de>
8831 PR tree-optimization/34677
8832 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
8833 (poolify_tree): Likewise.
8834 (modify_expr_template): Likewise.
8835 (poolify_modify_stmt): Likewise.
8836 (insert_fake_stores): Handle all component-ref style stores
8837 in addition to INDIRECT_REF. Also handle complex types.
8838 Do not poolify the inserted load.
8839 (realify_fake_stores): Do not rebuild the tree but only
8840 make it a SSA_NAME copy.
8841 (init_pre): Remove initialzation of modify_expr_template.
8842 Do not allocate modify_expr_node_pool.
8843 (fini_pre): Do not free modify_expr_node_pool.
8845 2008-03-10 Paul Brook <paul@codesourcery.com>
8847 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
8850 2008-03-10 Paul Brook <paul@codesourcery.com>
8851 Mark Shinwell <shinwell@codesourcery.com>
8853 * config/arm/cortex-r4.md: New.
8854 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
8856 * config/arm/arm.md: Include cortex-r4.md.
8857 (insn): Add smmls, sdiv and udiv values.
8858 (generic_sched): Don't use generic scheduling for Cortex-R4.
8859 (arm_issue_rate): New function.
8860 (TARGET_SCHED_ISSUE_RATE): Define.
8862 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
8864 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
8866 2008-03-10 Richard Guenther <rguenther@suse.de>
8868 * tree-ssa-pre.c (get_sccvn_value): Simplify.
8869 (compute_avail): Do not add stmt uses to AVAIL_OUT.
8871 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
8873 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
8874 Set default to true.
8876 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8878 * c.opt (Wsynth): Deprecate.
8879 * doc/invoke.texi (Option Summary, Warning Options): Document
8880 -Wno-format-contains-nul.
8882 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
8885 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
8886 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
8888 2008-03-09 Ira Rosen <irar@il.ibm.com>
8890 * config/rs6000/rs6000.c (builtin_description): Rename vector
8891 left shift operations.
8892 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
8893 (altivec_vsl<VI_char>): Rename to ...
8894 (ashl<mode>3): ... new name.
8895 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
8897 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
8899 2008-03-08 Richard Guenther <rguenther@suse.de>
8901 * coverage.h (tree_coverage_counter_addr): Declare.
8902 * coverage.c (tree_coverage_counter_addr): New function.
8903 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
8905 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
8906 (tree_gen_one_value_profiler): Likewise.
8907 (tree_gen_ic_profiler): Likewise.
8908 (tree_gen_average_profiler): Likewise.
8909 (tree_gen_ior_profiler): Likewise.
8911 2008-03-08 Richard Guenther <rguenther@suse.de>
8913 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
8914 (vn_binary_op_insert): Likewise.
8915 (vn_unary_op_lookup): Likewise.
8916 (vn_unary_op_insert): Likewise.
8917 (vn_nary_op_lookup): Declare.
8918 (vn_nary_op_insert): Likewise.
8919 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
8920 and binary hashes, use a single obstack for unary_op_pool
8922 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
8923 a single struct vn_nary_op_s. Store tree code length and
8924 a variable number of operands.
8925 (struct vn_reference_op_struct): Remove unused op2.
8926 (vn_reference_op_eq): Do not compare op2.
8927 (vn_reference_op_compute_hash): Do not compute hash of op2.
8928 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
8929 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
8930 with vn_nary_op_compute_hash.
8931 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
8932 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
8934 (vn_unary_op_insert, vn_binary_op_insert): Replace with
8936 (visit_unary_op): Call nary functions.
8937 (visit_binary_op): Likewise.
8938 (process_scc): Adjust for struct vn_tables_s changes.
8939 (allocate_vn_table): Likewise.
8940 (free_vn_table): Likewise.
8941 * tree-vn.c (vn_add): Call nary functions.
8942 (vn_lookup): Likewise.
8944 2008-03-08 Jakub Jelinek <jakub@redhat.com>
8947 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
8948 wdst back after sync_compare_and_swapqhi_internal.
8950 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
8953 * config/i386/i386-modes.def (V1DI): New vector mode.
8954 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
8955 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
8956 (MMXMODE248): Ditto.
8957 (MMXMODE): Add V1DI mode.
8958 (mmxvecsize): Change DI mode to V1DI mode.
8959 ("mov<mode>): Use MMXMODEI8 mode iterator.
8960 ("*mov<mode>_internal_rex64"): Ditto.
8961 ("*mov<mode>_internal"): Ditto.
8962 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
8963 ("mmx_sub<mode>3"): Ditto.
8964 ("mmx_adddi3"): Remove insn pattern.
8965 ("mmx_subdi3"): Ditto.
8966 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
8967 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
8968 ("mmx_ashl<mode>3"): Ditto.
8969 ("mmx_lshrdi3"): Remove insn pattern.
8970 ("mmx_ashldi3"): Ditto.
8971 * config/i386/i386.c (classify_argument): Handle V1DImode.
8972 (function_arg_advance_32): Ditto.
8973 (function_arg_32): Ditto.
8974 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
8975 mmx_addv1di3 insn pattern.
8976 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
8977 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
8978 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
8979 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
8980 Remove definitions of built-in functions.
8981 (V1DI_type_node): New node.
8982 (v1di_ftype_v1di_int): Ditto.
8983 (v1di_ftype_v1di_v1di): Ditto.
8984 (v2si_ftype_v2si_si): Ditto.
8985 (v4hi_ftype_v4hi_di): Remove node.
8986 (v2si_ftype_v2si_di): Ditto.
8987 (ix86_init_mmx_sse_builtins): Handle V1DImode.
8988 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
8989 Redefine builtins using def_builtin_const with *_ftype_*_int node.
8990 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
8991 Add new builtins using def_builtin_const.
8992 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
8993 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
8994 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
8995 * config/i386/mmintrin.h (__v1di): New typedef.
8996 (_mm_add_si64): Cast arguments to __v1di type.
8997 (_mm_sub_si64): Ditto.
8998 (_mm_sll_pi16): Cast __count to __v4hi type.
8999 (_mm_sll_pi32): Cast __count to __v2si type.
9000 (_mm_sll_si64): Cast arguments to __v1di type.
9001 (_mm_srl_pi16): Cast __count to __v4hi type.
9002 (_mm_srl_pi32): Cast __count to __v2si type.
9003 (_mm_srl_si64): Cast arguments to __v1di type.
9004 (_mm_sra_pi16): Cast __count to __v4hi type.
9005 (_mm_sra_pi32): Cast __count to __v2si type.
9006 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
9007 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
9008 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
9009 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
9010 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
9011 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
9012 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
9013 (_mm_srai_pi32): Use __builtin_ia32_psradi.
9014 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
9015 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
9016 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
9017 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
9019 2008-03-07 Joseph Myers <joseph@codesourcery.com>
9021 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
9023 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
9026 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
9027 reg+const addressing for Altivec modes. Don't generate reg+reg
9028 addressing for TFmode or TDmode quantities.
9030 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
9032 * c-common.c (vector_types_convertible_p): Call langhook
9033 instead of comptypes.
9035 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
9038 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
9039 integral and scalar float variables which have a
9042 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
9044 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
9045 dwarf_register_span hook when emitting unwind information for
9046 register-to-memory saves.
9047 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
9048 (rs6000_frame_related): Remove call to spe_synthesize_frame.
9050 2008-03-06 Jakub Jelinek <jakub@redhat.com>
9052 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
9053 for the same VAR_DECL.
9055 2008-03-06 Tom Tromey <tromey@redhat.com>
9058 * doc/standards.texi (Standards): Don't mention treelang.
9059 * doc/invoke.texi (Overall Options): Don't mention treelang.
9060 * doc/install.texi (Prerequisites): Don't mention bison or
9062 (Configuration): Don't mention treelang.
9063 (Building): Likewise.
9064 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
9066 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
9068 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
9069 word-extractions out of a multi-word object.
9071 2008-03-06 Richard Guenther <rguenther@suse.de>
9073 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
9074 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
9075 result type and precision.
9076 * expr.c (get_inner_reference): Set unsignedp based on the result
9077 type of BIT_FIELD_REF.
9078 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
9079 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
9080 (try_instantiate_multiple_fields): Likewise. Use the correct type
9082 (sra_build_assignment): Likewise.
9083 (sra_build_elt_assignment): Likewise.
9084 (sra_explode_bitfield_assignment): Likewise.
9085 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
9086 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
9087 set BIT_FIELD_REF_UNSIGNED.
9088 (vectorizable_load): Likewise.
9090 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
9092 * cse.c (cse_extended_basic_block): Invalidate artificial defs
9095 2008-03-06 Richard Guenther <rguenther@suse.de>
9097 * alias.c (struct alias_set_entry): Move has_zero_child field
9098 to pack with alias_set.
9100 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
9102 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
9105 2008-03-05 Ian Lance Taylor <iant@google.com>
9107 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
9109 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
9111 * fwprop.c (update_df): Support width and offset parameters of
9113 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
9114 global_conflicts): Change DF_REF_EXTRACT to either
9115 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
9116 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
9117 * df-scan.c (df_ref_record, df_defs_record,
9118 df_ref_create_structure, df_def_record_1, df_uses_record,
9119 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
9120 df_bb_refs_collect, df_entry_block_defs_collect,
9121 df_exit_block_uses_collect): Support new width and offset fields.
9122 (ref_extract_pool): New storage pool.
9123 (df_free_ref): New function.
9124 (df_reg_chain_unlink, df_free_collection_rec,
9125 df_sort_and_compress_refs): Call df_free_ref.
9126 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
9128 (df_ref_create_structure): Allocate df_ref_extract if offset and
9129 width fields are used.
9130 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
9131 (df_uses_record): Get offset and width from ZERO_EXTRACT
9133 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
9134 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
9135 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
9136 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
9137 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
9138 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
9139 (df_ref_extract): New structure.
9140 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
9141 (df_ref_create): Add width and offset parameters.
9143 2008-03-05 Richard Guenther <rguenther@suse.de>
9145 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9146 Use ranges_overlap_p.
9147 (offset_overlaps_with_access): Rename
9148 to ranges_overlap_p and move ...
9149 * tree-flow-inline.h (ranges_overlap_p): ... here.
9151 * tree.h (get_inner_reference, handled_component_p): Update
9154 * tree.h (record_component_aliases, get_alias_set,
9155 alias_sets_conflict_p, alias_sets_must_conflict_p,
9156 objects_must_conflict_p): Move declarations ...
9157 * alias.h (record_component_aliases, get_alias_set,
9158 alias_sets_conflict_p, alias_sets_must_conflict_p,
9159 objects_must_conflict_p): ... here.
9160 Include coretypes.h.
9161 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
9163 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
9165 * cfg.c: Include tree-flow.h.
9166 (remove_edge_raw): Call redirect_edge_var_map_clear.
9167 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
9168 * tree-flow-inline.h (redirect_edge_var_map_def): New.
9169 (redirect_edge_var_map_result): New.
9170 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
9171 PENDING_STMT use with redirect_edge_var_map_*.
9172 * tree-ssa.c (edge_var_maps): New definition.
9173 (redirect_edge_var_map_add): New.
9174 (redirect_edge_var_map_clear): New.
9175 (redirect_edge_var_map_dup): New.
9176 (redirect_edge_var_map_vector): New.
9177 (redirect_edge_var_map_destroy): New.
9178 (ssa_redirect_edge): Replace PENDING_STMT use with
9179 redirect_edge_var_map_*.
9180 (flush_pending_stmts): Same.
9181 (delete_tree_ssa): Destroy edge var map.
9182 * tree-flow.h (struct _edge_var_map): New.
9183 Define edge_var_map vector type.
9184 Declare redirect_edge_var_map_* prototypes.
9185 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
9186 * tree-cfg.c (reinstall_phi_args): Replace
9187 PENDING_STMT use with redirect_edge_var_map_*.
9189 2008-03-05 Richard Guenther <rguenther@suse.de>
9191 PR tree-optimization/35472
9192 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
9193 whose single use_stmt has a overlapping set of loaded and
9194 stored symbols as that use_stmt might be a noop assignment then.
9196 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
9198 * gthr-rtems.h: Implement __gthread_mutex_destroy.
9200 2008-03-05 Richard Guenther <rguenther@suse.de>
9203 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
9204 should be constants.
9205 * tree-cfg.c (verify_expr): Verify it.
9206 * fold-const.c (fold_truthop): Remove code generating
9207 BIT_FIELD_REFs of structure bases.
9208 (fold_binary): Likewise.
9209 (fold_ternary): Position and size of BIT_FIELD_REFs are
9210 always host integers.
9211 (make_bit_field_ref): Remove.
9212 (optimize_bit_field_compare): Remove.
9213 (all_ones_mask_p): Remove.
9215 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
9218 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
9219 (split_block_and_df_analyze): New. Split basic block and rebuild
9221 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
9223 (split_pattern_seq): Likewise.
9224 (erase_matching_seqs): Likewise.
9225 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
9227 2008-03-04 Geoff Keating <geoffk@apple.com>
9229 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
9230 declaration and code.
9231 (tree_invalid_nonnegative_warnv_p): Likewise.
9233 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
9235 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
9236 examples. Truncate option-names then causing overfull hbox.
9238 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9241 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
9243 * configure: Rebuilt.
9245 2008-03-04 Rafael Espindola <espindola@google.com>
9247 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
9248 (tree_unary_nonnegative_warnv_p): New.
9249 (tree_binary_nonnegative_warnv_p): New.
9250 (tree_single_nonnegative_warnv_p): New.
9251 (tree_invalid_nonnegative_warnv_p): New.
9252 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
9254 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9257 * opts.c (handle_option): Postpone 'unknown option' errors only for
9260 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
9263 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
9266 2008-03-04 Rafael Espindola <espindola@google.com>
9268 * fold-const.c (tree_unary_nonzero_warnv_p): New.
9269 (tree_binary_nonzero_warnv_p): New.
9270 (tree_single_nonzero_warnv_p): New.
9271 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
9273 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
9276 * fold-const.c (fold_cond_expr_with_comparison): Prevent
9277 transformations for modes that have signed zeros.
9278 * ifcvt.c (noce_try_abs): Ditto.
9280 2008-03-04 Joseph Myers <joseph@codesourcery.com>
9282 * config/i386/i386.c (override_options): Force
9283 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
9285 2008-03-04 Jan Hubicka <jh@suse.cz>
9288 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
9291 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
9293 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
9294 label to probe the stack.
9296 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
9298 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
9299 (__gthr_win32_mutex_destroy): Declare.
9300 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
9301 __gthr_win32_mutex_destroy.
9302 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
9304 2008-03-03 Jan Hubicka <jh@suse.cz>
9307 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
9308 aggressive on inlining cold calls.
9310 2008-03-03 Richard Guenther <rguenther@suse.de>
9312 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
9313 struct copies into the expression table.
9314 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
9315 (try_to_simplify): Likewise.
9316 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
9317 integral and pointer arguments which do not change the
9318 precision to NOP_EXPRs.
9319 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
9320 VIEW_CONVERT_EXPR case.
9322 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
9324 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
9325 defined in a loop at depth 0 is invariant.
9326 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
9327 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
9328 be called at loop depth 0.
9330 2008-03-02 Jakub Jelinek <jakub@redhat.com>
9333 * gcc.c (process_command): Update copyright notice dates.
9334 * gcov.c (print_version): Likewise.
9335 * gcov-dump.c (print_version): Likewise.
9336 * mips-tfile.c (main): Likewise.
9337 * mips-tdump.c (main): Likewise.
9339 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9342 * c-common.c (flag_permissive): Delete.
9343 (constant_expression_warnings): Check flags first.
9344 (constant_expression_error): New.
9345 * c-common.h (flag_permissive): Delete.
9346 (constant_expression_error): Declare.
9347 * flags.h (flag_permissive): Declare. Update description.
9348 * diagnostic.c (pedwarn): Update.
9350 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
9351 (permissive_error_kind): New.
9352 * toplev.c (flag_permissive): Define. Update description.
9353 * toplev.h (permissive_error_kind): Declare.
9354 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
9355 (pedwarn_c90): Use pedantic_warning_kind.
9356 * c-opts.c (c_common_post_options): flag_permissive does not affect
9357 flag_pedantic_errors.
9359 2008-03-02 Joseph Myers <joseph@codesourcery.com>
9361 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
9362 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
9363 __absvsi2, __absvDI2): Use unsigned arithmetic.
9365 2008-03-02 Andi Kleen <ak@suse.de>
9366 Richard Guenther <rguenther@suse.de>
9368 * struct-equiv.c: Remove file.
9369 * cfg_cleanup.c (condjump_equiv_p): Remove.
9370 * Makefile.in (OBJS-common): Remove struct-equiv.o.
9371 (struct-equiv.o): Remove rule.
9372 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
9373 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
9374 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
9376 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
9378 * ifcvt.c (noce_process_if_block): Try to handle only the then
9379 block if the else block exists but isn't suitable.
9381 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
9384 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
9385 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
9386 regression from previous patch.
9388 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
9391 * gthr.h: Add __gthread_mutex_destroy as a function that must be
9393 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
9394 * gthr-single.h (__gthread_mutex_destroy): Likewise.
9395 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
9396 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
9397 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
9398 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
9399 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
9400 (__gthread_mutex_destroy_function): Rename to
9401 __gthread_mutex_destroy.
9402 * gthr-dce.h (__gthread_mutex_destroy): Call
9403 pthread_mutex_destroy.
9404 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
9405 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
9406 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
9408 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
9410 * df-scan.c (df_ref_chain_change_bb): Simplify.
9411 (df_insn_change_bb): Add new_bb argument. Simplify. Call
9412 set_block_for_insn if there's any change.
9413 * df.h ((df_insn_change_bb): Fix prototype.
9414 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
9415 df_insn_change_bb, don't call set_block_for_insn.
9416 * emit-rtl.c (reorder_insns): Likewise.
9417 * haifa-sched.c (move_insn): Likewise.
9419 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
9421 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
9423 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
9425 * tree-flow-inline.h (next_readonly_imm_use): Return
9426 NULL_USE_OPERAND_P after the end.
9428 2008-03-01 Richard Guenther <rguenther@suse.de>
9430 PR tree-optimization/35411
9431 * tree-sra.c (sra_build_assignment): Split conversion to
9432 final type to a separate statement if we are not assigning
9435 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9437 * fold-const.c (fold_convertible_p): Correct the logic to follow
9438 that in fold_convert().
9440 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
9443 * tree-inline.c (build_duplicate_type): When we make a
9444 duplicate type, make it unique in the canonical types system.
9446 2008-02-29 Tom Tromey <tromey@redhat.com>
9448 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
9449 input_file_stack_history, input_file_stack_restored): Remove.
9450 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
9451 * input.h (struct file_stack): Remove.
9452 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
9453 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
9455 * diagnostic.h (struct diagnostic_context) <last_module>: Change
9457 (diagnostic_last_module_changed): Add 'map' argument.
9458 (diagnostic_set_last_function): Likewise.
9459 * diagnostic.c (undiagnostic_report_current_module): Iterate using
9460 line map, not input_file_stack.
9461 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
9463 2008-02-29 Paul Brook <paul@codesourcery.com>
9465 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
9467 2008-02-29 Paul Brook <paul@codesourcery.com>
9469 * config/arm/ieee754-df.S (muldf3): Use RET macros.
9471 2008-02-29 Richard Guenther <rguenther@suse.de>
9473 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
9475 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
9476 value for comparing for a store match.
9477 (simplify_unary_expression): Do nothing for SSA_NAMEs.
9478 (try_to_simplify): Do not do a full-blown reference lookup.
9480 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
9482 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
9483 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
9485 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
9487 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
9489 * tree-loop-linear.c (try_interchange_loops): Compare memory access
9490 strides against cache sizes.
9492 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
9494 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
9497 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
9499 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
9500 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
9501 is smaller than the original promoted value.
9502 (simplify_subreg): If OP is a SUBREG, try to preserve its
9503 SUBREG_PROMOTED_VAR_P information.
9505 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
9507 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
9508 (VN_INFO_GET): Allocate new objects on the obstack.
9509 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
9510 for rpo_numbers_temp, for consistency.
9511 (free_scc_vn): Free the obstack.
9513 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
9515 * doc/invoke.texi: Document -ftree-loop-distribution.
9516 * tree-loop-distribution.c: New.
9517 * tree-pass.h (pass_loop_distribution): New.
9518 * graphds.h (struct graph): Add htab_t indices.
9519 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
9520 * tree-vectorizer.c (rename_variables_in_loop): Extern.
9521 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
9522 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
9523 * tree-data-ref.c (debug_data_dependence_relations): New.
9524 (dump_data_dependence_relation): Also print data references.
9525 (free_data_ref): Extern.
9526 (same_access_functions): Moved...
9527 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
9528 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9529 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
9530 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
9531 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
9532 (stmts_from_loop): Skip LABEL_EXPR.
9533 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
9535 (build_rdg): Initialize rdg->indices htab.
9536 (free_rdg, stores_from_loop, ref_base_address,
9537 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
9538 have_similar_memory_accesses_1, ref_base_address_1,
9539 remove_similar_memory_refs): New.
9540 * tree-data-ref.h: Depend on tree-chrec.h.
9541 (debug_data_dependence_relations, free_data_ref): Declared.
9542 (same_access_functions): ... here.
9543 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
9545 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
9546 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
9547 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
9548 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9549 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
9550 rdg_vertex_for_stmt): Declared.
9551 (struct rdg_edge): Add level.
9553 (free_rdg, stores_from_loop, remove_similar_memory_refs,
9554 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
9556 (rdg_has_similar_memory_accesses): New.
9557 * tree-vect-analyze.c: Remove unused static decls.
9558 * lambda.h (dependence_level): New.
9559 * common.opt (ftree-loop-distribution): New.
9560 * tree-flow.h (mark_virtual_ops_in_bb,
9561 slpeel_tree_duplicate_loop_to_edge_cfg,
9562 rename_variables_in_loop): Declared.
9563 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
9564 (OBJS-common): Add tree-loop-distribution.o.
9565 (tree-loop-distribution.o): New rule.
9566 * tree-cfg.c (mark_virtual_ops_in_bb): New.
9567 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
9568 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
9570 2008-02-28 Joseph Myers <joseph@codesourcery.com>
9573 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
9574 other than structures and unions.
9576 2008-02-28 Richard Guenther <rguenther@suse.de>
9579 2008-02-26 Richard Guenther <rguenther@suse.de>
9581 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9582 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9583 (lookup_decl_from_uid): Declare.
9584 (remove_decl_from_map): Likewise.
9585 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9586 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9587 (decl_for_uid_map): New global hashtable mapping DECL_UID
9589 (init_ttree): Allocate it.
9590 (insert_decl_to_uid_decl_map): New helper function.
9591 (make_node_stat): Insert new decls into the map.
9592 (copy_node_stat): Likewise.
9593 (lookup_decl_from_uid): New function.
9594 (remove_decl_from_map): Likewise.
9595 (print_decl_for_uid_map_statistics): New helper.
9596 (dump_tree_statistics): Call it.
9598 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9599 (referenced_var_iterator): Adjust.
9600 (FOR_EACH_REFERENCED_VAR): Adjust.
9601 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9602 (num_referenced_vars): Adjust.
9603 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9604 (first_referenced_var): Remove.
9605 (end_referenced_vars_p): Likewise.
9606 (next_referenced_var): Likewise.
9607 (referenced_var_iterator_set): New helper function.
9608 * tree-dfa.c (referenced_var_lookup): Adjust.
9609 (referenced_var_check_and_insert): Likewise.
9610 (remove_referenced_var): Likewise.
9611 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9612 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9613 (verify_call_clobbering): Likewise.
9614 (verify_memory_partitions): Likewise.
9615 (init_tree_ssa): Allocate bitmap instead of hashtable for
9617 (delete_tree_ssa): Adjust.
9618 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9619 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9620 (compute_tag_properties): Likewise.
9621 (set_initial_properties): Likewise.
9622 (find_partition_for): Likewise.
9623 (update_reference_counts): Likewise.
9624 (dump_may_aliases_for): Likewise.
9625 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9626 (add_call_clobber_ops): Likewise.
9627 (add_call_read_ops): Likewise.
9628 (get_asm_expr_operands): Likewise.
9629 * tree-into-ssa.c (dump_decl_set): Likewise.
9630 (update_ssa): Likewise.
9631 * tree-sra.c (scan_function): Likewise.
9632 (decide_instantiations): Likewise.
9633 (scalarize_parms): Likewise.
9634 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9635 (dsa_named_for): Likewise.
9636 * tree-ssa-structalias.c (update_alias_info): Likewise.
9637 (merge_smts_into): Likewise.
9639 2008-02-27 David Daney <ddaney@avtrex.com>
9642 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
9643 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
9644 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
9645 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
9646 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
9648 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
9651 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
9652 (BUILT_IN_NEXTTOWARD): Remove.
9653 (BUILT_IN_NEXTTOWARDF): Ditto.
9654 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
9655 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
9657 2008-02-27 Tom Tromey <tromey@redhat.com>
9659 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
9660 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
9662 2008-02-27 Jan Beulich <jbeulich@novell.com>
9664 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
9665 update the respective field on newdecl.
9667 2008-02-27 Revital Eres <eres@il.ibm.com>
9669 PR rtl-optimization/34999
9670 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
9671 crossing edges that ends with a call insn.
9672 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
9673 call insn and clear the EDGE_CROSSING flag of the crossing edge
9674 when fixing fallthru edges.
9676 2008-02-27 Richard Guenther <rguenther@suse.de>
9679 * fold-const.c (fold_unary): Return the correct argument,
9680 converted to the result type.
9682 2008-02-27 Richard Guenther <rguenther@suse.de>
9685 * expr.c (expand_expr_real_1): Assert on rotates that operate
9687 * fold-const.c (fold_binary): Use the types precision, not the
9688 bitsize of the mode if folding rotate expressions. Build rotates
9689 only for full modes.
9691 2008-02-27 Jakub Jelinek <jakub@redhat.com>
9693 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
9695 * c-pragma.c (pragma_ns_name): New typedef.
9696 (registered_pp_pragmas): New variable.
9697 (c_pp_lookup_pragma): New function.
9698 (c_register_pragma_1): If flag_preprocess_only, do nothing
9699 for non-expanded pragmas, for expanded ones push pragma's
9700 namespace and name into registered_pp_pragmas vector.
9701 (c_invoke_pragma_handler): Register OpenMP pragmas even when
9702 flag_preprocess_only, don't register GCC pch_preprocess
9703 pragma if flag_preprocess_only.
9704 * c-opts.c (c_common_init): Call init_pragma even if
9705 flag_preprocess_only.
9706 * c-pragma.c (c_pp_lookup_pragma): New prototype.
9707 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
9708 cpp_register_pragma if flag_preprocess_only.
9710 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9713 * c-parser.c (c_parser_translation_unit): Warn for empty
9714 translation unit, not empty source file.
9716 2008-02-26 Paul Brook <paul@codesourcery.com>
9718 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
9719 operand for Thumb-2.
9720 * config/arm/arm.h (reg_class): Add CORE_REGS.
9721 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
9722 (BASE_REG_CLASS): Use CORE_REGS.
9723 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
9724 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
9725 (REGNO_OK_FOR_INDEX_P): Exclude SP.
9726 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
9727 ARM_REGNO_OK_FOR_INDEX_P.
9728 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
9729 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
9730 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
9731 (ldm/stm peepholes): Ditto.
9732 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
9733 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
9734 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
9735 * config/arm/constraints.md: Enable "k" constraint on ARM.
9737 2008-02-27 Ben Elliston <bje@au.ibm.com>
9739 * config/rs6000/rs6000.c: Annotate cache line size field in all
9740 instances of struct processor_costs.
9742 2008-02-26 David Edelsohn <edelsohn@gnu.org>
9744 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
9745 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
9746 jump_bypass): New counters.
9747 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
9748 * dce.c (gate_ud_dce): Same.
9749 (gate_fast_dce): Same.
9750 * dse.c (gate_dse1): New function.
9751 (gate_dse2): New function.
9752 (gate_dse): Merge results of new gate functions.
9753 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
9754 (gate_handle_jump_bypass): Add dbg_cnt.
9755 (gate_handle_gcse): Add dbg_cnt.
9756 * ifcvt.c (gate_handle_if_conversion): Same.
9757 (gate_handle_if_after_combine): Same.
9758 (gate_handle_if_after_reload): Same.
9759 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
9761 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
9763 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
9765 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
9767 2008-02-26 Jason Merrill <jason@redhat.com>
9770 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
9771 alone if it's the naming decl for the type's main variant.
9773 2008-02-26 Tom Tromey <tromey@redhat.com>
9775 * system.h (USE_MAPPED_LOCATION): Poison.
9776 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
9777 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
9778 (make_goto_expr_edges): Likewise.
9779 (remove_bb): Likewise.
9780 (execute_warn_function_return): Likewise.
9781 * basic-block.h (struct edge_def) <goto_locus>: Change type to
9783 * c-common.c (fname_decl): Remove old location code.
9784 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
9786 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
9788 (ASM_INPUT_SOURCE_LOCATION): Likewise.
9789 (gen_rtx_ASM_INPUT): Likewise.
9790 (gen_rtx_ASM_INPUT_loc): Likewise.
9791 (get_rtx_asm_OPERANDS): Remove.
9792 * cfglayout.c (insn_locators_alloc): Remove old location code.
9793 (set_curr_insn_source_location): Likewise.
9794 (curr_insn_locator): Likewise.
9795 * print-tree.c (print_node): Remove old location code.
9796 * tree-mudflap.c (mf_varname_tree): Remove old location code.
9797 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
9798 * cfgexpand.c (expand_gimple_cond_expr): Don't use
9799 location_from_locus.
9800 (construct_exit_block): Remove old location code.
9801 * emit-rtl.c (force_next_line_note): Remove old location code.
9802 * profile.c (branch_prob): Remove old location code.
9803 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
9804 LOC_LINE): Remove old-location variants.
9805 * langhooks.c (lhd_print_error_function): Remove old location
9807 * configure, config.in: Rebuilt.
9808 * configure.ac (--enable-mapped-location): Remove.
9809 * c-decl.c (c_init_decl_processing): Remove old location code.
9810 (finish_function): Likewise.
9811 * recog.c (decode_asm_operands): Remove old location code.
9812 * c-pch.c (c_common_read_pch): Remove old location code.
9813 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
9815 * gimple-low.c (lower_function_body): Remove old location code.
9816 * toplev.c (unknown_location): Remove.
9817 (push_srcloc): Remove old-location variant.
9818 (process_options): Remove old location code.
9819 (lang_dependent_init): Likewise.
9820 * input.h (UNKNOWN_LOCATION): Move definition.
9821 (location_t): Undeprecate.
9822 (source_locus): Remove.
9823 (location_from_locus): Remove.
9824 (struct location_s): Remove.
9825 Remove all old-location code.
9826 (input_line, input_filename): Remove.
9827 * final.c (final_scan_insn): Remove old location code.
9828 * diagnostic.c (diagnostic_build_prefix): Remove
9829 USE_MAPPED_LOCATION test.
9830 * tree.h (gimple_stmt) <locus>: Now a location_t.
9831 (tree_exp) <locus>: Likewise.
9832 (DECL_IS_BUILTIN): Remove old-location variant.
9833 (annotate_with_file_line, annotate_with_locus): Likewise.
9834 (expr_locus, set_expr_locus): Update.
9835 * tree.c (build1_stat): Remove old location code.
9836 (last_annotated_node): Remove.
9837 (annotate_with_file_line): Remove old-location variant.
9838 (annotate_with_locus): Likewise.
9839 (expr_location): Remove old location code.
9840 (set_expr_location): Likewise.
9841 (expr_has_location): Likewise.
9842 (expr_locus): Likewise.
9843 (set_expr_locus): Likewise.
9844 (expr_filename): Don't use location_from_locus.
9845 (expr_lineno): Likewise.
9846 * rtl-error.c (location_for_asm): Remove old location code.
9847 * c-lex.c (cb_line_change): Remove old location code.
9848 (fe_file_change): Likewise.
9849 (cb_def_pragma): Likewise.
9850 (c_lex_with_flags): Likewise.
9851 * gengtype.c (do_typedef): Don't special-case location types.
9852 (define_location_structures): Remove.
9853 (main): Don't call define_location_structures.
9854 * tree-pretty-print.c (dump_implicit_edges): Remove old location
9857 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9860 * builtins.def (BUILT_IN_STDARG_START): Remove.
9861 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
9862 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9863 * tree-inline.c (inline_forbidden_p_1): Likewise.
9865 2008-02-26 Richard Guenther <rguenther@suse.de>
9867 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9868 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9869 (lookup_decl_from_uid): Declare.
9870 (remove_decl_from_map): Likewise.
9871 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9872 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9873 (decl_for_uid_map): New global hashtable mapping DECL_UID
9875 (init_ttree): Allocate it.
9876 (insert_decl_to_uid_decl_map): New helper function.
9877 (make_node_stat): Insert new decls into the map.
9878 (copy_node_stat): Likewise.
9879 (lookup_decl_from_uid): New function.
9880 (remove_decl_from_map): Likewise.
9881 (print_decl_for_uid_map_statistics): New helper.
9882 (dump_tree_statistics): Call it.
9884 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9885 (referenced_var_iterator): Adjust.
9886 (FOR_EACH_REFERENCED_VAR): Adjust.
9887 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9888 (num_referenced_vars): Adjust.
9889 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9890 (first_referenced_var): Remove.
9891 (end_referenced_vars_p): Likewise.
9892 (next_referenced_var): Likewise.
9893 (referenced_var_iterator_set): New helper function.
9894 * tree-dfa.c (referenced_var_lookup): Adjust.
9895 (referenced_var_check_and_insert): Likewise.
9896 (remove_referenced_var): Likewise.
9897 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9898 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9899 (verify_call_clobbering): Likewise.
9900 (verify_memory_partitions): Likewise.
9901 (init_tree_ssa): Allocate bitmap instead of hashtable for
9903 (delete_tree_ssa): Adjust.
9904 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9905 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9906 (compute_tag_properties): Likewise.
9907 (set_initial_properties): Likewise.
9908 (find_partition_for): Likewise.
9909 (update_reference_counts): Likewise.
9910 (dump_may_aliases_for): Likewise.
9911 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9912 (add_call_clobber_ops): Likewise.
9913 (add_call_read_ops): Likewise.
9914 (get_asm_expr_operands): Likewise.
9915 * tree-into-ssa.c (dump_decl_set): Likewise.
9916 (update_ssa): Likewise.
9917 * tree-sra.c (scan_function): Likewise.
9918 (decide_instantiations): Likewise.
9919 (scalarize_parms): Likewise.
9920 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9921 (dsa_named_for): Likewise.
9922 * tree-ssa-structalias.c (update_alias_info): Likewise.
9923 (merge_smts_into): Likewise.
9925 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9928 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
9929 * c-opts.c (c_common_handle_option): Wall enables
9930 Wvolatile-register-var.
9931 * common.opt: Move Wvolatile-register-var to...
9934 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9936 * common.opt (Wlarger-than=): New.
9937 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
9939 * opts.c (common_handle_option): Handle -Wlarger-than=.
9940 * optc-gen.awk: Likewise.
9941 * opth-gen.awk: Likewise.
9942 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
9943 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9945 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9947 * c-common.c (match_case_to_enum_1): Add appropriate
9948 OPT_W* parameter to warning.
9949 (c_do_switch_warnings): Likewise.
9950 * c-typeck.c (warning_init): Add one more parameter following
9952 (push_init_level): Update call to warning_init.
9953 (pop_init_level): Likewise.
9954 (add_pending_init): Likewise.
9955 (output_init_element: Likewise.
9957 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9960 * toplev.c (toplev_main): If there are warnings or error, print
9961 errors for ignored options.
9962 * opts.c (ignored_options): New static variable.
9963 (postpone_unknown_option_error): New.
9964 (print_ignored_options): New.
9965 (handle_option): Postpone errors for unknown -Wno-* options.
9966 * opts.h (print_ignored_options): Declare.
9968 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
9970 * config/mips/mips.md (loadgp_blockage, blockage): Change type
9973 2008-02-25 Richard Guenther <rguenther@suse.de>
9976 2008-02-25 Richard Guenther <rguenther@suse.de>
9978 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9979 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9980 (lookup_decl_from_uid): Declare.
9981 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9982 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9983 (decl_for_uid_map): New global hashtable mapping DECL_UID
9985 (init_ttree): Allocate it.
9986 (insert_decl_to_uid_decl_map): New helper function.
9987 (make_node_stat): Insert new decls into the map.
9988 (copy_node_stat): Likewise.
9989 (lookup_decl_from_uid): New function.
9990 (print_decl_for_uid_map_statistics): New helper.
9991 (dump_tree_statistics): Call it.
9993 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9994 (referenced_var_iterator): Adjust.
9995 (FOR_EACH_REFERENCED_VAR): Adjust.
9996 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9997 (num_referenced_vars): Adjust.
9998 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9999 (first_referenced_var): Remove.
10000 (end_referenced_vars_p): Likewise.
10001 (next_referenced_var): Likewise.
10002 (referenced_var_iterator_set): New helper function.
10003 * tree-dfa.c (referenced_var_lookup): Adjust.
10004 (referenced_var_check_and_insert): Likewise.
10005 (remove_referenced_var): Likewise.
10006 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
10007 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10008 (verify_call_clobbering): Likewise.
10009 (verify_memory_partitions): Likewise.
10010 (init_tree_ssa): Allocate bitmap instead of hashtable for
10012 (delete_tree_ssa): Adjust.
10013 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
10014 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10015 (compute_tag_properties): Likewise.
10016 (set_initial_properties): Likewise.
10017 (find_partition_for): Likewise.
10018 (update_reference_counts): Likewise.
10019 (dump_may_aliases_for): Likewise.
10020 * tree-ssa-operands.c (add_virtual_operand): Likewise.
10021 (add_call_clobber_ops): Likewise.
10022 (add_call_read_ops): Likewise.
10023 (get_asm_expr_operands): Likewise.
10024 * tree-into-ssa.c (dump_decl_set): Likewise.
10025 (update_ssa): Likewise.
10026 * tree-sra.c (scan_function): Likewise.
10027 (decide_instantiations): Likewise.
10028 (scalarize_parms): Likewise.
10029 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
10030 (dsa_named_for): Likewise.
10031 * tree-ssa-structalias.c (update_alias_info): Likewise.
10032 (merge_smts_into): Likewise.
10034 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
10037 * doc/invoke.texi (-fcx-limited-range): Document new option.
10038 * toplev.c (process_options): Handle -fcx-fortran-rules.
10039 * common.opt: Add documentation for -fcx-fortran-rules.
10041 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
10044 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
10045 actual behaviour and C99.
10047 2008-02-26 Ben Elliston <bje@au.ibm.com>
10049 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
10050 (ASM_CPU_POWER6_SPEC): Likewise.
10051 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
10052 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
10053 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
10055 2008-02-25 Richard Guenther <rguenther@suse.de>
10057 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
10058 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
10059 (lookup_decl_from_uid): Declare.
10060 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
10061 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
10062 (decl_for_uid_map): New global hashtable mapping DECL_UID
10064 (init_ttree): Allocate it.
10065 (insert_decl_to_uid_decl_map): New helper function.
10066 (make_node_stat): Insert new decls into the map.
10067 (copy_node_stat): Likewise.
10068 (lookup_decl_from_uid): New function.
10069 (print_decl_for_uid_map_statistics): New helper.
10070 (dump_tree_statistics): Call it.
10072 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
10073 (referenced_var_iterator): Adjust.
10074 (FOR_EACH_REFERENCED_VAR): Adjust.
10075 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
10076 (num_referenced_vars): Adjust.
10077 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
10078 (first_referenced_var): Remove.
10079 (end_referenced_vars_p): Likewise.
10080 (next_referenced_var): Likewise.
10081 (referenced_var_iterator_set): New helper function.
10082 * tree-dfa.c (referenced_var_lookup): Adjust.
10083 (referenced_var_check_and_insert): Likewise.
10084 (remove_referenced_var): Likewise.
10085 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
10086 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10087 (verify_call_clobbering): Likewise.
10088 (verify_memory_partitions): Likewise.
10089 (init_tree_ssa): Allocate bitmap instead of hashtable for
10091 (delete_tree_ssa): Adjust.
10092 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
10093 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
10094 (compute_tag_properties): Likewise.
10095 (set_initial_properties): Likewise.
10096 (find_partition_for): Likewise.
10097 (update_reference_counts): Likewise.
10098 (dump_may_aliases_for): Likewise.
10099 * tree-ssa-operands.c (add_virtual_operand): Likewise.
10100 (add_call_clobber_ops): Likewise.
10101 (add_call_read_ops): Likewise.
10102 (get_asm_expr_operands): Likewise.
10103 * tree-into-ssa.c (dump_decl_set): Likewise.
10104 (update_ssa): Likewise.
10105 * tree-sra.c (scan_function): Likewise.
10106 (decide_instantiations): Likewise.
10107 (scalarize_parms): Likewise.
10108 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
10109 (dsa_named_for): Likewise.
10110 * tree-ssa-structalias.c (update_alias_info): Likewise.
10111 (merge_smts_into): Likewise.
10113 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
10116 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
10117 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
10118 * alias.h (nonoverlapping_memrefs_p): Likewise.
10120 2008-02-25 Jan Beulich <jbeulich@novell.com>
10122 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
10123 * config/i386/netware-libgcc.exp: Add __bswap?i2,
10124 __emultls_get_address, __emultls_register_common,
10125 __floatundi?f, and _Unwind_GetIPInfo.
10126 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
10127 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
10128 (gen_regparm_prefix): Likewise.
10129 (i386_nlm_encode_section_info): Sync with
10130 config/i386/winnt.c:i386_pe_encode_section_info().
10131 (i386_nlm_maybe_mangle_decl_assembler_name): New.
10132 i386_nlm_mangle_decl_assembler_name): New.
10133 (netware_override_options): New.
10134 * config/i386/netware.h (netware_override_options): Declare.
10135 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
10136 (i386_nlm_mangle_decl_assembler_name): Declare.
10137 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
10139 2008-02-25 Ben Elliston <bje@au.ibm.com>
10142 * c-decl.c (grokdeclarator): Remove unused local variables
10143 `typedef_type' and `type_as_written'.
10145 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
10146 unused local variable `has_hot_blocks'.
10147 (fix_crossing_conditional_branches): Remove unused local variable
10150 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
10152 PR middle-end/19984
10153 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
10154 using DEF_C99_BUILTIN.
10155 (BUILT_IN_NANF): Ditto.
10156 (BUILT_IN_NANL): Ditto.
10158 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
10159 Revital Eres <eres@il.ibm.com>
10161 * modulo-sched.c (calculate_must_precede_follow): Address TODO
10162 regarding the order of two dependent insns in the same row.
10164 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
10166 * stor-layout.c (layout_decl): Do not bump the alignment of a
10167 bit-field to more than byte alignment if it is packed.
10169 2008-02-24 David Edelsohn <edelsohn@gnu.org>
10171 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
10174 2008-02-24 Diego Novillo <dnovillo@google.com>
10176 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
10179 * tree-vrp.c (vrp_evaluate_conditional): With
10180 -Wtype-limits, emit a warning when comparing against a
10181 constant outside the natural range of OP0's type.
10182 * c.opt (Wtype-limits): Move ...
10183 * common.opt (Wtype-limits): ... here.
10185 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
10187 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
10188 * config/rs6000/e300c2c3.md: New file.
10189 * config/rs6000/rs6000.c (processor_costs): Add new costs for
10191 (rs6000_override_options): Add e300c2 and e300c3 cases to
10192 processor_target_table. Do not allow usage of Altivec or Spe
10193 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
10194 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
10195 * config/rs6000/rs6000.h (processor_type): Add
10196 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
10197 (ASM_CPU_SPEC): Add e300c2 and e300c3.
10198 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
10199 and ppce300c3. Include e300c2c3.md.
10201 2008-02-23 David Edelsohn <edelsohn@gnu.org>
10203 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
10204 instead of TARGET_STRICT_ALIGN.
10206 2008-02-23 Joseph Myers <joseph@codesourcery.com>
10208 * explow.c (memory_address): Assert that the generated address is
10211 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
10214 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
10215 * config/darwin-ppc-ldouble-patch.def: New file.
10216 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
10217 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
10218 SUBTARGET_INIT_BUILTINS if defined.
10219 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
10222 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
10225 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
10226 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
10228 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
10231 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
10232 file" warning condtional on -Winvalid-PCH.
10234 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
10236 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
10238 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
10242 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
10243 prevent reload from using MMX registers.
10244 (*mov<mode>_internal): Ditto.
10245 (*movv2sf_internal_rex64): Ditto.
10246 (*movv2sf_internal): Ditto.
10248 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10250 PR documentation/31569
10251 * doc/install.texi2html: Use makeinfo --no-number-sections.
10253 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
10255 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
10256 ensure that we can address an entire entity > 8 bytes. Don't
10257 generate reg+reg addressing for such data.
10259 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
10261 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
10262 strings when optimizing for size, unless the target cares about
10265 2008-02-22 Tom Tromey <tromey@redhat.com>
10267 * regclass.c (current_pass): Remove declaration.
10269 2008-02-22 Anatoly Sokolov <aesok@post.ru>
10271 * config/avr/libgcc.S (__RAMPZ__): Define.
10272 (__do_copy_data): Add for devices with 128KB code memory.
10274 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
10276 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10278 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
10280 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
10282 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
10285 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10288 * c-typeck.c (build_binary_op): Warn about floating point
10289 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
10291 2008-02-21 Janis Johnson <janis187@us.ibm.com>
10294 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
10295 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
10297 (rs6000_override_options): Set altivec_abi as default, not override,
10298 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
10299 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
10300 is used; use new member spe_abi.
10301 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
10302 spe_abi and altivec_abi.
10304 2008-02-22 Tomas Bily <tbily@suse.cz>
10306 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
10308 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10311 * config.build (build_file_translate): Set to `CMD //c' only if
10313 * Makefile.in (build_file_translate): Improve comment.
10315 2008-02-21 Jan Hubicka <jh@suse.cz>
10317 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
10318 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
10319 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
10321 2008-02-21 Michael Matz <matz@suse.de>
10324 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
10326 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
10328 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
10329 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
10330 as insn constraint.
10331 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
10332 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
10333 SSE_VEC_FLOAT_MODE_P as insn constraint.
10334 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
10335 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
10336 sse4a_movntdf using MODEF mode iterator.
10337 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
10338 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
10339 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
10340 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
10341 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
10342 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
10343 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
10345 2008-02-21 Richard Guenther <rguenther@suse.de>
10347 * tree.def (PAREN_EXPR): New tree code.
10348 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
10350 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
10351 * expr.c (expand_expr_real_1): Likewise.
10352 * tree-inline.c (estimate_num_insns_1): Likewise.
10353 * tree-complex.c (expand_complex_move): Likewise.
10354 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
10357 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
10360 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
10362 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
10365 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
10367 * config/sh/sh.c (find_barrier): Don't go past
10368 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
10370 2008-02-20 DJ Delorie <dj@redhat.com>
10372 * config/h8300/h8300.md (insv): Force source operand to be a register.
10374 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
10375 as a jump, not as a plain insn.
10377 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
10379 * doc/invoke.texi (Warning Options): Add new option
10380 -Wframe-larger-than=.
10381 (-Wframe-larger-than): Document.
10383 * flags.h (warn_frame_larger_than, frame_larger_than_size):
10384 Add declarations for new option variables.
10386 * final.c (final_start_function): Check the frame size
10387 before emission and issue a Wframe-larger-than warning.
10389 * opts.c (warn_frame_larger_than, frame_larger_than_size):
10390 Add definitions for new option variables.
10391 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
10393 * common.opt (Wframe-larger-than=): New option.
10395 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
10397 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
10398 (<sse>_div<mode>3): Ditto.
10399 (<sse>_vmdiv<mode>3): Ditto.
10400 (<sse>_vmsqrt<mode>2): Ditto.
10401 (*smax<mode>3): Ditto.
10402 (sse5_frcz<mode>2): Ditto.
10403 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
10404 as insn constraint.
10406 2008-02-20 Richard Guenther <rguenther@suse.de>
10408 PR middle-end/35265
10409 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
10410 be happy with INTEGRAL_TYPE_P.
10412 2008-02-20 Richard Guenther <rguenther@suse.de>
10414 * fold-const.c (split_tree): Associate floatig-point expressions
10415 if flag_associative_math is set.
10417 2008-02-20 Richard Guenther <rguenther@suse.de>
10419 * tree.h (fold_real_zero_addition_p): Declare.
10420 * fold-const.c (fold_real_zero_addition_p): Export.
10421 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
10422 floating-point operations with zero and one.
10424 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
10426 * doc/install.texi: Correct references to CFLAGS, replacing them
10427 with BOOT_CFLAGS. Document flags used during bootstrap for
10430 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
10432 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
10433 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
10434 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
10436 (smin<mode>3): Ditto from similar patterns.
10437 (smax<mode>3): Ditto.
10438 (*ieee_smin<mode>3): Ditto.
10439 (*ieee_smax<mode>3): Ditto.
10440 * config/i386/sse.md (sse): New mode attribute.
10441 (mov<mode>): Macroize expander from movv4sf and movv2df using
10442 SSEMODEF2P mode iterator.
10443 (<sse>_movnt<mode>): Ditto from similar patterns. Use
10444 SSE_VEC_FLOAT_MODE_P as insn constraint.
10445 (storent<mode>): Ditto.
10446 (storent<mode>): Macroize expander from storentsf and storentdf using
10447 MODEF mode iterator.
10448 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
10449 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
10450 (abs<mode>2): Ditto from similar patterns.
10451 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
10452 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
10453 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
10454 (<sse>_vmsqrt<mode>2): Ditto.
10455 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
10456 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
10457 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
10458 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
10459 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
10460 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
10461 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
10463 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
10464 iterator and SSE_FLOAT_MODE_P as insn constraint.
10465 (<sse>_ucomi): Ditto from similar patterns.
10466 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
10467 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
10468 SSE_VEC_FLOAT_MODE_P as insn constraint.
10469 (vcond<mode>): Ditto from similar patterns.
10470 (and<mode>3, *and<mode>3): Ditto.
10471 (<sse>_nand<mode>3): Ditto.
10472 (ior<mode>3, *ior<mode>3): Ditto.
10473 (xor<mode>3, *xor<mode>3): Ditto.
10474 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
10475 iterator and SSE_FLOAT_MODE_P as insn constraint.
10476 (*nand<mode>3): Ditto from similar patterns.
10477 (*ior<mode>3): Ditto.
10478 (*xor<mode>3): Ditto.
10480 2008-02-20 Ira Rosen <irar@il.ibm.com>
10482 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
10483 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
10484 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
10486 2008-02-19 Jan Hubicka <jh@suse.cz>
10488 * predict.c (tree_bb_level_predictions): Remove variable next
10489 mistakely introduced by previous commit.
10491 2008-02-19 Jan Hubicka <jh@suse.cz>
10493 * predict.c (predict_paths_leading_to): Rewrite.
10494 (predict_paths_for_bb): New.
10495 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
10497 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10500 * Makefile.in (build_file_translate): New.
10501 (gcc-vers.texi): Use it for translating $(abs_srcdir).
10502 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
10503 * configure.ac (build_file_translate): Substitute it.
10504 * configure: Regenerate.
10506 2008-02-19 Jan Hubicka <jh@suse.cz>
10508 PR rtl-optimization/34408
10509 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
10512 2008-02-19 Jan Hubicka <jh@suse.cz>
10514 PR middle-end/28779
10515 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
10518 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
10521 * config/i386/i386-modes.def: Revert the last DI alignment
10522 change until Ada people can look into it.
10524 2008-02-19 Nick Clifton <nickc@redhat.com>
10526 * opts.c (print_specific_help): Fix typo in --help text.
10528 2008-02-19 Jakub Jelinek <jakub@redhat.com>
10531 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
10532 32-bit inline asm without asm alternatives for host GCC < 3.0.
10534 2008-02-19 Richard Guenther <rguenther@suse.de>
10536 PR tree-optimization/34989
10537 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
10538 Allow propagation to INDIRECT_REF if we can simplify only.
10540 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10542 * c-common.c (warn_for_collisions_1): Use appropriate option when
10545 2008-02-19 Nick Clifton <nickc@redhat.com>
10548 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
10549 (handle_options): Fix indentation.
10550 (print_filtered_help): If no language-specific options were
10551 displayed tell the user how to list all the options supported by
10552 the language's front-end.
10553 (print_specific_help): Fix indentation and remove duplicate line.
10554 (common_handle_option): Handle the -v option.
10555 For --help enable the display of undocumented options if the -v
10556 switch has been included on the command line.
10557 For --help= check for overlaps in the arguments between the option
10558 classes and the language names and issue a warning when they
10559 cannot be disambiguated.
10560 * c.opt (v): Pass on to the common option handler.
10562 2008-02-19 Revital Eres <eres@il.ibm.com>
10564 * modulo-sched.c (sms_schedule): Change dump message when
10565 create_ddg function fails.
10566 (try_scheduling_node_in_cycle): Rename row to cycle.
10567 (print_partial_schedule): Rename CYCLE to ROW.
10569 2008-02-19 Christian Bruel <christian.bruel@st.com>
10570 Zdenek Dvorak <ook@ucw.cz>
10572 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
10574 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
10577 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
10578 (*x86_movdicc_0_m1_se): Ditto.
10580 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
10582 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
10583 (CMPtype): Define as __gcc_CMPtype.
10584 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
10585 (CMPtype): Define as __gcc_CMPtype.
10587 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
10589 Support valgrind 3.3 for --enable-checking=valgrind.
10590 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
10592 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
10593 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
10594 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
10595 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
10596 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
10597 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
10598 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
10600 * ggc-zone.c: Similar.
10601 * ggc-page.c: Similar.
10603 2008-02-19 Paul Brook <paul@codesourcery.com>
10606 * config/arm/ieee754-df.S: Fix do_it typo.
10607 * config/arm/ieee754-sf.S: Fix do_it typo.
10609 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
10612 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
10613 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
10614 (OPTION_MASK_ISA_SSE_SET): Likewise.
10615 (OPTION_MASK_ISA_SSE2_SET): Likewise.
10616 (OPTION_MASK_ISA_SSE3_SET): Likewise.
10617 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
10618 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
10619 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
10620 (OPTION_MASK_ISA_SSE4_SET): Likewise.
10621 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
10622 (OPTION_MASK_ISA_SSE5_SET): Likewise.
10623 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
10624 (OPTION_MASK_ISA_MMX_UNSET): Updated.
10625 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
10626 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
10627 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
10628 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
10629 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
10630 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
10631 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
10632 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
10633 (OPTION_MASK_ISA_SSE4): Removed.
10634 (ix86_handle_option): Turn on bits in ix86_isa_flags and
10635 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
10636 (override_options): Don't turn on implied SSE/MMX bits in
10639 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
10641 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10644 2008-02-18 Joey Ye <joey.ye@intel.com>
10646 PR middle-end/34921
10647 * tree-nested.c (insert_field_into_struct): Set type alignment
10648 to field alignment if the former is less than the latter.
10650 2008-02-18 Jakub Jelinek <jakub@redhat.com>
10652 * BASE-VER: Set to 4.4.0.
10654 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10656 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
10657 * doc/cfg.texi: Likewise.
10658 * doc/extend.texi: Likewise.
10659 * doc/gty.texi: Likewise.
10660 * doc/invoke.texi: Likewise.
10661 * doc/loop.texi: Likewise.
10662 * doc/md.texi: Likewise.
10663 * doc/passes.texi: Likewise.
10664 * doc/rtl.texi: Likewise.
10665 * doc/sourcebuild.texi: Likewise.
10666 * doc/tm.texi: Likewise.
10667 * doc/tree-ssa.texi: Likewise.
10669 2008-02-17 Richard Guenther <rguenther@suse.de>
10671 PR middle-end/35227
10672 * tree-complex.c (init_parameter_lattice_values): Handle parameters
10673 without default definition.
10675 2008-02-17 Richard Guenther <rguenther@suse.de>
10677 PR tree-optimization/35231
10678 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
10681 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
10684 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10685 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10686 libgcc_cmp_return mode.
10688 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10691 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
10693 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
10695 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
10698 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10700 * doc/c-tree.texi: Use `@.' where appropriate.
10701 * doc/extend.texi: Likewise.
10702 * doc/install.texi: Likewise.
10703 * doc/invoke.texi: Likewise.
10704 * doc/loop.texi: Likewise.
10705 * doc/makefile.texi: Likewise.
10706 * doc/md.texi: Likewise.
10707 * doc/passes.texi: Likewise.
10708 * doc/standards.texi: Likewise.
10709 * doc/tm.texi: Likewise.
10711 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10713 PR middle-end/35196
10714 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
10716 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
10717 rather than in entry_bb.
10719 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10721 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10722 libgcc_cmp_return mode.
10724 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10726 PR middle-end/35130
10727 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
10728 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
10730 2008-02-15 Richard Guenther <rguenther@suse.de>
10731 Zdenek Dvorak <ook@ucw.cz>
10733 PR tree-optimization/35164
10734 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
10735 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
10736 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
10737 Only propagate addresses which do not have abnormal SSA_NAMEs
10740 2008-02-15 Joseph Myers <joseph@codesourcery.com>
10743 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
10745 2008-02-15 Jan Hubicka <jh@suse.cz>
10747 PR middle-end/35149
10748 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
10750 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10752 PR middle-end/34621
10753 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
10754 when calculating alignment_pad.
10756 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10758 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
10759 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
10760 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
10761 and STACK_BOUNDARY define.
10763 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
10765 PR preprocessor/35061
10766 * c-pragma.c (handle_pragma_pop_macro): Check that
10767 pushed_macro_table has been allocated.
10769 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
10771 PR middle-end/35136
10772 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
10773 (force_gimple_operand): Likewise.
10774 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
10775 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
10776 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
10777 (find_interesting_uses_address): Check addressability and alignment
10778 of the base expression only after substituting bases of IVs into it.
10780 2008-02-14 Michael Matz <matz@suse.de>
10783 * function.c (instantiate_virtual_regs_in_insn): Reload address
10784 before falling back to reloading the whole operand.
10786 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
10788 * config/s390/s390.c (s390_mainpool_start): Emit the pool
10789 before the first section switch note.
10791 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10793 * doc/bugreport.texi: Update copyright years.
10794 * doc/c-tree.texi: Likewise.
10795 * doc/cfg.texi: Likewise.
10796 * doc/cpp.texi: Likewise.
10797 * doc/cppinternals.texi: Likewise.
10798 * doc/fragments.texi: Likewise.
10799 * doc/frontends.texi: Likewise.
10800 * doc/gcc.texi: Likewise.
10801 * doc/gty.texi: Likewise.
10802 * doc/hostconfig.texi: Likewise.
10803 * doc/implement-c.texi: Likewise.
10804 * doc/libgcc.texi: Likewise.
10805 * doc/loop.texi: Likewise.
10806 * doc/makefile.texi: Likewise.
10807 * doc/options.texi: Likewise.
10808 * doc/passes.texi: Likewise.
10809 * doc/rtl.texi: Likewise.
10810 * doc/sourcebuild.texi: Likewise.
10811 * doc/standards.texi: Likewise.
10812 * doc/tree-ssa.texi: Likewise.
10813 * doc/trouble.texi: Likewise.
10815 * doc/extend.texi: Use @: or add comma where appropriate.
10816 * doc/invoke.texi: Likewise.
10817 * doc/tm.texi: Likewise.
10819 2008-02-14 Alan Modra <amodra@bigpond.net.au>
10822 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
10825 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
10827 * doc/md.texi (clz, ctz): Add reference.
10828 * doc/rtl.texi (clz, ctz): Likewise.
10830 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10833 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
10836 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
10838 * config/s390/s390.c (struct constant_pool): New field
10839 emit_pool_after added.
10840 (s390_mainpool_start): Set the emit_pool_after flag according
10841 to the section switch notes.
10842 (s390_mainpool_finish): Consider emit_pool_after when emitting
10843 the literal pool at the end of the function.
10844 (s390_chunkify_start): Force literal pool splits at section
10847 2008-02-13 Michael Matz <matz@suse.de>
10850 * var-tracking.c (clobber_variable_part): Correctly traverse the
10853 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10856 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
10857 Add -fdump-ipa-inline.
10858 * tree-dump.c (dump_files): Remove tree-inlined dump.
10859 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
10861 2008-02-12 Richard Guenther <rguenther@suse.de>
10863 PR tree-optimization/35171
10864 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
10867 2008-02-12 Richard Guenther <rguenther@suse.de>
10869 PR middle-end/35163
10870 * fold-const.c (fold_widened_comparison): Use get_unwidened in
10871 value-preserving mode. Disallow final truncation.
10873 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
10875 PR middle-end/35136
10876 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
10877 code from here to...
10878 (force_gimple_operand): ...here.
10880 2008-02-12 Jakub Jelinek <jakub@redhat.com>
10883 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
10884 non-compatible pointers.
10885 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
10886 different FIELD_DECLs, try harder by comparing field offsets, sizes
10889 PR inline-asm/35160
10890 * function.c (match_asm_constraints_1): Don't replace the same input
10893 2008-02-12 Anatoly Sokolov <aesok@post.ru>
10895 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
10896 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
10897 (expand_epilogue): Restore RAMPZ register.
10898 * config/avr/avr.md (RAMPZ_ADDR): New constant.
10900 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
10902 * config/i386/cygwin.asm: (__alloca): Correct calling
10903 convention and alignment.
10904 (__chkstk): Force 8 byte stack alignment.
10906 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
10907 Richard Guenther <rguenther@suse.de>
10909 PR tree-optimization/33992
10910 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
10911 the zero we compare against.
10913 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
10915 PR libfortran/35063
10916 * gthr-win32.h (__gthread_mutex_destroy_function): New function
10917 to CloseHandle after unlocking to prevent accumulation of handle
10920 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10922 PR middle_end/34150
10923 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
10924 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
10925 and update LABEL_NUSES during and after reload.
10927 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
10929 PR middle-end/34627
10930 * combine.c (simplify_if_then_else): Make sure the comparison is
10931 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
10933 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
10936 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
10937 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
10938 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
10939 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
10940 * tree.h (get_type_static_bounds): Likewise.
10942 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10944 * doc/invoke.texi (Option Summary, C++ Dialect Options)
10945 (Objective-C and Objective-C++ Dialect Options, Warning Options):
10946 Make -Wfoo language annotations match what the compiler outputs.
10948 2008-02-08 Sa Liu <saliu@de.ibm.com>
10950 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
10951 intrinsics spu_convts, spu_convtu, spu_convtf.
10953 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
10955 * doc/extend.texi (Function Attributes) <noinline>: Mention
10956 asm ("") as method to keep calls.
10958 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10961 * doc/options.texi (Options): Replace references to opts.sh with
10963 * opts-common.c: Likewise.
10964 * optc-gen.awk: Likewise.
10966 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10968 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
10970 2008-02-07 Richard Henderson <rth@redhat.com>
10973 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
10974 EXPR_LIST for the REG_EQUAL instead of a comparison with a
10977 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
10979 PR tree-optimization/35085
10980 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
10981 for operand entry oe2 in addition to operand entry oe3 in order to
10982 expose more opportunities for vectorizer sum reduction.
10984 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10987 * Makefile.in (LIBS): Remove $(GMPLIBS).
10988 (cc1-dummy, cc1): Add $(GMPLIBS).
10990 2008-02-06 Jan Hubicka <jh@suse.cz>
10993 * i386.md (moddf_integer): Do not produce partial memory stalls for
10994 targets where it hurts.
10996 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
10999 * optabs.c (expand_float): Do not check for decimal modes when
11000 expanding unsigned integer through signed conversion.
11002 2008-02-06 Nick Clifton <nickc@redhat.com>
11004 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
11005 inside the clobber with a match_operand and duplicated operand
11006 number in the constraint.
11007 (ineqbranchsi): Delete redundant comment.
11009 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
11011 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
11012 builtin_define ("__USE_INIT_FINI__").
11013 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
11015 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
11017 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11019 PR documentation/30330
11020 * doc/invoke.texi (C++ Dialect Options)
11021 (Objective-C and Objective-C++ Dialect Options, Warning Options):
11022 For each warning option -Wfoo that allows -Wno-foo, ensure both
11023 -Wfoo and -Wno-foo are listed in the option index. Fix index
11024 entry of -Wswitch-default, index -Wnormalized= including the
11025 `=', and -Wlarger-than-@var{len} including @var{len}.
11027 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
11029 * config/i386/i386.md (floatunssisf2): Use
11030 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
11031 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
11032 Macroize expander using MODEF mode iterator.
11034 2008-02-05 Diego Novillo <dnovillo@google.com>
11036 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
11039 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
11041 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11044 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
11046 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
11049 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
11050 to indicate if a message should be generated.
11051 (init_cumulative_args): Updated.
11052 (function_value_32): Likewise.
11054 2008-02-05 Joseph Myers <joseph@codesourcery.com>
11056 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
11058 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
11061 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
11062 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
11064 2008-02-04 Diego Novillo <dnovillo@google.com>
11066 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
11069 * tree-vrp.c (vrp_evaluate_conditional): With
11070 -Wtype-limits, emit a warning when comparing against a
11071 constant outside the natural range of OP0's type.
11073 2008-02-04 Richard Guenther <rguenther@suse.de>
11075 PR middle-end/33631
11076 * expr.c (count_type_elements): Give for unions instead of
11079 2008-02-04 Richard Guenther <rguenther@suse.de>
11081 PR middle-end/35043
11082 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
11083 to TYPE_DOMAINs base type instead of using bitsizetype here.
11085 2008-02-03 Jason Merrill <jason@redhat.com>
11087 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
11089 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11092 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
11093 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
11094 (RS/6000 and PowerPC Options): Fix typos and markup.
11095 * doc/passes.texi (Tree-SSA passes): Likewise.
11097 2008-02-02 Michael Matz <matz@suse.de>
11100 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
11101 from record_last_reg_set_info.
11102 (record_last_reg_set_info): Take an RTX argument, iterate over all
11103 constituent hardregs.
11104 (record_last_set_info, record_opr_changes): Change calls to
11105 new signature or to record_last_reg_set_info_regno.
11107 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11109 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
11111 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
11113 PR rtl-optimization/34773
11114 * reg-notes.def (EQUAL): Mention significance of combination of
11115 REG_EQUAL and REG_RETVAL.
11116 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
11117 insn that has a REG_RETVAL.
11119 2008-02-01 Roger Sayle <roger@eyesopen.com>
11122 * configure.ac (--enable-fixed-point): Disable unless explicitly
11124 * configure: Regenerate.
11126 2008-02-01 Richard Guenther <rguenther@suse.de>
11129 * invoke.texi (-finline-limit): Remove no longer true parts
11130 of the documentation. Note that there is no default value.
11132 2008-02-01 Andrew Pinski <pinskia@gmail.com>
11133 Mark Mitchell <mark@codesourcery.com>
11134 Ben Elliston <bje@au.ibm.com>
11137 * doc/extend.texi (Other Builtins): Document.
11139 2008-01-31 Tom Browder <tom.browder@gmail.com>
11141 * doc/c-tree.texi (Types): Fix grammar.
11142 (Expression trees): Ditto.
11143 * doc/passes.texi (Tree-SSA passes): Ditto.
11145 * doc/configterms.texi (Configure Terms): Fix typo.
11146 * doc/cpp.texi (Common Predefined Macros): Ditto.
11147 * doc/md.texi (Machine Constraints): Ditto.
11149 * doc/makefile.texi (Makefile): Add comma.
11151 2008-01-31 Tom Browder <tom.browder@gmail.com>
11152 Gerald Pfeifer <gerald@pfeifer.com>
11154 * doc/sourcebuild.texi (Front End): Remove references to CVS
11155 and CVSROOT/modules.
11156 (Texinfo Manuals): Replace reference to CVS by one to SVN.
11157 (Back End): Remove reference to CVS.
11159 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
11162 * config/mips/mips.c (gen_load_const_gp): New function, taking a
11164 (mips16_gp_pseudo_reg): ...here.
11165 * config/mips/mips.md (load_const_gp): Replace with...
11166 (load_const_gp_<mode>): ...this :P-based insn.
11168 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11170 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
11171 options. Minor fixes.
11172 (-std): Move reference to standards closer to where language
11173 standards are first mentioned.
11175 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
11177 PR rtl-optimization/34995
11178 * reload.c (alternative_allows_const_pool_ref): Take an rtx
11179 parameter and return a bool. If the rtx parameter is nonnull,
11180 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
11181 (find_reloads): Update call accordingly. Pass the new operand
11182 if it needed no address reloads, otherwise pass null.
11184 2008-01-30 Richard Henderson <rth@redhat.com>
11187 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
11188 for unbounded arrays.
11190 2008-01-30 Silvius Rus <rus@google.com>
11192 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
11194 2008-01-30 Jan Hubicka <jh@suse.cz>
11197 * i386.c (init_cumulative_args): Use real function declaration when
11200 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
11202 PR rtl-optimization/34998
11203 * global.c (build_insn_chain): Treat non-subreg_lowpart
11204 SUBREGs of pseudos as clobbering all the words covered by the
11205 SUBREG, not just all the bytes.
11206 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
11207 original df_ref rather than an extract parameter.
11208 (global_conflicts): Update call accordingly.
11210 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
11212 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
11213 the overflow check to make it easier to read.
11214 (__fixtfdi): Change the type of the ll member in union
11215 long_double to UDItype_x.
11217 2008-01-30 Jakub Jelinek <jakub@redhat.com>
11219 PR middle-end/34969
11220 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
11221 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
11222 * tree-inline.c (fold_marked_statements): Call
11223 cgraph_update_edges_for_call_stmt if folding a call statement.
11224 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
11225 debug_generic_stmt calls, reset it back afterwards.
11228 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
11230 * c-typeck.c (build_external_ref): Don't pedwarn about
11231 static vars in current function's scope.
11233 2008-01-29 Joseph Myers <joseph@codesourcery.com>
11235 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
11237 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
11240 * ipa-struct-reorg.c: Fix spelling.
11241 * params.def: Ditto.
11243 2008-01-29 Richard Guenther <rguenther@suse.de>
11245 PR middle-end/35006
11246 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
11248 * tree-inline.c (remap_type): Increment remapping_type_depth
11249 around remapping types.
11250 (copy_body_r): Only add referenced variables if they are referenced
11251 from code, not types.
11253 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
11264 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
11265 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
11267 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
11270 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
11271 pointer for tiny stack.
11273 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
11275 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
11277 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
11279 * config/vx-common.h: Fix typo in comment.
11281 2008-01-28 Ian Lance Taylor <iant@google.com>
11285 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11286 coalesce pointers if they have different DECL_NO_TBAA_P values.
11287 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
11288 between variables with different DECL_NO_TBAA_P values.
11290 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
11293 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
11294 are not legitimate small data references on SPE targets.
11296 2008-01-28 David Daney <ddaney@avtrex.com>
11298 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
11300 2008-01-28 David Daney <ddaney@avtrex.com>
11302 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
11304 2008-01-27 Joseph Myers <joseph@codesourcery.com>
11306 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
11307 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
11308 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
11309 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
11310 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
11311 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
11312 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
11313 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
11315 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
11317 * basic-block.h (condjump_equiv_p): Fix comment.
11319 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
11321 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
11322 print_generic_stmt_indented): Fix comment.
11324 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
11326 * configure.ac (__stack_chk_fail): Add detecion for availability
11327 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
11328 * configure: Regenerate.
11330 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
11332 PR middle-end/34688
11333 * final.c (output_addr_const): Handle TRUNCATE.
11335 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
11338 * tree-ssa-loop-ivopts.c (comp_cost): New type.
11339 (zero_cost, infinite_cost): New constants.
11340 (struct cost_pair): Change type of cost to comp_cost.
11341 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
11342 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
11344 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
11345 split_address_cost, ptr_difference_cost, difference_cost,
11346 get_computation_cost_at, get_computation_cost,
11347 determine_use_iv_cost_generic, determine_use_iv_cost_address,
11348 determine_use_iv_cost_condition, determine_use_iv_costs,
11349 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
11350 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
11351 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
11352 Change type of cost to comp_cost.
11353 (determine_iv_cost): Increase cost of non-original ivs, instead
11354 of decreasing the cost of original ones.
11355 (get_address_cost): Indicate the complexity of the addressing mode
11357 (try_add_cand_for): Prefer using ivs not specific to some object.
11358 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
11360 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
11361 Janis Johnson <janis187@us.ibm.com>
11364 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
11365 (TARGET_INSTANTIATE_DECLS): Likewise.
11366 * target.h (expand_to_rtl_hook): New target hook.
11367 (instantiate_decls): Likewise.
11368 * function.c (instantiate_decl): Make non-static. Rename to...
11369 (instantiate_decl_rtl): ... this.
11370 (instantiate_expr): Use instantiate_decl_rtl.
11371 (instantiate_decls_1): Likewise.
11372 (instantiate_decls): Likewise.
11373 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
11374 * function.h (instantiate_decl_rtl): Add prototype.
11375 * cfgexpand.c (target.h): New include.
11376 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
11377 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
11378 (TARGET_INSTANTIATE_DECLS): Likewise.
11379 (TARGET_INITIALIZER): New target hooks added.
11380 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
11382 * config/rs6000/rs6000.c (tree-flow.h): New include.
11383 (machine_function): Add sdmode_stack_slot field.
11384 (rs6000_alloc_sdmode_stack_slot): New function.
11385 (rs6000_instantiate_decls): Likewise.
11386 (rs6000_secondary_memory_needed_rtx): Likewise.
11387 (rs6000_check_sdmode): Likewise.
11388 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
11389 (TARGET_INSTANTIATE_DECLS): Likewise.
11390 (rs6000_hard_regno_mode_ok): Allow SDmode.
11391 (num_insns_constant): Likewise. Handle _Decimal32 constants.
11392 (rs6000_emit_move): Handle SDmode.
11393 (function_arg_advance): Likewise.
11394 (function_arg): Likewise.
11395 (rs6000_gimplify_va_arg): Likewise. Add special handling of
11396 SDmode var args for 32-bit compiles.
11397 (rs6000_secondary_reload_class): Handle SDmode.
11398 (rs6000_output_function_epilogue): Likewise.
11399 (rs6000_function_value): Simplify if statement.
11400 (rs6000_libcall_value): Likewise.
11401 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
11402 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
11403 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
11404 (movsd_hardfloat): New define_insn.
11405 (movsd_softfloat): Likewise.
11406 (movsd_store): Likewise.
11407 (movsd_load): Likewise.
11408 (extendsddd2): Likewise.
11409 (extendsdtd2): Likewise.
11410 (truncddsd2): Likewise.
11411 (movdd_hardfloat64): Fixup comment.
11412 (UNSPEC_MOVSD_LOAD): New constant.
11413 (UNSPEC_MOVSD_STORE): Likewise.
11415 2008-01-26 Jakub Jelinek <jakub@redhat.com>
11418 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
11420 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
11421 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
11422 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
11423 and TRUTH_XOR_EXPR.
11425 2008-01-26 David Edelsohn <edelsohn@gnu.org>
11428 * config.gcc: Separate AIX 5.3 from AIX 6.1.
11429 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11430 __LONGDOUBLE128 too.
11431 * config/rs6000/aix61.h: New file.
11433 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
11435 PR rtl-optimization/34959
11436 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
11437 popcount and parity rtxes the same mode as their operand.
11438 Truncate or extend the result to the return value's mode
11441 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
11444 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
11445 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
11446 to GOT_VERSION_REGNUM.
11447 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
11448 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
11449 * config/mips/mips.c (mips_emit_call_insn): New function.
11450 (mips_call_tls_get_addr): Call mips_expand_call directly.
11451 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
11453 (mips16_build_call_stub): Likewise. Return the call insn or null.
11454 (mips_expand_call): Update the call to mips16_build_call_stub
11455 accordingly and a remove redundant condition. Assert that MIPS16
11456 stubs do not use lazy binding. Use mips_emit_call_insn and return
11458 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
11460 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
11461 (mips_avoid_hazard): Remove hazard_set handling.
11462 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
11463 (UNSPEC_RESTORE_GP): ...this.
11464 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
11465 (FAKE_CALL_REGNO): Rename to...
11466 (GOT_VERSION_REGNUM): ...this.
11467 (type): Add "ghost" value. Add an associated insn reservation.
11468 (hazard_set): Remove.
11469 (exception_receiver): Rename to...
11470 (restore_gp): ...this and update the unspec identifier accordingly.
11471 (exception_receiver, nonlocal_got_receiver): New expanders.
11472 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
11473 FAKE_CALL_REGNO. Remove hazard_set attribute.
11474 (set_got_version, update_got_version): New patterns.
11476 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
11479 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
11481 2008-01-25 Joseph Myers <joseph@codesourcery.com>
11484 * doc/install.texi2html: Generate gcc-vers.texi.
11486 2008-01-25 DJ Delorie <dj@redhat.com>
11488 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11490 2008-01-25 Joseph Myers <joseph@codesourcery.com>
11492 * config/c4x: Remove directory.
11493 * config.gcc (crx-*, mt-*): Mark obsolete.
11494 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
11495 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
11496 sh-*-rtemscoff*): Remove cases.
11497 * defaults.h (C4X_FLOAT_FORMAT): Remove.
11498 * real.c (encode_c4x_single, decode_c4x_single,
11499 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
11500 c4x_extended_format): Remove.
11501 * real.h (c4x_single_format, c4x_extended_format): Remove.
11502 * doc/extend.texi (interrupt, naked): Remove mention of attributes
11504 (Pragmas): Remove comment about c4x pragmas.
11505 * doc/install.texi (c4x): Remove target-specific instructions.
11506 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
11507 * doc/md.texi (Machine Constraints): Remove C4x documentation.
11508 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
11509 refer to C4x source files as examples.
11510 (C4X_FLOAT_FORMAT): Remove documentation.
11512 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
11514 * config/bfin/bfin.c (override_options): Reorder tests so that
11515 flag_pic gets enabled for -msep-data.
11517 2008-01-25 Richard Guenther <rguenther@suse.de>
11519 PR middle-end/32244
11520 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
11521 to its bitfield precision if required.
11523 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11525 PR middle-end/33880
11526 * tree-nested.c (walk_omp_for): New function.
11527 (convert_nonlocal_reference, convert_local_reference): Call
11528 walk_omp_for on OMP_FOR.
11529 (convert_call_expr): Call walk_body on OMP_FOR's
11530 OMP_FOR_PRE_INIT_BODY.
11532 2008-01-25 Richard Guenther <rguenther@suse.de>
11534 PR tree-optimization/34966
11535 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
11536 default defs and PHI_NODEs we have to insert after the
11537 defining statement.
11539 2008-01-24 Nick Clifton <nickc@redhat.com>
11541 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
11542 Provide a default definition.
11543 (LIBGCC2_UNITS_PER_WORD): Likewise.
11545 * config/stormy16/stormy16.c: Include df.h for the prototype
11546 for df_regs_ever_live_p.
11547 (xstormy16_expand_builtin_va_start): Convert the stack offset
11548 into a component_ref and then use POINTER_PLUS_EXPR to add it
11549 to the incoming_virtual_args_rtx.
11550 (xstormy16_gimplify_va_arg_expr): Rename to
11551 xstormy16_gimplify_va_arg_expr.
11552 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
11553 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
11554 xstormy16_gimplify_va_arg_expr.
11555 Fix up some formatting issues.
11557 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
11558 Move to predicates.md.
11559 (xs_hi_general_operand): Likewise.
11560 (xs_hi_nonmemory_operand): Likewise.
11561 * config/stormy16/predicates.md:
11562 (xstormy16_carry_plus_operand): New predicate.
11563 (xs_hi_general_operand): New predicate.
11564 (xs_hi_nonmemory_operand): New predicate.
11565 * config/stormy16/stormy16-protos.h:
11566 (xstormy16_carry_plus_operand): Delete prototype.
11567 (xs_hi_general_operand): Likewise.
11568 (xs_hi_nonmemory_operand): Likewise.
11570 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
11571 modifiers as they are no longer needed and they can trigger
11572 reload spill failures.
11574 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
11575 with a match_operand in order to help reload.
11577 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
11578 constraint with 'e' for the 8th alternative as this version of
11579 the mov.w instruction only accepts the lower 8 registers.
11581 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
11584 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
11585 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
11588 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11590 PR middle-end/33333
11591 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
11593 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
11595 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
11597 (remove_structure): Update allocations list before removing structure.
11599 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
11601 * ipa-struct-reorg.c (is_safe_cond_expr,
11602 create_new_stmts_for_cond_expr): Use integer_zerop function,
11603 that recognize not only zero-pointer, but zero-integer too.
11605 2008-01-25 Ben Elliston <bje@au.ibm.com>
11608 * fixproto: Escape "." in sed expression that strips leading "./".
11610 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
11613 * gcc.c (SWITCH_OK): Removed.
11614 (SWITCH_LIVE): Changed to bit.
11615 (SWITCH_FALSE): Likewise.
11616 (SWITCH_IGNORE): Likewise.
11617 (switchstr): Change live_cond to unsigned int.
11618 (process_command): Replace SWITCH_OK with 0.
11619 (do_self_spec): Likewise.
11620 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
11621 (give_switch): Likewise.
11622 (used_arg): Likewise.
11623 (do_spec_1): Set the SWITCH_IGNORE bit.
11624 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
11625 bits. Set the SWITCH_LIVE bit.
11627 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
11629 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
11631 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
11633 PR tree-optimization/34472
11634 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
11635 parameter to a "bool *" and set *DATA to false if there is
11636 an unsafe access. Do not delete the structure here.
11637 (check_cond_exprs): Delete it here instead.
11638 (check_cond_exprs, exclude_cold_structs): Do not increase
11639 I when removing a structure.
11641 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
11644 * config/i386/i386.c (ix86_expand_vector_init): Consider only
11645 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
11647 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
11649 PR middle-end/34934
11650 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
11651 a fixed vector for stack.
11653 2008-01-24 Ben Elliston <bje@au.ibm.com>
11656 * doc/gcc.texi (Software development): Add a direntry for g++.
11658 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
11660 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
11661 stale and straggling -fforce-addr comments above.
11663 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
11665 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
11666 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
11668 2008-01-23 Michael Matz <matz@suse.de>
11671 * dwarf2out.c (force_type_die): Use modified_type_die instead of
11674 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
11676 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
11677 malloc result type.
11679 2008-01-23 Anatoly Sokolov <aesok@post.ru>
11681 * config/avr/avr.c (avr_current_arch): New variable.
11682 (avr_arch_types): Add 'avr31' and 'avr51' entries.
11683 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
11684 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
11685 (avr_override_options): Init 'avr_current_arch'.
11686 (base_arch_s): Move from here...
11687 * config/avr/avr.h (base_arch_s): ... here. Add new members
11688 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
11689 'mega' to 'have_jmp_call'.
11690 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
11691 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
11693 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
11695 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
11696 MULTILIB_MATCHES): (Ditto.).
11698 2008-01-23 Richard Guenther <rguenther@suse.de>
11700 PR middle-end/31529
11701 * cgraphunit.c (cgraph_reset_node): Always mark the node
11702 not reachable if it is not queued already.
11704 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
11706 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
11707 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
11708 (cputype_selected): New static variable.
11709 (bfin_handle_option): Set it if -mcpu is used.
11710 (override_option): Select default set of workarounds if no cpu type
11711 selected on the command line.
11712 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
11714 From Michael Frysinger <michael.frysinger@analog.com>
11715 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
11716 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
11718 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
11719 for bf547, bf523, bf524, and bf526.
11720 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
11722 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11723 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
11724 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
11725 __ADSPBF547__ and __ADSPBF54x__ for bf547.
11726 * doc/invoke.texi (Blackfin Options): Document that
11727 -mcpu now accept bf547, bf523, bf524, and bf526.
11729 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
11731 PR rtl-optimization/34628
11732 * combine.c (try_combine): Stop and undo after the first combination
11733 if an autoincrement side-effect on the first insn has effectively
11736 2008-01-22 David Edelsohn <edelsohn@gnu.org>
11739 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
11740 Offset addresses are not valid for Altivec or paired float modes.
11742 2008-01-22 Jakub Jelinek <jakub@redhat.com>
11745 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
11746 if DECL_INITIAL (decl) is error_mark_node.
11749 * c-common.c (handle_vector_size_attribute): Only allow
11750 integral, scalar float and fixed point types. Handle OFFSET_TYPE
11751 the same way as pointer, array etc. types.
11752 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
11755 * tree.c (build_type_attribute_qual_variant): Call
11756 build_qualified_type if attributes are equal, but quals are not.
11758 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11761 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
11762 * flags.h (warn_strict_aliasing): Remove.
11763 (warn_strict_overflow): Remove.
11764 * opts.c (warn_strict_aliasing): Remove.
11765 (warn_strict_overflow): Remove.
11766 * c-opts.c (c_common_handle_option): -Wall only sets
11767 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
11768 (c_common_post_options): Give default values to -Wstrict-aliasing
11769 and -Wstrict-overflow if they are uninitialized.
11770 * common.opt (Wstrict-aliasing): Specify Var and Init.
11771 (Wstrict-overflow): Likewise.
11773 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
11775 PR rtl-optimization/26854
11776 PR rtl-optimization/34400
11777 PR rtl-optimization/34884
11778 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
11780 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
11781 (df_rd_bb_info.expanded_lr_out): Deleted
11782 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
11783 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
11784 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
11785 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
11786 Removed code to allocate, initialize or free expanded_lr_out.
11787 (df_rd_bb_local_compute_process_def): Restructured to make more
11789 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
11790 sets if the sets are being trimmed.
11792 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
11795 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
11796 (as_vers): Likewise.
11797 * configure: Regenerated.
11799 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11801 PR middle-end/33092
11802 * tree-pass.h (pass_build_alias): New pass.
11803 * tree-ssa-alias.c (gate_build_alias): New.
11804 (pass_build_alias): New.
11805 * passes.c (init_optimization_passes): Add pass_build_alias after
11806 pass_create_structure_vars.
11808 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
11810 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
11811 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
11812 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
11813 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
11814 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
11815 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
11816 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
11817 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
11818 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
11819 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
11820 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
11821 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
11822 * config/s390/s390.md (FP_ALL): New mode iterator.
11823 (_d): New mode attribute.
11824 ("*signbit<mode>2>"): Changed mode of first operand.
11825 ("isinf<mode>2"): Changed mode of first operand.
11826 ("*TDC_insn"): Adaptation for DFP modes.
11828 2008-01-22 Ben Elliston <bje@au.ibm.com>
11830 * tree.c (check_qualified_type): Improve function description.
11832 2008-01-21 Jason Merrill <jason@redhat.com>
11835 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
11836 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
11839 2008-01-21 DJ Delorie <dj@redhat.com>
11841 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
11844 2008-01-21 Richard Guenther <rguenther@suse.de>
11846 PR middle-end/34856
11847 * tree-cfg.c (verify_expr): Allow all invariant expressions
11848 instead of just constant class ones as reference argument.
11849 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
11850 like any other constant.
11851 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11853 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
11855 * regmove.c (fixup_match_1): Update call crossed frequencies.
11857 2008-01-21 Richard Guenther <rguenther@suse.de>
11860 * tree-inline.c (setup_one_parameter): Deal with mismatched
11861 types using a VIEW_CONVERT_EXPR.
11863 2008-01-21 Alon Dayan <alond@il.ibm.com>
11864 Olga Golovanevsky <olga@il.ibm.com>
11866 PR tree-optimization/34701
11867 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
11868 when the structure size is not a power of 2.
11870 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
11872 * doc/install.texi: Add doc for --enable-checking=df.
11874 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
11876 PR rtl-optimization/34808
11877 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
11879 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
11881 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
11884 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
11886 PR rtl-optimization/26854
11887 PR rtl-optimization/34400
11888 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
11890 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
11891 (df_rd_bb_info.expanded_lr_out): New.
11892 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
11893 * loop_iv.c (iv_analysis_loop_init): Ditto.
11894 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
11895 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
11896 Added code to allocate, initialize or free expanded_lr_out.
11897 (df_rd_bb_local_compute_process_def): Restructured to make
11898 more understandable.
11899 (df_rd_confluence_n): Add code to do nothing with fake edges and
11900 code to no apply invalidate_by_call sets if the sets are being trimmed.
11901 (df_lr_local_finalize): Renamed to df_lr_finalize.
11902 (df_live_local_finalize): Renamed to df_live_finalize.
11904 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
11907 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
11908 deciding whether to use reciprocal instructions.
11910 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
11912 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
11913 dwarf2out_note_section_used if cold_text_section is NULL.
11915 2008-01-19 Jakub Jelinek <jakub@redhat.com>
11917 PR gcov-profile/34610
11918 * tree-cfg.c (make_edges): Mark both outgoing edges from
11919 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
11920 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
11921 from OMP_FOR and OMP_CONTINUE outgoing edges.
11923 * tree-profile.c (tree_profiling): Return early if
11924 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
11926 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
11927 from cfun to child_cfun.
11928 * function.h (struct function): Add after_tree_profile bit.
11930 2008-01-19 Anatoly Sokolov <aesok@post.ru>
11932 * config/avr/avr.S (_exit): Disable interrupt.
11934 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
11935 Steven Bosscher <stevenb.gcc@gmail.com>
11937 PR rtl-optimization/26854
11938 PR rtl-optimization/34400
11939 * df-problems.c (df_live_scratch): New scratch bitmap.
11940 (df_live_alloc): Allocate df_live_scratch when doing df_live.
11941 (df_live_reset): Clear the proper bitmaps.
11942 (df_live_bb_local_compute): Only process the artificial defs once
11943 since the order is not important.
11944 (df_live_init): Init the df_live sets only with the variables
11945 found live by df_lr.
11946 (df_live_transfer_function): Use the df_lr sets to prune the
11947 df_live sets as they are being computed.
11948 (df_live_free): Free df_live_scratch.
11950 2008-01-18 Ian Lance Taylor <iant@google.com>
11952 * common.opt: Add fmerge-debug-strings.
11953 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
11954 flag_merge_debug_strings rather than flag_merge_constants.
11955 * doc/invoke.texi (Option Summary): Mention
11956 -fmerge-debug-strings.
11957 (Debugging Options): Document -fmerge-debug-strings.
11959 2008-01-18 Ian Lance Taylor <iant@google.com>
11962 * tree.h (DECL_IS_OPERATOR_NEW): Define.
11963 (struct tree_function_decl): Add new field operator_new_flag.
11964 * tree-inline.c (expand_call_inline): When inlining a call to
11965 operator new, force the return value to go into a variable, and
11966 set DECL_NO_TBAA_P on that variable.
11967 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
11969 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
11972 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
11973 DWARF2_DEBUGGING_INFO.
11974 (dwarf2out_note_section_used): Ditto. Add prototype.
11975 (have_multiple_function_sections, text_section_used,
11976 cold_text_section_used, *cold_text_sections): Move declarations
11979 2008-01-17 Bob Wilson <bob.wilson@acm.org>
11981 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
11982 field and add signal_ra.
11983 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
11984 assignments to frame state pc. Move end of stack check after
11985 MD_FALLBACK_FRAME_STATE_FOR.
11986 (uw_update_context_1): Use frame state signal_regs if set, instead
11987 of checking signal_frame flag.
11988 (uw_update_context): Use frame state signal_ra if set.
11989 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
11990 * config/xtensa/linux-unwind.h: New file.
11992 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
11994 * modulo-sched.c (get_sched_window): Fix comment typo.
11996 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
11998 PR tree-optimization/34648
11999 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
12001 2008-01-17 Anatoly Sokolov <aesok@post.ru>
12003 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
12004 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
12006 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
12008 PR rtl-optimization/34400
12009 * df-core.c (df_worklist_dataflow_overeager,
12010 df_worklist_dataflow_doublequeue): New functions.
12011 (df_worklist_dataflow): Two different worklist solvers.
12012 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
12015 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
12018 * doc/invoke.texi: Document the dependence on pthread for fopenmp
12019 and ftree-parallelize-loops.
12021 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
12023 PR rtl-optimization/34826
12024 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
12026 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
12028 * global.c (find_reg): Mark the eh regs as used if necessary.
12029 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
12030 * ra.h (struct allocno): no_eh_reg field added. Changed
12031 no_stack_reg type to bitfield.
12033 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
12035 * tree.c (substitute_in_expr): Add missing 'break'.
12037 2008-01-17 Richard Guenther <rguenther@suse.de>
12039 PR tree-optimization/34825
12040 * tree-ssa-math-opts.c (is_division_by): Do not recognize
12041 x / x as division to handle.
12043 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12045 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
12046 "-pthread" is specified.
12047 * pa-hpux11.h (LIB_SPEC): Likewise.
12049 2008-01-16 Janis Johnson <janis187@us.ibm.com>
12050 Peter Bergner <bergner@vnet.ibm.com>
12052 PR rtl-optimization/33796
12053 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
12055 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12057 PR libgfortran/34699
12058 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
12060 * pa-hpux10.h (LINK_SPEC): Likewise.
12061 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
12063 2008-01-16 Richard Guenther <rguenther@suse.de>
12065 PR middle-end/32628
12066 * fold-const.c (fold_convert_const_int_from_int): Do not
12067 set overflow if that occured only because of a sign extension
12068 change when converting from/to a sizetype with the same
12069 precision and signedness.
12071 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
12074 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
12075 location address to the correct place. Update copyright year.
12077 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
12079 * lambda-code.c (lambda_transform_legal_p): Handle the case of
12080 no dependences in the dependence_relations vector.
12082 2008-01-16 Jan Hubicka <jh@suse.cz>
12084 PR rtl-optimization/31396
12085 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
12086 * cfg.c (dump_reg_info): Print it.
12087 * regs.h (struct reg_info_t): add freq_calls_crossed.
12088 (REG_FREQ_CALLS_CROSSED): New macro.
12089 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
12090 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
12091 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
12092 regmove_optimize): Update call crossed frequencies.
12093 * local-alloc.c (struct qty): Add freq_calls_crossed.
12094 (alloc_qty): Copute freq_calls_crossed.
12095 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
12096 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
12097 * ra.h (struct allocno): Add freq_calls_crossed.
12099 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
12101 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
12102 libgomp when compiling with ftree-parallelize-loops.
12103 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
12105 2008-01-16 Richard Guenther <rguenther@suse.de>
12107 PR tree-optimization/34769
12108 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
12109 * tree.c (int_cst_value): Instead make this function more
12110 permissive in what it accepts as valid input. Document this
12111 function always sign-extends the value.
12113 2008-01-16 Jakub Jelinek <jakub@redhat.com>
12114 Richard Guenther <rguenther@suse.de>
12117 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
12118 (gimple_fold_indirect_ref_rhs): ... this.
12119 (gimple_fold_indirect_ref): New function with foldings
12120 that preserve lvalueness.
12121 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
12122 * tree-flow.h (gimple_fold_indirect_ref): Declare.
12123 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
12124 to fold an INDIRECT_REF, fall back to the old use of
12125 fold_indirect_ref_1.
12127 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
12129 * tree-data-ref.c (subscript_dependence_tester_1): Call
12130 free_conflict_function.
12131 (compute_self_dependence): Same.
12133 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
12136 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
12137 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
12139 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
12140 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
12141 for DWARF2_UNWIND_INFO targets.
12143 2008-01-16 Richard Guenther <rguenther@suse.de>
12146 * c-typeck.c (common_pointer_type): Do not merge inconsistent
12147 type qualifiers for function types.
12149 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
12151 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
12152 loop_iterator li from previous commit.
12154 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
12156 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
12158 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
12160 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
12161 (parallelize_loops): Don't parallelize irreducible components.
12163 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
12166 * c-opts (c_common_post_options): Do not enable CPP
12167 flag_pedantic_errors by default.
12169 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
12171 PR rtl-optimization/31944
12172 * cse.c (remove_pseudo_from_table): New function.
12173 (merge_equiv_classes): Use above function to remove pseudo-registers.
12174 (invalidate): Likewise.
12176 2008-01-13 Richard Guenther <rguenther@suse.de>
12178 PR middle-end/34601
12179 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
12180 instead of TYPE_MODE to deal with calls from expand_one_error_var.
12182 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
12184 * gcse.c (cprop_jump): Call validate_unshare_change instead of
12185 validate_change to unshare the source of the PC set.
12187 2008-01-12 Jan Hubicka <jh@suse.cz>
12189 PR middle-end/32135
12190 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
12191 references above array bounds. This might trigger bounds checks for
12192 pointers to arrays.
12194 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
12196 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
12197 new_replaceable_dependencies.
12199 2008-01-12 Doug Kwan <dougkwan@google.com>
12201 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
12202 instead of OPT_Wreturn_type in warning due to ignored return type
12204 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
12205 options included in -Wextra.
12206 * c.opt: New option -Wignored_qualifiers.
12207 * doc/invoke.texi (Warning Options, -Wextra): Add new option
12208 -Wignore_qualifiers.
12209 (-Wignored-qualifiers): Document.
12210 (-Wreturn-type): Remove description of functionality now handled
12211 by -Wignored-qualifiers.
12213 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
12216 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
12217 NOP_EXPR if it is between integral types with the same precision.
12219 2008-01-12 Jan Hubicka <jh@suse.cz>
12222 * invoke.texi (max-inline-recursive-depth): Fix default value.
12224 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
12226 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
12229 2008-01-11 Bob Wilson <bob.wilson@acm.org>
12231 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
12233 2008-01-11 James E. Wilson <wilson@specifix.com>
12236 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
12238 2008-01-11 Anatoly Sokolov <aesok@post.ru>
12240 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
12241 save/restore frame pointer register and don't use 'call-prologues'
12242 optimization in function with "OS_task" attribute.
12244 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
12246 PR middle-end/31309
12247 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
12248 when copying to memory.
12250 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
12252 PR rtl-optimization/30905
12253 * cfgcleanup.c: Include dce.h
12254 (crossjumps_occured): New global variable.
12255 (try_crossjump_bb): Exit loop after finding a fallthru edge.
12256 If something changed, set crossjumps_occured to true.
12257 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
12258 Don't add/remove fake edges to exit here...
12259 (cleanup_cfg): ...but do it here, when crossjumping.
12260 Run a fast DCE when successful crossjumps occured in the latest
12261 iteration of try_optimize_cfg.
12263 2008-01-11 Richard Guenther <rguenther@suse.de>
12265 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
12266 (struct vn_unary_op_s): Likewise.
12267 (vn_reference_insert): Free old reference on hash collision.
12269 2008-01-10 Raksit Ashok <raksit@google.com>
12271 PR rtl-optimization/27971
12272 * combine.c (find_split_point): Split PLUS expressions which are
12273 inside a MEM rtx, and whose first operand is complex.
12275 2008-01-10 DJ Delorie <dj@redhat.com>
12277 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
12278 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
12279 (m32c_hard_regno_ok): Call the underlying function.
12281 2008-01-10 Richard Guenther <rguenther@suse.de>
12283 PR middle-end/34683
12284 * tree-cfg.c (tree_merge_blocks): Do not go through the
12285 full-blown folding and stmt updating path if we just deal
12286 with virtual operands.
12287 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
12288 test for abnormal SSA_NAMEs.
12290 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
12292 PR middle-end/34641
12293 * reload.c (push_reload): Add assertions. All constants from
12294 reg_equiv_constant should have been used for replacing the respective
12296 (find_reloads_address): Invoke find_reloads_address_part for
12297 constant taken from the reg_equiv_constant array.
12299 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
12301 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
12302 field (valnum) the first in the struct. Replace bools with
12305 2008-01-10 Richard Guenther <rguenther@suse.de>
12307 PR tree-optimization/34651
12308 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
12309 types and ordering for masking and converting.
12311 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
12313 PR tree-optimization/34017
12314 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
12315 also for PHI_NODE expressions.
12317 2008-01-09 Jan Hubicka <jh@suse.cz>
12319 PR tree-optimization/34708
12320 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
12321 based on number of case labels.
12322 (init_inline_once): Remove switch_cost.
12323 * tree-inline.h (eni_weights_d): Remove switch_cost.
12325 2008-01-09 Richard Guenther <rguenther@suse.de>
12326 Andrew Pinski <andrew_pinski@playstation.sony.com>
12328 PR middle-end/30132
12329 * gimplify.c (gimplify_cond_expr): Do not create an addressable
12330 temporary if an rvalue is ok or an lvalue is not required.
12332 2008-01-09 Richard Guenther <rguenther@suse.de>
12334 PR middle-end/34458
12335 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
12336 adjust return type.
12338 2008-01-09 Richard Guenther <rguenther@suse.de>
12340 PR middle-end/34679
12341 * tree.c (host_integerp): Check for sizetype only if the
12342 type is an integer type.
12344 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
12347 * opts.c (decode_options): Disable inlining of functions called
12348 once if not in unit-at-a-time mode.
12350 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
12352 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
12354 2008-01-08 Richard Guenther <rguenther@suse.de>
12356 PR middle-end/31863
12357 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
12358 out early if the result will be unused.
12360 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
12365 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
12366 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
12369 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
12371 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
12372 for vectorization tuned.
12374 2008-01-08 Richard Guenther <rguenther@suse.de>
12376 PR tree-optimization/34683
12377 * tree-ssa-operands.c (operand_build_cmp): Export.
12378 * tree-ssa-operands.h (operand_build_cmp): Declare.
12379 * tree-vn.c (vuses_compare): Remove.
12380 (sort_vuses): Use operand_build_cmp.
12381 (sort_vuses_heap): Likewise.
12382 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
12383 to re-use old VEC if available. Do not sort already sorted VUSEs.
12384 (vdefs_to_vec): Do not sort already sorted VDEFs.
12386 2008-01-08 Jakub Jelinek <jakub@redhat.com>
12388 PR middle-end/34694
12389 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
12391 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
12394 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
12395 limitations of reciprocal sequences on x86 targets.
12397 2008-01-08 Richard Guenther <rguenther@suse.de>
12399 PR tree-optimization/34683
12400 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
12402 2008-01-07 Jakub Jelinek <jakub@redhat.com>
12405 * config/darwin.c (darwin_mergeable_string_section): Don't use
12406 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
12408 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
12411 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
12412 negxf2. Macroize expander using X87MODEF mode iterator. Change
12413 predicates of op0 and op1 to register_operand.
12414 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
12415 expander using X87MODEF mode iterator. Change predicates of
12416 op0 and op1 to register_operand.
12417 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
12418 corresponding patterns and macroize using MODEF macro. Change
12419 predicates of op0 and op1 to register_operand and remove
12420 "m" constraint. Disparage "r" alternative with "!".
12421 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
12422 macroize using X87MODEF macro. Change predicates of op0 and op1
12423 to register_operand and remove "m" constraint. Disparage "r"
12424 alternative with "!".
12425 (absneg splitter with memory operands): Remove.
12426 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
12427 patterns and macroize using X87MODEF mode iterator.
12428 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
12429 Change predicate of op1 to register_operand.
12430 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
12431 for memory operands.
12433 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
12435 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
12437 2008-01-07 Richard Guenther <rguenther@suse.de>
12439 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
12442 2008-01-07 Richard Guenther <rguenther@suse.de>
12444 PR tree-optimization/34683
12445 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
12446 VOPs of the needed size to save memory. Use VEC_quick_push
12447 to save compile-time.
12448 (vdefs_to_vec): Likewise.
12450 2008-01-07 Sa Liu <saliu@de.ibm.com>
12452 * config/spu/spu.md (divdf3): Genetate inline code for double
12453 division. The implementation doesn't handle INF or NAN, therefore it
12454 only applies when -ffinite-math-only is given.
12456 2008-01-06 Paolo Carlini <pcarlini@suse.de>
12459 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
12460 * doc/cpp.texi ([Common Predefined Macros]): Document.
12462 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
12464 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
12465 order to use commutative addition instead of subtraction.
12467 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
12468 Mircea Namolaru <namolaru@il.ibm.com>
12469 Vladimir Yanovsky <yanov@il.ibm.com>
12470 Revital Eres <eres@il.ibm.com>
12472 PR tree-optimization/34263
12473 * tree-outof-ssa.c (process_single_block_loop_latch,
12474 contains_tree_r): New functions.
12475 (analyze_edges_for_bb): Call process_single_block_loop_latch
12476 function to empty single-basic-block latch block if possible.
12478 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
12480 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
12482 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
12484 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
12486 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
12488 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
12490 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
12492 2008-01-05 Jakub Jelinek <jakub@redhat.com>
12494 PR tree-optimization/34618
12495 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
12498 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
12501 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
12502 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
12503 Update copyright year.
12505 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
12506 Update copyright year.
12507 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
12510 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
12512 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
12513 edge does not point to current bb before changing need_assert.
12515 2008-01-04 Richard Guenther <rguenther@suse.de>
12517 PR middle-end/34029
12518 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
12519 for verifying purposes if they are is_gimple_min_invariant.
12521 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
12523 PR tree-optimization/34448
12524 PR tree-optimization/34465
12525 * gimplify.c (gimplify_init_constructor): Add new parameter
12526 notify_temp_creation. Use it.
12527 (gimplify_modify_expr_rhs): Take volatiles into account when
12528 optimizing constructors.
12529 Do not optimize constructors if gimplify_init_constructor will dump to
12531 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
12532 * gcc.c-torture/compile/pr34448.c: New.
12534 2008-01-04 Jakub Jelinek <jakub@redhat.com>
12536 PR gcov-profile/34609
12537 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
12538 return_slot if result is TREE_ADDRESSABLE.
12540 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
12542 * config/mips/mips.md (sqrt_condition): Tweak comment.
12543 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
12545 2008-01-03 Tom Tromey <tromey@redhat.com>
12548 * c-common.c (c_type_hash): Handle VLAs.
12550 2008-01-03 Jan Hubicka <jh@suse.cz>
12552 PR tree-optimization/31081
12553 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
12554 0 when inlining and not inlining to first basic block.
12555 (remap_decl): When var is initialized to 0, don't set default_def.
12556 (expand_call_inline): Set entry_bb.
12557 * tree-inline.h (copy_body_data): Add entry_bb.
12559 2008-01-03 Jakub Jelinek <jakub@redhat.com>
12562 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
12565 PR tree-optimization/29484
12566 * tree-inline.c (inline_forbidden_p_2): New function.
12567 (inline_forbidden_p): Disallow inlining if some static var
12568 has an address of a local LABEL_DECL in its initializer.
12569 * doc/extend.texi (Labels as Values): Document &&foo behaviour
12572 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
12574 PR tree-optimization/34635
12575 * tree-data-ref.c (add_other_self_distances): Make sure that the
12576 evolution step is constant.
12578 2008-01-03 Jakub Jelinek <jakub@redhat.com>
12580 PR middle-end/34608
12581 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
12583 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
12585 * tree-sra.c (scalarize_init): Insert the generate_element_init
12586 statements after the generate_element_zero statements.
12588 2008-01-02 Richard Guenther <rguenther@suse.de>
12590 PR middle-end/34093
12591 PR middle-end/31976
12592 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
12593 for very large number of operands instead of ICEing.
12595 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
12598 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
12599 while stack probing.
12601 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
12603 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
12606 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
12608 PR libmudflap/26442
12609 * tree-mudflap.c (mx_register_decls): Guard warning by
12610 !DECL_ARTIFICIAL check.
12612 2008-01-01 Jakub Jelinek <jakub@redhat.com>
12614 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
12615 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
12616 sse5_perm<mode>): Fix constraints.