1 2008-06-10 Joseph Myers <joseph@codesourcery.com>
3 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4 TYPE_CANONICAL for copied element type.
6 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
9 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
10 Add m_CORE2 and m_GENERIC.
11 * config/i386/predicates.md (bt_comparison_operator): New predicate.
12 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
14 (*jcc_btdi_rex64): New instruction and split pattern.
17 (*btsq): Fix Intel asm dialect operand order.
21 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
24 * simplify-rtx.c (simplify_subreg): Add check for shift count
27 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
29 * doc/md.texi: Synchronize with later constraints.md change.
30 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
31 with a C implementation.
32 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
34 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
35 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
36 when moving to and from MD_REGNUM.
37 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
38 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
39 Handle byte and halfword moves.
40 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
42 * config/mips/constraints.md (h): Turn into NO_REGS.
43 (l, x): Update documentation.
44 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
45 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
46 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
47 (HILO): New mode iterator.
49 (any_div): New code iterator.
50 (u): Extend code attribute to div and udiv.
51 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
52 d_operand in the splitters. Remove redundant CONST_INT checks.
53 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
54 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
55 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
56 accordingly, using normal moves instead of unspecs to move LO into
57 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
58 (<u>mulsidi3): Handle expansion in C code.
59 (<u>mulsidi3_32bit_internal): Rename to...
60 (<u>mulsidi3_32bit): ...this.
61 (<u>mulsidi3_32bit_r4000): Fix insn separator.
62 (*<u>mulsidi3_64bit): Rename to...
63 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
64 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
65 to set LO and HI to the multiplication result. Use a normal move
66 for MFLO and an unspec for MFHI.
67 (*<u>mulsidi3_64bit_parts): Replace with...
68 (<u>mulsidi3_64bit_hilo): ...this new instruction.
69 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
70 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
71 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
72 instead of HI. Split the instruction into a separate multiplication
73 and MFHI if !TARGET_FIX_R4000.
74 (<su>muldi3_highpart): Likewise.
75 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
77 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
78 (<u>mulditi3): New expander.
79 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
80 (madsi): Remove "=h" clobber.
81 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
82 Force the modulus result to be a GPR and split the instruction into
83 a division followed by an MFHI after reload.
84 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
85 (*lea_high64): Use d_operand in the define_peephole2. Likewise
86 the MIPS16 HIGH define_split.
87 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
88 of acc<->gpr moves to "multi".
89 (*movdi_64bit): Replace the single "x" alternative with
90 alternatives for moving into and out of "a".
91 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
92 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
93 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
94 Use d_operand in the splitters. Remove redundant CONST_INT checks.
95 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
96 (movti): New expander.
97 (*movti, *movti_mips16): New insns.
98 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
99 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
100 (mthi<GPR:mode>_<HILO:mode>): Likewise.
101 * config/mips/predicates.md (fpr_operand): Delete.
102 (d_operand): New predicate.
104 2008-06-09 Michael Meissner <michael.meissner@amd.com>
106 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
107 failure on some Bourne shells.
110 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
112 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
114 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
116 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
117 (sparc-sun-solaris2*): Likewise.
119 2008-06-09 Arnaud Charlet <charlet@adacore.com
121 * doc/install.texi: Update requirements to build the Ada compiler.
123 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
125 * df-scan.c (struct df_scan_problem_data): Remove the
126 mw_link_pool alloc pool.
127 (df_scan_free_internal): Don't free it.
128 (df_scan_alloc): Don't allocate it.
129 * df.h (struct df_link): Update comment.
131 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
133 * except.h: Correct checks for when SJLJ exceptions must be used.
135 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
137 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
140 2008-06-08 Joseph Myers <joseph@codesourcery.com>
142 PR tree-optimization/36218
143 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
144 configure for the build system.
145 (BUILD_LDFLAGS): Define.
146 * configure: Regenerate.
147 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
149 2008-07-08 Anatoly Sokolov <aesok@post.ru>
152 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
153 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
154 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
156 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
158 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
160 2008-06-07 Joseph Myers <joseph@codesourcery.com>
162 * config.gcc (Obsolete configurations): Remove list of
164 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
165 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
166 targets matched by those patterns.
167 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
168 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
169 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
170 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
171 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
172 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
173 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
174 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
175 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
176 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
177 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
178 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
179 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
180 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
181 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
182 Make code for Solaris 7 and greater unconditional for Solaris.
183 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
184 Remove --with-* handling.
185 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
186 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
187 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
188 LINK_OS_WINDISS_SPEC): Remove.
189 * config/rs6000/sysv4.opt (mwindiss): Remove.
190 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
191 * configure: Regenerate.
192 * doc/cpp.texi: Don't mention BeOS.
193 * doc/extend.texi (interrupt): Don't mention MS1.
194 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
195 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
196 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
197 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
198 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
200 * doc/invoke.texi (MT Options): Remove.
202 (CRIS Options): Remove cris-axis-aout references.
203 (HPPA Options): Don't mention hppa1.1-*-pro.
204 * doc/md.texi: (MorphoTech family): Remove.
205 * libgcc2.c: Don't handle UWIN.
206 * config/alpha/t-unicosmk: Remove.
207 * config/alpha/unicosmk.h: Remove.
208 * config/arm/kaos-arm.h: Remove.
209 * config/arm/kaos-strongarm.h: Remove.
210 * config/arm/strongarm-coff.h: Remove.
211 * config/arm/strongarm-elf.h: Remove.
212 * config/arm/strongarm-pe.h: Remove.
213 * config/arm/t-strongarm-pe: Remove.
214 * config/arm/t-xscale-coff: Remove.
215 * config/arm/t-xscale-elf: Remove.
216 * config/arm/xscale-coff.h: Remove.
217 * config/arm/xscale-elf.h: Remove.
218 * config/chorus.h: Remove.
219 * config/cris/aout.h: Remove.
220 * config/cris/aout.opt: Remove.
221 * config/cris/t-aout: Remove.
222 * config/i386/beos-elf.h: Remove.
223 * config/i386/kaos-i386.h: Remove.
224 * config/i386/ptx4-i.h: Remove.
225 * config/i386/sco5.h: Remove.
226 * config/i386/sco5.opt: Remove.
227 * config/i386/sysv4-cpp.h: Remove.
228 * config/i386/sysv5.h: Remove.
229 * config/i386/t-beos: Remove.
230 * config/i386/t-sco5: Remove.
231 * config/i386/t-uwin: Remove.
232 * config/i386/uwin.asm: Remove.
233 * config/i386/uwin.h: Remove.
234 * config/kaos.h: Remove.
235 * config/mips/windiss.h: Remove.
236 * config/mt: Remove directory.
237 * config/pa/pa-osf.h: Remove.
238 * config/pa/pa-pro-end.h: Remove.
239 * config/pa/t-pro: Remove.
240 * config/ptx4.h: Remove.
241 * config/rs6000/beos.h: Remove.
242 * config/rs6000/kaos-ppc.h: Remove.
243 * config/rs6000/t-beos: Remove.
244 * config/rs6000/windiss.h: Remove.
245 * config/sh/kaos-sh.h: Remove.
246 * config/sol2-6.h: Remove.
247 * config/sparc/sol26-sld.h: Remove.
248 * config/sparc/sysv4-only.h: Remove.
249 * config/vax/bsd.h: Remove.
250 * config/vax/t-memfuncs: Remove.
251 * config/vax/ultrix.h: Remove.
252 * config/vax/vaxv.h: Remove.
253 * config/windiss.h: Remove.
255 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
257 PR rtl-optimization/36438
258 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
259 for vector shifts with constant scalar shift operands.
261 2008-06-06 Sandip Matte <sandip@rmicorp.com>
263 * doc/invoke.texi: Document -march=xlr.
264 * config/mips/xlr.md: New file.
265 * config/mips/mips.md: Include it.
267 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
268 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
269 (mips_rtx_cost_data): Likewise.
271 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
273 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
274 PRE_INC and PRE_DEC cases.
276 2008-06-06 Jakub Jelinek <jakub@redhat.com>
278 PR rtl-optimization/36419
279 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
280 the emitting jump insn.
283 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
284 is not bool, boolify the whole *expr_p and convert to the desired type.
286 2008-06-06 Jakub Jelinek <jakub@redhat.com>
288 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
289 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
290 Add omp_private_outer_ref hook, add another argument to
291 omp_clause_default_ctor hook.
292 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
293 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
294 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
295 hook_tree_tree_tree_tree_null.
296 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
297 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
298 * hooks.c (hook_tree_tree_tree_tree_null): New function.
299 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
300 * tree.def (OMP_TASK): New tree code.
301 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
302 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
303 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
304 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
305 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
306 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
307 OMP_CLAUSE_COLLAPSE_EXPR): Define.
308 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
309 (OMP_DIRECTIVE_P): Add OMP_TASK.
310 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
311 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
312 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
313 and OMP_CLAUSE_UNTIED entries.
314 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
316 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
317 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
318 * tree-pretty-print.c (dump_omp_clause): Handle
319 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
320 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
321 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
322 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
323 warning about unsigned iterators. Change decl/init/cond/incr
324 arguments to TREE_VECs, check arguments for all collapsed loops.
325 (c_finish_omp_taskwait): New function.
326 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
328 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
329 default_function_array_conversion on init. Add par_clauses argument.
330 If decl is present in parallel's lastprivate clause, change it to
331 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
332 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
333 collapse count in clauses.
334 (c_parser_omp_for, c_parser_omp_parallel): Adjust
335 c_parser_omp_for_loop callers.
336 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
337 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
338 (c_parser_omp_clause_name): Handle collapse and untied clauses.
339 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
341 (c_parser_omp_clause_schedule): Handle schedule(auto).
342 Include correct location in the error message.
343 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
344 and PRAGMA_OMP_CLAUSE_UNTIED.
345 (OMP_TASK_CLAUSE_MASK): Define.
346 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
347 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
348 * tree-nested.c (convert_nonlocal_omp_clauses,
349 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
350 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
351 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
352 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
354 (conver_nonlocal_reference, convert_local_reference,
355 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
356 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
357 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
358 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
359 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
360 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
361 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
362 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
363 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
365 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
366 * c-common.h (c_finish_omp_taskwait): New prototype.
367 * gimple-low.c (lower_stmt): Handle OMP_TASK.
368 * tree-parloops.c (create_parallel_loop): Create 1 entry
369 vectors for OMP_FOR_{INIT,COND,INCR}.
370 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
371 (make_edges): Handle OMP_TASK.
372 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
373 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
374 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
375 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
376 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
377 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
378 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
379 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
380 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
381 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
382 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
383 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
384 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
385 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
386 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
387 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
388 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
389 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
390 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
391 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
392 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
393 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
394 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
395 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
396 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
397 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
398 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
399 original iterator is present in lastprivate clause or if
400 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
401 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
402 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
403 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
404 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
405 if it is set, lookup var in outer contexts too. Handle
406 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
407 to be implicitly determined firstprivate for task regions.
408 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
409 if it is set, lookup var in outer contexts too. Set
410 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
411 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
412 OMP_CLAUSE_UNTIED. Take region_type as last argument
413 instead of in_parallel and in_combined_parallel.
414 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
416 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
417 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
418 (new_omp_context): Set default_kind to
419 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
420 (omp_region_type): New enum.
421 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
422 fields, add region_type.
423 (new_omp_context): Take region_type as argument instead of is_parallel
424 and is_combined_parallel.
425 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
426 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
427 ctx->is_combined_parallel checks.
428 (gimplify_omp_task): New function.
429 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
431 * omp-low.c (extract_omp_for_data): Use schedule(static)
432 for schedule(auto). Handle pointer and unsigned iterators.
433 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
434 Add loops argument. Extract data for collapsed OMP_FOR loops.
435 (expand_parallel_call): Assert sched_kind isn't auto,
436 map runtime schedule to index 3.
437 (struct omp_for_data_loop): New type.
438 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
439 Add loop, loops, collapse and iter_type fields.
440 (workshare_safe_to_combine_p): Disallow combined for if
441 iter_type is unsigned long long. Don't combine collapse > 1 loops
442 unless all bounds and steps are constant. Adjust extract_omp_for_data
444 (expand_omp_for_generic): Handle pointer, unsigned and long long
445 iterators. Handle collapsed OMP_FOR loops. Adjust
446 for struct omp_for_data changes. If libgomp function doesn't return
447 boolean_type_node, add comparison of the return value with 0.
448 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
449 pointer, unsigned and long long iterators. Adjust for struct
450 omp_for_data changes.
451 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
452 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
453 unsigned long long. Allocate loops array, pass it to
454 extract_omp_for_data. For collapse > 1 loops use always
455 expand_omp_for_generic.
456 (omp_context): Add sfield_map and srecord_type fields.
457 (is_task_ctx, lookup_sfield): New functions.
458 (use_pointer_for_field): Use is_task_ctx helper. Change first
459 argument's type from const_tree to tree. Clarify comment.
460 In OMP_TASK disallow copy-in/out sharing.
461 (build_sender_ref): Call lookup_sfield instead of lookup_field.
462 (install_var_field): Add mask argument. Populate both record_type
463 and srecord_type if needed.
464 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
466 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
467 and DECL_FIELD_OFFSET.
468 (scan_sharing_clauses): Adjust install_var_field callers. For
469 firstprivate clauses on explicit tasks allocate the var by value in
470 record_type unconditionally, rather than by reference.
471 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
472 Use is_taskreg_ctx instead of is_parallel_ctx.
473 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
474 (create_omp_child_function_name): Add task_copy argument, use
475 *_omp_cpyfn* names if it is true.
476 (create_omp_child_function): Add task_copy argument, if true create
477 *_omp_cpyfn* helper function.
478 (scan_omp_parallel): Adjust create_omp_child_function callers.
479 Rename parallel_nesting_level to taskreg_nesting_level.
480 (scan_omp_task): New function.
481 (lower_rec_input_clauses): Don't run constructors for firstprivate
482 explicit task vars which are initialized by *_omp_cpyfn*.
483 Pass outer var ref to omp_clause_default_ctor hook if
484 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
485 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
486 OMP_CLAUSE_REDUCTION_INIT.
487 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
488 avoid duplicate setting of fields. Handle
489 OMP_CLAUSE_PRIVATE_OUTER_REF.
490 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
491 copy-out if TREE_READONLY, only copy-in.
492 (expand_task_copyfn): New function.
493 (expand_task_call): New function.
494 (struct omp_taskcopy_context): New type.
495 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
497 (lower_omp_parallel): Rename to...
498 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
499 Call create_task_copyfn if srecord_type is needed. Adjust
501 (task_shared_vars): New variable.
502 (check_omp_nesting_restrictions): Warn if work-sharing,
503 barrier, master or ordered region is closely nested inside OMP_TASK.
504 Add warnings for barrier if closely nested inside of work-sharing,
505 ordered, or master region.
506 (scan_omp_1): Call check_omp_nesting_restrictions even for
507 GOMP_barrier calls. Rename parallel_nesting_level to
508 taskreg_nesting_level. Handle OMP_TASK.
509 (lower_lastprivate_clauses): Even if some lastprivate is found on a
510 work-sharing construct, continue looking for them on parent parallel
512 (lower_omp_for_lastprivate): Add lastprivate clauses
513 to the beginning of dlist rather than end. Adjust for struct
514 omp_for_data changes.
515 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
516 not after it. Handle collapsed OMP_FOR loops, adjust for
517 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
518 (get_ws_args_for): Adjust extract_omp_for_data caller.
519 (scan_omp_for): Handle collapsed OMP_FOR
520 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
521 (lower_omp_single_simple): If libgomp function doesn't return
522 boolean_type_node, add comparison of the return value with 0.
523 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
524 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
525 (parallel_nesting_level): Rename to...
526 (taskreg_nesting_level): ... this.
527 (is_taskreg_ctx): New function.
528 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
530 (execute_lower_omp): Rename parallel_nesting_level to
531 taskreg_nesting_level.
532 (expand_omp_parallel): Rename to...
533 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
534 Call omp_task_call for OMP_TASK regions.
535 (expand_omp): Adjust caller, handle OMP_TASK.
536 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
538 * bitmap.c (bitmap_default_obstack_depth): New variable.
539 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
540 if argument is NULL and bitmap_default_obstack is already initialized.
541 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
543 * matrix-reorg.c (matrix_reorg): Likewise.
545 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
547 * config/i386/i386.md (*indirect_jump): Macroize using P
548 mode iterator. Remove !TARGET_64BIT from insn constraints.
549 (*tablejump_1): Ditto.
550 (*indirect_jump_rex64): Remove insn pattern.
551 (*tablejump_1_rex64): Ditto.
552 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
553 and eh_return_si insn patterns.
555 2008-06-06 Richard Guenther <rguenther@suse.de>
557 * tree-ssa-structalias.c (merge_smts_into): Remove.
558 (find_what_p_points_to): Do not bother to compute the
559 points-to set for pt_anything pointers.
560 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
561 for pt_anything pointers is ok.
563 2008-06-06 Jan Hubicka <jh@suse.cz>
565 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
567 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
569 * cgraph.c: Fix typos in comments.
570 (cgraph_availability_names): Fix string typo.
571 * fold-const.c: Fix typos in comments.
572 (fold_binary): Fix typo in warning.
573 * genautomata.c: Fix typos in comments.
574 (check_presence_pattern_sets): Fix typo in local variable.
575 (output_description): Fix typo in output.
576 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
578 * matrix-reorg.c (check_allocation_function): Likewise.
579 * omega.c (smooth_weird_equations): Likewise.
580 * auto-inc-dec.c: Fix typos in comments.
581 * bb-reorder.c: Likewise.
582 * builtins.c: Likewise.
583 * c-common.c: Likewise.
584 * c-cppbuiltin.c: Likewise.
585 * c-parser.c: Likewise.
586 * c-pretty-print.c: Likewise.
587 * cfgcleanup.c: Likewise.
588 * cfgexpand.c: Likewise.
589 * cfghooks.c: Likewise.
590 * cfglayout.c: Likewise.
591 * cfgloopmanip.c: Likewise.
592 * cgraphunit.c: Likewise.
593 * coverage.c: Likewise.
594 * dbxout.c: Likewise.
595 * df-byte-scan.c: Likewise.
596 * df-core.c: Likewise.
597 * df-problems.c: Likewise.
598 * df-scan.c: Likewise.
600 * dominance.c: Likewise.
601 * domwalk.c: Likewise.
603 * dwarf2out.c: Likewise.
604 * emit-rtl.c: Likewise.
605 * et-forest.c: Likewise.
606 * function.c: Likewise.
607 * function.h: Likewise.
609 * gcov-io.c: Likewise.
612 * genattrtab.c: Likewise.
613 * ggc-page.c: Likewise.
614 * gimplify.c: Likewise.
615 * gthr-lynx.h: Likewise.
616 * haifa-sched.c: Likewise.
617 * ipa-cp.c: Likewise.
618 * ipa-inline.c: Likewise.
619 * ipa-prop.h: Likewise.
620 * ipa-pure-const.c: Likewise.
621 * ipa-struct-reorg.c: Likewise.
622 * ipa-struct-reorg.h: Likewise.
623 * ipa-type-escape.c: Likewise.
625 * loop-doloop.c: Likewise.
626 * mips-tfile.c: Likewise.
627 * mkmap-flat.awk: Likewise.
628 * mkmap-symver.awk: Likewise.
629 * modulo-sched.c: Likewise.
630 * omp-low.c: Likewise.
631 * optabs.c: Likewise.
632 * optabs.h: Likewise.
634 * passes.c: Likewise.
635 * postreload-gcse.c: Likewise.
636 * postreload.c: Likewise.
637 * predict.c: Likewise.
638 * pretty-print.h: Likewise.
639 * profile.c: Likewise.
640 * protoize.c: Likewise.
641 * ra-conflict.c: Likewise.
644 * regclass.c: Likewise.
646 * reload.c: Likewise.
647 * rtl-error.c: Likewise.
648 * rtlanal.c: Likewise.
650 * sched-rgn.c: Likewise.
653 * target.h: Likewise.
654 * tree-dfa.c: Likewise.
655 * tree-eh.c: Likewise.
656 * tree-flow-inline.h: Likewise.
657 * tree-inline.c: Likewise.
658 * tree-into-ssa.c: Likewise.
659 * tree-loop-distribution.c: Likewise.
660 * tree-nested.c: Likewise.
661 * tree-parloops.c: Likewise.
662 * tree-pass.h: Likewise.
663 * tree-pretty-print.c: Likewise.
664 * tree-profile.c: Likewise.
665 * tree-scalar-evolution.c: Likewise.
666 * tree-sra.c: Likewise.
667 * tree-ssa-alias-warnings.c: Likewise.
668 * tree-ssa-ccp.c: Likewise.
669 * tree-ssa-coalesce.c: Likewise.
670 * tree-ssa-dom.c: Likewise.
671 * tree-ssa-dse.c: Likewise.
672 * tree-ssa-forwprop.c: Likewise.
673 * tree-ssa-live.c: Likewise.
674 * tree-ssa-live.h: Likewise.
675 * tree-ssa-loop-im.c: Likewise.
676 * tree-ssa-loop-ivopts.c: Likewise.
677 * tree-ssa-loop-niter.c: Likewise.
678 * tree-ssa-loop-prefetch.c: Likewise.
679 * tree-ssa-phiopt.c: Likewise.
680 * tree-ssa-phiprop.c: Likewise.
681 * tree-ssa-sccvn.c: Likewise.
682 * tree-ssa-ter.c: Likewise.
683 * tree-ssa-threadupdate.c: Likewise.
684 * tree-ssa.c: Likewise.
685 * tree-vect-analyze.c: Likewise.
686 * tree-vect-transform.c: Likewise.
687 * tree-vectorizer.c: Likewise.
688 * tree-vn.c: Likewise.
689 * tree-vrp.c: Likewise.
691 * tree.def: Likewise.
693 * unwind-dw2-fde.c: Likewise.
694 * unwind.inc: Likewise.
695 * value-prof.c: Likewise.
696 * vmsdbgout.c: Likewise.
698 2008-06-05 David Edelsohn <edelsohn@gnu.org>
700 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
701 always place FP constants in the TOC for TARGET_POWERPC64.
702 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
704 2008-06-05 Joseph Myers <joseph@codesourcery.com>
706 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
707 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
708 enable for TARGET_E500_DOUBLE.
709 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
710 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
711 floating-point modes like integer modes for E500 double.
712 (rs6000_legitimate_offset_address_p): Likewise.
713 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
714 addressing for DDmode for E500 double.
715 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
716 modes as using 64-bits of registers for E500 double.
717 (spe_build_register_parallel): Do not handle DDmode or TDmode.
718 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
719 specially for E500 double.
720 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
721 TDmode for E500 double.
722 (rs6000_gimplify_va_arg): Only handle SDmode in registers
723 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
724 (rs6000_split_multireg_move): Do not handle TDmode specially for
726 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
727 using 64-bit registers for E500 double.
728 (emit_frame_save): Do not handle DDmode specially for E500 double.
729 (gen_frame_mem_offset): Likewise.
730 (rs6000_function_value): Do not call spe_build_register_parallel
731 for DDmode or TDmode.
732 (rs6000_libcall_value): Likewise.
733 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
734 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
737 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
739 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
742 2008-06-04 Junjie Gu <jgu@tensilica.com>
744 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
745 comparison for frame pointers.
747 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
750 * config/avr/avr.h (PUSH_ROUNDING): Remove.
752 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
755 * builtins.c (expand_builtin_signbit): Don't take lowpart when
756 register is already smaller or equal to required mode.
758 2008-06-04 Xinliang David Li <davidxl@google.com>
760 * tree-call-cdce.c: New file.
761 (cond_dead_built_in_calls): New static variable.
762 (input_domain): New struct.
763 (check_pow): New function.
764 (check_builtin_call): Ditto.
765 (check_target_format): Ditto.
766 (is_call_dce_candidate): Ditto.
767 (gen_one_condition): Ditto.
768 (gen_conditions_for_domain): Ditto.
770 (gen_conditions_for_pow_cst_base): Ditto.
771 (gen_conditions_for_pow_int_base): Ditto.
772 (gen_conditions_for_pow): Ditto.
773 (get_no_error_domain): Ditto.
774 (gen_shrink_wrap_conditions): Ditto.
775 (shrink_wrap_one_built_in_call): Ditto.
776 (shink_wrap_conditional_dead_built_in_calls): Ditto.
777 (tree_call_cdce): Ditto.
778 (gate_call_cdce): Ditto.
779 (pass_call_cdce): New gimple pass.
780 * passes.c: (init_optimization_passes): New pass.
781 * tree-pass.h: New pass declaration.
782 * opts.c (decode_options): New flag setting.
783 * common.opt: Add -ftree-builtin-call-dce flag.
784 * Makefile.in: Add new source file.
785 * tempvar.def: New tv_id.
786 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
788 2008-06-04 Richard Guenther <rguenther@suse.de>
790 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
791 (is_call_clobbered): Always check var_ann->call_clobbered.
792 (mark_call_clobbered): Always set var_ann->call_clobbered.
793 (clear_call_clobbered): Always clear var_ann->call_clobbered.
794 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
795 (reset_alias_info): Clear call clobbering info on MTAGs and
797 (set_pt_anything): Set pt_global_mem.
798 (create_tag_raw): Adjust comment.
799 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
801 2008-06-04 Joseph Myers <joseph@codesourcery.com>
802 Maxim Kuvyrkov <maxim@codesourcery.com>
804 * config/m68k/m68k.opt (mxgot): New option.
805 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
806 (m68k_output_addr_const_extra): New.
807 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
808 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
809 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
810 * doc/invoke.texi (M680x0 Options): Document -mxgot.
812 2008-06-04 Richard Guenther <rguenther@suse.de>
814 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
815 negative or non-representable offsets.
817 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
819 * config/i386/i386.c (ix86_gen_leave): New.
820 (ix86_gen_pop1): Likewise.
821 (ix86_gen_add3): Likewise.
822 (ix86_gen_sub3): Likewise.
823 (ix86_gen_sub3_carry): Likewise.
824 (ix86_gen_one_cmpl2): Likewise.
825 (ix86_gen_monitor): Likewise.
826 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
827 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
828 ix86_gen_one_cmpl2 and ix86_gen_monitor.
829 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
830 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
831 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
832 (ix86_expand_epilogue): Updated.
833 (print_operand): Handle integer register operand for 'z'.
834 (ix86_expand_strlensi_unroll_1): Likewise.
835 (ix86_expand_strlen): Likewise.
836 (ix86_expand_builtin): Likewise.
837 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
838 mov{q}/mov{l} and add{q}/add{l}.
840 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
842 * config/i386/i386.md (P): New mode iterator.
843 (SFmode push_operand splitter): Macroize DImode and SImode pushes
844 using P mode iterator.
845 (DFmode push_operand splitter): Ditto.
846 (XFmode push_operand splitter): Ditto.
847 (DFmode float_extend SFmode push_operand splitter): Ditto.
848 (XFmode float_extend SFmode push_operand splitter): Do not generate
849 SImode pushes for 64bit target. Macroize Dimode and SImode
850 pushes using P mode iterator.
851 (XFmode float_extend DFmode push_operand splitter): Ditto.
853 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
855 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
856 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
857 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
859 (ix86_call_abi_override): Remove check for call_used_regs.
861 2008-06-03 Richard Guenther <rguenther@suse.de>
863 * tree-ssa-structalias.c (find_func_aliases): Add constraints
864 for the lhs of calls if the return type contains pointers.
866 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
868 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
869 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
870 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
871 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
872 of cfun and DEFAULT_ABI to deceide abi mode.
874 (REG_PARM_STACK_SPACE): Removed.
875 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
876 (STACK_BOUNDARY): Use default target to deceide stack boundary.
877 * config/i386/i386-protos.h (ix86_cfun_abi): New.
878 (ix86_function_abi): Likewise.
879 (ix86_function_type_abi): Likewise.
880 (ix86_call_abi_override): Likewise.
881 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
882 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
883 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
884 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
886 (X86_64_REGPARM_MAX): New.
887 (X86_64_SSE_REGPARM_MAX): New.
888 (X64_REGPARM_MAX): New.
889 (X64_SSE_REGPARM_MAX): New.
890 (X86_32_REGPARM_MAX): New.
891 (X86_32_SSE_REGPARM_MAX): New.
892 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
893 (ix86_function_regparm): Handle user calling abi.
894 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
895 by DEFAULT_ABI versus SYSV_ABI check.
896 (ix86_reg_parm_stack_space): New.
897 (ix86_function_type_abi): New.
898 (ix86_call_abi_override): New.
899 (ix86_function_abi): New.
900 (ix86_cfun_abi): New.
901 (init_cumulative_args): Call abi specific initialization.
902 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
903 (function_arg_64): Extend SSE_REGPARM_MAX check.
904 (function_arg (): Remove TARGET_64BIT_MS_ABI.
905 (ix86_pass_by_reference): Likewise.
906 (ix86_function_value_regno_p): Likewise.
907 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
908 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
909 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
910 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
911 (setup_incoming_varargs_64): Adjust regparm for call abi.
912 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
913 (ix86_va_start): Likewise.
914 (ix86_gimplify_va_arg): Likewise.
915 (ix86_expand_prologue): Likewise.
916 (output_pic_addr_const): Likewise.
917 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
918 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
919 (x86_output_mi_thunk): Likewise.
920 (x86_function_profiler): Likewise.
921 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
922 (SYSV_ABI, MS_ABI): New constants.
924 (init_regs): Add prototype of function in regclass.c file.
925 (OVERRIDE_ABI_FORMAT): New.
926 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
927 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
928 (OUTGOING_REG_PARM_STACK_SPACE): New.
929 (ix86_reg_parm_stack_space): New prototype.
930 (CUMULATIVE_ARGS): Add call_abi member.
931 (machine_function): Add call_abi member.
932 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
933 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
935 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
938 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
939 (avr_builtin_setjmp_frame_value): New function.
940 * config/avr/avr.md (nonlocal_goto_receiver): Define.
941 (nonlocal_goto): Define.
943 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
945 * config/mips/mips.c (mips_emit_loadgp): Return early if
946 there is nothing do to, otherwise emit a blockage if
947 !TARGET_EXPLICIT_RELOCS || crtl->profile.
948 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
950 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
952 * configure.ac: Drop unneeded backslash ending up in config.in.
953 * acinclude.m4: Likewise.
954 * config.in: Regenerate.
956 2008-05-26 Jan Hubicka <jh@suse.cz>
958 * predict.c (maybe_hot_frequency_p): Break out of...
959 (maybe_hot_bb_p): ... here.
960 (maybe_hot_edge_p): New.
961 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
962 * basic-block.h (maybe_hot_edge_p): Declare.
964 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
966 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
967 (*cmpfp_<mode>_cc): Ditto.
968 (*fp_jcc_8<mode>_387): Ditto.
969 (*fop_<MODEF:mode>_2_i387): Ditto.
970 (*fop_<MODEF:mode>_3_i387): Ditto.
971 (*fop_xf_2_i387): Ditto.
972 (*fop_xf_3_i387): Ditto.
974 2008-06-02 Tomas Bily <tbily@suse.cz>
976 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
978 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
980 * config/mips/mips.c (mips_valid_offset_p): New function.
981 (mips_valid_lo_sum_p): Likewise.
982 (mips_classify_address): Use them.
983 (mips_force_address): New function.
984 (mips_legitimize_address): Use it.
985 * config/mips/mips.md (MOVE128): New mode iterator.
986 (movtf): Require TARGET_64BIT. Remove empty strings.
987 (*movtf_internal): Rename to...
988 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
989 of "R" and use {,fp}{load,store} attributes instead of "multi".
990 Use a separate define_split.
991 (*movtf_mips16): New pattern.
993 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
995 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
996 * config/mips/mips.c (mips_expand_before_return): New function.
997 (mips_expand_epilogue): Call it.
998 * config/mips/mips.md (return): Turn into a define_expand.
1001 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1003 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
1004 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
1005 functions. Do not emit uses and clobbers of CONCATs; individually
1006 use and clobber their operands.
1007 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
1008 gen_clobber, emit_use and gen_use.
1009 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1010 (expand_builtin_return): Likewise.
1011 * cfgbuild.c (count_basic_blocks): Likewise.
1012 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1013 * explow.c (emit_stack_restore): Likewise.
1014 * expmed.c (extract_bit_field_1): Likewise.
1015 * expr.c (convert_move, emit_move_complex_parts): Likewise.
1016 (emit_move_multi_word, store_constructor): Likewise.
1017 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
1018 (thread_prologue_and_epilogue_insns): Likewise.
1019 * lower-subreg.c (resolve_simple_move): Likewise.
1020 * optabs.c (widen_operand, expand_binop): Likewise.
1021 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
1022 * reload.c (find_reloads): Likewise.
1023 * reload1.c (eliminate_regs_in_insn): Likewise.
1024 * stmt.c (expand_nl_goto_receiver): Likewise.
1025 * config/alpha/alpha.md (builtin_longjmp): Likewise.
1026 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
1027 * config/arm/arm.c (arm_load_pic_register): Likewise.
1028 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
1029 * config/arm/arm.md (untyped_return): Likewise.
1030 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
1031 * config/avr/avr.c (expand_prologue): Likewise.
1032 * config/bfin/bfin.c (do_unlink): Likewise.
1033 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
1034 * config/cris/cris.c (cris_expand_prologue): Likewise.
1035 * config/darwin.c (machopic_indirect_data_reference): Likewise.
1036 (machopic_legitimize_pic_address): Likewise.
1037 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
1038 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
1039 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
1040 (ix86_expand_convert_uns_didf_sse): Likewise.
1041 (ix86_expand_vector_init_general): Likewise.
1042 * config/ia64/ia64.md (eh_epilogue): Likewise.
1043 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
1044 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
1045 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
1046 (config/iq2000/iq2000.c): Likewise.
1047 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
1048 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1049 (builtin_longjmp): Likewise.
1050 * config/mn10300/mn10300.md (call, call_value): Likewise.
1051 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
1052 * config/pdp11/pdp11.md (abshi2): Likewise.
1053 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1054 * config/s390/s390.c (s390_emit_prologue): Likewise.
1055 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
1056 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
1057 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
1058 * config/sh/sh.c (prepare_move_operands): Likewise.
1059 (output_stack_adjust, sh_expand_epilogue): Likewise.
1060 (sh_set_return_address, sh_expand_t_scc): Likewise.
1061 * config/sparc/sparc.c (load_pic_register): Likewise.
1062 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
1063 * config/spu/spu.c (spu_expand_epilogue): Likewise.
1064 * config/v850/v850.c (expand_epilogue): Likewise.
1066 2008-05-31 Anatoly Sokolov <aesok@post.ru>
1068 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
1069 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
1070 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
1071 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
1072 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
1073 stack pointer register.
1074 (output_movhi): Remove code for interrupt specific writing to the
1075 stack pointer register.
1077 2008-05-31 Richard Guenther <rguenther@suse.de>
1079 PR tree-optimization/34244
1080 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
1081 (tree_expr_nonzero_warnv_p): Likewise.
1082 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
1083 ssa_name_nonnegative_p.
1084 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
1085 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
1086 not tree_expr_nonzero_warnv_p.
1088 PR tree-optimization/36262
1090 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
1092 PR tree-optimization/34244
1093 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
1094 (record_numbers_of_iterations): New function.
1095 (execute_vrp): Cache the numbers of iterations of loops.
1096 * tree-scalar-evolution.c (scev_reset_except_niters):
1098 (scev_reset): Use scev_reset_except_niters.
1099 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
1101 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
1103 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1104 __WORKAROUND_RETS when appropriate.
1106 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
1108 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
1109 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
1111 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
1112 *fop_df_comm_sse insn patterns using MODEF mode iterator.
1113 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
1114 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
1115 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
1116 *fop_df_1_mixed insn patterns using MODEF mode iterator.
1117 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
1118 *fop_df_1_sse insn patterns using MODEF mode iterator.
1119 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
1120 *fop_df_1_i387 insn patterns using MODEF mode iterator.
1121 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
1122 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
1123 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
1124 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
1125 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
1126 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
1127 (*fop_xf_4_i387): Use <MODE> for mode attribute.
1128 (*fop_xf_5_i387): Ditto.
1129 (*fop_xf_6_i387): Ditto.
1131 2008-05-30 Richard Guenther <rguenther@suse.de>
1133 * builtins.c (build_string_literal): Avoid generating
1134 a non-gimple_val result.
1136 2008-05-30 DJ Delorie <dj@redhat.com>
1138 * exec-tool.in: Use an environment variable (private) instead of a
1139 file (shared) as a semaphore, so as to not break parallel builds.
1141 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1143 * optabs.c (maybe_encapsulate_block): Remove.
1144 (emit_libcall_block): Adjust accordingly.
1145 * optabs.h (maybe_encapsulate_block): Remove prototype.
1147 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
1148 Don't use maybe_encapsulate_block.
1150 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1152 * config/rs6000/rs6000.c (rs6000_legitimize_address,
1153 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
1154 rtx is a SYMBOL_REF before calling get_pool_constant.
1156 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
1158 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
1160 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
1162 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
1163 rather than OS names to choose INO_T_EQ definition.
1164 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
1165 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
1167 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
1170 * config/darwin-f.c: New.
1171 * config/t-darwin: Added rule to build darwin-f.o.
1172 * config.gcc: Defined new variable, fortran_target_objs.
1173 (*-*-darwin*): Set fortran_target_objs.
1174 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
1175 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
1176 * configure: Regenerated.
1178 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
1181 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
1182 canonical type if needed.
1184 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
1186 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
1188 2008-05-29 Richard Guenther <rguenther@suse.de>
1190 PR tree-optimization/36343
1191 PR tree-optimization/36346
1192 PR tree-optimization/36347
1193 * tree-flow.h (clobber_what_p_points_to): Declare.
1194 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
1195 pointed-to variable is dereferenced is irrelevant to whether
1196 the pointer can access the pointed-to variable.
1197 (clobber_what_p_points_to): New function.
1198 * tree-ssa-alias.c (set_initial_properties): Use it.
1199 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
1200 call clobber check for NMTs.
1202 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1204 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
1205 for printing gcov_type.
1207 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1209 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
1210 and the eh region information.
1211 * value-prof.c (gimple_move_stmt_histograms): New function.
1212 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
1214 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
1216 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
1218 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1220 * value-prof.c (tree_ic_transform): Print counts.
1221 * tree-profile.c (tree_gen_ic_func_profiler):
1222 Clear __gcov_indreict_call_callee variable to avoid misattribution
1225 2008-05-28 Rafael Espindola <espindola@google.com>
1227 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
1230 2008-05-28 Richard Guenther <rguenther@suse.de>
1232 PR tree-optimization/36339
1233 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
1234 and clobbering code out of the loop.
1236 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
1238 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
1241 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
1242 s390_contiguous_bitmask_p, s390_symref_operand_p,
1243 s390_check_symref_alignment, s390_reload_larl_operand,
1244 s390_reload_symref_address): New functions.
1245 (s390_branch_condition_mnemonic): Support compare and branch
1247 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
1248 and 'W' constraints.
1249 (s390_secondary_reload): Add secondary reloads for unaligned
1250 symbol refs or symbol refs to floating point or QI/TI mode
1252 (legitimate_address_p): Accept symbol references as addresses.
1253 (s390_expand_insv): Use rotate and insert selected bits
1254 instruction for insv when building for z10.
1255 (print_operand_address): Handle symbol ref addresses.
1256 (print_operand): Output modifier 'c' added for signed byte values.
1257 (s390_encode_section_info): Mark symbol refs with
1258 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
1260 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
1261 (length attribute): RRF, RRR have 4 byte length.
1262 (FPALL, INTALL): New mode iterators added.
1263 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
1264 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
1265 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
1266 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
1267 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
1268 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
1269 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
1270 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
1272 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
1273 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
1274 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
1275 reload<INTALL:mode><P:mode>_toreg_z10,
1276 reload<FPALL:mode><P:mode>_tomem_z10,
1277 reload<FPALL:mode><P:mode>_toreg_z10,
1278 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
1279 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
1280 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
1281 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
1283 (movmem, clrmem, cmpmem): New splitters added.
1285 * config/s390/predicates.md (larl_operand): Use
1286 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
1287 SYMBOL_REF_ALIGN1_P.
1288 (s390_signed_integer_comparison,
1289 s390_unsigned_integer_comparison): New predicates.
1291 * config/s390/s390-protos.h (s390_check_symref_alignment,
1292 s390_contiguous_bitmask_p, s390_reload_larl_operand,
1293 s390_reload_symref_address,
1294 s390_compare_and_branch_condition_mask): Prototypes added.
1296 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
1297 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
1298 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
1300 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
1302 * config/s390/s390.c (z10_cost): New cost function for z10.
1303 (s390_handle_arch_option, override_options): Support -march=z10 switch.
1304 (s390_issue_rate): Adjust issue rate for z10.
1305 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
1306 (processor_flags): Add PF_Z10.
1307 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
1308 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
1309 * gcc/config.gcc: Add z10.
1311 2008-05-28 Richard Guenther <rguenther@suse.de>
1313 PR tree-optimization/36291
1314 * tree-flow. h (struct gimple_df): Remove var_anns member.
1315 * tree-flow-inline.h (gimple_var_anns): Remove.
1316 (var_ann): Simplify.
1317 * tree-dfa.c (create_var_ann): Simplify.
1318 (remove_referenced_var): Clear alias info from var_anns of globals.
1319 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
1320 (delete_tree_ssa): Clear alias info from var_anns of globals.
1321 Do not free var_anns.
1322 (var_ann_eq): Remove.
1323 (var_ann_hash): Likewise.
1325 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
1327 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
1328 and loongson2f entries.
1329 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
1330 * config/mips/mips.h (processor_type): Add Loongson-2E
1331 and Loongson-2F entries.
1332 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
1333 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
1334 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
1335 * doc/invoke.texi (MIPS Options): Document loongson2e
1336 and loongson2f processor names.
1338 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
1342 * config/i386/i386.c (ix86_function_arg_boundary): Use
1343 alignment of canonical type.
1344 (ix86_expand_vector_move): Check unaligned memory access for
1347 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
1349 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
1350 Moved to the front of file.
1352 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
1353 H.J. Lu <hongjiu.lu@intel.com>
1355 * dwarf2out.c (current_fde): New.
1357 (lookup_cfa:): Likewise.
1358 (dwarf2out_end_epilogue): Likewise.
1359 (dwarf2out_note_section_used): Likewise.
1361 2008-05-27 Michael Matz <matz@suse.de>
1364 * c.opt (Wenum-compare): New warning option.
1365 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
1367 2008-05-27 Michael Matz <matz@suse.de>
1370 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
1372 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
1373 into memory as tail calls.
1375 2008-05-27 Richard Guenther <rguenther@suse.de>
1377 PR tree-optimization/36339
1378 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
1379 pointers cause all addressable variables to be call clobbered.
1381 2008-05-27 Richard Guenther <rguenther@suse.de>
1383 PR tree-optimization/36245
1384 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
1386 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1388 * config/s390/s390.md: Replace all occurences of the 'm'
1389 constraint with 'RT'.
1391 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1393 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
1395 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
1397 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
1398 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
1399 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
1401 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1403 * reload.c: (find_reloads): Skip alternatives according to the
1404 "enabled" attribute. Constify the constraint variable.
1405 * recog.c (get_attr_enabled): Add default implementation.
1406 (extract_insn): Set the alternative_enabled_p array
1407 in the recog_data struct.
1408 (preprocess_constraints, constrain_operands): Skip
1409 alternatives according to the "enabled" attribute
1410 * recog.h (struct recog_data): New field alternative_enabled_p.
1411 (skip_alternative): New inline function.
1412 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
1413 (record_reg_classes): Skip alternative according to the
1414 "enabled" attribute.
1416 * doc/md.texi: Add documention for the "enabled" attribute.
1418 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1420 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
1421 * postreload.c (reload_cse_simplify_operands): Replace 'm'
1422 constraint with TARGET_MEM_CONSTRAINT.
1423 * recog.c (asm_operand_ok, preprocess_constraints,
1424 constrain_operands): Likewise.
1425 * regclass.c (record_reg_classes): Likewise.
1426 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
1427 * reload1.c (maybe_fix_stack_asms): Likewise.
1428 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1429 * recog.h: Adjust comment.
1430 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
1431 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
1432 * doc/md.texi: Add a note to description of 'm' constraint.
1433 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
1435 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1437 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
1438 that the bitfield is of integral type before testing its precision.
1440 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1441 Sa Liu <saliu@de.ibm.com>
1443 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
1444 __modti3, __udivti3, __umodti3 and __udivmodti4.
1445 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
1446 that implement TImode mul and div functions.
1447 * config/spu/multi3.c: New. Implement __multi3.
1448 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
1449 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
1452 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
1454 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
1455 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
1456 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
1457 tls_sysv_suffix): New mode and mode attribute iterators.
1458 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
1459 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
1460 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
1461 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
1462 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
1465 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1467 PR tree-optimization/36329
1468 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
1469 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
1470 * cgraphbuild.c (initialize_inline_failed): Use the latter
1471 macro in lieu of the former.
1472 * ipa-inline.c (cgraph_mark_inline): Likewise.
1473 (cgraph_decide_inlining_of_small_function): Likewise.
1474 (cgraph_decide_inlining): Likewise.
1475 (cgraph_decide_inlining_incrementally): Likewise.
1477 2008-05-26 Tristan Gingold <gingold@adacore.com>
1478 Anatoly Sokolov <aesok@post.ru>
1480 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
1481 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
1482 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
1483 optimization for 'avr6' architecture.
1485 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
1488 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
1490 2008-05-26 Richard Guenther <rguenther@suse.de>
1492 * tree-ssa-sccvn.c (expr_has_constants): Declare.
1493 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
1495 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
1498 * caller-save.c (insert_restore): Verify alignment of spill space.
1499 (insert_save): Likewise.
1500 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
1501 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
1502 (STACK_SLOT_ALIGNMENT): Likewise.
1503 * function.c (LOCAL_ALIGNMENT): Removed.
1504 (get_stack_local_alignment): New.
1505 (assign_stack_local): Use it. Set alignment on stack slot.
1506 (assign_stack_temp_for_type): Use get_stack_local_alignment.
1507 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
1508 (STACK_SLOT_ALIGNMENT): New.
1509 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
1510 stack slot in XFmode.
1512 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
1514 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
1517 * config/i386/i386.md (allocate_stack_worker_64): Make sure
1518 argument operand in rax isn't removed.
1520 2008-05-26 Richard Guenther <rguenther@suse.de>
1523 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
1524 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
1526 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1529 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
1531 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
1533 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
1534 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
1536 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1538 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
1539 build a trampoline if we don't want one.
1540 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
1541 return zero for nested functions if we don't want a trampoline.
1543 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1545 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
1547 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1550 * c.opt: Removed undocumented option '-lang-fortran'.
1551 * c-common.h: Removed global variable 'lang_fortran'.
1552 * c-opts.c (c_common_handle_option): Removed code to handle
1553 option '-lang-fortran'. Updated includes.
1554 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
1555 definition of '__GFORTRAN__'.
1556 (define__GNUC__): Reimplemented to use BASEVER and
1557 cpp_define_formatted.
1558 (builtin_define_with_value_n): Removed.
1559 * c-incpath.h: Renamed to ...
1560 * incpath.h: ... this.
1561 * c-incpath.c: Renamed to ...
1562 * incpath.c: ... this. Updated includes.
1563 * fix-header.c: Updated includes.
1564 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
1565 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
1566 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
1568 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1570 * tree.h: Update the table of flags used on tree nodes.
1571 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
1572 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
1573 (FORCED_LABEL): Add access check.
1574 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
1575 (ASM_INPUT_P): Likewise.
1576 (ASM_VOLATILE_P): Likewise.
1577 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
1578 (OMP_SECTION_LAST): Access private_flag directly.
1579 (OMP_RETURN_NOWAIT): Likewise.
1580 (OMP_PARALLEL_COMBINED): Likewise.
1581 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
1582 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
1583 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
1584 deprecated_flag directly.
1586 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
1588 * final.c (frame_pointer_needed): Removed.
1589 * flags.h (frame_pointer_needed): Likewise.
1591 * function.h (rtl_data): Add frame_pointer_needed.
1592 (frame_pointer_needed): New.
1594 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
1596 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
1598 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
1600 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
1603 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1605 * c-common.c (strip_array_types): Move function to..
1607 (get_inner_array_type): Delete.
1608 * c-common.h (strip_array_types): Move declaration to..
1610 (get_inner_array_type): Delete.
1611 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
1612 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
1613 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1614 * config/pa/pa.c (emit_move_sequence): Likewise.
1616 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
1618 * config/i386/i386.md (*sse_prologue_save_insn): Set length
1621 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
1623 * function.c: Include target hook for nonlocal_goto frame value.
1625 2008-05-24 Richard Guenther <rguenther@suse.de>
1627 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
1628 variable can be only accessed through a pointer or a union.
1630 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1632 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
1633 * doc/extend.texi: Likewise.
1635 2008-05-23 DJ Delorie <dj@redhat.com>
1637 * config/m32c/jump.md (untyped_call): Add.
1639 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
1641 (m32c_address_cost): Detail costs for indirect offsets.
1643 2008-05-23 Rafael Espindola <espindola@google.com>
1645 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
1646 if a node is a SUBREG.
1647 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
1650 2008-05-23 Paul Brook <paul@codesourcery.com>
1651 Carlos O'Donell <carlos@codesourcery.com>
1653 * doc/extend.texi: Clarify use of __attribute__((naked)).
1654 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
1655 * target.h (gcc_target): Add allocate_stack_slots_for_args.
1656 * function.c (use_register_for_decl): Use
1657 targetm.calls.allocate_stack_slots_for_args.
1658 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
1659 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
1660 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
1662 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1664 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
1666 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
1668 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
1669 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
1670 is only rounded once.
1672 2008-05-23 Richard Guenther <rguenther@suse.de>
1674 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
1676 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
1677 Jakub Jelinek <jakub@redhat.com>
1680 * configure.ac: Handle --enable-cld.
1681 * configure: Regenerated.
1682 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
1683 * config/i386/i386.h (struct machine_function): Add needs_cld field.
1684 (ix86_current_function_needs_cld): New define.
1685 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
1686 (cld): New isns pattern.
1687 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
1688 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
1689 * config/i386/i386.opt (mcld): New option.
1690 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
1691 TARGET_CLD and ix86_current_function_needs_cld.
1692 (override_options): Use -mcld by default for 32-bit code if
1695 * doc/install.texi (Options specification): Document --enable-cld.
1696 * doc/invoke.texi (Machine Dependent Options)
1697 [i386 and x86-64 Options]: Add -mcld option.
1698 (Intel 386 and AMD x86-64 Options): Document -mcld option.
1700 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
1701 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
1702 (return_in_memory_64): Likewise.
1703 (return_in_memory_ms_64): Likewise.
1705 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1707 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
1708 * builtins.c (fold_builtin_fpclassify): New.
1709 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
1710 * builtins.def (BUILT_IN_FPCLASSIFY): New.
1711 * c-common.c (handle_type_generic_attribute): Adjust to accept
1712 fixed arguments before an elipsis.
1713 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
1714 * doc/extend.texi: Document __builtin_fpclassify.
1716 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
1718 * omp-low.c (gate_expand_omp_ssa): Remove.
1719 (pass_expand_omp_ssa): Remove.
1720 (gate_expand_omp): Do not check for flag_openmp_ssa.
1721 * common.opt (-fopenmp-ssa): Remove.
1722 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
1724 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
1726 * config/sh/sh.opt (mfixed-range): New option.
1727 * config/sh/sh-protos.h (sh_fix_range): Declare.
1728 * config/sh/sh.c (sh_fix_range): New function.
1729 * config/sh/sh.h (sh_fixed_range_str): Declare.
1730 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
1732 * doc/invoke.texi (SH Options): Document -mfixed-range.
1734 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
1736 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
1737 it before the redeclaration.
1739 2008-05-22 Anatoly Sokolov <aesok@post.ru>
1741 * config/avr/avr.c (get_sequence_length): Add new function.
1742 (expand_prologue, expand_epilogue): Remove duplicate code.
1744 2008-05-22 Rafael Espindola <espindola@google.com>
1746 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
1749 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
1751 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
1752 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
1754 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
1755 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
1756 (vect_update_misalignment_for_peel): Likewise.
1757 (vector_alignment_reachable_p): Likewise.
1758 * tree-vect-transform.c (vectorizable_load): Likewise.
1759 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
1760 (get_vectype_for_scalar_type): Pass mode of scalar_type
1761 to UNITS_PER_SIMD_WORD.
1763 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
1764 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
1765 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
1766 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
1767 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
1769 2008-05-22 Ira Rosen <irar@il.ibm.com>
1771 PR tree-optimization/36293
1772 * tree-vect-transform.c (vect_transform_strided_load): Don't check
1773 if the first load must be skipped because of a gap.
1775 2008-05-22 Richard Guenther <rguenther@suse.de>
1777 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
1778 more cases of offset disambiguation that is possible if
1779 strict-aliasing rules apply.
1780 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
1781 for basic offset and type-based disambiguation.
1783 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1785 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
1786 ix86_expand_vector_set on V16QImode for SSE4.1.
1788 2008-05-21 Tom Tromey <tromey@redhat.com>
1790 * c.opt (Wimport): Mark as undocumented.
1791 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
1793 (Warning Options): Likewise.
1794 * doc/cppopts.texi: Don't mention -Wimport.
1796 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
1798 PR tree-optimization/36287
1799 PR tree-optimization/36286
1800 * lambda-code.c (build_access_matrix): Do not use the loop->num
1801 for computing the number of induction variables: use the loop depth
1804 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
1807 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
1808 option -f(no-)leading-underscore.
1810 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1812 * config/i386/i386.c (ix86_expand_vector_init_general): Use
1813 GET_MODE_NUNITS (mode).
1815 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
1817 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
1818 (-mmulhw): Add 464 to description.
1819 (-mdlmzb): Likewise.
1820 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
1821 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
1823 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
1824 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
1825 * config/rs6000/rs6000.md: Update comments for 464.
1827 2008-05-21 Janis Johnson <janis187@us.ibm.com>
1829 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
1831 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1833 * config/i386/sse.md (vec_extractv4sf): Removed.
1834 (vec_extractv2df): Likewise.
1835 (vec_extractv2di): Likewise.
1836 (vec_extractv4si): Likewise.
1837 (vec_extractv8hi): Likewise.
1838 (vec_extractv16qi): Likewise.
1839 (vec_extract<mode>): New.
1841 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1843 * config/i386/sse.md (vec_setv4sf): Removed.
1844 (vec_setv2df): Likewise.
1845 (vec_setv2di): Likewise.
1846 (vec_setv4si): Likewise.
1847 (vec_setv8hi): Likewise.
1848 (vec_setv16qi): Likewise.
1849 (vec_set<mode>): New.
1851 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1853 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
1854 goto for vec_concat and vec_interleave.
1856 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1858 * config/i386/sse.md (vec_initv4sf): Removed.
1859 (vec_initv2df): Likewise.
1860 (vec_initv2di): Likewise.
1861 (vec_initv4si): Likewise.
1862 (vec_initv8hi): Likewise.
1863 (vec_initv16qi): Likewise.
1864 (vec_init<mode>): New.
1866 2008-05-21 Joseph Myers <joseph@codesourcery.com>
1868 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
1870 2008-05-21 Tom Tromey <tromey@redhat.com>
1872 * ggc-zone.c (lookup_page_table_if_allocated): New function.
1873 (zone_find_object_offset): Likewise.
1874 (gt_ggc_m_S): Likewise.
1875 (highest_bit): Likewise.
1876 * ggc-page.c (gt_ggc_m_S): New function.
1877 * stringpool.c (string_stack): Remove.
1878 (init_stringpool): Update.
1879 (ggc_alloc_string): Use ggc_alloc.
1880 (maybe_delete_ident): New function.
1881 (ggc_purge_stringpool): Likewise.
1882 (gt_ggc_m_S): Remove.
1883 * ggc-common.c (ggc_protect_identifiers): New global.
1884 (ggc_mark_roots): Call ggc_purge_stringpool. Use
1885 ggc_protect_identifiers.
1886 * ggc.h (ggc_protect_identifiers): Declare.
1887 (gt_ggc_m_S): Update.
1888 (ggc_purge_stringpool): Declare.
1889 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
1890 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
1892 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
1894 2008-05-21 David S. Miller <davem@davemloft.net>
1896 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
1899 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
1901 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
1904 2008-05-20 David Daney <ddaney@avtrex.com>
1906 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
1907 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
1908 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
1909 UNSPEC_UPDATE_GOT_VERSION): Renumber.
1910 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
1911 (atomic_hiqi_op): New define_code_iterator.
1912 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
1913 mips_expand_compare_and_swap_12.
1914 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
1915 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
1916 (sync_<optab><mode>, sync_old_<optab><mode>,
1917 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
1918 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
1919 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
1920 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
1921 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
1922 (test_and_set_12): New insn.
1923 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
1924 sync_new_<optab><mode>, sync_old_nand<mode>,
1925 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
1926 clobber to operand 0 for SI and DI mode insns.
1927 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
1928 mips_gen_fn_4): New typedefs.
1929 (mips_gen_fn_ptrs): Define new union type.
1930 (mips_expand_compare_and_swap_12): Remove declaration.
1931 (mips_expand_atomic_qihi): Declare function.
1932 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
1933 (mips_expand_atomic_qihi): ... this. Use new generator function
1935 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
1936 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
1937 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
1938 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
1939 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
1940 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
1941 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
1942 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
1943 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
1944 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
1947 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
1949 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
1952 2008-05-20 Anatoly Sokolov <aesok@post.ru>
1954 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
1955 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
1956 (avr_attribute_table): Add 'OS_main' function attribute.
1957 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
1958 functions with 'OS_main' attribute.
1960 2008-05-20 Richard Guenther <rguenther@suse.de>
1962 PR tree-optimization/35204
1963 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
1964 helper, split out from ...
1965 (DFS): ... here. Make the DFS walk non-recursive.
1967 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
1968 Jan Sjodin <jan.sjodin@amd.com>
1970 PR tree-optimization/36181
1971 * tree-parloops.c (loop_has_vector_phi_nodes): New.
1972 (parallelize_loops): Don't parallelize when the loop has vector
1975 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
1976 Sebastian Pop <sebastian.pop@amd.com>
1978 * tree-loop-linear.c (gather_interchange_stats): Look in the access
1979 matrix, and never look at the tree representation of the memory
1981 (linear_transform_loops): Computes parameters and access matrices.
1982 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
1984 (access_matrix_get_index_for_parameter): New.
1985 * tree-data-ref.h (struct access_matrix): New.
1986 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
1987 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
1988 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
1989 am_vector_index_for_loop): New.
1990 (struct data_reference): Add field access_matrix.
1991 (DR_ACCESS_MATRIX): New.
1992 (compute_data_dependences_for_loop): Update declaration.
1993 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
1994 * lambda.h (lambda_vector_vec_p): Declared.
1995 * lambda-code.c: Depend on pointer-set.h.
1996 (lambda_collect_parameters_from_af, lambda_collect_parameters,
1997 av_for_af_base, av_for_af, build_access_matrix,
1998 lambda_compute_access_matrices): New.
1999 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
2001 2008-05-20 Joseph Myers <joseph@codesourcery.com>
2003 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
2006 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2007 Sebastian Pop <sebastian.pop@amd.com>
2009 PR tree-optimization/36206
2010 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
2012 (instantiate_scev_1): Rename flags to fold_conversions.
2013 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
2014 outeside instantiation_loop.
2015 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
2016 (evolution_function_is_affine_or_constant_p): Removed.
2017 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
2019 (analyze_siv_subscript): Pass in the loop nest number.
2020 Call evolution_function_is_affine_in_loop instead of
2021 evolution_function_is_affine_p.
2022 (analyze_overlapping_iterations): Pass in the loop nest number.
2024 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2025 Sebastian Pop <sebastian.pop@amd.com>
2027 PR tree-optimization/36206
2028 * tree-chrec.h (chrec_fold_op): New.
2029 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
2032 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
2034 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
2036 (remove_duplicates): Do not set inode on non-inode systems.
2039 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
2041 * config.gcc (tm_file): Update comments about relative pathnames.
2043 2008-05-20 Richard Guenther <rguenther@suse.de>
2045 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
2046 * tree-ssa-sccvn.c (process_scc): Likewise.
2047 * tree-ssa-sink.c (execute_sink_code): Likewise.
2048 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2049 * tree-vrp.c (process_assert_insertions): Likewise.
2050 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
2051 (perform_tree_ssa_dce): Likewise.
2052 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2053 (dump_dominator_optimization_stats): Likewise.
2054 * tree-vectorizer.c (vectorize_loops): Likewise.
2056 2008-05-20 Richard Guenther <rguenther@suse.de>
2058 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
2060 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
2062 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
2063 (ix86_i386elf_return_in_memory): Likewise.
2064 (ix86_i386interix_return_in_memory): Likewise.
2065 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
2066 (SUBTARGET_RETURN_IN_MEMORY): New.
2067 * config/i386/i386elf.h: Likewise.
2068 * config/i386/ptx4-i.h: Likewise.
2069 * config/i386/sol2-10.h: Likewise.
2070 * config/i386/sysv4.h: Likewise.
2071 * config/i386/vx-common.h: Likewise.
2072 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
2073 * config/i386/i386.c (ix86_return_in_memory): Made static and
2074 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
2075 (ix86_i386elf_return_in_memory): Removed.
2076 (ix86_i386interix_return_in_memory): Removed.
2077 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
2078 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
2080 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
2082 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
2084 2008-05-19 Xinliang David Li <davidxl@google.com>
2086 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
2088 * common.opt: Ditto.
2089 * doc/invoke.texi: Ditto.
2091 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
2093 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
2094 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
2096 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
2098 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
2099 sizes of operand array from 8/4 to 4/2.
2100 (ix86_expand_vector_init_general): Change size of operand array
2101 from 32 to 16. Remove op0, op1 and half_mode.
2103 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
2105 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
2106 (ix86_expand_vector_init_interleave): Likewise.
2107 (ix86_expand_vector_init_general): Use them. Assert
2108 word_mode == SImode when n_words == 4.
2110 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
2112 * config/i386/i386.c (ix86_secondary_reload): New static function.
2113 (TARGET_SECONDARY_RELOAD): New define.
2114 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2115 * config/i386/i386.md (reload_outqi): Remove.
2117 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2120 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
2121 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
2122 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
2123 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
2124 (fold_builtin_1): Likewise.
2125 * builtins.def (BUILT_IN_ISINF_SIGN): New.
2126 c-common.c (check_builtin_function_arguments): Handle
2127 BUILT_IN_ISINF_SIGN.
2128 * doc/extend.texi: Document __builtin_isinf_sign.
2129 * fold-const.c (operand_equal_p): Handle COND_EXPR.
2131 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
2133 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
2134 EH cleanup at the end of the pass, search for those that have been
2135 turned into forwarder blocks and do the cleanup on their successor.
2137 2008-05-18 Richard Guenther <rguenther@suse.de>
2139 * tree-cfg.c (verify_gimple_expr): Allow conversions from
2140 pointers to sizetype and vice versa.
2142 2008-05-18 Xinliang David Li <davidxl@google.com>
2144 * gcc/tree-ssa-dce.c: Coding style fix.
2145 (check_pow): Documentation comment.
2146 (check_log): Documenation comment. Coding style fix.
2147 (is_unnecessary_except_errno_call): Ditto.
2148 (gen_conditions_for_pow): Ditto.
2149 (gen_conditions_for_log): Ditto.
2150 (gen_shrink_wrap_conditions): Ditto.
2151 (shrink_wrap_one_built_in_calls): Ditto.
2152 * gcc/doc/invoke.texi: Better documentation string.
2153 * ChangeLog: Fix wrong change log entries from
2154 May 17 checkin on function call DCE.
2156 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
2158 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
2160 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
2162 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
2163 * df-problems.c (simulation routines): Fixed block comment to
2164 properly say how to add forwards scanning functions.
2166 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2168 * tree-inline.c (setup_one_parameter): Remove dead code.
2170 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2172 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
2173 a BIT_AND_EXPR only for an INTEGER_TYPE.
2175 2008-05-17 Xinliang David Li <davidxl@google.com>
2177 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
2178 (check_pow, check_log, is_unnecessary_except_errno_call): New
2179 functions to check for eliminating math functions that are pure
2180 except for setting errno.
2181 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
2182 general condition expressions for shrink-wrapping pow/log calls.
2183 (gen_shrink_wrap_conditions): Ditto.
2184 (shrink_wrap_one_built_in_call): Ditto.
2185 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
2186 (mark_operand_necessary): If debugging, output if OP is necessary.
2187 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
2189 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
2191 * gcc/common.opt: New user flag -ftree-builtin-dce.
2192 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
2194 2008-05-16 David S. Miller <davem@davemloft.net>
2196 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
2197 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2199 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
2202 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
2204 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2206 * ifcvt.c (dead_or_predicable): Rename
2207 df_simulate_one_insn_backwards to df_simulate_one_insn.
2208 * recog.c (peephole2_optimize): Ditto.
2209 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
2211 * df.h: Rename df_simulate_one_insn_backwards to
2212 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
2213 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
2214 scanning of defs and uses.
2215 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
2216 (df_simulate_one_insn_forwards): Removed.
2218 2008-05-16 Doug Kwan <dougkwan@google.com>
2220 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
2222 (real_from_string): Handle NaNs and Inf as approriate.
2224 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
2226 * doc/gty.texi (Source Files Containing Type Information): Note
2227 that headers should appear first in the gtfiles list.
2229 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2231 * tree.def (COND_EXEC): Properly documented this code.
2233 2008-05-16 Diego Novillo <dnovillo@google.com>
2235 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
2236 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
2239 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2241 * tree-ssa-dse (max_stmt_uid): Removed.
2242 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
2243 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
2244 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
2245 * function.h (cfun.last_stmt_uid): New field.
2246 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
2247 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
2249 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
2250 (create_stmt_ann): Initialize the ann->uid field.
2251 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
2253 * tree-flow.h (renumber_gimple_stmt_uids): New function.
2255 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
2257 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
2258 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
2259 (init_empty_tree_cfg): Call it.
2261 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2263 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
2266 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2268 * doc/invoke.text (-fdump-tree-*-verbose): New option.
2269 * tree-dump.c (dump_options): New verbose option.
2270 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
2272 * tree-pass.h (TDF_VERBOSE): New dump flag.
2273 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
2274 (tree-flow.h): Added include.
2275 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
2277 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
2279 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
2281 From Jie Zhang <jie.zhang@analog.com>
2282 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2283 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
2284 mcpu=bf561-none and mcpu=bf561-0.2.
2285 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2286 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2287 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2288 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2289 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
2290 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
2291 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
2293 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
2294 (cputype_selected): Remove.
2295 (bfin_handle_option): Don't use cputype_selected.
2296 (override_options): When no mcpu option, enable all workarounds.
2297 Don't use bfin_workarounds.
2298 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
2300 (DEFAULT_CPU_TYPE): Don't define.
2302 2008-05-16 Richard Guenther <rguenther@suse.de>
2304 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
2305 on deletion of the last stmt.
2307 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
2309 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
2310 V8HImode for SSE2 and V16QImode for SSE4.1.
2312 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
2314 * cgraph.h (compute_inline_parameters): Made public.
2315 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
2316 variable_generate_summary, function_write_summary,
2317 variable_write_summary, variable_read_summary. Added generate_summary,
2318 write_summary, read_summary.
2319 * cgraphunit.c (cgraph_process_new_functions): Changed call from
2320 pass_ipa_inline.function_generate_summary, to
2321 compute_inline_parameters.
2322 * ipa-inline.c (compute_inline_parameters): Made public and added
2324 (compute_inline_parameters_for_current): New function.
2325 (pass_inline_param): Now calls compute_inline_parameters_for_current.
2326 (inline_generate_summary): Removed parameter and made to loop over
2328 (pass_ipa_inline): Updated for new IPA_PASS structure.
2329 * passes.c (execute_ipa_summary_passes): Now is called once per
2330 pass rather than once per node*pass.
2332 2008-05-15 Anatoly Sokolov <aesok@post.ru>
2334 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
2335 avr_have_mul_p, avr_asm_only_p): Remove variables.
2336 (avr_override_options): Remove initialization of removed variables.
2337 (avr_file_start): Convert removed variables to fields of
2338 'struct base_arch_s *avr_current_arch'.
2339 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
2340 (AVR_HAVE_MUL): (Ditto.).
2341 (AVR_HAVE_MOVW): (Ditto.).
2342 (AVR_HAVE_LPMX): (Ditto.).
2343 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
2344 avr_asm_only_p): Remove declaration.
2346 2008-05-15 Diego Novillo <dnovillo@google.com>
2348 * config/arm/arm.c (arm_return_in_memory): Fix return type.
2349 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
2351 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
2354 * combine.c (check_conversion): Rename back to check_promoted_subreg.
2355 Don't call record_truncated_value from here.
2356 (record_truncated_value): Turn it into a for_each_rtx callback.
2357 (record_truncated_values): New function.
2358 (combine_instructions): Call note_uses with record_truncated_values.
2359 Change name of check_conversion to check_promoted_subreg.
2361 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2363 * doc/sourcebuild.texi: Document support for torture tests.
2365 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
2367 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
2368 to alternative 4 of operand 2.
2370 2008-05-15 Richard Guenther <rguenther@suse.de>
2372 * tree-pass.h (current_pass): Declare.
2373 (get_pass_for_id): Likewise.
2374 * passes.c (passes_by_id, passes_by_id_size): New globals.
2375 (set_pass_for_id): New function.
2376 (get_pass_for_id): Likewise.
2377 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
2378 (execute_function_todo): Flush per function statistics.
2379 * toplev.c (compile_file): Init statistics.
2380 (general_init): Do early statistics initialization.
2381 (finalize): Finish statistics.
2382 * statistics.h (statistics_early_init): Declare.
2383 (statistics_init): Likewise.
2384 (statistics_fini): Likewise.
2385 (statistics_fini_pass): Likewise.
2386 (statistics_counter_event): Likewise.
2387 (statistics_histogram_event): Likewise.
2388 * statistics.c: New file.
2389 * Makefile.in (OBJS-common): Add statistics.o.
2390 (statistics.o): Add dependencies.
2391 * doc/invoke.texi (-fdump-statistics): Document.
2393 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
2395 (execute_pre): Use statistics_counter_event.
2396 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
2397 (substitute_and_fold): Increment it. Use statistics_counter_event.
2399 2008-05-15 Diego Novillo <dnovillo@google.com>
2401 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
2403 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
2404 * tree-ssa-alias.c (new_type_alias): Remove references to
2405 sub-variables from comment.
2406 * tree-ssa-operands.c (swap_tree_operands): Likewise.
2408 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
2410 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
2411 attribute to 1 only for insertps alternative.
2413 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
2415 * config/bfin/bfin.md (loadbytes): New pattern.
2416 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
2417 (bfin_init_builtins): Initialize it.
2418 (bdesc_1arg): Add it.
2420 2008-05-15 Sa Liu <saliu@de.ibm.com>
2422 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
2423 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
2424 * testsuite/lib/target-supports.exp: Add
2425 check_effective_target_fortran_integer_16.
2427 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
2429 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
2430 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
2431 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
2432 (TARGET_RETURN_IN_MEMORY): Define.
2434 2008-05-15 Richard Guenther <rguenther@suse.de>
2437 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
2438 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
2439 represent unmodifiable vars.
2441 2008-05-15 Richard Guenther <rguenther@suse.de>
2443 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
2444 INDIRECT_REF and TARGET_MEM_REF.
2445 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2448 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
2449 H.J. Lu <hongjiu.lu@intel.com>
2451 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
2452 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
2453 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
2454 insn alternatives. Add missing alternatives.
2455 (*vec_concatv2di_rex64_sse4_1): Likewise.
2456 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
2457 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
2460 2008-05-15 Richard Guenther <rguenther@suse.de>
2462 PR tree-optimization/36009
2463 PR tree-optimization/36204
2464 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
2465 (determine_invariantness_stmt): Record the loop a store is
2467 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
2470 2008-05-15 Richard Guenther <rguenther@suse.de>
2472 PR tree-optimization/34330
2473 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
2474 through the pointer will alias the SMT.
2476 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
2478 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
2480 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
2482 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
2484 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2485 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2487 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
2488 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
2489 (vashl_optab): New optab for vector/vector shifts.
2490 (vashr_optab): Ditto.
2491 (vlshr_optab): Ditto.
2492 (vrotl_optab): Ditto.
2493 (vrotr_optab): Ditto.
2494 (optab_subtype): New enum for optab_for_tree_code call.
2495 (optab_for_tree_code): Add enum optab_subtype argument.
2497 * optabs.c (optab_for_tree_code): Take an additional argument to
2498 distinguish between a vector shift by a scalar and vector shift by
2499 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
2500 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
2501 vector shift by a vector.
2502 (expand_widen_pattern_expr): Pass additional argument to
2503 optab_for_tree_code.
2505 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
2506 vrotl_optab, vrotr_optab.
2508 * expr.c (expand_expr_real_1): Update calls to
2509 optab_for_tree_code to distinguish between vector shifted by a
2510 scalar and vector shifted by a vector.
2511 * tree-vectorizer.c (supportable_widening_operation): Ditto.
2512 (supportable_narrowing_operation): Ditto.
2513 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
2514 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
2515 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
2516 (vect_create_epilog_for_reduction): Ditto.
2517 (vectorizable_reduction): Ditto.
2518 (vectorizable_operation): Ditto.
2519 (vect_strided_store_supported): Ditto.
2520 (vect_strided_load_supported): Ditto.
2521 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2522 * expmed.c (expand_shift): Ditto.
2524 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
2526 (ashr@var{m}3): Ditto.
2527 (vashl@var{m}3): Document new vector/vector shift standard name.
2528 (vashr@var{m}3): Ditto.
2529 (vlshr@var{m}3): Ditto.
2530 (vrotl@var{m}3): Ditto.
2531 (vrotr@var{m}3): Ditto.
2533 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
2534 (PPERM_INVERT): Ditto.
2535 (PPERM_REVERSE): Ditto.
2536 (PPERM_REV_INV): Ditto.
2537 (PPERM_ZERO): Ditto.
2538 (PPERM_ONES): Ditto.
2539 (PPERM_SIGN): Ditto.
2540 (PPERM_INV_SIGN): Ditto.
2541 (PPERM_SRC1): Ditto.
2542 (PPERM_SRC2): Ditto.
2544 * config/i386/sse.md (mulv2di3): Add SSE5 support.
2545 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
2546 allows a memory operand to be the value being added, and split it
2547 to improve vectorization.
2548 (sse5_pmacsdqh_mem): Ditto.
2549 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
2550 (sse5_mulv2div2di3_high): Ditto.
2551 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
2552 (vec_pack_trunc_v4si): Ditto.
2553 (vec_pack_trunc_v2di): Ditto.
2554 (sse5_pcmov_<mode>): Remove code that tried to use use
2555 andps/andnps instead of pcmov.
2556 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
2557 pmacsdqh instructions.
2558 (vec_widen_smult_lo_v4si): Ditto.
2560 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
2561 (PPERM_INVERT): Ditto.
2562 (PPERM_REVERSE): Ditto.
2563 (PPERM_REV_INV): Ditto.
2564 (PPERM_ZERO): Ditto.
2565 (PPERM_ONES): Ditto.
2566 (PPERM_SIGN): Ditto.
2567 (PPERM_INV_SIGN): Ditto.
2568 (PPERM_SRC1): Ditto.
2569 (PPERM_SRC2): Ditto.
2570 (ix86_expand_sse_movcc): Move the SSE5 test after the if
2572 (ix86_expand_int_vcond): If SSE5 generate all possible integer
2574 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
2575 says ignore whether the last reference is a memory operand.
2577 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2578 Paolo Bonzini <bonzini at gnu dot org>
2580 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
2583 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
2584 (vlshr<mode>3): Rename from vlshr<mode>3.
2585 (vashr<mode>3): Rename from vashr<mode>3.
2586 (mulv4sf3): Change the names of vector shift patterns.
2590 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
2593 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
2618 * config/spu/spu.md (v): New iterator macro to add v for vector types.
2619 (floatunssidf2_internal): Change vector/vector shift names.
2620 (floatunsdidf2_internal): Ditto.
2627 (vashl<mode>3): Rename from ashl<mode>3.
2628 (vashr<mode>3): Rename from ashr<mode>3.
2629 (vlshr<mode>3): Rename from lshr<mode>3.
2630 (vrotl<mode>3): Rename from rotl<mode>3.
2632 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2635 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
2636 multiply gives the wrong value when doing widening multiplies.
2637 (vec_widen_smult_lo_v4si): Ditto.
2639 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
2641 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
2642 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
2643 emit_library_call_value.
2644 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
2645 * tree.h (ECF_LIBCALL_BLOCK): Removed.
2646 * calls.c (initialize_argument_information, precompute_arguments,
2647 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
2648 (precompute_arguments): Removed flags parameter.
2649 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
2651 2008-05-14 Richard Guenther <rguenther@suse.de>
2653 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
2654 Make sure to register the store if the use is a PHI_NODE.
2656 2008-05-14 Olivier Hainque <hainque@adacore.com>
2658 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
2659 memory if the component is to be referenced in BLKmode according
2660 to get_inner_reference.
2662 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
2664 * calls.c (emit_library_call_value_1): Restore code clearing
2665 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
2667 2008-05-14 Olivier Hainque <hainque@adacore.com>
2668 Nicolas Roche <roche@adacore.com>
2670 * configure.ac: Add support for a "gcc_subdir" variable in
2671 config-lang.in, to denote a subdirectory where the language/GCC
2672 integration files are to be found.
2673 * configure: Regenerate.
2675 2008-05-14 Ira Rosen <irar@il.ibm.com>
2677 PR tree-optimization/36098
2678 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
2679 value for the first load in the group in case of a gap.
2680 (vect_build_slp_tree): Check that there are no gaps in loads.
2682 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
2684 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
2685 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
2686 expand_copysign_bit, ): Change call to emit_no_conflict_block to
2687 emit_insn and remove unneeded code to construct extra args.
2688 (emit_no_conflict_block): Removed.
2689 * optabls.h: (emit_no_conflict_block): Removed.
2690 * cse.c (cse_extended_basic_block): Remove search for
2691 REG_NO_CONFLICT note.
2692 * global.c: Removed incorrect comment added in revision 117.
2693 * expr.c (convert_move): Change call to emit_no_conflict_block to
2695 * recog.c: Change comments so that they do not mention
2697 * local_alloc.c (combine_regs): Removed last parameter.
2698 (no_conflict_p): Removed.
2699 (block_alloc): Removed note, no_conflict_combined_regno and set
2700 local vars. Removed all code to process REG_NO_CONFLICT blocks.
2701 (combine_regs): Removed already_dead and code to look for
2702 REG_NO_CONFLICT notes.
2703 * lower_subreg (remove_retval_note): Removed code to look for
2704 REG_NO_CONFLICT block.
2705 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
2706 (resolve_clobber): Remove code to process libcalls that have
2707 REG_NO_CONFLICT notes.
2708 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
2710 * combine.c (can_combine_p, distribute_notes): Removed
2711 REG_NO_CONFLICT case.
2712 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
2714 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
2715 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
2717 * reg-notes.def (NO_CONFLICT): Removed.
2719 2008-05-14 David S. Miller <davem@davemloft.net>
2721 * config/sparc/sparc.c (sparc_profile_hook): If
2722 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
2723 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
2724 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2726 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
2728 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
2730 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
2733 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
2734 and op1 expansion before vector concat to have less live pseudos.
2736 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
2738 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
2739 ix86_expand_vector_set if supported.
2741 2008-05-13 Diego Novillo <dnovillo@google.com>
2742 Kenneth Zadeck <zadeck@naturalbridge.com>
2744 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
2746 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
2747 phinodes_print_statistics, init_ssanames, fini_ssanames,
2748 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
2749 release_ssa_name, release_defs, replace_ssa_name_symbol,
2750 ssanames_print_statistics): Move ...
2751 * tree-flow.h: ... here.
2752 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
2753 Use FN instead of cfun.
2754 (make_ssa_name_fn): Rename from make_ssa_name.
2755 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
2756 * tree-flow-inline.h (make_ssa_name): Move from
2757 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
2758 * omp-low.c (expand_omp_parallel):
2759 * tree-flow-inline.h (redirect_edge_var_map_result):
2760 * tree-ssa.c (init_tree_ssa): Add argument FN.
2761 Use it instead of cfun. Update all users.
2763 2008-05-13 Tom Tromey <tromey@redhat.com>
2765 PR preprocessor/22168:
2766 * doc/cpp.texi (Top): Update menu.
2767 (Alternatives to Wrapper #ifndef): New node.
2768 (Other Directives): Document deprecation.
2769 (Obsolete Features): Remove menu.
2770 (Assertions): Merge node into Obsolete Features.
2771 (Obsolete once-only headers): Move earlier; rename to Alternatives
2773 * doc/cppopts.texi: Update.
2774 * c.opt (Wdeprecated): Enable for C and ObjC.
2775 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
2776 (C++ Dialect Options): Move -Wno-deprecated from here to...
2777 (Warning Options): ... here.
2779 2008-05-13 Richard Guenther <rguenther@suse.de>
2782 * fold-const.c (fold_sign_changed_comparison): Do not allow
2783 changes in pointer-ness.
2785 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
2788 * config/sh/sh.c (sh_expand_prologue): Don't clear
2789 RTX_FRAME_RELATED_P for push insns.
2791 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
2793 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
2795 2008-05-12 Anatoly Sokolov <aesok@post.ru>
2797 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
2798 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
2799 Use 'machine->is_leaf' instead of 'leaf_func_p'.
2801 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
2803 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
2804 (*vec_concatv4sf_sse): This.
2805 (*sse2_concatv2si): Renamed to ...
2806 (*vec_concatv2si_sse2): This.
2807 (*sse1_concatv2si): Renamed to ...
2808 (*vec_concatv2si_sse): This.
2809 (*vec_concatv2di_rex): Renamed to ...
2810 (*vec_concatv2di_rex64): This.
2811 (*vec_concatv2si_sse4_1): New.
2812 (*vec_concatv2di_rex64_sse4_1): Likewise.
2814 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
2816 PR rtl-optimization/36111
2817 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
2818 that was created for swappable operands.
2820 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
2823 * Makefile.in: Substitute GNATMAKE and GNATBIND.
2824 * configure.ac: Add call to ACX_PROG_GNAT.
2826 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
2828 * optc-gen.awk: Fix comment typo.
2830 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2832 * pretty-print.c (pp_integer_with_precision): Use
2833 HOST_LONG_LONG_FORMAT.
2835 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
2837 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
2839 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
2841 * config/i386/i386.c (bdesc_ptest): Removed.
2842 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
2843 (bdesc_args): Add __builtin_ia32_ptestz128,
2844 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
2845 (ix86_init_mmx_sse_builtins): Updated.
2846 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
2847 (ix86_expand_builtin): Updated.
2849 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2851 * tree-cfg.c (valid_fixed_convert_types_p): New function.
2852 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
2854 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
2856 * value-prof.c (interesting_stringop_to_profile): Do not
2857 return early for BUILT_IN_MEMPCPY.
2859 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
2861 * calls.c (expand_call): Don't use callgraph to increase
2862 preferred_stack_boundary.
2864 * cgraph.h (cgraph_rtl_info): Use unsigned on
2865 preferred_incoming_stack_boundary.
2867 * final.c (rest_of_clean_state): Use unsigned on
2868 preferred_stack_boundary.
2870 2008-05-09 Tom Tromey <tromey@redhat.com>
2872 PR preprocessor/22231:
2873 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
2876 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
2878 PR tree-optimization/36129
2879 * tree-ssa-ccp.c: Include value-prof.h.
2880 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
2881 built-in function was folded to a constant.
2882 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
2884 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
2885 Sebastian Pop <sebastian.pop@amd.com>
2887 * tree-scalar-evolution.c: Document instantiate_scev.
2888 (instantiate_parameters_1): Renamed instantiate_scev_1.
2889 Don't use the same loop for instantiation_loop and evolution_loop.
2890 (instantiate_scev): New.
2891 (instantiate_parameters): Moved...
2892 (resolve_mixers): Update call to instantiate_scev_1 to pass the
2893 same loop twice. Maintains the semantics for this function.
2894 * tree-scalar-evolution.h (instantiate_scev): Declare.
2895 (instantiate_parameters): ...here. Now static inline.
2896 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
2897 instead of resolve_mixers.
2899 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
2901 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
2903 2008-05-09 Tomas Bily <tbily@suse.cz>
2905 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
2906 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
2907 * tree-ssa-structalias.c (get_constraint_for): Likewise.
2908 * c-common.c (c_common_truthvalue_conversion): Likewise.
2909 * tree-object-size.c (compute_object_offset): Likewise.
2910 * tree-inline.c (estimate_num_insns_1): Likewise.
2911 * varasm.c (const_hash_1, compare_constant, copy_constant)
2912 (compute_reloc_for_constant, output_addressed_constants)
2913 (initializer_constant_valid_p): Likewise.
2914 * c-omp.c (check_omp_for_incr_expr): Likewise.
2915 * gimplify.c (gimplify_expr): Likewise.
2916 * c-typeck.c (c_finish_return): Likewise.
2917 * tree-vectorizer.c (supportable_widening_operation)
2918 (supportable_narrowing_operation): Likewise.
2919 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
2920 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
2921 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
2922 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
2923 (descr_info_loc): Likewise.
2924 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2925 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
2926 (fold_unary): Likewise.
2927 * builtins.c (get_pointer_alignment): Likewise.
2928 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
2929 (instantiate_parameters_1): Likewise.
2930 * tree.c (expr_align, stabilize_reference): Likewise.
2931 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
2932 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
2933 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
2934 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2935 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
2936 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
2938 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
2939 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
2940 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
2941 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
2942 (forward_propagate_comparison)
2943 (tree_ssa_forward_propagate_single_use_vars): Likewise.
2944 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
2945 * emit-rtl.c (component_ref_for_mem_expr)
2946 (set_mem_attributes_minus_bitpos): Likewise.
2947 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
2948 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
2950 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
2951 (build_function_call, pointer_diff, build_compound_expr)
2952 (c_finish_return): Likewise.
2953 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
2954 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
2956 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
2957 * expr.c (is_aligning_offset): Likewise.
2958 * tree-ssa-alias.c (is_escape_site): Likewise.
2959 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
2960 (check_all_va_list_escapes): Likewise.
2961 * tree-ssa-loop-ivopts.c (determine_base_object)
2962 (determine_common_wider_type): Likewise.
2963 * dojump.c (do_jump): Likewise.
2964 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
2965 * tree-gimple.c (is_gimple_cast): Likewise.
2966 * fold-const.c (decode_field_reference, )
2967 (fold_sign_changed_comparison, fold_unary, fold_comparison)
2968 (fold_binary): Likewise.
2969 * tree-ssa-alias-warnings.c (find_alias_site_helper)
2970 (already_warned_in_frontend_p): Likewise.
2971 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
2972 * tree.c (really_constant_p, get_unwidened): Likewise.
2973 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
2974 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
2975 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
2977 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
2979 (CONVERT_EXPR_P): Define.
2980 (CASE_CONVERT): Define.
2982 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
2985 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
2986 (delete_unmarked_insns): When deleting a call, call
2987 delete_unreachable_blocks.
2988 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
2989 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
2991 2008-05-08 Richard Guenther <rguenther@suse.de>
2993 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
2994 (-ftree-salias): Likewise.
2995 (salias-max-implicit-fields): Remove param documentation.
2996 (salias-max-array-elements): Likewise.
2997 * tree-pass.h (pass_create_structure_vars): Remove.
2998 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
2999 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3000 * tree-ssa-alias.c (create_structure_vars): Remove.
3001 (gate_structure_vars): Likewise.
3002 (pass_create_structure_vars): Likewise.
3003 (gate_build_alias): Likewise.
3004 (pass_build_alias): Adjust to run always and dump the function.
3005 * common.opt (ftree-salias): Hide.
3006 * passes.c (init_optimization_passes): Remove
3007 pass_create_structure_vars, adjust comment.
3008 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3009 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3010 * opts.c (decode_options): Do not set flag_tree_salias.
3011 (common_handle_option): Add OPT_ftree_salias to the backward
3012 compatibility section.
3014 2008-05-08 Richard Guenther <rguenther@suse.de>
3016 * tree-flow-inline.h (var_can_have_subvars): Move ...
3017 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
3018 * tree-flow.h (var_can_have_subvars): Remove.
3019 (push_fields_onto_fieldstack): Remove.
3020 (sort_fieldstack): Likewise.
3021 (struct fieldoff): Move ...
3022 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
3023 alias_set and base_for_components fields.
3024 (sort_fieldstack): Make static.
3025 (push_fields_onto_fieldstack): Likewise. Remove code that
3026 handles anything but RECORD_TYPEs. Remove alias_set and
3027 base_for_components handling.
3028 (create_variable_info_for): Adjust.
3030 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
3032 * common.opt (Wframe-larger-than=): Shorten the help message
3034 * doc/invoke.texi (Wframe-larger-than=): Add more description.
3036 2008-05-08 Rafael Espindola <espindola@google.com>
3038 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
3040 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
3041 trap and that both operands are gimple values.
3042 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
3043 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
3046 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
3048 * read-rtl.c (join_c_conditions): Return the first string if the
3049 two strings are equal.
3051 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
3053 * gensupport.h (pred_data): Add a "num_codes" field.
3054 (add_predicate_code): Declare.
3055 * gensupport.c (add_predicate_code): New function.
3056 (std_pred_table): Add an "allows_const_p" field.
3057 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
3058 Remove the (incomplete) list of such codes from the codes field.
3059 (init_predicate_table): Use add_predicate_code. Add all
3060 RTX_CONST_OBJs if allows_const_p is true.
3061 * genrecog.c (process_define_predicate): Use add_predicate_code.
3063 2008-05-08 David Daney <ddaney@avtrex.com>
3064 Richard Sandiford <rsandifo@nildram.co.uk>
3066 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
3067 special case of constant zero operands.
3068 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
3069 old and new values. Special case constant zero values.
3070 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
3072 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
3073 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
3075 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
3078 * simplify-rtx.c (simplify_plus_minus): Create CONST of
3079 similar RTX_CONST_OBJ before CONST_INT.
3081 2008-05-08 Steve Ellcey <sje@cup.hp.com>
3083 * stmt.c (expand_stack_restore): Change sa mode if needed.
3085 2008-05-08 Richard Guenther <rguenther@suse.de>
3087 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
3088 return type to bool.
3089 (ix86_sol10_return_in_memory): Likewise.
3090 (ix86_i386elf_return_in_memory): Likewise.
3091 (ix86_i386interix_return_in_memory): Likewise.
3092 * config/i386/i386.c (ix86_return_in_memory): Likewise.
3093 (ix86_sol10_return_in_memory): Likewise.
3094 (ix86_i386elf_return_in_memory): Likewise.
3095 (ix86_i386interix_return_in_memory): Likewise.
3097 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
3100 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
3102 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
3103 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
3106 2008-05-08 Richard Guenther <rguenther@suse.de>
3108 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
3109 * tree-data-ref.h (struct dr_alias): Remove subvars field.
3110 (DR_SUBVARS): Remove.
3111 * tree-dfa.c (dump_subvars_for): Remove.
3112 (debug_subvars_for): Likewise.
3113 (dump_variable): Do not dump subvars.
3114 (remove_referenced_var): Do not remove subvars.
3115 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
3116 (lookup_subvars_for_var): Remove.
3117 (get_subvars_for_var): Likewise.
3118 (get_subvars_at): Likewise.
3119 (get_first_overlapping_subvar): Likewise.
3120 (overlap_subvar): Likewise.
3121 * tree-flow.h (subvar_t): Remove.
3122 (struct var_ann_d): Remove subvars field.
3123 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
3124 argument. Remove special handling of SFTs.
3125 (compute_tag_properties): Likewise.
3126 (set_initial_properties): Likewise.
3127 (compute_call_clobbered): Likewise.
3128 (count_mem_refs): Likewise.
3129 (compute_memory_partitions): Likewise.
3130 (compute_flow_insensitive_aliasing): Likewise.
3131 (setup_pointers_and_addressables): Likewise.
3132 (new_type_alias): Likewise.
3133 (struct used_part): Remove.
3134 (used_portions): Likewise.
3135 (struct used_part_map): Likewise.
3136 (used_part_map_eq): Likewise.
3137 (used_part_map_hash): Likewise.
3138 (free_used_part_map): Likewise.
3139 (up_lookup): Likewise.
3140 (up_insert): Likewise.
3141 (get_or_create_used_part_for): Likewise.
3142 (create_sft): Likewise.
3143 (create_overlap_variables_for): Likewise.
3144 (find_used_portions): Likewise.
3145 (create_structure_vars): Likewise.
3146 * tree.def (STRUCT_FIELD_TAG): Remove.
3147 * tree.h (MTAG_P): Adjust.
3148 (struct tree_memory_tag): Remove base_for_components and
3149 unpartitionable flags.
3150 (struct tree_struct_field_tag): Remove.
3151 (SFT_PARENT_VAR): Likewise.
3152 (SFT_OFFSET): Likewise.
3153 (SFT_SIZE): Likewise.
3154 (SFT_NONADDRESSABLE_P): Likewise.
3155 (SFT_ALIAS_SET): Likewise.
3156 (SFT_UNPARTITIONABLE_P): Likewise.
3157 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
3158 (union tree_node): Remove sft field.
3159 * alias.c (get_alias_set): Remove special handling of SFTs.
3160 * print-tree.c (print_node): Remove handling of SFTs.
3161 * tree-dump.c (dequeue_and_dump): Likewise.
3162 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
3163 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
3164 * tree-predcom.c (set_alias_info): Do not set subvars.
3165 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
3166 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
3167 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
3168 (add_vars_for_offset): Remove.
3169 (add_virtual_operand): Remove special handling of SFTs.
3170 (add_call_clobber_ops): Likewise.
3171 (add_call_read_ops): Likewise.
3172 (get_asm_expr_operands): Likewise.
3173 (get_modify_stmt_operands): Likewise.
3174 (get_expr_operands): Likewise.
3175 (add_to_addressable_set): Likewise.
3176 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
3177 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3178 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
3179 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
3180 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
3181 (tree_node_structure): Likewise.
3182 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
3184 (find_what_p_points_to): Likewise.
3186 2008-05-08 Sa Liu <saliu@de.ibm.com>
3188 * config/spu/spu.md: Fixed subti3 pattern.
3190 2008-05-08 Richard Guenther <rguenther@suse.de>
3193 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
3194 sure to create a representative for trailing arrays for PTA.
3196 2008-05-08 Richard Guenther <rguenther@suse.de>
3199 * fold-const.c (operand_equal_p): Two objects which types
3200 differ in pointerness are not equal.
3202 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
3204 * calls.c (compute_argument_block_size): Add argument tree fndecl.
3205 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
3206 (emit_library_call_value_1): Add new variable fndecl initialized by
3207 NULL_TREE. It should be the decl type of orgfun, but this information
3208 seems not to be available here, so it uses the default calling abi.
3209 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
3210 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
3211 by TARGET_RETURN_IN_MEMORY.
3212 * config/i386/i386-interix.h: Likewise.
3213 * config/i386/i386.h: Likewise.
3214 * config/i386/i386elf.h: Likewise.
3215 * config/i386/ptx4-i.h: Likewise.
3216 * config/i386/sol2-10.h: Likewise.
3217 * config/i386/sysv4.h: Likewise.
3218 * config/i386/vx-common.h: Likewise.
3219 * config/cris/cris.h: Removed #if 0 clause.
3220 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
3221 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
3223 (ix86_sol10_return_in_memory): Likewise.
3224 (ix86_i386elf_return_in_memory): New.
3225 (ix86_i386interix_return_in_memory): New.
3226 * config/mt/mt-protos.h (mt_return_in_memory): New.
3227 * config/mt/mt.c: Likewise.
3228 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3229 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
3230 * config/bfin/bfin.h: Likewise.
3231 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
3233 * config/bfin/bfin.c: Likewise.
3234 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3235 * config/alpha/unicosmk.h: Likewise.
3236 * config/i386/cygming.h: Likewise.
3237 * config/iq2000/iq2000.h: Likewise.
3238 * config/mips/mips.h: Likewise.
3239 * config/mn10300/mn10300.h: Likewise.
3240 * config/rs6000/rs6000.h: Likewise.
3241 * config/score/score.h: Likewise.
3242 * config/spu/spu.h: Likewise.
3243 * config/v850/v850.h: Likewise.
3244 * defaults.h: Likewise.
3245 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
3246 * expr.c (emit_block_move): Adjust use of
3247 OUTGOING_REG_PARM_STACK_SPACE.
3248 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
3249 OUTGOING_REG_PARM_STACK_SPACE.
3250 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
3252 2008-05-08 Jakub Jelinek <jakub@redhat.com>
3254 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
3255 on OMP_RETURN for OMP_FOR.
3258 * dwarf2out.c (dw_expand_expr, common_check): Removed.
3259 (fortran_common): New function.
3260 (gen_variable_die): Call fortran_common instead of common_check,
3261 adjust for it returning tree instead of rtx. Formatting.
3263 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
3267 * see.c (see_copy_insn): Copy new pure const attributes for new call.
3268 * c-decl.c (merge_decls): Ditto.
3269 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
3270 to RTL_CONST_OR_PURE_CALL_P.
3271 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
3272 Initialized DECL_LOOPING_CONST_PURE.
3273 (process_call_operands): Set tree_side_effects properly.
3274 * tree.h (TREE_READONLY_DECL_P): Removed.
3275 (DECL_IS_PURE): Renamed to DECL_PURE_P.
3276 (DECL_LOOPING_OR_CONST_P): New macro.
3277 (struct tree_function_decl): Added looping_const_or_pure_p.
3279 (ECF_LOOPING_OR_CONST_P): New macro.
3280 * rtlanal.c (pure_const_p): Removed.
3281 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
3282 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
3283 to RTL_CONST_CALL_P.
3284 * ipa-pure-const.c (pure_const_state_e): Added looping field.
3285 (check_decl, check_tree, check_call, scan_function): Initialize
3287 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
3288 (static_execute): Set looping true for recursive functions.
3289 Undo setting state to IPA_NEITHER for recursive functions.
3291 * ifcvt.c (noce_can_store_speculate_p): Changed
3292 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
3293 RTL_CONST_OR_PURE_CALL_P.
3294 * dse.c (scan_insn): Ditto.
3295 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
3296 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
3297 RTL_CONST_OR_PURE_CALL_P.
3298 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
3299 pure_call_p to RTL_CONST_CALL_P.
3300 * gimplify.c (gimplify_call_expr): Clear side effects for
3301 non-looping pure and constant calls.
3302 * calls.c (emit_call_1): Set rtl flags from ecf flags.
3303 (flags_from_decl_or_type): Set ecf flags from decl flags.
3304 (initialize_argument_information): Turn off
3305 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
3306 Change const to pure if callee_copies is true rather than just
3308 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
3309 way of marking pure calls.
3310 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
3311 Remove hack that was supposed to fix pr7335 and remove old
3312 way of marking pure calls.
3313 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
3314 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
3315 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
3316 RTL_CONST_OR_PURE_CALL_P.
3317 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
3318 * loop-invariant.c (find_exits, find_invariant_bb): Changed
3319 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
3320 * sched-deps.c (schedule_analyze): Ditto.
3321 * rtl.h (struct rtx_def): Use call field, unchanging field, and
3322 return_val field of calls to represent pure and const function info.
3323 (CONST_OR_PURE_CALL_P): Deleted macro.
3324 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3325 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
3326 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
3328 * tree-optimize.c (execute_fixup_cfg): Added test for
3329 ECF_LOOPING_CONST_OR_PURE.
3330 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
3332 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
3333 effects for looping pure or const calls.
3334 (verify_gimple_expr): Added verification code.
3335 * config/alpha/alpha.c (alpha_legitimize_address,
3336 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
3338 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
3339 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
3340 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
3341 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
3342 RTL_CONST_OR_PURE_CALL_P.
3343 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
3344 and const calls to be deleted.
3346 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
3349 * config/i386/mmx.md (mmx_subv2sf3): New expander.
3350 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
3351 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
3352 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3353 to handle nonimmediate operands.
3354 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
3355 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
3356 to handle nonimmediate operands.
3357 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
3358 (mmx_pmulhrwv4hi3): New expander. Use
3359 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3360 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
3361 (sse2_umulv1siv1di3): New expander. Use
3362 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3363 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
3364 (mmx_eq<mode>3): New expander. Use
3365 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3366 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
3367 (mmx_uavgv8qi3): New expander. Use
3368 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3369 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
3370 (mmx_uavgv4hi3): New expander. Use
3371 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3373 * config/i386/sse.md
3374 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
3375 to handle nonimmediate operands.
3376 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
3377 to handle nonimmediate operands.
3378 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
3379 to handle nonimmediate operands.
3380 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
3381 to handle nonimmediate operands.
3382 (sse2_unpckhpd_exp): New expander. Use
3383 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3384 (sse2_unpcklpd_exp): New expander. Use
3385 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3386 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
3387 to handle nonimmediate operands.
3388 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
3389 to handle nonimmediate operands.
3390 (*sse2_<plusminus_insn><mode>3): Rename from
3391 sse2_<plusminus_insn><mode>3 insn pattern.
3392 (sse2_<plusminus_insn><mode>3): New expander. Use
3393 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3394 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
3395 (sse2_umulv2siv2di3): New expander. Use
3396 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3397 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
3398 (sse4_1_mulv2siv2di3): New expander. Use
3399 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3400 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
3401 (sse2_pmaddwd): New expander. Use
3402 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3403 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
3404 (sse2_eq<mode>3): New expander. Use
3405 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3406 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
3407 (sse4_1_eqv2di3): New expander. Use
3408 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3409 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3410 (sse2_uavgv16qi3): New expander. Use
3411 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3412 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3413 (sse2_uavgv16qi3): New expander. Use
3414 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3415 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
3416 (sse2_uavgv8hi3): New expander. Use
3417 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3418 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
3419 (ssse3_pmulhrswv8hi3): New expander. Use
3420 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3421 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
3422 (ssse3_pmulhrswv4hi3): New expander. Use
3423 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3425 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
3426 (<sse>_vmmul<mode>3): Ditto.
3427 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
3429 (ssse3_pmaddubsw128): Use register_operand for operand 1.
3430 (ssse3_pmaddubsw): Ditto.
3432 * config/i386/i386.c (struct_builtin_description)
3433 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
3434 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
3435 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
3436 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
3437 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
3438 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
3439 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
3440 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
3441 (ix86_fixup_binary_operands): Assert that src1
3442 and src2 must have the same mode when swapped.
3443 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
3444 and ix86_binary_operator_ok. Do not force operands in registers
3447 2008-05-07 Jan Hubicka <jh@suse.cz>
3449 * cgraph.c (dump_cgraph_node): Update.
3450 * cgraph.h (cgraph_local_info): Break out inline summary.
3451 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
3453 * ipa-inline (inline_summary): New accestor function.
3454 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
3455 cgraph_decide_inlining, compute_inline_parameters): Update.
3456 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
3458 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
3460 Cleanup ColdFire scheduling support and add V4 pipeline model.
3462 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
3463 (define_attr cpu): Add cfv4 value.
3464 (define_attr type, define_attr type1): Merge into a single 'type'
3465 attribute. Update all uses.
3466 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
3467 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
3469 (define_attr opx_mem, define_attr opy_mem): Remove.
3470 (define_attr op_mem): Clean up, update comment.
3471 (define_attr size): Use specific values instead of general int.
3472 (define_attr guess, define_attr split): Remove. Update all uses.
3473 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
3474 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
3475 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
3476 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
3477 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
3478 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
3479 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
3480 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
3481 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
3482 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
3483 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
3484 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
3485 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
3486 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
3487 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
3488 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
3489 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
3490 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
3491 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
3492 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
3493 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
3494 Update or set attributes.
3495 (stack_tie): New fake instruction.
3497 * config/m68k/m68k.h (TUNE_CFV4): New macro.
3498 (m68k_sched_attr_size): Update declaration.
3499 (m68k_sched_attr_type2): Remove.
3500 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
3501 Declare new bypass predicates.
3503 * config/m68k/m68k.c (m68k_sched_issue_rate,
3504 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
3506 (TARGET_SCHED_ISSUE_RATE,
3507 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
3508 (override_options): Handle scheduling for ColdFire V4 core.
3509 (m68k_expand_prologue): Emit stack_tie.
3510 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
3511 'OP_TYPE_FPN'. Update all uses.
3512 (sched_guess_p): Remove.
3513 (sched_address_type): Handle symbolic addresses.
3514 (sched_get_operand): New static function.
3515 (sched_operand_type): Merge into sched_attr_op_type.
3516 (sched_attr_op_type): Handle FP registers, handle quick constants,
3518 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
3519 (m68k_sched_attr_size): Update. Move logic to ...
3520 (sched_get_attr_size_int): New static function.
3521 (sched_get_opxy_mem_type): New static function.
3522 (m68k_sched_attr_op_mem): Update.
3523 (m68k_sched_attr_type2): Remove.
3524 (sched_cfv4_bypass_data): New static variable.
3525 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
3526 (m68k_sched_issue_rate): Implement scheduler hook.
3527 (struct _sched_ib: enabled_p): New field.
3528 (m68k_sched_variable_issue): Update. Handle V4.
3529 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
3530 sched_dump_class_func_t, sched_dump_split_class,
3531 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
3532 sched_dump_dfa_class, m68k_sched_dump): Remove.
3533 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
3535 (m68k_sched_init_global): Remove statisctics dumping, introduce
3536 sanity check that all instructions have pipeline reservations. Handle
3538 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
3539 Handle ColdFire V4 core.
3540 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
3541 New static functions.
3542 (m68k_sched_address_bypass_p): New bypass predicate.
3543 (sched_get_indexed_address_scale): New static function.
3544 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
3546 * cf.md: Update comments.
3547 (define_attr type2): Remove. Use 'type' attribute instead.
3549 (cf_ib): Rename to cfv123_ib. Update all uses.
3550 (cf_oep): Rename to cfv123_oep. Update all uses.
3551 (cf_chr): Rename to cfv123_chr. Update all uses.
3552 (cf_mem): Rename to cfv123_mem. Update all uses.
3553 (cf_mac): Move to more appropriate place.
3554 (cfv123_guess): New automaton and cpu_unit.
3555 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
3556 Update uses of 'size' attribute. Handle before reload scheduling.
3557 (cfv123_guess): New dummy reservation for unhandled instructions.
3558 (cfv4_*): Pipeline description of ColdFire V4 core.
3559 (ignore): New reservation to handle 'ignore' type.
3561 2008-05-07 Ian Lance Taylor <iant@google.com>
3564 * gimplify.c (find_single_pointer_decl_1): Don't look through
3566 (find_single_pointer_decl): Adjust comments.
3568 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3571 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
3572 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
3575 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
3576 integral type rather than floating point, then VIEW_CONVERT_EXPR
3577 to the floating point type.
3579 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
3581 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
3582 TFmode op0 to register.
3584 2008-05-07 Alan Modra <amodra@bigpond.net.au>
3586 * c-decl.c (grokdeclarator): Comment typo.
3588 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
3590 * tree-flow.h: Remove prototype for computed_goto_p.
3591 * tree-cfg.c (computed_goto_p): Make static.
3593 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
3596 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
3597 (contains_aligned_value_p): This. Handle _Decimal128.
3598 (ix86_function_arg_boundary): Only align _Decimal128 to its
3599 natural boundary and handle it properly.
3601 2008-05-06 Martin Jambor <mjambor@suse.cz>
3603 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
3604 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
3605 (ipcp_method_set_orig_node): Removed.
3606 (ipcp_cval_get_cvalue_type): Removed.
3607 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
3608 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
3609 (ipcp_cval_set_cvalue_type): Removed.
3610 (ipcp_cval_get_cvalue): Removed.
3611 (ipcp_cval_set_cvalue): Removed.
3612 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
3613 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
3614 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
3615 (ipcp_cval_meet): Renamed to ipa_lattice_meet
3616 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
3617 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
3618 (ipcp_get_ith_lattice): Changed parameters.
3619 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
3620 (ipcp_lattice_from_jfunc): Changed parameters.
3621 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
3622 (ipcp_method_cval_print): Added temporary variable info.
3623 (ipcp_redirect): Removed already unused local variable caller.
3624 (ipcp_redirect): New temporary variable orig_callee_info
3625 (ipcp_redirect): Removed newly unused local variable callee.
3626 (ipcp_redirect): Removed (a bit confusing) local variable type.
3627 (ipcp_insert_stage): Added local variable info.
3628 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
3630 (ipcp_formal_create): Removed.
3631 (ipcp_method_cval_set): Removed.
3632 (ipcp_propagate_stage): Renamed lattice variables.
3633 (ipcp_method_cval_set_cvalue_type): Removed.
3634 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
3635 (ipcp_print_all_lattices): Changed printed strings to refer to
3636 lattices rather than cvals.
3637 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
3638 (ipcp_propagate_const): Changed formal parameters.
3639 (build_const_val): Changed formal parameters.
3640 (ipcp_insert_stage): Removed useless variable cvalue
3641 (build_const_val): Changed formal parameters.
3642 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
3643 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
3644 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
3645 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
3646 (ipcp_print_func_profile_counts): Changed string from "method" to
3648 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
3649 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
3650 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
3651 (ipcp_structures_print): Renamed to ipcp_print_all_structures
3652 (ipcp_profile_print): Renamed to ipcp_print_profile_data
3653 (ipcp_lat_is_const): Changed parameters and made inline.
3654 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
3655 (ipcp_redirect): Renamed to ipcp_need_redirect_p
3656 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
3657 the predicate condition directly
3658 (ipcp_propagate_stage): Added local variable args. Removed local
3659 variable callee. (Both are mere code simplifications.)
3660 (ipcp_method_dont_insert_const): Renamed to
3661 ipcp_node_not_modifiable_p.
3662 (ipcp_node_not_modifiable_p): Made inline.
3663 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
3664 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
3665 (ipcp_print_all_lattices): Removed variable cvalue
3666 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
3669 2008-05-06 Olivier Hainque <hainque@adacore.com>
3671 * tree-sra.c (try_instantiate_multiple_fields): Early return
3672 if field has POINTER_TYPE.
3674 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
3676 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
3677 by using 'q' specifier for instruction.
3678 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
3680 2008-05-06 Anatoly Sokolov <aesok@post.ru>
3682 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
3683 Change mode of zero_extract from QImode to HImode.
3684 (sign bit tests peepholes): (Ditto.).
3686 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
3688 * config/i386/mmx.md: Remove double backslashes from asm templates.
3689 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
3690 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3691 to handle nonimmediate operands.
3692 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
3693 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3694 to handle nonimmediate operands.
3695 (*mmx_<code>v2sf3_finite): New insn pattern.
3696 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
3697 (mmx_<code>v2sf3): New expander. Use
3698 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3699 (mmx_<plusminus_insn><mode>3): New expander. Use
3700 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3701 (*mmx_<plusminus_insn><mode>3): New insn pattern.
3702 (mmx_add<mode>3): Removed.
3703 (mmx_ssadd<mode>3): Ditto.
3704 (mmx_usadd<mode>3): Ditto.
3705 (mmx_sub<mode>3): Ditto.
3706 (mmx_sssub<mode>3): Ditto.
3707 (mmx_ussub<mode>3): Ditto.
3708 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
3709 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
3710 to handle nonimmediate operands.
3711 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
3713 (mmx_smulv4hi3_highpart): New expander. Use
3714 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3715 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
3717 (mmx_umulv4hi3_highpart): New expander. Use
3718 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3719 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
3720 (mmx_<code>v4hi3): New expander. Use
3721 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3722 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
3723 (mmx_<code>v8qi3): New expander. Use
3724 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3725 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
3726 (mmx_<code><mode>3): New expander. Use
3727 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3729 2008-05-05 Jan Hubicka <jh@suse.cz>
3731 PR tree-optimization/36118
3732 * passes.c (pass_init_dump_file): Fix dump header.
3734 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
3737 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
3738 VCE for function decls.
3740 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
3742 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
3744 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
3746 * config/i386/i386.md (sat_plusminus): New.
3747 (plusminus_insn): Likewise.
3748 (plusminus_mnemonic): Likewise.
3750 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
3751 (*<addsub><mode>3_cc_overflow): Renamed to ...
3752 (*<plusminus_insn><mode>3_cc_overflow): This.
3753 (*<addsub>si3_zext_cc_overflow): Renamed to ...
3754 (*<plusminus_insn>si3_zext_cc_overflow): This.
3756 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
3757 (<plusminus_insn><mode>3): This.
3758 (*<addsub><mode>3): Renamed to ...
3759 (*<plusminus_insn><mode>3): This.
3760 (<sse>_vm<addsub><mode>3): Renamed to ...
3761 (<sse>_vm<plusminus_insn><mode>3): This.
3762 (sse3_h<addsub>v4sf3): Renamed to ...
3763 (sse3_h<plusminus_insn>v4sf3): This.
3764 (sse3_h<addsub>v2df3): Renamed to ...
3765 (sse3_h<plusminus_insn>v2df3): This.
3766 (<plusminus_insn><mode>3): New.
3767 (*<plusminus_insn><mode>3): Likewise.
3768 (sse2_<plusminus_insn><mode>3): Likewise.
3769 (add<mode>): Removed.
3770 (*add<mode>3): Likewise.
3771 (sse2_ssadd<mode>3): Likewise.
3772 (sse2_usadd<mode>3): Likewise.
3773 (sub<mode>3): Likewise.
3774 (*sub<mode>3): Likewise.
3775 (sse2_sssub<mode>3): Likewise.
3776 (sse2_ussub<mode>3): Likewise.
3778 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
3780 * gthr-single.h: Add in required interface elements as per gthr.h.
3781 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
3782 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
3783 Generalize UNUSED macro.
3784 (__gthread_once): Add.
3785 (__gthread_key_create): Add.
3786 (__gthread_key_delete): Add.
3787 (__gthread_getspecific): Add.
3788 (__gthread_setspecific): Add.
3790 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
3792 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
3793 the same size types for the indirect reference on the rhs, then
3796 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
3798 * config/i386/i386.md
3799 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
3800 one insn template instead of template series.
3801 (*xordi_1_rex64): Ditto.
3802 (*xordi_2_rex64): Ditto.
3804 2008-05-05 Ira Rosen <irar@il.ibm.com>
3806 PR tree-optimization/36119
3807 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
3810 2008-06-04 Jan Hubicka <jh@suse.cz>
3812 tree-optimization/36100
3813 * tree-pass.h (pass_O0_always_inline): Declare.
3814 * ipa-inline.c (inline_transform): Remove dead code.
3815 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
3816 pass_O0_always_inline): New.
3817 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
3819 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
3821 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
3822 mnemonic in this_param move for TARGET_64BIT.
3824 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
3826 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
3827 (*strmovsi_rex_1): Ditto.
3828 (*strsetsi_1): Ditto.
3829 (*strsetsi_rex_1): Ditto.
3831 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
3832 adddicc expanders using SWI mode iterator.
3834 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
3837 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
3840 2008-05-04 David S. Miller <davem@davemloft.net>
3842 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
3843 (sparc*-*-linux*): Use linux.h in tm_file.
3844 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
3845 compiler defaulting to 32-bit.
3846 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
3848 * config/sparc/linux.h: Remove definitions now obtained
3849 properly from linux.h
3850 * config/sparc/linux64.h: Likewise.
3851 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
3852 don't want this setting for 32-bit builds in a biarch compiler.
3853 * doc/install.texi: Add sparc-linux to list of targets
3854 supporting --enable-targets=all.
3856 2008-05-03 Andrew Pinski <pinskia@gmail.com>
3858 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
3860 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
3862 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
3863 after V4SI_FTYPE_V8HI.
3864 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
3865 case V4SI_FTYPE_V2DF.
3867 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
3869 * doc/invoke.texi (max-flow-memory-locations): Removed.
3870 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
3872 2008-05-03 Richard Guenther <rguenther@suse.de>
3875 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
3877 2008-05-02 David S. Miller <davem@davemloft.net>
3879 * config.gcc (need_64bit_hwint): Document libcpp dependency.
3881 2008-05-02 Simon Baldwin <simonb@google.com>
3884 * c-common.h (warn_array_subscript_range): Removed.
3885 * c-common.c (warn_array_subscript_range): Ditto.
3886 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
3887 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
3889 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
3891 * config/i386/i386.c (ix86_special_builtin_type): New.
3892 (bdesc_special_args): Likewise.
3893 (ix86_expand_special_args_builtin): Likewise.
3894 (ix86_init_mmx_sse_builtins): Updated.
3895 (ix86_expand_builtin): Updated.
3896 (ix86_expand_store_builtin): Removed.
3897 (ix86_expand_unop_builtin): Likewise.
3899 * config/i386/mm3dnow.h (__v2sf): Moved to ...
3900 * config/i386/mmintrin.h (__v2sf): Here.
3902 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
3904 (_mm_loadl_pi): Likewise.
3905 (_mm_storeh_pi): Replace __v2si with __v2sf.
3906 (_mm_storel_pi): Likewise.
3908 * doc/extend.texi: Correct __builtin_ia32_loadhps,
3909 __builtin_ia32_loadlps, __builtin_ia32_storehps,
3910 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
3911 __builtin_ia32_loadlpd.
3913 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
3915 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
3916 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
3917 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
3918 (ix86_init_mmx_sse_builtins): Updated.
3919 (ix86_expand_args_builtin): Likewise.
3920 (ix86_expand_builtin): Likewise.
3921 (ix86_expand_unop1_builtin): Renamed to ...
3922 (ix86_expand_unop_vec_merge_builtin): This.
3924 2008-05-01 Jan Hubicka <jh@suse.cz>
3927 * ipa-inline.c (inline_generate_summary): Make static.
3928 (inline_transform): Do not call inlining at -O0; make static.
3929 * passes.c (execute_todo): Add sanity check.
3930 (execute_one_ipa_transform_pass): Execute proper flags.
3932 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
3934 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
3935 (DECL_NONADDRESSABLE_P): Likewise.
3936 * alias.c (record_component_aliases): Fix comment.
3938 2008-05-01 Simon Baldwin <simonb@google.com>
3940 * c-common.h (warn_array_subscript_range): New function.