1 2008-06-15 Mark Shinwell <shinwell@codesourcery.com>
2 Nathan Sidwell <nathan@codesourcery.com>
3 Maxim Kuvyrkov <maxim@codesourcery.com>
4 Richard Sandiford <rdsandiford@googlemail.com>
6 * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
7 * config/mips/mips-protos.h (mips_expand_vector_init): New.
8 * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
10 * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
11 (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
12 (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
14 (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
15 (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
16 (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
17 (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
18 (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
19 (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
20 (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
21 (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
22 (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
23 (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
24 (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
25 (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
26 (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
27 (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
28 (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
29 (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
30 (mips_builtins): Add Loongson builtins.
31 (mips_loongson_2ef_bdesc): New.
32 (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
33 (mips_builtin_vector_type): Handle unsigned versions of vector modes.
34 (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
35 (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
37 (mips_expand_vector_init): New.
38 * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
39 (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
41 * config/mips/mips.md: Add unspec numbers for Loongson
42 builtins. Include loongson.md.
43 (MOVE64): Include Loongson vector modes.
44 (SPLITF): Include Loongson vector modes.
45 (HALFMODE): Handle Loongson vector modes.
46 * config/mips/loongson.md: New.
47 * config/mips/loongson.h: New.
48 * config.gcc: Add loongson.h header for mips*-*-* targets.
49 * doc/extend.texi (MIPS Loongson Built-in Functions): New.
51 2008-06-14 Joseph Myers <joseph@codesourcery.com>
53 * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
54 h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
55 i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
56 iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
57 m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
58 m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
59 mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
60 mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
61 mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
62 mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
63 powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
64 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
65 sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
66 sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
67 sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
68 v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
69 Remove use_fixproto=yes.
70 (ia64*-*-hpux*): Remove comment about using fixproto.
71 (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
73 2008-06-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75 * configure.ac: Update gthr-default.h lazily, to avoid unneeded
77 * configure: Regenerate.
79 2008-06-13 Eric Botcazou <ebotcazou@adacore.com>
82 * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
85 2008-06-13 Jakub Jelinek <jakub@redhat.com>
88 * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
89 nested inline functions.
90 (start_decl, start_function): Don't invert DECL_EXTERNAL
91 for nested inline functions.
93 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
95 * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
96 splits that must be made for correctness.
98 2008-06-13 Richard Sandiford <rdsandiford@googlemail.com>
100 * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
101 (AVAIL_NON_MIPS16): Likewise.
102 (mips_builtin_description): Replace target_flags with a predicate.
103 (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
104 (dspr2_32): New availability predicates.
105 (MIPS_BUILTIN): New macro.
106 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
107 (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
108 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
109 Replace the TARGET_FLAGS parameters with AVAIL parameters.
110 (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
111 (mips_dsp_32only_bdesc): Merge into...
112 (mips_builtins): ...this new array.
113 (mips_bdesc_map, mips_bdesc_arrays): Delete.
114 (mips_init_builtins): Update after above changes.
115 (mips_expand_builtin_1): Merge into...
116 (mips_expand_builtin): ...here and update after above changes.
118 2008-06-12 Paul Brook <paul@codesourcery.com>
120 * longlong.h (__arm__): Define count_leading_zeros.
121 * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
122 (clzsi2, clzdi2): New functions.
123 * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
124 * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
125 * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
126 * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
127 * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
128 * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
129 * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
130 * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
131 * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
132 * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
134 2008-06-12 Kazu Hirata <kazu@codesourcery.com>
136 * config/m68k/m68k.c (m68k_tune_flags): New.
137 (override_options): Compute m68k_tune_flags.
138 (MULL_COST, MULW_COST): Update for various variants of CFV2.
139 * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
141 2008-06-12 Jakub Jelinek <jakub@redhat.com>
144 * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus
147 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
149 * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
150 TREE_THIS_VOLATILE on INDIRECT_REF nodes.
152 2008-06-12 Eric Botcazou <ebotcazou@adacore.com>
154 * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
155 (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
157 2008-06-12 Jakub Jelinek <jakub@redhat.com>
160 * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
163 2008-06-12 Richard Guenther <rguenther@suse.de>
165 PR tree-optimization/36345
166 * tree-flow.h (struct ptr_info_def): Align escape_mask,
167 add memory_tag_needed flag.
168 (may_alias_p): Declare.
169 * tree-ssa-alias.c (may_alias_p): Export.
170 (set_initial_properties): Use memory_tag_needed flag.
171 (update_reference_counts): Likewise.
172 (reset_alias_info): Reset memory_tag_needed flag.
173 (create_name_tags): Check memory_tag_needed flag.
174 (dump_points_to_info_for): Dump it.
175 * tree-ssa-structalias.c (struct variable_info): Remove
176 directly_dereferenced flag.
177 (new_var_info): Do not initialize it.
178 (process_constraint_1): Do not set it.
179 (update_alias_info): Set is_dereferenced flag.
180 (set_uids_in_ptset): Use may_alias_p.
181 (set_used_smts): Check memory_tag_needed flag.
182 (find_what_p_points_to): Likewise. Pass is_dereferenced flag.
183 * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
184 memory_tag_needed flag.
185 * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
188 2008-06-12 Kai Tietz <kai.tietz@onevision.com>
190 * config/i386/i386.c (ix86_compute_frame_layout): Disable red zone for
192 (ix86_expand_prologue): Likewise.
193 (ix86_force_to_memory): Likewise.
194 (ix86_free_from_memory): Likewise.
196 2008-06-11 Edmar Wienskoski <edmar@freescale.com>
199 * config/rs6000/rs6000.c (rs6000_override_options): Set
200 rs6000_isel conditionally to the absence of comand line
202 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
203 Remove duplicate rs6000_isel setting.
204 * config/rs6000/eabispe.h: Ditto.
206 2008-06-11 Richard Guenther <rguenther@suse.de>
208 * alias.c (get_alias_set): Use the element alias-set for arrays.
209 (record_component_aliases): For arrays and vectors do nothing.
210 * c-common.c (strict_aliasing_warning): Handle the cases
211 of alias set zero explicitly.
212 * Makefile.in (dfp.o-warn): Add -Wno-error.
214 2008-06-11 Joseph Myers <joseph@codesourcery.com>
216 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
218 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
219 tune_32 tune_64 to supported_defaults. Allow values not
220 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
221 x86_64. Do not override cpu_32 or cpu_64 values from target name.
222 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
223 with_cpu_64 to generic for 64-bit-supporting configurations, not
224 with_cpu. Remove FIXMEs.
225 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
226 --with-arch-64, --with-tune-32, --with-tune-64): Document.
227 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
228 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
231 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
232 Olivier Hainque <hainque@adacore.com>
234 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
235 Use DECL_SIZE_UNIT to retrieve the size of the field.
237 2008-06-11 Joseph Myers <joseph@codesourcery.com>
239 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
240 with function calls after declarations. Lay out
241 neon_float_type_node before further use.
243 2008-06-11 Richard Guenther <rguenther@suse.de>
245 * tree-flow.h (may_point_to_global_var): Declare.
246 * tree-ssa-alias.c (may_point_to_global_var): New function.
247 * tree-ssa-sink.c (is_hidden_global_store): Use it.
249 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
251 * configure.ac: Teach that fido supports .debug_line.
252 * configure: Regenerate.
254 2008-06-10 Tom Tromey <tromey@redhat.com>
256 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
259 2008-06-10 Joseph Myers <joseph@codesourcery.com>
261 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
262 (encode_decimal64, decode_decimal64, encode_decimal128,
263 decode_decimal128): Reverse order of 32-bit parts of value if host
264 and target endianness differ.
266 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
267 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
269 (tree_mod_pow2_value_transform): Likewise.
270 (tree_ic_transform): Likewise.
271 (tree_stringops_transform): Likewise.
272 (tree_mod_subtract_transform): Likewise.
273 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
274 (copy_edges_for_bb): Likewise.
275 (initialize_cfun): Likewise.
277 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
279 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
280 nonmemory_operand. Add "N" operand constraint.
282 (*jcc_btdi_mask_rex64): New instruction and split pattern.
283 (*jcc_btsi_mask): Ditto.
284 (*jcc_btsi_mask_1): Ditto.
286 2008-06-10 Joseph Myers <joseph@codesourcery.com>
288 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
289 TYPE_CANONICAL for copied element type.
291 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
294 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
295 Add m_CORE2 and m_GENERIC.
296 * config/i386/predicates.md (bt_comparison_operator): New predicate.
297 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
299 (*jcc_btdi_rex64): New instruction and split pattern.
301 (*jcc_btsi_1): Ditto.
302 (*btsq): Fix Intel asm dialect operand order.
306 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
309 * simplify-rtx.c (simplify_subreg): Add check for shift count
312 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
314 * doc/md.texi: Synchronize with later constraints.md change.
315 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
316 with a C implementation.
317 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
319 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
320 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
321 when moving to and from MD_REGNUM.
322 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
323 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
324 Handle byte and halfword moves.
325 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
327 * config/mips/constraints.md (h): Turn into NO_REGS.
328 (l, x): Update documentation.
329 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
330 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
331 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
332 (HILO): New mode iterator.
334 (any_div): New code iterator.
335 (u): Extend code attribute to div and udiv.
336 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
337 d_operand in the splitters. Remove redundant CONST_INT checks.
338 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
339 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
340 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
341 accordingly, using normal moves instead of unspecs to move LO into
342 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
343 (<u>mulsidi3): Handle expansion in C code.
344 (<u>mulsidi3_32bit_internal): Rename to...
345 (<u>mulsidi3_32bit): ...this.
346 (<u>mulsidi3_32bit_r4000): Fix insn separator.
347 (*<u>mulsidi3_64bit): Rename to...
348 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
349 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
350 to set LO and HI to the multiplication result. Use a normal move
351 for MFLO and an unspec for MFHI.
352 (*<u>mulsidi3_64bit_parts): Replace with...
353 (<u>mulsidi3_64bit_hilo): ...this new instruction.
354 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
355 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
356 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
357 instead of HI. Split the instruction into a separate multiplication
358 and MFHI if !TARGET_FIX_R4000.
359 (<su>muldi3_highpart): Likewise.
360 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
361 and the "=h" clobber.
362 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
363 (<u>mulditi3): New expander.
364 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
365 (madsi): Remove "=h" clobber.
366 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
367 Force the modulus result to be a GPR and split the instruction into
368 a division followed by an MFHI after reload.
369 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
370 (*lea_high64): Use d_operand in the define_peephole2. Likewise
371 the MIPS16 HIGH define_split.
372 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
373 of acc<->gpr moves to "multi".
374 (*movdi_64bit): Replace the single "x" alternative with
375 alternatives for moving into and out of "a".
376 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
377 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
378 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
379 Use d_operand in the splitters. Remove redundant CONST_INT checks.
380 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
381 (movti): New expander.
382 (*movti, *movti_mips16): New insns.
383 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
384 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
385 (mthi<GPR:mode>_<HILO:mode>): Likewise.
386 * config/mips/predicates.md (fpr_operand): Delete.
387 (d_operand): New predicate.
389 2008-06-09 Michael Meissner <michael.meissner@amd.com>
391 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
392 failure on some Bourne shells.
395 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
397 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
399 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
401 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
402 (sparc-sun-solaris2*): Likewise.
404 2008-06-09 Arnaud Charlet <charlet@adacore.com
406 * doc/install.texi: Update requirements to build the Ada compiler.
408 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
410 * df-scan.c (struct df_scan_problem_data): Remove the
411 mw_link_pool alloc pool.
412 (df_scan_free_internal): Don't free it.
413 (df_scan_alloc): Don't allocate it.
414 * df.h (struct df_link): Update comment.
416 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
418 * except.h: Correct checks for when SJLJ exceptions must be used.
420 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
422 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
425 2008-06-08 Joseph Myers <joseph@codesourcery.com>
427 PR tree-optimization/36218
428 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
429 configure for the build system.
430 (BUILD_LDFLAGS): Define.
431 * configure: Regenerate.
432 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
434 2008-07-08 Anatoly Sokolov <aesok@post.ru>
437 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
438 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
439 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
441 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
443 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
445 2008-06-07 Joseph Myers <joseph@codesourcery.com>
447 * config.gcc (Obsolete configurations): Remove list of
449 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
450 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
451 targets matched by those patterns.
452 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
453 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
454 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
455 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
456 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
457 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
458 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
459 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
460 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
461 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
462 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
463 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
464 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
465 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
466 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
467 Make code for Solaris 7 and greater unconditional for Solaris.
468 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
469 Remove --with-* handling.
470 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
471 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
472 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
473 LINK_OS_WINDISS_SPEC): Remove.
474 * config/rs6000/sysv4.opt (mwindiss): Remove.
475 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
476 * configure: Regenerate.
477 * doc/cpp.texi: Don't mention BeOS.
478 * doc/extend.texi (interrupt): Don't mention MS1.
479 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
480 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
481 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
482 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
483 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
485 * doc/invoke.texi (MT Options): Remove.
487 (CRIS Options): Remove cris-axis-aout references.
488 (HPPA Options): Don't mention hppa1.1-*-pro.
489 * doc/md.texi: (MorphoTech family): Remove.
490 * libgcc2.c: Don't handle UWIN.
491 * config/alpha/t-unicosmk: Remove.
492 * config/alpha/unicosmk.h: Remove.
493 * config/arm/kaos-arm.h: Remove.
494 * config/arm/kaos-strongarm.h: Remove.
495 * config/arm/strongarm-coff.h: Remove.
496 * config/arm/strongarm-elf.h: Remove.
497 * config/arm/strongarm-pe.h: Remove.
498 * config/arm/t-strongarm-pe: Remove.
499 * config/arm/t-xscale-coff: Remove.
500 * config/arm/t-xscale-elf: Remove.
501 * config/arm/xscale-coff.h: Remove.
502 * config/arm/xscale-elf.h: Remove.
503 * config/chorus.h: Remove.
504 * config/cris/aout.h: Remove.
505 * config/cris/aout.opt: Remove.
506 * config/cris/t-aout: Remove.
507 * config/i386/beos-elf.h: Remove.
508 * config/i386/kaos-i386.h: Remove.
509 * config/i386/ptx4-i.h: Remove.
510 * config/i386/sco5.h: Remove.
511 * config/i386/sco5.opt: Remove.
512 * config/i386/sysv4-cpp.h: Remove.
513 * config/i386/sysv5.h: Remove.
514 * config/i386/t-beos: Remove.
515 * config/i386/t-sco5: Remove.
516 * config/i386/t-uwin: Remove.
517 * config/i386/uwin.asm: Remove.
518 * config/i386/uwin.h: Remove.
519 * config/kaos.h: Remove.
520 * config/mips/windiss.h: Remove.
521 * config/mt: Remove directory.
522 * config/pa/pa-osf.h: Remove.
523 * config/pa/pa-pro-end.h: Remove.
524 * config/pa/t-pro: Remove.
525 * config/ptx4.h: Remove.
526 * config/rs6000/beos.h: Remove.
527 * config/rs6000/kaos-ppc.h: Remove.
528 * config/rs6000/t-beos: Remove.
529 * config/rs6000/windiss.h: Remove.
530 * config/sh/kaos-sh.h: Remove.
531 * config/sol2-6.h: Remove.
532 * config/sparc/sol26-sld.h: Remove.
533 * config/sparc/sysv4-only.h: Remove.
534 * config/vax/bsd.h: Remove.
535 * config/vax/t-memfuncs: Remove.
536 * config/vax/ultrix.h: Remove.
537 * config/vax/vaxv.h: Remove.
538 * config/windiss.h: Remove.
540 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
542 PR rtl-optimization/36438
543 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
544 for vector shifts with constant scalar shift operands.
546 2008-06-06 Sandip Matte <sandip@rmicorp.com>
548 * doc/invoke.texi: Document -march=xlr.
549 * config/mips/xlr.md: New file.
550 * config/mips/mips.md: Include it.
552 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
553 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
554 (mips_rtx_cost_data): Likewise.
556 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
558 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
559 PRE_INC and PRE_DEC cases.
561 2008-06-06 Jakub Jelinek <jakub@redhat.com>
563 PR rtl-optimization/36419
564 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
565 the emitting jump insn.
568 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
569 is not bool, boolify the whole *expr_p and convert to the desired type.
571 2008-06-06 Jakub Jelinek <jakub@redhat.com>
573 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
574 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
575 Add omp_private_outer_ref hook, add another argument to
576 omp_clause_default_ctor hook.
577 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
578 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
579 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
580 hook_tree_tree_tree_tree_null.
581 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
582 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
583 * hooks.c (hook_tree_tree_tree_tree_null): New function.
584 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
585 * tree.def (OMP_TASK): New tree code.
586 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
587 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
588 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
589 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
590 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
591 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
592 OMP_CLAUSE_COLLAPSE_EXPR): Define.
593 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
594 (OMP_DIRECTIVE_P): Add OMP_TASK.
595 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
596 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
597 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
598 and OMP_CLAUSE_UNTIED entries.
599 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
601 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
602 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
603 * tree-pretty-print.c (dump_omp_clause): Handle
604 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
605 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
606 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
607 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
608 warning about unsigned iterators. Change decl/init/cond/incr
609 arguments to TREE_VECs, check arguments for all collapsed loops.
610 (c_finish_omp_taskwait): New function.
611 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
613 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
614 default_function_array_conversion on init. Add par_clauses argument.
615 If decl is present in parallel's lastprivate clause, change it to
616 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
617 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
618 collapse count in clauses.
619 (c_parser_omp_for, c_parser_omp_parallel): Adjust
620 c_parser_omp_for_loop callers.
621 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
622 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
623 (c_parser_omp_clause_name): Handle collapse and untied clauses.
624 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
626 (c_parser_omp_clause_schedule): Handle schedule(auto).
627 Include correct location in the error message.
628 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
629 and PRAGMA_OMP_CLAUSE_UNTIED.
630 (OMP_TASK_CLAUSE_MASK): Define.
631 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
632 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
633 * tree-nested.c (convert_nonlocal_omp_clauses,
634 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
635 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
636 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
637 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
639 (conver_nonlocal_reference, convert_local_reference,
640 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
641 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
642 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
643 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
644 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
645 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
646 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
647 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
648 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
650 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
651 * c-common.h (c_finish_omp_taskwait): New prototype.
652 * gimple-low.c (lower_stmt): Handle OMP_TASK.
653 * tree-parloops.c (create_parallel_loop): Create 1 entry
654 vectors for OMP_FOR_{INIT,COND,INCR}.
655 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
656 (make_edges): Handle OMP_TASK.
657 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
658 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
659 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
660 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
661 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
662 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
663 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
664 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
665 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
666 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
667 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
668 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
669 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
670 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
671 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
672 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
673 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
674 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
675 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
676 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
677 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
678 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
679 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
680 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
681 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
682 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
683 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
684 original iterator is present in lastprivate clause or if
685 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
686 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
687 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
688 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
689 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
690 if it is set, lookup var in outer contexts too. Handle
691 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
692 to be implicitly determined firstprivate for task regions.
693 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
694 if it is set, lookup var in outer contexts too. Set
695 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
696 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
697 OMP_CLAUSE_UNTIED. Take region_type as last argument
698 instead of in_parallel and in_combined_parallel.
699 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
701 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
702 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
703 (new_omp_context): Set default_kind to
704 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
705 (omp_region_type): New enum.
706 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
707 fields, add region_type.
708 (new_omp_context): Take region_type as argument instead of is_parallel
709 and is_combined_parallel.
710 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
711 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
712 ctx->is_combined_parallel checks.
713 (gimplify_omp_task): New function.
714 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
716 * omp-low.c (extract_omp_for_data): Use schedule(static)
717 for schedule(auto). Handle pointer and unsigned iterators.
718 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
719 Add loops argument. Extract data for collapsed OMP_FOR loops.
720 (expand_parallel_call): Assert sched_kind isn't auto,
721 map runtime schedule to index 3.
722 (struct omp_for_data_loop): New type.
723 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
724 Add loop, loops, collapse and iter_type fields.
725 (workshare_safe_to_combine_p): Disallow combined for if
726 iter_type is unsigned long long. Don't combine collapse > 1 loops
727 unless all bounds and steps are constant. Adjust extract_omp_for_data
729 (expand_omp_for_generic): Handle pointer, unsigned and long long
730 iterators. Handle collapsed OMP_FOR loops. Adjust
731 for struct omp_for_data changes. If libgomp function doesn't return
732 boolean_type_node, add comparison of the return value with 0.
733 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
734 pointer, unsigned and long long iterators. Adjust for struct
735 omp_for_data changes.
736 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
737 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
738 unsigned long long. Allocate loops array, pass it to
739 extract_omp_for_data. For collapse > 1 loops use always
740 expand_omp_for_generic.
741 (omp_context): Add sfield_map and srecord_type fields.
742 (is_task_ctx, lookup_sfield): New functions.
743 (use_pointer_for_field): Use is_task_ctx helper. Change first
744 argument's type from const_tree to tree. Clarify comment.
745 In OMP_TASK disallow copy-in/out sharing.
746 (build_sender_ref): Call lookup_sfield instead of lookup_field.
747 (install_var_field): Add mask argument. Populate both record_type
748 and srecord_type if needed.
749 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
751 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
752 and DECL_FIELD_OFFSET.
753 (scan_sharing_clauses): Adjust install_var_field callers. For
754 firstprivate clauses on explicit tasks allocate the var by value in
755 record_type unconditionally, rather than by reference.
756 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
757 Use is_taskreg_ctx instead of is_parallel_ctx.
758 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
759 (create_omp_child_function_name): Add task_copy argument, use
760 *_omp_cpyfn* names if it is true.
761 (create_omp_child_function): Add task_copy argument, if true create
762 *_omp_cpyfn* helper function.
763 (scan_omp_parallel): Adjust create_omp_child_function callers.
764 Rename parallel_nesting_level to taskreg_nesting_level.
765 (scan_omp_task): New function.
766 (lower_rec_input_clauses): Don't run constructors for firstprivate
767 explicit task vars which are initialized by *_omp_cpyfn*.
768 Pass outer var ref to omp_clause_default_ctor hook if
769 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
770 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
771 OMP_CLAUSE_REDUCTION_INIT.
772 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
773 avoid duplicate setting of fields. Handle
774 OMP_CLAUSE_PRIVATE_OUTER_REF.
775 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
776 copy-out if TREE_READONLY, only copy-in.
777 (expand_task_copyfn): New function.
778 (expand_task_call): New function.
779 (struct omp_taskcopy_context): New type.
780 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
782 (lower_omp_parallel): Rename to...
783 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
784 Call create_task_copyfn if srecord_type is needed. Adjust
786 (task_shared_vars): New variable.
787 (check_omp_nesting_restrictions): Warn if work-sharing,
788 barrier, master or ordered region is closely nested inside OMP_TASK.
789 Add warnings for barrier if closely nested inside of work-sharing,
790 ordered, or master region.
791 (scan_omp_1): Call check_omp_nesting_restrictions even for
792 GOMP_barrier calls. Rename parallel_nesting_level to
793 taskreg_nesting_level. Handle OMP_TASK.
794 (lower_lastprivate_clauses): Even if some lastprivate is found on a
795 work-sharing construct, continue looking for them on parent parallel
797 (lower_omp_for_lastprivate): Add lastprivate clauses
798 to the beginning of dlist rather than end. Adjust for struct
799 omp_for_data changes.
800 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
801 not after it. Handle collapsed OMP_FOR loops, adjust for
802 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
803 (get_ws_args_for): Adjust extract_omp_for_data caller.
804 (scan_omp_for): Handle collapsed OMP_FOR
805 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
806 (lower_omp_single_simple): If libgomp function doesn't return
807 boolean_type_node, add comparison of the return value with 0.
808 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
809 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
810 (parallel_nesting_level): Rename to...
811 (taskreg_nesting_level): ... this.
812 (is_taskreg_ctx): New function.
813 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
815 (execute_lower_omp): Rename parallel_nesting_level to
816 taskreg_nesting_level.
817 (expand_omp_parallel): Rename to...
818 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
819 Call omp_task_call for OMP_TASK regions.
820 (expand_omp): Adjust caller, handle OMP_TASK.
821 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
823 * bitmap.c (bitmap_default_obstack_depth): New variable.
824 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
825 if argument is NULL and bitmap_default_obstack is already initialized.
826 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
828 * matrix-reorg.c (matrix_reorg): Likewise.
830 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
832 * config/i386/i386.md (*indirect_jump): Macroize using P
833 mode iterator. Remove !TARGET_64BIT from insn constraints.
834 (*tablejump_1): Ditto.
835 (*indirect_jump_rex64): Remove insn pattern.
836 (*tablejump_1_rex64): Ditto.
837 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
838 and eh_return_si insn patterns.
840 2008-06-06 Richard Guenther <rguenther@suse.de>
842 * tree-ssa-structalias.c (merge_smts_into): Remove.
843 (find_what_p_points_to): Do not bother to compute the
844 points-to set for pt_anything pointers.
845 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
846 for pt_anything pointers is ok.
848 2008-06-06 Jan Hubicka <jh@suse.cz>
850 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
852 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
854 * cgraph.c: Fix typos in comments.
855 (cgraph_availability_names): Fix string typo.
856 * fold-const.c: Fix typos in comments.
857 (fold_binary): Fix typo in warning.
858 * genautomata.c: Fix typos in comments.
859 (check_presence_pattern_sets): Fix typo in local variable.
860 (output_description): Fix typo in output.
861 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
863 * matrix-reorg.c (check_allocation_function): Likewise.
864 * omega.c (smooth_weird_equations): Likewise.
865 * auto-inc-dec.c: Fix typos in comments.
866 * bb-reorder.c: Likewise.
867 * builtins.c: Likewise.
868 * c-common.c: Likewise.
869 * c-cppbuiltin.c: Likewise.
870 * c-parser.c: Likewise.
871 * c-pretty-print.c: Likewise.
872 * cfgcleanup.c: Likewise.
873 * cfgexpand.c: Likewise.
874 * cfghooks.c: Likewise.
875 * cfglayout.c: Likewise.
876 * cfgloopmanip.c: Likewise.
877 * cgraphunit.c: Likewise.
878 * coverage.c: Likewise.
879 * dbxout.c: Likewise.
880 * df-byte-scan.c: Likewise.
881 * df-core.c: Likewise.
882 * df-problems.c: Likewise.
883 * df-scan.c: Likewise.
885 * dominance.c: Likewise.
886 * domwalk.c: Likewise.
888 * dwarf2out.c: Likewise.
889 * emit-rtl.c: Likewise.
890 * et-forest.c: Likewise.
891 * function.c: Likewise.
892 * function.h: Likewise.
894 * gcov-io.c: Likewise.
897 * genattrtab.c: Likewise.
898 * ggc-page.c: Likewise.
899 * gimplify.c: Likewise.
900 * gthr-lynx.h: Likewise.
901 * haifa-sched.c: Likewise.
902 * ipa-cp.c: Likewise.
903 * ipa-inline.c: Likewise.
904 * ipa-prop.h: Likewise.
905 * ipa-pure-const.c: Likewise.
906 * ipa-struct-reorg.c: Likewise.
907 * ipa-struct-reorg.h: Likewise.
908 * ipa-type-escape.c: Likewise.
910 * loop-doloop.c: Likewise.
911 * mips-tfile.c: Likewise.
912 * mkmap-flat.awk: Likewise.
913 * mkmap-symver.awk: Likewise.
914 * modulo-sched.c: Likewise.
915 * omp-low.c: Likewise.
916 * optabs.c: Likewise.
917 * optabs.h: Likewise.
919 * passes.c: Likewise.
920 * postreload-gcse.c: Likewise.
921 * postreload.c: Likewise.
922 * predict.c: Likewise.
923 * pretty-print.h: Likewise.
924 * profile.c: Likewise.
925 * protoize.c: Likewise.
926 * ra-conflict.c: Likewise.
929 * regclass.c: Likewise.
931 * reload.c: Likewise.
932 * rtl-error.c: Likewise.
933 * rtlanal.c: Likewise.
935 * sched-rgn.c: Likewise.
938 * target.h: Likewise.
939 * tree-dfa.c: Likewise.
940 * tree-eh.c: Likewise.
941 * tree-flow-inline.h: Likewise.
942 * tree-inline.c: Likewise.
943 * tree-into-ssa.c: Likewise.
944 * tree-loop-distribution.c: Likewise.
945 * tree-nested.c: Likewise.
946 * tree-parloops.c: Likewise.
947 * tree-pass.h: Likewise.
948 * tree-pretty-print.c: Likewise.
949 * tree-profile.c: Likewise.
950 * tree-scalar-evolution.c: Likewise.
951 * tree-sra.c: Likewise.
952 * tree-ssa-alias-warnings.c: Likewise.
953 * tree-ssa-ccp.c: Likewise.
954 * tree-ssa-coalesce.c: Likewise.
955 * tree-ssa-dom.c: Likewise.
956 * tree-ssa-dse.c: Likewise.
957 * tree-ssa-forwprop.c: Likewise.
958 * tree-ssa-live.c: Likewise.
959 * tree-ssa-live.h: Likewise.
960 * tree-ssa-loop-im.c: Likewise.
961 * tree-ssa-loop-ivopts.c: Likewise.
962 * tree-ssa-loop-niter.c: Likewise.
963 * tree-ssa-loop-prefetch.c: Likewise.
964 * tree-ssa-phiopt.c: Likewise.
965 * tree-ssa-phiprop.c: Likewise.
966 * tree-ssa-sccvn.c: Likewise.
967 * tree-ssa-ter.c: Likewise.
968 * tree-ssa-threadupdate.c: Likewise.
969 * tree-ssa.c: Likewise.
970 * tree-vect-analyze.c: Likewise.
971 * tree-vect-transform.c: Likewise.
972 * tree-vectorizer.c: Likewise.
973 * tree-vn.c: Likewise.
974 * tree-vrp.c: Likewise.
976 * tree.def: Likewise.
978 * unwind-dw2-fde.c: Likewise.
979 * unwind.inc: Likewise.
980 * value-prof.c: Likewise.
981 * vmsdbgout.c: Likewise.
983 2008-06-05 David Edelsohn <edelsohn@gnu.org>
985 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
986 always place FP constants in the TOC for TARGET_POWERPC64.
987 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
989 2008-06-05 Joseph Myers <joseph@codesourcery.com>
991 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
992 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
993 enable for TARGET_E500_DOUBLE.
994 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
995 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
996 floating-point modes like integer modes for E500 double.
997 (rs6000_legitimate_offset_address_p): Likewise.
998 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
999 addressing for DDmode for E500 double.
1000 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
1001 modes as using 64-bits of registers for E500 double.
1002 (spe_build_register_parallel): Do not handle DDmode or TDmode.
1003 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
1004 specially for E500 double.
1005 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
1006 TDmode for E500 double.
1007 (rs6000_gimplify_va_arg): Only handle SDmode in registers
1008 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
1009 (rs6000_split_multireg_move): Do not handle TDmode specially for
1011 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
1012 using 64-bit registers for E500 double.
1013 (emit_frame_save): Do not handle DDmode specially for E500 double.
1014 (gen_frame_mem_offset): Likewise.
1015 (rs6000_function_value): Do not call spe_build_register_parallel
1016 for DDmode or TDmode.
1017 (rs6000_libcall_value): Likewise.
1018 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
1019 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
1022 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
1024 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
1027 2008-06-04 Junjie Gu <jgu@tensilica.com>
1029 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
1030 comparison for frame pointers.
1032 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
1035 * config/avr/avr.h (PUSH_ROUNDING): Remove.
1037 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
1040 * builtins.c (expand_builtin_signbit): Don't take lowpart when
1041 register is already smaller or equal to required mode.
1043 2008-06-04 Xinliang David Li <davidxl@google.com>
1045 * tree-call-cdce.c: New file.
1046 (cond_dead_built_in_calls): New static variable.
1047 (input_domain): New struct.
1048 (check_pow): New function.
1049 (check_builtin_call): Ditto.
1050 (check_target_format): Ditto.
1051 (is_call_dce_candidate): Ditto.
1052 (gen_one_condition): Ditto.
1053 (gen_conditions_for_domain): Ditto.
1054 (get_domain): Ditto.
1055 (gen_conditions_for_pow_cst_base): Ditto.
1056 (gen_conditions_for_pow_int_base): Ditto.
1057 (gen_conditions_for_pow): Ditto.
1058 (get_no_error_domain): Ditto.
1059 (gen_shrink_wrap_conditions): Ditto.
1060 (shrink_wrap_one_built_in_call): Ditto.
1061 (shink_wrap_conditional_dead_built_in_calls): Ditto.
1062 (tree_call_cdce): Ditto.
1063 (gate_call_cdce): Ditto.
1064 (pass_call_cdce): New gimple pass.
1065 * passes.c: (init_optimization_passes): New pass.
1066 * tree-pass.h: New pass declaration.
1067 * opts.c (decode_options): New flag setting.
1068 * common.opt: Add -ftree-builtin-call-dce flag.
1069 * Makefile.in: Add new source file.
1070 * tempvar.def: New tv_id.
1071 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
1073 2008-06-04 Richard Guenther <rguenther@suse.de>
1075 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
1076 (is_call_clobbered): Always check var_ann->call_clobbered.
1077 (mark_call_clobbered): Always set var_ann->call_clobbered.
1078 (clear_call_clobbered): Always clear var_ann->call_clobbered.
1079 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
1080 (reset_alias_info): Clear call clobbering info on MTAGs and
1082 (set_pt_anything): Set pt_global_mem.
1083 (create_tag_raw): Adjust comment.
1084 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
1086 2008-06-04 Joseph Myers <joseph@codesourcery.com>
1087 Maxim Kuvyrkov <maxim@codesourcery.com>
1089 * config/m68k/m68k.opt (mxgot): New option.
1090 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
1091 (m68k_output_addr_const_extra): New.
1092 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
1093 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
1094 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
1095 * doc/invoke.texi (M680x0 Options): Document -mxgot.
1097 2008-06-04 Richard Guenther <rguenther@suse.de>
1099 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
1100 negative or non-representable offsets.
1102 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
1104 * config/i386/i386.c (ix86_gen_leave): New.
1105 (ix86_gen_pop1): Likewise.
1106 (ix86_gen_add3): Likewise.
1107 (ix86_gen_sub3): Likewise.
1108 (ix86_gen_sub3_carry): Likewise.
1109 (ix86_gen_one_cmpl2): Likewise.
1110 (ix86_gen_monitor): Likewise.
1111 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
1112 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
1113 ix86_gen_one_cmpl2 and ix86_gen_monitor.
1114 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
1115 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
1116 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
1117 (ix86_expand_epilogue): Updated.
1118 (print_operand): Handle integer register operand for 'z'.
1119 (ix86_expand_strlensi_unroll_1): Likewise.
1120 (ix86_expand_strlen): Likewise.
1121 (ix86_expand_builtin): Likewise.
1122 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
1123 mov{q}/mov{l} and add{q}/add{l}.
1125 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
1127 * config/i386/i386.md (P): New mode iterator.
1128 (SFmode push_operand splitter): Macroize DImode and SImode pushes
1129 using P mode iterator.
1130 (DFmode push_operand splitter): Ditto.
1131 (XFmode push_operand splitter): Ditto.
1132 (DFmode float_extend SFmode push_operand splitter): Ditto.
1133 (XFmode float_extend SFmode push_operand splitter): Do not generate
1134 SImode pushes for 64bit target. Macroize Dimode and SImode
1135 pushes using P mode iterator.
1136 (XFmode float_extend DFmode push_operand splitter): Ditto.
1138 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
1140 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
1141 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
1142 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
1144 (ix86_call_abi_override): Remove check for call_used_regs.
1146 2008-06-03 Richard Guenther <rguenther@suse.de>
1148 * tree-ssa-structalias.c (find_func_aliases): Add constraints
1149 for the lhs of calls if the return type contains pointers.
1151 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
1153 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
1154 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
1155 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
1156 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
1157 of cfun and DEFAULT_ABI to deceide abi mode.
1159 (REG_PARM_STACK_SPACE): Removed.
1160 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
1161 (STACK_BOUNDARY): Use default target to deceide stack boundary.
1162 * config/i386/i386-protos.h (ix86_cfun_abi): New.
1163 (ix86_function_abi): Likewise.
1164 (ix86_function_type_abi): Likewise.
1165 (ix86_call_abi_override): Likewise.
1166 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
1167 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
1168 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
1169 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
1171 (X86_64_REGPARM_MAX): New.
1172 (X86_64_SSE_REGPARM_MAX): New.
1173 (X64_REGPARM_MAX): New.
1174 (X64_SSE_REGPARM_MAX): New.
1175 (X86_32_REGPARM_MAX): New.
1176 (X86_32_SSE_REGPARM_MAX): New.
1177 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
1178 (ix86_function_regparm): Handle user calling abi.
1179 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
1180 by DEFAULT_ABI versus SYSV_ABI check.
1181 (ix86_reg_parm_stack_space): New.
1182 (ix86_function_type_abi): New.
1183 (ix86_call_abi_override): New.
1184 (ix86_function_abi): New.
1185 (ix86_cfun_abi): New.
1186 (init_cumulative_args): Call abi specific initialization.
1187 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
1188 (function_arg_64): Extend SSE_REGPARM_MAX check.
1189 (function_arg (): Remove TARGET_64BIT_MS_ABI.
1190 (ix86_pass_by_reference): Likewise.
1191 (ix86_function_value_regno_p): Likewise.
1192 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
1193 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
1194 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
1195 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
1196 (setup_incoming_varargs_64): Adjust regparm for call abi.
1197 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
1198 (ix86_va_start): Likewise.
1199 (ix86_gimplify_va_arg): Likewise.
1200 (ix86_expand_prologue): Likewise.
1201 (output_pic_addr_const): Likewise.
1202 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
1203 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
1204 (x86_output_mi_thunk): Likewise.
1205 (x86_function_profiler): Likewise.
1206 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
1207 (SYSV_ABI, MS_ABI): New constants.
1209 (init_regs): Add prototype of function in regclass.c file.
1210 (OVERRIDE_ABI_FORMAT): New.
1211 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
1212 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
1213 (OUTGOING_REG_PARM_STACK_SPACE): New.
1214 (ix86_reg_parm_stack_space): New prototype.
1215 (CUMULATIVE_ARGS): Add call_abi member.
1216 (machine_function): Add call_abi member.
1217 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
1218 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
1220 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
1223 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
1224 (avr_builtin_setjmp_frame_value): New function.
1225 * config/avr/avr.md (nonlocal_goto_receiver): Define.
1226 (nonlocal_goto): Define.
1228 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
1230 * config/mips/mips.c (mips_emit_loadgp): Return early if
1231 there is nothing do to, otherwise emit a blockage if
1232 !TARGET_EXPLICIT_RELOCS || crtl->profile.
1233 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
1235 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1237 * configure.ac: Drop unneeded backslash ending up in config.in.
1238 * acinclude.m4: Likewise.
1239 * config.in: Regenerate.
1241 2008-05-26 Jan Hubicka <jh@suse.cz>
1243 * predict.c (maybe_hot_frequency_p): Break out of...
1244 (maybe_hot_bb_p): ... here.
1245 (maybe_hot_edge_p): New.
1246 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
1247 * basic-block.h (maybe_hot_edge_p): Declare.
1249 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
1251 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
1252 (*cmpfp_<mode>_cc): Ditto.
1253 (*fp_jcc_8<mode>_387): Ditto.
1254 (*fop_<MODEF:mode>_2_i387): Ditto.
1255 (*fop_<MODEF:mode>_3_i387): Ditto.
1256 (*fop_xf_2_i387): Ditto.
1257 (*fop_xf_3_i387): Ditto.
1259 2008-06-02 Tomas Bily <tbily@suse.cz>
1261 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
1263 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1265 * config/mips/mips.c (mips_valid_offset_p): New function.
1266 (mips_valid_lo_sum_p): Likewise.
1267 (mips_classify_address): Use them.
1268 (mips_force_address): New function.
1269 (mips_legitimize_address): Use it.
1270 * config/mips/mips.md (MOVE128): New mode iterator.
1271 (movtf): Require TARGET_64BIT. Remove empty strings.
1272 (*movtf_internal): Rename to...
1273 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
1274 of "R" and use {,fp}{load,store} attributes instead of "multi".
1275 Use a separate define_split.
1276 (*movtf_mips16): New pattern.
1278 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1280 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
1281 * config/mips/mips.c (mips_expand_before_return): New function.
1282 (mips_expand_epilogue): Call it.
1283 * config/mips/mips.md (return): Turn into a define_expand.
1284 (*return): New insn.
1286 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1288 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
1289 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
1290 functions. Do not emit uses and clobbers of CONCATs; individually
1291 use and clobber their operands.
1292 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
1293 gen_clobber, emit_use and gen_use.
1294 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1295 (expand_builtin_return): Likewise.
1296 * cfgbuild.c (count_basic_blocks): Likewise.
1297 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1298 * explow.c (emit_stack_restore): Likewise.
1299 * expmed.c (extract_bit_field_1): Likewise.
1300 * expr.c (convert_move, emit_move_complex_parts): Likewise.
1301 (emit_move_multi_word, store_constructor): Likewise.
1302 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
1303 (thread_prologue_and_epilogue_insns): Likewise.
1304 * lower-subreg.c (resolve_simple_move): Likewise.
1305 * optabs.c (widen_operand, expand_binop): Likewise.
1306 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
1307 * reload.c (find_reloads): Likewise.
1308 * reload1.c (eliminate_regs_in_insn): Likewise.
1309 * stmt.c (expand_nl_goto_receiver): Likewise.
1310 * config/alpha/alpha.md (builtin_longjmp): Likewise.
1311 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
1312 * config/arm/arm.c (arm_load_pic_register): Likewise.
1313 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
1314 * config/arm/arm.md (untyped_return): Likewise.
1315 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
1316 * config/avr/avr.c (expand_prologue): Likewise.
1317 * config/bfin/bfin.c (do_unlink): Likewise.
1318 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
1319 * config/cris/cris.c (cris_expand_prologue): Likewise.
1320 * config/darwin.c (machopic_indirect_data_reference): Likewise.
1321 (machopic_legitimize_pic_address): Likewise.
1322 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
1323 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
1324 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
1325 (ix86_expand_convert_uns_didf_sse): Likewise.
1326 (ix86_expand_vector_init_general): Likewise.
1327 * config/ia64/ia64.md (eh_epilogue): Likewise.
1328 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
1329 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
1330 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
1331 (config/iq2000/iq2000.c): Likewise.
1332 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
1333 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1334 (builtin_longjmp): Likewise.
1335 * config/mn10300/mn10300.md (call, call_value): Likewise.
1336 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
1337 * config/pdp11/pdp11.md (abshi2): Likewise.
1338 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1339 * config/s390/s390.c (s390_emit_prologue): Likewise.
1340 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
1341 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
1342 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
1343 * config/sh/sh.c (prepare_move_operands): Likewise.
1344 (output_stack_adjust, sh_expand_epilogue): Likewise.
1345 (sh_set_return_address, sh_expand_t_scc): Likewise.
1346 * config/sparc/sparc.c (load_pic_register): Likewise.
1347 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
1348 * config/spu/spu.c (spu_expand_epilogue): Likewise.
1349 * config/v850/v850.c (expand_epilogue): Likewise.
1351 2008-05-31 Anatoly Sokolov <aesok@post.ru>
1353 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
1354 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
1355 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
1356 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
1357 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
1358 stack pointer register.
1359 (output_movhi): Remove code for interrupt specific writing to the
1360 stack pointer register.
1362 2008-05-31 Richard Guenther <rguenther@suse.de>
1364 PR tree-optimization/34244
1365 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
1366 (tree_expr_nonzero_warnv_p): Likewise.
1367 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
1368 ssa_name_nonnegative_p.
1369 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
1370 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
1371 not tree_expr_nonzero_warnv_p.
1373 PR tree-optimization/36262
1375 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
1377 PR tree-optimization/34244
1378 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
1379 (record_numbers_of_iterations): New function.
1380 (execute_vrp): Cache the numbers of iterations of loops.
1381 * tree-scalar-evolution.c (scev_reset_except_niters):
1383 (scev_reset): Use scev_reset_except_niters.
1384 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
1386 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
1388 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1389 __WORKAROUND_RETS when appropriate.
1391 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
1393 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
1394 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
1396 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
1397 *fop_df_comm_sse insn patterns using MODEF mode iterator.
1398 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
1399 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
1400 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
1401 *fop_df_1_mixed insn patterns using MODEF mode iterator.
1402 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
1403 *fop_df_1_sse insn patterns using MODEF mode iterator.
1404 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
1405 *fop_df_1_i387 insn patterns using MODEF mode iterator.
1406 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
1407 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
1408 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
1409 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
1410 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
1411 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
1412 (*fop_xf_4_i387): Use <MODE> for mode attribute.
1413 (*fop_xf_5_i387): Ditto.
1414 (*fop_xf_6_i387): Ditto.
1416 2008-05-30 Richard Guenther <rguenther@suse.de>
1418 * builtins.c (build_string_literal): Avoid generating
1419 a non-gimple_val result.
1421 2008-05-30 DJ Delorie <dj@redhat.com>
1423 * exec-tool.in: Use an environment variable (private) instead of a
1424 file (shared) as a semaphore, so as to not break parallel builds.
1426 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1428 * optabs.c (maybe_encapsulate_block): Remove.
1429 (emit_libcall_block): Adjust accordingly.
1430 * optabs.h (maybe_encapsulate_block): Remove prototype.
1432 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
1433 Don't use maybe_encapsulate_block.
1435 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1437 * config/rs6000/rs6000.c (rs6000_legitimize_address,
1438 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
1439 rtx is a SYMBOL_REF before calling get_pool_constant.
1441 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
1443 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
1445 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
1447 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
1448 rather than OS names to choose INO_T_EQ definition.
1449 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
1450 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
1452 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
1455 * config/darwin-f.c: New.
1456 * config/t-darwin: Added rule to build darwin-f.o.
1457 * config.gcc: Defined new variable, fortran_target_objs.
1458 (*-*-darwin*): Set fortran_target_objs.
1459 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
1460 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
1461 * configure: Regenerated.
1463 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
1466 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
1467 canonical type if needed.
1469 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
1471 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
1473 2008-05-29 Richard Guenther <rguenther@suse.de>
1475 PR tree-optimization/36343
1476 PR tree-optimization/36346
1477 PR tree-optimization/36347
1478 * tree-flow.h (clobber_what_p_points_to): Declare.
1479 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
1480 pointed-to variable is dereferenced is irrelevant to whether
1481 the pointer can access the pointed-to variable.
1482 (clobber_what_p_points_to): New function.
1483 * tree-ssa-alias.c (set_initial_properties): Use it.
1484 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
1485 call clobber check for NMTs.
1487 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1489 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
1490 for printing gcov_type.
1492 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1494 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
1495 and the eh region information.
1496 * value-prof.c (gimple_move_stmt_histograms): New function.
1497 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
1499 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
1501 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
1503 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1505 * value-prof.c (tree_ic_transform): Print counts.
1506 * tree-profile.c (tree_gen_ic_func_profiler):
1507 Clear __gcov_indreict_call_callee variable to avoid misattribution
1510 2008-05-28 Rafael Espindola <espindola@google.com>
1512 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
1515 2008-05-28 Richard Guenther <rguenther@suse.de>
1517 PR tree-optimization/36339
1518 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
1519 and clobbering code out of the loop.
1521 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
1523 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
1526 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
1527 s390_contiguous_bitmask_p, s390_symref_operand_p,
1528 s390_check_symref_alignment, s390_reload_larl_operand,
1529 s390_reload_symref_address): New functions.
1530 (s390_branch_condition_mnemonic): Support compare and branch
1532 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
1533 and 'W' constraints.
1534 (s390_secondary_reload): Add secondary reloads for unaligned
1535 symbol refs or symbol refs to floating point or QI/TI mode
1537 (legitimate_address_p): Accept symbol references as addresses.
1538 (s390_expand_insv): Use rotate and insert selected bits
1539 instruction for insv when building for z10.
1540 (print_operand_address): Handle symbol ref addresses.
1541 (print_operand): Output modifier 'c' added for signed byte values.
1542 (s390_encode_section_info): Mark symbol refs with
1543 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
1545 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
1546 (length attribute): RRF, RRR have 4 byte length.
1547 (FPALL, INTALL): New mode iterators added.
1548 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
1549 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
1550 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
1551 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
1552 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
1553 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
1554 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
1555 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
1557 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
1558 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
1559 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
1560 reload<INTALL:mode><P:mode>_toreg_z10,
1561 reload<FPALL:mode><P:mode>_tomem_z10,
1562 reload<FPALL:mode><P:mode>_toreg_z10,
1563 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
1564 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
1565 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
1566 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
1568 (movmem, clrmem, cmpmem): New splitters added.
1570 * config/s390/predicates.md (larl_operand): Use
1571 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
1572 SYMBOL_REF_ALIGN1_P.
1573 (s390_signed_integer_comparison,
1574 s390_unsigned_integer_comparison): New predicates.
1576 * config/s390/s390-protos.h (s390_check_symref_alignment,
1577 s390_contiguous_bitmask_p, s390_reload_larl_operand,
1578 s390_reload_symref_address,
1579 s390_compare_and_branch_condition_mask): Prototypes added.
1581 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
1582 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
1583 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
1585 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
1587 * config/s390/s390.c (z10_cost): New cost function for z10.
1588 (s390_handle_arch_option, override_options): Support -march=z10 switch.
1589 (s390_issue_rate): Adjust issue rate for z10.
1590 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
1591 (processor_flags): Add PF_Z10.
1592 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
1593 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
1594 * gcc/config.gcc: Add z10.
1596 2008-05-28 Richard Guenther <rguenther@suse.de>
1598 PR tree-optimization/36291
1599 * tree-flow. h (struct gimple_df): Remove var_anns member.
1600 * tree-flow-inline.h (gimple_var_anns): Remove.
1601 (var_ann): Simplify.
1602 * tree-dfa.c (create_var_ann): Simplify.
1603 (remove_referenced_var): Clear alias info from var_anns of globals.
1604 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
1605 (delete_tree_ssa): Clear alias info from var_anns of globals.
1606 Do not free var_anns.
1607 (var_ann_eq): Remove.
1608 (var_ann_hash): Likewise.
1610 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
1612 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
1613 and loongson2f entries.
1614 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
1615 * config/mips/mips.h (processor_type): Add Loongson-2E
1616 and Loongson-2F entries.
1617 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
1618 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
1619 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
1620 * doc/invoke.texi (MIPS Options): Document loongson2e
1621 and loongson2f processor names.
1623 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
1627 * config/i386/i386.c (ix86_function_arg_boundary): Use
1628 alignment of canonical type.
1629 (ix86_expand_vector_move): Check unaligned memory access for
1632 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
1634 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
1635 Moved to the front of file.
1637 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
1638 H.J. Lu <hongjiu.lu@intel.com>
1640 * dwarf2out.c (current_fde): New.
1642 (lookup_cfa:): Likewise.
1643 (dwarf2out_end_epilogue): Likewise.
1644 (dwarf2out_note_section_used): Likewise.
1646 2008-05-27 Michael Matz <matz@suse.de>
1649 * c.opt (Wenum-compare): New warning option.
1650 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
1652 2008-05-27 Michael Matz <matz@suse.de>
1655 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
1657 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
1658 into memory as tail calls.
1660 2008-05-27 Richard Guenther <rguenther@suse.de>
1662 PR tree-optimization/36339
1663 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
1664 pointers cause all addressable variables to be call clobbered.
1666 2008-05-27 Richard Guenther <rguenther@suse.de>
1668 PR tree-optimization/36245
1669 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
1671 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1673 * config/s390/s390.md: Replace all occurences of the 'm'
1674 constraint with 'RT'.
1676 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1678 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
1680 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
1682 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
1683 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
1684 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
1686 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1688 * reload.c: (find_reloads): Skip alternatives according to the
1689 "enabled" attribute. Constify the constraint variable.
1690 * recog.c (get_attr_enabled): Add default implementation.
1691 (extract_insn): Set the alternative_enabled_p array
1692 in the recog_data struct.
1693 (preprocess_constraints, constrain_operands): Skip
1694 alternatives according to the "enabled" attribute
1695 * recog.h (struct recog_data): New field alternative_enabled_p.
1696 (skip_alternative): New inline function.
1697 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
1698 (record_reg_classes): Skip alternative according to the
1699 "enabled" attribute.
1701 * doc/md.texi: Add documention for the "enabled" attribute.
1703 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1705 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
1706 * postreload.c (reload_cse_simplify_operands): Replace 'm'
1707 constraint with TARGET_MEM_CONSTRAINT.
1708 * recog.c (asm_operand_ok, preprocess_constraints,
1709 constrain_operands): Likewise.
1710 * regclass.c (record_reg_classes): Likewise.
1711 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
1712 * reload1.c (maybe_fix_stack_asms): Likewise.
1713 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1714 * recog.h: Adjust comment.
1715 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
1716 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
1717 * doc/md.texi: Add a note to description of 'm' constraint.
1718 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
1720 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1722 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
1723 that the bitfield is of integral type before testing its precision.
1725 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1726 Sa Liu <saliu@de.ibm.com>
1728 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
1729 __modti3, __udivti3, __umodti3 and __udivmodti4.
1730 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
1731 that implement TImode mul and div functions.
1732 * config/spu/multi3.c: New. Implement __multi3.
1733 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
1734 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
1737 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
1739 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
1740 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
1741 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
1742 tls_sysv_suffix): New mode and mode attribute iterators.
1743 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
1744 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
1745 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
1746 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
1747 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
1750 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1752 PR tree-optimization/36329
1753 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
1754 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
1755 * cgraphbuild.c (initialize_inline_failed): Use the latter
1756 macro in lieu of the former.
1757 * ipa-inline.c (cgraph_mark_inline): Likewise.
1758 (cgraph_decide_inlining_of_small_function): Likewise.
1759 (cgraph_decide_inlining): Likewise.
1760 (cgraph_decide_inlining_incrementally): Likewise.
1762 2008-05-26 Tristan Gingold <gingold@adacore.com>
1763 Anatoly Sokolov <aesok@post.ru>
1765 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
1766 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
1767 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
1768 optimization for 'avr6' architecture.
1770 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
1773 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
1775 2008-05-26 Richard Guenther <rguenther@suse.de>
1777 * tree-ssa-sccvn.c (expr_has_constants): Declare.
1778 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
1780 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
1783 * caller-save.c (insert_restore): Verify alignment of spill space.
1784 (insert_save): Likewise.
1785 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
1786 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
1787 (STACK_SLOT_ALIGNMENT): Likewise.
1788 * function.c (LOCAL_ALIGNMENT): Removed.
1789 (get_stack_local_alignment): New.
1790 (assign_stack_local): Use it. Set alignment on stack slot.
1791 (assign_stack_temp_for_type): Use get_stack_local_alignment.
1792 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
1793 (STACK_SLOT_ALIGNMENT): New.
1794 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
1795 stack slot in XFmode.
1797 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
1799 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
1802 * config/i386/i386.md (allocate_stack_worker_64): Make sure
1803 argument operand in rax isn't removed.
1805 2008-05-26 Richard Guenther <rguenther@suse.de>
1808 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
1809 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
1811 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1814 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
1816 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
1818 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
1819 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
1821 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1823 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
1824 build a trampoline if we don't want one.
1825 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
1826 return zero for nested functions if we don't want a trampoline.
1828 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1830 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
1832 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1835 * c.opt: Removed undocumented option '-lang-fortran'.
1836 * c-common.h: Removed global variable 'lang_fortran'.
1837 * c-opts.c (c_common_handle_option): Removed code to handle
1838 option '-lang-fortran'. Updated includes.
1839 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
1840 definition of '__GFORTRAN__'.
1841 (define__GNUC__): Reimplemented to use BASEVER and
1842 cpp_define_formatted.
1843 (builtin_define_with_value_n): Removed.
1844 * c-incpath.h: Renamed to ...
1845 * incpath.h: ... this.
1846 * c-incpath.c: Renamed to ...
1847 * incpath.c: ... this. Updated includes.
1848 * fix-header.c: Updated includes.
1849 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
1850 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
1851 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
1853 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1855 * tree.h: Update the table of flags used on tree nodes.
1856 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
1857 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
1858 (FORCED_LABEL): Add access check.
1859 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
1860 (ASM_INPUT_P): Likewise.
1861 (ASM_VOLATILE_P): Likewise.
1862 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
1863 (OMP_SECTION_LAST): Access private_flag directly.
1864 (OMP_RETURN_NOWAIT): Likewise.
1865 (OMP_PARALLEL_COMBINED): Likewise.
1866 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
1867 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
1868 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
1869 deprecated_flag directly.
1871 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
1873 * final.c (frame_pointer_needed): Removed.
1874 * flags.h (frame_pointer_needed): Likewise.
1876 * function.h (rtl_data): Add frame_pointer_needed.
1877 (frame_pointer_needed): New.
1879 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
1881 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
1883 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
1885 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
1888 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1890 * c-common.c (strip_array_types): Move function to..
1892 (get_inner_array_type): Delete.
1893 * c-common.h (strip_array_types): Move declaration to..
1895 (get_inner_array_type): Delete.
1896 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
1897 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
1898 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1899 * config/pa/pa.c (emit_move_sequence): Likewise.
1901 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
1903 * config/i386/i386.md (*sse_prologue_save_insn): Set length
1906 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
1908 * function.c: Include target hook for nonlocal_goto frame value.
1910 2008-05-24 Richard Guenther <rguenther@suse.de>
1912 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
1913 variable can be only accessed through a pointer or a union.
1915 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1917 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
1918 * doc/extend.texi: Likewise.
1920 2008-05-23 DJ Delorie <dj@redhat.com>
1922 * config/m32c/jump.md (untyped_call): Add.
1924 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
1926 (m32c_address_cost): Detail costs for indirect offsets.
1928 2008-05-23 Rafael Espindola <espindola@google.com>
1930 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
1931 if a node is a SUBREG.
1932 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
1935 2008-05-23 Paul Brook <paul@codesourcery.com>
1936 Carlos O'Donell <carlos@codesourcery.com>
1938 * doc/extend.texi: Clarify use of __attribute__((naked)).
1939 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
1940 * target.h (gcc_target): Add allocate_stack_slots_for_args.
1941 * function.c (use_register_for_decl): Use
1942 targetm.calls.allocate_stack_slots_for_args.
1943 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
1944 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
1945 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
1947 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1949 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
1951 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
1953 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
1954 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
1955 is only rounded once.
1957 2008-05-23 Richard Guenther <rguenther@suse.de>
1959 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
1961 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
1962 Jakub Jelinek <jakub@redhat.com>
1965 * configure.ac: Handle --enable-cld.
1966 * configure: Regenerated.
1967 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
1968 * config/i386/i386.h (struct machine_function): Add needs_cld field.
1969 (ix86_current_function_needs_cld): New define.
1970 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
1971 (cld): New isns pattern.
1972 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
1973 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
1974 * config/i386/i386.opt (mcld): New option.
1975 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
1976 TARGET_CLD and ix86_current_function_needs_cld.
1977 (override_options): Use -mcld by default for 32-bit code if
1980 * doc/install.texi (Options specification): Document --enable-cld.
1981 * doc/invoke.texi (Machine Dependent Options)
1982 [i386 and x86-64 Options]: Add -mcld option.
1983 (Intel 386 and AMD x86-64 Options): Document -mcld option.
1985 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
1986 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
1987 (return_in_memory_64): Likewise.
1988 (return_in_memory_ms_64): Likewise.
1990 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1992 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
1993 * builtins.c (fold_builtin_fpclassify): New.
1994 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
1995 * builtins.def (BUILT_IN_FPCLASSIFY): New.
1996 * c-common.c (handle_type_generic_attribute): Adjust to accept
1997 fixed arguments before an elipsis.
1998 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
1999 * doc/extend.texi: Document __builtin_fpclassify.
2001 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
2003 * omp-low.c (gate_expand_omp_ssa): Remove.
2004 (pass_expand_omp_ssa): Remove.
2005 (gate_expand_omp): Do not check for flag_openmp_ssa.
2006 * common.opt (-fopenmp-ssa): Remove.
2007 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
2009 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
2011 * config/sh/sh.opt (mfixed-range): New option.
2012 * config/sh/sh-protos.h (sh_fix_range): Declare.
2013 * config/sh/sh.c (sh_fix_range): New function.
2014 * config/sh/sh.h (sh_fixed_range_str): Declare.
2015 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
2017 * doc/invoke.texi (SH Options): Document -mfixed-range.
2019 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
2021 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
2022 it before the redeclaration.
2024 2008-05-22 Anatoly Sokolov <aesok@post.ru>
2026 * config/avr/avr.c (get_sequence_length): Add new function.
2027 (expand_prologue, expand_epilogue): Remove duplicate code.
2029 2008-05-22 Rafael Espindola <espindola@google.com>
2031 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
2034 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
2036 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
2037 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
2039 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
2040 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
2041 (vect_update_misalignment_for_peel): Likewise.
2042 (vector_alignment_reachable_p): Likewise.
2043 * tree-vect-transform.c (vectorizable_load): Likewise.
2044 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
2045 (get_vectype_for_scalar_type): Pass mode of scalar_type
2046 to UNITS_PER_SIMD_WORD.
2048 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
2049 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
2050 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
2051 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
2052 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
2054 2008-05-22 Ira Rosen <irar@il.ibm.com>
2056 PR tree-optimization/36293
2057 * tree-vect-transform.c (vect_transform_strided_load): Don't check
2058 if the first load must be skipped because of a gap.
2060 2008-05-22 Richard Guenther <rguenther@suse.de>
2062 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
2063 more cases of offset disambiguation that is possible if
2064 strict-aliasing rules apply.
2065 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
2066 for basic offset and type-based disambiguation.
2068 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2070 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
2071 ix86_expand_vector_set on V16QImode for SSE4.1.
2073 2008-05-21 Tom Tromey <tromey@redhat.com>
2075 * c.opt (Wimport): Mark as undocumented.
2076 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
2078 (Warning Options): Likewise.
2079 * doc/cppopts.texi: Don't mention -Wimport.
2081 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
2083 PR tree-optimization/36287
2084 PR tree-optimization/36286
2085 * lambda-code.c (build_access_matrix): Do not use the loop->num
2086 for computing the number of induction variables: use the loop depth
2089 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
2092 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
2093 option -f(no-)leading-underscore.
2095 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2097 * config/i386/i386.c (ix86_expand_vector_init_general): Use
2098 GET_MODE_NUNITS (mode).
2100 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
2102 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
2103 (-mmulhw): Add 464 to description.
2104 (-mdlmzb): Likewise.
2105 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
2106 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
2108 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
2109 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
2110 * config/rs6000/rs6000.md: Update comments for 464.
2112 2008-05-21 Janis Johnson <janis187@us.ibm.com>
2114 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
2116 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2118 * config/i386/sse.md (vec_extractv4sf): Removed.
2119 (vec_extractv2df): Likewise.
2120 (vec_extractv2di): Likewise.
2121 (vec_extractv4si): Likewise.
2122 (vec_extractv8hi): Likewise.
2123 (vec_extractv16qi): Likewise.
2124 (vec_extract<mode>): New.
2126 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2128 * config/i386/sse.md (vec_setv4sf): Removed.
2129 (vec_setv2df): Likewise.
2130 (vec_setv2di): Likewise.
2131 (vec_setv4si): Likewise.
2132 (vec_setv8hi): Likewise.
2133 (vec_setv16qi): Likewise.
2134 (vec_set<mode>): New.
2136 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2138 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
2139 goto for vec_concat and vec_interleave.
2141 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
2143 * config/i386/sse.md (vec_initv4sf): Removed.
2144 (vec_initv2df): Likewise.
2145 (vec_initv2di): Likewise.
2146 (vec_initv4si): Likewise.
2147 (vec_initv8hi): Likewise.
2148 (vec_initv16qi): Likewise.
2149 (vec_init<mode>): New.
2151 2008-05-21 Joseph Myers <joseph@codesourcery.com>
2153 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
2155 2008-05-21 Tom Tromey <tromey@redhat.com>
2157 * ggc-zone.c (lookup_page_table_if_allocated): New function.
2158 (zone_find_object_offset): Likewise.
2159 (gt_ggc_m_S): Likewise.
2160 (highest_bit): Likewise.
2161 * ggc-page.c (gt_ggc_m_S): New function.
2162 * stringpool.c (string_stack): Remove.
2163 (init_stringpool): Update.
2164 (ggc_alloc_string): Use ggc_alloc.
2165 (maybe_delete_ident): New function.
2166 (ggc_purge_stringpool): Likewise.
2167 (gt_ggc_m_S): Remove.
2168 * ggc-common.c (ggc_protect_identifiers): New global.
2169 (ggc_mark_roots): Call ggc_purge_stringpool. Use
2170 ggc_protect_identifiers.
2171 * ggc.h (ggc_protect_identifiers): Declare.
2172 (gt_ggc_m_S): Update.
2173 (ggc_purge_stringpool): Declare.
2174 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
2175 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
2177 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
2179 2008-05-21 David S. Miller <davem@davemloft.net>
2181 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
2184 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
2186 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
2189 2008-05-20 David Daney <ddaney@avtrex.com>
2191 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
2192 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
2193 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
2194 UNSPEC_UPDATE_GOT_VERSION): Renumber.
2195 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
2196 (atomic_hiqi_op): New define_code_iterator.
2197 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
2198 mips_expand_compare_and_swap_12.
2199 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
2200 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
2201 (sync_<optab><mode>, sync_old_<optab><mode>,
2202 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
2203 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
2204 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
2205 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
2206 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
2207 (test_and_set_12): New insn.
2208 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
2209 sync_new_<optab><mode>, sync_old_nand<mode>,
2210 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
2211 clobber to operand 0 for SI and DI mode insns.
2212 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
2213 mips_gen_fn_4): New typedefs.
2214 (mips_gen_fn_ptrs): Define new union type.
2215 (mips_expand_compare_and_swap_12): Remove declaration.
2216 (mips_expand_atomic_qihi): Declare function.
2217 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
2218 (mips_expand_atomic_qihi): ... this. Use new generator function
2220 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
2221 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
2222 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
2223 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
2224 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
2225 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
2226 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
2227 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
2228 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
2229 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
2232 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
2234 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
2237 2008-05-20 Anatoly Sokolov <aesok@post.ru>
2239 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
2240 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
2241 (avr_attribute_table): Add 'OS_main' function attribute.
2242 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
2243 functions with 'OS_main' attribute.
2245 2008-05-20 Richard Guenther <rguenther@suse.de>
2247 PR tree-optimization/35204
2248 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
2249 helper, split out from ...
2250 (DFS): ... here. Make the DFS walk non-recursive.
2252 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
2253 Jan Sjodin <jan.sjodin@amd.com>
2255 PR tree-optimization/36181
2256 * tree-parloops.c (loop_has_vector_phi_nodes): New.
2257 (parallelize_loops): Don't parallelize when the loop has vector
2260 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2261 Sebastian Pop <sebastian.pop@amd.com>
2263 * tree-loop-linear.c (gather_interchange_stats): Look in the access
2264 matrix, and never look at the tree representation of the memory
2266 (linear_transform_loops): Computes parameters and access matrices.
2267 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
2269 (access_matrix_get_index_for_parameter): New.
2270 * tree-data-ref.h (struct access_matrix): New.
2271 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
2272 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
2273 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
2274 am_vector_index_for_loop): New.
2275 (struct data_reference): Add field access_matrix.
2276 (DR_ACCESS_MATRIX): New.
2277 (compute_data_dependences_for_loop): Update declaration.
2278 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
2279 * lambda.h (lambda_vector_vec_p): Declared.
2280 * lambda-code.c: Depend on pointer-set.h.
2281 (lambda_collect_parameters_from_af, lambda_collect_parameters,
2282 av_for_af_base, av_for_af, build_access_matrix,
2283 lambda_compute_access_matrices): New.
2284 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
2286 2008-05-20 Joseph Myers <joseph@codesourcery.com>
2288 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
2291 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2292 Sebastian Pop <sebastian.pop@amd.com>
2294 PR tree-optimization/36206
2295 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
2297 (instantiate_scev_1): Rename flags to fold_conversions.
2298 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
2299 outeside instantiation_loop.
2300 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
2301 (evolution_function_is_affine_or_constant_p): Removed.
2302 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
2304 (analyze_siv_subscript): Pass in the loop nest number.
2305 Call evolution_function_is_affine_in_loop instead of
2306 evolution_function_is_affine_p.
2307 (analyze_overlapping_iterations): Pass in the loop nest number.
2309 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2310 Sebastian Pop <sebastian.pop@amd.com>
2312 PR tree-optimization/36206
2313 * tree-chrec.h (chrec_fold_op): New.
2314 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
2317 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
2319 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
2321 (remove_duplicates): Do not set inode on non-inode systems.
2324 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
2326 * config.gcc (tm_file): Update comments about relative pathnames.
2328 2008-05-20 Richard Guenther <rguenther@suse.de>
2330 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
2331 * tree-ssa-sccvn.c (process_scc): Likewise.
2332 * tree-ssa-sink.c (execute_sink_code): Likewise.
2333 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2334 * tree-vrp.c (process_assert_insertions): Likewise.
2335 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
2336 (perform_tree_ssa_dce): Likewise.
2337 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2338 (dump_dominator_optimization_stats): Likewise.
2339 * tree-vectorizer.c (vectorize_loops): Likewise.
2341 2008-05-20 Richard Guenther <rguenther@suse.de>
2343 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
2345 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
2347 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
2348 (ix86_i386elf_return_in_memory): Likewise.
2349 (ix86_i386interix_return_in_memory): Likewise.
2350 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
2351 (SUBTARGET_RETURN_IN_MEMORY): New.
2352 * config/i386/i386elf.h: Likewise.
2353 * config/i386/ptx4-i.h: Likewise.
2354 * config/i386/sol2-10.h: Likewise.
2355 * config/i386/sysv4.h: Likewise.
2356 * config/i386/vx-common.h: Likewise.
2357 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
2358 * config/i386/i386.c (ix86_return_in_memory): Made static and
2359 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
2360 (ix86_i386elf_return_in_memory): Removed.
2361 (ix86_i386interix_return_in_memory): Removed.
2362 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
2363 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
2365 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
2367 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
2369 2008-05-19 Xinliang David Li <davidxl@google.com>
2371 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
2373 * common.opt: Ditto.
2374 * doc/invoke.texi: Ditto.
2376 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
2378 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
2379 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
2381 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
2383 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
2384 sizes of operand array from 8/4 to 4/2.
2385 (ix86_expand_vector_init_general): Change size of operand array
2386 from 32 to 16. Remove op0, op1 and half_mode.
2388 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
2390 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
2391 (ix86_expand_vector_init_interleave): Likewise.
2392 (ix86_expand_vector_init_general): Use them. Assert
2393 word_mode == SImode when n_words == 4.
2395 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
2397 * config/i386/i386.c (ix86_secondary_reload): New static function.
2398 (TARGET_SECONDARY_RELOAD): New define.
2399 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2400 * config/i386/i386.md (reload_outqi): Remove.
2402 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2405 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
2406 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
2407 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
2408 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
2409 (fold_builtin_1): Likewise.
2410 * builtins.def (BUILT_IN_ISINF_SIGN): New.
2411 c-common.c (check_builtin_function_arguments): Handle
2412 BUILT_IN_ISINF_SIGN.
2413 * doc/extend.texi: Document __builtin_isinf_sign.
2414 * fold-const.c (operand_equal_p): Handle COND_EXPR.
2416 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
2418 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
2419 EH cleanup at the end of the pass, search for those that have been
2420 turned into forwarder blocks and do the cleanup on their successor.
2422 2008-05-18 Richard Guenther <rguenther@suse.de>
2424 * tree-cfg.c (verify_gimple_expr): Allow conversions from
2425 pointers to sizetype and vice versa.
2427 2008-05-18 Xinliang David Li <davidxl@google.com>
2429 * gcc/tree-ssa-dce.c: Coding style fix.
2430 (check_pow): Documentation comment.
2431 (check_log): Documenation comment. Coding style fix.
2432 (is_unnecessary_except_errno_call): Ditto.
2433 (gen_conditions_for_pow): Ditto.
2434 (gen_conditions_for_log): Ditto.
2435 (gen_shrink_wrap_conditions): Ditto.
2436 (shrink_wrap_one_built_in_calls): Ditto.
2437 * gcc/doc/invoke.texi: Better documentation string.
2438 * ChangeLog: Fix wrong change log entries from
2439 May 17 checkin on function call DCE.
2441 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
2443 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
2445 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
2447 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
2448 * df-problems.c (simulation routines): Fixed block comment to
2449 properly say how to add forwards scanning functions.
2451 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2453 * tree-inline.c (setup_one_parameter): Remove dead code.
2455 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2457 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
2458 a BIT_AND_EXPR only for an INTEGER_TYPE.
2460 2008-05-17 Xinliang David Li <davidxl@google.com>
2462 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
2463 (check_pow, check_log, is_unnecessary_except_errno_call): New
2464 functions to check for eliminating math functions that are pure
2465 except for setting errno.
2466 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
2467 general condition expressions for shrink-wrapping pow/log calls.
2468 (gen_shrink_wrap_conditions): Ditto.
2469 (shrink_wrap_one_built_in_call): Ditto.
2470 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
2471 (mark_operand_necessary): If debugging, output if OP is necessary.
2472 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
2474 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
2476 * gcc/common.opt: New user flag -ftree-builtin-dce.
2477 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
2479 2008-05-16 David S. Miller <davem@davemloft.net>
2481 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
2482 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2484 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
2487 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
2489 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2491 * ifcvt.c (dead_or_predicable): Rename
2492 df_simulate_one_insn_backwards to df_simulate_one_insn.
2493 * recog.c (peephole2_optimize): Ditto.
2494 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
2496 * df.h: Rename df_simulate_one_insn_backwards to
2497 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
2498 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
2499 scanning of defs and uses.
2500 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
2501 (df_simulate_one_insn_forwards): Removed.
2503 2008-05-16 Doug Kwan <dougkwan@google.com>
2505 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
2507 (real_from_string): Handle NaNs and Inf as approriate.
2509 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
2511 * doc/gty.texi (Source Files Containing Type Information): Note
2512 that headers should appear first in the gtfiles list.
2514 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2516 * tree.def (COND_EXEC): Properly documented this code.
2518 2008-05-16 Diego Novillo <dnovillo@google.com>
2520 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
2521 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
2524 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2526 * tree-ssa-dse (max_stmt_uid): Removed.
2527 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
2528 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
2529 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
2530 * function.h (cfun.last_stmt_uid): New field.
2531 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
2532 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
2534 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
2535 (create_stmt_ann): Initialize the ann->uid field.
2536 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
2538 * tree-flow.h (renumber_gimple_stmt_uids): New function.
2540 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
2542 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
2543 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
2544 (init_empty_tree_cfg): Call it.
2546 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2548 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
2551 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2553 * doc/invoke.text (-fdump-tree-*-verbose): New option.
2554 * tree-dump.c (dump_options): New verbose option.
2555 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
2557 * tree-pass.h (TDF_VERBOSE): New dump flag.
2558 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
2559 (tree-flow.h): Added include.
2560 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
2562 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
2564 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
2566 From Jie Zhang <jie.zhang@analog.com>
2567 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2568 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
2569 mcpu=bf561-none and mcpu=bf561-0.2.
2570 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2571 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2572 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2573 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2574 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
2575 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
2576 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
2578 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
2579 (cputype_selected): Remove.
2580 (bfin_handle_option): Don't use cputype_selected.
2581 (override_options): When no mcpu option, enable all workarounds.
2582 Don't use bfin_workarounds.
2583 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
2585 (DEFAULT_CPU_TYPE): Don't define.
2587 2008-05-16 Richard Guenther <rguenther@suse.de>
2589 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
2590 on deletion of the last stmt.
2592 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
2594 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
2595 V8HImode for SSE2 and V16QImode for SSE4.1.
2597 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
2599 * cgraph.h (compute_inline_parameters): Made public.
2600 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
2601 variable_generate_summary, function_write_summary,
2602 variable_write_summary, variable_read_summary. Added generate_summary,
2603 write_summary, read_summary.
2604 * cgraphunit.c (cgraph_process_new_functions): Changed call from
2605 pass_ipa_inline.function_generate_summary, to
2606 compute_inline_parameters.
2607 * ipa-inline.c (compute_inline_parameters): Made public and added
2609 (compute_inline_parameters_for_current): New function.
2610 (pass_inline_param): Now calls compute_inline_parameters_for_current.
2611 (inline_generate_summary): Removed parameter and made to loop over
2613 (pass_ipa_inline): Updated for new IPA_PASS structure.
2614 * passes.c (execute_ipa_summary_passes): Now is called once per
2615 pass rather than once per node*pass.
2617 2008-05-15 Anatoly Sokolov <aesok@post.ru>
2619 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
2620 avr_have_mul_p, avr_asm_only_p): Remove variables.
2621 (avr_override_options): Remove initialization of removed variables.
2622 (avr_file_start): Convert removed variables to fields of
2623 'struct base_arch_s *avr_current_arch'.
2624 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
2625 (AVR_HAVE_MUL): (Ditto.).
2626 (AVR_HAVE_MOVW): (Ditto.).
2627 (AVR_HAVE_LPMX): (Ditto.).
2628 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
2629 avr_asm_only_p): Remove declaration.
2631 2008-05-15 Diego Novillo <dnovillo@google.com>
2633 * config/arm/arm.c (arm_return_in_memory): Fix return type.
2634 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
2636 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
2639 * combine.c (check_conversion): Rename back to check_promoted_subreg.
2640 Don't call record_truncated_value from here.
2641 (record_truncated_value): Turn it into a for_each_rtx callback.
2642 (record_truncated_values): New function.
2643 (combine_instructions): Call note_uses with record_truncated_values.
2644 Change name of check_conversion to check_promoted_subreg.
2646 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2648 * doc/sourcebuild.texi: Document support for torture tests.
2650 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
2652 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
2653 to alternative 4 of operand 2.
2655 2008-05-15 Richard Guenther <rguenther@suse.de>
2657 * tree-pass.h (current_pass): Declare.
2658 (get_pass_for_id): Likewise.
2659 * passes.c (passes_by_id, passes_by_id_size): New globals.
2660 (set_pass_for_id): New function.
2661 (get_pass_for_id): Likewise.
2662 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
2663 (execute_function_todo): Flush per function statistics.
2664 * toplev.c (compile_file): Init statistics.
2665 (general_init): Do early statistics initialization.
2666 (finalize): Finish statistics.
2667 * statistics.h (statistics_early_init): Declare.
2668 (statistics_init): Likewise.
2669 (statistics_fini): Likewise.
2670 (statistics_fini_pass): Likewise.
2671 (statistics_counter_event): Likewise.
2672 (statistics_histogram_event): Likewise.
2673 * statistics.c: New file.
2674 * Makefile.in (OBJS-common): Add statistics.o.
2675 (statistics.o): Add dependencies.
2676 * doc/invoke.texi (-fdump-statistics): Document.
2678 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
2680 (execute_pre): Use statistics_counter_event.
2681 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
2682 (substitute_and_fold): Increment it. Use statistics_counter_event.
2684 2008-05-15 Diego Novillo <dnovillo@google.com>
2686 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
2688 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
2689 * tree-ssa-alias.c (new_type_alias): Remove references to
2690 sub-variables from comment.
2691 * tree-ssa-operands.c (swap_tree_operands): Likewise.
2693 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
2695 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
2696 attribute to 1 only for insertps alternative.
2698 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
2700 * config/bfin/bfin.md (loadbytes): New pattern.
2701 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
2702 (bfin_init_builtins): Initialize it.
2703 (bdesc_1arg): Add it.
2705 2008-05-15 Sa Liu <saliu@de.ibm.com>
2707 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
2708 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
2709 * testsuite/lib/target-supports.exp: Add
2710 check_effective_target_fortran_integer_16.
2712 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
2714 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
2715 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
2716 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
2717 (TARGET_RETURN_IN_MEMORY): Define.
2719 2008-05-15 Richard Guenther <rguenther@suse.de>
2722 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
2723 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
2724 represent unmodifiable vars.
2726 2008-05-15 Richard Guenther <rguenther@suse.de>
2728 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
2729 INDIRECT_REF and TARGET_MEM_REF.
2730 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2733 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
2734 H.J. Lu <hongjiu.lu@intel.com>
2736 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
2737 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
2738 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
2739 insn alternatives. Add missing alternatives.
2740 (*vec_concatv2di_rex64_sse4_1): Likewise.
2741 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
2742 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
2745 2008-05-15 Richard Guenther <rguenther@suse.de>
2747 PR tree-optimization/36009
2748 PR tree-optimization/36204
2749 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
2750 (determine_invariantness_stmt): Record the loop a store is
2752 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
2755 2008-05-15 Richard Guenther <rguenther@suse.de>
2757 PR tree-optimization/34330
2758 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
2759 through the pointer will alias the SMT.
2761 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
2763 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
2765 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
2767 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
2769 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2770 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2772 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
2773 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
2774 (vashl_optab): New optab for vector/vector shifts.
2775 (vashr_optab): Ditto.
2776 (vlshr_optab): Ditto.
2777 (vrotl_optab): Ditto.
2778 (vrotr_optab): Ditto.
2779 (optab_subtype): New enum for optab_for_tree_code call.
2780 (optab_for_tree_code): Add enum optab_subtype argument.
2782 * optabs.c (optab_for_tree_code): Take an additional argument to
2783 distinguish between a vector shift by a scalar and vector shift by
2784 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
2785 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
2786 vector shift by a vector.
2787 (expand_widen_pattern_expr): Pass additional argument to
2788 optab_for_tree_code.
2790 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
2791 vrotl_optab, vrotr_optab.
2793 * expr.c (expand_expr_real_1): Update calls to
2794 optab_for_tree_code to distinguish between vector shifted by a
2795 scalar and vector shifted by a vector.
2796 * tree-vectorizer.c (supportable_widening_operation): Ditto.
2797 (supportable_narrowing_operation): Ditto.
2798 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
2799 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
2800 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
2801 (vect_create_epilog_for_reduction): Ditto.
2802 (vectorizable_reduction): Ditto.
2803 (vectorizable_operation): Ditto.
2804 (vect_strided_store_supported): Ditto.
2805 (vect_strided_load_supported): Ditto.
2806 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2807 * expmed.c (expand_shift): Ditto.
2809 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
2811 (ashr@var{m}3): Ditto.
2812 (vashl@var{m}3): Document new vector/vector shift standard name.
2813 (vashr@var{m}3): Ditto.
2814 (vlshr@var{m}3): Ditto.
2815 (vrotl@var{m}3): Ditto.
2816 (vrotr@var{m}3): Ditto.
2818 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
2819 (PPERM_INVERT): Ditto.
2820 (PPERM_REVERSE): Ditto.
2821 (PPERM_REV_INV): Ditto.
2822 (PPERM_ZERO): Ditto.
2823 (PPERM_ONES): Ditto.
2824 (PPERM_SIGN): Ditto.
2825 (PPERM_INV_SIGN): Ditto.
2826 (PPERM_SRC1): Ditto.
2827 (PPERM_SRC2): Ditto.
2829 * config/i386/sse.md (mulv2di3): Add SSE5 support.
2830 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
2831 allows a memory operand to be the value being added, and split it
2832 to improve vectorization.
2833 (sse5_pmacsdqh_mem): Ditto.
2834 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
2835 (sse5_mulv2div2di3_high): Ditto.
2836 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
2837 (vec_pack_trunc_v4si): Ditto.
2838 (vec_pack_trunc_v2di): Ditto.
2839 (sse5_pcmov_<mode>): Remove code that tried to use use
2840 andps/andnps instead of pcmov.
2841 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
2842 pmacsdqh instructions.
2843 (vec_widen_smult_lo_v4si): Ditto.
2845 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
2846 (PPERM_INVERT): Ditto.
2847 (PPERM_REVERSE): Ditto.
2848 (PPERM_REV_INV): Ditto.
2849 (PPERM_ZERO): Ditto.
2850 (PPERM_ONES): Ditto.
2851 (PPERM_SIGN): Ditto.
2852 (PPERM_INV_SIGN): Ditto.
2853 (PPERM_SRC1): Ditto.
2854 (PPERM_SRC2): Ditto.
2855 (ix86_expand_sse_movcc): Move the SSE5 test after the if
2857 (ix86_expand_int_vcond): If SSE5 generate all possible integer
2859 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
2860 says ignore whether the last reference is a memory operand.
2862 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2863 Paolo Bonzini <bonzini at gnu dot org>
2865 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
2868 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
2869 (vlshr<mode>3): Rename from vlshr<mode>3.
2870 (vashr<mode>3): Rename from vashr<mode>3.
2871 (mulv4sf3): Change the names of vector shift patterns.
2875 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
2878 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
2903 * config/spu/spu.md (v): New iterator macro to add v for vector types.
2904 (floatunssidf2_internal): Change vector/vector shift names.
2905 (floatunsdidf2_internal): Ditto.
2912 (vashl<mode>3): Rename from ashl<mode>3.
2913 (vashr<mode>3): Rename from ashr<mode>3.
2914 (vlshr<mode>3): Rename from lshr<mode>3.
2915 (vrotl<mode>3): Rename from rotl<mode>3.
2917 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2920 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
2921 multiply gives the wrong value when doing widening multiplies.
2922 (vec_widen_smult_lo_v4si): Ditto.
2924 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
2926 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
2927 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
2928 emit_library_call_value.
2929 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
2930 * tree.h (ECF_LIBCALL_BLOCK): Removed.
2931 * calls.c (initialize_argument_information, precompute_arguments,
2932 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
2933 (precompute_arguments): Removed flags parameter.
2934 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
2936 2008-05-14 Richard Guenther <rguenther@suse.de>
2938 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
2939 Make sure to register the store if the use is a PHI_NODE.
2941 2008-05-14 Olivier Hainque <hainque@adacore.com>
2943 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
2944 memory if the component is to be referenced in BLKmode according
2945 to get_inner_reference.
2947 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
2949 * calls.c (emit_library_call_value_1): Restore code clearing
2950 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
2952 2008-05-14 Olivier Hainque <hainque@adacore.com>
2953 Nicolas Roche <roche@adacore.com>
2955 * configure.ac: Add support for a "gcc_subdir" variable in
2956 config-lang.in, to denote a subdirectory where the language/GCC
2957 integration files are to be found.
2958 * configure: Regenerate.
2960 2008-05-14 Ira Rosen <irar@il.ibm.com>
2962 PR tree-optimization/36098
2963 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
2964 value for the first load in the group in case of a gap.
2965 (vect_build_slp_tree): Check that there are no gaps in loads.
2967 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
2969 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
2970 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
2971 expand_copysign_bit, ): Change call to emit_no_conflict_block to
2972 emit_insn and remove unneeded code to construct extra args.
2973 (emit_no_conflict_block): Removed.
2974 * optabls.h: (emit_no_conflict_block): Removed.
2975 * cse.c (cse_extended_basic_block): Remove search for
2976 REG_NO_CONFLICT note.
2977 * global.c: Removed incorrect comment added in revision 117.
2978 * expr.c (convert_move): Change call to emit_no_conflict_block to
2980 * recog.c: Change comments so that they do not mention
2982 * local_alloc.c (combine_regs): Removed last parameter.
2983 (no_conflict_p): Removed.
2984 (block_alloc): Removed note, no_conflict_combined_regno and set
2985 local vars. Removed all code to process REG_NO_CONFLICT blocks.
2986 (combine_regs): Removed already_dead and code to look for
2987 REG_NO_CONFLICT notes.
2988 * lower_subreg (remove_retval_note): Removed code to look for
2989 REG_NO_CONFLICT block.
2990 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
2991 (resolve_clobber): Remove code to process libcalls that have
2992 REG_NO_CONFLICT notes.
2993 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
2995 * combine.c (can_combine_p, distribute_notes): Removed
2996 REG_NO_CONFLICT case.
2997 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
2999 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
3000 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
3002 * reg-notes.def (NO_CONFLICT): Removed.
3004 2008-05-14 David S. Miller <davem@davemloft.net>
3006 * config/sparc/sparc.c (sparc_profile_hook): If
3007 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
3008 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
3009 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
3011 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
3013 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
3015 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
3018 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
3019 and op1 expansion before vector concat to have less live pseudos.
3021 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
3023 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
3024 ix86_expand_vector_set if supported.
3026 2008-05-13 Diego Novillo <dnovillo@google.com>
3027 Kenneth Zadeck <zadeck@naturalbridge.com>
3029 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
3031 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
3032 phinodes_print_statistics, init_ssanames, fini_ssanames,
3033 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
3034 release_ssa_name, release_defs, replace_ssa_name_symbol,
3035 ssanames_print_statistics): Move ...
3036 * tree-flow.h: ... here.
3037 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
3038 Use FN instead of cfun.
3039 (make_ssa_name_fn): Rename from make_ssa_name.
3040 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
3041 * tree-flow-inline.h (make_ssa_name): Move from
3042 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
3043 * omp-low.c (expand_omp_parallel):
3044 * tree-flow-inline.h (redirect_edge_var_map_result):
3045 * tree-ssa.c (init_tree_ssa): Add argument FN.
3046 Use it instead of cfun. Update all users.
3048 2008-05-13 Tom Tromey <tromey@redhat.com>
3050 PR preprocessor/22168:
3051 * doc/cpp.texi (Top): Update menu.
3052 (Alternatives to Wrapper #ifndef): New node.
3053 (Other Directives): Document deprecation.
3054 (Obsolete Features): Remove menu.
3055 (Assertions): Merge node into Obsolete Features.
3056 (Obsolete once-only headers): Move earlier; rename to Alternatives
3058 * doc/cppopts.texi: Update.
3059 * c.opt (Wdeprecated): Enable for C and ObjC.
3060 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
3061 (C++ Dialect Options): Move -Wno-deprecated from here to...
3062 (Warning Options): ... here.
3064 2008-05-13 Richard Guenther <rguenther@suse.de>
3067 * fold-const.c (fold_sign_changed_comparison): Do not allow
3068 changes in pointer-ness.
3070 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
3073 * config/sh/sh.c (sh_expand_prologue): Don't clear
3074 RTX_FRAME_RELATED_P for push insns.
3076 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
3078 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
3080 2008-05-12 Anatoly Sokolov <aesok@post.ru>
3082 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
3083 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
3084 Use 'machine->is_leaf' instead of 'leaf_func_p'.
3086 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
3088 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
3089 (*vec_concatv4sf_sse): This.
3090 (*sse2_concatv2si): Renamed to ...
3091 (*vec_concatv2si_sse2): This.
3092 (*sse1_concatv2si): Renamed to ...
3093 (*vec_concatv2si_sse): This.
3094 (*vec_concatv2di_rex): Renamed to ...
3095 (*vec_concatv2di_rex64): This.
3096 (*vec_concatv2si_sse4_1): New.
3097 (*vec_concatv2di_rex64_sse4_1): Likewise.
3099 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
3101 PR rtl-optimization/36111
3102 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
3103 that was created for swappable operands.
3105 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
3108 * Makefile.in: Substitute GNATMAKE and GNATBIND.
3109 * configure.ac: Add call to ACX_PROG_GNAT.
3111 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
3113 * optc-gen.awk: Fix comment typo.
3115 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
3117 * pretty-print.c (pp_integer_with_precision): Use
3118 HOST_LONG_LONG_FORMAT.
3120 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
3122 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
3124 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
3126 * config/i386/i386.c (bdesc_ptest): Removed.
3127 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
3128 (bdesc_args): Add __builtin_ia32_ptestz128,
3129 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
3130 (ix86_init_mmx_sse_builtins): Updated.
3131 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
3132 (ix86_expand_builtin): Updated.
3134 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
3136 * tree-cfg.c (valid_fixed_convert_types_p): New function.
3137 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
3139 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
3141 * value-prof.c (interesting_stringop_to_profile): Do not
3142 return early for BUILT_IN_MEMPCPY.
3144 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
3146 * calls.c (expand_call): Don't use callgraph to increase
3147 preferred_stack_boundary.
3149 * cgraph.h (cgraph_rtl_info): Use unsigned on
3150 preferred_incoming_stack_boundary.
3152 * final.c (rest_of_clean_state): Use unsigned on
3153 preferred_stack_boundary.
3155 2008-05-09 Tom Tromey <tromey@redhat.com>
3157 PR preprocessor/22231:
3158 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
3161 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
3163 PR tree-optimization/36129
3164 * tree-ssa-ccp.c: Include value-prof.h.
3165 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
3166 built-in function was folded to a constant.
3167 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
3169 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
3170 Sebastian Pop <sebastian.pop@amd.com>
3172 * tree-scalar-evolution.c: Document instantiate_scev.
3173 (instantiate_parameters_1): Renamed instantiate_scev_1.
3174 Don't use the same loop for instantiation_loop and evolution_loop.
3175 (instantiate_scev): New.
3176 (instantiate_parameters): Moved...
3177 (resolve_mixers): Update call to instantiate_scev_1 to pass the
3178 same loop twice. Maintains the semantics for this function.
3179 * tree-scalar-evolution.h (instantiate_scev): Declare.
3180 (instantiate_parameters): ...here. Now static inline.
3181 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
3182 instead of resolve_mixers.
3184 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
3186 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
3188 2008-05-09 Tomas Bily <tbily@suse.cz>
3190 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
3191 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
3192 * tree-ssa-structalias.c (get_constraint_for): Likewise.
3193 * c-common.c (c_common_truthvalue_conversion): Likewise.
3194 * tree-object-size.c (compute_object_offset): Likewise.
3195 * tree-inline.c (estimate_num_insns_1): Likewise.
3196 * varasm.c (const_hash_1, compare_constant, copy_constant)
3197 (compute_reloc_for_constant, output_addressed_constants)
3198 (initializer_constant_valid_p): Likewise.
3199 * c-omp.c (check_omp_for_incr_expr): Likewise.
3200 * gimplify.c (gimplify_expr): Likewise.
3201 * c-typeck.c (c_finish_return): Likewise.
3202 * tree-vectorizer.c (supportable_widening_operation)
3203 (supportable_narrowing_operation): Likewise.
3204 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
3205 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
3206 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
3207 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
3208 (descr_info_loc): Likewise.
3209 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
3210 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
3211 (fold_unary): Likewise.
3212 * builtins.c (get_pointer_alignment): Likewise.
3213 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
3214 (instantiate_parameters_1): Likewise.
3215 * tree.c (expr_align, stabilize_reference): Likewise.
3216 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
3217 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3218 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
3219 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
3220 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
3221 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
3223 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
3224 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
3225 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
3226 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
3227 (forward_propagate_comparison)
3228 (tree_ssa_forward_propagate_single_use_vars): Likewise.
3229 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
3230 * emit-rtl.c (component_ref_for_mem_expr)
3231 (set_mem_attributes_minus_bitpos): Likewise.
3232 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
3233 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
3235 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
3236 (build_function_call, pointer_diff, build_compound_expr)
3237 (c_finish_return): Likewise.
3238 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
3239 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
3241 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
3242 * expr.c (is_aligning_offset): Likewise.
3243 * tree-ssa-alias.c (is_escape_site): Likewise.
3244 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
3245 (check_all_va_list_escapes): Likewise.
3246 * tree-ssa-loop-ivopts.c (determine_base_object)
3247 (determine_common_wider_type): Likewise.
3248 * dojump.c (do_jump): Likewise.
3249 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
3250 * tree-gimple.c (is_gimple_cast): Likewise.
3251 * fold-const.c (decode_field_reference, )
3252 (fold_sign_changed_comparison, fold_unary, fold_comparison)
3253 (fold_binary): Likewise.
3254 * tree-ssa-alias-warnings.c (find_alias_site_helper)
3255 (already_warned_in_frontend_p): Likewise.
3256 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
3257 * tree.c (really_constant_p, get_unwidened): Likewise.
3258 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
3259 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
3260 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
3262 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
3264 (CONVERT_EXPR_P): Define.
3265 (CASE_CONVERT): Define.
3267 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
3270 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
3271 (delete_unmarked_insns): When deleting a call, call
3272 delete_unreachable_blocks.
3273 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3274 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
3276 2008-05-08 Richard Guenther <rguenther@suse.de>
3278 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
3279 (-ftree-salias): Likewise.
3280 (salias-max-implicit-fields): Remove param documentation.
3281 (salias-max-array-elements): Likewise.
3282 * tree-pass.h (pass_create_structure_vars): Remove.
3283 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3284 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3285 * tree-ssa-alias.c (create_structure_vars): Remove.
3286 (gate_structure_vars): Likewise.
3287 (pass_create_structure_vars): Likewise.
3288 (gate_build_alias): Likewise.
3289 (pass_build_alias): Adjust to run always and dump the function.
3290 * common.opt (ftree-salias): Hide.
3291 * passes.c (init_optimization_passes): Remove
3292 pass_create_structure_vars, adjust comment.
3293 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3294 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3295 * opts.c (decode_options): Do not set flag_tree_salias.
3296 (common_handle_option): Add OPT_ftree_salias to the backward
3297 compatibility section.
3299 2008-05-08 Richard Guenther <rguenther@suse.de>
3301 * tree-flow-inline.h (var_can_have_subvars): Move ...
3302 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
3303 * tree-flow.h (var_can_have_subvars): Remove.
3304 (push_fields_onto_fieldstack): Remove.
3305 (sort_fieldstack): Likewise.
3306 (struct fieldoff): Move ...
3307 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
3308 alias_set and base_for_components fields.
3309 (sort_fieldstack): Make static.
3310 (push_fields_onto_fieldstack): Likewise. Remove code that
3311 handles anything but RECORD_TYPEs. Remove alias_set and
3312 base_for_components handling.
3313 (create_variable_info_for): Adjust.
3315 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
3317 * common.opt (Wframe-larger-than=): Shorten the help message
3319 * doc/invoke.texi (Wframe-larger-than=): Add more description.
3321 2008-05-08 Rafael Espindola <espindola@google.com>
3323 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
3325 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
3326 trap and that both operands are gimple values.
3327 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
3328 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
3331 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
3333 * read-rtl.c (join_c_conditions): Return the first string if the
3334 two strings are equal.
3336 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
3338 * gensupport.h (pred_data): Add a "num_codes" field.
3339 (add_predicate_code): Declare.
3340 * gensupport.c (add_predicate_code): New function.
3341 (std_pred_table): Add an "allows_const_p" field.
3342 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
3343 Remove the (incomplete) list of such codes from the codes field.
3344 (init_predicate_table): Use add_predicate_code. Add all
3345 RTX_CONST_OBJs if allows_const_p is true.
3346 * genrecog.c (process_define_predicate): Use add_predicate_code.
3348 2008-05-08 David Daney <ddaney@avtrex.com>
3349 Richard Sandiford <rsandifo@nildram.co.uk>
3351 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
3352 special case of constant zero operands.
3353 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
3354 old and new values. Special case constant zero values.
3355 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
3357 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
3358 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
3360 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
3363 * simplify-rtx.c (simplify_plus_minus): Create CONST of
3364 similar RTX_CONST_OBJ before CONST_INT.
3366 2008-05-08 Steve Ellcey <sje@cup.hp.com>
3368 * stmt.c (expand_stack_restore): Change sa mode if needed.
3370 2008-05-08 Richard Guenther <rguenther@suse.de>
3372 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
3373 return type to bool.
3374 (ix86_sol10_return_in_memory): Likewise.
3375 (ix86_i386elf_return_in_memory): Likewise.
3376 (ix86_i386interix_return_in_memory): Likewise.
3377 * config/i386/i386.c (ix86_return_in_memory): Likewise.
3378 (ix86_sol10_return_in_memory): Likewise.
3379 (ix86_i386elf_return_in_memory): Likewise.
3380 (ix86_i386interix_return_in_memory): Likewise.
3382 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
3385 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
3387 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
3388 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
3391 2008-05-08 Richard Guenther <rguenther@suse.de>
3393 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
3394 * tree-data-ref.h (struct dr_alias): Remove subvars field.
3395 (DR_SUBVARS): Remove.
3396 * tree-dfa.c (dump_subvars_for): Remove.
3397 (debug_subvars_for): Likewise.
3398 (dump_variable): Do not dump subvars.
3399 (remove_referenced_var): Do not remove subvars.
3400 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
3401 (lookup_subvars_for_var): Remove.
3402 (get_subvars_for_var): Likewise.
3403 (get_subvars_at): Likewise.
3404 (get_first_overlapping_subvar): Likewise.
3405 (overlap_subvar): Likewise.
3406 * tree-flow.h (subvar_t): Remove.
3407 (struct var_ann_d): Remove subvars field.
3408 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
3409 argument. Remove special handling of SFTs.
3410 (compute_tag_properties): Likewise.
3411 (set_initial_properties): Likewise.
3412 (compute_call_clobbered): Likewise.
3413 (count_mem_refs): Likewise.
3414 (compute_memory_partitions): Likewise.
3415 (compute_flow_insensitive_aliasing): Likewise.
3416 (setup_pointers_and_addressables): Likewise.
3417 (new_type_alias): Likewise.
3418 (struct used_part): Remove.
3419 (used_portions): Likewise.
3420 (struct used_part_map): Likewise.
3421 (used_part_map_eq): Likewise.
3422 (used_part_map_hash): Likewise.
3423 (free_used_part_map): Likewise.
3424 (up_lookup): Likewise.
3425 (up_insert): Likewise.
3426 (get_or_create_used_part_for): Likewise.
3427 (create_sft): Likewise.
3428 (create_overlap_variables_for): Likewise.
3429 (find_used_portions): Likewise.
3430 (create_structure_vars): Likewise.
3431 * tree.def (STRUCT_FIELD_TAG): Remove.
3432 * tree.h (MTAG_P): Adjust.
3433 (struct tree_memory_tag): Remove base_for_components and
3434 unpartitionable flags.
3435 (struct tree_struct_field_tag): Remove.
3436 (SFT_PARENT_VAR): Likewise.
3437 (SFT_OFFSET): Likewise.
3438 (SFT_SIZE): Likewise.
3439 (SFT_NONADDRESSABLE_P): Likewise.
3440 (SFT_ALIAS_SET): Likewise.
3441 (SFT_UNPARTITIONABLE_P): Likewise.
3442 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
3443 (union tree_node): Remove sft field.
3444 * alias.c (get_alias_set): Remove special handling of SFTs.
3445 * print-tree.c (print_node): Remove handling of SFTs.
3446 * tree-dump.c (dequeue_and_dump): Likewise.
3447 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
3448 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
3449 * tree-predcom.c (set_alias_info): Do not set subvars.
3450 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
3451 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
3452 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
3453 (add_vars_for_offset): Remove.
3454 (add_virtual_operand): Remove special handling of SFTs.
3455 (add_call_clobber_ops): Likewise.
3456 (add_call_read_ops): Likewise.
3457 (get_asm_expr_operands): Likewise.
3458 (get_modify_stmt_operands): Likewise.
3459 (get_expr_operands): Likewise.
3460 (add_to_addressable_set): Likewise.
3461 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
3462 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3463 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
3464 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
3465 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
3466 (tree_node_structure): Likewise.
3467 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
3469 (find_what_p_points_to): Likewise.
3471 2008-05-08 Sa Liu <saliu@de.ibm.com>
3473 * config/spu/spu.md: Fixed subti3 pattern.
3475 2008-05-08 Richard Guenther <rguenther@suse.de>
3478 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
3479 sure to create a representative for trailing arrays for PTA.
3481 2008-05-08 Richard Guenther <rguenther@suse.de>
3484 * fold-const.c (operand_equal_p): Two objects which types
3485 differ in pointerness are not equal.
3487 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
3489 * calls.c (compute_argument_block_size): Add argument tree fndecl.
3490 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
3491 (emit_library_call_value_1): Add new variable fndecl initialized by
3492 NULL_TREE. It should be the decl type of orgfun, but this information
3493 seems not to be available here, so it uses the default calling abi.
3494 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
3495 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
3496 by TARGET_RETURN_IN_MEMORY.
3497 * config/i386/i386-interix.h: Likewise.
3498 * config/i386/i386.h: Likewise.
3499 * config/i386/i386elf.h: Likewise.
3500 * config/i386/ptx4-i.h: Likewise.
3501 * config/i386/sol2-10.h: Likewise.
3502 * config/i386/sysv4.h: Likewise.
3503 * config/i386/vx-common.h: Likewise.
3504 * config/cris/cris.h: Removed #if 0 clause.
3505 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
3506 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
3508 (ix86_sol10_return_in_memory): Likewise.
3509 (ix86_i386elf_return_in_memory): New.
3510 (ix86_i386interix_return_in_memory): New.
3511 * config/mt/mt-protos.h (mt_return_in_memory): New.
3512 * config/mt/mt.c: Likewise.
3513 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3514 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
3515 * config/bfin/bfin.h: Likewise.
3516 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
3518 * config/bfin/bfin.c: Likewise.
3519 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3520 * config/alpha/unicosmk.h: Likewise.
3521 * config/i386/cygming.h: Likewise.
3522 * config/iq2000/iq2000.h: Likewise.
3523 * config/mips/mips.h: Likewise.
3524 * config/mn10300/mn10300.h: Likewise.
3525 * config/rs6000/rs6000.h: Likewise.
3526 * config/score/score.h: Likewise.
3527 * config/spu/spu.h: Likewise.
3528 * config/v850/v850.h: Likewise.
3529 * defaults.h: Likewise.
3530 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
3531 * expr.c (emit_block_move): Adjust use of
3532 OUTGOING_REG_PARM_STACK_SPACE.
3533 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
3534 OUTGOING_REG_PARM_STACK_SPACE.
3535 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
3537 2008-05-08 Jakub Jelinek <jakub@redhat.com>
3539 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
3540 on OMP_RETURN for OMP_FOR.
3543 * dwarf2out.c (dw_expand_expr, common_check): Removed.
3544 (fortran_common): New function.
3545 (gen_variable_die): Call fortran_common instead of common_check,
3546 adjust for it returning tree instead of rtx. Formatting.
3548 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
3552 * see.c (see_copy_insn): Copy new pure const attributes for new call.
3553 * c-decl.c (merge_decls): Ditto.
3554 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
3555 to RTL_CONST_OR_PURE_CALL_P.
3556 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
3557 Initialized DECL_LOOPING_CONST_PURE.
3558 (process_call_operands): Set tree_side_effects properly.
3559 * tree.h (TREE_READONLY_DECL_P): Removed.
3560 (DECL_IS_PURE): Renamed to DECL_PURE_P.
3561 (DECL_LOOPING_OR_CONST_P): New macro.
3562 (struct tree_function_decl): Added looping_const_or_pure_p.
3564 (ECF_LOOPING_OR_CONST_P): New macro.
3565 * rtlanal.c (pure_const_p): Removed.
3566 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
3567 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
3568 to RTL_CONST_CALL_P.
3569 * ipa-pure-const.c (pure_const_state_e): Added looping field.
3570 (check_decl, check_tree, check_call, scan_function): Initialize
3572 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
3573 (static_execute): Set looping true for recursive functions.
3574 Undo setting state to IPA_NEITHER for recursive functions.
3576 * ifcvt.c (noce_can_store_speculate_p): Changed
3577 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
3578 RTL_CONST_OR_PURE_CALL_P.
3579 * dse.c (scan_insn): Ditto.
3580 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
3581 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
3582 RTL_CONST_OR_PURE_CALL_P.
3583 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
3584 pure_call_p to RTL_CONST_CALL_P.
3585 * gimplify.c (gimplify_call_expr): Clear side effects for
3586 non-looping pure and constant calls.
3587 * calls.c (emit_call_1): Set rtl flags from ecf flags.
3588 (flags_from_decl_or_type): Set ecf flags from decl flags.
3589 (initialize_argument_information): Turn off
3590 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
3591 Change const to pure if callee_copies is true rather than just
3593 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
3594 way of marking pure calls.
3595 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
3596 Remove hack that was supposed to fix pr7335 and remove old
3597 way of marking pure calls.
3598 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
3599 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
3600 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
3601 RTL_CONST_OR_PURE_CALL_P.
3602 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
3603 * loop-invariant.c (find_exits, find_invariant_bb): Changed
3604 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
3605 * sched-deps.c (schedule_analyze): Ditto.
3606 * rtl.h (struct rtx_def): Use call field, unchanging field, and
3607 return_val field of calls to represent pure and const function info.
3608 (CONST_OR_PURE_CALL_P): Deleted macro.
3609 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3610 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
3611 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
3613 * tree-optimize.c (execute_fixup_cfg): Added test for
3614 ECF_LOOPING_CONST_OR_PURE.
3615 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
3617 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
3618 effects for looping pure or const calls.
3619 (verify_gimple_expr): Added verification code.
3620 * config/alpha/alpha.c (alpha_legitimize_address,
3621 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
3623 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
3624 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
3625 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
3626 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
3627 RTL_CONST_OR_PURE_CALL_P.
3628 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
3629 and const calls to be deleted.
3631 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
3634 * config/i386/mmx.md (mmx_subv2sf3): New expander.
3635 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
3636 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
3637 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3638 to handle nonimmediate operands.
3639 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
3640 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
3641 to handle nonimmediate operands.
3642 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
3643 (mmx_pmulhrwv4hi3): New expander. Use
3644 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3645 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
3646 (sse2_umulv1siv1di3): New expander. Use
3647 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3648 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
3649 (mmx_eq<mode>3): New expander. Use
3650 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3651 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
3652 (mmx_uavgv8qi3): New expander. Use
3653 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3654 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
3655 (mmx_uavgv4hi3): New expander. Use
3656 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3658 * config/i386/sse.md
3659 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
3660 to handle nonimmediate operands.
3661 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
3662 to handle nonimmediate operands.
3663 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
3664 to handle nonimmediate operands.
3665 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
3666 to handle nonimmediate operands.
3667 (sse2_unpckhpd_exp): New expander. Use
3668 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3669 (sse2_unpcklpd_exp): New expander. Use
3670 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3671 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
3672 to handle nonimmediate operands.
3673 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
3674 to handle nonimmediate operands.
3675 (*sse2_<plusminus_insn><mode>3): Rename from
3676 sse2_<plusminus_insn><mode>3 insn pattern.
3677 (sse2_<plusminus_insn><mode>3): New expander. Use
3678 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3679 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
3680 (sse2_umulv2siv2di3): New expander. Use
3681 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3682 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
3683 (sse4_1_mulv2siv2di3): New expander. Use
3684 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3685 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
3686 (sse2_pmaddwd): New expander. Use
3687 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3688 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
3689 (sse2_eq<mode>3): New expander. Use
3690 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3691 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
3692 (sse4_1_eqv2di3): New expander. Use
3693 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3694 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3695 (sse2_uavgv16qi3): New expander. Use
3696 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3697 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3698 (sse2_uavgv16qi3): New expander. Use
3699 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3700 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
3701 (sse2_uavgv8hi3): New expander. Use
3702 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3703 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
3704 (ssse3_pmulhrswv8hi3): New expander. Use
3705 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3706 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
3707 (ssse3_pmulhrswv4hi3): New expander. Use
3708 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3710 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
3711 (<sse>_vmmul<mode>3): Ditto.
3712 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
3714 (ssse3_pmaddubsw128): Use register_operand for operand 1.
3715 (ssse3_pmaddubsw): Ditto.
3717 * config/i386/i386.c (struct_builtin_description)
3718 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
3719 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
3720 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
3721 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
3722 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
3723 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
3724 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
3725 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
3726 (ix86_fixup_binary_operands): Assert that src1
3727 and src2 must have the same mode when swapped.
3728 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
3729 and ix86_binary_operator_ok. Do not force operands in registers
3732 2008-05-07 Jan Hubicka <jh@suse.cz>
3734 * cgraph.c (dump_cgraph_node): Update.
3735 * cgraph.h (cgraph_local_info): Break out inline summary.
3736 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
3738 * ipa-inline (inline_summary): New accestor function.
3739 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
3740 cgraph_decide_inlining, compute_inline_parameters): Update.
3741 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
3743 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
3745 Cleanup ColdFire scheduling support and add V4 pipeline model.
3747 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
3748 (define_attr cpu): Add cfv4 value.
3749 (define_attr type, define_attr type1): Merge into a single 'type'
3750 attribute. Update all uses.
3751 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
3752 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
3754 (define_attr opx_mem, define_attr opy_mem): Remove.
3755 (define_attr op_mem): Clean up, update comment.
3756 (define_attr size): Use specific values instead of general int.
3757 (define_attr guess, define_attr split): Remove. Update all uses.
3758 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
3759 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
3760 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
3761 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
3762 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
3763 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
3764 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
3765 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
3766 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
3767 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
3768 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
3769 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
3770 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
3771 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
3772 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
3773 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
3774 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
3775 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
3776 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
3777 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
3778 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
3779 Update or set attributes.
3780 (stack_tie): New fake instruction.
3782 * config/m68k/m68k.h (TUNE_CFV4): New macro.
3783 (m68k_sched_attr_size): Update declaration.
3784 (m68k_sched_attr_type2): Remove.
3785 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
3786 Declare new bypass predicates.
3788 * config/m68k/m68k.c (m68k_sched_issue_rate,
3789 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
3791 (TARGET_SCHED_ISSUE_RATE,
3792 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
3793 (override_options): Handle scheduling for ColdFire V4 core.
3794 (m68k_expand_prologue): Emit stack_tie.
3795 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
3796 'OP_TYPE_FPN'. Update all uses.
3797 (sched_guess_p): Remove.
3798 (sched_address_type): Handle symbolic addresses.
3799 (sched_get_operand): New static function.
3800 (sched_operand_type): Merge into sched_attr_op_type.
3801 (sched_attr_op_type): Handle FP registers, handle quick constants,
3803 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
3804 (m68k_sched_attr_size): Update. Move logic to ...
3805 (sched_get_attr_size_int): New static function.
3806 (sched_get_opxy_mem_type): New static function.
3807 (m68k_sched_attr_op_mem): Update.
3808 (m68k_sched_attr_type2): Remove.
3809 (sched_cfv4_bypass_data): New static variable.
3810 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
3811 (m68k_sched_issue_rate): Implement scheduler hook.
3812 (struct _sched_ib: enabled_p): New field.
3813 (m68k_sched_variable_issue): Update. Handle V4.
3814 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
3815 sched_dump_class_func_t, sched_dump_split_class,
3816 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
3817 sched_dump_dfa_class, m68k_sched_dump): Remove.
3818 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
3820 (m68k_sched_init_global): Remove statisctics dumping, introduce
3821 sanity check that all instructions have pipeline reservations. Handle
3823 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
3824 Handle ColdFire V4 core.
3825 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
3826 New static functions.
3827 (m68k_sched_address_bypass_p): New bypass predicate.
3828 (sched_get_indexed_address_scale): New static function.
3829 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
3831 * cf.md: Update comments.
3832 (define_attr type2): Remove. Use 'type' attribute instead.
3834 (cf_ib): Rename to cfv123_ib. Update all uses.
3835 (cf_oep): Rename to cfv123_oep. Update all uses.
3836 (cf_chr): Rename to cfv123_chr. Update all uses.
3837 (cf_mem): Rename to cfv123_mem. Update all uses.
3838 (cf_mac): Move to more appropriate place.
3839 (cfv123_guess): New automaton and cpu_unit.
3840 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
3841 Update uses of 'size' attribute. Handle before reload scheduling.
3842 (cfv123_guess): New dummy reservation for unhandled instructions.
3843 (cfv4_*): Pipeline description of ColdFire V4 core.
3844 (ignore): New reservation to handle 'ignore' type.
3846 2008-05-07 Ian Lance Taylor <iant@google.com>
3849 * gimplify.c (find_single_pointer_decl_1): Don't look through
3851 (find_single_pointer_decl): Adjust comments.
3853 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3856 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
3857 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
3860 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
3861 integral type rather than floating point, then VIEW_CONVERT_EXPR
3862 to the floating point type.
3864 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
3866 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
3867 TFmode op0 to register.
3869 2008-05-07 Alan Modra <amodra@bigpond.net.au>
3871 * c-decl.c (grokdeclarator): Comment typo.
3873 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
3875 * tree-flow.h: Remove prototype for computed_goto_p.
3876 * tree-cfg.c (computed_goto_p): Make static.
3878 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
3881 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
3882 (contains_aligned_value_p): This. Handle _Decimal128.
3883 (ix86_function_arg_boundary): Only align _Decimal128 to its
3884 natural boundary and handle it properly.
3886 2008-05-06 Martin Jambor <mjambor@suse.cz>
3888 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
3889 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
3890 (ipcp_method_set_orig_node): Removed.
3891 (ipcp_cval_get_cvalue_type): Removed.
3892 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
3893 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
3894 (ipcp_cval_set_cvalue_type): Removed.
3895 (ipcp_cval_get_cvalue): Removed.
3896 (ipcp_cval_set_cvalue): Removed.
3897 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
3898 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
3899 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
3900 (ipcp_cval_meet): Renamed to ipa_lattice_meet
3901 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
3902 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
3903 (ipcp_get_ith_lattice): Changed parameters.
3904 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
3905 (ipcp_lattice_from_jfunc): Changed parameters.
3906 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
3907 (ipcp_method_cval_print): Added temporary variable info.
3908 (ipcp_redirect): Removed already unused local variable caller.
3909 (ipcp_redirect): New temporary variable orig_callee_info
3910 (ipcp_redirect): Removed newly unused local variable callee.
3911 (ipcp_redirect): Removed (a bit confusing) local variable type.
3912 (ipcp_insert_stage): Added local variable info.
3913 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
3915 (ipcp_formal_create): Removed.
3916 (ipcp_method_cval_set): Removed.
3917 (ipcp_propagate_stage): Renamed lattice variables.
3918 (ipcp_method_cval_set_cvalue_type): Removed.
3919 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
3920 (ipcp_print_all_lattices): Changed printed strings to refer to
3921 lattices rather than cvals.
3922 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
3923 (ipcp_propagate_const): Changed formal parameters.
3924 (build_const_val): Changed formal parameters.
3925 (ipcp_insert_stage): Removed useless variable cvalue
3926 (build_const_val): Changed formal parameters.
3927 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
3928 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
3929 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
3930 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
3931 (ipcp_print_func_profile_counts): Changed string from "method" to
3933 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
3934 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
3935 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
3936 (ipcp_structures_print): Renamed to ipcp_print_all_structures
3937 (ipcp_profile_print): Renamed to ipcp_print_profile_data
3938 (ipcp_lat_is_const): Changed parameters and made inline.
3939 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
3940 (ipcp_redirect): Renamed to ipcp_need_redirect_p
3941 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
3942 the predicate condition directly
3943 (ipcp_propagate_stage): Added local variable args. Removed local
3944 variable callee. (Both are mere code simplifications.)
3945 (ipcp_method_dont_insert_const): Renamed to
3946 ipcp_node_not_modifiable_p.
3947 (ipcp_node_not_modifiable_p): Made inline.
3948 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
3949 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
3950 (ipcp_print_all_lattices): Removed variable cvalue
3951 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
3954 2008-05-06 Olivier Hainque <hainque@adacore.com>
3956 * tree-sra.c (try_instantiate_multiple_fields): Early return
3957 if field has POINTER_TYPE.
3959 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
3961 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
3962 by using 'q' specifier for instruction.
3963 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
3965 2008-05-06 Anatoly Sokolov <aesok@post.ru>
3967 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
3968 Change mode of zero_extract from QImode to HImode.
3969 (sign bit tests peepholes): (Ditto.).
3971 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
3973 * config/i386/mmx.md: Remove double backslashes from asm templates.
3974 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
3975 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3976 to handle nonimmediate operands.
3977 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
3978 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3979 to handle nonimmediate operands.
3980 (*mmx_<code>v2sf3_finite): New insn pattern.
3981 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
3982 (mmx_<code>v2sf3): New expander. Use
3983 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3984 (mmx_<plusminus_insn><mode>3): New expander. Use
3985 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3986 (*mmx_<plusminus_insn><mode>3): New insn pattern.
3987 (mmx_add<mode>3): Removed.
3988 (mmx_ssadd<mode>3): Ditto.
3989 (mmx_usadd<mode>3): Ditto.
3990 (mmx_sub<mode>3): Ditto.
3991 (mmx_sssub<mode>3): Ditto.
3992 (mmx_ussub<mode>3): Ditto.
3993 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
3994 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
3995 to handle nonimmediate operands.
3996 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
3998 (mmx_smulv4hi3_highpart): New expander. Use
3999 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4000 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
4002 (mmx_umulv4hi3_highpart): New expander. Use
4003 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4004 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
4005 (mmx_<code>v4hi3): New expander. Use
4006 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4007 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
4008 (mmx_<code>v8qi3): New expander. Use
4009 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4010 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
4011 (mmx_<code><mode>3): New expander. Use
4012 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
4014 2008-05-05 Jan Hubicka <jh@suse.cz>
4016 PR tree-optimization/36118
4017 * passes.c (pass_init_dump_file): Fix dump header.
4019 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
4022 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
4023 VCE for function decls.
4025 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
4027 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
4029 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
4031 * config/i386/i386.md (sat_plusminus): New.
4032 (plusminus_insn): Likewise.
4033 (plusminus_mnemonic): Likewise.
4035 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
4036 (*<addsub><mode>3_cc_overflow): Renamed to ...
4037 (*<plusminus_insn><mode>3_cc_overflow): This.
4038 (*<addsub>si3_zext_cc_overflow): Renamed to ...
4039 (*<plusminus_insn>si3_zext_cc_overflow): This.
4041 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
4042 (<plusminus_insn><mode>3): This.
4043 (*<addsub><mode>3): Renamed to ...
4044 (*<plusminus_insn><mode>3): This.
4045 (<sse>_vm<addsub><mode>3): Renamed to ...
4046 (<sse>_vm<plusminus_insn><mode>3): This.
4047 (sse3_h<addsub>v4sf3): Renamed to ...
4048 (sse3_h<plusminus_insn>v4sf3): This.
4049 (sse3_h<addsub>v2df3): Renamed to ...
4050 (sse3_h<plusminus_insn>v2df3): This.
4051 (<plusminus_insn><mode>3): New.
4052 (*<plusminus_insn><mode>3): Likewise.
4053 (sse2_<plusminus_insn><mode>3): Likewise.
4054 (add<mode>): Removed.
4055 (*add<mode>3): Likewise.
4056 (sse2_ssadd<mode>3): Likewise.
4057 (sse2_usadd<mode>3): Likewise.
4058 (sub<mode>3): Likewise.
4059 (*sub<mode>3): Likewise.
4060 (sse2_sssub<mode>3): Likewise.
4061 (sse2_ussub<mode>3): Likewise.
4063 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
4065 * gthr-single.h: Add in required interface elements as per gthr.h.
4066 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
4067 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
4068 Generalize UNUSED macro.
4069 (__gthread_once): Add.
4070 (__gthread_key_create): Add.
4071 (__gthread_key_delete): Add.
4072 (__gthread_getspecific): Add.
4073 (__gthread_setspecific): Add.
4075 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
4077 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
4078 the same size types for the indirect reference on the rhs, then
4081 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
4083 * config/i386/i386.md
4084 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
4085 one insn template instead of template series.
4086 (*xordi_1_rex64): Ditto.
4087 (*xordi_2_rex64): Ditto.
4089 2008-05-05 Ira Rosen <irar@il.ibm.com>
4091 PR tree-optimization/36119
4092 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
4095 2008-06-04 Jan Hubicka <jh@suse.cz>
4097 tree-optimization/36100
4098 * tree-pass.h (pass_O0_always_inline): Declare.
4099 * ipa-inline.c (inline_transform): Remove dead code.
4100 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
4101 pass_O0_always_inline): New.
4102 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
4104 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
4106 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
4107 mnemonic in this_param move for TARGET_64BIT.
4109 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
4111 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
4112 (*strmovsi_rex_1): Ditto.
4113 (*strsetsi_1): Ditto.
4114 (*strsetsi_rex_1): Ditto.
4116 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
4117 adddicc expanders using SWI mode iterator.
4119 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
4122 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
4125 2008-05-04 David S. Miller <davem@davemloft.net>
4127 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
4128 (sparc*-*-linux*): Use linux.h in tm_file.
4129 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
4130 compiler defaulting to 32-bit.
4131 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
4133 * config/sparc/linux.h: Remove definitions now obtained
4134 properly from linux.h
4135 * config/sparc/linux64.h: Likewise.
4136 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
4137 don't want this setting for 32-bit builds in a biarch compiler.
4138 * doc/install.texi: Add sparc-linux to list of targets
4139 supporting --enable-targets=all.
4141 2008-05-03 Andrew Pinski <pinskia@gmail.com>
4143 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
4145 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
4147 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
4148 after V4SI_FTYPE_V8HI.
4149 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
4150 case V4SI_FTYPE_V2DF.
4152 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
4154 * doc/invoke.texi (max-flow-memory-locations): Removed.
4155 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
4157 2008-05-03 Richard Guenther <rguenther@suse.de>
4160 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
4162 2008-05-02 David S. Miller <davem@davemloft.net>
4164 * config.gcc (need_64bit_hwint): Document libcpp dependency.
4166 2008-05-02 Simon Baldwin <simonb@google.com>
4169 * c-common.h (warn_array_subscript_range): Removed.
4170 * c-common.c (warn_array_subscript_range): Ditto.
4171 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
4172 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
4174 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
4176 * config/i386/i386.c (ix86_special_builtin_type): New.
4177 (bdesc_special_args): Likewise.
4178 (ix86_expand_special_args_builtin): Likewise.
4179 (ix86_init_mmx_sse_builtins): Updated.
4180 (ix86_expand_builtin): Updated.
4181 (ix86_expand_store_builtin): Removed.
4182 (ix86_expand_unop_builtin): Likewise.
4184 * config/i386/mm3dnow.h (__v2sf): Moved to ...
4185 * config/i386/mmintrin.h (__v2sf): Here.
4187 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
4189 (_mm_loadl_pi): Likewise.
4190 (_mm_storeh_pi): Replace __v2si with __v2sf.
4191 (_mm_storel_pi): Likewise.
4193 * doc/extend.texi: Correct __builtin_ia32_loadhps,
4194 __builtin_ia32_loadlps, __builtin_ia32_storehps,
4195 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
4196 __builtin_ia32_loadlpd.
4198 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
4200 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
4201 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
4202 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
4203 (ix86_init_mmx_sse_builtins): Updated.
4204 (ix86_expand_args_builtin): Likewise.
4205 (ix86_expand_builtin): Likewise.
4206 (ix86_expand_unop1_builtin): Renamed to ...
4207 (ix86_expand_unop_vec_merge_builtin): This.
4209 2008-05-01 Jan Hubicka <jh@suse.cz>
4212 * ipa-inline.c (inline_generate_summary): Make static.
4213 (inline_transform): Do not call inlining at -O0; make static.
4214 * passes.c (execute_todo): Add sanity check.
4215 (execute_one_ipa_transform_pass): Execute proper flags.
4217 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4219 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
4220 (DECL_NONADDRESSABLE_P): Likewise.
4221 * alias.c (record_component_aliases): Fix comment.
4223 2008-05-01 Simon Baldwin <simonb@google.com>
4225 * c-common.h (warn_array_subscript_range): New function.
4226 * c-common.c (warn_array_subscript_range): Ditto.
4227 * tree-vrp.c (check_array_ref): Corrected code to agree with
4228 comment, ignoring only arrays of size 0 or size 1.
4229 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
4231 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4233 * config/i386/i386.c (ix86_builtin_type): Replace
4234 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
4235 (bdesc_args): Updated.
4236 (ix86_init_mmx_sse_builtins): Likewise.
4237 (ix86_expand_args_builtin): Likewise.
4239 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
4242 * doc/extend.texi: Correct __builtin_ia32_palignr.
4244 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4247 * config/i386/i386.c (bdesc_crc32): Removed.
4248 (ix86_expand_crc32): Likewise.
4249 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
4250 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
4251 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
4252 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
4253 UINT_FTYPE_UINT_UCHAR.
4254 (bdesc_args): Updated. Add crc32 builtins.
4255 (ix86_init_mmx_sse_builtins): Updated.
4256 (ix86_expand_args_builtin): Updated to support subreg.
4258 * doc/extend.texi: Correct __builtin_ia32_crc32di.
4260 2008-05-01 Jan Hubicka <jh@suse.cz>
4262 * tree-pass.h (opt_pass): Add IPA_PASS.
4263 (varpool_node, cgraph_node): Forward declare.
4264 (ipa_opt_pass): Define.
4265 (pass_ipa_inline): Turn into ipa_opt_pass.
4266 (pass_apply_inline): Remove.
4267 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
4268 (apply_inline): Turn into ....
4269 (inline_transform): ... this one.
4270 (inline_generate_summary): New function.
4271 (pass_apply_inline): Remove.
4272 * function.h (ipa_opt_pass): Forward declare structure; typedef;
4274 (struct function): Add ipa_transforms_to_apply.
4275 * passes.c (register_one_dump_file): Work on IPA_PASS.
4276 (init_optimization_passes): Remove pass_inline_parameters and
4278 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
4279 (execute_one_pass) ... here; apply transforms when possible.
4280 (add_ipa_transform_pass, execute_ipa_summary_asses,
4281 execute_one_ipa_transform_pass): New.
4282 (execute_ipa_pass_list): Update for IPA_PASS type.
4284 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4286 * config/i386/i386.c (ix86_builtin_type): Add
4287 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
4288 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
4289 (bdesc_args): Add SSE4a builtins.
4290 (ix86_init_mmx_sse_builtins): Updated.
4291 (ix86_expand_args_builtin): Likewise.
4292 (ix86_expand_builtin): Likewise.
4294 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4296 * config/i386/i386.c (ix86_builtin_type): Add
4297 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
4298 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
4299 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
4300 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
4301 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
4302 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
4303 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
4304 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
4305 and DI_FTYPE_DI_DI_INT.
4306 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
4307 (ix86_init_mmx_sse_builtins): Updated.
4308 (ix86_expand_args_builtin): Likewise.
4309 (ix86_expand_builtin): Likewise.
4310 (ix86_expand_binop_imm_builtin): Removed.
4312 * doc/extend.texi: Correct __builtin_ia32_palignr128.
4314 2008-04-30 Richard Guenther <rguenther@suse.de>
4316 PR tree-optimization/32921
4317 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
4319 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
4321 * config/arm/arm.c (arm_unwind_emit): Use
4322 crtl->all_throwers_are_sibcalls instead of
4323 cfun->all_throwers_are_sibcalls.
4324 (arm_output_fn_unwind): Likewise.
4325 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
4326 instead of cfun->uses_pic_offset_table.
4327 (frv_expand_prologue): Likewise.
4328 (frv_frame_pointer_required): Likewise.
4329 (frv_expand_fdpic_call): Likewise.
4330 (frv_emit_movsi): Likewise.
4331 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
4332 cfun->returns_pcc_struct instead of
4333 current_function_returns_pcc_struct.
4334 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
4335 instead of cfun->calls_eh_return.
4336 (m32c_pushm_popm): Likewise.
4337 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
4338 "extern" declaration.
4340 2008-04-30 Richard Guenther <rguenther@suse.de>
4342 PR tree-optimization/21636
4343 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
4345 (evaluate_stmt): Print the likely value.
4346 (ccp_visit_stmt): Avoid excessive vertical spacing.
4348 2008-04-30 Rafael Espindola <espindola@google.com>
4350 * builtins.c (fold_call_expr): Return realret.
4351 * tree-ssa-threadedge.c
4352 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
4353 __builtin_object_size.
4355 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
4357 * gcc.c (wrapper_string): New variable.
4358 (insert_wrapper): New function.
4359 (execute): New option -wrapper.
4360 * doc/invoke.texi (Overall Options): New driver option -wrapper.
4362 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
4364 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
4365 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
4366 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
4368 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
4369 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
4370 config/rs6000/e500crtres64gprctr.asm,
4371 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
4372 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
4373 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
4374 config/rs6000/e500crtsav64gprctr.asm,
4375 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
4376 config/rs6000/e500crtsavg64gprctr.asm: New files.
4377 * config/rs6000/t-ppccomm: Add build rules for new files.
4378 (LIB2FUNCS_STATIC_EXTRA): Add new files.
4379 * config/rs6000/t-netbsd: Add build rules for new files.
4380 (LIB2FUNCS_STATIC_EXTRA): New variable.
4381 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
4382 (CRTSAVRES_DEFAULT_SPEC): Likewise.
4383 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
4385 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
4387 * config/i386/i386.c (ix86_builtin_type): Add
4388 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
4389 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
4390 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
4391 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
4392 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
4393 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
4394 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
4395 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
4396 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
4397 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
4398 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
4399 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
4400 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
4401 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
4402 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
4403 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
4404 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
4405 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
4406 V1DI_FTYPE_V2SI_V2SI.
4407 (bdesc_2arg): Moved to ...
4409 (ix86_init_mmx_sse_builtins): Updated.
4410 (ix86_expand_args_builtin): Updated. Take a pointer
4411 to const struct builtin_description. Handle comparison
4413 (ix86_expand_sse_compare): Take a new argument for swapping operands.
4414 (ix86_expand_builtin): Updated.
4416 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
4417 (ssse3_pmaddubsw128): This.
4418 (ssse3_pmaddubswv4hi3): Renamed to ...
4419 (ssse3_pmaddubsw): This.
4421 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
4422 (__builtin_ia32_packssdw128): Likewise.
4423 (__builtin_ia32_packuswb128): Likewise.
4424 (__builtin_ia32_pmaddubsw): Likewise.
4425 (__builtin_ia32_pmaddubsw128): Likewise.
4427 2008-04-30 Richard Guenther <rguenther@suse.de>
4429 PR tree-optimization/14847
4430 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
4431 (recognize_bits_test): Use it.
4432 (recognize_single_bit_test): Likewise.
4434 2008-04-30 Martin Jambor <mjambor@suse.cz>
4436 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
4437 instead of setting number of formal parameters to zero.
4438 (ipcp_init_stage): Do not set the number of actual parameters to zero
4440 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
4441 which are called with variable number of arguments.
4442 (ipcp_insert_stage): Explicitely skipping all nodes which are
4443 called with variable number of arguments.
4444 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
4445 number of parameters.
4447 * ipa-prop.h (struct ipa_node_params): Added flag
4448 called_with_var_arguments
4449 (ipa_set_param_count): Added. Changed sole setter to use it.
4450 (ipa_get_param_count): Added. All readers of param_count
4451 converted to use it instead.
4452 (ipa_set_called_with_variable_arg): Added.
4453 (ipa_is_called_with_var_arguments): Added.
4454 (ipa_get_ith_param): Added. All readers of param_decls converted
4456 (ipa_set_cs_argument_count): Added, sole writer to argument_count
4458 (ipa_get_cs_argument_count): Added, all readers of argument_count
4460 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
4463 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
4464 (struct ipcp_lattice): Renamed cval_type to type
4465 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
4467 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
4468 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
4469 (ipcp_insert_stage): Changed the type of variable cvalue to tree
4470 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
4471 (build_const_val): Changed the type of parameter cvalue to tree
4472 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
4473 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
4475 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
4478 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
4479 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
4480 (ipa_add_method): Renamed to ipa_push_func_to_list
4481 (ipa_remove_method): Renamed to ipa_pop_func_from_list
4482 (ipa_callsite_param_count): Removed.
4483 (ipa_callsite_param_count_set): Removed.
4484 (ipa_callsite_param): Removed.
4485 (ipa_callsite_callee): Removed.
4486 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
4487 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
4488 (ipa_method_formal_count): Removed.
4489 (ipa_method_formal_count_set): Removed.
4490 (ipa_method_get_tree): Removed.
4491 (ipa_method_tree_map_create): Removed.
4492 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
4493 (ipa_create_param_decls_array): Creates the array itself
4494 (ipa_create_param_decls_array): Temporary variable info instead of
4496 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
4497 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
4498 (get_type): Removed.
4499 (ipa_jf_get_info_type): Removed.
4500 (ipa_node_create): Renamed to ipa_create_node_params
4501 (ipa_free): Renamed to ipa_free_all_node_params
4502 (ipa_nodes_create): Renamed to ipa_create_all_node_params
4503 (ipa_edges_create): Renamed to ipa_create_all_edge_args
4504 (ipa_edges_free): Renamed to ipa_free_all_edge_args
4505 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
4506 (ipa_free_all_node_params): Deallocation to jump_functions moved to
4507 ipa_free_all_edge_args
4508 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
4509 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
4510 (ipa_create_methodlist_node): Removed.
4511 (ipa_methodlist_method): Removed.
4512 (ipa_methodlist_method_set): Removed.
4513 (ipa_methodlist_next_method): Removed.
4514 (ipa_methodlist_next_method_set): Removed.
4515 (ipa_method_is_modified): Removed.
4516 (ipa_method_modify_create): Removed.
4517 (ipa_method_modify_init): Temporary variable info instead of a few
4519 (ipa_detect_param_modifications): Temporary variable info instead of
4521 (ipa_compute_jump_functions): Temporary variable info instead of
4523 (ipa_method_modify_set): Removed.
4524 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
4525 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
4526 than craph_node as the first parameter.
4527 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
4528 (ipa_method_modify_init): Removed.
4529 (ipa_compute_jump_functions): Added a temp variable instead of
4530 repeatadly dereferencing the cgraph_edge.aux pointer
4531 (ipa_callsite_param_set_type): Removed.
4532 (ipa_compute_jump_functions): i renamed to index and moved to
4534 (ipa_callsite_param_set_info_type_formal): Removed.
4535 (ipa_callsite_param_set_info_type): Removed.
4536 (ipa_callsite_param_map_create): Removed.
4537 (ipa_callsite_tree): Removed.
4538 (ipa_callsite_caller): Removed.
4539 (ipa_pop_func_from_list): return_method removed to return_func
4541 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
4542 prefixed all values with IPA_. Changed all users.
4543 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
4544 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
4545 and FORMAL_IPATYPE IPA_PASS_THROUGH.
4546 (union parameter_info): Renamed to jump_func_value.
4547 (union jump_func_value): Renamed value to constant
4548 (struct ipa_jump_func): Renamed info_type to value
4549 (struct ipa_node): Renamed to ipa_node_params
4550 (struct ipa_node_params): Renamed ipa_arg_num to param_count
4551 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
4552 (struct ipa_node_params): Renamed ipa_mod to modified_flags
4553 (struct ipa_edge): Renamed to ipa_edge_args
4554 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
4555 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
4556 (struct ipa_methodlist): Renamed to ipa_func_list
4557 (struct ipa_func_list): method_p renamed to node, next_method
4559 (ipa_methodlist_p): Removed, switched all users to struct pointer
4560 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
4562 2008-04-30 Alan Modra <amodra@bigpond.net.au>
4564 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
4565 (rs6000_emit_epilogue): Use backchain to restore only when we
4566 have a large frame. Make use of frame pointer to restore if we
4567 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
4569 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
4571 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
4572 Add mode to zero_extract.
4573 (sign bit tests peepholes): (Ditto.).
4575 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
4577 * config/i386/i386.c (ix86_builtins): Replace Prescott New
4578 Instructions in comments with SSE3.
4579 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
4580 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
4581 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
4582 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
4583 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
4584 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
4585 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
4586 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
4587 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
4588 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
4589 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
4590 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
4591 (bdesc_sse_args): Renamed to ...
4592 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
4593 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
4594 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
4596 (bdesc_1arg): Moved to ...
4598 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
4599 Instructions in comments with SSE3.
4600 (ix86_expand_sse_operands_builtin): Renamed to ...
4601 (ix86_expand_args_builtin): This. Updated.
4602 (ix86_expand_unop1_builtin): Update comments.
4603 (ix86_expand_builtin): Updated.
4605 2008-04-29 Richard Guenther <rguenther@suse.de>
4607 PR tree-optimization/36078
4608 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4609 Update virtual SSA form after cleaning up the CFG.
4611 2008-04-29 Richard Guenther <rguenther@suse.de>
4614 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
4616 2008-04-29 Richard Guenther <rguenther@suse.de>
4618 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
4619 (compute_may_aliases): Do not call finalize_ref_all_pointers.
4620 (compute_flow_insensitive_aliasing): Do not treat
4621 PTR_IS_REF_ALL pointers special.
4622 (get_smt_for): Likewise.
4623 (may_alias_p): Re-structure.
4624 (is_escape_site): A ref-all pointer conversion is not an escape site.
4625 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
4626 PTR_IS_REF_ALL pointers special.
4627 * tree-ssa-structalias.h (struct alias_info): Remove
4628 ref_all_symbol_mem_tag field.
4629 (PTR_IS_REF_ALL): Remove.
4631 2008-04-29 Richard Guenther <rguenther@suse.de>
4634 * fold-const.c (extract_muldiv_1): In combining division constants
4635 make sure to never overflow.
4637 2008-04-29 Nick Clifton <nickc@redhat.com>
4639 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
4641 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4644 * optc-gen.awk: Work around HP-UX/IA awk bug.
4646 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
4648 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
4651 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
4654 * config/i386/i386.md
4655 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
4656 Change operand 1 predicate to nonimmediate_operand.
4658 2008-04-28 Jakub Jelinek <jakub@redhat.com>
4661 * dwarf2out.c (struct die_struct): Mark as chain_circular through
4663 * gengtype.c (walk_type, write_func_for_structure): Handle
4665 * doc/gty.texi: Document chain_circular.
4667 2008-04-28 Richard Guenther <rguenther@suse.de>
4669 PR tree-optimization/36066
4670 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
4673 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
4676 * config/i386/i386.md
4677 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
4678 Use match_scratch instead of match_operand for operands 3 and 4.
4680 2008-04-27 Richard Guenther <rguenther@suse.de>
4682 PR tree-optimization/18754
4683 PR tree-optimization/34223
4684 * tree-pass.h (pass_complete_unrolli): Declare.
4685 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
4686 loop size before and after unconditionally of UL_NO_GROWTH in effect.
4687 Rewrite loop into loop closed SSA form if it is not already.
4688 (tree_unroll_loops_completely): Re-structure to iterate over
4689 innermost loops with intermediate CFG cleanups.
4690 Unroll outermost loops only if requested or the code does not grow
4692 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
4693 loops are available.
4694 (tree_vectorize): Instead do so here.
4695 (tree_complete_unroll): Also unroll outermost loops.
4696 (tree_complete_unroll_inner): New function.
4697 (gate_tree_complete_unroll_inner): Likewise.
4698 (pass_complete_unrolli): New pass.
4699 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
4700 uses outside of the loop.
4701 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
4702 form if it is available.
4703 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
4704 * passes.c (init_optimization_passes): Schedule complete inner
4705 loop unrolling pass before the first CCP pass after final inlining.
4707 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
4709 * targhooks.h (default_emutls_var_fields,
4710 default_emutls_var_init): Declare.
4711 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
4712 * target.h (struct gcc_target): Add struct emutls member.
4713 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
4714 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
4715 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
4716 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
4717 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
4718 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
4719 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
4720 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
4721 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
4722 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
4723 emit debug information.
4724 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
4725 * varasm.c: Include targhooks.h.
4726 (emutls_object_section, emutls_tmpl_section): New.
4727 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
4728 (EMUTLS_SEPARATOR): New.
4730 (get_emutls_object_name): New.
4731 (default_emutls_var_fields): New, broken out of ...
4732 (get_emutls_object_type): ... here. Adjust to use target hooks.
4733 (get_emutls_init_templ_addr): Adjust to use target hooks.
4734 (emutls_decl): Adjust to use target hooks.
4735 (emutls_finish): Likewise.
4736 (default_emutls_var_init): New, broken out of ...
4737 (assemble_variable): ... here. Adjust to use target hooks.
4738 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
4740 * c-common.c (handle_section_attribute): Prevent overriding
4741 sections for emulated tls with special sections.
4742 * config/i386/i386.c (x86_64_elf_select_section): Add
4743 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
4744 (x86_64_elf_unique_section): Likewise.
4745 * config/vxworks.c: Include tree.h.
4746 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
4747 (vxworks_override_options): Set TLS scheme.
4748 * doc/tm.texi (Emulated TLS): New node.
4750 2008-04-26 Simon Baldwin <simonb@google.com>
4753 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
4754 with propagated string constants.
4756 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
4758 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
4759 constraint for operand 2 when operand 0 is memory operand.
4760 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
4761 operand 0 is memory operand.
4762 (fix_trunc<mode>_i387_with_temp): Ditto.
4763 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
4764 operand 2 when operand 1 is memory operand.
4765 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
4766 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
4767 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
4768 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
4769 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
4770 operands 2,3 and 4 when operand 1 is memory operand.
4771 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
4773 (fistdi2_floor_with_temp): Ditto.
4774 (fist<mode>2_floor_with_temp): Ditto.
4775 (fistdi2_ceil_with_temp): Ditto.
4776 (fist<mode>2_ceil_with_temp): Ditto.
4777 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
4779 2008-04-26 David Daney <ddaney@avtrex.com>
4781 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
4783 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
4784 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
4785 UNSPEC_UPDATE_GOT_VERSION): Renumber.
4786 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
4787 (compare_and_swap_12): New insn.
4788 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
4789 * config/mips/mips.c (mips_force_binary): New function.
4790 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
4791 (mips_expand_compare_and_swap_12): New function.
4792 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
4794 2008-04-25 Jan Hubicka <jh@suse.cz>
4797 * cfgexpand.c (pass_expand): Turn into RTL pass.
4798 * passes.c (execute_one_pass): Do pass typechecking after execution.
4799 * tree-pass.h (pass_expand): Turn into RTL pass.
4801 * function.h (struct rtl_data): Move here fields
4802 accesses_prior_frames, calls_eh_return, saves_all_registers,
4803 has_nonlocal_goto, has_asm_statement, is_thunk,
4804 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
4805 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
4806 arg_pointer_save_area_init from struct function; turn into bool.
4807 (struct function): Move
4808 calls_eh_return, saves_all_registers, has_nonlocal_goto,
4809 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
4810 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
4811 tail_call_emit, arg_pointer_save_area_init
4812 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
4813 (current_function_returns_struct, current_function_returns_pcc_struct,
4814 current_function_calls_setjmp, current_function_calls_alloca,
4815 current_function_accesses_prior_frames,
4816 current_function_calls_eh_return, current_function_is_thunk,
4817 current_function_stdarg, current_function_profile,
4818 current_function_limit_stack, current_function_uses_pic_offset_table,
4819 current_function_uses_const_pool, current_function_has_nonlocal_label,
4820 current_function_saves_all_registers,
4821 current_function_has_nonlocal_goto,
4822 current_function_has_asm_statement): Remove accesor macros.
4823 * ra-conflict.c (global_conflicts): Update.
4824 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
4825 (suitable_for_tail_call_opt_p): Update.
4826 * builtins.c (expand_builtin_return_addr): Update.
4827 (expand_builtin_setjmp_setup): Update.
4828 (expand_builtin_nonlocal_goto): Update.
4829 * final.c (final_start_function): Update.
4830 (profile_function): Update.
4831 (leaf_function_p): Update.
4832 (only_leaf_regs_used): Update.
4833 * df-scan.c (df_get_exit_block_use_set): Update.
4834 * dojump.c (clear_pending_stack_adjust): Update.
4835 * tree-stdarg.c (gate_optimize_stdarg): Update.
4836 * gimple-low.c (lower_function_body): Update.
4837 * global.c (compute_regsets): Update.
4838 (global_alloc): Update.
4839 * dwarf2out.c (dwarf2out_begin_prologue): Update.
4840 * expr.c (expand_assignment): Update.
4841 * dse.c (dse_step0): Update.
4842 (dse_step1): Update.
4843 * c-decl.c (store_parm_decls): Update.
4844 * local-alloc.c (combine_regs): Update.
4845 (find_free_reg): Update.
4846 * function.c (assign_parms_augmented_arg_list): Update.
4847 (assign_parm_find_data_types): Update.
4848 (assign_parms): Update.
4849 (allocate_struct_function): Update.
4850 (expand_function_start): Update.
4851 (expand_function_end): Update.
4852 (get_arg_pointer_save_area): Update.
4853 (thread_prologue_and_epilogue_insns): Update.
4854 (rest_of_match_asm_constraints): Update.
4855 * stor-layout.c (variable_size): Update.
4856 * gcse.c (gcse_main): Update.
4857 (bypass_jumps): Update.
4858 * gimplify.c (gimplify_function_tree): Update.
4859 * calls.c (emit_call_1): Update.
4860 (expand_call): Update.
4861 * bt-load.c (compute_defs_uses_and_gen): Update.
4862 * except.c (sjlj_assign_call_site_values): Update.
4863 (sjlj_emit_function_enter): Update.
4864 (can_throw_external): Update.
4865 (set_nothrow_function_flags): Update.
4866 (expand_builtin_unwind_init): Update.
4867 (expand_eh_return): Update.
4868 (convert_to_eh_region_ranges): Update.
4869 (output_function_exception_table): Update.
4870 * emit-rtl.c (gen_tmp_stack_mem): Update.
4871 * cfgexpand.c (expand_used_vars): Update.
4872 (tree_expand_cfg): Update.
4873 * cfgcleanup.c (rest_of_handle_jump): Update.
4874 * explow.c (allocate_dynamic_stack_space): Update.
4875 * varasm.c (assemble_start_function): Update.
4876 (force_const_mem): Update.
4877 (mark_constant_pool): Update.
4878 * tree-optimize.c (tree_rest_of_compilation): Update.
4879 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
4880 * tree-cfg.c (notice_special_calls): Update.
4881 (is_ctrl_altering_stmt): Update.
4882 (tree_can_make_abnormal_goto): Update.
4883 (tree_purge_dead_abnormal_call_edges): Update.
4884 * config/alpha/predicates.md: Update.
4885 * config/alpha/alpha.c (alpha_sa_mask): Update.
4886 (alpha_sa_size): Update.
4887 (alpha_does_function_need_gp): Update.
4888 (alpha_expand_prologue): Update.
4889 (alpha_start_function): Update.
4890 (alpha_output_function_end_prologue): Update.
4891 (alpha_expand_epilogue): Update.
4892 * config/frv/frv.c (frv_stack_info): Update.
4893 (frv_expand_epilogue): Update.
4894 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
4895 (s390_register_info): Update.
4896 (s390_frame_info): Update.
4897 (s390_init_frame_layout): Update.
4898 (s390_can_eliminate): Update.
4899 (save_gprs): Update.
4900 * config/spu/spu.c (spu_split_immediate): Update.
4901 (need_to_save_reg): Update.
4902 (spu_expand_prologue): Update.
4903 (spu_expand_epilogue): Update.
4904 * config/sparc/sparc.md: Update.
4905 * config/sparc/sparc.c (eligible_for_return_delay): Update.
4906 (sparc_tls_got): Update.
4907 (legitimize_pic_address): Update.
4908 (sparc_emit_call_insn): Update.
4909 (sparc_expand_prologue): Update.
4910 (output_return): Update.
4911 (print_operand): Update.
4912 (sparc_function_ok_for_sibcall): Update.
4913 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
4914 * config/m32r/m32r.md: Update.
4915 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
4916 (m32r_compute_frame_size): Update.
4917 (m32r_expand_prologue): Update.
4918 (m32r_expand_epilogue): Update.
4919 (m32r_legitimize_pic_address): Update.
4920 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
4921 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
4922 * config/i386/i386.c (ix86_frame_pointer_required): Update.
4924 (ix86_save_reg): Update.
4925 (ix86_compute_frame_layout): Update.
4926 (ix86_expand_prologue): Update.
4927 (ix86_expand_epilogue): Update.
4928 * config/sh/sh.c (output_stack_adjust): Update.
4929 (calc_live_regs): Update.
4930 (sh5_schedule_saves): Update.
4931 (sh_expand_prologue): Update.
4932 (sh_expand_epilogue): Update.
4933 (sh_setup_incoming_varargs): Update.
4934 (sh_allocate_initial_value): Update.
4935 (sh_get_pr_initial_val): Update.
4936 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
4937 * config/sh/sh.md (label:): Update.
4938 * config/avr/avr.c (out_movhi_mr_r): Update.
4939 * config/crx/crx.h (enum): Update.
4940 * config/xtensa/xtensa.h (along): Update.
4941 * config/stormy16/stormy16.c Update.
4942 (xstormy16_compute_stack_layout): Update.
4943 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
4944 (fr30_expand_prologue): Update.
4945 * config/cris/cris.c (cris_conditional_register_usage): Update.
4946 (cris_reg_saved_in_regsave_area): Update.
4947 (cris_initial_frame_pointer_offset): Update.
4948 (cris_simple_epilogue): Update.
4949 (cris_expand_prologue): Update.
4950 (cris_expand_epilogue): Update.
4951 (cris_expand_pic_call_address): Update.
4952 (cris_asm_output_symbol_ref): Update.
4953 (cris_asm_output_label_ref): Update.
4954 * config/cris/cris.md Update.
4955 * config/iq2000/iq2000.c (compute_frame_size): Update.
4956 (iq2000_expand_epilogue): Update.
4957 * config/mt/mt.h (save_direction): Update.
4958 * config/mn10300/mn10300.c (mn10300_function_value): Update.
4959 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
4960 (ia64_secondary_reload_class): Update.
4961 * config/m68k/m68k.c (m68k_save_reg): Update.
4962 (m68k_expand_prologue): Update.
4963 (m68k_expand_epilogue): Update.
4964 (legitimize_pic_address): Update.
4965 * config/rs6000/rs6000.c (rs6000_got_register): Update.
4966 (first_reg_to_save): Update.
4967 (first_altivec_reg_to_save): Update.
4968 (compute_vrsave_mask): Update.
4969 (compute_save_world_info): Update.
4970 (rs6000_stack_info): Update.
4971 (spe_func_has_64bit_regs_p): Update.
4972 (rs6000_ra_ever_killed): Update.
4973 (rs6000_emit_eh_reg_restore): Update.
4974 (rs6000_emit_allocate_stack): Update.
4975 (rs6000_emit_prologue): Update.
4976 (rs6000_emit_epilogue): Update.
4977 (rs6000_output_function_epilogue): Update.
4978 (output_profile_hook): Update.
4979 (rs6000_elf_declare_function_name): Update.
4980 * config/rs6000/rs6000.h (rs6000_args): Update.
4981 * config/rs6000/rs6000.md: Update.
4982 * config/mcore/mcore.c (mcore_expand_prolog): Update.
4983 * config/arc/arc.c (arc_output_function_epilogue): Update.
4984 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
4985 * config/darwin.c (machopic_function_base_name): Update.
4986 * config/score/score3.c (score3_compute_frame_size): Update.
4989 (score3_epilogue): Update.
4990 * config/score/score7.c (score7_compute_frame_size): Update.
4991 (score7_prologue): Update.
4992 (score7_epilogue): Update.
4993 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
4994 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
4995 * config/arm/arm.c (use_return_insn): Update.
4996 (require_pic_register): Update.
4997 (arm_load_pic_register): Update.
4998 (arm_compute_save_reg0_reg12_mask): Update.
4999 (arm_compute_save_reg_mask): Update.
5000 (thumb1_compute_save_reg_mask): Update.
5001 (output_return_instruction): Update.
5002 (arm_output_function_prologue): Update.
5003 (arm_output_epilogue): Update.
5004 (arm_get_frame_offsets): Update.
5005 (arm_expand_prologue): Update.
5006 (thumb_pushpop): Update.
5007 (thumb_exit): Update.
5008 (thumb1_expand_prologue): Update.
5009 (thumb1_expand_epilogue): Update.
5010 (arm_unwind_emit): Update.
5011 (arm_output_fn_unwind): Update.
5012 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
5013 * config/arm/arm.md: Update.
5014 * config/pa/pa.md: Update.
5015 * config/pa/pa.c (legitimize_pic_address): Update.
5016 (compute_frame_size): Update.
5017 (hppa_expand_prologue): Update.
5018 (hppa_expand_epilogue): Update.
5019 (borx_reg_operand): Update.
5020 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
5021 (HARD_REGNO_RENAME_OK): Update.
5022 * config/mips/mips.c (mips_global_pointer): Update.
5023 (mips_save_reg_p): Update.
5024 (mips_compute_frame_info): Update.
5025 (mips_frame_pointer_required): Update.
5026 (mips_expand_prologue): Update.
5027 (mips_expand_epilogue): Update.
5028 (mips_can_use_return_insn): Update.
5029 (mips_reorg_process_insns): Update.
5030 * config/v850/v850.c (compute_register_save_size): Update.
5031 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
5032 * config/mmix/mmix.c (along): Update.
5033 (mmix_expand_epilogue): Update.
5034 * config/bfin/bfin.c (legitimize_pic_address): Update.
5035 (must_save_p): Update.
5036 (stack_frame_needed_p): Update.
5037 (add_to_reg): Update.
5038 (bfin_expand_prologue): Update.
5039 * stmt.c (expand_asm_operands): Update.
5040 * reload1.c (reload): Update.
5041 (init_elim_table): Update.
5043 2008-04-25 Bob Wilson <bob.wilson@acm.org>
5045 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
5047 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
5049 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
5050 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
5051 (mov<mode>): Removed.
5052 (*movv4sf_internal): Likewise.
5053 (*movv2df_internal): Likewise.
5055 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
5057 * config.gcc (crx-*-elf): Remove deprecation.
5059 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
5061 * config/i386/cygming-crtend.c (register_frame_ctor): Register
5062 __gcc_deregister_frame with atexit.
5063 (deregister_frame_dtor): Remove.
5065 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
5066 Nathan Sidwell <nathan@codesourcery.com>
5068 * config/rs6000/rs6000.opt (mspe): Remove Var property.
5070 * config/rs6000/rs6000.h (rs6000_spe): Declare.
5071 (rs6000_isel): Likewise.
5072 * config/rs6000/rs6000.c (rs6000_spe): New variable.
5073 (rs6000_isel): New variable.
5074 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
5076 2008-04-24 Jakub Jelinek <jakub@redhat.com>
5079 * c-common.c (handle_vector_size_attribute): Call
5080 lang_hooks.types.reconstruct_complex_type instead of
5081 reconstruct_complex_type.
5082 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
5083 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
5084 * langhooks.h (struct lang_hooks_for_types): Add
5085 reconstruct_complex_type hook.
5086 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
5087 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
5089 2008-04-24 Richard Guenther <rguenther@suse.de>
5091 * c-common.h (check_builtin_function_arguments): Declare.
5092 * c-common.c (validate_nargs): New function.
5093 (check_builtin_function_arguments): Likewise.
5094 * c-typeck.c (build_function_call): Call
5095 check_builtin_function_arguments.
5096 * builtins.c (fold_builtin_classify): Remove error reporting code.
5097 (fold_builtin_unordered_cmp): Likewise.
5098 (fold_builtin_1): Likewise.
5099 (fold_builtin_n): Likewise.
5101 2008-04-24 Jakub Jelinek <jakub@redhat.com>
5103 PR tree-optimization/36008
5104 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
5105 the original op1, rather than delta by step.
5107 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
5108 Sebastian Pop <sebastian.pop@amd.com>
5110 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
5111 eliminate_local_variables_stmt, eliminate_local_variables,
5112 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
5113 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
5114 of code delimited by two edges in the CFG.
5115 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
5116 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
5117 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
5118 the case of parallelisation of reductions.
5119 (expr_invariant_in_region_p): New.
5121 * tree-flow.h (gather_blocks_in_sese_region): Declared.
5122 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
5124 2008-04-24 Ira Rosen <irar@il.ibm.com>
5125 Richard Guenther <rguenther@suse.de>
5127 PR tree-optimization/36034
5128 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
5129 incapable of dealing with loads with gaps.
5131 2008-04-24 Rafael Espindola <espindola@google.com>
5133 * tree-flow.h (vrp_evaluate_conditional): Change signature.
5134 * tree-ssa-propagate.c (fold_predicate_in): Update call to
5135 vrp_evaluate_conditional.
5136 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
5137 (vrp_evaluate_conditional): Split the cond argument.
5138 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
5139 (simplify_stmt_for_jump_threading): Update call to
5140 vrp_evaluate_conditional.
5142 2008-04-24 Ira Rosen <irar@il.ibm.com>
5144 PR tree-optimization/35982
5145 * tree-vect-analyze.c (vect_check_interleaving): Check that the
5146 interleaved data-refs are of the same type.
5148 2008-04-24 Danny Smith <dannysmith@users.net>
5150 * c-format.c (check_format_info_main): Use strncmp rather than a
5151 magic prefix to handle multichar length specs.
5152 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
5153 Don't prefix "I64" and "I32" with '\0'.
5155 2008-04-24 Jakub Jelinek <jakub@redhat.com>
5158 * config/i386/i386.c (init_cumulative_args): Don't pass anything
5159 in registers for -m32 only if stdarg_p (fntype).
5161 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
5163 PR rtl-optimization/36006
5164 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
5165 temp to op0 in order to avoid invalid rtx sharing.
5167 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
5169 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
5170 check TREE_INVARIANT.
5171 * tree-gimple.c (is_gimple_address): New.
5172 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
5173 * tree-gimple.h (is_gimple_address): New.
5174 * tree.h (decl_address_invariant_p): New.
5175 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
5176 (build_string): Likewise.
5177 (decl_address_invariant_p): New, from is_gimple_invariant_address.
5178 (tree_invariant_p_1): Likewise.
5179 (save_expr): Use it.
5180 (tree_invariant_p): New.
5181 (skip_simple_arithmetic): Use it.
5182 (stabilize_reference_1): Use it.
5183 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
5185 (build1_stat): Drop code to compute TREE_INVARIANT.
5186 (build2_stat): Drop code to compute TREE_INVARIANT.
5187 (build3_stat): Drop code to compute TREE_INVARIANT.
5188 (build4_stat): Drop code to compute TREE_INVARIANT.
5189 (build5_stat): Drop code to compute TREE_INVARIANT.
5190 (build7_stat): Drop code to compute TREE_INVARIANT.
5191 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
5192 * tree.h (struct tree_base): Remove invariant_flag.
5193 (TREE_INVARIANT): Remove.
5194 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
5195 (fold_builtin_expect): Check TREE_CONSTANT.
5196 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
5197 * c-tree.h (c_expr_to_decl): Drop third parameter.
5198 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
5199 (build_c_cast): Don't set TREE_INVARIANT.
5200 (pop_init_level): Don't set TREE_INVARIANT.
5201 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
5202 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
5204 (gimplify_init_constructor): Don't set TREE_INVARIANT.
5205 (gimplify_addr_expr): Adjust comment.
5206 * tree-mudflap.c (mf_build_string):
5207 * print-tree.c (print_node): Don't print TREE_INVARIANT.
5208 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
5209 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
5210 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
5211 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
5212 * langhooks.h (struct lang_hooks): Drop third parameter from
5215 2008-04-23 Richard Guenther <rguenther@suse.de>
5217 PR tree-optimization/27799
5218 PR tree-optimization/32921
5219 PR tree-optimization/32624
5220 * tree-ssa-structalias.c (merge_smts_into): Only merge the
5221 SMTs aliases and the tag itself into the solution.
5222 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
5223 merge the points-to solution back into the SMT aliases.
5224 (may_alias_p): Use alias_set_subset_of instead of
5225 aliases_conflict_p. A pointer which points to
5226 memory with alias set zero may access any variable.
5228 2008-04-23 Richard Guenther <rguenther@suse.de>
5230 * alias.c (alias_set_subset_of): Correctly handle asking
5231 if zero is a subset of an alias set with zero child.
5232 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
5233 (compute_flow_insensitive_aliasing): Correctly walk all
5234 pointers. Do not unnecessarily union sets.
5236 2008-04-23 Richard Guenther <rguenther@suse.de>
5239 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
5241 2008-04-22 Tomas Bily <tbily@suse.cz>
5243 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
5245 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
5247 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
5248 * tree-ssa-structalias.c (get_constraint_for): Likewise.
5249 * tree-inline.c (estimate_num_insns_1): Likewise.
5250 * varasm.c (const_hash_1, compare_constant, copy_constant)
5251 (compute_reloc_for_constant, output_addressed_constants): Likewise.
5252 * emit-rtl.c (component_ref_for_mem_expr)
5253 (set_mem_attributes_minus_bitpos): Likewise.
5254 * expr.c (highest_pow2_factor, expand_expr_real_1, )
5255 (is_aligning_offset): Likewise.
5256 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
5257 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
5258 * dojump.c (do_jump): Likewise.
5259 * builtins.c (get_pointer_alignment, get_memory_rtx)
5260 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
5261 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
5263 2008-04-23 Jakub Jelinek <jakub@redhat.com>
5265 PR rtl-optimization/36017
5266 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
5267 expanding the library call.
5269 2008-04-22 Ian Lance Taylor <iant@google.com>
5271 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
5274 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
5276 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
5277 of LR/CTR moves for Power6.
5279 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
5282 * passes.c (init_optimization_passes): Remove
5283 pass_fast_rtl_byte_dce.
5285 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
5288 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
5289 builtin functions to generate faster code.
5290 (_mm_cvtpu16_ps): Ditto.
5291 (_mm_cvtpi32x2_ps): Ditto.
5293 2008-04-22 Nick Clifton <nickc@redhat.com>
5295 * common.opt (ftree-loop-distribution): Add Optimization
5298 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
5299 (frv_expand_builtin_va_start): Likewise.
5301 * config/arm/arm.c (thumb_find_work_register): Fix location of
5302 argument register count.
5304 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5306 Support scheduling for ColdFire V1 and V3 microarchitecture.
5307 Improve scheduling of multiplication instructions.
5309 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
5310 (mac): New instruction attribute.
5311 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
5312 (m68k_sched_mac): New variable.
5313 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
5314 Handle cfv1 and cfv3.
5315 (max_insn_size): New static variable.
5316 (struct _sched_ib): New type.
5317 (sched_ib): New static variable.
5318 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
5319 to fields of 'struct _sched_ib sched_ib'. Update all uses.
5320 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
5322 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
5323 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
5324 new variables. Update.
5325 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
5326 Add modeling of cfv3 instruction buffer. Update.
5327 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
5328 * config/m68k/m68k.h (TUNE_CFV3): New macro.
5329 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
5330 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
5331 a particular reservation applies to.
5332 (type2): Reorganize attribute values. Rename alu to alu_reg,
5333 alu_l to alu, move_l to omove. Join move to alu. Split mul
5335 (cf_ib_*): Simplify description of instruction buffer.
5336 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
5337 (cf_mem): Split into cf_mem1 and cf_mem2.
5338 (cf_v2_move_??): Rename to cfv12_alu_??.
5339 (cf_v2_move_l_??): Rename to cfv12_omove_??.
5340 (cf_v2_mul_??): Remove reservations.
5341 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
5342 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
5343 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
5345 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
5346 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
5347 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
5348 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
5349 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
5350 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
5351 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
5352 expansions of the above reservations for instructions of sizes
5355 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5357 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
5359 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
5361 * coverage.c: Include tree-pass.h.
5362 (coverage_counter_alloc): Print da_file_name to the dump file.
5364 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
5366 * sbitmap.c (sbitmap_range_empty_p): New function.
5367 * sbitmap.h (sbitmap_range_empty_p): New function.
5368 * bitmap.h: Now includes obstack.h.
5370 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
5371 Kenneth Zadeck <zadeck@naturalbridge.com>
5373 * dbgcnt.def (ra_byte_scan): Added.
5374 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
5375 when the last hit happens for a counter.
5376 * timevar.def (TV_DF_BYTE_LR): New variable.
5377 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
5378 * passes.c (pass_fast_rtl_byte_dce): New pass.
5379 * fwprop.c (update_df): Added mode to call df_ref_create.
5380 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
5381 DF_REF_EXTRACT_OFFSET.
5382 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
5383 DF_BYTE_LR_OUT, df_byte_lr): New macro.
5385 (df_ref_extract): Added mode field.
5386 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
5387 DF_REF_EXTRACT_OFFSET.
5388 (DF_REF_EXTRACT_MODE): New macro.
5389 (df_byte_lr_bb_info): New structure.
5390 (df_print_byte_regset, df_compute_accessed_bytes,
5391 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
5392 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
5393 df_byte_lr_simulate_uses,
5394 df_byte_lr_simulate_artificial_refs_at_top,
5395 df_byte_lr_simulate_artificial_refs_at_end,
5396 df_compute_accessed_bytes): New function.
5397 (df_ref_create): Add parameter.
5398 (df_byte_lr_get_bb_info): New inline function.
5399 * df-scan.c (df_ref_record, df_uses_record,
5400 df_ref_create_structure): Added mode parameter.
5401 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
5402 df_defs_record, df_uses_record, df_get_conditional_uses,
5403 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
5404 df_entry_block_defs_collect, df_exit_block_uses_collect):
5405 Added mode parameter to calls to df_ref_record, df_uses_record,
5406 df_ref_create_structure.
5407 (df_ref_equal_p, df_ref_compare): Added test for modes.
5408 (df_ref_create_structure): Added code to set mode. Renamed
5409 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
5410 DF_REF_EXTRACT_OFFSET.
5411 * df-core.c (df_print_byte_regset): New function.
5412 * df-byte-scan.c: New file.
5413 * df-problems.c (df_rd_transfer_function): Removed unnecessary
5414 calls to BITMAP_FREE.
5415 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
5416 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
5417 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
5418 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
5419 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
5420 df_byte_lr_local_compute, df_byte_lr_init,
5421 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5422 df_byte_lr_transfer_function, df_byte_lr_free,
5423 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
5424 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
5425 df_byte_lr_simulate_uses,
5426 df_byte_lr_simulate_artificial_refs_at_top,
5427 df_byte_lr_simulate_artificial_refs_at_end): New function.
5428 * dce.c (byte_dce_process_block): New function.
5429 (dce_process_block): au is now passed in rather than computed
5430 locally. Changed loops that look at artificial defs to not look
5431 for conditional or partial ones, because there never are any.
5432 (fast_dce): Now is able to drive byte_dce_process_block or
5433 dce_process_block depending on the kind of dce being done.
5434 (rest_of_handle_fast_dce): Add parameter to fast_dce.
5435 (rest_of_handle_fast_byte_dce): New function.
5436 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
5437 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
5439 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
5442 * gcc.h: Added fortran options that take arguments to
5443 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
5446 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
5448 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
5449 scalarization if on the LHS and not a full access.
5451 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5453 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
5455 2008-04-18 Rafael Espindola <espindola@google.com>
5457 * tree-vrp.c (find_case_label_index): Fix the binary search.
5458 (find_case_label_range): New.
5459 (vrp_visit_switch_stmt): Use find_case_label_range.
5460 (simplify_switch_using_ranges): Use find_case_label_range.
5462 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5464 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
5465 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
5467 2008-04-18 Tom Tromey <tromey@redhat.com>
5470 * doc/cpp.texi (Implementation-defined behavior): Mention
5473 2008-04-18 Ian Lance Taylor <iant@google.com>
5475 * fold-const.c (pointer_may_wrap_p): New static function.
5476 (fold_comparison): Add another test for pointer overflow. Use
5477 pointer_may_wrap_p to disable some false positives.
5479 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
5481 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
5482 (fname_as_string): Match updated cpp_interpret_string prototype.
5483 (fix_string_type): Support char16_t* and char32_t*.
5484 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
5485 derivative) nodes. Register as builtin if C++0x.
5486 (c_parse_error): Support CPP_CHAR{16,32}.
5487 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
5488 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
5489 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
5490 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
5491 CTI_CHAR32_ARRAY_TYPE>: New elements.
5492 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
5493 char32_type_node, signed_char32_type_node, char16_array_type_node,
5494 char32_array_type_node): New defines.
5495 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
5496 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
5497 (lex_string): Support CPP_STRING{16,32}, match updated
5498 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
5499 (lex_charconst): Support CPP_CHAR{16,32}.
5500 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
5501 and CPP_STRING{16,32}.
5503 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
5506 * aclocal.m4: Regenerate.
5507 * configure: Regenerate.
5509 2008-04-18 Jan Hubicka <jh@suse.cz>
5511 * except.c (dw2_size_of_call_site_table,
5512 sjlj_size_of_call_site_table): Use vector API for call_site_record.
5514 * cgraphbuild.c (build_cgraph_edges): Update.
5515 * tree-pass.h: Update comment.
5516 * final.c (leaf_function_p): Update.
5517 (leaf_renumber_regs): Update.
5518 (rest_of_clean_state): Update.
5519 * omp-low.c (expand_omp_parallel): Update.
5520 * ipa-reference.c (analyze_function): Update.
5521 * reorg.c (find_end_label): Update.
5522 (optimize_skip): Update.
5523 (fill_simple_delay_slots): Update.
5524 (fill_simple_delay_slots): Update.
5525 (make_return_insns): Update.
5526 (dbr_schedule): Update.
5527 * gimple-low.c (record_vars_into): Update.
5528 * cfgbuild.c (make_edges): Update.
5529 * function.c (assign_stack_local): Update.
5530 (assign_parm_adjust_stack_rtl): Update.
5531 (locate_and_pad_parm): Update.
5532 (allocate_struct_function): Do not initialize stack_alignment_needed
5533 and preferred_stack_boundary here.
5534 (stack_protect_prologue): Update.
5535 (stack_protect_epilogue): Update.
5536 (expand_function_start): Initialize stack_alignment_needed,
5537 preferred_stack_boundary and max_jumptable_ents.
5538 (expand_function_end): Update.
5539 (free_after_compilation): Do not NULLify epilogue_delay_list.
5540 * function.h (struct rtl_data): Add stack_protect_guard,
5541 stack_alignment_needed,
5542 preferred_stack_boundary, epilogue_delay_list.
5543 (struct function): Remove value_histograms, stack_alignment_needed,
5544 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
5546 unexpanded_var_list, stack_protect_guard.
5547 (current_function_epilogue_delay_list): Remove.
5548 * ipa-type-escape.c (analyze_function): Update.
5549 * gimplify.c (pop_gimplify_context): Update comment.
5550 * calls.c (expand_call): Update.
5551 (emit_library_call_value_1): Update.
5552 * except.c (set_nothrow_function_flags): Update.
5553 * cfgexpand.c (get_decl_align_unit): Update.
5554 (create_stack_guard): Update.
5555 (estimated_stack_frame_size): Update.
5556 (expand_used_vars): Update.
5557 (tree_expand_cfg): Free histogram earliers, init expansion variables.
5558 * explow.c (allocate_dynamic_stack_space): Update.
5559 * tree-ssa-live.c (remove_unused_locals): Update.
5560 * varasm.c (mark_constant_pool): Update.
5561 * tree-inline.c (remap_decls): Update.
5562 (initialize_cfun): Update.
5563 (declare_return_variable): Update.
5564 (inline_forbidden_p): Update.
5565 (expand_call_inline): Update.
5566 (declare_inline_vars): Update.
5567 (tree_function_versioning): Update.
5568 * tree-flow.h (value_histograms): New.
5569 (VALUE_HISTOGRAMS): New macro.
5570 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
5572 * tree-cfg.c (set_bb_for_stmt): Update.
5573 (replace_by_duplicate_decl): Update.
5574 (move_block_to_fn): Update.
5575 (new_label_mapper): Update.
5576 (dump_function_to_file): Update.
5577 * ipa-struct-reorg.c (build_data_structure): Update.
5578 * cfgrtl.c (print_rtl_with_bb): Update.
5579 * reload1.c (reload): Update.
5581 * config/i386/i386.c (setup_incoming_varargs_64,
5582 ix86_compute_frame_layout): Update.
5583 * config/arc/arc.c (arc_output_function_epilogue): Update.
5585 2008-04-18 Marius Strobl <marius@FreeBSD.org>
5587 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
5588 for FreeBSD as well.
5589 * gthr-posix95.h: Likewise.
5591 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
5593 PR rtl-optimization/35838
5594 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
5595 out the byte offset of the first subreg.
5597 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
5599 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
5600 to split_ti instead of three separate calls with single member arrays.
5601 (subti3 splitter): Ditto.
5602 (adddi3 splitter): Ditto with split_di.
5603 (subdi3 splitter): Ditto.
5604 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
5605 two separate calls with single member arrays. Swap match_dup
5606 operands 1 and 2 to better fit into the array.
5607 (negdi2 splitter): Ditto with split_di.
5608 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
5609 two separate calls with single member arrays. Swap match_dup operands
5610 6 and 7 to better fit into the array.
5612 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
5614 * config/i386/i386.c (sse_builtin_type): New.
5615 (bdesc_sse_args): Likewise.
5616 (bdesc_sse_3arg): Removed.
5617 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
5618 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
5619 IX86_BUILTIN_ROUNDPS.
5620 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
5621 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
5622 IX86_BUILTIN_ROUNDPS.
5623 (ix86_expand_sse_4_operands_builtin): Removed.
5624 (ix86_expand_sse_operands_builtin): New.
5625 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
5626 and CODE_FOR_sse4_1_roundps.
5627 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
5628 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
5630 2008-04-17 Alan Modra <amodra@bigpond.net.au>
5633 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
5634 regs before frame pop when needed. If use_backchain_to_restore_sp
5635 then load backchain into a temp reg to restore vr and vrsave. Add
5636 code to restore vr after frame pop if possible.
5638 2008-04-17 Richard Guenther <rguenther@suse.de>
5640 * tree-vn.c (expressions_equal_p): Do not check type
5641 equality or compatibility before calling operand_equal_p.
5642 * fold-const.c (operand_equal_p): Check equivalence of
5643 integer constants before bailing out due to signedness or
5644 precision differences.
5645 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
5646 spurious differences in type qualification. Ignore types
5647 for COMPONENT_REFs at all.
5649 2008-04-17 Christian Bruel <christian.bruel@st.com>
5651 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
5652 msw_skip comparison.
5654 2008-04-16 Jakub Jelinek <jakub@redhat.com>
5657 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
5660 PR tree-optimization/35899
5661 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
5662 rather than TREE_OPERAND.
5664 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
5667 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
5668 temporary registers. Change operand predicate to general_operand.
5669 (remainderxf3): Ditto.
5671 2008-04-16 Richard Guenther <rguenther@suse.de>
5673 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
5674 * tree-affine.c (aff_combination_expand): Look through some
5677 2008-04-15 Doug Kwan <dougkwan@google.com>
5679 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
5681 * tree-pretty-print.c (dump_generic_node): Ditto.
5682 * final.c (output_addr_const): Ditto.
5683 * dwarf2out.c (output_cfi): Ditto.
5684 * c-pretty-print.c (pp_c_integer_constant): Ditto.
5685 * print-rtl.c (print_rtx): Ditto.
5686 * print-tree.c (print_node_brief, print_node): Ditto.
5687 * c-common.c (match_case_to_enum_1): Ditto.
5688 * sched-vis.c (print_value): Ditto.
5689 * config/i386/i386.c (print_operand): Cast to long unsigned int
5692 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
5693 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
5694 MS Windows VirtualProtect function.
5696 2008-04-15 Jan Hubicka <jh@suse.cz>
5698 * gengtype.c (write_root): Param_is argument is OK.
5699 * expr.c (expand_expr_real_1): Update call of get_exception_*.
5700 * function.h: Include varray.h
5701 (rtl_eh): New stucture based on except.c one.
5702 (call_site_record): New forward declaration and vector type.
5703 * calls.c (emit_call_1): Do not call
5704 note_current_region_may_contain_throw.
5705 * except.c (eh_status): Remove cur_region, try_region since they are
5707 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
5708 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
5709 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
5710 Remove call_site_data_used, call_site_data_size.
5711 Turn call_site_record into vector in function.h.
5712 (note_current_region_may_contain_throw): Remove.
5713 (get_exception_pointer, get_exception_filter): Do not take struct
5714 function argument; update.
5715 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
5716 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
5717 build_post_landing_pads, dw2_build_landing_pads,
5718 sjlj_assign_call_site_values, sjlj_mark_call_sites,
5719 sjlj_emit_function_enter, sjlj_emit_function_enter,
5720 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
5721 sjlj_build_landing_pads, finish_eh_generation,
5722 remove_exception_handler_label, remove_eh_handler,
5723 maybe_remove_eh_handler, add_reachable_handler,
5724 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
5725 add_action_record, collect_one_action_chain, add_call_site,
5726 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
5727 sjlj_output_call_site_table, output_function_exception_table,
5728 * except.h (note_current_region_may_contain_throw): Remove
5729 (get_exception_pointer, get_exception_filter): Do not take struct
5731 * Makefile.in (GTFILES): Put varargs before struct function.
5733 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
5735 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
5736 punt for STRING_CST.
5737 (get_constraint_for): Deal with STRING_CST here instead.
5739 2008-04-15 Richard Guenther <rguenther@suse.de>
5741 * tree-ssa-propagate.c (substitute_and_fold): Substitute
5742 statements in a basic-block with a backward walk. Do not
5743 substitute into dead statements but instead remove those.
5745 2008-04-15 Richard Guenther <rguenther@suse.de>
5747 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
5748 to zero, thus disable creation of SFTs.
5750 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
5752 * tree-predcom.c (suitable_reference_p): Return false if the
5753 reference can throw.
5755 2008-04-15 Jakub Jelinek <jakub@redhat.com>
5758 * c-decl.c (finish_decl): If extern or static var has variable
5759 size, set TREE_TYPE (decl) to error_mark_node.
5761 2008-04-15 Rafael Espindola <espindola@google.com>
5763 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
5766 2008-04-15 Richard Guenther <rguenther@suse.de>
5768 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5769 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
5770 (visit_reference_op_load): Do walk vuse-vdef chains on
5771 vn_reference_lookup.
5772 (visit_reference_op_store): But do not here.
5773 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
5774 vn_reference_lookup.
5775 (vn_lookup_with_vuses): But do so here.
5777 2008-04-14 Ian Lance Taylor <iant@google.com>
5779 * fold-const.c (fold_overflow_warning): Remove assertion.
5781 2008-04-15 Ben Elliston <bje@au.ibm.com>
5783 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
5784 temp1 local variables.
5786 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
5789 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
5790 ".text.unlikely" section as executable.
5792 2008-04-14 James E. Wilson <wilson@tuliptree.org>
5794 * config/ia64/ia64.c (rtx_needs_barrier): Handle
5795 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
5796 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
5797 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
5798 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
5799 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
5800 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
5802 2008-04-14 Ian Lance Taylor <iant@google.com>
5804 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
5805 * fold-const.c (fold_comparison): If appropriate, test
5806 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
5807 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
5808 reassociating a pointer type.
5809 * doc/invoke.texi (Optimize Options): Document that
5810 -fstrict-overflow applies to pointer wraparound.
5812 2008-04-13 Jan Hubicka <jh@suse.cz>
5814 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
5816 2008-04-12 Andrew Pinski <pinskia@gmail.com>
5818 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
5819 we are going to "save the world".
5821 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
5823 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
5824 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
5825 operand 0 constraint, not "=".
5827 2008-04-11 James E. Wilson <wilson@tuliptree.org>
5829 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
5831 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
5833 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
5834 of size of positions_needed * CHAR_BIT.
5836 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
5839 * dse.c (store_info): Change positions_needed to unsigned
5841 (lowpart_bitmask): New.
5842 (record_store): Cast to unsigned HOST_WIDE_INT for
5843 positions_needed. Assert width <= size of positions_needed *
5844 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
5845 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
5846 lowpart_bitmask to set mask.
5848 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
5850 * config/bfin/constraints.md: New file.
5851 * config/bfin/bfin.md: Include it.
5852 (adddi3): Use satisfies_constraint functions instead of the old macros.
5853 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
5854 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
5855 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
5856 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
5857 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
5858 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
5859 EXTRA_CONSTRAINT): Delete.
5860 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
5861 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
5863 * config/bfin/bfin.c: Include "tm-constrs.h".
5864 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
5865 Use satisfies_constraint functions instead of the old macros.
5866 * doc/md.texi (Blackfin Constraints): Update file name reference.
5868 2008-04-11 Richard Guenther <rguenther@suse.de>
5870 PR tree-optimization/35869
5871 * tree-vrp.c (execute_vrp): Move switch statement update after
5872 jump threading. Schedule another cfg cleanup run.
5874 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
5877 * attribs.c (decl_attributes): Return early on errorneous node.
5879 2008-04-10 Oleg Ryjkov <olegr@google.com>
5881 * tree.h (struct tree_base): Added a new flag default_def_flag.
5882 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
5884 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
5886 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
5888 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5891 * pa.md: Define mode iterator P. Define mode attribute dwc.
5892 (dcacheflush): Update pattern to use iterator P and attribute dwc.
5893 (icacheflush): Likewise.
5894 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
5895 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
5897 2008-04-11 Ben Elliston <bje@au.ibm.com>
5899 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
5901 2008-04-10 Rafael Espindola <espindola@google.com>
5903 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
5904 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
5905 (extract_range_from_expr): The same.
5907 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
5909 * config/mips/mips.md (GPR2): New mode iterator.
5911 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
5912 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
5913 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
5914 Rewrite these to take two modes, the mode of comparison and the
5915 mode of the destination.
5916 * config/mips/mips.c (mips_expand_scc): Instead of having
5917 paradoxical subreg as destination, expand "narrowing" scc if mode
5918 of comparison is SI and target is requested in DI mode.
5919 (mips_emit_int_order_test): Update comment. Make mode of
5920 comparison match CMP0 rather than TARGET. When creating inverse
5921 target use mode of TARGET.
5923 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
5925 * gcov-dump.c (tag_summary): Only print summaries for the first
5926 GCOV_COUNTERS_SUMMABLE counters.
5928 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
5930 * config/i386/i386.md (absneg): New code iterator.
5931 (absnegprefix): New code attribute.
5932 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
5933 patterns using absneg code iterator.
5934 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
5935 using absneg code iterator.
5936 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
5937 *neg<mode>2 patterns using absneg code iterator.
5938 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
5939 *negextendsfdf2 patterns using absneg code iterator.
5940 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
5941 *negextendsfxf2 patterns using absneg code iterator.
5942 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
5943 *negextendsfdf2 patterns using absneg code iterator.
5944 * config/i386/sse.md (<code><mode>2): Macroize expander from
5945 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
5947 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
5949 * config/s390/s390.h: Remove the remains of the recent search
5950 & replace action of current_function_outgoing_args_size.
5952 2008-04-10 Ira Rosen <irar@il.ibm.com>
5954 PR tree-optimization/35821
5955 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
5956 NEW_STMT_LIST is not NULL.
5958 2008-04-09 David Edelsohn <edelsohn@gnu.org>
5961 * toplev.c (process_options): Remove -ffunction-sections debugging
5964 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
5966 PR middle-end/PR28690
5967 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
5968 than gen_rtx_fmt_ee to perform more canonicalizations.
5970 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5973 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
5975 2008-04-09 Richard Guenther <rguenther@suse.de>
5977 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
5978 (dump_function_to_file): Dump function arguments with types.
5980 2008-04-08 Richard Guenther <rguenther@suse.de>
5982 * fold-const.c (fold_widened_comparison): Do not allow
5983 sign-changes that change the result.
5985 2008-04-08 Janis Johnson <janis187@us.ibm.com>
5988 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
5989 kinds of indirect references.
5991 2008-04-08 David Edelsohn <edelsohn@gnu.org>
5993 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
5994 GNU Fortran language string.
5996 2008-04-08 Rafael Espindola <espindola@google.com>
5998 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
5999 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
6000 * tree.h (tree_call_nonnegative_warnv_p): New.
6002 2008-04-08 Jan Hubicka <jh@suse.cz>
6004 * function.c (free_after_compilation): Clear out regno_reg_rtx
6007 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
6010 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
6012 PR middle-end/PR28690
6013 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
6014 same precedence as REG_POINTER and MEM_POINTER operands.
6016 2008-04-08 Richard Guenther <rguenther@suse.de>
6019 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
6020 for adding index to base.
6022 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
6024 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
6025 (MINGW_ENABLE_EXECUTE_STACK): New.
6026 (IN_LIBGCC2): For libgcc include windows.h file for
6027 function declarations.
6029 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
6031 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
6032 and tem2 if tem1 is not a REG or MULT.
6034 2008-04-08 Jan Hubicka <jh@suse.cz>
6036 * function.h (incomming_args): Break out of struct function.
6037 (function_subsections): Break out of struct function.
6038 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
6039 return_rtx and hard_reg_initial_vals from struct function.
6040 Kill inl_max_label_num.
6041 (current_function_pops_args, current_function_args_info,
6042 current_function_args_size, current_function_args_size,
6043 current_function_pretend_args_size,
6044 current_function_outgoing_args_size,
6045 current_function_internal_arg_pointer, current_function_return_rtx):
6046 Kill compatibility accestor macros.
6047 * builtins.c (expand_builtin_apply_args_1): Update.
6048 (expand_builtin_next_arg): Update.
6049 * df-scan.c (df_get_call_refs): Update.
6050 * dbxout.c (dbxout_function_end): Update.
6051 * dwarf2out.c (dwarf2out_switch_text_section): Update.
6052 (output_line_info): Update.
6053 (secname_for_decl): Update.
6054 (dwarf2out_var_location): Update.
6055 * function.c (free_after_compilation): Update.
6056 (assign_parm_find_stack_rtl): Update.
6057 (assign_parms): Update.
6058 (expand_dummy_function_end): Update.
6059 (expand_function_end): Update.
6060 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
6061 (expand_call): Update.
6062 (emit_library_call_value_1): Update.
6063 (store_one_arg): Update.
6064 * varasm.c (initialize_cold_section_name): Update.
6065 (unlikely_text_section): Update.
6066 (unlikely_text_section_p): Update.
6067 (assemble_start_function): Update.
6068 (assemble_end_function): Update.
6069 (default_section_type_flags): Update.
6070 (switch_to_section): Update.
6071 * integrate.c (set_decl_abstract_flags): Update.
6072 (get_hard_reg_initial_val): Update.
6073 (has_hard_reg_initial_val): Update.
6074 (allocate_initial_values): Update.
6075 * resource.c (init_resource_info): Update.
6076 * config/alpha/alpha.c (NUM_ARGS): Update.
6077 (direct_return): Update.
6078 (alpha_va_start): Update.
6079 (alpha_sa_size): Update.
6080 (alpha_initial_elimination_offset): Update.
6081 (alpha_expand_prologue): Update.
6082 (alpha_start_function): Update.
6083 (alpha_expand_epilogue): Update.
6084 (unicosmk_initial_elimination_offset):
6085 * config/alpha/alpha.md (call expander): Update.
6086 * config/s390/s390.c (s390_register_info): Update.
6087 (s390_register_info): Update.
6088 (s390_frame_info): Update.
6089 (s390_initial_elimination_offset): Update.
6090 (s390_build_builtin_va_list): Update.
6091 (s390_va_start): Update.
6092 * config/spu/spu.c (direct_return): Update.
6093 (spu_expand_prologue): Update.
6094 (spu_initial_elimination_offset): Update.
6095 (spu_build_builtin_va_list): Update.
6096 (spu_va_start): Update.
6097 * config/sparc/sparc.c (sparc_init_modes): Update.
6098 (sparc_compute_frame_size): Update.
6099 (function_value): Update.
6100 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
6101 * config/i386/i386.md (return expander): Update.
6102 * config/i386/i386.c (ix86_va_start): Update.
6103 (ix86_can_use_return_insn_p): Update.
6104 (ix86_compute_frame_layout): Update.
6105 (ix86_expand_epilogue): Update.
6106 * config/sh/sh.c (output_stack_adjust): Update.
6107 (calc_live_regs): Update.
6108 (sh_expand_prologue): Update.
6109 (sh_builtin_saveregs): Update.
6110 (sh_va_start): Update.
6111 (initial_elimination_offset): Update.
6112 (sh_allocate_initial_value): Update.
6113 (sh_function_ok_for_sibcall): Update.
6114 (sh_get_pr_initial_val): Update.
6115 * config/sh/sh.md (return expander): Update.
6116 * config/avr/avr.c (frame_pointer_required_p): UPdate.
6117 * config/crx/crx.c (crx_compute_frame): UPdate.
6118 (crx_initial_elimination_offset): UPdate.
6119 * config/xtensa/xtensa.c (compute_frame_size): Update
6120 (xtensa_builtin_saveregs): Update.
6121 (xtensa_va_start): Update.
6122 (order_regs_for_local_alloc): Update.
6123 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
6124 (xstormy16_expand_builtin_va_start): Update.
6125 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
6126 * config/m68hc11/m68hc11.md (return expanders): Update.
6127 * config/m68hc11/m68hc11.c (expand_prologue): Update.
6128 (expand_epilogue): Update.
6129 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
6130 (cris_simple_epilogue): Update.
6131 (cris_expand_prologue): Update.
6132 (cris_expand_epilogue): Update.
6133 * config/iq2000/iq2000.c (iq2000_va_start): Update.
6134 (compute_frame_size): Update.
6135 * config/mt/mt.c (mt_compute_frame_size): Update.
6136 * config/mn10300/mn10300.c (expand_prologue): Update.
6137 (expand_epilogue): Update.
6138 (initial_offset): Update.
6139 (mn10300_builtin_saveregs):
6140 * config/mn10300/mn10300.md (return expander): Update.
6141 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
6142 (ia64_initial_elimination_offset): Update.
6143 (ia64_initial_elimination_offset): Update.
6144 (ia64_expand_prologue): Update.
6145 * config/m68k/m68k.md (return expander): Update.
6146 * config/rs6000/rs6000.c (rs6000_va_start): Update.
6147 (rs6000_stack_info): Update.
6148 * config/mcore/mcore.c (layout_mcore_frame): Update.
6149 (mcore_expand_prolog): Update.
6150 * config/arc/arc.c (arc_compute_frame_size): Update.
6151 * config/score/score3.c (score3_compute_frame_size): Update.
6152 * config/score/score7.c (score7_compute_frame_size): Update.
6153 * config/arm/arm.c (use_return_insn): Update.
6154 (thumb_find_work_register): Update.
6155 (arm_compute_save_reg_mask): Update.
6156 (arm_output_function_prologue): Update.
6157 (arm_output_epilogue): Update.
6158 (arm_size_return_regs): Update.
6159 (arm_get_frame_offsets): Update.
6160 (arm_expand_prologue): Update.
6161 (thumb_exit): Update.
6162 (thumb_unexpanded_epilogue): Update.
6163 (thumb1_output_function_prologue): Update.
6164 * config/pa/pa.md (return expander): Update.
6165 * config/pa/pa.c (compute_frame_size): Update.
6166 (hppa_builtin_saveregs): Update.
6167 * config/mips/mips.c (mips_va_start): Update.
6168 (mips16_build_function_stub): Update.
6169 (mips_compute_frame_info): Update.
6170 (mips_restore_gp): Update.
6171 (mips_output_function_prologue): Update.
6172 (mips_expand_prologue): Update.
6173 * config/v850/v850.c (compute_frame_size): Update.
6174 (expand_prologue): * config/mmix/mmix.c (along): update.
6175 (mmix_initial_elimination_offset): update.
6176 (mmix_reorg): update.
6177 (mmix_use_simple_return): update.
6178 (mmix_expand_prologue): update.
6179 (mmix_expand_epilogue): Update.
6180 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
6181 (emit_link_insn): Update.
6183 2008-04-08 Anatoly Sokolov <aesok@post.ru>
6185 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
6186 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
6188 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
6191 2008-04-07 Jan Hubicka <jh@suse.cz>
6193 * function.h (rtl): Rename to x_rtl.
6195 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
6196 frame_offset, stack_check_probe_note, arg_pointer_save_area,
6197 used_temp_slots avail_temp_slots, temp_slot_level,
6198 nonlocal_goto_handler_labels): Update accesstors.
6199 (rtl): New global variable.
6200 (struct function): Move some fileds to rtl_data.
6201 (get_arg_pointer_save_area): Update prototype.
6202 * builtins.c (expand_builtin_setjmp_receiver): Update call of
6203 get_arg_pointer_save_area.
6204 * expr.c (init_expr): Update
6205 * function.c (get_frame_size): Update
6206 (assign_stack_local): Update
6207 (expand_function_end): Update.
6208 (get_art_pointer_save_area): Update
6210 * emit-rtl.c (rtl): Declare.
6211 (regno_reg_rtx): Declare.
6212 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
6214 (gen_reg_rtx): Update.
6215 * varasm.c (n_deferred_constatns): Update accestor.
6216 (init_varasm_status): Do not allocate varasm_status.
6217 (force_const_mem, get_pool_size, output_constant_pool): Update.
6218 * stmt.c (force_label_rtx): Do not use x_ prefixes.
6219 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
6220 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
6221 * sparc/sparc.h (INIT_EXPANDERS): Update.
6222 * ia64/ia64.h (INIT_EXPANDERS): Update.
6224 2008-04-07 James E. Wilson <wilson@tuliptree.org>
6226 * reload.c (push_secondary_reload): Add missing break to for loop.
6228 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
6230 PR middle-end/PR28690
6231 * rtlanal.c: Update copyright years.
6232 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
6233 as REG_POINTER and MEM_POINTER operands.
6234 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
6235 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
6236 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
6237 * gcse.c: Update copyright years.
6238 (pre_delete): Call gen_reg_rtx_and_attrs.
6239 (hoist_code): Likewise.
6240 (build_store_vectors): Likewise.
6241 (delete_store): Likewise.
6242 * loop-invariant.c (move_invariant_reg): Likewise.
6243 Update copyright years.
6245 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
6247 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
6248 control string instead of quoted.
6250 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
6252 * doc/rtl.texi: Rewrite of subreg section.
6254 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
6257 * config/i386/i386.c (legitimize_pic_address): Add treating
6258 of dllimport SYM_REF's.
6259 (legitimize_dllimport_symbol): Add prototype.
6261 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6263 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
6264 reference in constructor with non self-referential type.
6266 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6268 Removal of Return with Depressed Stack Pointer support
6269 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
6270 (ECF_SP_DEPRESSED): Likewise.
6271 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
6272 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
6273 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6274 (expand_call): Do not test ECF_SP_DEPRESSED.
6275 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6276 * function.c (keep_stack_depressed): Delete.
6277 (handle_epilogue_set): Likewise.
6278 (update_epilogue_consts): Likewise.
6279 (emit_equiv_load): Likewise.
6280 (thread_prologue_and_epilogue_insns): Remove support for Return with
6281 Depressed Stack Pointer.
6282 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6284 2008-04-06 Richard Guenther <rguenther@suse.de>
6286 PR tree-optimization/35400
6287 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
6288 information from SSA_NAMEs.
6290 2008-04-06 Anatoly Sokolov <aesok@post.ru>
6292 * config/avr/avr.h (avr_mega_p): Remove declaration.
6293 (AVR_MEGA): Remove macro.
6294 * config/avr/avr.c (avr_mega_p): Remove variable.
6295 (avr_override_options): Remove inicializion of avr_mega_p.
6296 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
6297 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
6298 (avr_jump_mode): (Ditto.).
6299 (avr_output_progmem_section_asm_op): (Ditto.).
6300 (avr_asm_init_sections): (Ditto.).
6301 (avr_asm_init_sections): (Ditto.).
6302 (avr_rtx_costs): (Ditto.).
6303 * config/avr/avr.md: (Ditto.).
6304 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
6307 2008-04-06 Richard Guenther <rguenther@suse.de>
6309 PR tree-optimization/35842
6310 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
6311 is_gimple_invariant_address.
6313 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6315 * gcc.c (default_compilers): Sync Fortran extensions list with
6316 that in fortran/lang-specs.h.
6317 * doc/invoke.texi: Likewise.
6318 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
6319 * dwarf2out.c (gen_compile_unit_die): Likewise.
6321 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
6323 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
6325 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
6328 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
6329 attribute is used for nested functions.
6331 2008-04-05 Jan Hubicka <jh@suse.cz>
6333 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
6335 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
6337 (dump_files): Update.
6338 (enable_rtl_dump_file): Do not accept letter argument.
6339 * tree-pass.h (dump_file_info): Remove letter argument.
6340 * toplev.c (decode_d_option): Update -da handling.
6341 * toplev.h (enable_rtl_dump_file): Update prototype.
6342 * passes.c (register_one_dump_file): Do not accept IPA argument; work
6343 it out based on pass type.
6344 (register_dump_files_1): Likewise.
6345 (init_optimization_passes): Update register_one_dump_file calls.
6346 (execute_one_pass): Sanity check that IPA passes are called at IPA
6347 level and RTL passes at RTL level.
6348 (execute_pass_list): IPA pass can not be after or subpass of
6350 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
6351 disallov RTL subpasses of IPA subpasses.
6353 2008-04-05 Ben Elliston <bje@au.ibm.com>
6355 * tree-cfg.c (need_fake_edge_p): Return false for calls to
6356 builtins that return exactly once and do not throw. Cache call to
6359 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
6361 PR rtl-optimization/34916
6363 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
6364 between instruction pairs.
6366 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
6368 * doc/invoke.texi: Document -mbitops for SH.
6369 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
6370 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
6371 * config/sh/sh.c (print_operand): Add %t operand code.
6372 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
6373 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
6374 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
6375 (extendqihi2): Likewise.
6376 (movqi_i): Likewise.
6377 (insv): Use bset, bclr and bst instructions for SH2A if possible.
6378 (extv): Use bld instruction for SH2A if possible.
6380 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
6381 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
6382 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
6383 (bset.b, bclr.b): Define peepholes.
6384 * config/sh/sh.opt (mbitops): New option.
6386 2008-04-04 Janis Johnson <janis187@us.ibm.com>
6389 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
6390 and view convert expression.
6392 2008-04-04 Jakub Jelinek <jakub@redhat.com>
6395 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
6397 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
6399 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
6401 * config/i386/cpuid.h (bit_AES): New.
6402 (bit_PCLMUL): Likewise.
6404 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
6405 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
6406 SSE2 if AES or PCLMUL is enabled.
6407 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
6408 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
6409 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
6410 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
6411 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
6412 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
6413 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
6414 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
6415 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
6416 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
6417 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
6418 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
6419 __builtin_ia32_aeskeygenassist128 and
6420 __builtin_ia32_pclmulqdq128.
6421 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
6422 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
6423 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
6425 * config/i386/i386.h (TARGET_AES): New.
6426 (TARGET_PCLMUL): Likewise.
6427 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
6429 * config/i386/i386.md (UNSPEC_AESENC): New.
6430 (UNSPEC_AESENCLAST): Likewise.
6431 (UNSPEC_AESDEC): Likewise.
6432 (UNSPEC_AESDECLAST): Likewise.
6433 (UNSPEC_AESIMC): Likewise.
6434 (UNSPEC_AESKEYGENASSIST): Likewise.
6435 (UNSPEC_PCLMUL): Likewise.
6437 * config/i386/i386.opt (maes): New.
6438 (mpclmul): Likewise.
6440 * config/i386/sse.md (aesenc): New pattern.
6441 (aesenclast): Likewise.
6443 (aesdeclast): Likewise.
6445 (aeskeygenassist): Likewise.
6446 (pclmulqdq): Likewise.
6448 * config/i386/wmmintrin.h: New.
6450 * doc/extend.texi: Document AES and PCLMUL built-in function.
6452 * doc/invoke.texi: Document -maes and -mpclmul.
6454 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
6456 * function.c (free_after_parsing): Replace with
6457 cxx_push_function_context from C++ front-end.
6458 (allocate_struct_function): Don't call langhook.
6459 * langhooks.h (struct lang_hooks_for_functions): Delete.
6460 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
6462 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
6463 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
6464 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
6465 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
6466 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
6467 remove LANG_HOOKS_FUNCTION_INITIALIZER.
6468 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
6470 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
6471 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
6473 2008-04-04 Jakub Jelinek <jakub@redhat.com>
6476 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
6479 2008-04-04 Richard Guenther <rguenther@suse.de>
6482 * fold-const.c (optimize_minmax_comparison): Use the correct
6483 type for the constant in the simplified comparison.
6485 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
6487 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
6488 Pass L2 size as "--param l2-cache-size" to the compiler.
6489 (decode_l2_cache): New function to decode L2 cache parameters using
6490 0x8000006 extended cpuid function.
6491 (detect_caches_amd): Determine parameters of L2 cache using
6492 decode_l2_caches function.
6493 (decode_caches_intel): Decode L2 cache parameters.
6494 (detect_caches_intel): Determine L2 cache parameters using
6495 decode_caches_intel and decode_l2_caches functions.
6497 2008-04-03 Bob Wilson <bob.wilson@acm.org>
6499 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
6500 secondary input reload for subword loads from the constant pool.
6502 2008-04-03 Janis Johnson <janis187@us.ibm.com>
6505 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
6506 constants of the appropriate size for runtime calculations.
6509 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
6510 decimal-float literal constant zero.
6512 2008-04-03 Jakub Jelinek <jakub@redhat.com>
6515 * c-parser.c (c_parser_omp_atomic): Call
6516 default_function_array_conversion on the RHS.
6519 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
6520 call is_variable_sized if decl has incomplete type.
6522 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
6524 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
6526 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
6528 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
6530 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
6531 (sgt<u>): Merge sgt and sgtu into new expander.
6532 (sgt, sgtu): Remove expanders.
6533 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
6534 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
6535 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
6536 *sgtu_<mode>_mips16 into new pattern.
6537 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
6538 (sge<u>): Merge sge and sgeu into new expander.
6539 (sge, sgeu): Remove expanders.
6540 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
6542 (*sge_<mode>, second *sge_<mode>): Remove patterns.
6543 (slt<u>): Merge slt and sltu into new expander.
6544 (slt, sltu): Remove expanders.
6545 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
6546 (*slt_<mode>, *sltu_<mode>): Remove patterns.
6547 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
6548 *sltu_<mode>_mips16 into new pattern.
6549 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
6550 (sle<u>): Merge sle and sleu into new expander.
6551 (sle, sleu): Remove expanders.
6552 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
6553 (*sle_<mode>, *sleu_<mode>): Remove patterns.
6554 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
6555 *sleu_<mode>_mips16 into new pattern.
6556 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
6558 2008-04-03 Jan Hubicka <jh@suse.cz>
6560 PR tree-optimization/35795
6561 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
6562 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6563 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6564 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
6565 * score/score3.c (score3_output_mi_thunk): Likewise.
6566 * score/score7.c (score7_output_mi_thunk): Likewise.
6567 * mips/mips.c (mips_output_mi_thunk): Likewise.
6569 2008-04-03 Richard Guenther <rguenther@suse.de>
6571 * tree-vrp.c (extract_range_from_unary_expr): Handle all
6572 conversions. Simplify code.
6574 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
6576 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
6578 2008-04-03 Tom Tromey <tromey@redhat.com>
6579 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6581 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
6582 * config/bfin/t-bfin-linux (generated_files): Add
6583 linux-sysroot-suffix.h.
6584 * doc/install.texi (Prerequisites): Require make 3.80.
6585 * doc/sourcebuild.texi (Front End Directory): Document new
6587 * Makefile.in (generated_files): New variable.
6588 (ALL_HOST_OBJS): New variable.
6589 ($(ALL_HOST_OBJS)): New target.
6591 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6593 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
6594 (remap_block): Call id->transform_lang_insert_block instead
6596 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
6597 Set id.transform_lang_insert_block to NULL.
6598 (clone_body): Move to cp/optimize.c
6599 * tree-inline.h (struct copy_body_data): Change
6600 transform_lang_insert_block to function pointer.
6601 (copy_generic_body, copy_decl_no_change): Export.
6602 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
6603 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
6604 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
6606 * c-tree.h (insert_block): Kill.
6607 * c-decl.c (insert_block): Kill.
6609 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6611 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6612 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
6613 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
6615 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
6616 argument, call {push,pop}_function_context from here.
6617 * c-parser.c: Use c_{push,pop}_function_context.
6619 * function.c (push_function_context_to): Move meat ...
6620 (push_function_context): ... here. Simplify.
6621 * function.c (pop_function_context_from): Move meat ...
6622 (pop_function_context): ... here. Simplify.
6623 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
6625 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6626 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
6627 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
6628 * tree.h (push_function_context_to, pop_function_context_from): Remove.
6630 2008-04-03 Ben Elliston <bje@au.ibm.com>
6632 * expmed.c (extract_force_align_mem_bit_field): Remove.
6634 2008-04-03 Richard Guenther <rguenther@suse.de>
6637 * expr.h (try_casesi): Adjust prototype.
6638 * expr.c (try_casesi): Take fallback label as extra parameter.
6639 Use that for gen_casesi if default_label is NULL.
6640 * stmt.c (expand_case): Pass fallback label to try_casesi,
6641 make sure to fill gaps with a fallback label if default_label
6644 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
6647 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
6649 2008-04-03 Ben Elliston <bje@au.ibm.com>
6651 * expmed.c (extract_split_bit_field): Remove if (0) code.
6652 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
6653 (do_ds_constraint): Likewise.
6655 2008-04-02 Joseph Myers <joseph@codesourcery.com>
6657 * doc/cppopts.texi (-dU): Document.
6658 * c-common.h (flag_dump_macros): Update comment.
6659 * c-opts.c (handle_OPT_d): Handle -dU.
6660 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
6661 dump_queued_macros, cb_used_define, cb_used_undef): New.
6662 (init_pp_output): Handle -dU.
6663 (cb_line_change): Call dump_queued_macros.
6664 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
6666 2008-04-02 Anatoly Sokolov <aesok@post.ru>
6668 * config/avr/predicates.md (io_address_operand): New predicate.
6669 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
6670 * config/avr/avr.c (avr_io_address_p): Remove function.
6671 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
6672 'avr_io_address_p' function.
6673 (out_movhi_r_mr): (Ditto.).
6674 (out_movqi_mr_r): (Ditto.).
6675 (out_movhi_mr_r): (Ditto.).
6676 (avr_address_cost): (Ditto.).
6678 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
6680 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
6681 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
6682 in 32bit mode when XMM registers are available to avoid store
6684 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
6685 corresponding post-reload splitters.
6687 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
6689 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
6690 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
6691 __builtin_ia32_roundss.
6692 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
6693 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
6694 __builtin_ia32_roundss.
6695 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
6696 IX86_BUILTIN_SHUFPD here.
6698 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
6700 * config/i386/i386.md (plogic): New.
6701 (plogicprefix): Likewise.
6703 * config/i386/mmx.md (mmx_<code><mode>3): New.
6704 (mmx_and<mode>3): Removed.
6705 (mmx_ior<mode>3): Likewise.
6706 (mmx_xor<mode>3): Likewise.
6708 * config/i386/sse.md (<code><mode>3): New.
6709 (*<code><mode>3): Likewise.
6710 (*<code><mode>3): Likewise.
6711 (<code><mode>3): Likewise.
6712 (*sse_<code><mode>3): Likewise.
6713 (*sse2_<code><mode>3): Likewise.
6714 (<code>tf3): Likewise.
6715 (*<code>tf3): Likewise.
6716 (and<mode>3): Likewise.
6717 (*and<mode>3): Likewise.
6718 (ior<mode>3): Removed.
6719 (*ior<mode>3): Likewise.
6720 (xor<mode>3): Likewise.
6721 (*xor<mode>3): Likewise.
6722 (*and<mode>3): Likewise.
6723 (*ior<mode>3): Likewise.
6724 (*xor<mode>3): Likewise.
6725 (and<mode>3): Likewise.
6726 (*sse_and<mode>3): Likewise.
6727 (*sse2_and<mode>3): Likewise.
6729 (*andtf3): Likewise.
6730 (ior<mode>3): Likewise.
6731 (*sse_ior<mode>3): Likewise.
6732 (*sse2_ior<mode>3): Likewise.
6734 (*iortf3): Likewise.
6735 (xor<mode>3): Likewise.
6736 (*sse_xor<mode>3): Likewise.
6737 (*sse2_xor<mode>3): Likewise.
6739 (*xortf3): Likewise.
6741 2008-04-02 Richard Guenther <rguenther@suse.de>
6743 PR tree-optimization/14495
6744 PR tree-optimization/34793
6745 * tree-vrp.c (struct switch_update): New structure.
6746 (to_remove_edges, to_update_switch_stmts): New VECs.
6747 (simplify_switch_using_ranges): New function. Remove not taken
6748 case labels and edges.
6749 (simplify_stmt_using_ranges): Call it.
6750 (identify_jump_threads): Mark edges we have queued for removal
6751 so we don't thread them.
6752 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
6754 * tree-cfg.c (group_case_labels): Deal with missing default label.
6755 (tree_verify_flow_info): Allow missing default label.
6756 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
6757 (emit_case_nodes): Likewise.
6758 (expand_case): Do not rely on the default label to be present.
6759 * expr.c (try_casesi): Deal with NULL default_label.
6760 (do_tablejump): Likewise.
6762 2008-04-02 Richard Guenther <rguenther@suse.de>
6764 PR tree-optimization/14495
6765 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
6766 SWITCH_EXPR here ...
6767 (vrp_visit_switch_stmt): ... but here (new function).
6768 (find_case_label_index): New helper function.
6769 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
6771 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6773 * fwprop.c: Fix ISO-C99ism.
6775 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6778 * Makefile.in (objdir): Set it here.
6779 * configure.ac: Not here. Find dynamic linker characteristics.
6780 * exec-tool.in: Use them.
6781 * aclocal.m4: Regenerate.
6782 * configure: Regenerate.
6784 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6786 * expr.c (expand_var): Delete it.
6787 * expr.h (expand_var): Delete prototype.
6788 * function.c (expand_function_start): Use expand_decl instead.
6789 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
6792 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
6794 PR rtl-optimization/35542
6795 * fwprop.c (forward_propagate_and_simplify): Replace
6796 loc_reg_mentioned_in_p with reg_mentioned_p.
6798 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6800 PR rtl-optimization/35281
6801 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
6802 (propagate_rtx_1): Handle PR_HANDLE_MEM.
6803 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
6804 (varying_mem_p): Move above propagate_rtx.
6805 (all_uses_available_at): Do not check MEMs.
6807 2008-04-02 Rafael Espindola <espindola@google.com>
6809 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
6810 (register_edge_assert_for_2): Split the cond argument.
6811 (register_edge_assert_for_1): Adjust for the change in
6812 register_edge_assert_for_2.
6813 (register_edge_assert_for): Split the cond argument.
6814 (find_switch_asserts): Adjust for the change in
6815 register_edge_assert_for.
6817 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
6819 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
6820 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
6821 offsets for 64-bit mingw.
6822 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
6823 abi for x86_64-pc-mingw.
6825 2008-04-02 Richard Guenther <rguenther@suse.de>
6827 * tree-vrp.c (extract_range_from_assert): Make sure to not
6828 produce range min/max with TREE_OVERFOW set.
6829 If merging a anti-range and a range keep the anti-range if
6830 the range covers all values of the type.
6831 (register_edge_assert_for_2): Only allow sign-changing
6832 conversions in detecting canonical range checks. Also
6833 register an assert for the unsigned name if useful.
6835 PR tree-optimization/35787
6836 * tree-vrp.c (vrp_val_max): New function.
6837 (vrp_val_min): Likewise.
6838 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
6839 (vrp_val_is_min): Likewise.
6840 (supports_overflow_infinity): Use vrp_val_{min,max}.
6841 (negative_overflow_infinity): Likewise.
6842 (positive_overflow_infinity): Likewise.
6843 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
6844 (is_positive_overflow_infinity): Likewise.
6845 (is_overflow_infinity): Likewise.
6846 (avoid_overflow_infinity): Use vrp_val_{min,max} and
6847 vrp_val_is_{min,max}.
6848 (set_and_canonicalize_value_range): Canonicalize anti-ranges
6849 to ranges if possible. Avoid empty ranges.
6851 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6854 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
6855 the expression is a function address.
6857 2008-04-01 George Helffrich <george@gcc.gnu.org>
6859 PR fortran/35154, fortran/23057
6860 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
6861 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
6862 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
6863 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
6865 (dbxout_syms): Check for COMMON-based symbol and wrap in
6866 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
6867 in bracket for efficiency.
6869 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
6870 using DW_TAG_common_block + member offset.
6871 (add_pubname_string): New function.
6872 (dw_expand_expr): New function to find block name and offset for
6874 (common_check): New function to check whether symbol in Fortran COMMON.
6875 (gen_variable_die): If COMMON, use DW_TAG_common_block.
6877 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
6880 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
6882 2008-04-02 Ben Elliston <bje@au.ibm.com>
6884 * config/v850/v850.md (casesi): Remove if (0) code.
6885 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6886 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6888 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
6890 * config/i386/i386.md (rex64suffix): New mode attribute.
6891 (floathi<mode>2): Disable expander for SSE math.
6892 (*floathi<mode>2_1): New insn insn_and_split pattern.
6893 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
6894 corresponding post-reload splitters.
6895 (*floathi<mode>2_i387): New macroized insn pattern.
6896 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
6897 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
6898 insn_and_split pattern.
6899 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
6900 New macroized instruction patterns and corresponding post-reload
6902 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
6903 and corresponding post-reload splitters.
6904 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
6905 New macroized instruction patterns.
6906 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
6907 macroized instruction patterns and corresponding post-reload splitters.
6908 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
6909 corresponding post-reload splitters.
6910 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
6911 New macroized instruction patterns.
6912 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
6913 corresponding post-reload splitters.
6914 (*floatsi<mode>2_i387): New macroized instruction patterns.
6916 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
6918 * config/i386/i386.md (smaxmin): New.
6919 (umaxmin): Likewise.
6920 (maxminiprefix): Likewise.
6921 (maxminfprefix): Likewise.
6922 (<code><mode>3): Likewise.
6923 (smin<mode>3): Removed.
6924 (smax<mode>3): Likewise.
6926 * config/i386/mmx.md (mmx_<code>v2sf3): New.
6927 (mmx_<code>v4hi3): Likewise.
6928 (mmx_<code>v8qi3): Likewise.
6929 (mmx_smaxv2sf3): Removed.
6930 (mmx_sminv2sf3): Likewise.
6931 (mmx_umaxv8qi3): Likewise.
6932 (mmx_smaxv4hi3): Likewise.
6933 (mmx_uminv8qi3): Likewise.
6934 (mmx_sminv4hi3): Likewise.
6936 * config/i386/sse.md (<addsub><mode>3): New.
6937 (*<addsub><mode>3): Likewise.
6938 (<sse>_vm<addsub><mode>3): Likewise.
6939 (<maxmin><mode>3): Likewise.
6940 (*<maxmin><mode>3_finite): Likewise.
6941 (*<maxmin><mode>3): Likewise.
6942 (<sse>_vm<maxmin><mode>3): Likewise.
6943 (sse3_h<addsub>v4sf3): Likewise.
6944 (sse3_h<addsub>v2df3): Likewise.
6945 (<maxmin>v16qi3): Likewise.
6946 (*<maxmin>v16qi3): Likewise.
6947 (<maxmin>v8hi3): Likewise.
6948 (*<maxmin>v8hi3): Likewise.
6949 (*sse4_1_<maxmin><mode>3): Likewise.
6950 (*sse4_1_<maxmin><mode>3): Likewise.
6951 (add<mode>3): Removed.
6952 (*add<mode>3): Likewise.
6953 (<sse>_vmadd<mode>3): Likewise.
6954 (sub<mode>3): Likewise.
6955 (*sub<mode>3): Likewise.
6956 (<sse>_vmsub<mode>3): Likewise.
6957 (smin<mode>3): Likewise.
6958 (*smin<mode>3_finite): Likewise.
6959 (*smin<mode>3): Likewise.
6960 (<sse>_vmsmin<mode>3): Likewise.
6961 (smax<mode>3): Likewise.
6962 (*smax<mode>3_finite): Likewise.
6963 (*smax<mode>3): Likewise.
6964 (<sse>_vmsmax<mode>3): Likewise.
6965 (sse3_haddv4sf3): Likewise.
6966 (sse3_haddv2df3): Likewise.
6967 (sse3_hsubv4sf3): Likewise.
6968 (sse3_hsubv2df3): Likewise.
6969 (umaxv16qi3): Likewise.
6970 (*umaxv16qi3): Likewise.
6971 (smaxv8hi3): Likewise.
6972 (*smaxv8hi3): Likewise.
6973 (*sse4_1_smax<mode>3): Likewise.
6974 (*sse4_1_umax<mode>3): Likewise.
6975 (uminv16qi3): Likewise.
6976 (*uminv16qi3): Likewise.
6977 (sminv8hi3): Likewise.
6978 (*sminv8hi3): Likewise.
6979 (*sse4_1_smin<mode>3): Likewise.
6980 (*sse4_1_umin<mode>3): Likewise.
6982 2008-04-01 Rafael Espindola <espindola@google.com>
6984 * tree-cfg.c (verify_expr): remove in_phi.
6985 (verify_stmt): Don't call walk_tree with verify_expr. Use
6986 is_gimple_min_invariant instead of is_gimple_val.
6988 2008-04-01 Joseph Myers <joseph@codesourcery.com>
6990 * doc/include/gpl_v3.texi: Update for manpage generation.
6991 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
6993 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
6994 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
6995 gpl_v3.texi instead of gpl.texi.
6998 2008-04-01 Jakub Jelinek <jakub@redhat.com>
7001 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
7003 2008-04-01 Rafael Espindola <espindola@google.com>
7005 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
7006 (extract_code_and_val_from_cond): Use
7007 extract_code_and_val_from_cond_with_ops.
7009 2008-04-01 Jan Hubicka <jh@suse.cz>
7011 * function.c (free_after_compilation): Free epilogue_delay_list.
7012 (prepare_function_start): Assert that previous compilation was freed.
7014 2008-04-01 Jan Hubicka <jh@suse.cz>
7015 Jim Wilson <wilson@tuliptree.org>
7016 Andreas Tobler <andreast@gcc.gnu.org>
7019 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
7020 rtl.emit instead cfun->emit.
7021 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
7022 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
7024 2008-04-01 Ben Elliston <bje@au.ibm.com>
7026 * doc/c-tree.texi (Function Basics): Fix grammatical error.
7028 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
7030 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
7032 (fprofile-use): Add var flag_profile_use
7033 * coverage.c (coverage_begin_output): Do not open a gcno file for
7034 output only if -ftest-coverage is set.
7035 Do not add getpwd() to gcda file path.
7036 (build_gcov_info): Check the new flag
7037 flag_profile_datafile_relative_path.
7038 (coverage_init): Use profile_data_prefix.
7039 Read profile counter only if flag_profile_use is set.
7040 * opts.c (common_handle_option): New option fprofile-use=,
7041 fprofile-dir=, fprofile-generate=.
7042 * toplev.c (profile_data_prefix): New variable definition.
7043 * toplev.h (profile_data_prefix): New declaration.
7044 * doc/invoke.tex (Option Summary, Optimization Options):
7047 2008-03-31 James E. Wilson <wilson@tuliptree.org>
7049 * varasm.c (output_constant_pool_1): In LABEL_REF check,
7050 use tmp consistently.
7053 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
7054 * config/ia64/ia64.c (rtx_needs_barrier): Handle
7055 UNSPEC_FR_RECIP_APPROX_RES.
7056 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
7058 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
7061 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
7063 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
7066 * fold-const.c (fold_indirect_ref_1): Support accessing non first
7067 element of the vector via a pointer.
7069 2008-03-31 Ian Lance Taylor <iant@google.com>
7071 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
7073 2008-03-31 Jan Hubicka <jh@suse.cz>
7075 * builtins.c (expand_builtin_setjmp_receiver): Update call of
7076 get_arg_pointer_save_area.
7077 * expr.c (init_expr): Just clear out rtl.expr.
7078 * function.c (free_after_compilation): Clear out whole RTL structure.
7079 (get_func_frame_size): Merge into ...
7080 (get_frame_size): ... this one.
7081 (assign_stack_local_1): Merge into ...
7082 (assign_stack_local): ... this one.
7083 (expand_function_end): Update call of get_arg_pointer_save_area.
7084 (get_art_pointer_save_area): Remove cfun argument.
7085 * function.h (emit_status): regno_pointer_align does not need length
7086 attribute. Move x_regno_reg_rtx to ...
7087 (regno_reg_rtx): ... new global array.
7088 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
7089 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
7090 apply_args_value, forced_labels, stack_pointer_delta):
7092 (struct varasm_status): Move here from varasm.c
7093 (struct rtl_data): New. Move here some fields from struct function.
7094 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
7095 frame_offset, stack_check_probe_note, arg_pointer_save_area,
7096 used_temp_slots avail_temp_slots, temp_slot_level,
7097 nonlocal_goto_handler_labels): Update accesstors.
7098 (rtl): New global variable.
7099 (struct function): Move some fileds to rtl_data.
7100 (get_arg_pointer_save_area): Update prototype.
7101 * emit-rtl.c (rtl): Declare.
7102 (regno_reg_rtx): Declare.
7103 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
7105 (gen_reg_rtx): Update.
7106 (init_virtual_regs): Do not tate emit_status argument.
7107 (init_emit): Do not allocate emit.
7108 * varasm.c (varasm_statuc): Move to function.h.
7109 (n_deferred_constatns): Update accestor.
7110 (init_varasm_status): Do not allocate varasm_status.
7111 (force_const_mem, get_pool_size, output_constant_pool): Update.
7112 * stmt.c (force_label_rtx): Do not use x_ prefixes.
7113 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
7115 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
7117 PR rtl-optimization/35729
7118 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
7121 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
7124 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
7125 load/store if memory is unaligned.
7126 (*movti_rex64): Likewise.
7128 * config/i386/predicates.md (misaligned_operand): New.
7130 2008-03-31 Andrew Pinski <pinskia@gmail.com>
7133 * tree-ssa-phiopt.c (conditional_replacement): Return early for
7136 2008-03-31 Jan Beulich <jbeulich@novell.com>
7138 * config/ia64/constraints.md: Add 'j' constraint.
7139 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
7140 (movdi_internal): Likewise.
7142 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
7145 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
7147 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
7150 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
7151 proper error message for the third argument on blendpd and
7154 * config/i386/sse.md (blendbits): New.
7155 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
7157 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
7159 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
7161 2008-03-30 Richard Guenther <rguenther@suse.de>
7164 * fold-const.c (fold_sign_changed_comparison): Do leave
7165 conversions to base-types alone.
7167 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
7169 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
7170 the link register if one altivec register is be saved.
7172 2008-03-30 Ben Elliston <bje@au.ibm.com>
7174 * final.c (final_scan_insn): Remove if (0) code.
7176 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
7178 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
7180 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
7182 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
7183 of V4SFmode to ix86_binary_operator_ok.
7185 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
7187 * config/i386/i386.c (override_options): Initialize
7188 ix86_veclib_handler to ix86_veclibabi_svml when
7189 -mveclibabi=svml is used.
7190 (ix86_veclibabi_svml): New function for SVML ABI style
7191 vectorization support.
7192 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
7194 2008-03-28 Rafael Espindola <espindola@google.com>
7196 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
7197 (tree_binary_nonnegative_warnv_p): Make it public.
7198 (tree_single_nonnegative_warnv_p): Make it public.
7199 (tree_invalid_nonnegative_warnv_p): Make it public.
7200 (tree_unary_nonzero_warnv_p): Make it public.
7201 (tree_binary_nonzero_warnv_p): Make it public
7202 (tree_single_nonzero_warnv_p): Make it public.
7203 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
7204 (extract_range_from_binary_expr): Split the expr argument.
7205 (extract_range_from_unary_expr): Split the expr argument.
7206 (extract_range_from_comparison): Split the expr argument.
7207 (extract_range_from_expr): Use the new aux functions.
7208 (vrp_evaluate_conditional_warnv): Use
7209 vrp_evaluate_conditional_warnv_with_ops.
7210 * tree.h (tree_unary_nonzero_warnv_p): Declare.
7211 (tree_binary_nonzero_warnv_p): Declare.
7212 (tree_single_nonzero_warnv_p): Declare.
7213 (tree_expr_nonzero_warnv_p): Declare.
7214 (tree_unary_nonnegative_warnv_p): Declare.
7215 (tree_binary_nonnegative_warnv_p): Declare.
7216 (tree_single_nonnegative_warnv_p): Declare.
7217 (tree_invalid_nonnegative_warnv_p): Declare.
7219 2008-03-28 Richard Guenther <rguenther@suse.de>
7221 PR tree-optimization/30317
7222 PR tree-optimization/30911
7223 PR tree-optimization/34793
7224 * tree-vrp.c (set_and_canonicalize_value_range): New function.
7225 (struct assert_locus_d): New member EXPR.
7226 (register_new_assert_for): Add EXPR parameter to support
7227 ASSERT_EXPR <name, expr OP limit>.
7228 (register_edge_assert_for_1): Adjust callers.
7229 (find_assert_locations): Likewise.
7230 (process_assert_insertions_for): Build condition from expression.
7231 (extract_range_from_assert): Handle ASSERT_EXPRs
7232 of the form ASSERT_EXPR <name, expr OP limit>.
7233 (register_edge_assert_for_2): New helper registering
7234 asserts for comparisons. Recognize range tests of the form
7235 (unsigned)i - CST1 OP CST2.
7236 (register_edge_assert_for_1): Use it.
7237 (register_edge_assert_for): Likewise.
7238 (needs_overflow_infinity): Integer sub-types
7239 do not need overflow infinities.
7240 (vrp_val_is_max): The extreme values of integer sub-types
7241 are those of the base type.
7242 (vrp_val_is_min): Likewise.
7243 * tree.def (ASSERT_EXPR): Document extra allowed conditional
7246 2008-03-28 Nick Clifton <nickc@redhat.com>
7249 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
7250 Return GENERAL_REGS for stack adjustment reloads.
7252 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
7255 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
7256 const_vector when all the vectors are constant.
7258 2008-03-27 Bob Wilson <bob.wilson@acm.org>
7260 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
7262 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
7263 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
7265 (s<code>_sf): Use new scc_sf attribute for opcode names.
7267 2008-03-27 Tom Tromey <tromey@redhat.com>
7269 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
7270 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
7271 config/spu/t-spu-elf, config/i386/t-interix,
7272 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
7273 config/i386/x-darwin, config/i386/x-mingw32,
7274 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
7275 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
7276 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
7277 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
7278 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
7279 config/rs6000/x-darwin, config/rs6000/t-rs6000,
7280 config/score/t-score-elf, config/arm/t-strongarm-pe,
7281 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
7282 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
7283 Revert automatic dependency patch.
7285 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
7288 * config/i386/i386.c (ix86_function_arg_boundary): Align
7289 decimal floating point to its natural boundary.
7291 2008-03-27 Richard Guenther <rguenther@suse.de>
7294 * fold-const.c (fold_comparison): Restrict distinct decl
7295 comparison folding to VAR_DECLs and PARM_DECLs. Do not
7296 solely rely on operand_equal_p.
7298 2008-03-27 Richard Guenther <rguenther@suse.de>
7301 * c-common.c (handle_weak_attribute): Reject combination of
7304 2008-03-27 Richard Guenther <rguenther@suse.de>
7306 PR tree-optimization/32810
7307 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
7308 conversions from DECL_INITIAL.
7309 (fold_const_aggregate_ref): Likewise from constructor elements.
7311 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
7313 * tree-affine.h (aff_combination_expand): Declare.
7314 (get_inner_reference_aff): Likewise.
7315 * tree-affine.c (aff_combination_expand): Split out from
7316 tree_to_aff_combination_expand.
7317 (get_inner_reference_aff): New function.
7318 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
7319 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
7320 (struct lim_aux_data): sm_done field removed.
7321 (mem_ref_loc_p, mem_ref_locs_p): New types.
7322 (struct mem_ref): Added id, stored, accesses_in_loop,
7323 indep_loop, dep_loop, indep_ref, dep_ref fields.
7324 Removed is_stored, locs and next fields.
7325 (memory_accesses): New variable.
7326 (movement_possibility): Do not allow moving statements
7327 that store to memory.
7328 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
7330 (determine_max_movement): For statements with memory references,
7331 find the outermost loop in that the reference is independent.
7332 (move_computations_stmt): Mark the virtual operands for renaming.
7333 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
7334 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
7335 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
7336 add_vop_ref_mapping, create_vop_ref_mapping_loop,
7337 create_vop_ref_mapping, analyze_memory_references,
7338 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
7339 get_all_locs_in_loop, ref_always_accessed_p,
7340 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
7341 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
7342 store_motion_loop, store_motion): New functions.
7343 (struct vop_to_refs_elt): New type.
7344 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
7345 memref_hash, memref_eq, hoist_memory_references): Rewritten.
7346 (schedule_sm): Replaced by...
7347 (execute_sm): ... this.
7348 (determine_lsm_ref, hoist_memory_references,
7349 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
7350 find_more_ref_vops, free_mem_ref, free_mem_refs,
7351 determine_lsm_loop, determine_lsm): Removed.
7352 (tree_ssa_lim_finalize): Free data structures used by store motion.
7353 (tree_ssa_lim): Call analyze_memory_references. Use
7354 store_motion instead of determine_lsm.
7356 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
7358 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
7359 rename tmake_file to m68hc11/t-m68hc11.
7360 (mcore): Set inhibit_libc to true.
7361 * config.host (alpha*-dec-*vms*): Set extra_programs.
7362 (interix3*): Don't use host_xmake_file.
7363 * configure.ac: Let config.gcc override inhibit_libc.
7364 * configure: Regenerate.
7366 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
7367 * config/t-openbsd-thread: Remove commented out lines.
7369 * config/x-interix: Remove.
7371 * config/m68hc11/t-m68hc11-gas: Rename to...
7372 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
7374 * config/mcore/t-mcore: Remove T_CFLAGS.
7375 * config/mcore/t-mcore-pe: Likewise.
7377 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
7379 * configure.ac: Replace custom __GNU_SOURCE test with
7380 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
7381 * aclocal.m4: Regenerate.
7382 * configure: Regenerate.
7383 * config.in: Regenerate.
7385 2008-03-27 Richard Guenther <rguenther@suse.de>
7387 * fold-const.c (target.h): Include.
7388 (fold_comparison): Fold comparison of addresses of decls
7389 that bind locally or of constants. Consolidate address folding code.
7390 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
7391 results from fold_binary_to_constant.
7392 (compare_values_warnv): Likewise.
7394 2008-03-27 Andrew Pinski <pinskia@gmail.com>
7397 * fold-const.c (fold_truthop): Check for integeral types when folding
7398 a == 0 && b == 0 and a != 0 || b != 0 .
7400 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
7402 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
7404 2008-03-26 Andreas Schwab <schwab@suse.de>
7406 * doc/invoke.texi: Fix use of @item vs. @itemx.
7408 2008-03-26 Tom Tromey <tromey@redhat.com>
7410 * Makefile.in (build/gensupport.o, build/print-rtl.o,
7411 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
7412 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
7413 build/gencodes.o, build/genconditions.o, build/genconfig.o,
7414 build/genconstants.o, build/genemit.o, build/genextract.o,
7415 build/genflags.o, build/genmddeps.o, build/genopinit.o,
7416 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
7419 2008-03-26 Richard Guenther <rguenther@suse.de>
7422 2008-03-26 Richard Guenther <rguenther@suse.de>
7424 * fold-const.c (target.h): Include.
7425 (fold_comparison): Fold comparison of addresses of two decls
7426 that bind locally. Consolidate address folding code.
7428 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7430 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
7431 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
7432 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
7433 dconstsqrt2, dconstthird, dconste and/or dconst10.
7434 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
7435 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
7436 dconstsqrt2, dconste): Delete.
7437 (init_emit_once): Likewise. Simplify initializing dconstm1.
7439 * real.c (get_real_const): New.
7440 * real.h (dconst3, dconst10, dconstm2, dconstthird,
7441 dconstsqrt2, dconste): Delete.
7442 (real_value_const, get_real_const): New.
7444 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
7446 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
7448 * config/i386/i386.c (ix86_function_arg_boundary): Check
7449 BIGGEST_ALIGNMENT instead of 128.
7450 (setup_incoming_varargs_64): Likewise.
7452 2008-03-26 Tom Tromey <tromey@redhat.com>
7454 * Makefile.in (DEPFILES): Add missing '/'.
7456 2008-03-26 Richard Guenther <rguenther@suse.de>
7458 * fold-const.c (target.h): Include.
7459 (fold_comparison): Fold comparison of addresses of two decls
7460 that bind locally. Consolidate address folding code.
7462 2008-03-26 Nick Clifton <nickc@redhat.com>
7465 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
7466 not allow INT+INT as a legitimate addressing mode.
7468 2008-03-26 Richard Guenther <rguenther@suse.de>
7470 * tree-flow.h (widen_bitfield): Remove declaration.
7471 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
7472 (widen_bitfield): Remove function.
7473 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
7476 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
7479 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
7482 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
7484 PR rtl-optimization/35232
7485 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
7486 (forget_old_reloads_1, forget_marked_reloads): Don't clear
7487 reg_reloaded_call_part_clobbered here.
7488 (reload_regs_reach_end_p): New function.
7489 (reload_reg_rtx_for_input): New variable.
7490 (reload_reg_rtx_for_output): Likewise.
7491 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
7492 when reassigning a pseudo register. Load reloadreg from
7493 reload_reg_rtx_for_input, moving the mode and register
7495 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
7496 instead of the original when deciding whether an input reload
7497 would be a no-op or whether an output reload can be deleted.
7498 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
7499 when setting up new_spill_reg_store. Load it from
7500 reload_reg_rtx_for_output, moving the mode and register
7502 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
7503 instead of the original when deciding whether an output reload
7504 would be a no-op. Do the same when modifying insn notes.
7505 Use rtx_equal_p instead of == to compare the registers.
7506 (inherit_piecemeal_p): Take a mode and two register numbers
7508 (emit_reload_insns): Clear new_spill_reg_store for every hard
7509 register in the reload register. Remove spill registers
7510 from reg_reloaded_valid before considering whether to record
7511 inheritance information for them. Use reload_reg_rtx_for_output
7512 instead of reg_rtx when recording output reloads. Use
7513 reload_reg_rtx_for_input instead of reg_rtx when recording
7514 input reloads. Set or clear reg_reloaded_call_part_clobbered
7515 at the same time as setting reg_reloaded_valid.
7516 (delete_output_reload): Add a new_reload_reg parameter and use it
7517 instead of rld[j].reg_rtx.
7518 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
7521 2008-03-25 Tom Tromey <tromey@redhat.com>
7523 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
7524 (build/genattr.o): Likewise.
7525 (build/genattrtab.o): Likewise.
7526 (build/gencodes.o): Likewise.
7527 (build/genconfig.o): Likewise.
7528 (build/genconstants.o): Likewise.
7529 (build/genemit.o): Likewise.
7530 (build/genextract.o): Likewise.
7531 (build/genflags.o): Likewise.
7533 2008-03-25 Bob Wilson <bob.wilson@acm.org>
7535 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
7536 instead of size_int for integer types.
7537 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
7538 to match type of MINUS_EXPR.
7540 2008-03-25 Tom Tromey <tromey@redhat.com>
7542 * configure: Rebuilt.
7543 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
7546 2008-03-25 Tom Tromey <tromey@redhat.com>
7548 * config/x-solaris (host-solaris.o): Update.
7549 * config/x-linux (host-linux.o): Update.
7550 * config/x-hpux (host-hpux.o): Update.
7551 * config/x-darwin (host-darwin.o): Update.
7552 * config/v850/t-v850e (v850-c.o): Update.
7553 * config/v850/t-v850 (v850-c.o): Update.
7554 * config/t-vxworks (vxworks.o): Update.
7555 * config/t-sol2 (sol2-c.o, sol2.o): Update.
7556 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
7557 * config/spu/t-spu-elf (spu-c.o): Update.
7559 * config/sh/t-symbian (sh-c.o): Update.
7560 (symbian.o): Update.
7561 * config/sh/t-sh (sh-c.o): Update.
7562 * config/score/t-score-elf (score7.o, score3.o): Update.
7563 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
7564 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
7565 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
7566 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
7568 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
7569 * config/m32c/t-m32c (m32c-pragma.o): Update.
7570 * config/ia64/t-ia64 (ia64-c.o): Update.
7571 * config/i386/x-mingw32 (host-mingw32.o): Update.
7572 * config/i386/x-i386 (driver-i386.o): Update.
7573 * config/i386/x-darwin (host-i386-darwin.o): Update.
7574 * config/i386/x-cygwin (host-cygwin.o): Update.
7575 * config/i386/t-nwld (nwld.o): Update.
7576 * config/i386/t-netware (netware.o): Update.
7577 * config/i386/t-interix (winnt.o): Update.
7578 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
7579 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
7580 msformat-c.o): Update.
7581 * config/bfin/t-bfin-linux (generated_files): Add
7582 linux-sysroot-suffix.h.
7583 * config/arm/t-wince-pe (pe.o): Update.
7584 * config/arm/t-strongarm-pe (pe.o): Update.
7585 * config/arm/t-pe (pe.o): Update.
7586 * config/arm/t-arm (arm-c.o): Update.
7587 * doc/install.texi (Prerequisites): Require make 3.80.
7588 * Makefile.in: Remove .o targets.
7589 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
7590 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
7591 (simple_generated_h, simple_generated_c): Move earlier.
7592 (generated_files): New variable.
7593 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
7594 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
7595 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
7596 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
7597 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
7598 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
7599 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
7600 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
7601 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
7602 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
7603 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
7604 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
7606 (COMPILE.base, COMPILE): New variables.
7607 (%.o): New pattern rule.
7608 (ALL_HOST_OBJS): New variable.
7609 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
7610 (dummy-checksum.o, cc1-checksum.o): Remove.
7611 (DRIVER_SHLIB): New variable.
7612 (DRIVER_DEFINES): Use it.
7613 (gencondmd.c): Move out of build/.
7614 (s-conditions): Update.
7615 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
7616 (ALL_BUILD_OBJS): Likewise.
7617 (build/%.o): Use BUILDCOMPILE.
7618 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
7619 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
7620 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
7621 build/gencheck.o, build/gencodes.o, build/genconditions.o,
7622 build/genconfig.o, build/genconstants.o, build/genemit.o,
7623 build/genextract.o, build/genflags.o, build/genmddeps.o,
7624 build/genopinit.o, build/genoutput.o, build/genpeep.o,
7625 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
7626 build/gen-protos.o, build/scan.o, build/fix-header.o,
7627 build/scan-decls.o): Simplify.
7628 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
7629 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
7630 prefix.o, toplev.o): Reduce to variable setting.
7631 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
7632 ($(out_object_file), gcc-options.o): New targets.
7633 ($(ALL_HOST_OBJS)): New target. Include dependency files.
7634 * configure: Rebuilt.
7635 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
7636 * doc/sourcebuild.texi (Front End Directory): Document new variable.
7638 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
7640 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
7641 complain when we hit an error, return ERROR_MARK_NODE.
7643 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7645 * config/sh/constraints.md (Pso, Psz): New constraints.
7646 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
7647 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
7649 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7651 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
7652 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
7654 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7656 * config/sh/sh.md (prefetch): Add condition for SH2A target.
7657 (prefetch_sh2a): New.
7659 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
7660 Naveen.H.S <naveen.hs@kpitcummins.com>
7662 * config/sh/constraints.md (I28): New constraint.
7663 * config/sh/sh.c (broken_move): Add support for movi20s.
7664 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
7666 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
7667 Jayant Sonar <Jayant.sonar@kpitcummins.com>
7668 Naveen.H.S <naveen.hs@kpitcummins.com>
7670 * config/sh/sh.c (SH_ATTRIBUTES): Define.
7671 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
7672 (print_operand): Handle resbank in %@ operand code.
7673 (sh_encode_section_info): New.
7674 (push_regs): Add conditions for resbank.
7675 (sh_expand_epilogue): Likewise.
7676 (sh_insert_attributes): Likewise.
7677 (sh_attribute_table): Likewise.
7678 (sh_handle_resbank_handler_attribute): New.
7679 (sh2a_handle_function_vector_handler_attribute): New.
7680 (sh2a_is_function_vector_call): New.
7681 (sh2a_get_function_vector_number): New.
7682 (sh2a_function_vector_p): New.
7683 (sh_cfun_resbank_handler_p): New.
7684 * config/sh/sh.md (calli): Emit jsr/n if possible.
7685 (calli_tbr_rel): New.
7686 (calli_pcrel): Emit jsr/n if possible.
7687 (return_i): Emit rts/n if possible.
7688 (call_valuei_tbr_rel): New.
7689 (call_valuei_pcrel): Add condition for SH2A target.
7690 (call_value): Likewise.
7691 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
7692 (sh2a_get_function_vector_number): Likewise.
7693 (sh2a_is_function_vector_call): Likewise.
7694 * doc/extend.texi: Document TBR relative addressing of SH2A.
7695 (resbank): Add description for SH2A.
7697 2008-03-24 Richard Guenther <rguenther@suse.de>
7700 * gimplify.c (gimplify_modify_expr): For frontend type-correct
7701 pointer assignments change conversions according to middle-end rules.
7702 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
7703 * configure.ac: Include type checking in yes.
7704 * configure: Regenerate.
7706 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7708 * diagnostic.c (diagnostic_count_diagnostic): Delete.
7709 (diagnostic_report_diagnostic): Update. Handle ICEs here.
7711 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
7713 * gthr-vxworks.h (UNUSED): Define.
7715 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
7717 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
7719 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
7721 * doc/extend.texi (Function Attributes): Add missing comma in the
7722 example of the "alloc_size" attribute.
7724 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
7727 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
7729 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7732 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
7735 * stor-layout.c (update_alignment_for_field): Set minimum alignment
7736 of the underlying type of a MS bitfield layout to the natural
7737 alignment of the type.
7739 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
7741 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7742 to their natural alignment to avoid store forwarding stalls.
7744 2008-03-22 Richard Guenther <rguenther@suse.de>
7746 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
7747 For PHI nodes verify the address is invariant.
7748 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
7749 (get_symbol_constant_value): Use is_gimple_min_invariant.
7750 (maybe_fold_stmt_indirect): Likewise.
7752 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
7754 PR rtl-optimization/33927
7755 * Makefile.in (dse.o): Depend on $(TM_P_H).
7756 * expr.h (extract_low_bits): Declare.
7757 * expmed.c (extract_low_bits): New function.
7758 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
7759 * dse.c: Include tm_p.h.
7760 (find_shift_sequence): Remove the read_reg argument and return the
7761 read value. Emit the instructions instead of returning them.
7762 Iterate on new_mode rather than calculating it each time.
7763 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
7764 source to NEW_MODE and extract_low_bits to convert the shifted
7766 (replace_read): Allow the load and store to have different mode
7767 classes. Use extract_low_bits when SHIFT == 0. Create the shift
7768 or extraction instructions before trying the replacement. Update
7769 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
7771 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
7773 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7774 to their natural alignment to avoid store forwarding stalls.
7776 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
7779 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
7780 encouraging but not allowing gprs for input;
7781 change the input constraint to !f#r.
7782 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
7784 change the output constraint to !f#r.
7786 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
7789 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
7790 corresponding post-reload splitters.
7791 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
7792 when x87 FP math is selected.
7793 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
7794 New function prototype.
7795 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
7796 unreachable function to ease macroization of insn patterns.
7798 2008-03-21 Martin Jambor <mjambor@suse.cz>
7800 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
7801 reference dumps if ddr is NULL or dependence is unknown.
7803 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
7805 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
7806 unsigned extension into account.
7807 (ATOMIC_COMPARE_AND_SWAP): Likewise.
7808 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
7809 Do computations on a scratch register.
7811 2008-03-21 Richard Guenther <rguenther@suse.de>
7813 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7814 Use is_gimple_min_invariant instead of TREE_INVARIANT.
7815 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7816 * tree-ssa-dom.c (record_equality): Likewise.
7817 * tree-inline.c (copy_body_r): Likewise.
7818 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
7821 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
7823 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
7824 as 'delete_unused' argument.
7826 2008-03-20 Richard Guenther <rguenther@suse.de>
7828 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
7829 special casing of constant qualifiers.
7830 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
7831 care about them in general.
7832 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
7833 regardless of their type.
7834 (fold_stmt_r): Forcefully fold *& if we end up with that.
7836 2008-03-20 Paul Brook <paul@codesourcery.com>
7838 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
7839 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
7841 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
7843 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
7844 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
7846 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
7848 * common.opt (Wmudflap): New option.
7849 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
7850 (mx_register_decls): Likewise.
7851 (mudflap_finish_file): Likewise.
7852 * doc/invoke.texi: Document -Wno-mudflap.
7854 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
7856 * c-format.c (replace_format_name_to_system_name): New.
7858 (convert_format_name_to_system_name): New.
7859 (decode_format_attr): Add use of convert_format_name_to_system_name.
7860 (format_types_orig): Add gnu_ prefix to names.
7861 (check_format_info_main): Special treating of \0 escaped names for
7862 supporting multi-character format specifiers as I32, I64.
7863 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
7864 (gnu_target_overrides_format_attributes): New.
7865 * c-format.h: Add structure target_ovr_attr to hold
7866 system specific formatter names.
7867 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
7868 msformat-c.o file to c_target_objs and cxx_target_objs.
7869 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7870 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
7871 (TARGET_N_FORMAT_TYPES): New.
7872 * config/i386/msformat-c.c: New.
7873 * config/i386/t-cygming: Add build rule for msformat-c.o.
7874 * doc/extend.texi: Add new format names gnu_* and ms_* and
7876 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7878 2008-03-20 Ira Rosen <irar@il.ibm.com>
7880 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
7881 optimizations turned on under -O3.
7882 (ftree-vectorize): Add that the flag is turned on with -O3.
7884 2008-03-20 Ben Elliston <bje@au.ibm.com>
7886 * regmove.c (try_auto_increment): Fix spelling error in comment.
7887 * final.c (final_scan_insn): Likewise.
7889 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
7892 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
7893 allocator preferences for "y" and "r" class registers.
7894 ("*mov<mode>_internal"): Ditto.
7895 ("*movv2sf_internal_rex64"): Ditto.
7896 ("*movv2sf_internal"): Ditto.
7898 2008-03-19 Michael Matz <matz@suse.de>
7901 * calls.c (expand_call): Check overlap of arguments with call
7902 address for sibcalls.
7904 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
7907 * stor-layout.c (update_alignment_for_field): Set minimum alignment
7908 of the underlying type of a MS bitfield layout to the natural
7909 alignment of the type.
7911 2008-03-19 Jan Hubicka <jh@suse.cz>
7914 * toplev.c (decode_d_option): Handle all CPP flags.
7915 * tree-vrp.c: Update tree_pass descriptors.
7916 * regrename.c: Update tree_pass descriptors.
7917 * fwprop.c: Update tree_pass descriptors.
7918 * doc/invoke.texi: Remove documentation of dropped -d? flags.
7919 * tree-into-ssa.c: Update tree_pass descriptors.
7920 * tree-dump.c: Update tree_pass descriptors.
7921 * tree-complex.c: Update tree_pass descriptors.
7922 * tree-dump.h: Update tree_pass descriptors.
7923 * see.c: Update tree_pass descriptors.
7924 * cgraphbuild.c: Update tree_pass descriptors.
7925 * tracer.c: Update tree_pass descriptors.
7926 * tree-loop-distribution.c: Update tree_pass descriptors.
7927 * cgraph.c: Update tree_pass descriptors.
7928 * postreload-gcse.c: Update tree_pass descriptors.
7929 * postreload.c: Update tree_pass descriptors.
7930 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
7931 * tree-tailcall.c: Update tree_pass descriptors.
7932 * tree-pass.h (tree_opt_pass): Rename to ...
7933 (opt_pass) ... this one; add "type" field and remove letter field.
7934 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
7935 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
7936 all_lowering_passes): Update declaration.
7937 * ipa-cp.c: Update tree_pass descriptors.
7938 * final.c: Update tree_pass descriptors.
7939 * omp-low.c: Update tree_pass descriptors.
7940 * tree-ssa-dse.c: Update tree_pass descriptors.
7941 * ipa-reference.c: Update tree_pass descriptors.
7942 * tree-ssa-uncprop.c: Update tree_pass descriptors.
7943 * auto-inc-dec.c: Update tree_pass descriptors.
7944 * reorg.c: Update tree_pass descriptors.
7945 * cgraphunit.c: Update tree_pass descriptors.
7946 * tree-ssa-copyrename.c: Update tree_pass descriptors.
7947 * tree-ssa-ccp.c: Update tree_pass descriptors.
7948 * df-core.c: Update tree_pass descriptors.
7949 * mode-switching.c: Update tree_pass descriptors.
7950 * tree-nomudflap.c: Update tree_pass descriptors.
7951 * modulo-sched.c: Update tree_pass descriptors.
7952 * ipa-pure-const.c: Update tree_pass descriptors.
7953 * cse.c: Update tree_pass descriptors.
7954 * web.c: Update tree_pass descriptors.
7955 * tree-stdarg.c: Update tree_pass descriptors.
7956 * tree-ssa-math-opts.c: Update tree_pass descriptors.
7957 * tree-ssa-dom.c: Update tree_pass descriptors.
7958 * tree-nrv.c: Update tree_pass descriptors.
7959 * tree-ssa-alias.c: Update tree_pass descriptors.
7960 * loop-init.c: Update tree_pass descriptors.
7961 * gimple-low.c: Update tree_pass descriptors.
7962 * ipa-inline.c: Update tree_pass descriptors.
7963 * tree-ssa-sink.c: Update tree_pass descriptors.
7964 * global.c: Update tree_pass descriptors.
7965 * ifcvt.c: Update tree_pass descriptors.
7966 * jump.c: Update tree_pass descriptors.
7967 * predict.c: Update tree_pass descriptors.
7968 * tree-ssa-loop.c: Update tree_pass descriptors.
7969 * recog.c: Update tree_pass descriptors.
7970 * dse.c: Update tree_pass descriptors.
7971 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
7972 * tree-eh.c: Update tree_pass descriptors.
7973 * regmove.c: Update tree_pass descriptors.
7975 * function.c: Update tree_pass descriptors.
7976 * tree-vectorizer.c: Update tree_pass descriptors.
7977 * gcse.c: Update tree_pass descriptors.
7978 * ipa-type-escape.c: Update tree_pass descriptors.
7979 * tree-if-conv.c: Update tree_pass descriptors.
7980 * init-regs.c: Update tree_pass descriptors.
7981 * ipa.c: Update tree_pass descriptors.
7982 * tree-ssa-phiopt.c: Update tree_pass descriptors.
7983 * rtl-factoring.c: Update tree_pass descriptors.
7984 * lower-subreg.c: Update tree_pass descriptors.
7985 * bt-load.c: Update tree_pass descriptors.
7986 * tree-dfa.c: Update tree_pass descriptors.
7987 * except.c: Update tree_pass descriptors.
7988 * emit-rtl.c: Update tree_pass descriptors.
7989 * cfgexpand.c: Update tree_pass descriptors.
7990 * tree-cfgcleanup.c: Update tree_pass descriptors.
7991 * cfgcleanup.c: Update tree_pass descriptors.
7992 * tree-ssa-pre.c: Update tree_pass descriptors.
7993 * tree-sra.c: Update tree_pass descriptors.
7994 * tree-mudflap.c: Update tree_pass descriptors.
7995 * tree-ssa-copy.c: Update tree_pass descriptors.
7996 * cfglayout.c: Update tree_pass descriptors.
7997 * tree-ssa-forwprop.c: Update tree_pass descriptors.
7998 * tree-ssa-dce.c: Update tree_pass descriptors.
7999 * tree-ssa.c: Update tree_pass descriptors.
8000 * regclass.c: Update tree_pass descriptors.
8001 * integrate.c: Update tree_pass descriptors.
8002 * tree-optimize.c: Update tree_pass descriptors.
8003 * tree-ssa-phiprop.c: Update tree_pass descriptors.
8004 * tree-object-size.c: Update tree_pass descriptors.
8005 * combine.c: Update tree_pass descriptors.
8006 * tree-outof-ssa.c: Update tree_pass descriptors.
8007 * bb-reorder.c: Update tree_pass descriptors.
8008 * stack-ptr-mod.c: Update tree_pass descriptors.
8009 * var-tracking.c: Update tree_pass descriptors.
8010 * tree-profile.c: Update tree_pass descriptors.
8011 * tree-vect-generic.c: Update tree_pass descriptors.
8012 * reg-stack.c: Update tree_pass descriptors.
8013 * sched-rgn.c: Update tree_pass descriptors.
8014 * tree-ssa-structalias.c: Update tree_pass descriptors.
8015 * tree-cfg.c: Update tree_pass descriptors.
8016 * passes.c (current_pass): Update declaration.
8017 (finish_optimization_passes): Update.
8018 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
8019 (register_one_dump_file, register_dump_files_1, next_pass_1):
8021 (init_optimization_passes): Update handling of new types.
8022 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
8023 * ipa-struct-reorg.c: Update tree_pass descriptors.
8024 * tree-ssa-reassoc.c: Update tree_pass descriptors.
8025 * combine-stack-adj.c: Update tree_pass descriptors.
8026 * cfgrtl.c: Update tree_pass descriptors.
8027 * dce.c: Update tree_pass descriptors.
8028 * tree-ssanames.c: Update tree_pass descriptors.
8030 2008-03-19 Richard Guenther <rguenther@suse.de>
8033 * tree-ssa.c (walk_data): New structure.
8034 (warn_uninitialized_var): If not always_executed warn with "maybe"
8036 (execute_early_warn_uninitialized): Compute post-dominators.
8037 Initialize always_executed before processing each basic block.
8039 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
8042 * config/i386/i386.c (x86_this_parameter): Calculate correct location
8043 of "this" pointer when "regparm = N" or "fastcall" is in effect.
8045 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8047 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
8049 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
8051 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
8053 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
8054 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
8055 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
8056 target after ignore has been set, and move there also the commputation
8057 of subtarget and original_target.
8058 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
8059 (LANG_HOOKS_INITIALIZER): Remove it.
8060 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
8062 2008-03-18 Richard Guenther <rguenther@suse.de>
8064 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
8065 found an expression with constants, note that in the VN for the lhs.
8066 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
8067 fold them to constants if possible. Run cleanup_cfg if done so.
8068 (execute_pre): Return todo.
8070 (execute_fre): Likewise.
8071 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
8073 (get_prop_source_stmt): Look through pointer conversions.
8075 2008-03-18 Jan Hubicka <jh@suse.cz>
8077 * tree-pretty-print.c: Include predict.h.
8078 (dump_generic_node): Dump predictor.
8079 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
8080 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
8081 * gimple-low.c (lower_stmt): Likewise.
8082 * expr.c (expand_expr_real): Likewise.
8083 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
8085 (build_predict_expr, build_predict_expr): New.
8086 * predict.h (predictor_name, build_predict_expr): Update.
8087 * c-typeck.c (c_finish_bc_stmt): Add prediction.
8088 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
8089 * predict.def (PRED_CONTINUE): Update hitrate.
8090 * tree.def (PREDICT_EXPR): Define.
8091 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
8092 do not handle BIND_EXPR.
8093 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
8094 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
8095 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
8098 2008-03-18 Michael Matz <matz@suse.de>
8100 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
8102 2008-03-18 Richard Guenther <rguenther@suse.de>
8104 * tree-gimple.h (is_gimple_invariant_address): Declare.
8105 (is_gimple_constant): Likewise.
8106 * tree-gimple.c (is_gimple_constant): New function.
8107 (is_gimple_invariant_address): Likewise.
8108 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
8109 and is_gimple_invariant_address.
8110 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
8112 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
8113 an addressable base.
8115 2008-03-18 Jakub Jelinek <jakub@redhat.com>
8118 * gimplify.c (gimplify_expr): Gimplify second operand of
8121 2008-03-17 Richard Guenther <rguenther@suse.de>
8123 PR tree-optimization/19637
8124 * fold-const.c (fold_unary): Remove restrictions of removing
8125 intermediate pointer-conversions (P2)(P1)P0.
8126 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
8127 conversion to void pointer.
8128 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
8130 2008-03-16 James E. Wilson <wilson@tuliptree.org>
8133 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
8134 emulated thread local variables.
8136 2008-03-16 Richard Guenther <rguenther@suse.de>
8139 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
8140 expand TREE_INVARIANT operations that are not gimple invariant.
8142 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
8144 * doc/extend.texi (Alignment): Say that the ABI controls
8145 the __alignof__ for non-strict-alignment targets rather
8146 than being a recommendation.
8148 2008-03-15 Paul Brook <paul@codesourcery.com>
8150 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
8152 (arm_output_fn_unwind): Mark functions that can not be unwound.
8154 2008-03-15 Paul Brook <paul@codesourcery.com>
8156 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
8157 extension instructions.
8159 2008-03-15 Richard Guenther <rguenther@suse.de>
8161 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
8162 and fold constant aggregate refs.
8163 (fold_const_aggregate_ref): Handle string constants
8164 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
8165 (evaluate_stmt): Simplify now that ccp_fold folds constant
8168 2008-03-15 Paul Brook <paul@codesourcery.com>
8170 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
8171 (extzv): Use gen_extzv_t2.
8172 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
8174 2008-03-15 Richard Guenther <rguenther@suse.de>
8176 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
8177 (fold_const_aggregate_ref): Likewise.
8178 (get_value): Return NULL if we don't have any values.
8179 (ccp_finalize): Set const_val to NULL after freeing it.
8180 * tree-flow.h (get_symbol_constant_value): Declare.
8181 (fold_const_aggregate_ref): Likewise.
8182 * tree-ssa-sccvn.c (try_to_simplify): Use them.
8184 2008-03-15 Richard Guenther <rguenther@suse.de>
8187 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
8188 to not produce negative array indices if not allowed. Add
8189 parameter to indicate that.
8190 (maybe_fold_offset_to_component_ref): Allow negative array
8191 indices only for the first member of a structure.
8192 (maybe_fold_offset_to_reference): Allow negative array indices.
8193 (maybe_fold_stmt_addition): Likewise.
8195 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
8196 Anatoly Sokolov <aesok@post.ru>
8198 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
8199 (avr_arch): Add ARCH_AVR6.
8200 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
8201 (initial_elimination_offset): Initialize and use 'avr_pc_size'
8202 instead of fixed value 2.
8203 (print_operand_address): Use gs() asm specifier instead of pm().
8204 (avr_assemble_integer): (Ditto.).
8205 (avr_output_addr_vec_elt): (Ditto.).
8206 (print_operand): Handle "!" code.
8207 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
8208 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
8209 (AVR_HAVE_EIJMP_EICALL): Define.
8210 (AVR_3_BYTE_PC): Redefine.
8211 (AVR_2_BYTE_PC): (Ditto.).
8212 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
8213 (LINK_SPEC): Add atmega2560 and atmega2561.
8214 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
8216 * config/avr/avr.md (call_insn): Use eicall instead of icall
8217 for 3 byte PC devices.
8218 (call_value_insn): (Ditto.).
8219 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
8220 (indirect_jump): Use only for for 2 byte PC devices.
8221 (*tablejump): (Ditto.).
8222 (*indirect_jump_avr6): Add insn.
8223 (*tablejump_rjmp): Don't use for 3 byte PC devices.
8224 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
8225 instead of ijmp for 3 byte PC devices.
8226 (__tablejump2__): (Ditto.).
8227 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
8228 (MULITLIB_DIRNAMES): (Ditto.).
8229 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
8231 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
8233 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
8234 "sse2_umulsidi3". Use V1DI mode for operand 0.
8235 ("mmx_psadbw"): Use V1DI mode for operand 0.
8236 * config/i386/i386-modes.def (V1SI): New vector mode.
8237 * config/i386/i386.c (struct builtin_description)
8238 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
8239 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
8240 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
8241 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
8242 v1di_ftype_v8qi_v8qi type.
8243 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
8245 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
8246 __builtin_ia32_pmuludq]: Fix the mode of return value.
8248 2008-03-15 Richard Guenther <rguenther@suse.de>
8251 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
8254 2008-03-14 Bob Wilson <bob.wilson@acm.org>
8256 * doc/invoke.texi (Option Summary, Xtensa Options): Document
8257 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
8258 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
8259 unless TARGET_SERIALIZE_VOLATILE is enabled.
8260 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
8261 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
8262 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
8264 2008-03-14 Richard Guenther <rguenther@suse.de>
8266 PR tree-optimization/34172
8267 * tree-flow.h (refs_may_alias_p): Declare.
8268 (get_single_def_stmt): Likewise.
8269 (get_single_def_stmt_from_phi): Likewise.
8270 (get_single_def_stmt_with_phi): Likewise.
8271 * tree-dfa.c (refs_may_alias_p): New function.
8272 (get_single_def_stmt): Likewise.
8273 (get_single_def_stmt_from_phi): Likewise.
8274 (get_single_def_stmt_with_phi): Likewise.
8275 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
8276 (vn_reference_lookup_1): New helper function.
8277 (vn_reference_lookup): Walk the virtual use-def chain to
8278 continue searching for a match if the def does not alias the
8279 reference we are looking for.
8281 2008-03-14 David Edelsohn <edelsohn@gnu.org>
8283 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
8284 archive and Perzl. Update The Written Word listing.
8286 2008-03-14 Richard Guenther <rguenther@suse.de>
8288 PR tree-optimization/34043
8289 PR tree-optimization/33989
8290 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
8292 (bitmap_find_leader): Use extra argument to verify dominance
8293 relationship inside a basic-block.
8294 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
8295 (find_leader_in_sets): Adjust.
8296 (create_component_ref_by_pieces): Take extra argument for
8297 dominance check, handle lookup failures.
8298 (find_or_generate_expression): Likewise.
8299 (create_expression_by_pieces): Likewise.
8300 (insert_into_preds_of_block): Adjust.
8301 (create_value_expr_from): If asked for, verify all operands
8302 are in the blocks AVAIL_OUT set.
8303 (make_values_for_stmt): Check for SSA_NAMEs that are life
8304 over an abnormal edge.
8305 (compute_avail): Remove such check.
8306 (do_SCCVN_insertion): New function.
8307 (eliminate): If we do not find a leader suitable for replacement
8308 insert a replacement expression from SCCVN if available.
8309 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
8310 (struct vn_ssa_aux): Add needs_insertion flag.
8311 * tree-ssa-sccvn.c (may_insert): New global flag.
8312 (copy_reference_ops_from_ref): Value-number union member access
8313 based on its size, not type and member if insertion is allowed.
8314 (visit_reference_op_load): For a weak match from union type
8315 punning lookup a view-converted value and insert a SSA_NAME
8316 for that value if that is not found.
8317 (visit_use): Make dumps shorter. Do not disallow value numbering
8318 SSA_NAMEs that are life over an abnormal edge to constants.
8319 (free_scc_vn): Release inserted SSA_NAMEs.
8320 (run_scc_vn): New flag to specify whether insertion is allowed.
8321 Process SSA_NAMEs in forward order.
8322 * tree-ssa-loop-im.c (for_each_index): Handle invariant
8323 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
8324 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
8325 pointer type to/from integral types that do not change the
8326 precision to regular conversions.
8328 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
8330 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8331 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8332 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
8333 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
8334 input arguments and the mode of return value. Built-in functions
8335 that operate on whole 64-bit MMX register now use V1DI mode.
8337 2008-03-13 Alon Dayan <alond@il.ibm.com>
8338 Olga Golovanevsky <olga@il.ibm.com>
8340 PR tree-optimization/35041
8341 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
8342 to locate the right position in a statement.
8344 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
8348 * config/i386/xmmintrin.h: Change all static inline functions to
8349 extern inline and add __gnu_inline__ attribute.
8350 * config/i386/bmintrin.h: Ditto.
8351 * config/i386/smmintrin.h: Ditto.
8352 * config/i386/tmmintrin.h: Ditto.
8353 * config/i386/mmintrin-common.h: Ditto.
8354 * config/i386/ammintrin.h: Ditto.
8355 * config/i386/emmintrin.h: Ditto.
8356 * config/i386/pmmintrin.h: Ditto.
8357 * config/i386/mmintrin.h: Ditto.
8358 * config/i386/mm3dnow.h: Ditto.
8360 2008-03-13 Jakub Jelinek <jakub@redhat.com>
8363 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
8364 (lower_omp_2): New function.
8365 (lower_omp_1, lower_omp): Rewritten.
8367 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
8370 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
8371 with the phrase "Microsoft Windows compilers".
8372 (Push/Pop Macro Pragmas): New subsection. Document
8373 #pragma push_macro and pragma pop_macro.
8375 2008-03-12 Paul Brook <paul@codesourcery.com>
8377 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
8379 2008-03-12 Paul Brook <paul@codesourcery.com>
8381 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
8382 (thumb2_alusi3_short): Exclude PLUS and MINUS.
8383 (thumb2_addsi_shortim): Rename ...
8384 (thumb2_addsi_short): ... to this. Allow register operands.
8385 (thumb2_subsi_short): New pattern.
8386 (thumb2_one_cmplsi2_short,
8387 thumb2_negsi2_short): New patterns and peepholes.
8389 2008-03-12 Paul Brook <paul@codesourcery.com>
8391 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
8393 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
8395 * config/i386/i386.md (int_cond): New code iterator.
8397 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
8398 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
8399 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
8400 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
8401 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
8402 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
8403 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
8404 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
8406 2008-03-12 Paul Brook <paul@codesourcery.com>
8408 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
8409 instead of {arm,thumb}_compute_save_reg_mask.
8410 (output_return_instruction): Ditto.
8411 (thumb_unexpanded_epilogue): Ditto.
8412 (thumb1_expand_prologue): Ditto.
8413 (thumb1_output_function_prologue): Ditto.
8414 (arm_set_return_address): Ditto.
8415 (thumb_set_return_address): Ditto.
8416 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
8417 regs to achieve stack alignment.
8418 (thumb1_compute_save_reg_mask): Fix compiler warning.
8419 (arm_output_epilogue): Use offsets->saved_regs_mask.
8420 Adjust stack pointer by poping call clobered registers.
8421 (arm_expand_prologue): Use offsets->saved_regs_mask.
8422 Adjust stack pointer by pushing extra registers.
8423 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
8425 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
8428 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
8429 conversion to the operands of a multiplication.
8431 2008-03-12 Richard Guenther <rguenther@suse.de>
8433 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
8434 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
8435 * timevar.def (TV_TREE_PHIPROP): Add.
8436 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
8437 pass description. Use TV_TREE_PHIPROP.
8438 * tree-ssa-forwprop.c: Remove phiprop code.
8440 2008-03-12 Jakub Jelinek <jakub@redhat.com>
8443 * omp-low.c (maybe_lookup_decl): Constify first argument.
8444 (use_pointer_for_field): Change last argument from bool to
8445 omp_context *. Disallow shared copy-in/out in nested
8446 parallel if decl is shared in outer parallel too.
8447 (build_outer_var_ref, scan_sharing_clauses,
8448 lower_rec_input_clauses, lower_copyprivate_clauses,
8449 lower_send_clauses, lower_send_shared_vars): Adjust callers.
8451 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
8452 Ira Rosen <irar@il.ibm.com>
8454 * tree-vectorizer.c (free_stmt_vec_info): New function.
8455 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
8456 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
8457 * tree-vectorizer.h (free_stmt_vec_info): Declare.
8458 * tree-vect-transform.c (vectorizable_conversion): Free
8459 vec_oprnds0 if it was allocated.
8460 (vect_permute_store_chain): Remove unused VECs.
8461 (vectorizable_store): Free VECs that are allocated in the..
8463 (vect_transform_strided_load, vectorizable_load): Likewise.
8464 (vect_remove_stores): Simplify the code.
8465 (vect_transform_loop): Move code to vect_remove_stores().
8466 Call vect_remove_stores() and free_stmt_vec_info().
8468 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8470 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
8471 TARGET_HPUX. Revise comment.
8472 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
8473 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
8474 Use sr4 variant of `be' instruction when not generating PIC code.
8475 (attr_length_call): Adjust for above change.
8477 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
8479 * ipa-reference.c (static_execute): Remove module_statics_const and
8480 associated setting code.
8482 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
8485 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
8486 predicate for operand 1.
8487 (paritysi2_cmp): Use register_operand predicate for operand 2.
8488 Use earlyclobber modifier for operand 1. Remove support for
8490 (paritydi2_cmp): Use register_operand predicate for operand 3.
8491 Use earlyclobber modifier for operand 1. Remove support for
8494 2008-03-11 Paul Brook <paul@codesourcery.com>
8495 Vladimir Prus <vladimir@codesourcery.com>
8497 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
8498 (arm_compute_save_reg0_reg12_mask): Always
8499 check if register 11 must be saved. Always safe hard frame pointer
8500 when frame_pointer_needeed.
8501 (arm_compute_save_reg_mask): Save IP and PC
8502 only with apcs frames.
8503 (arm_output_epilogue): Adjust Thumb2 codepath to
8504 be also invoked and work for ARM non-apcs frames.
8505 (arm_expand_prologue): Don't bother saving IP
8506 for non-apcs frame, since it's not clobbered by
8507 prologue code. Implement non-apcs frame
8510 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
8512 PR rtl-optimization/35281
8513 * expr.c (convert_move): Use a new pseudo for the intermediate
8514 from_mode->word_mode result.
8516 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
8518 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
8519 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
8520 * toplev.c (compile_file): Don't call it.
8522 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
8525 * expr.c (store_expr): Call emit_block_move if the mode
8526 of "temp" RTX is BLKmode.
8528 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
8529 Richard Guenther <rguenther@suse.de>
8531 PR tree-optimization/31358
8532 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
8533 the step with a NULL_TREE.
8534 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
8535 to sizetype if type is a pointer type.
8536 (add_candidate_1): Don't convert the base and step to
8537 the generic type if the orginal type is a pointer type.
8538 (add_iv_value_candidates): Use sizetype for the step
8539 if type is a pointer type.
8540 (cand_value_at): Likewise.
8541 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
8543 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
8544 Don't convert the tem affine to the type.
8545 (add_elt_to_tree): Use sizetype for the step if a pointer.
8546 Use POINTER_PLUS_EXPR for pointers.
8547 (aff_combination_to_tree): Use sizetype for the step if a
8550 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
8552 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
8553 Remove commutativity hint.
8555 2008-03-10 Jakub Jelinek <jakub@redhat.com>
8559 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
8560 errorneous type. Check that v is a VAR_DECL.
8563 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
8565 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
8567 PR tree-optimization/35494
8568 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
8569 may be overriden at link and run time.
8571 2008-03-10 Richard Guenther <rguenther@suse.de>
8573 PR tree-optimization/34677
8574 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
8575 (poolify_tree): Likewise.
8576 (modify_expr_template): Likewise.
8577 (poolify_modify_stmt): Likewise.
8578 (insert_fake_stores): Handle all component-ref style stores
8579 in addition to INDIRECT_REF. Also handle complex types.
8580 Do not poolify the inserted load.
8581 (realify_fake_stores): Do not rebuild the tree but only
8582 make it a SSA_NAME copy.
8583 (init_pre): Remove initialzation of modify_expr_template.
8584 Do not allocate modify_expr_node_pool.
8585 (fini_pre): Do not free modify_expr_node_pool.
8587 2008-03-10 Paul Brook <paul@codesourcery.com>
8589 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
8592 2008-03-10 Paul Brook <paul@codesourcery.com>
8593 Mark Shinwell <shinwell@codesourcery.com>
8595 * config/arm/cortex-r4.md: New.
8596 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
8598 * config/arm/arm.md: Include cortex-r4.md.
8599 (insn): Add smmls, sdiv and udiv values.
8600 (generic_sched): Don't use generic scheduling for Cortex-R4.
8601 (arm_issue_rate): New function.
8602 (TARGET_SCHED_ISSUE_RATE): Define.
8604 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
8606 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
8608 2008-03-10 Richard Guenther <rguenther@suse.de>
8610 * tree-ssa-pre.c (get_sccvn_value): Simplify.
8611 (compute_avail): Do not add stmt uses to AVAIL_OUT.
8613 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
8615 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
8616 Set default to true.
8618 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8620 * c.opt (Wsynth): Deprecate.
8621 * doc/invoke.texi (Option Summary, Warning Options): Document
8622 -Wno-format-contains-nul.
8624 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
8627 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
8628 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
8630 2008-03-09 Ira Rosen <irar@il.ibm.com>
8632 * config/rs6000/rs6000.c (builtin_description): Rename vector
8633 left shift operations.
8634 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
8635 (altivec_vsl<VI_char>): Rename to ...
8636 (ashl<mode>3): ... new name.
8637 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
8639 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
8641 2008-03-08 Richard Guenther <rguenther@suse.de>
8643 * coverage.h (tree_coverage_counter_addr): Declare.
8644 * coverage.c (tree_coverage_counter_addr): New function.
8645 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
8647 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
8648 (tree_gen_one_value_profiler): Likewise.
8649 (tree_gen_ic_profiler): Likewise.
8650 (tree_gen_average_profiler): Likewise.
8651 (tree_gen_ior_profiler): Likewise.
8653 2008-03-08 Richard Guenther <rguenther@suse.de>
8655 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
8656 (vn_binary_op_insert): Likewise.
8657 (vn_unary_op_lookup): Likewise.
8658 (vn_unary_op_insert): Likewise.
8659 (vn_nary_op_lookup): Declare.
8660 (vn_nary_op_insert): Likewise.
8661 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
8662 and binary hashes, use a single obstack for unary_op_pool
8664 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
8665 a single struct vn_nary_op_s. Store tree code length and
8666 a variable number of operands.
8667 (struct vn_reference_op_struct): Remove unused op2.
8668 (vn_reference_op_eq): Do not compare op2.
8669 (vn_reference_op_compute_hash): Do not compute hash of op2.
8670 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
8671 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
8672 with vn_nary_op_compute_hash.
8673 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
8674 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
8676 (vn_unary_op_insert, vn_binary_op_insert): Replace with
8678 (visit_unary_op): Call nary functions.
8679 (visit_binary_op): Likewise.
8680 (process_scc): Adjust for struct vn_tables_s changes.
8681 (allocate_vn_table): Likewise.
8682 (free_vn_table): Likewise.
8683 * tree-vn.c (vn_add): Call nary functions.
8684 (vn_lookup): Likewise.
8686 2008-03-08 Jakub Jelinek <jakub@redhat.com>
8689 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
8690 wdst back after sync_compare_and_swapqhi_internal.
8692 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
8695 * config/i386/i386-modes.def (V1DI): New vector mode.
8696 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
8697 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
8698 (MMXMODE248): Ditto.
8699 (MMXMODE): Add V1DI mode.
8700 (mmxvecsize): Change DI mode to V1DI mode.
8701 ("mov<mode>): Use MMXMODEI8 mode iterator.
8702 ("*mov<mode>_internal_rex64"): Ditto.
8703 ("*mov<mode>_internal"): Ditto.
8704 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
8705 ("mmx_sub<mode>3"): Ditto.
8706 ("mmx_adddi3"): Remove insn pattern.
8707 ("mmx_subdi3"): Ditto.
8708 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
8709 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
8710 ("mmx_ashl<mode>3"): Ditto.
8711 ("mmx_lshrdi3"): Remove insn pattern.
8712 ("mmx_ashldi3"): Ditto.
8713 * config/i386/i386.c (classify_argument): Handle V1DImode.
8714 (function_arg_advance_32): Ditto.
8715 (function_arg_32): Ditto.
8716 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
8717 mmx_addv1di3 insn pattern.
8718 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
8719 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
8720 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
8721 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
8722 Remove definitions of built-in functions.
8723 (V1DI_type_node): New node.
8724 (v1di_ftype_v1di_int): Ditto.
8725 (v1di_ftype_v1di_v1di): Ditto.
8726 (v2si_ftype_v2si_si): Ditto.
8727 (v4hi_ftype_v4hi_di): Remove node.
8728 (v2si_ftype_v2si_di): Ditto.
8729 (ix86_init_mmx_sse_builtins): Handle V1DImode.
8730 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
8731 Redefine builtins using def_builtin_const with *_ftype_*_int node.
8732 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
8733 Add new builtins using def_builtin_const.
8734 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
8735 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
8736 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
8737 * config/i386/mmintrin.h (__v1di): New typedef.
8738 (_mm_add_si64): Cast arguments to __v1di type.
8739 (_mm_sub_si64): Ditto.
8740 (_mm_sll_pi16): Cast __count to __v4hi type.
8741 (_mm_sll_pi32): Cast __count to __v2si type.
8742 (_mm_sll_si64): Cast arguments to __v1di type.
8743 (_mm_srl_pi16): Cast __count to __v4hi type.
8744 (_mm_srl_pi32): Cast __count to __v2si type.
8745 (_mm_srl_si64): Cast arguments to __v1di type.
8746 (_mm_sra_pi16): Cast __count to __v4hi type.
8747 (_mm_sra_pi32): Cast __count to __v2si type.
8748 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
8749 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
8750 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
8751 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
8752 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
8753 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
8754 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
8755 (_mm_srai_pi32): Use __builtin_ia32_psradi.
8756 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
8757 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8758 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8759 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
8761 2008-03-07 Joseph Myers <joseph@codesourcery.com>
8763 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
8765 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
8768 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
8769 reg+const addressing for Altivec modes. Don't generate reg+reg
8770 addressing for TFmode or TDmode quantities.
8772 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
8774 * c-common.c (vector_types_convertible_p): Call langhook
8775 instead of comptypes.
8777 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
8780 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
8781 integral and scalar float variables which have a
8784 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
8786 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
8787 dwarf_register_span hook when emitting unwind information for
8788 register-to-memory saves.
8789 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
8790 (rs6000_frame_related): Remove call to spe_synthesize_frame.
8792 2008-03-06 Jakub Jelinek <jakub@redhat.com>
8794 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
8795 for the same VAR_DECL.
8797 2008-03-06 Tom Tromey <tromey@redhat.com>
8800 * doc/standards.texi (Standards): Don't mention treelang.
8801 * doc/invoke.texi (Overall Options): Don't mention treelang.
8802 * doc/install.texi (Prerequisites): Don't mention bison or
8804 (Configuration): Don't mention treelang.
8805 (Building): Likewise.
8806 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
8808 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
8810 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
8811 word-extractions out of a multi-word object.
8813 2008-03-06 Richard Guenther <rguenther@suse.de>
8815 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
8816 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
8817 result type and precision.
8818 * expr.c (get_inner_reference): Set unsignedp based on the result
8819 type of BIT_FIELD_REF.
8820 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
8821 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
8822 (try_instantiate_multiple_fields): Likewise. Use the correct type
8824 (sra_build_assignment): Likewise.
8825 (sra_build_elt_assignment): Likewise.
8826 (sra_explode_bitfield_assignment): Likewise.
8827 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
8828 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
8829 set BIT_FIELD_REF_UNSIGNED.
8830 (vectorizable_load): Likewise.
8832 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
8834 * cse.c (cse_extended_basic_block): Invalidate artificial defs
8837 2008-03-06 Richard Guenther <rguenther@suse.de>
8839 * alias.c (struct alias_set_entry): Move has_zero_child field
8840 to pack with alias_set.
8842 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
8844 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8847 2008-03-05 Ian Lance Taylor <iant@google.com>
8849 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
8851 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
8853 * fwprop.c (update_df): Support width and offset parameters of
8855 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
8856 global_conflicts): Change DF_REF_EXTRACT to either
8857 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
8858 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8859 * df-scan.c (df_ref_record, df_defs_record,
8860 df_ref_create_structure, df_def_record_1, df_uses_record,
8861 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
8862 df_bb_refs_collect, df_entry_block_defs_collect,
8863 df_exit_block_uses_collect): Support new width and offset fields.
8864 (ref_extract_pool): New storage pool.
8865 (df_free_ref): New function.
8866 (df_reg_chain_unlink, df_free_collection_rec,
8867 df_sort_and_compress_refs): Call df_free_ref.
8868 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
8870 (df_ref_create_structure): Allocate df_ref_extract if offset and
8871 width fields are used.
8872 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
8873 (df_uses_record): Get offset and width from ZERO_EXTRACT
8875 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
8876 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
8877 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8878 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
8879 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
8880 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8881 (df_ref_extract): New structure.
8882 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
8883 (df_ref_create): Add width and offset parameters.
8885 2008-03-05 Richard Guenther <rguenther@suse.de>
8887 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8888 Use ranges_overlap_p.
8889 (offset_overlaps_with_access): Rename
8890 to ranges_overlap_p and move ...
8891 * tree-flow-inline.h (ranges_overlap_p): ... here.
8893 * tree.h (get_inner_reference, handled_component_p): Update
8896 * tree.h (record_component_aliases, get_alias_set,
8897 alias_sets_conflict_p, alias_sets_must_conflict_p,
8898 objects_must_conflict_p): Move declarations ...
8899 * alias.h (record_component_aliases, get_alias_set,
8900 alias_sets_conflict_p, alias_sets_must_conflict_p,
8901 objects_must_conflict_p): ... here.
8902 Include coretypes.h.
8903 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
8905 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
8907 * cfg.c: Include tree-flow.h.
8908 (remove_edge_raw): Call redirect_edge_var_map_clear.
8909 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
8910 * tree-flow-inline.h (redirect_edge_var_map_def): New.
8911 (redirect_edge_var_map_result): New.
8912 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
8913 PENDING_STMT use with redirect_edge_var_map_*.
8914 * tree-ssa.c (edge_var_maps): New definition.
8915 (redirect_edge_var_map_add): New.
8916 (redirect_edge_var_map_clear): New.
8917 (redirect_edge_var_map_dup): New.
8918 (redirect_edge_var_map_vector): New.
8919 (redirect_edge_var_map_destroy): New.
8920 (ssa_redirect_edge): Replace PENDING_STMT use with
8921 redirect_edge_var_map_*.
8922 (flush_pending_stmts): Same.
8923 (delete_tree_ssa): Destroy edge var map.
8924 * tree-flow.h (struct _edge_var_map): New.
8925 Define edge_var_map vector type.
8926 Declare redirect_edge_var_map_* prototypes.
8927 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
8928 * tree-cfg.c (reinstall_phi_args): Replace
8929 PENDING_STMT use with redirect_edge_var_map_*.
8931 2008-03-05 Richard Guenther <rguenther@suse.de>
8933 PR tree-optimization/35472
8934 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
8935 whose single use_stmt has a overlapping set of loaded and
8936 stored symbols as that use_stmt might be a noop assignment then.
8938 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
8940 * gthr-rtems.h: Implement __gthread_mutex_destroy.
8942 2008-03-05 Richard Guenther <rguenther@suse.de>
8945 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
8946 should be constants.
8947 * tree-cfg.c (verify_expr): Verify it.
8948 * fold-const.c (fold_truthop): Remove code generating
8949 BIT_FIELD_REFs of structure bases.
8950 (fold_binary): Likewise.
8951 (fold_ternary): Position and size of BIT_FIELD_REFs are
8952 always host integers.
8953 (make_bit_field_ref): Remove.
8954 (optimize_bit_field_compare): Remove.
8955 (all_ones_mask_p): Remove.
8957 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
8960 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
8961 (split_block_and_df_analyze): New. Split basic block and rebuild
8963 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
8965 (split_pattern_seq): Likewise.
8966 (erase_matching_seqs): Likewise.
8967 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
8969 2008-03-04 Geoff Keating <geoffk@apple.com>
8971 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
8972 declaration and code.
8973 (tree_invalid_nonnegative_warnv_p): Likewise.
8975 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8977 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
8978 examples. Truncate option-names then causing overfull hbox.
8980 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8983 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
8985 * configure: Rebuilt.
8987 2008-03-04 Rafael Espindola <espindola@google.com>
8989 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
8990 (tree_unary_nonnegative_warnv_p): New.
8991 (tree_binary_nonnegative_warnv_p): New.
8992 (tree_single_nonnegative_warnv_p): New.
8993 (tree_invalid_nonnegative_warnv_p): New.
8994 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
8996 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8999 * opts.c (handle_option): Postpone 'unknown option' errors only for
9002 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
9005 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
9008 2008-03-04 Rafael Espindola <espindola@google.com>
9010 * fold-const.c (tree_unary_nonzero_warnv_p): New.
9011 (tree_binary_nonzero_warnv_p): New.
9012 (tree_single_nonzero_warnv_p): New.
9013 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
9015 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
9018 * fold-const.c (fold_cond_expr_with_comparison): Prevent
9019 transformations for modes that have signed zeros.
9020 * ifcvt.c (noce_try_abs): Ditto.
9022 2008-03-04 Joseph Myers <joseph@codesourcery.com>
9024 * config/i386/i386.c (override_options): Force
9025 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
9027 2008-03-04 Jan Hubicka <jh@suse.cz>
9030 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
9033 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
9035 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
9036 label to probe the stack.
9038 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
9040 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
9041 (__gthr_win32_mutex_destroy): Declare.
9042 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
9043 __gthr_win32_mutex_destroy.
9044 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
9046 2008-03-03 Jan Hubicka <jh@suse.cz>
9049 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
9050 aggressive on inlining cold calls.
9052 2008-03-03 Richard Guenther <rguenther@suse.de>
9054 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
9055 struct copies into the expression table.
9056 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
9057 (try_to_simplify): Likewise.
9058 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
9059 integral and pointer arguments which do not change the
9060 precision to NOP_EXPRs.
9061 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
9062 VIEW_CONVERT_EXPR case.
9064 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
9066 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
9067 defined in a loop at depth 0 is invariant.
9068 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
9069 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
9070 be called at loop depth 0.
9072 2008-03-02 Jakub Jelinek <jakub@redhat.com>
9075 * gcc.c (process_command): Update copyright notice dates.
9076 * gcov.c (print_version): Likewise.
9077 * gcov-dump.c (print_version): Likewise.
9078 * mips-tfile.c (main): Likewise.
9079 * mips-tdump.c (main): Likewise.
9081 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9084 * c-common.c (flag_permissive): Delete.
9085 (constant_expression_warnings): Check flags first.
9086 (constant_expression_error): New.
9087 * c-common.h (flag_permissive): Delete.
9088 (constant_expression_error): Declare.
9089 * flags.h (flag_permissive): Declare. Update description.
9090 * diagnostic.c (pedwarn): Update.
9092 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
9093 (permissive_error_kind): New.
9094 * toplev.c (flag_permissive): Define. Update description.
9095 * toplev.h (permissive_error_kind): Declare.
9096 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
9097 (pedwarn_c90): Use pedantic_warning_kind.
9098 * c-opts.c (c_common_post_options): flag_permissive does not affect
9099 flag_pedantic_errors.
9101 2008-03-02 Joseph Myers <joseph@codesourcery.com>
9103 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
9104 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
9105 __absvsi2, __absvDI2): Use unsigned arithmetic.
9107 2008-03-02 Andi Kleen <ak@suse.de>
9108 Richard Guenther <rguenther@suse.de>
9110 * struct-equiv.c: Remove file.
9111 * cfg_cleanup.c (condjump_equiv_p): Remove.
9112 * Makefile.in (OBJS-common): Remove struct-equiv.o.
9113 (struct-equiv.o): Remove rule.
9114 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
9115 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
9116 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
9118 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
9120 * ifcvt.c (noce_process_if_block): Try to handle only the then
9121 block if the else block exists but isn't suitable.
9123 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
9126 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
9127 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
9128 regression from previous patch.
9130 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
9133 * gthr.h: Add __gthread_mutex_destroy as a function that must be
9135 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
9136 * gthr-single.h (__gthread_mutex_destroy): Likewise.
9137 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
9138 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
9139 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
9140 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
9141 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
9142 (__gthread_mutex_destroy_function): Rename to
9143 __gthread_mutex_destroy.
9144 * gthr-dce.h (__gthread_mutex_destroy): Call
9145 pthread_mutex_destroy.
9146 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
9147 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
9148 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
9150 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
9152 * df-scan.c (df_ref_chain_change_bb): Simplify.
9153 (df_insn_change_bb): Add new_bb argument. Simplify. Call
9154 set_block_for_insn if there's any change.
9155 * df.h ((df_insn_change_bb): Fix prototype.
9156 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
9157 df_insn_change_bb, don't call set_block_for_insn.
9158 * emit-rtl.c (reorder_insns): Likewise.
9159 * haifa-sched.c (move_insn): Likewise.
9161 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
9163 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
9165 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
9167 * tree-flow-inline.h (next_readonly_imm_use): Return
9168 NULL_USE_OPERAND_P after the end.
9170 2008-03-01 Richard Guenther <rguenther@suse.de>
9172 PR tree-optimization/35411
9173 * tree-sra.c (sra_build_assignment): Split conversion to
9174 final type to a separate statement if we are not assigning
9177 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9179 * fold-const.c (fold_convertible_p): Correct the logic to follow
9180 that in fold_convert().
9182 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
9185 * tree-inline.c (build_duplicate_type): When we make a
9186 duplicate type, make it unique in the canonical types system.
9188 2008-02-29 Tom Tromey <tromey@redhat.com>
9190 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
9191 input_file_stack_history, input_file_stack_restored): Remove.
9192 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
9193 * input.h (struct file_stack): Remove.
9194 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
9195 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
9197 * diagnostic.h (struct diagnostic_context) <last_module>: Change
9199 (diagnostic_last_module_changed): Add 'map' argument.
9200 (diagnostic_set_last_function): Likewise.
9201 * diagnostic.c (undiagnostic_report_current_module): Iterate using
9202 line map, not input_file_stack.
9203 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
9205 2008-02-29 Paul Brook <paul@codesourcery.com>
9207 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
9209 2008-02-29 Paul Brook <paul@codesourcery.com>
9211 * config/arm/ieee754-df.S (muldf3): Use RET macros.
9213 2008-02-29 Richard Guenther <rguenther@suse.de>
9215 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
9217 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
9218 value for comparing for a store match.
9219 (simplify_unary_expression): Do nothing for SSA_NAMEs.
9220 (try_to_simplify): Do not do a full-blown reference lookup.
9222 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
9224 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
9225 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
9227 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
9229 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
9231 * tree-loop-linear.c (try_interchange_loops): Compare memory access
9232 strides against cache sizes.
9234 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
9236 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
9239 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
9241 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
9242 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
9243 is smaller than the original promoted value.
9244 (simplify_subreg): If OP is a SUBREG, try to preserve its
9245 SUBREG_PROMOTED_VAR_P information.
9247 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
9249 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
9250 (VN_INFO_GET): Allocate new objects on the obstack.
9251 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
9252 for rpo_numbers_temp, for consistency.
9253 (free_scc_vn): Free the obstack.
9255 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
9257 * doc/invoke.texi: Document -ftree-loop-distribution.
9258 * tree-loop-distribution.c: New.
9259 * tree-pass.h (pass_loop_distribution): New.
9260 * graphds.h (struct graph): Add htab_t indices.
9261 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
9262 * tree-vectorizer.c (rename_variables_in_loop): Extern.
9263 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
9264 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
9265 * tree-data-ref.c (debug_data_dependence_relations): New.
9266 (dump_data_dependence_relation): Also print data references.
9267 (free_data_ref): Extern.
9268 (same_access_functions): Moved...
9269 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
9270 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9271 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
9272 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
9273 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
9274 (stmts_from_loop): Skip LABEL_EXPR.
9275 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
9277 (build_rdg): Initialize rdg->indices htab.
9278 (free_rdg, stores_from_loop, ref_base_address,
9279 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
9280 have_similar_memory_accesses_1, ref_base_address_1,
9281 remove_similar_memory_refs): New.
9282 * tree-data-ref.h: Depend on tree-chrec.h.
9283 (debug_data_dependence_relations, free_data_ref): Declared.
9284 (same_access_functions): ... here.
9285 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
9287 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
9288 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
9289 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
9290 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9291 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
9292 rdg_vertex_for_stmt): Declared.
9293 (struct rdg_edge): Add level.
9295 (free_rdg, stores_from_loop, remove_similar_memory_refs,
9296 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
9298 (rdg_has_similar_memory_accesses): New.
9299 * tree-vect-analyze.c: Remove unused static decls.
9300 * lambda.h (dependence_level): New.
9301 * common.opt (ftree-loop-distribution): New.
9302 * tree-flow.h (mark_virtual_ops_in_bb,
9303 slpeel_tree_duplicate_loop_to_edge_cfg,
9304 rename_variables_in_loop): Declared.
9305 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
9306 (OBJS-common): Add tree-loop-distribution.o.
9307 (tree-loop-distribution.o): New rule.
9308 * tree-cfg.c (mark_virtual_ops_in_bb): New.
9309 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
9310 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
9312 2008-02-28 Joseph Myers <joseph@codesourcery.com>
9315 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
9316 other than structures and unions.
9318 2008-02-28 Richard Guenther <rguenther@suse.de>
9321 2008-02-26 Richard Guenther <rguenther@suse.de>
9323 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9324 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9325 (lookup_decl_from_uid): Declare.
9326 (remove_decl_from_map): Likewise.
9327 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9328 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9329 (decl_for_uid_map): New global hashtable mapping DECL_UID
9331 (init_ttree): Allocate it.
9332 (insert_decl_to_uid_decl_map): New helper function.
9333 (make_node_stat): Insert new decls into the map.
9334 (copy_node_stat): Likewise.
9335 (lookup_decl_from_uid): New function.
9336 (remove_decl_from_map): Likewise.
9337 (print_decl_for_uid_map_statistics): New helper.
9338 (dump_tree_statistics): Call it.
9340 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9341 (referenced_var_iterator): Adjust.
9342 (FOR_EACH_REFERENCED_VAR): Adjust.
9343 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9344 (num_referenced_vars): Adjust.
9345 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9346 (first_referenced_var): Remove.
9347 (end_referenced_vars_p): Likewise.
9348 (next_referenced_var): Likewise.
9349 (referenced_var_iterator_set): New helper function.
9350 * tree-dfa.c (referenced_var_lookup): Adjust.
9351 (referenced_var_check_and_insert): Likewise.
9352 (remove_referenced_var): Likewise.
9353 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9354 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9355 (verify_call_clobbering): Likewise.
9356 (verify_memory_partitions): Likewise.
9357 (init_tree_ssa): Allocate bitmap instead of hashtable for
9359 (delete_tree_ssa): Adjust.
9360 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9361 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9362 (compute_tag_properties): Likewise.
9363 (set_initial_properties): Likewise.
9364 (find_partition_for): Likewise.
9365 (update_reference_counts): Likewise.
9366 (dump_may_aliases_for): Likewise.
9367 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9368 (add_call_clobber_ops): Likewise.
9369 (add_call_read_ops): Likewise.
9370 (get_asm_expr_operands): Likewise.
9371 * tree-into-ssa.c (dump_decl_set): Likewise.
9372 (update_ssa): Likewise.
9373 * tree-sra.c (scan_function): Likewise.
9374 (decide_instantiations): Likewise.
9375 (scalarize_parms): Likewise.
9376 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9377 (dsa_named_for): Likewise.
9378 * tree-ssa-structalias.c (update_alias_info): Likewise.
9379 (merge_smts_into): Likewise.
9381 2008-02-27 David Daney <ddaney@avtrex.com>
9384 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
9385 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
9386 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
9387 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
9388 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
9390 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
9393 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
9394 (BUILT_IN_NEXTTOWARD): Remove.
9395 (BUILT_IN_NEXTTOWARDF): Ditto.
9396 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
9397 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
9399 2008-02-27 Tom Tromey <tromey@redhat.com>
9401 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
9402 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
9404 2008-02-27 Jan Beulich <jbeulich@novell.com>
9406 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
9407 update the respective field on newdecl.
9409 2008-02-27 Revital Eres <eres@il.ibm.com>
9411 PR rtl-optimization/34999
9412 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
9413 crossing edges that ends with a call insn.
9414 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
9415 call insn and clear the EDGE_CROSSING flag of the crossing edge
9416 when fixing fallthru edges.
9418 2008-02-27 Richard Guenther <rguenther@suse.de>
9421 * fold-const.c (fold_unary): Return the correct argument,
9422 converted to the result type.
9424 2008-02-27 Richard Guenther <rguenther@suse.de>
9427 * expr.c (expand_expr_real_1): Assert on rotates that operate
9429 * fold-const.c (fold_binary): Use the types precision, not the
9430 bitsize of the mode if folding rotate expressions. Build rotates
9431 only for full modes.
9433 2008-02-27 Jakub Jelinek <jakub@redhat.com>
9435 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
9437 * c-pragma.c (pragma_ns_name): New typedef.
9438 (registered_pp_pragmas): New variable.
9439 (c_pp_lookup_pragma): New function.
9440 (c_register_pragma_1): If flag_preprocess_only, do nothing
9441 for non-expanded pragmas, for expanded ones push pragma's
9442 namespace and name into registered_pp_pragmas vector.
9443 (c_invoke_pragma_handler): Register OpenMP pragmas even when
9444 flag_preprocess_only, don't register GCC pch_preprocess
9445 pragma if flag_preprocess_only.
9446 * c-opts.c (c_common_init): Call init_pragma even if
9447 flag_preprocess_only.
9448 * c-pragma.c (c_pp_lookup_pragma): New prototype.
9449 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
9450 cpp_register_pragma if flag_preprocess_only.
9452 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9455 * c-parser.c (c_parser_translation_unit): Warn for empty
9456 translation unit, not empty source file.
9458 2008-02-26 Paul Brook <paul@codesourcery.com>
9460 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
9461 operand for Thumb-2.
9462 * config/arm/arm.h (reg_class): Add CORE_REGS.
9463 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
9464 (BASE_REG_CLASS): Use CORE_REGS.
9465 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
9466 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
9467 (REGNO_OK_FOR_INDEX_P): Exclude SP.
9468 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
9469 ARM_REGNO_OK_FOR_INDEX_P.
9470 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
9471 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
9472 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
9473 (ldm/stm peepholes): Ditto.
9474 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
9475 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
9476 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
9477 * config/arm/constraints.md: Enable "k" constraint on ARM.
9479 2008-02-27 Ben Elliston <bje@au.ibm.com>
9481 * config/rs6000/rs6000.c: Annotate cache line size field in all
9482 instances of struct processor_costs.
9484 2008-02-26 David Edelsohn <edelsohn@gnu.org>
9486 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
9487 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
9488 jump_bypass): New counters.
9489 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
9490 * dce.c (gate_ud_dce): Same.
9491 (gate_fast_dce): Same.
9492 * dse.c (gate_dse1): New function.
9493 (gate_dse2): New function.
9494 (gate_dse): Merge results of new gate functions.
9495 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
9496 (gate_handle_jump_bypass): Add dbg_cnt.
9497 (gate_handle_gcse): Add dbg_cnt.
9498 * ifcvt.c (gate_handle_if_conversion): Same.
9499 (gate_handle_if_after_combine): Same.
9500 (gate_handle_if_after_reload): Same.
9501 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
9503 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
9505 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
9507 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
9509 2008-02-26 Jason Merrill <jason@redhat.com>
9512 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
9513 alone if it's the naming decl for the type's main variant.
9515 2008-02-26 Tom Tromey <tromey@redhat.com>
9517 * system.h (USE_MAPPED_LOCATION): Poison.
9518 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
9519 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
9520 (make_goto_expr_edges): Likewise.
9521 (remove_bb): Likewise.
9522 (execute_warn_function_return): Likewise.
9523 * basic-block.h (struct edge_def) <goto_locus>: Change type to
9525 * c-common.c (fname_decl): Remove old location code.
9526 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
9528 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
9530 (ASM_INPUT_SOURCE_LOCATION): Likewise.
9531 (gen_rtx_ASM_INPUT): Likewise.
9532 (gen_rtx_ASM_INPUT_loc): Likewise.
9533 (get_rtx_asm_OPERANDS): Remove.
9534 * cfglayout.c (insn_locators_alloc): Remove old location code.
9535 (set_curr_insn_source_location): Likewise.
9536 (curr_insn_locator): Likewise.
9537 * print-tree.c (print_node): Remove old location code.
9538 * tree-mudflap.c (mf_varname_tree): Remove old location code.
9539 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
9540 * cfgexpand.c (expand_gimple_cond_expr): Don't use
9541 location_from_locus.
9542 (construct_exit_block): Remove old location code.
9543 * emit-rtl.c (force_next_line_note): Remove old location code.
9544 * profile.c (branch_prob): Remove old location code.
9545 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
9546 LOC_LINE): Remove old-location variants.
9547 * langhooks.c (lhd_print_error_function): Remove old location
9549 * configure, config.in: Rebuilt.
9550 * configure.ac (--enable-mapped-location): Remove.
9551 * c-decl.c (c_init_decl_processing): Remove old location code.
9552 (finish_function): Likewise.
9553 * recog.c (decode_asm_operands): Remove old location code.
9554 * c-pch.c (c_common_read_pch): Remove old location code.
9555 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
9557 * gimple-low.c (lower_function_body): Remove old location code.
9558 * toplev.c (unknown_location): Remove.
9559 (push_srcloc): Remove old-location variant.
9560 (process_options): Remove old location code.
9561 (lang_dependent_init): Likewise.
9562 * input.h (UNKNOWN_LOCATION): Move definition.
9563 (location_t): Undeprecate.
9564 (source_locus): Remove.
9565 (location_from_locus): Remove.
9566 (struct location_s): Remove.
9567 Remove all old-location code.
9568 (input_line, input_filename): Remove.
9569 * final.c (final_scan_insn): Remove old location code.
9570 * diagnostic.c (diagnostic_build_prefix): Remove
9571 USE_MAPPED_LOCATION test.
9572 * tree.h (gimple_stmt) <locus>: Now a location_t.
9573 (tree_exp) <locus>: Likewise.
9574 (DECL_IS_BUILTIN): Remove old-location variant.
9575 (annotate_with_file_line, annotate_with_locus): Likewise.
9576 (expr_locus, set_expr_locus): Update.
9577 * tree.c (build1_stat): Remove old location code.
9578 (last_annotated_node): Remove.
9579 (annotate_with_file_line): Remove old-location variant.
9580 (annotate_with_locus): Likewise.
9581 (expr_location): Remove old location code.
9582 (set_expr_location): Likewise.
9583 (expr_has_location): Likewise.
9584 (expr_locus): Likewise.
9585 (set_expr_locus): Likewise.
9586 (expr_filename): Don't use location_from_locus.
9587 (expr_lineno): Likewise.
9588 * rtl-error.c (location_for_asm): Remove old location code.
9589 * c-lex.c (cb_line_change): Remove old location code.
9590 (fe_file_change): Likewise.
9591 (cb_def_pragma): Likewise.
9592 (c_lex_with_flags): Likewise.
9593 * gengtype.c (do_typedef): Don't special-case location types.
9594 (define_location_structures): Remove.
9595 (main): Don't call define_location_structures.
9596 * tree-pretty-print.c (dump_implicit_edges): Remove old location
9599 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9602 * builtins.def (BUILT_IN_STDARG_START): Remove.
9603 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
9604 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9605 * tree-inline.c (inline_forbidden_p_1): Likewise.
9607 2008-02-26 Richard Guenther <rguenther@suse.de>
9609 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9610 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9611 (lookup_decl_from_uid): Declare.
9612 (remove_decl_from_map): Likewise.
9613 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9614 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9615 (decl_for_uid_map): New global hashtable mapping DECL_UID
9617 (init_ttree): Allocate it.
9618 (insert_decl_to_uid_decl_map): New helper function.
9619 (make_node_stat): Insert new decls into the map.
9620 (copy_node_stat): Likewise.
9621 (lookup_decl_from_uid): New function.
9622 (remove_decl_from_map): Likewise.
9623 (print_decl_for_uid_map_statistics): New helper.
9624 (dump_tree_statistics): Call it.
9626 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9627 (referenced_var_iterator): Adjust.
9628 (FOR_EACH_REFERENCED_VAR): Adjust.
9629 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9630 (num_referenced_vars): Adjust.
9631 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9632 (first_referenced_var): Remove.
9633 (end_referenced_vars_p): Likewise.
9634 (next_referenced_var): Likewise.
9635 (referenced_var_iterator_set): New helper function.
9636 * tree-dfa.c (referenced_var_lookup): Adjust.
9637 (referenced_var_check_and_insert): Likewise.
9638 (remove_referenced_var): Likewise.
9639 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9640 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9641 (verify_call_clobbering): Likewise.
9642 (verify_memory_partitions): Likewise.
9643 (init_tree_ssa): Allocate bitmap instead of hashtable for
9645 (delete_tree_ssa): Adjust.
9646 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9647 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9648 (compute_tag_properties): Likewise.
9649 (set_initial_properties): Likewise.
9650 (find_partition_for): Likewise.
9651 (update_reference_counts): Likewise.
9652 (dump_may_aliases_for): Likewise.
9653 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9654 (add_call_clobber_ops): Likewise.
9655 (add_call_read_ops): Likewise.
9656 (get_asm_expr_operands): Likewise.
9657 * tree-into-ssa.c (dump_decl_set): Likewise.
9658 (update_ssa): Likewise.
9659 * tree-sra.c (scan_function): Likewise.
9660 (decide_instantiations): Likewise.
9661 (scalarize_parms): Likewise.
9662 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9663 (dsa_named_for): Likewise.
9664 * tree-ssa-structalias.c (update_alias_info): Likewise.
9665 (merge_smts_into): Likewise.
9667 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9670 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
9671 * c-opts.c (c_common_handle_option): Wall enables
9672 Wvolatile-register-var.
9673 * common.opt: Move Wvolatile-register-var to...
9676 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9678 * common.opt (Wlarger-than=): New.
9679 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
9681 * opts.c (common_handle_option): Handle -Wlarger-than=.
9682 * optc-gen.awk: Likewise.
9683 * opth-gen.awk: Likewise.
9684 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
9685 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9687 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9689 * c-common.c (match_case_to_enum_1): Add appropriate
9690 OPT_W* parameter to warning.
9691 (c_do_switch_warnings): Likewise.
9692 * c-typeck.c (warning_init): Add one more parameter following
9694 (push_init_level): Update call to warning_init.
9695 (pop_init_level): Likewise.
9696 (add_pending_init): Likewise.
9697 (output_init_element: Likewise.
9699 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9702 * toplev.c (toplev_main): If there are warnings or error, print
9703 errors for ignored options.
9704 * opts.c (ignored_options): New static variable.
9705 (postpone_unknown_option_error): New.
9706 (print_ignored_options): New.
9707 (handle_option): Postpone errors for unknown -Wno-* options.
9708 * opts.h (print_ignored_options): Declare.
9710 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
9712 * config/mips/mips.md (loadgp_blockage, blockage): Change type
9715 2008-02-25 Richard Guenther <rguenther@suse.de>
9718 2008-02-25 Richard Guenther <rguenther@suse.de>
9720 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9721 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9722 (lookup_decl_from_uid): Declare.
9723 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9724 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9725 (decl_for_uid_map): New global hashtable mapping DECL_UID
9727 (init_ttree): Allocate it.
9728 (insert_decl_to_uid_decl_map): New helper function.
9729 (make_node_stat): Insert new decls into the map.
9730 (copy_node_stat): Likewise.
9731 (lookup_decl_from_uid): New function.
9732 (print_decl_for_uid_map_statistics): New helper.
9733 (dump_tree_statistics): Call it.
9735 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9736 (referenced_var_iterator): Adjust.
9737 (FOR_EACH_REFERENCED_VAR): Adjust.
9738 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9739 (num_referenced_vars): Adjust.
9740 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9741 (first_referenced_var): Remove.
9742 (end_referenced_vars_p): Likewise.
9743 (next_referenced_var): Likewise.
9744 (referenced_var_iterator_set): New helper function.
9745 * tree-dfa.c (referenced_var_lookup): Adjust.
9746 (referenced_var_check_and_insert): Likewise.
9747 (remove_referenced_var): Likewise.
9748 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9749 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9750 (verify_call_clobbering): Likewise.
9751 (verify_memory_partitions): Likewise.
9752 (init_tree_ssa): Allocate bitmap instead of hashtable for
9754 (delete_tree_ssa): Adjust.
9755 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9756 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9757 (compute_tag_properties): Likewise.
9758 (set_initial_properties): Likewise.
9759 (find_partition_for): Likewise.
9760 (update_reference_counts): Likewise.
9761 (dump_may_aliases_for): Likewise.
9762 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9763 (add_call_clobber_ops): Likewise.
9764 (add_call_read_ops): Likewise.
9765 (get_asm_expr_operands): Likewise.
9766 * tree-into-ssa.c (dump_decl_set): Likewise.
9767 (update_ssa): Likewise.
9768 * tree-sra.c (scan_function): Likewise.
9769 (decide_instantiations): Likewise.
9770 (scalarize_parms): Likewise.
9771 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9772 (dsa_named_for): Likewise.
9773 * tree-ssa-structalias.c (update_alias_info): Likewise.
9774 (merge_smts_into): Likewise.
9776 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
9779 * doc/invoke.texi (-fcx-limited-range): Document new option.
9780 * toplev.c (process_options): Handle -fcx-fortran-rules.
9781 * common.opt: Add documentation for -fcx-fortran-rules.
9783 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
9786 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
9787 actual behaviour and C99.
9789 2008-02-26 Ben Elliston <bje@au.ibm.com>
9791 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
9792 (ASM_CPU_POWER6_SPEC): Likewise.
9793 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
9794 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
9795 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
9797 2008-02-25 Richard Guenther <rguenther@suse.de>
9799 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9800 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9801 (lookup_decl_from_uid): Declare.
9802 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9803 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9804 (decl_for_uid_map): New global hashtable mapping DECL_UID
9806 (init_ttree): Allocate it.
9807 (insert_decl_to_uid_decl_map): New helper function.
9808 (make_node_stat): Insert new decls into the map.
9809 (copy_node_stat): Likewise.
9810 (lookup_decl_from_uid): New function.
9811 (print_decl_for_uid_map_statistics): New helper.
9812 (dump_tree_statistics): Call it.
9814 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9815 (referenced_var_iterator): Adjust.
9816 (FOR_EACH_REFERENCED_VAR): Adjust.
9817 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9818 (num_referenced_vars): Adjust.
9819 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9820 (first_referenced_var): Remove.
9821 (end_referenced_vars_p): Likewise.
9822 (next_referenced_var): Likewise.
9823 (referenced_var_iterator_set): New helper function.
9824 * tree-dfa.c (referenced_var_lookup): Adjust.
9825 (referenced_var_check_and_insert): Likewise.
9826 (remove_referenced_var): Likewise.
9827 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9828 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9829 (verify_call_clobbering): Likewise.
9830 (verify_memory_partitions): Likewise.
9831 (init_tree_ssa): Allocate bitmap instead of hashtable for
9833 (delete_tree_ssa): Adjust.
9834 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9835 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9836 (compute_tag_properties): Likewise.
9837 (set_initial_properties): Likewise.
9838 (find_partition_for): Likewise.
9839 (update_reference_counts): Likewise.
9840 (dump_may_aliases_for): Likewise.
9841 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9842 (add_call_clobber_ops): Likewise.
9843 (add_call_read_ops): Likewise.
9844 (get_asm_expr_operands): Likewise.
9845 * tree-into-ssa.c (dump_decl_set): Likewise.
9846 (update_ssa): Likewise.
9847 * tree-sra.c (scan_function): Likewise.
9848 (decide_instantiations): Likewise.
9849 (scalarize_parms): Likewise.
9850 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9851 (dsa_named_for): Likewise.
9852 * tree-ssa-structalias.c (update_alias_info): Likewise.
9853 (merge_smts_into): Likewise.
9855 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
9858 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
9859 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
9860 * alias.h (nonoverlapping_memrefs_p): Likewise.
9862 2008-02-25 Jan Beulich <jbeulich@novell.com>
9864 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
9865 * config/i386/netware-libgcc.exp: Add __bswap?i2,
9866 __emultls_get_address, __emultls_register_common,
9867 __floatundi?f, and _Unwind_GetIPInfo.
9868 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
9869 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
9870 (gen_regparm_prefix): Likewise.
9871 (i386_nlm_encode_section_info): Sync with
9872 config/i386/winnt.c:i386_pe_encode_section_info().
9873 (i386_nlm_maybe_mangle_decl_assembler_name): New.
9874 i386_nlm_mangle_decl_assembler_name): New.
9875 (netware_override_options): New.
9876 * config/i386/netware.h (netware_override_options): Declare.
9877 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
9878 (i386_nlm_mangle_decl_assembler_name): Declare.
9879 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
9881 2008-02-25 Ben Elliston <bje@au.ibm.com>
9884 * c-decl.c (grokdeclarator): Remove unused local variables
9885 `typedef_type' and `type_as_written'.
9887 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
9888 unused local variable `has_hot_blocks'.
9889 (fix_crossing_conditional_branches): Remove unused local variable
9892 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
9895 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
9896 using DEF_C99_BUILTIN.
9897 (BUILT_IN_NANF): Ditto.
9898 (BUILT_IN_NANL): Ditto.
9900 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
9901 Revital Eres <eres@il.ibm.com>
9903 * modulo-sched.c (calculate_must_precede_follow): Address TODO
9904 regarding the order of two dependent insns in the same row.
9906 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
9908 * stor-layout.c (layout_decl): Do not bump the alignment of a
9909 bit-field to more than byte alignment if it is packed.
9911 2008-02-24 David Edelsohn <edelsohn@gnu.org>
9913 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
9916 2008-02-24 Diego Novillo <dnovillo@google.com>
9918 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
9921 * tree-vrp.c (vrp_evaluate_conditional): With
9922 -Wtype-limits, emit a warning when comparing against a
9923 constant outside the natural range of OP0's type.
9924 * c.opt (Wtype-limits): Move ...
9925 * common.opt (Wtype-limits): ... here.
9927 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
9929 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
9930 * config/rs6000/e300c2c3.md: New file.
9931 * config/rs6000/rs6000.c (processor_costs): Add new costs for
9933 (rs6000_override_options): Add e300c2 and e300c3 cases to
9934 processor_target_table. Do not allow usage of Altivec or Spe
9935 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
9936 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
9937 * config/rs6000/rs6000.h (processor_type): Add
9938 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
9939 (ASM_CPU_SPEC): Add e300c2 and e300c3.
9940 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
9941 and ppce300c3. Include e300c2c3.md.
9943 2008-02-23 David Edelsohn <edelsohn@gnu.org>
9945 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
9946 instead of TARGET_STRICT_ALIGN.
9948 2008-02-23 Joseph Myers <joseph@codesourcery.com>
9950 * explow.c (memory_address): Assert that the generated address is
9953 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9956 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
9957 * config/darwin-ppc-ldouble-patch.def: New file.
9958 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
9959 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
9960 SUBTARGET_INIT_BUILTINS if defined.
9961 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
9964 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
9967 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
9968 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
9970 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
9973 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
9974 file" warning condtional on -Winvalid-PCH.
9976 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
9978 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
9980 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
9984 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
9985 prevent reload from using MMX registers.
9986 (*mov<mode>_internal): Ditto.
9987 (*movv2sf_internal_rex64): Ditto.
9988 (*movv2sf_internal): Ditto.
9990 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9992 PR documentation/31569
9993 * doc/install.texi2html: Use makeinfo --no-number-sections.
9995 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
9997 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
9998 ensure that we can address an entire entity > 8 bytes. Don't
9999 generate reg+reg addressing for such data.
10001 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
10003 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
10004 strings when optimizing for size, unless the target cares about
10007 2008-02-22 Tom Tromey <tromey@redhat.com>
10009 * regclass.c (current_pass): Remove declaration.
10011 2008-02-22 Anatoly Sokolov <aesok@post.ru>
10013 * config/avr/libgcc.S (__RAMPZ__): Define.
10014 (__do_copy_data): Add for devices with 128KB code memory.
10016 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
10018 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
10020 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
10022 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
10024 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
10027 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10030 * c-typeck.c (build_binary_op): Warn about floating point
10031 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
10033 2008-02-21 Janis Johnson <janis187@us.ibm.com>
10036 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
10037 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
10039 (rs6000_override_options): Set altivec_abi as default, not override,
10040 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
10041 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
10042 is used; use new member spe_abi.
10043 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
10044 spe_abi and altivec_abi.
10046 2008-02-22 Tomas Bily <tbily@suse.cz>
10048 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
10050 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10053 * config.build (build_file_translate): Set to `CMD //c' only if
10055 * Makefile.in (build_file_translate): Improve comment.
10057 2008-02-21 Jan Hubicka <jh@suse.cz>
10059 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
10060 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
10061 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
10063 2008-02-21 Michael Matz <matz@suse.de>
10066 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
10068 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
10070 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
10071 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
10072 as insn constraint.
10073 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
10074 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
10075 SSE_VEC_FLOAT_MODE_P as insn constraint.
10076 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
10077 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
10078 sse4a_movntdf using MODEF mode iterator.
10079 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
10080 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
10081 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
10082 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
10083 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
10084 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
10085 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
10087 2008-02-21 Richard Guenther <rguenther@suse.de>
10089 * tree.def (PAREN_EXPR): New tree code.
10090 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
10092 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
10093 * expr.c (expand_expr_real_1): Likewise.
10094 * tree-inline.c (estimate_num_insns_1): Likewise.
10095 * tree-complex.c (expand_complex_move): Likewise.
10096 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
10099 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
10102 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
10104 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
10107 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
10109 * config/sh/sh.c (find_barrier): Don't go past
10110 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
10112 2008-02-20 DJ Delorie <dj@redhat.com>
10114 * config/h8300/h8300.md (insv): Force source operand to be a register.
10116 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
10117 as a jump, not as a plain insn.
10119 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
10121 * doc/invoke.texi (Warning Options): Add new option
10122 -Wframe-larger-than=.
10123 (-Wframe-larger-than): Document.
10125 * flags.h (warn_frame_larger_than, frame_larger_than_size):
10126 Add declarations for new option variables.
10128 * final.c (final_start_function): Check the frame size
10129 before emission and issue a Wframe-larger-than warning.
10131 * opts.c (warn_frame_larger_than, frame_larger_than_size):
10132 Add definitions for new option variables.
10133 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
10135 * common.opt (Wframe-larger-than=): New option.
10137 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
10139 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
10140 (<sse>_div<mode>3): Ditto.
10141 (<sse>_vmdiv<mode>3): Ditto.
10142 (<sse>_vmsqrt<mode>2): Ditto.
10143 (*smax<mode>3): Ditto.
10144 (sse5_frcz<mode>2): Ditto.
10145 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
10146 as insn constraint.
10148 2008-02-20 Richard Guenther <rguenther@suse.de>
10150 PR middle-end/35265
10151 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
10152 be happy with INTEGRAL_TYPE_P.
10154 2008-02-20 Richard Guenther <rguenther@suse.de>
10156 * fold-const.c (split_tree): Associate floatig-point expressions
10157 if flag_associative_math is set.
10159 2008-02-20 Richard Guenther <rguenther@suse.de>
10161 * tree.h (fold_real_zero_addition_p): Declare.
10162 * fold-const.c (fold_real_zero_addition_p): Export.
10163 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
10164 floating-point operations with zero and one.
10166 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
10168 * doc/install.texi: Correct references to CFLAGS, replacing them
10169 with BOOT_CFLAGS. Document flags used during bootstrap for
10172 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
10174 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
10175 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
10176 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
10178 (smin<mode>3): Ditto from similar patterns.
10179 (smax<mode>3): Ditto.
10180 (*ieee_smin<mode>3): Ditto.
10181 (*ieee_smax<mode>3): Ditto.
10182 * config/i386/sse.md (sse): New mode attribute.
10183 (mov<mode>): Macroize expander from movv4sf and movv2df using
10184 SSEMODEF2P mode iterator.
10185 (<sse>_movnt<mode>): Ditto from similar patterns. Use
10186 SSE_VEC_FLOAT_MODE_P as insn constraint.
10187 (storent<mode>): Ditto.
10188 (storent<mode>): Macroize expander from storentsf and storentdf using
10189 MODEF mode iterator.
10190 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
10191 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
10192 (abs<mode>2): Ditto from similar patterns.
10193 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
10194 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
10195 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
10196 (<sse>_vmsqrt<mode>2): Ditto.
10197 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
10198 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
10199 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
10200 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
10201 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
10202 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
10203 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
10205 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
10206 iterator and SSE_FLOAT_MODE_P as insn constraint.
10207 (<sse>_ucomi): Ditto from similar patterns.
10208 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
10209 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
10210 SSE_VEC_FLOAT_MODE_P as insn constraint.
10211 (vcond<mode>): Ditto from similar patterns.
10212 (and<mode>3, *and<mode>3): Ditto.
10213 (<sse>_nand<mode>3): Ditto.
10214 (ior<mode>3, *ior<mode>3): Ditto.
10215 (xor<mode>3, *xor<mode>3): Ditto.
10216 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
10217 iterator and SSE_FLOAT_MODE_P as insn constraint.
10218 (*nand<mode>3): Ditto from similar patterns.
10219 (*ior<mode>3): Ditto.
10220 (*xor<mode>3): Ditto.
10222 2008-02-20 Ira Rosen <irar@il.ibm.com>
10224 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
10225 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
10226 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
10228 2008-02-19 Jan Hubicka <jh@suse.cz>
10230 * predict.c (tree_bb_level_predictions): Remove variable next
10231 mistakely introduced by previous commit.
10233 2008-02-19 Jan Hubicka <jh@suse.cz>
10235 * predict.c (predict_paths_leading_to): Rewrite.
10236 (predict_paths_for_bb): New.
10237 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
10239 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10242 * Makefile.in (build_file_translate): New.
10243 (gcc-vers.texi): Use it for translating $(abs_srcdir).
10244 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
10245 * configure.ac (build_file_translate): Substitute it.
10246 * configure: Regenerate.
10248 2008-02-19 Jan Hubicka <jh@suse.cz>
10250 PR rtl-optimization/34408
10251 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
10254 2008-02-19 Jan Hubicka <jh@suse.cz>
10256 PR middle-end/28779
10257 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
10260 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
10263 * config/i386/i386-modes.def: Revert the last DI alignment
10264 change until Ada people can look into it.
10266 2008-02-19 Nick Clifton <nickc@redhat.com>
10268 * opts.c (print_specific_help): Fix typo in --help text.
10270 2008-02-19 Jakub Jelinek <jakub@redhat.com>
10273 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
10274 32-bit inline asm without asm alternatives for host GCC < 3.0.
10276 2008-02-19 Richard Guenther <rguenther@suse.de>
10278 PR tree-optimization/34989
10279 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
10280 Allow propagation to INDIRECT_REF if we can simplify only.
10282 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10284 * c-common.c (warn_for_collisions_1): Use appropriate option when
10287 2008-02-19 Nick Clifton <nickc@redhat.com>
10290 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
10291 (handle_options): Fix indentation.
10292 (print_filtered_help): If no language-specific options were
10293 displayed tell the user how to list all the options supported by
10294 the language's front-end.
10295 (print_specific_help): Fix indentation and remove duplicate line.
10296 (common_handle_option): Handle the -v option.
10297 For --help enable the display of undocumented options if the -v
10298 switch has been included on the command line.
10299 For --help= check for overlaps in the arguments between the option
10300 classes and the language names and issue a warning when they
10301 cannot be disambiguated.
10302 * c.opt (v): Pass on to the common option handler.
10304 2008-02-19 Revital Eres <eres@il.ibm.com>
10306 * modulo-sched.c (sms_schedule): Change dump message when
10307 create_ddg function fails.
10308 (try_scheduling_node_in_cycle): Rename row to cycle.
10309 (print_partial_schedule): Rename CYCLE to ROW.
10311 2008-02-19 Christian Bruel <christian.bruel@st.com>
10312 Zdenek Dvorak <ook@ucw.cz>
10314 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
10316 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
10319 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
10320 (*x86_movdicc_0_m1_se): Ditto.
10322 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
10324 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
10325 (CMPtype): Define as __gcc_CMPtype.
10326 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
10327 (CMPtype): Define as __gcc_CMPtype.
10329 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
10331 Support valgrind 3.3 for --enable-checking=valgrind.
10332 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
10334 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
10335 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
10336 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
10337 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
10338 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
10339 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
10340 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
10342 * ggc-zone.c: Similar.
10343 * ggc-page.c: Similar.
10345 2008-02-19 Paul Brook <paul@codesourcery.com>
10348 * config/arm/ieee754-df.S: Fix do_it typo.
10349 * config/arm/ieee754-sf.S: Fix do_it typo.
10351 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
10354 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
10355 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
10356 (OPTION_MASK_ISA_SSE_SET): Likewise.
10357 (OPTION_MASK_ISA_SSE2_SET): Likewise.
10358 (OPTION_MASK_ISA_SSE3_SET): Likewise.
10359 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
10360 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
10361 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
10362 (OPTION_MASK_ISA_SSE4_SET): Likewise.
10363 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
10364 (OPTION_MASK_ISA_SSE5_SET): Likewise.
10365 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
10366 (OPTION_MASK_ISA_MMX_UNSET): Updated.
10367 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
10368 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
10369 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
10370 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
10371 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
10372 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
10373 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
10374 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
10375 (OPTION_MASK_ISA_SSE4): Removed.
10376 (ix86_handle_option): Turn on bits in ix86_isa_flags and
10377 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
10378 (override_options): Don't turn on implied SSE/MMX bits in
10381 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
10383 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10386 2008-02-18 Joey Ye <joey.ye@intel.com>
10388 PR middle-end/34921
10389 * tree-nested.c (insert_field_into_struct): Set type alignment
10390 to field alignment if the former is less than the latter.
10392 2008-02-18 Jakub Jelinek <jakub@redhat.com>
10394 * BASE-VER: Set to 4.4.0.
10396 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10398 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
10399 * doc/cfg.texi: Likewise.
10400 * doc/extend.texi: Likewise.
10401 * doc/gty.texi: Likewise.
10402 * doc/invoke.texi: Likewise.
10403 * doc/loop.texi: Likewise.
10404 * doc/md.texi: Likewise.
10405 * doc/passes.texi: Likewise.
10406 * doc/rtl.texi: Likewise.
10407 * doc/sourcebuild.texi: Likewise.
10408 * doc/tm.texi: Likewise.
10409 * doc/tree-ssa.texi: Likewise.
10411 2008-02-17 Richard Guenther <rguenther@suse.de>
10413 PR middle-end/35227
10414 * tree-complex.c (init_parameter_lattice_values): Handle parameters
10415 without default definition.
10417 2008-02-17 Richard Guenther <rguenther@suse.de>
10419 PR tree-optimization/35231
10420 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
10423 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
10426 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10427 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10428 libgcc_cmp_return mode.
10430 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10433 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
10435 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
10437 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
10440 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10442 * doc/c-tree.texi: Use `@.' where appropriate.
10443 * doc/extend.texi: Likewise.
10444 * doc/install.texi: Likewise.
10445 * doc/invoke.texi: Likewise.
10446 * doc/loop.texi: Likewise.
10447 * doc/makefile.texi: Likewise.
10448 * doc/md.texi: Likewise.
10449 * doc/passes.texi: Likewise.
10450 * doc/standards.texi: Likewise.
10451 * doc/tm.texi: Likewise.
10453 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10455 PR middle-end/35196
10456 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
10458 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
10459 rather than in entry_bb.
10461 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10463 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10464 libgcc_cmp_return mode.
10466 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10468 PR middle-end/35130
10469 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
10470 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
10472 2008-02-15 Richard Guenther <rguenther@suse.de>
10473 Zdenek Dvorak <ook@ucw.cz>
10475 PR tree-optimization/35164
10476 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
10477 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
10478 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
10479 Only propagate addresses which do not have abnormal SSA_NAMEs
10482 2008-02-15 Joseph Myers <joseph@codesourcery.com>
10485 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
10487 2008-02-15 Jan Hubicka <jh@suse.cz>
10489 PR middle-end/35149
10490 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
10492 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10494 PR middle-end/34621
10495 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
10496 when calculating alignment_pad.
10498 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10500 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
10501 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
10502 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
10503 and STACK_BOUNDARY define.
10505 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
10507 PR preprocessor/35061
10508 * c-pragma.c (handle_pragma_pop_macro): Check that
10509 pushed_macro_table has been allocated.
10511 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
10513 PR middle-end/35136
10514 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
10515 (force_gimple_operand): Likewise.
10516 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
10517 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
10518 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
10519 (find_interesting_uses_address): Check addressability and alignment
10520 of the base expression only after substituting bases of IVs into it.
10522 2008-02-14 Michael Matz <matz@suse.de>
10525 * function.c (instantiate_virtual_regs_in_insn): Reload address
10526 before falling back to reloading the whole operand.
10528 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
10530 * config/s390/s390.c (s390_mainpool_start): Emit the pool
10531 before the first section switch note.
10533 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10535 * doc/bugreport.texi: Update copyright years.
10536 * doc/c-tree.texi: Likewise.
10537 * doc/cfg.texi: Likewise.
10538 * doc/cpp.texi: Likewise.
10539 * doc/cppinternals.texi: Likewise.
10540 * doc/fragments.texi: Likewise.
10541 * doc/frontends.texi: Likewise.
10542 * doc/gcc.texi: Likewise.
10543 * doc/gty.texi: Likewise.
10544 * doc/hostconfig.texi: Likewise.
10545 * doc/implement-c.texi: Likewise.
10546 * doc/libgcc.texi: Likewise.
10547 * doc/loop.texi: Likewise.
10548 * doc/makefile.texi: Likewise.
10549 * doc/options.texi: Likewise.
10550 * doc/passes.texi: Likewise.
10551 * doc/rtl.texi: Likewise.
10552 * doc/sourcebuild.texi: Likewise.
10553 * doc/standards.texi: Likewise.
10554 * doc/tree-ssa.texi: Likewise.
10555 * doc/trouble.texi: Likewise.
10557 * doc/extend.texi: Use @: or add comma where appropriate.
10558 * doc/invoke.texi: Likewise.
10559 * doc/tm.texi: Likewise.
10561 2008-02-14 Alan Modra <amodra@bigpond.net.au>
10564 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
10567 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
10569 * doc/md.texi (clz, ctz): Add reference.
10570 * doc/rtl.texi (clz, ctz): Likewise.
10572 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10575 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
10578 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
10580 * config/s390/s390.c (struct constant_pool): New field
10581 emit_pool_after added.
10582 (s390_mainpool_start): Set the emit_pool_after flag according
10583 to the section switch notes.
10584 (s390_mainpool_finish): Consider emit_pool_after when emitting
10585 the literal pool at the end of the function.
10586 (s390_chunkify_start): Force literal pool splits at section
10589 2008-02-13 Michael Matz <matz@suse.de>
10592 * var-tracking.c (clobber_variable_part): Correctly traverse the
10595 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10598 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
10599 Add -fdump-ipa-inline.
10600 * tree-dump.c (dump_files): Remove tree-inlined dump.
10601 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
10603 2008-02-12 Richard Guenther <rguenther@suse.de>
10605 PR tree-optimization/35171
10606 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
10609 2008-02-12 Richard Guenther <rguenther@suse.de>
10611 PR middle-end/35163
10612 * fold-const.c (fold_widened_comparison): Use get_unwidened in
10613 value-preserving mode. Disallow final truncation.
10615 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
10617 PR middle-end/35136
10618 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
10619 code from here to...
10620 (force_gimple_operand): ...here.
10622 2008-02-12 Jakub Jelinek <jakub@redhat.com>
10625 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
10626 non-compatible pointers.
10627 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
10628 different FIELD_DECLs, try harder by comparing field offsets, sizes
10631 PR inline-asm/35160
10632 * function.c (match_asm_constraints_1): Don't replace the same input
10635 2008-02-12 Anatoly Sokolov <aesok@post.ru>
10637 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
10638 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
10639 (expand_epilogue): Restore RAMPZ register.
10640 * config/avr/avr.md (RAMPZ_ADDR): New constant.
10642 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
10644 * config/i386/cygwin.asm: (__alloca): Correct calling
10645 convention and alignment.
10646 (__chkstk): Force 8 byte stack alignment.
10648 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
10649 Richard Guenther <rguenther@suse.de>
10651 PR tree-optimization/33992
10652 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
10653 the zero we compare against.
10655 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
10657 PR libfortran/35063
10658 * gthr-win32.h (__gthread_mutex_destroy_function): New function
10659 to CloseHandle after unlocking to prevent accumulation of handle
10662 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10664 PR middle_end/34150
10665 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
10666 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
10667 and update LABEL_NUSES during and after reload.
10669 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
10671 PR middle-end/34627
10672 * combine.c (simplify_if_then_else): Make sure the comparison is
10673 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
10675 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
10678 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
10679 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
10680 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
10681 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
10682 * tree.h (get_type_static_bounds): Likewise.
10684 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10686 * doc/invoke.texi (Option Summary, C++ Dialect Options)
10687 (Objective-C and Objective-C++ Dialect Options, Warning Options):
10688 Make -Wfoo language annotations match what the compiler outputs.
10690 2008-02-08 Sa Liu <saliu@de.ibm.com>
10692 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
10693 intrinsics spu_convts, spu_convtu, spu_convtf.
10695 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
10697 * doc/extend.texi (Function Attributes) <noinline>: Mention
10698 asm ("") as method to keep calls.
10700 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10703 * doc/options.texi (Options): Replace references to opts.sh with
10705 * opts-common.c: Likewise.
10706 * optc-gen.awk: Likewise.
10708 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10710 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
10712 2008-02-07 Richard Henderson <rth@redhat.com>
10715 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
10716 EXPR_LIST for the REG_EQUAL instead of a comparison with a
10719 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
10721 PR tree-optimization/35085
10722 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
10723 for operand entry oe2 in addition to operand entry oe3 in order to
10724 expose more opportunities for vectorizer sum reduction.
10726 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10729 * Makefile.in (LIBS): Remove $(GMPLIBS).
10730 (cc1-dummy, cc1): Add $(GMPLIBS).
10732 2008-02-06 Jan Hubicka <jh@suse.cz>
10735 * i386.md (moddf_integer): Do not produce partial memory stalls for
10736 targets where it hurts.
10738 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
10741 * optabs.c (expand_float): Do not check for decimal modes when
10742 expanding unsigned integer through signed conversion.
10744 2008-02-06 Nick Clifton <nickc@redhat.com>
10746 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
10747 inside the clobber with a match_operand and duplicated operand
10748 number in the constraint.
10749 (ineqbranchsi): Delete redundant comment.
10751 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
10753 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
10754 builtin_define ("__USE_INIT_FINI__").
10755 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
10757 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
10759 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10761 PR documentation/30330
10762 * doc/invoke.texi (C++ Dialect Options)
10763 (Objective-C and Objective-C++ Dialect Options, Warning Options):
10764 For each warning option -Wfoo that allows -Wno-foo, ensure both
10765 -Wfoo and -Wno-foo are listed in the option index. Fix index
10766 entry of -Wswitch-default, index -Wnormalized= including the
10767 `=', and -Wlarger-than-@var{len} including @var{len}.
10769 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
10771 * config/i386/i386.md (floatunssisf2): Use
10772 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
10773 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
10774 Macroize expander using MODEF mode iterator.
10776 2008-02-05 Diego Novillo <dnovillo@google.com>
10778 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
10781 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
10783 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10786 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
10788 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
10791 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
10792 to indicate if a message should be generated.
10793 (init_cumulative_args): Updated.
10794 (function_value_32): Likewise.
10796 2008-02-05 Joseph Myers <joseph@codesourcery.com>
10798 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
10800 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
10803 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
10804 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
10806 2008-02-04 Diego Novillo <dnovillo@google.com>
10808 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
10811 * tree-vrp.c (vrp_evaluate_conditional): With
10812 -Wtype-limits, emit a warning when comparing against a
10813 constant outside the natural range of OP0's type.
10815 2008-02-04 Richard Guenther <rguenther@suse.de>
10817 PR middle-end/33631
10818 * expr.c (count_type_elements): Give for unions instead of
10821 2008-02-04 Richard Guenther <rguenther@suse.de>
10823 PR middle-end/35043
10824 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
10825 to TYPE_DOMAINs base type instead of using bitsizetype here.
10827 2008-02-03 Jason Merrill <jason@redhat.com>
10829 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
10831 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10834 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
10835 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
10836 (RS/6000 and PowerPC Options): Fix typos and markup.
10837 * doc/passes.texi (Tree-SSA passes): Likewise.
10839 2008-02-02 Michael Matz <matz@suse.de>
10842 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
10843 from record_last_reg_set_info.
10844 (record_last_reg_set_info): Take an RTX argument, iterate over all
10845 constituent hardregs.
10846 (record_last_set_info, record_opr_changes): Change calls to
10847 new signature or to record_last_reg_set_info_regno.
10849 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10851 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
10853 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
10855 PR rtl-optimization/34773
10856 * reg-notes.def (EQUAL): Mention significance of combination of
10857 REG_EQUAL and REG_RETVAL.
10858 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
10859 insn that has a REG_RETVAL.
10861 2008-02-01 Roger Sayle <roger@eyesopen.com>
10864 * configure.ac (--enable-fixed-point): Disable unless explicitly
10866 * configure: Regenerate.
10868 2008-02-01 Richard Guenther <rguenther@suse.de>
10871 * invoke.texi (-finline-limit): Remove no longer true parts
10872 of the documentation. Note that there is no default value.
10874 2008-02-01 Andrew Pinski <pinskia@gmail.com>
10875 Mark Mitchell <mark@codesourcery.com>
10876 Ben Elliston <bje@au.ibm.com>
10879 * doc/extend.texi (Other Builtins): Document.
10881 2008-01-31 Tom Browder <tom.browder@gmail.com>
10883 * doc/c-tree.texi (Types): Fix grammar.
10884 (Expression trees): Ditto.
10885 * doc/passes.texi (Tree-SSA passes): Ditto.
10887 * doc/configterms.texi (Configure Terms): Fix typo.
10888 * doc/cpp.texi (Common Predefined Macros): Ditto.
10889 * doc/md.texi (Machine Constraints): Ditto.
10891 * doc/makefile.texi (Makefile): Add comma.
10893 2008-01-31 Tom Browder <tom.browder@gmail.com>
10894 Gerald Pfeifer <gerald@pfeifer.com>
10896 * doc/sourcebuild.texi (Front End): Remove references to CVS
10897 and CVSROOT/modules.
10898 (Texinfo Manuals): Replace reference to CVS by one to SVN.
10899 (Back End): Remove reference to CVS.
10901 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
10904 * config/mips/mips.c (gen_load_const_gp): New function, taking a
10906 (mips16_gp_pseudo_reg): ...here.
10907 * config/mips/mips.md (load_const_gp): Replace with...
10908 (load_const_gp_<mode>): ...this :P-based insn.
10910 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10912 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
10913 options. Minor fixes.
10914 (-std): Move reference to standards closer to where language
10915 standards are first mentioned.
10917 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
10919 PR rtl-optimization/34995
10920 * reload.c (alternative_allows_const_pool_ref): Take an rtx
10921 parameter and return a bool. If the rtx parameter is nonnull,
10922 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
10923 (find_reloads): Update call accordingly. Pass the new operand
10924 if it needed no address reloads, otherwise pass null.
10926 2008-01-30 Richard Henderson <rth@redhat.com>
10929 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
10930 for unbounded arrays.
10932 2008-01-30 Silvius Rus <rus@google.com>
10934 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
10936 2008-01-30 Jan Hubicka <jh@suse.cz>
10939 * i386.c (init_cumulative_args): Use real function declaration when
10942 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
10944 PR rtl-optimization/34998
10945 * global.c (build_insn_chain): Treat non-subreg_lowpart
10946 SUBREGs of pseudos as clobbering all the words covered by the
10947 SUBREG, not just all the bytes.
10948 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
10949 original df_ref rather than an extract parameter.
10950 (global_conflicts): Update call accordingly.
10952 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
10954 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
10955 the overflow check to make it easier to read.
10956 (__fixtfdi): Change the type of the ll member in union
10957 long_double to UDItype_x.
10959 2008-01-30 Jakub Jelinek <jakub@redhat.com>
10961 PR middle-end/34969
10962 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
10963 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
10964 * tree-inline.c (fold_marked_statements): Call
10965 cgraph_update_edges_for_call_stmt if folding a call statement.
10966 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
10967 debug_generic_stmt calls, reset it back afterwards.
10970 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
10972 * c-typeck.c (build_external_ref): Don't pedwarn about
10973 static vars in current function's scope.
10975 2008-01-29 Joseph Myers <joseph@codesourcery.com>
10977 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
10979 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
10982 * ipa-struct-reorg.c: Fix spelling.
10983 * params.def: Ditto.
10985 2008-01-29 Richard Guenther <rguenther@suse.de>
10987 PR middle-end/35006
10988 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
10990 * tree-inline.c (remap_type): Increment remapping_type_depth
10991 around remapping types.
10992 (copy_body_r): Only add referenced variables if they are referenced
10993 from code, not types.
10995 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
11006 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
11007 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
11009 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
11012 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
11013 pointer for tiny stack.
11015 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
11017 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
11019 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
11021 * config/vx-common.h: Fix typo in comment.
11023 2008-01-28 Ian Lance Taylor <iant@google.com>
11027 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
11028 coalesce pointers if they have different DECL_NO_TBAA_P values.
11029 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
11030 between variables with different DECL_NO_TBAA_P values.
11032 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
11035 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
11036 are not legitimate small data references on SPE targets.
11038 2008-01-28 David Daney <ddaney@avtrex.com>
11040 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
11042 2008-01-28 David Daney <ddaney@avtrex.com>
11044 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
11046 2008-01-27 Joseph Myers <joseph@codesourcery.com>
11048 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
11049 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
11050 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
11051 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
11052 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
11053 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
11054 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
11055 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
11057 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
11059 * basic-block.h (condjump_equiv_p): Fix comment.
11061 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
11063 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
11064 print_generic_stmt_indented): Fix comment.
11066 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
11068 * configure.ac (__stack_chk_fail): Add detecion for availability
11069 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
11070 * configure: Regenerate.
11072 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
11074 PR middle-end/34688
11075 * final.c (output_addr_const): Handle TRUNCATE.
11077 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
11080 * tree-ssa-loop-ivopts.c (comp_cost): New type.
11081 (zero_cost, infinite_cost): New constants.
11082 (struct cost_pair): Change type of cost to comp_cost.
11083 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
11084 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
11086 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
11087 split_address_cost, ptr_difference_cost, difference_cost,
11088 get_computation_cost_at, get_computation_cost,
11089 determine_use_iv_cost_generic, determine_use_iv_cost_address,
11090 determine_use_iv_cost_condition, determine_use_iv_costs,
11091 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
11092 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
11093 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
11094 Change type of cost to comp_cost.
11095 (determine_iv_cost): Increase cost of non-original ivs, instead
11096 of decreasing the cost of original ones.
11097 (get_address_cost): Indicate the complexity of the addressing mode
11099 (try_add_cand_for): Prefer using ivs not specific to some object.
11100 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
11102 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
11103 Janis Johnson <janis187@us.ibm.com>
11106 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
11107 (TARGET_INSTANTIATE_DECLS): Likewise.
11108 * target.h (expand_to_rtl_hook): New target hook.
11109 (instantiate_decls): Likewise.
11110 * function.c (instantiate_decl): Make non-static. Rename to...
11111 (instantiate_decl_rtl): ... this.
11112 (instantiate_expr): Use instantiate_decl_rtl.
11113 (instantiate_decls_1): Likewise.
11114 (instantiate_decls): Likewise.
11115 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
11116 * function.h (instantiate_decl_rtl): Add prototype.
11117 * cfgexpand.c (target.h): New include.
11118 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
11119 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
11120 (TARGET_INSTANTIATE_DECLS): Likewise.
11121 (TARGET_INITIALIZER): New target hooks added.
11122 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
11124 * config/rs6000/rs6000.c (tree-flow.h): New include.
11125 (machine_function): Add sdmode_stack_slot field.
11126 (rs6000_alloc_sdmode_stack_slot): New function.
11127 (rs6000_instantiate_decls): Likewise.
11128 (rs6000_secondary_memory_needed_rtx): Likewise.
11129 (rs6000_check_sdmode): Likewise.
11130 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
11131 (TARGET_INSTANTIATE_DECLS): Likewise.
11132 (rs6000_hard_regno_mode_ok): Allow SDmode.
11133 (num_insns_constant): Likewise. Handle _Decimal32 constants.
11134 (rs6000_emit_move): Handle SDmode.
11135 (function_arg_advance): Likewise.
11136 (function_arg): Likewise.
11137 (rs6000_gimplify_va_arg): Likewise. Add special handling of
11138 SDmode var args for 32-bit compiles.
11139 (rs6000_secondary_reload_class): Handle SDmode.
11140 (rs6000_output_function_epilogue): Likewise.
11141 (rs6000_function_value): Simplify if statement.
11142 (rs6000_libcall_value): Likewise.
11143 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
11144 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
11145 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
11146 (movsd_hardfloat): New define_insn.
11147 (movsd_softfloat): Likewise.
11148 (movsd_store): Likewise.
11149 (movsd_load): Likewise.
11150 (extendsddd2): Likewise.
11151 (extendsdtd2): Likewise.
11152 (truncddsd2): Likewise.
11153 (movdd_hardfloat64): Fixup comment.
11154 (UNSPEC_MOVSD_LOAD): New constant.
11155 (UNSPEC_MOVSD_STORE): Likewise.
11157 2008-01-26 Jakub Jelinek <jakub@redhat.com>
11160 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
11162 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
11163 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
11164 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
11165 and TRUTH_XOR_EXPR.
11167 2008-01-26 David Edelsohn <edelsohn@gnu.org>
11170 * config.gcc: Separate AIX 5.3 from AIX 6.1.
11171 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
11172 __LONGDOUBLE128 too.
11173 * config/rs6000/aix61.h: New file.
11175 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
11177 PR rtl-optimization/34959
11178 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
11179 popcount and parity rtxes the same mode as their operand.
11180 Truncate or extend the result to the return value's mode
11183 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
11186 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
11187 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
11188 to GOT_VERSION_REGNUM.
11189 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
11190 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
11191 * config/mips/mips.c (mips_emit_call_insn): New function.
11192 (mips_call_tls_get_addr): Call mips_expand_call directly.
11193 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
11195 (mips16_build_call_stub): Likewise. Return the call insn or null.
11196 (mips_expand_call): Update the call to mips16_build_call_stub
11197 accordingly and a remove redundant condition. Assert that MIPS16
11198 stubs do not use lazy binding. Use mips_emit_call_insn and return
11200 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
11202 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
11203 (mips_avoid_hazard): Remove hazard_set handling.
11204 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
11205 (UNSPEC_RESTORE_GP): ...this.
11206 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
11207 (FAKE_CALL_REGNO): Rename to...
11208 (GOT_VERSION_REGNUM): ...this.
11209 (type): Add "ghost" value. Add an associated insn reservation.
11210 (hazard_set): Remove.
11211 (exception_receiver): Rename to...
11212 (restore_gp): ...this and update the unspec identifier accordingly.
11213 (exception_receiver, nonlocal_got_receiver): New expanders.
11214 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
11215 FAKE_CALL_REGNO. Remove hazard_set attribute.
11216 (set_got_version, update_got_version): New patterns.
11218 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
11221 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
11223 2008-01-25 Joseph Myers <joseph@codesourcery.com>
11226 * doc/install.texi2html: Generate gcc-vers.texi.
11228 2008-01-25 DJ Delorie <dj@redhat.com>
11230 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11232 2008-01-25 Joseph Myers <joseph@codesourcery.com>
11234 * config/c4x: Remove directory.
11235 * config.gcc (crx-*, mt-*): Mark obsolete.
11236 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
11237 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
11238 sh-*-rtemscoff*): Remove cases.
11239 * defaults.h (C4X_FLOAT_FORMAT): Remove.
11240 * real.c (encode_c4x_single, decode_c4x_single,
11241 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
11242 c4x_extended_format): Remove.
11243 * real.h (c4x_single_format, c4x_extended_format): Remove.
11244 * doc/extend.texi (interrupt, naked): Remove mention of attributes
11246 (Pragmas): Remove comment about c4x pragmas.
11247 * doc/install.texi (c4x): Remove target-specific instructions.
11248 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
11249 * doc/md.texi (Machine Constraints): Remove C4x documentation.
11250 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
11251 refer to C4x source files as examples.
11252 (C4X_FLOAT_FORMAT): Remove documentation.
11254 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
11256 * config/bfin/bfin.c (override_options): Reorder tests so that
11257 flag_pic gets enabled for -msep-data.
11259 2008-01-25 Richard Guenther <rguenther@suse.de>
11261 PR middle-end/32244
11262 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
11263 to its bitfield precision if required.
11265 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11267 PR middle-end/33880
11268 * tree-nested.c (walk_omp_for): New function.
11269 (convert_nonlocal_reference, convert_local_reference): Call
11270 walk_omp_for on OMP_FOR.
11271 (convert_call_expr): Call walk_body on OMP_FOR's
11272 OMP_FOR_PRE_INIT_BODY.
11274 2008-01-25 Richard Guenther <rguenther@suse.de>
11276 PR tree-optimization/34966
11277 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
11278 default defs and PHI_NODEs we have to insert after the
11279 defining statement.
11281 2008-01-24 Nick Clifton <nickc@redhat.com>
11283 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
11284 Provide a default definition.
11285 (LIBGCC2_UNITS_PER_WORD): Likewise.
11287 * config/stormy16/stormy16.c: Include df.h for the prototype
11288 for df_regs_ever_live_p.
11289 (xstormy16_expand_builtin_va_start): Convert the stack offset
11290 into a component_ref and then use POINTER_PLUS_EXPR to add it
11291 to the incoming_virtual_args_rtx.
11292 (xstormy16_gimplify_va_arg_expr): Rename to
11293 xstormy16_gimplify_va_arg_expr.
11294 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
11295 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
11296 xstormy16_gimplify_va_arg_expr.
11297 Fix up some formatting issues.
11299 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
11300 Move to predicates.md.
11301 (xs_hi_general_operand): Likewise.
11302 (xs_hi_nonmemory_operand): Likewise.
11303 * config/stormy16/predicates.md:
11304 (xstormy16_carry_plus_operand): New predicate.
11305 (xs_hi_general_operand): New predicate.
11306 (xs_hi_nonmemory_operand): New predicate.
11307 * config/stormy16/stormy16-protos.h:
11308 (xstormy16_carry_plus_operand): Delete prototype.
11309 (xs_hi_general_operand): Likewise.
11310 (xs_hi_nonmemory_operand): Likewise.
11312 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
11313 modifiers as they are no longer needed and they can trigger
11314 reload spill failures.
11316 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
11317 with a match_operand in order to help reload.
11319 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
11320 constraint with 'e' for the 8th alternative as this version of
11321 the mov.w instruction only accepts the lower 8 registers.
11323 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
11326 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
11327 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
11330 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11332 PR middle-end/33333
11333 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
11335 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
11337 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
11339 (remove_structure): Update allocations list before removing structure.
11341 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
11343 * ipa-struct-reorg.c (is_safe_cond_expr,
11344 create_new_stmts_for_cond_expr): Use integer_zerop function,
11345 that recognize not only zero-pointer, but zero-integer too.
11347 2008-01-25 Ben Elliston <bje@au.ibm.com>
11350 * fixproto: Escape "." in sed expression that strips leading "./".
11352 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
11355 * gcc.c (SWITCH_OK): Removed.
11356 (SWITCH_LIVE): Changed to bit.
11357 (SWITCH_FALSE): Likewise.
11358 (SWITCH_IGNORE): Likewise.
11359 (switchstr): Change live_cond to unsigned int.
11360 (process_command): Replace SWITCH_OK with 0.
11361 (do_self_spec): Likewise.
11362 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
11363 (give_switch): Likewise.
11364 (used_arg): Likewise.
11365 (do_spec_1): Set the SWITCH_IGNORE bit.
11366 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
11367 bits. Set the SWITCH_LIVE bit.
11369 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
11371 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
11373 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
11375 PR tree-optimization/34472
11376 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
11377 parameter to a "bool *" and set *DATA to false if there is
11378 an unsafe access. Do not delete the structure here.
11379 (check_cond_exprs): Delete it here instead.
11380 (check_cond_exprs, exclude_cold_structs): Do not increase
11381 I when removing a structure.
11383 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
11386 * config/i386/i386.c (ix86_expand_vector_init): Consider only
11387 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
11389 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
11391 PR middle-end/34934
11392 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
11393 a fixed vector for stack.
11395 2008-01-24 Ben Elliston <bje@au.ibm.com>
11398 * doc/gcc.texi (Software development): Add a direntry for g++.
11400 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
11402 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
11403 stale and straggling -fforce-addr comments above.
11405 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
11407 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
11408 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
11410 2008-01-23 Michael Matz <matz@suse.de>
11413 * dwarf2out.c (force_type_die): Use modified_type_die instead of
11416 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
11418 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
11419 malloc result type.
11421 2008-01-23 Anatoly Sokolov <aesok@post.ru>
11423 * config/avr/avr.c (avr_current_arch): New variable.
11424 (avr_arch_types): Add 'avr31' and 'avr51' entries.
11425 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
11426 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
11427 (avr_override_options): Init 'avr_current_arch'.
11428 (base_arch_s): Move from here...
11429 * config/avr/avr.h (base_arch_s): ... here. Add new members
11430 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
11431 'mega' to 'have_jmp_call'.
11432 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
11433 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
11435 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
11437 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
11438 MULTILIB_MATCHES): (Ditto.).
11440 2008-01-23 Richard Guenther <rguenther@suse.de>
11442 PR middle-end/31529
11443 * cgraphunit.c (cgraph_reset_node): Always mark the node
11444 not reachable if it is not queued already.
11446 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
11448 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
11449 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
11450 (cputype_selected): New static variable.
11451 (bfin_handle_option): Set it if -mcpu is used.
11452 (override_option): Select default set of workarounds if no cpu type
11453 selected on the command line.
11454 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
11456 From Michael Frysinger <michael.frysinger@analog.com>
11457 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
11458 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
11460 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
11461 for bf547, bf523, bf524, and bf526.
11462 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
11464 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11465 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
11466 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
11467 __ADSPBF547__ and __ADSPBF54x__ for bf547.
11468 * doc/invoke.texi (Blackfin Options): Document that
11469 -mcpu now accept bf547, bf523, bf524, and bf526.
11471 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
11473 PR rtl-optimization/34628
11474 * combine.c (try_combine): Stop and undo after the first combination
11475 if an autoincrement side-effect on the first insn has effectively
11478 2008-01-22 David Edelsohn <edelsohn@gnu.org>
11481 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
11482 Offset addresses are not valid for Altivec or paired float modes.
11484 2008-01-22 Jakub Jelinek <jakub@redhat.com>
11487 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
11488 if DECL_INITIAL (decl) is error_mark_node.
11491 * c-common.c (handle_vector_size_attribute): Only allow
11492 integral, scalar float and fixed point types. Handle OFFSET_TYPE
11493 the same way as pointer, array etc. types.
11494 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
11497 * tree.c (build_type_attribute_qual_variant): Call
11498 build_qualified_type if attributes are equal, but quals are not.
11500 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11503 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
11504 * flags.h (warn_strict_aliasing): Remove.
11505 (warn_strict_overflow): Remove.
11506 * opts.c (warn_strict_aliasing): Remove.
11507 (warn_strict_overflow): Remove.
11508 * c-opts.c (c_common_handle_option): -Wall only sets
11509 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
11510 (c_common_post_options): Give default values to -Wstrict-aliasing
11511 and -Wstrict-overflow if they are uninitialized.
11512 * common.opt (Wstrict-aliasing): Specify Var and Init.
11513 (Wstrict-overflow): Likewise.
11515 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
11517 PR rtl-optimization/26854
11518 PR rtl-optimization/34400
11519 PR rtl-optimization/34884
11520 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
11522 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
11523 (df_rd_bb_info.expanded_lr_out): Deleted
11524 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
11525 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
11526 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
11527 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
11528 Removed code to allocate, initialize or free expanded_lr_out.
11529 (df_rd_bb_local_compute_process_def): Restructured to make more
11531 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
11532 sets if the sets are being trimmed.
11534 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
11537 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
11538 (as_vers): Likewise.
11539 * configure: Regenerated.
11541 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11543 PR middle-end/33092
11544 * tree-pass.h (pass_build_alias): New pass.
11545 * tree-ssa-alias.c (gate_build_alias): New.
11546 (pass_build_alias): New.
11547 * passes.c (init_optimization_passes): Add pass_build_alias after
11548 pass_create_structure_vars.
11550 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
11552 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
11553 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
11554 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
11555 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
11556 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
11557 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
11558 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
11559 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
11560 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
11561 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
11562 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
11563 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
11564 * config/s390/s390.md (FP_ALL): New mode iterator.
11565 (_d): New mode attribute.
11566 ("*signbit<mode>2>"): Changed mode of first operand.
11567 ("isinf<mode>2"): Changed mode of first operand.
11568 ("*TDC_insn"): Adaptation for DFP modes.
11570 2008-01-22 Ben Elliston <bje@au.ibm.com>
11572 * tree.c (check_qualified_type): Improve function description.
11574 2008-01-21 Jason Merrill <jason@redhat.com>
11577 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
11578 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
11581 2008-01-21 DJ Delorie <dj@redhat.com>
11583 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
11586 2008-01-21 Richard Guenther <rguenther@suse.de>
11588 PR middle-end/34856
11589 * tree-cfg.c (verify_expr): Allow all invariant expressions
11590 instead of just constant class ones as reference argument.
11591 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
11592 like any other constant.
11593 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11595 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
11597 * regmove.c (fixup_match_1): Update call crossed frequencies.
11599 2008-01-21 Richard Guenther <rguenther@suse.de>
11602 * tree-inline.c (setup_one_parameter): Deal with mismatched
11603 types using a VIEW_CONVERT_EXPR.
11605 2008-01-21 Alon Dayan <alond@il.ibm.com>
11606 Olga Golovanevsky <olga@il.ibm.com>
11608 PR tree-optimization/34701
11609 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
11610 when the structure size is not a power of 2.
11612 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
11614 * doc/install.texi: Add doc for --enable-checking=df.
11616 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
11618 PR rtl-optimization/34808
11619 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
11621 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
11623 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
11626 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
11628 PR rtl-optimization/26854
11629 PR rtl-optimization/34400
11630 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
11632 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
11633 (df_rd_bb_info.expanded_lr_out): New.
11634 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
11635 * loop_iv.c (iv_analysis_loop_init): Ditto.
11636 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
11637 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
11638 Added code to allocate, initialize or free expanded_lr_out.
11639 (df_rd_bb_local_compute_process_def): Restructured to make
11640 more understandable.
11641 (df_rd_confluence_n): Add code to do nothing with fake edges and
11642 code to no apply invalidate_by_call sets if the sets are being trimmed.
11643 (df_lr_local_finalize): Renamed to df_lr_finalize.
11644 (df_live_local_finalize): Renamed to df_live_finalize.
11646 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
11649 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
11650 deciding whether to use reciprocal instructions.
11652 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
11654 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
11655 dwarf2out_note_section_used if cold_text_section is NULL.
11657 2008-01-19 Jakub Jelinek <jakub@redhat.com>
11659 PR gcov-profile/34610
11660 * tree-cfg.c (make_edges): Mark both outgoing edges from
11661 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
11662 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
11663 from OMP_FOR and OMP_CONTINUE outgoing edges.
11665 * tree-profile.c (tree_profiling): Return early if
11666 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
11668 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
11669 from cfun to child_cfun.
11670 * function.h (struct function): Add after_tree_profile bit.
11672 2008-01-19 Anatoly Sokolov <aesok@post.ru>
11674 * config/avr/avr.S (_exit): Disable interrupt.
11676 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
11677 Steven Bosscher <stevenb.gcc@gmail.com>
11679 PR rtl-optimization/26854
11680 PR rtl-optimization/34400
11681 * df-problems.c (df_live_scratch): New scratch bitmap.
11682 (df_live_alloc): Allocate df_live_scratch when doing df_live.
11683 (df_live_reset): Clear the proper bitmaps.
11684 (df_live_bb_local_compute): Only process the artificial defs once
11685 since the order is not important.
11686 (df_live_init): Init the df_live sets only with the variables
11687 found live by df_lr.
11688 (df_live_transfer_function): Use the df_lr sets to prune the
11689 df_live sets as they are being computed.
11690 (df_live_free): Free df_live_scratch.
11692 2008-01-18 Ian Lance Taylor <iant@google.com>
11694 * common.opt: Add fmerge-debug-strings.
11695 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
11696 flag_merge_debug_strings rather than flag_merge_constants.
11697 * doc/invoke.texi (Option Summary): Mention
11698 -fmerge-debug-strings.
11699 (Debugging Options): Document -fmerge-debug-strings.
11701 2008-01-18 Ian Lance Taylor <iant@google.com>
11704 * tree.h (DECL_IS_OPERATOR_NEW): Define.
11705 (struct tree_function_decl): Add new field operator_new_flag.
11706 * tree-inline.c (expand_call_inline): When inlining a call to
11707 operator new, force the return value to go into a variable, and
11708 set DECL_NO_TBAA_P on that variable.
11709 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
11711 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
11714 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
11715 DWARF2_DEBUGGING_INFO.
11716 (dwarf2out_note_section_used): Ditto. Add prototype.
11717 (have_multiple_function_sections, text_section_used,
11718 cold_text_section_used, *cold_text_sections): Move declarations
11721 2008-01-17 Bob Wilson <bob.wilson@acm.org>
11723 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
11724 field and add signal_ra.
11725 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
11726 assignments to frame state pc. Move end of stack check after
11727 MD_FALLBACK_FRAME_STATE_FOR.
11728 (uw_update_context_1): Use frame state signal_regs if set, instead
11729 of checking signal_frame flag.
11730 (uw_update_context): Use frame state signal_ra if set.
11731 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
11732 * config/xtensa/linux-unwind.h: New file.
11734 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
11736 * modulo-sched.c (get_sched_window): Fix comment typo.
11738 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
11740 PR tree-optimization/34648
11741 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
11743 2008-01-17 Anatoly Sokolov <aesok@post.ru>
11745 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
11746 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
11748 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
11750 PR rtl-optimization/34400
11751 * df-core.c (df_worklist_dataflow_overeager,
11752 df_worklist_dataflow_doublequeue): New functions.
11753 (df_worklist_dataflow): Two different worklist solvers.
11754 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
11757 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11760 * doc/invoke.texi: Document the dependence on pthread for fopenmp
11761 and ftree-parallelize-loops.
11763 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
11765 PR rtl-optimization/34826
11766 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
11768 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
11770 * global.c (find_reg): Mark the eh regs as used if necessary.
11771 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
11772 * ra.h (struct allocno): no_eh_reg field added. Changed
11773 no_stack_reg type to bitfield.
11775 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
11777 * tree.c (substitute_in_expr): Add missing 'break'.
11779 2008-01-17 Richard Guenther <rguenther@suse.de>
11781 PR tree-optimization/34825
11782 * tree-ssa-math-opts.c (is_division_by): Do not recognize
11783 x / x as division to handle.
11785 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11787 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
11788 "-pthread" is specified.
11789 * pa-hpux11.h (LIB_SPEC): Likewise.
11791 2008-01-16 Janis Johnson <janis187@us.ibm.com>
11792 Peter Bergner <bergner@vnet.ibm.com>
11794 PR rtl-optimization/33796
11795 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
11797 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11799 PR libgfortran/34699
11800 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
11802 * pa-hpux10.h (LINK_SPEC): Likewise.
11803 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
11805 2008-01-16 Richard Guenther <rguenther@suse.de>
11807 PR middle-end/32628
11808 * fold-const.c (fold_convert_const_int_from_int): Do not
11809 set overflow if that occured only because of a sign extension
11810 change when converting from/to a sizetype with the same
11811 precision and signedness.
11813 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
11816 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
11817 location address to the correct place. Update copyright year.
11819 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11821 * lambda-code.c (lambda_transform_legal_p): Handle the case of
11822 no dependences in the dependence_relations vector.
11824 2008-01-16 Jan Hubicka <jh@suse.cz>
11826 PR rtl-optimization/31396
11827 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
11828 * cfg.c (dump_reg_info): Print it.
11829 * regs.h (struct reg_info_t): add freq_calls_crossed.
11830 (REG_FREQ_CALLS_CROSSED): New macro.
11831 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
11832 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
11833 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
11834 regmove_optimize): Update call crossed frequencies.
11835 * local-alloc.c (struct qty): Add freq_calls_crossed.
11836 (alloc_qty): Copute freq_calls_crossed.
11837 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
11838 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
11839 * ra.h (struct allocno): Add freq_calls_crossed.
11841 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11843 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
11844 libgomp when compiling with ftree-parallelize-loops.
11845 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
11847 2008-01-16 Richard Guenther <rguenther@suse.de>
11849 PR tree-optimization/34769
11850 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
11851 * tree.c (int_cst_value): Instead make this function more
11852 permissive in what it accepts as valid input. Document this
11853 function always sign-extends the value.
11855 2008-01-16 Jakub Jelinek <jakub@redhat.com>
11856 Richard Guenther <rguenther@suse.de>
11859 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
11860 (gimple_fold_indirect_ref_rhs): ... this.
11861 (gimple_fold_indirect_ref): New function with foldings
11862 that preserve lvalueness.
11863 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
11864 * tree-flow.h (gimple_fold_indirect_ref): Declare.
11865 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
11866 to fold an INDIRECT_REF, fall back to the old use of
11867 fold_indirect_ref_1.
11869 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11871 * tree-data-ref.c (subscript_dependence_tester_1): Call
11872 free_conflict_function.
11873 (compute_self_dependence): Same.
11875 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
11878 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
11879 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
11881 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
11882 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
11883 for DWARF2_UNWIND_INFO targets.
11885 2008-01-16 Richard Guenther <rguenther@suse.de>
11888 * c-typeck.c (common_pointer_type): Do not merge inconsistent
11889 type qualifiers for function types.
11891 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
11893 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
11894 loop_iterator li from previous commit.
11896 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
11898 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
11900 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
11902 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
11903 (parallelize_loops): Don't parallelize irreducible components.
11905 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11908 * c-opts (c_common_post_options): Do not enable CPP
11909 flag_pedantic_errors by default.
11911 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
11913 PR rtl-optimization/31944
11914 * cse.c (remove_pseudo_from_table): New function.
11915 (merge_equiv_classes): Use above function to remove pseudo-registers.
11916 (invalidate): Likewise.
11918 2008-01-13 Richard Guenther <rguenther@suse.de>
11920 PR middle-end/34601
11921 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
11922 instead of TYPE_MODE to deal with calls from expand_one_error_var.
11924 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
11926 * gcse.c (cprop_jump): Call validate_unshare_change instead of
11927 validate_change to unshare the source of the PC set.
11929 2008-01-12 Jan Hubicka <jh@suse.cz>
11931 PR middle-end/32135
11932 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
11933 references above array bounds. This might trigger bounds checks for
11934 pointers to arrays.
11936 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
11938 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
11939 new_replaceable_dependencies.
11941 2008-01-12 Doug Kwan <dougkwan@google.com>
11943 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
11944 instead of OPT_Wreturn_type in warning due to ignored return type
11946 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
11947 options included in -Wextra.
11948 * c.opt: New option -Wignored_qualifiers.
11949 * doc/invoke.texi (Warning Options, -Wextra): Add new option
11950 -Wignore_qualifiers.
11951 (-Wignored-qualifiers): Document.
11952 (-Wreturn-type): Remove description of functionality now handled
11953 by -Wignored-qualifiers.
11955 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
11958 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
11959 NOP_EXPR if it is between integral types with the same precision.
11961 2008-01-12 Jan Hubicka <jh@suse.cz>
11964 * invoke.texi (max-inline-recursive-depth): Fix default value.
11966 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
11968 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
11971 2008-01-11 Bob Wilson <bob.wilson@acm.org>
11973 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
11975 2008-01-11 James E. Wilson <wilson@specifix.com>
11978 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
11980 2008-01-11 Anatoly Sokolov <aesok@post.ru>
11982 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
11983 save/restore frame pointer register and don't use 'call-prologues'
11984 optimization in function with "OS_task" attribute.
11986 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
11988 PR middle-end/31309
11989 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
11990 when copying to memory.
11992 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
11994 PR rtl-optimization/30905
11995 * cfgcleanup.c: Include dce.h
11996 (crossjumps_occured): New global variable.
11997 (try_crossjump_bb): Exit loop after finding a fallthru edge.
11998 If something changed, set crossjumps_occured to true.
11999 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
12000 Don't add/remove fake edges to exit here...
12001 (cleanup_cfg): ...but do it here, when crossjumping.
12002 Run a fast DCE when successful crossjumps occured in the latest
12003 iteration of try_optimize_cfg.
12005 2008-01-11 Richard Guenther <rguenther@suse.de>
12007 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
12008 (struct vn_unary_op_s): Likewise.
12009 (vn_reference_insert): Free old reference on hash collision.
12011 2008-01-10 Raksit Ashok <raksit@google.com>
12013 PR rtl-optimization/27971
12014 * combine.c (find_split_point): Split PLUS expressions which are
12015 inside a MEM rtx, and whose first operand is complex.
12017 2008-01-10 DJ Delorie <dj@redhat.com>
12019 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
12020 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
12021 (m32c_hard_regno_ok): Call the underlying function.
12023 2008-01-10 Richard Guenther <rguenther@suse.de>
12025 PR middle-end/34683
12026 * tree-cfg.c (tree_merge_blocks): Do not go through the
12027 full-blown folding and stmt updating path if we just deal
12028 with virtual operands.
12029 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
12030 test for abnormal SSA_NAMEs.
12032 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
12034 PR middle-end/34641
12035 * reload.c (push_reload): Add assertions. All constants from
12036 reg_equiv_constant should have been used for replacing the respective
12038 (find_reloads_address): Invoke find_reloads_address_part for
12039 constant taken from the reg_equiv_constant array.
12041 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
12043 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
12044 field (valnum) the first in the struct. Replace bools with
12047 2008-01-10 Richard Guenther <rguenther@suse.de>
12049 PR tree-optimization/34651
12050 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
12051 types and ordering for masking and converting.
12053 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
12055 PR tree-optimization/34017
12056 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
12057 also for PHI_NODE expressions.
12059 2008-01-09 Jan Hubicka <jh@suse.cz>
12061 PR tree-optimization/34708
12062 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
12063 based on number of case labels.
12064 (init_inline_once): Remove switch_cost.
12065 * tree-inline.h (eni_weights_d): Remove switch_cost.
12067 2008-01-09 Richard Guenther <rguenther@suse.de>
12068 Andrew Pinski <andrew_pinski@playstation.sony.com>
12070 PR middle-end/30132
12071 * gimplify.c (gimplify_cond_expr): Do not create an addressable
12072 temporary if an rvalue is ok or an lvalue is not required.
12074 2008-01-09 Richard Guenther <rguenther@suse.de>
12076 PR middle-end/34458
12077 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
12078 adjust return type.
12080 2008-01-09 Richard Guenther <rguenther@suse.de>
12082 PR middle-end/34679
12083 * tree.c (host_integerp): Check for sizetype only if the
12084 type is an integer type.
12086 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
12089 * opts.c (decode_options): Disable inlining of functions called
12090 once if not in unit-at-a-time mode.
12092 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
12094 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
12096 2008-01-08 Richard Guenther <rguenther@suse.de>
12098 PR middle-end/31863
12099 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
12100 out early if the result will be unused.
12102 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
12107 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
12108 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
12111 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
12113 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
12114 for vectorization tuned.
12116 2008-01-08 Richard Guenther <rguenther@suse.de>
12118 PR tree-optimization/34683
12119 * tree-ssa-operands.c (operand_build_cmp): Export.
12120 * tree-ssa-operands.h (operand_build_cmp): Declare.
12121 * tree-vn.c (vuses_compare): Remove.
12122 (sort_vuses): Use operand_build_cmp.
12123 (sort_vuses_heap): Likewise.
12124 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
12125 to re-use old VEC if available. Do not sort already sorted VUSEs.
12126 (vdefs_to_vec): Do not sort already sorted VDEFs.
12128 2008-01-08 Jakub Jelinek <jakub@redhat.com>
12130 PR middle-end/34694
12131 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
12133 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
12136 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
12137 limitations of reciprocal sequences on x86 targets.
12139 2008-01-08 Richard Guenther <rguenther@suse.de>
12141 PR tree-optimization/34683
12142 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
12144 2008-01-07 Jakub Jelinek <jakub@redhat.com>
12147 * config/darwin.c (darwin_mergeable_string_section): Don't use
12148 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
12150 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
12153 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
12154 negxf2. Macroize expander using X87MODEF mode iterator. Change
12155 predicates of op0 and op1 to register_operand.
12156 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
12157 expander using X87MODEF mode iterator. Change predicates of
12158 op0 and op1 to register_operand.
12159 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
12160 corresponding patterns and macroize using MODEF macro. Change
12161 predicates of op0 and op1 to register_operand and remove
12162 "m" constraint. Disparage "r" alternative with "!".
12163 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
12164 macroize using X87MODEF macro. Change predicates of op0 and op1
12165 to register_operand and remove "m" constraint. Disparage "r"
12166 alternative with "!".
12167 (absneg splitter with memory operands): Remove.
12168 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
12169 patterns and macroize using X87MODEF mode iterator.
12170 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
12171 Change predicate of op1 to register_operand.
12172 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
12173 for memory operands.
12175 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
12177 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
12179 2008-01-07 Richard Guenther <rguenther@suse.de>
12181 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
12184 2008-01-07 Richard Guenther <rguenther@suse.de>
12186 PR tree-optimization/34683
12187 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
12188 VOPs of the needed size to save memory. Use VEC_quick_push
12189 to save compile-time.
12190 (vdefs_to_vec): Likewise.
12192 2008-01-07 Sa Liu <saliu@de.ibm.com>
12194 * config/spu/spu.md (divdf3): Genetate inline code for double
12195 division. The implementation doesn't handle INF or NAN, therefore it
12196 only applies when -ffinite-math-only is given.
12198 2008-01-06 Paolo Carlini <pcarlini@suse.de>
12201 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
12202 * doc/cpp.texi ([Common Predefined Macros]): Document.
12204 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
12206 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
12207 order to use commutative addition instead of subtraction.
12209 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
12210 Mircea Namolaru <namolaru@il.ibm.com>
12211 Vladimir Yanovsky <yanov@il.ibm.com>
12212 Revital Eres <eres@il.ibm.com>
12214 PR tree-optimization/34263
12215 * tree-outof-ssa.c (process_single_block_loop_latch,
12216 contains_tree_r): New functions.
12217 (analyze_edges_for_bb): Call process_single_block_loop_latch
12218 function to empty single-basic-block latch block if possible.
12220 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
12222 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
12224 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
12226 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
12228 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
12230 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
12232 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
12234 2008-01-05 Jakub Jelinek <jakub@redhat.com>
12236 PR tree-optimization/34618
12237 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
12240 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
12243 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
12244 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
12245 Update copyright year.
12247 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
12248 Update copyright year.
12249 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
12252 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
12254 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
12255 edge does not point to current bb before changing need_assert.
12257 2008-01-04 Richard Guenther <rguenther@suse.de>
12259 PR middle-end/34029
12260 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
12261 for verifying purposes if they are is_gimple_min_invariant.
12263 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
12265 PR tree-optimization/34448
12266 PR tree-optimization/34465
12267 * gimplify.c (gimplify_init_constructor): Add new parameter
12268 notify_temp_creation. Use it.
12269 (gimplify_modify_expr_rhs): Take volatiles into account when
12270 optimizing constructors.
12271 Do not optimize constructors if gimplify_init_constructor will dump to
12273 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
12274 * gcc.c-torture/compile/pr34448.c: New.
12276 2008-01-04 Jakub Jelinek <jakub@redhat.com>
12278 PR gcov-profile/34609
12279 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
12280 return_slot if result is TREE_ADDRESSABLE.
12282 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
12284 * config/mips/mips.md (sqrt_condition): Tweak comment.
12285 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
12287 2008-01-03 Tom Tromey <tromey@redhat.com>
12290 * c-common.c (c_type_hash): Handle VLAs.
12292 2008-01-03 Jan Hubicka <jh@suse.cz>
12294 PR tree-optimization/31081
12295 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
12296 0 when inlining and not inlining to first basic block.
12297 (remap_decl): When var is initialized to 0, don't set default_def.
12298 (expand_call_inline): Set entry_bb.
12299 * tree-inline.h (copy_body_data): Add entry_bb.
12301 2008-01-03 Jakub Jelinek <jakub@redhat.com>
12304 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
12307 PR tree-optimization/29484
12308 * tree-inline.c (inline_forbidden_p_2): New function.
12309 (inline_forbidden_p): Disallow inlining if some static var
12310 has an address of a local LABEL_DECL in its initializer.
12311 * doc/extend.texi (Labels as Values): Document &&foo behaviour
12314 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
12316 PR tree-optimization/34635
12317 * tree-data-ref.c (add_other_self_distances): Make sure that the
12318 evolution step is constant.
12320 2008-01-03 Jakub Jelinek <jakub@redhat.com>
12322 PR middle-end/34608
12323 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
12325 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
12327 * tree-sra.c (scalarize_init): Insert the generate_element_init
12328 statements after the generate_element_zero statements.
12330 2008-01-02 Richard Guenther <rguenther@suse.de>
12332 PR middle-end/34093
12333 PR middle-end/31976
12334 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
12335 for very large number of operands instead of ICEing.
12337 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
12340 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
12341 while stack probing.
12343 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
12345 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
12348 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
12350 PR libmudflap/26442
12351 * tree-mudflap.c (mx_register_decls): Guard warning by
12352 !DECL_ARTIFICIAL check.
12354 2008-01-01 Jakub Jelinek <jakub@redhat.com>
12356 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
12357 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
12358 sse5_perm<mode>): Fix constraints.