1 2008-06-11 Joseph Myers <joseph@codesourcery.com>
3 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4 with function calls after declarations. Lay out
5 neon_float_type_node before further use.
7 2008-06-11 Richard Guenther <rguenther@suse.de>
9 * tree-flow.h (may_point_to_global_var): Declare.
10 * tree-ssa-alias.c (may_point_to_global_var): New function.
11 * tree-ssa-sink.c (is_hidden_global_store): Use it.
13 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
15 * configure.ac: Teach that fido supports .debug_line.
16 * configure: Regenerate.
18 2008-06-10 Tom Tromey <tromey@redhat.com>
20 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
23 2008-06-10 Joseph Myers <joseph@codesourcery.com>
25 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
26 (encode_decimal64, decode_decimal64, encode_decimal128,
27 decode_decimal128): Reverse order of 32-bit parts of value if host
28 and target endianness differ.
30 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
31 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
33 (tree_mod_pow2_value_transform): Likewise.
34 (tree_ic_transform): Likewise.
35 (tree_stringops_transform): Likewise.
36 (tree_mod_subtract_transform): Likewise.
37 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
38 (copy_edges_for_bb): Likewise.
39 (initialize_cfun): Likewise.
41 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
43 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
44 nonmemory_operand. Add "N" operand constraint.
46 (*jcc_btdi_mask_rex64): New instruction and split pattern.
47 (*jcc_btsi_mask): Ditto.
48 (*jcc_btsi_mask_1): Ditto.
50 2008-06-10 Joseph Myers <joseph@codesourcery.com>
52 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
53 TYPE_CANONICAL for copied element type.
55 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
58 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
59 Add m_CORE2 and m_GENERIC.
60 * config/i386/predicates.md (bt_comparison_operator): New predicate.
61 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
63 (*jcc_btdi_rex64): New instruction and split pattern.
66 (*btsq): Fix Intel asm dialect operand order.
70 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
73 * simplify-rtx.c (simplify_subreg): Add check for shift count
76 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
78 * doc/md.texi: Synchronize with later constraints.md change.
79 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
80 with a C implementation.
81 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
83 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
84 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
85 when moving to and from MD_REGNUM.
86 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
87 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
88 Handle byte and halfword moves.
89 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
91 * config/mips/constraints.md (h): Turn into NO_REGS.
92 (l, x): Update documentation.
93 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
94 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
95 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
96 (HILO): New mode iterator.
98 (any_div): New code iterator.
99 (u): Extend code attribute to div and udiv.
100 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
101 d_operand in the splitters. Remove redundant CONST_INT checks.
102 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
103 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
104 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
105 accordingly, using normal moves instead of unspecs to move LO into
106 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
107 (<u>mulsidi3): Handle expansion in C code.
108 (<u>mulsidi3_32bit_internal): Rename to...
109 (<u>mulsidi3_32bit): ...this.
110 (<u>mulsidi3_32bit_r4000): Fix insn separator.
111 (*<u>mulsidi3_64bit): Rename to...
112 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
113 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
114 to set LO and HI to the multiplication result. Use a normal move
115 for MFLO and an unspec for MFHI.
116 (*<u>mulsidi3_64bit_parts): Replace with...
117 (<u>mulsidi3_64bit_hilo): ...this new instruction.
118 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
119 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
120 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
121 instead of HI. Split the instruction into a separate multiplication
122 and MFHI if !TARGET_FIX_R4000.
123 (<su>muldi3_highpart): Likewise.
124 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
125 and the "=h" clobber.
126 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
127 (<u>mulditi3): New expander.
128 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
129 (madsi): Remove "=h" clobber.
130 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
131 Force the modulus result to be a GPR and split the instruction into
132 a division followed by an MFHI after reload.
133 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
134 (*lea_high64): Use d_operand in the define_peephole2. Likewise
135 the MIPS16 HIGH define_split.
136 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
137 of acc<->gpr moves to "multi".
138 (*movdi_64bit): Replace the single "x" alternative with
139 alternatives for moving into and out of "a".
140 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
141 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
142 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
143 Use d_operand in the splitters. Remove redundant CONST_INT checks.
144 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
145 (movti): New expander.
146 (*movti, *movti_mips16): New insns.
147 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
148 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
149 (mthi<GPR:mode>_<HILO:mode>): Likewise.
150 * config/mips/predicates.md (fpr_operand): Delete.
151 (d_operand): New predicate.
153 2008-06-09 Michael Meissner <michael.meissner@amd.com>
155 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
156 failure on some Bourne shells.
159 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
161 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
163 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
165 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
166 (sparc-sun-solaris2*): Likewise.
168 2008-06-09 Arnaud Charlet <charlet@adacore.com
170 * doc/install.texi: Update requirements to build the Ada compiler.
172 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
174 * df-scan.c (struct df_scan_problem_data): Remove the
175 mw_link_pool alloc pool.
176 (df_scan_free_internal): Don't free it.
177 (df_scan_alloc): Don't allocate it.
178 * df.h (struct df_link): Update comment.
180 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
182 * except.h: Correct checks for when SJLJ exceptions must be used.
184 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
186 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
189 2008-06-08 Joseph Myers <joseph@codesourcery.com>
191 PR tree-optimization/36218
192 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
193 configure for the build system.
194 (BUILD_LDFLAGS): Define.
195 * configure: Regenerate.
196 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
198 2008-07-08 Anatoly Sokolov <aesok@post.ru>
201 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
202 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
203 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
205 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
207 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
209 2008-06-07 Joseph Myers <joseph@codesourcery.com>
211 * config.gcc (Obsolete configurations): Remove list of
213 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
214 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
215 targets matched by those patterns.
216 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
217 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
218 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
219 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
220 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
221 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
222 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
223 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
224 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
225 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
226 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
227 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
228 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
229 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
230 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
231 Make code for Solaris 7 and greater unconditional for Solaris.
232 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
233 Remove --with-* handling.
234 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
235 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
236 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
237 LINK_OS_WINDISS_SPEC): Remove.
238 * config/rs6000/sysv4.opt (mwindiss): Remove.
239 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
240 * configure: Regenerate.
241 * doc/cpp.texi: Don't mention BeOS.
242 * doc/extend.texi (interrupt): Don't mention MS1.
243 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
244 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
245 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
246 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
247 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
249 * doc/invoke.texi (MT Options): Remove.
251 (CRIS Options): Remove cris-axis-aout references.
252 (HPPA Options): Don't mention hppa1.1-*-pro.
253 * doc/md.texi: (MorphoTech family): Remove.
254 * libgcc2.c: Don't handle UWIN.
255 * config/alpha/t-unicosmk: Remove.
256 * config/alpha/unicosmk.h: Remove.
257 * config/arm/kaos-arm.h: Remove.
258 * config/arm/kaos-strongarm.h: Remove.
259 * config/arm/strongarm-coff.h: Remove.
260 * config/arm/strongarm-elf.h: Remove.
261 * config/arm/strongarm-pe.h: Remove.
262 * config/arm/t-strongarm-pe: Remove.
263 * config/arm/t-xscale-coff: Remove.
264 * config/arm/t-xscale-elf: Remove.
265 * config/arm/xscale-coff.h: Remove.
266 * config/arm/xscale-elf.h: Remove.
267 * config/chorus.h: Remove.
268 * config/cris/aout.h: Remove.
269 * config/cris/aout.opt: Remove.
270 * config/cris/t-aout: Remove.
271 * config/i386/beos-elf.h: Remove.
272 * config/i386/kaos-i386.h: Remove.
273 * config/i386/ptx4-i.h: Remove.
274 * config/i386/sco5.h: Remove.
275 * config/i386/sco5.opt: Remove.
276 * config/i386/sysv4-cpp.h: Remove.
277 * config/i386/sysv5.h: Remove.
278 * config/i386/t-beos: Remove.
279 * config/i386/t-sco5: Remove.
280 * config/i386/t-uwin: Remove.
281 * config/i386/uwin.asm: Remove.
282 * config/i386/uwin.h: Remove.
283 * config/kaos.h: Remove.
284 * config/mips/windiss.h: Remove.
285 * config/mt: Remove directory.
286 * config/pa/pa-osf.h: Remove.
287 * config/pa/pa-pro-end.h: Remove.
288 * config/pa/t-pro: Remove.
289 * config/ptx4.h: Remove.
290 * config/rs6000/beos.h: Remove.
291 * config/rs6000/kaos-ppc.h: Remove.
292 * config/rs6000/t-beos: Remove.
293 * config/rs6000/windiss.h: Remove.
294 * config/sh/kaos-sh.h: Remove.
295 * config/sol2-6.h: Remove.
296 * config/sparc/sol26-sld.h: Remove.
297 * config/sparc/sysv4-only.h: Remove.
298 * config/vax/bsd.h: Remove.
299 * config/vax/t-memfuncs: Remove.
300 * config/vax/ultrix.h: Remove.
301 * config/vax/vaxv.h: Remove.
302 * config/windiss.h: Remove.
304 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
306 PR rtl-optimization/36438
307 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
308 for vector shifts with constant scalar shift operands.
310 2008-06-06 Sandip Matte <sandip@rmicorp.com>
312 * doc/invoke.texi: Document -march=xlr.
313 * config/mips/xlr.md: New file.
314 * config/mips/mips.md: Include it.
316 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
317 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
318 (mips_rtx_cost_data): Likewise.
320 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
322 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
323 PRE_INC and PRE_DEC cases.
325 2008-06-06 Jakub Jelinek <jakub@redhat.com>
327 PR rtl-optimization/36419
328 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
329 the emitting jump insn.
332 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
333 is not bool, boolify the whole *expr_p and convert to the desired type.
335 2008-06-06 Jakub Jelinek <jakub@redhat.com>
337 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
338 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
339 Add omp_private_outer_ref hook, add another argument to
340 omp_clause_default_ctor hook.
341 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
342 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
343 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
344 hook_tree_tree_tree_tree_null.
345 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
346 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
347 * hooks.c (hook_tree_tree_tree_tree_null): New function.
348 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
349 * tree.def (OMP_TASK): New tree code.
350 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
351 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
352 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
353 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
354 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
355 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
356 OMP_CLAUSE_COLLAPSE_EXPR): Define.
357 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
358 (OMP_DIRECTIVE_P): Add OMP_TASK.
359 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
360 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
361 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
362 and OMP_CLAUSE_UNTIED entries.
363 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
365 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
366 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
367 * tree-pretty-print.c (dump_omp_clause): Handle
368 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
369 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
370 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
371 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
372 warning about unsigned iterators. Change decl/init/cond/incr
373 arguments to TREE_VECs, check arguments for all collapsed loops.
374 (c_finish_omp_taskwait): New function.
375 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
377 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
378 default_function_array_conversion on init. Add par_clauses argument.
379 If decl is present in parallel's lastprivate clause, change it to
380 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
381 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
382 collapse count in clauses.
383 (c_parser_omp_for, c_parser_omp_parallel): Adjust
384 c_parser_omp_for_loop callers.
385 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
386 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
387 (c_parser_omp_clause_name): Handle collapse and untied clauses.
388 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
390 (c_parser_omp_clause_schedule): Handle schedule(auto).
391 Include correct location in the error message.
392 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
393 and PRAGMA_OMP_CLAUSE_UNTIED.
394 (OMP_TASK_CLAUSE_MASK): Define.
395 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
396 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
397 * tree-nested.c (convert_nonlocal_omp_clauses,
398 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
399 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
400 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
401 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
403 (conver_nonlocal_reference, convert_local_reference,
404 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
405 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
406 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
407 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
408 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
409 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
410 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
411 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
412 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
414 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
415 * c-common.h (c_finish_omp_taskwait): New prototype.
416 * gimple-low.c (lower_stmt): Handle OMP_TASK.
417 * tree-parloops.c (create_parallel_loop): Create 1 entry
418 vectors for OMP_FOR_{INIT,COND,INCR}.
419 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
420 (make_edges): Handle OMP_TASK.
421 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
422 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
423 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
424 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
425 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
426 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
427 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
428 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
429 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
430 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
431 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
432 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
433 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
434 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
435 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
436 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
437 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
438 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
439 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
440 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
441 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
442 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
443 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
444 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
445 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
446 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
447 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
448 original iterator is present in lastprivate clause or if
449 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
450 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
451 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
452 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
453 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
454 if it is set, lookup var in outer contexts too. Handle
455 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
456 to be implicitly determined firstprivate for task regions.
457 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
458 if it is set, lookup var in outer contexts too. Set
459 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
460 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
461 OMP_CLAUSE_UNTIED. Take region_type as last argument
462 instead of in_parallel and in_combined_parallel.
463 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
465 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
466 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
467 (new_omp_context): Set default_kind to
468 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
469 (omp_region_type): New enum.
470 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
471 fields, add region_type.
472 (new_omp_context): Take region_type as argument instead of is_parallel
473 and is_combined_parallel.
474 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
475 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
476 ctx->is_combined_parallel checks.
477 (gimplify_omp_task): New function.
478 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
480 * omp-low.c (extract_omp_for_data): Use schedule(static)
481 for schedule(auto). Handle pointer and unsigned iterators.
482 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
483 Add loops argument. Extract data for collapsed OMP_FOR loops.
484 (expand_parallel_call): Assert sched_kind isn't auto,
485 map runtime schedule to index 3.
486 (struct omp_for_data_loop): New type.
487 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
488 Add loop, loops, collapse and iter_type fields.
489 (workshare_safe_to_combine_p): Disallow combined for if
490 iter_type is unsigned long long. Don't combine collapse > 1 loops
491 unless all bounds and steps are constant. Adjust extract_omp_for_data
493 (expand_omp_for_generic): Handle pointer, unsigned and long long
494 iterators. Handle collapsed OMP_FOR loops. Adjust
495 for struct omp_for_data changes. If libgomp function doesn't return
496 boolean_type_node, add comparison of the return value with 0.
497 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
498 pointer, unsigned and long long iterators. Adjust for struct
499 omp_for_data changes.
500 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
501 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
502 unsigned long long. Allocate loops array, pass it to
503 extract_omp_for_data. For collapse > 1 loops use always
504 expand_omp_for_generic.
505 (omp_context): Add sfield_map and srecord_type fields.
506 (is_task_ctx, lookup_sfield): New functions.
507 (use_pointer_for_field): Use is_task_ctx helper. Change first
508 argument's type from const_tree to tree. Clarify comment.
509 In OMP_TASK disallow copy-in/out sharing.
510 (build_sender_ref): Call lookup_sfield instead of lookup_field.
511 (install_var_field): Add mask argument. Populate both record_type
512 and srecord_type if needed.
513 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
515 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
516 and DECL_FIELD_OFFSET.
517 (scan_sharing_clauses): Adjust install_var_field callers. For
518 firstprivate clauses on explicit tasks allocate the var by value in
519 record_type unconditionally, rather than by reference.
520 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
521 Use is_taskreg_ctx instead of is_parallel_ctx.
522 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
523 (create_omp_child_function_name): Add task_copy argument, use
524 *_omp_cpyfn* names if it is true.
525 (create_omp_child_function): Add task_copy argument, if true create
526 *_omp_cpyfn* helper function.
527 (scan_omp_parallel): Adjust create_omp_child_function callers.
528 Rename parallel_nesting_level to taskreg_nesting_level.
529 (scan_omp_task): New function.
530 (lower_rec_input_clauses): Don't run constructors for firstprivate
531 explicit task vars which are initialized by *_omp_cpyfn*.
532 Pass outer var ref to omp_clause_default_ctor hook if
533 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
534 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
535 OMP_CLAUSE_REDUCTION_INIT.
536 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
537 avoid duplicate setting of fields. Handle
538 OMP_CLAUSE_PRIVATE_OUTER_REF.
539 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
540 copy-out if TREE_READONLY, only copy-in.
541 (expand_task_copyfn): New function.
542 (expand_task_call): New function.
543 (struct omp_taskcopy_context): New type.
544 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
546 (lower_omp_parallel): Rename to...
547 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
548 Call create_task_copyfn if srecord_type is needed. Adjust
550 (task_shared_vars): New variable.
551 (check_omp_nesting_restrictions): Warn if work-sharing,
552 barrier, master or ordered region is closely nested inside OMP_TASK.
553 Add warnings for barrier if closely nested inside of work-sharing,
554 ordered, or master region.
555 (scan_omp_1): Call check_omp_nesting_restrictions even for
556 GOMP_barrier calls. Rename parallel_nesting_level to
557 taskreg_nesting_level. Handle OMP_TASK.
558 (lower_lastprivate_clauses): Even if some lastprivate is found on a
559 work-sharing construct, continue looking for them on parent parallel
561 (lower_omp_for_lastprivate): Add lastprivate clauses
562 to the beginning of dlist rather than end. Adjust for struct
563 omp_for_data changes.
564 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
565 not after it. Handle collapsed OMP_FOR loops, adjust for
566 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
567 (get_ws_args_for): Adjust extract_omp_for_data caller.
568 (scan_omp_for): Handle collapsed OMP_FOR
569 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
570 (lower_omp_single_simple): If libgomp function doesn't return
571 boolean_type_node, add comparison of the return value with 0.
572 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
573 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
574 (parallel_nesting_level): Rename to...
575 (taskreg_nesting_level): ... this.
576 (is_taskreg_ctx): New function.
577 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
579 (execute_lower_omp): Rename parallel_nesting_level to
580 taskreg_nesting_level.
581 (expand_omp_parallel): Rename to...
582 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
583 Call omp_task_call for OMP_TASK regions.
584 (expand_omp): Adjust caller, handle OMP_TASK.
585 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
587 * bitmap.c (bitmap_default_obstack_depth): New variable.
588 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
589 if argument is NULL and bitmap_default_obstack is already initialized.
590 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
592 * matrix-reorg.c (matrix_reorg): Likewise.
594 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
596 * config/i386/i386.md (*indirect_jump): Macroize using P
597 mode iterator. Remove !TARGET_64BIT from insn constraints.
598 (*tablejump_1): Ditto.
599 (*indirect_jump_rex64): Remove insn pattern.
600 (*tablejump_1_rex64): Ditto.
601 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
602 and eh_return_si insn patterns.
604 2008-06-06 Richard Guenther <rguenther@suse.de>
606 * tree-ssa-structalias.c (merge_smts_into): Remove.
607 (find_what_p_points_to): Do not bother to compute the
608 points-to set for pt_anything pointers.
609 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
610 for pt_anything pointers is ok.
612 2008-06-06 Jan Hubicka <jh@suse.cz>
614 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
616 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
618 * cgraph.c: Fix typos in comments.
619 (cgraph_availability_names): Fix string typo.
620 * fold-const.c: Fix typos in comments.
621 (fold_binary): Fix typo in warning.
622 * genautomata.c: Fix typos in comments.
623 (check_presence_pattern_sets): Fix typo in local variable.
624 (output_description): Fix typo in output.
625 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
627 * matrix-reorg.c (check_allocation_function): Likewise.
628 * omega.c (smooth_weird_equations): Likewise.
629 * auto-inc-dec.c: Fix typos in comments.
630 * bb-reorder.c: Likewise.
631 * builtins.c: Likewise.
632 * c-common.c: Likewise.
633 * c-cppbuiltin.c: Likewise.
634 * c-parser.c: Likewise.
635 * c-pretty-print.c: Likewise.
636 * cfgcleanup.c: Likewise.
637 * cfgexpand.c: Likewise.
638 * cfghooks.c: Likewise.
639 * cfglayout.c: Likewise.
640 * cfgloopmanip.c: Likewise.
641 * cgraphunit.c: Likewise.
642 * coverage.c: Likewise.
643 * dbxout.c: Likewise.
644 * df-byte-scan.c: Likewise.
645 * df-core.c: Likewise.
646 * df-problems.c: Likewise.
647 * df-scan.c: Likewise.
649 * dominance.c: Likewise.
650 * domwalk.c: Likewise.
652 * dwarf2out.c: Likewise.
653 * emit-rtl.c: Likewise.
654 * et-forest.c: Likewise.
655 * function.c: Likewise.
656 * function.h: Likewise.
658 * gcov-io.c: Likewise.
661 * genattrtab.c: Likewise.
662 * ggc-page.c: Likewise.
663 * gimplify.c: Likewise.
664 * gthr-lynx.h: Likewise.
665 * haifa-sched.c: Likewise.
666 * ipa-cp.c: Likewise.
667 * ipa-inline.c: Likewise.
668 * ipa-prop.h: Likewise.
669 * ipa-pure-const.c: Likewise.
670 * ipa-struct-reorg.c: Likewise.
671 * ipa-struct-reorg.h: Likewise.
672 * ipa-type-escape.c: Likewise.
674 * loop-doloop.c: Likewise.
675 * mips-tfile.c: Likewise.
676 * mkmap-flat.awk: Likewise.
677 * mkmap-symver.awk: Likewise.
678 * modulo-sched.c: Likewise.
679 * omp-low.c: Likewise.
680 * optabs.c: Likewise.
681 * optabs.h: Likewise.
683 * passes.c: Likewise.
684 * postreload-gcse.c: Likewise.
685 * postreload.c: Likewise.
686 * predict.c: Likewise.
687 * pretty-print.h: Likewise.
688 * profile.c: Likewise.
689 * protoize.c: Likewise.
690 * ra-conflict.c: Likewise.
693 * regclass.c: Likewise.
695 * reload.c: Likewise.
696 * rtl-error.c: Likewise.
697 * rtlanal.c: Likewise.
699 * sched-rgn.c: Likewise.
702 * target.h: Likewise.
703 * tree-dfa.c: Likewise.
704 * tree-eh.c: Likewise.
705 * tree-flow-inline.h: Likewise.
706 * tree-inline.c: Likewise.
707 * tree-into-ssa.c: Likewise.
708 * tree-loop-distribution.c: Likewise.
709 * tree-nested.c: Likewise.
710 * tree-parloops.c: Likewise.
711 * tree-pass.h: Likewise.
712 * tree-pretty-print.c: Likewise.
713 * tree-profile.c: Likewise.
714 * tree-scalar-evolution.c: Likewise.
715 * tree-sra.c: Likewise.
716 * tree-ssa-alias-warnings.c: Likewise.
717 * tree-ssa-ccp.c: Likewise.
718 * tree-ssa-coalesce.c: Likewise.
719 * tree-ssa-dom.c: Likewise.
720 * tree-ssa-dse.c: Likewise.
721 * tree-ssa-forwprop.c: Likewise.
722 * tree-ssa-live.c: Likewise.
723 * tree-ssa-live.h: Likewise.
724 * tree-ssa-loop-im.c: Likewise.
725 * tree-ssa-loop-ivopts.c: Likewise.
726 * tree-ssa-loop-niter.c: Likewise.
727 * tree-ssa-loop-prefetch.c: Likewise.
728 * tree-ssa-phiopt.c: Likewise.
729 * tree-ssa-phiprop.c: Likewise.
730 * tree-ssa-sccvn.c: Likewise.
731 * tree-ssa-ter.c: Likewise.
732 * tree-ssa-threadupdate.c: Likewise.
733 * tree-ssa.c: Likewise.
734 * tree-vect-analyze.c: Likewise.
735 * tree-vect-transform.c: Likewise.
736 * tree-vectorizer.c: Likewise.
737 * tree-vn.c: Likewise.
738 * tree-vrp.c: Likewise.
740 * tree.def: Likewise.
742 * unwind-dw2-fde.c: Likewise.
743 * unwind.inc: Likewise.
744 * value-prof.c: Likewise.
745 * vmsdbgout.c: Likewise.
747 2008-06-05 David Edelsohn <edelsohn@gnu.org>
749 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
750 always place FP constants in the TOC for TARGET_POWERPC64.
751 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
753 2008-06-05 Joseph Myers <joseph@codesourcery.com>
755 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
756 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
757 enable for TARGET_E500_DOUBLE.
758 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
759 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
760 floating-point modes like integer modes for E500 double.
761 (rs6000_legitimate_offset_address_p): Likewise.
762 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
763 addressing for DDmode for E500 double.
764 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
765 modes as using 64-bits of registers for E500 double.
766 (spe_build_register_parallel): Do not handle DDmode or TDmode.
767 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
768 specially for E500 double.
769 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
770 TDmode for E500 double.
771 (rs6000_gimplify_va_arg): Only handle SDmode in registers
772 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
773 (rs6000_split_multireg_move): Do not handle TDmode specially for
775 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
776 using 64-bit registers for E500 double.
777 (emit_frame_save): Do not handle DDmode specially for E500 double.
778 (gen_frame_mem_offset): Likewise.
779 (rs6000_function_value): Do not call spe_build_register_parallel
780 for DDmode or TDmode.
781 (rs6000_libcall_value): Likewise.
782 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
783 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
786 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
788 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
791 2008-06-04 Junjie Gu <jgu@tensilica.com>
793 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
794 comparison for frame pointers.
796 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
799 * config/avr/avr.h (PUSH_ROUNDING): Remove.
801 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
804 * builtins.c (expand_builtin_signbit): Don't take lowpart when
805 register is already smaller or equal to required mode.
807 2008-06-04 Xinliang David Li <davidxl@google.com>
809 * tree-call-cdce.c: New file.
810 (cond_dead_built_in_calls): New static variable.
811 (input_domain): New struct.
812 (check_pow): New function.
813 (check_builtin_call): Ditto.
814 (check_target_format): Ditto.
815 (is_call_dce_candidate): Ditto.
816 (gen_one_condition): Ditto.
817 (gen_conditions_for_domain): Ditto.
819 (gen_conditions_for_pow_cst_base): Ditto.
820 (gen_conditions_for_pow_int_base): Ditto.
821 (gen_conditions_for_pow): Ditto.
822 (get_no_error_domain): Ditto.
823 (gen_shrink_wrap_conditions): Ditto.
824 (shrink_wrap_one_built_in_call): Ditto.
825 (shink_wrap_conditional_dead_built_in_calls): Ditto.
826 (tree_call_cdce): Ditto.
827 (gate_call_cdce): Ditto.
828 (pass_call_cdce): New gimple pass.
829 * passes.c: (init_optimization_passes): New pass.
830 * tree-pass.h: New pass declaration.
831 * opts.c (decode_options): New flag setting.
832 * common.opt: Add -ftree-builtin-call-dce flag.
833 * Makefile.in: Add new source file.
834 * tempvar.def: New tv_id.
835 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
837 2008-06-04 Richard Guenther <rguenther@suse.de>
839 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
840 (is_call_clobbered): Always check var_ann->call_clobbered.
841 (mark_call_clobbered): Always set var_ann->call_clobbered.
842 (clear_call_clobbered): Always clear var_ann->call_clobbered.
843 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
844 (reset_alias_info): Clear call clobbering info on MTAGs and
846 (set_pt_anything): Set pt_global_mem.
847 (create_tag_raw): Adjust comment.
848 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
850 2008-06-04 Joseph Myers <joseph@codesourcery.com>
851 Maxim Kuvyrkov <maxim@codesourcery.com>
853 * config/m68k/m68k.opt (mxgot): New option.
854 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
855 (m68k_output_addr_const_extra): New.
856 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
857 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
858 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
859 * doc/invoke.texi (M680x0 Options): Document -mxgot.
861 2008-06-04 Richard Guenther <rguenther@suse.de>
863 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
864 negative or non-representable offsets.
866 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
868 * config/i386/i386.c (ix86_gen_leave): New.
869 (ix86_gen_pop1): Likewise.
870 (ix86_gen_add3): Likewise.
871 (ix86_gen_sub3): Likewise.
872 (ix86_gen_sub3_carry): Likewise.
873 (ix86_gen_one_cmpl2): Likewise.
874 (ix86_gen_monitor): Likewise.
875 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
876 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
877 ix86_gen_one_cmpl2 and ix86_gen_monitor.
878 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
879 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
880 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
881 (ix86_expand_epilogue): Updated.
882 (print_operand): Handle integer register operand for 'z'.
883 (ix86_expand_strlensi_unroll_1): Likewise.
884 (ix86_expand_strlen): Likewise.
885 (ix86_expand_builtin): Likewise.
886 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
887 mov{q}/mov{l} and add{q}/add{l}.
889 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
891 * config/i386/i386.md (P): New mode iterator.
892 (SFmode push_operand splitter): Macroize DImode and SImode pushes
893 using P mode iterator.
894 (DFmode push_operand splitter): Ditto.
895 (XFmode push_operand splitter): Ditto.
896 (DFmode float_extend SFmode push_operand splitter): Ditto.
897 (XFmode float_extend SFmode push_operand splitter): Do not generate
898 SImode pushes for 64bit target. Macroize Dimode and SImode
899 pushes using P mode iterator.
900 (XFmode float_extend DFmode push_operand splitter): Ditto.
902 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
904 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
905 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
906 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
908 (ix86_call_abi_override): Remove check for call_used_regs.
910 2008-06-03 Richard Guenther <rguenther@suse.de>
912 * tree-ssa-structalias.c (find_func_aliases): Add constraints
913 for the lhs of calls if the return type contains pointers.
915 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
917 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
918 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
919 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
920 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
921 of cfun and DEFAULT_ABI to deceide abi mode.
923 (REG_PARM_STACK_SPACE): Removed.
924 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
925 (STACK_BOUNDARY): Use default target to deceide stack boundary.
926 * config/i386/i386-protos.h (ix86_cfun_abi): New.
927 (ix86_function_abi): Likewise.
928 (ix86_function_type_abi): Likewise.
929 (ix86_call_abi_override): Likewise.
930 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
931 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
932 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
933 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
935 (X86_64_REGPARM_MAX): New.
936 (X86_64_SSE_REGPARM_MAX): New.
937 (X64_REGPARM_MAX): New.
938 (X64_SSE_REGPARM_MAX): New.
939 (X86_32_REGPARM_MAX): New.
940 (X86_32_SSE_REGPARM_MAX): New.
941 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
942 (ix86_function_regparm): Handle user calling abi.
943 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
944 by DEFAULT_ABI versus SYSV_ABI check.
945 (ix86_reg_parm_stack_space): New.
946 (ix86_function_type_abi): New.
947 (ix86_call_abi_override): New.
948 (ix86_function_abi): New.
949 (ix86_cfun_abi): New.
950 (init_cumulative_args): Call abi specific initialization.
951 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
952 (function_arg_64): Extend SSE_REGPARM_MAX check.
953 (function_arg (): Remove TARGET_64BIT_MS_ABI.
954 (ix86_pass_by_reference): Likewise.
955 (ix86_function_value_regno_p): Likewise.
956 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
957 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
958 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
959 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
960 (setup_incoming_varargs_64): Adjust regparm for call abi.
961 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
962 (ix86_va_start): Likewise.
963 (ix86_gimplify_va_arg): Likewise.
964 (ix86_expand_prologue): Likewise.
965 (output_pic_addr_const): Likewise.
966 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
967 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
968 (x86_output_mi_thunk): Likewise.
969 (x86_function_profiler): Likewise.
970 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
971 (SYSV_ABI, MS_ABI): New constants.
973 (init_regs): Add prototype of function in regclass.c file.
974 (OVERRIDE_ABI_FORMAT): New.
975 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
976 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
977 (OUTGOING_REG_PARM_STACK_SPACE): New.
978 (ix86_reg_parm_stack_space): New prototype.
979 (CUMULATIVE_ARGS): Add call_abi member.
980 (machine_function): Add call_abi member.
981 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
982 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
984 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
987 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
988 (avr_builtin_setjmp_frame_value): New function.
989 * config/avr/avr.md (nonlocal_goto_receiver): Define.
990 (nonlocal_goto): Define.
992 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
994 * config/mips/mips.c (mips_emit_loadgp): Return early if
995 there is nothing do to, otherwise emit a blockage if
996 !TARGET_EXPLICIT_RELOCS || crtl->profile.
997 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
999 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1001 * configure.ac: Drop unneeded backslash ending up in config.in.
1002 * acinclude.m4: Likewise.
1003 * config.in: Regenerate.
1005 2008-05-26 Jan Hubicka <jh@suse.cz>
1007 * predict.c (maybe_hot_frequency_p): Break out of...
1008 (maybe_hot_bb_p): ... here.
1009 (maybe_hot_edge_p): New.
1010 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
1011 * basic-block.h (maybe_hot_edge_p): Declare.
1013 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
1015 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
1016 (*cmpfp_<mode>_cc): Ditto.
1017 (*fp_jcc_8<mode>_387): Ditto.
1018 (*fop_<MODEF:mode>_2_i387): Ditto.
1019 (*fop_<MODEF:mode>_3_i387): Ditto.
1020 (*fop_xf_2_i387): Ditto.
1021 (*fop_xf_3_i387): Ditto.
1023 2008-06-02 Tomas Bily <tbily@suse.cz>
1025 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
1027 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1029 * config/mips/mips.c (mips_valid_offset_p): New function.
1030 (mips_valid_lo_sum_p): Likewise.
1031 (mips_classify_address): Use them.
1032 (mips_force_address): New function.
1033 (mips_legitimize_address): Use it.
1034 * config/mips/mips.md (MOVE128): New mode iterator.
1035 (movtf): Require TARGET_64BIT. Remove empty strings.
1036 (*movtf_internal): Rename to...
1037 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
1038 of "R" and use {,fp}{load,store} attributes instead of "multi".
1039 Use a separate define_split.
1040 (*movtf_mips16): New pattern.
1042 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1044 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
1045 * config/mips/mips.c (mips_expand_before_return): New function.
1046 (mips_expand_epilogue): Call it.
1047 * config/mips/mips.md (return): Turn into a define_expand.
1048 (*return): New insn.
1050 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1052 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
1053 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
1054 functions. Do not emit uses and clobbers of CONCATs; individually
1055 use and clobber their operands.
1056 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
1057 gen_clobber, emit_use and gen_use.
1058 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1059 (expand_builtin_return): Likewise.
1060 * cfgbuild.c (count_basic_blocks): Likewise.
1061 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1062 * explow.c (emit_stack_restore): Likewise.
1063 * expmed.c (extract_bit_field_1): Likewise.
1064 * expr.c (convert_move, emit_move_complex_parts): Likewise.
1065 (emit_move_multi_word, store_constructor): Likewise.
1066 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
1067 (thread_prologue_and_epilogue_insns): Likewise.
1068 * lower-subreg.c (resolve_simple_move): Likewise.
1069 * optabs.c (widen_operand, expand_binop): Likewise.
1070 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
1071 * reload.c (find_reloads): Likewise.
1072 * reload1.c (eliminate_regs_in_insn): Likewise.
1073 * stmt.c (expand_nl_goto_receiver): Likewise.
1074 * config/alpha/alpha.md (builtin_longjmp): Likewise.
1075 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
1076 * config/arm/arm.c (arm_load_pic_register): Likewise.
1077 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
1078 * config/arm/arm.md (untyped_return): Likewise.
1079 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
1080 * config/avr/avr.c (expand_prologue): Likewise.
1081 * config/bfin/bfin.c (do_unlink): Likewise.
1082 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
1083 * config/cris/cris.c (cris_expand_prologue): Likewise.
1084 * config/darwin.c (machopic_indirect_data_reference): Likewise.
1085 (machopic_legitimize_pic_address): Likewise.
1086 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
1087 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
1088 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
1089 (ix86_expand_convert_uns_didf_sse): Likewise.
1090 (ix86_expand_vector_init_general): Likewise.
1091 * config/ia64/ia64.md (eh_epilogue): Likewise.
1092 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
1093 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
1094 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
1095 (config/iq2000/iq2000.c): Likewise.
1096 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
1097 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1098 (builtin_longjmp): Likewise.
1099 * config/mn10300/mn10300.md (call, call_value): Likewise.
1100 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
1101 * config/pdp11/pdp11.md (abshi2): Likewise.
1102 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1103 * config/s390/s390.c (s390_emit_prologue): Likewise.
1104 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
1105 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
1106 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
1107 * config/sh/sh.c (prepare_move_operands): Likewise.
1108 (output_stack_adjust, sh_expand_epilogue): Likewise.
1109 (sh_set_return_address, sh_expand_t_scc): Likewise.
1110 * config/sparc/sparc.c (load_pic_register): Likewise.
1111 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
1112 * config/spu/spu.c (spu_expand_epilogue): Likewise.
1113 * config/v850/v850.c (expand_epilogue): Likewise.
1115 2008-05-31 Anatoly Sokolov <aesok@post.ru>
1117 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
1118 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
1119 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
1120 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
1121 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
1122 stack pointer register.
1123 (output_movhi): Remove code for interrupt specific writing to the
1124 stack pointer register.
1126 2008-05-31 Richard Guenther <rguenther@suse.de>
1128 PR tree-optimization/34244
1129 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
1130 (tree_expr_nonzero_warnv_p): Likewise.
1131 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
1132 ssa_name_nonnegative_p.
1133 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
1134 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
1135 not tree_expr_nonzero_warnv_p.
1137 PR tree-optimization/36262
1139 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
1141 PR tree-optimization/34244
1142 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
1143 (record_numbers_of_iterations): New function.
1144 (execute_vrp): Cache the numbers of iterations of loops.
1145 * tree-scalar-evolution.c (scev_reset_except_niters):
1147 (scev_reset): Use scev_reset_except_niters.
1148 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
1150 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
1152 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1153 __WORKAROUND_RETS when appropriate.
1155 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
1157 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
1158 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
1160 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
1161 *fop_df_comm_sse insn patterns using MODEF mode iterator.
1162 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
1163 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
1164 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
1165 *fop_df_1_mixed insn patterns using MODEF mode iterator.
1166 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
1167 *fop_df_1_sse insn patterns using MODEF mode iterator.
1168 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
1169 *fop_df_1_i387 insn patterns using MODEF mode iterator.
1170 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
1171 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
1172 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
1173 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
1174 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
1175 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
1176 (*fop_xf_4_i387): Use <MODE> for mode attribute.
1177 (*fop_xf_5_i387): Ditto.
1178 (*fop_xf_6_i387): Ditto.
1180 2008-05-30 Richard Guenther <rguenther@suse.de>
1182 * builtins.c (build_string_literal): Avoid generating
1183 a non-gimple_val result.
1185 2008-05-30 DJ Delorie <dj@redhat.com>
1187 * exec-tool.in: Use an environment variable (private) instead of a
1188 file (shared) as a semaphore, so as to not break parallel builds.
1190 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1192 * optabs.c (maybe_encapsulate_block): Remove.
1193 (emit_libcall_block): Adjust accordingly.
1194 * optabs.h (maybe_encapsulate_block): Remove prototype.
1196 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
1197 Don't use maybe_encapsulate_block.
1199 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1201 * config/rs6000/rs6000.c (rs6000_legitimize_address,
1202 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
1203 rtx is a SYMBOL_REF before calling get_pool_constant.
1205 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
1207 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
1209 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
1211 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
1212 rather than OS names to choose INO_T_EQ definition.
1213 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
1214 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
1216 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
1219 * config/darwin-f.c: New.
1220 * config/t-darwin: Added rule to build darwin-f.o.
1221 * config.gcc: Defined new variable, fortran_target_objs.
1222 (*-*-darwin*): Set fortran_target_objs.
1223 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
1224 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
1225 * configure: Regenerated.
1227 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
1230 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
1231 canonical type if needed.
1233 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
1235 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
1237 2008-05-29 Richard Guenther <rguenther@suse.de>
1239 PR tree-optimization/36343
1240 PR tree-optimization/36346
1241 PR tree-optimization/36347
1242 * tree-flow.h (clobber_what_p_points_to): Declare.
1243 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
1244 pointed-to variable is dereferenced is irrelevant to whether
1245 the pointer can access the pointed-to variable.
1246 (clobber_what_p_points_to): New function.
1247 * tree-ssa-alias.c (set_initial_properties): Use it.
1248 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
1249 call clobber check for NMTs.
1251 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1253 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
1254 for printing gcov_type.
1256 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1258 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
1259 and the eh region information.
1260 * value-prof.c (gimple_move_stmt_histograms): New function.
1261 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
1263 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
1265 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
1267 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1269 * value-prof.c (tree_ic_transform): Print counts.
1270 * tree-profile.c (tree_gen_ic_func_profiler):
1271 Clear __gcov_indreict_call_callee variable to avoid misattribution
1274 2008-05-28 Rafael Espindola <espindola@google.com>
1276 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
1279 2008-05-28 Richard Guenther <rguenther@suse.de>
1281 PR tree-optimization/36339
1282 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
1283 and clobbering code out of the loop.
1285 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
1287 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
1290 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
1291 s390_contiguous_bitmask_p, s390_symref_operand_p,
1292 s390_check_symref_alignment, s390_reload_larl_operand,
1293 s390_reload_symref_address): New functions.
1294 (s390_branch_condition_mnemonic): Support compare and branch
1296 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
1297 and 'W' constraints.
1298 (s390_secondary_reload): Add secondary reloads for unaligned
1299 symbol refs or symbol refs to floating point or QI/TI mode
1301 (legitimate_address_p): Accept symbol references as addresses.
1302 (s390_expand_insv): Use rotate and insert selected bits
1303 instruction for insv when building for z10.
1304 (print_operand_address): Handle symbol ref addresses.
1305 (print_operand): Output modifier 'c' added for signed byte values.
1306 (s390_encode_section_info): Mark symbol refs with
1307 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
1309 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
1310 (length attribute): RRF, RRR have 4 byte length.
1311 (FPALL, INTALL): New mode iterators added.
1312 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
1313 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
1314 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
1315 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
1316 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
1317 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
1318 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
1319 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
1321 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
1322 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
1323 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
1324 reload<INTALL:mode><P:mode>_toreg_z10,
1325 reload<FPALL:mode><P:mode>_tomem_z10,
1326 reload<FPALL:mode><P:mode>_toreg_z10,
1327 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
1328 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
1329 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
1330 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
1332 (movmem, clrmem, cmpmem): New splitters added.
1334 * config/s390/predicates.md (larl_operand): Use
1335 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
1336 SYMBOL_REF_ALIGN1_P.
1337 (s390_signed_integer_comparison,
1338 s390_unsigned_integer_comparison): New predicates.
1340 * config/s390/s390-protos.h (s390_check_symref_alignment,
1341 s390_contiguous_bitmask_p, s390_reload_larl_operand,
1342 s390_reload_symref_address,
1343 s390_compare_and_branch_condition_mask): Prototypes added.
1345 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
1346 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
1347 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
1349 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
1351 * config/s390/s390.c (z10_cost): New cost function for z10.
1352 (s390_handle_arch_option, override_options): Support -march=z10 switch.
1353 (s390_issue_rate): Adjust issue rate for z10.
1354 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
1355 (processor_flags): Add PF_Z10.
1356 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
1357 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
1358 * gcc/config.gcc: Add z10.
1360 2008-05-28 Richard Guenther <rguenther@suse.de>
1362 PR tree-optimization/36291
1363 * tree-flow. h (struct gimple_df): Remove var_anns member.
1364 * tree-flow-inline.h (gimple_var_anns): Remove.
1365 (var_ann): Simplify.
1366 * tree-dfa.c (create_var_ann): Simplify.
1367 (remove_referenced_var): Clear alias info from var_anns of globals.
1368 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
1369 (delete_tree_ssa): Clear alias info from var_anns of globals.
1370 Do not free var_anns.
1371 (var_ann_eq): Remove.
1372 (var_ann_hash): Likewise.
1374 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
1376 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
1377 and loongson2f entries.
1378 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
1379 * config/mips/mips.h (processor_type): Add Loongson-2E
1380 and Loongson-2F entries.
1381 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
1382 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
1383 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
1384 * doc/invoke.texi (MIPS Options): Document loongson2e
1385 and loongson2f processor names.
1387 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
1391 * config/i386/i386.c (ix86_function_arg_boundary): Use
1392 alignment of canonical type.
1393 (ix86_expand_vector_move): Check unaligned memory access for
1396 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
1398 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
1399 Moved to the front of file.
1401 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
1402 H.J. Lu <hongjiu.lu@intel.com>
1404 * dwarf2out.c (current_fde): New.
1406 (lookup_cfa:): Likewise.
1407 (dwarf2out_end_epilogue): Likewise.
1408 (dwarf2out_note_section_used): Likewise.
1410 2008-05-27 Michael Matz <matz@suse.de>
1413 * c.opt (Wenum-compare): New warning option.
1414 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
1416 2008-05-27 Michael Matz <matz@suse.de>
1419 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
1421 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
1422 into memory as tail calls.
1424 2008-05-27 Richard Guenther <rguenther@suse.de>
1426 PR tree-optimization/36339
1427 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
1428 pointers cause all addressable variables to be call clobbered.
1430 2008-05-27 Richard Guenther <rguenther@suse.de>
1432 PR tree-optimization/36245
1433 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
1435 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1437 * config/s390/s390.md: Replace all occurences of the 'm'
1438 constraint with 'RT'.
1440 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1442 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
1444 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
1446 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
1447 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
1448 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
1450 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1452 * reload.c: (find_reloads): Skip alternatives according to the
1453 "enabled" attribute. Constify the constraint variable.
1454 * recog.c (get_attr_enabled): Add default implementation.
1455 (extract_insn): Set the alternative_enabled_p array
1456 in the recog_data struct.
1457 (preprocess_constraints, constrain_operands): Skip
1458 alternatives according to the "enabled" attribute
1459 * recog.h (struct recog_data): New field alternative_enabled_p.
1460 (skip_alternative): New inline function.
1461 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
1462 (record_reg_classes): Skip alternative according to the
1463 "enabled" attribute.
1465 * doc/md.texi: Add documention for the "enabled" attribute.
1467 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1469 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
1470 * postreload.c (reload_cse_simplify_operands): Replace 'm'
1471 constraint with TARGET_MEM_CONSTRAINT.
1472 * recog.c (asm_operand_ok, preprocess_constraints,
1473 constrain_operands): Likewise.
1474 * regclass.c (record_reg_classes): Likewise.
1475 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
1476 * reload1.c (maybe_fix_stack_asms): Likewise.
1477 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1478 * recog.h: Adjust comment.
1479 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
1480 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
1481 * doc/md.texi: Add a note to description of 'm' constraint.
1482 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
1484 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1486 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
1487 that the bitfield is of integral type before testing its precision.
1489 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1490 Sa Liu <saliu@de.ibm.com>
1492 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
1493 __modti3, __udivti3, __umodti3 and __udivmodti4.
1494 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
1495 that implement TImode mul and div functions.
1496 * config/spu/multi3.c: New. Implement __multi3.
1497 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
1498 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
1501 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
1503 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
1504 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
1505 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
1506 tls_sysv_suffix): New mode and mode attribute iterators.
1507 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
1508 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
1509 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
1510 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
1511 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
1514 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1516 PR tree-optimization/36329
1517 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
1518 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
1519 * cgraphbuild.c (initialize_inline_failed): Use the latter
1520 macro in lieu of the former.
1521 * ipa-inline.c (cgraph_mark_inline): Likewise.
1522 (cgraph_decide_inlining_of_small_function): Likewise.
1523 (cgraph_decide_inlining): Likewise.
1524 (cgraph_decide_inlining_incrementally): Likewise.
1526 2008-05-26 Tristan Gingold <gingold@adacore.com>
1527 Anatoly Sokolov <aesok@post.ru>
1529 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
1530 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
1531 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
1532 optimization for 'avr6' architecture.
1534 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
1537 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
1539 2008-05-26 Richard Guenther <rguenther@suse.de>
1541 * tree-ssa-sccvn.c (expr_has_constants): Declare.
1542 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
1544 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
1547 * caller-save.c (insert_restore): Verify alignment of spill space.
1548 (insert_save): Likewise.
1549 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
1550 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
1551 (STACK_SLOT_ALIGNMENT): Likewise.
1552 * function.c (LOCAL_ALIGNMENT): Removed.
1553 (get_stack_local_alignment): New.
1554 (assign_stack_local): Use it. Set alignment on stack slot.
1555 (assign_stack_temp_for_type): Use get_stack_local_alignment.
1556 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
1557 (STACK_SLOT_ALIGNMENT): New.
1558 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
1559 stack slot in XFmode.
1561 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
1563 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
1566 * config/i386/i386.md (allocate_stack_worker_64): Make sure
1567 argument operand in rax isn't removed.
1569 2008-05-26 Richard Guenther <rguenther@suse.de>
1572 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
1573 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
1575 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1578 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
1580 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
1582 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
1583 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
1585 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1587 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
1588 build a trampoline if we don't want one.
1589 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
1590 return zero for nested functions if we don't want a trampoline.
1592 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1594 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
1596 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1599 * c.opt: Removed undocumented option '-lang-fortran'.
1600 * c-common.h: Removed global variable 'lang_fortran'.
1601 * c-opts.c (c_common_handle_option): Removed code to handle
1602 option '-lang-fortran'. Updated includes.
1603 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
1604 definition of '__GFORTRAN__'.
1605 (define__GNUC__): Reimplemented to use BASEVER and
1606 cpp_define_formatted.
1607 (builtin_define_with_value_n): Removed.
1608 * c-incpath.h: Renamed to ...
1609 * incpath.h: ... this.
1610 * c-incpath.c: Renamed to ...
1611 * incpath.c: ... this. Updated includes.
1612 * fix-header.c: Updated includes.
1613 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
1614 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
1615 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
1617 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1619 * tree.h: Update the table of flags used on tree nodes.
1620 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
1621 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
1622 (FORCED_LABEL): Add access check.
1623 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
1624 (ASM_INPUT_P): Likewise.
1625 (ASM_VOLATILE_P): Likewise.
1626 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
1627 (OMP_SECTION_LAST): Access private_flag directly.
1628 (OMP_RETURN_NOWAIT): Likewise.
1629 (OMP_PARALLEL_COMBINED): Likewise.
1630 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
1631 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
1632 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
1633 deprecated_flag directly.
1635 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
1637 * final.c (frame_pointer_needed): Removed.
1638 * flags.h (frame_pointer_needed): Likewise.
1640 * function.h (rtl_data): Add frame_pointer_needed.
1641 (frame_pointer_needed): New.
1643 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
1645 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
1647 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
1649 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
1652 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1654 * c-common.c (strip_array_types): Move function to..
1656 (get_inner_array_type): Delete.
1657 * c-common.h (strip_array_types): Move declaration to..
1659 (get_inner_array_type): Delete.
1660 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
1661 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
1662 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1663 * config/pa/pa.c (emit_move_sequence): Likewise.
1665 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
1667 * config/i386/i386.md (*sse_prologue_save_insn): Set length
1670 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
1672 * function.c: Include target hook for nonlocal_goto frame value.
1674 2008-05-24 Richard Guenther <rguenther@suse.de>
1676 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
1677 variable can be only accessed through a pointer or a union.
1679 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1681 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
1682 * doc/extend.texi: Likewise.
1684 2008-05-23 DJ Delorie <dj@redhat.com>
1686 * config/m32c/jump.md (untyped_call): Add.
1688 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
1690 (m32c_address_cost): Detail costs for indirect offsets.
1692 2008-05-23 Rafael Espindola <espindola@google.com>
1694 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
1695 if a node is a SUBREG.
1696 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
1699 2008-05-23 Paul Brook <paul@codesourcery.com>
1700 Carlos O'Donell <carlos@codesourcery.com>
1702 * doc/extend.texi: Clarify use of __attribute__((naked)).
1703 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
1704 * target.h (gcc_target): Add allocate_stack_slots_for_args.
1705 * function.c (use_register_for_decl): Use
1706 targetm.calls.allocate_stack_slots_for_args.
1707 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
1708 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
1709 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
1711 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1713 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
1715 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
1717 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
1718 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
1719 is only rounded once.
1721 2008-05-23 Richard Guenther <rguenther@suse.de>
1723 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
1725 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
1726 Jakub Jelinek <jakub@redhat.com>
1729 * configure.ac: Handle --enable-cld.
1730 * configure: Regenerated.
1731 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
1732 * config/i386/i386.h (struct machine_function): Add needs_cld field.
1733 (ix86_current_function_needs_cld): New define.
1734 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
1735 (cld): New isns pattern.
1736 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
1737 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
1738 * config/i386/i386.opt (mcld): New option.
1739 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
1740 TARGET_CLD and ix86_current_function_needs_cld.
1741 (override_options): Use -mcld by default for 32-bit code if
1744 * doc/install.texi (Options specification): Document --enable-cld.
1745 * doc/invoke.texi (Machine Dependent Options)
1746 [i386 and x86-64 Options]: Add -mcld option.
1747 (Intel 386 and AMD x86-64 Options): Document -mcld option.
1749 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
1750 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
1751 (return_in_memory_64): Likewise.
1752 (return_in_memory_ms_64): Likewise.
1754 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1756 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
1757 * builtins.c (fold_builtin_fpclassify): New.
1758 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
1759 * builtins.def (BUILT_IN_FPCLASSIFY): New.
1760 * c-common.c (handle_type_generic_attribute): Adjust to accept
1761 fixed arguments before an elipsis.
1762 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
1763 * doc/extend.texi: Document __builtin_fpclassify.
1765 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
1767 * omp-low.c (gate_expand_omp_ssa): Remove.
1768 (pass_expand_omp_ssa): Remove.
1769 (gate_expand_omp): Do not check for flag_openmp_ssa.
1770 * common.opt (-fopenmp-ssa): Remove.
1771 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
1773 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
1775 * config/sh/sh.opt (mfixed-range): New option.
1776 * config/sh/sh-protos.h (sh_fix_range): Declare.
1777 * config/sh/sh.c (sh_fix_range): New function.
1778 * config/sh/sh.h (sh_fixed_range_str): Declare.
1779 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
1781 * doc/invoke.texi (SH Options): Document -mfixed-range.
1783 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
1785 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
1786 it before the redeclaration.
1788 2008-05-22 Anatoly Sokolov <aesok@post.ru>
1790 * config/avr/avr.c (get_sequence_length): Add new function.
1791 (expand_prologue, expand_epilogue): Remove duplicate code.
1793 2008-05-22 Rafael Espindola <espindola@google.com>
1795 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
1798 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
1800 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
1801 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
1803 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
1804 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
1805 (vect_update_misalignment_for_peel): Likewise.
1806 (vector_alignment_reachable_p): Likewise.
1807 * tree-vect-transform.c (vectorizable_load): Likewise.
1808 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
1809 (get_vectype_for_scalar_type): Pass mode of scalar_type
1810 to UNITS_PER_SIMD_WORD.
1812 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
1813 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
1814 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
1815 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
1816 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
1818 2008-05-22 Ira Rosen <irar@il.ibm.com>
1820 PR tree-optimization/36293
1821 * tree-vect-transform.c (vect_transform_strided_load): Don't check
1822 if the first load must be skipped because of a gap.
1824 2008-05-22 Richard Guenther <rguenther@suse.de>
1826 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
1827 more cases of offset disambiguation that is possible if
1828 strict-aliasing rules apply.
1829 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
1830 for basic offset and type-based disambiguation.
1832 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1834 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
1835 ix86_expand_vector_set on V16QImode for SSE4.1.
1837 2008-05-21 Tom Tromey <tromey@redhat.com>
1839 * c.opt (Wimport): Mark as undocumented.
1840 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
1842 (Warning Options): Likewise.
1843 * doc/cppopts.texi: Don't mention -Wimport.
1845 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
1847 PR tree-optimization/36287
1848 PR tree-optimization/36286
1849 * lambda-code.c (build_access_matrix): Do not use the loop->num
1850 for computing the number of induction variables: use the loop depth
1853 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
1856 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
1857 option -f(no-)leading-underscore.
1859 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1861 * config/i386/i386.c (ix86_expand_vector_init_general): Use
1862 GET_MODE_NUNITS (mode).
1864 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
1866 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
1867 (-mmulhw): Add 464 to description.
1868 (-mdlmzb): Likewise.
1869 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
1870 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
1872 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
1873 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
1874 * config/rs6000/rs6000.md: Update comments for 464.
1876 2008-05-21 Janis Johnson <janis187@us.ibm.com>
1878 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
1880 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1882 * config/i386/sse.md (vec_extractv4sf): Removed.
1883 (vec_extractv2df): Likewise.
1884 (vec_extractv2di): Likewise.
1885 (vec_extractv4si): Likewise.
1886 (vec_extractv8hi): Likewise.
1887 (vec_extractv16qi): Likewise.
1888 (vec_extract<mode>): New.
1890 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1892 * config/i386/sse.md (vec_setv4sf): Removed.
1893 (vec_setv2df): Likewise.
1894 (vec_setv2di): Likewise.
1895 (vec_setv4si): Likewise.
1896 (vec_setv8hi): Likewise.
1897 (vec_setv16qi): Likewise.
1898 (vec_set<mode>): New.
1900 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1902 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
1903 goto for vec_concat and vec_interleave.
1905 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1907 * config/i386/sse.md (vec_initv4sf): Removed.
1908 (vec_initv2df): Likewise.
1909 (vec_initv2di): Likewise.
1910 (vec_initv4si): Likewise.
1911 (vec_initv8hi): Likewise.
1912 (vec_initv16qi): Likewise.
1913 (vec_init<mode>): New.
1915 2008-05-21 Joseph Myers <joseph@codesourcery.com>
1917 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
1919 2008-05-21 Tom Tromey <tromey@redhat.com>
1921 * ggc-zone.c (lookup_page_table_if_allocated): New function.
1922 (zone_find_object_offset): Likewise.
1923 (gt_ggc_m_S): Likewise.
1924 (highest_bit): Likewise.
1925 * ggc-page.c (gt_ggc_m_S): New function.
1926 * stringpool.c (string_stack): Remove.
1927 (init_stringpool): Update.
1928 (ggc_alloc_string): Use ggc_alloc.
1929 (maybe_delete_ident): New function.
1930 (ggc_purge_stringpool): Likewise.
1931 (gt_ggc_m_S): Remove.
1932 * ggc-common.c (ggc_protect_identifiers): New global.
1933 (ggc_mark_roots): Call ggc_purge_stringpool. Use
1934 ggc_protect_identifiers.
1935 * ggc.h (ggc_protect_identifiers): Declare.
1936 (gt_ggc_m_S): Update.
1937 (ggc_purge_stringpool): Declare.
1938 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
1939 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
1941 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
1943 2008-05-21 David S. Miller <davem@davemloft.net>
1945 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
1948 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
1950 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
1953 2008-05-20 David Daney <ddaney@avtrex.com>
1955 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
1956 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
1957 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
1958 UNSPEC_UPDATE_GOT_VERSION): Renumber.
1959 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
1960 (atomic_hiqi_op): New define_code_iterator.
1961 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
1962 mips_expand_compare_and_swap_12.
1963 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
1964 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
1965 (sync_<optab><mode>, sync_old_<optab><mode>,
1966 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
1967 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
1968 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
1969 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
1970 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
1971 (test_and_set_12): New insn.
1972 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
1973 sync_new_<optab><mode>, sync_old_nand<mode>,
1974 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
1975 clobber to operand 0 for SI and DI mode insns.
1976 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
1977 mips_gen_fn_4): New typedefs.
1978 (mips_gen_fn_ptrs): Define new union type.
1979 (mips_expand_compare_and_swap_12): Remove declaration.
1980 (mips_expand_atomic_qihi): Declare function.
1981 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
1982 (mips_expand_atomic_qihi): ... this. Use new generator function
1984 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
1985 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
1986 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
1987 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
1988 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
1989 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
1990 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
1991 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
1992 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
1993 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
1996 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
1998 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
2001 2008-05-20 Anatoly Sokolov <aesok@post.ru>
2003 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
2004 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
2005 (avr_attribute_table): Add 'OS_main' function attribute.
2006 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
2007 functions with 'OS_main' attribute.
2009 2008-05-20 Richard Guenther <rguenther@suse.de>
2011 PR tree-optimization/35204
2012 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
2013 helper, split out from ...
2014 (DFS): ... here. Make the DFS walk non-recursive.
2016 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
2017 Jan Sjodin <jan.sjodin@amd.com>
2019 PR tree-optimization/36181
2020 * tree-parloops.c (loop_has_vector_phi_nodes): New.
2021 (parallelize_loops): Don't parallelize when the loop has vector
2024 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2025 Sebastian Pop <sebastian.pop@amd.com>
2027 * tree-loop-linear.c (gather_interchange_stats): Look in the access
2028 matrix, and never look at the tree representation of the memory
2030 (linear_transform_loops): Computes parameters and access matrices.
2031 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
2033 (access_matrix_get_index_for_parameter): New.
2034 * tree-data-ref.h (struct access_matrix): New.
2035 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
2036 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
2037 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
2038 am_vector_index_for_loop): New.
2039 (struct data_reference): Add field access_matrix.
2040 (DR_ACCESS_MATRIX): New.
2041 (compute_data_dependences_for_loop): Update declaration.
2042 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
2043 * lambda.h (lambda_vector_vec_p): Declared.
2044 * lambda-code.c: Depend on pointer-set.h.
2045 (lambda_collect_parameters_from_af, lambda_collect_parameters,
2046 av_for_af_base, av_for_af, build_access_matrix,
2047 lambda_compute_access_matrices): New.
2048 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
2050 2008-05-20 Joseph Myers <joseph@codesourcery.com>
2052 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
2055 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2056 Sebastian Pop <sebastian.pop@amd.com>
2058 PR tree-optimization/36206
2059 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
2061 (instantiate_scev_1): Rename flags to fold_conversions.
2062 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
2063 outeside instantiation_loop.
2064 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
2065 (evolution_function_is_affine_or_constant_p): Removed.
2066 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
2068 (analyze_siv_subscript): Pass in the loop nest number.
2069 Call evolution_function_is_affine_in_loop instead of
2070 evolution_function_is_affine_p.
2071 (analyze_overlapping_iterations): Pass in the loop nest number.
2073 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2074 Sebastian Pop <sebastian.pop@amd.com>
2076 PR tree-optimization/36206
2077 * tree-chrec.h (chrec_fold_op): New.
2078 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
2081 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
2083 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
2085 (remove_duplicates): Do not set inode on non-inode systems.
2088 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
2090 * config.gcc (tm_file): Update comments about relative pathnames.
2092 2008-05-20 Richard Guenther <rguenther@suse.de>
2094 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
2095 * tree-ssa-sccvn.c (process_scc): Likewise.
2096 * tree-ssa-sink.c (execute_sink_code): Likewise.
2097 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2098 * tree-vrp.c (process_assert_insertions): Likewise.
2099 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
2100 (perform_tree_ssa_dce): Likewise.
2101 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2102 (dump_dominator_optimization_stats): Likewise.
2103 * tree-vectorizer.c (vectorize_loops): Likewise.
2105 2008-05-20 Richard Guenther <rguenther@suse.de>
2107 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
2109 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
2111 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
2112 (ix86_i386elf_return_in_memory): Likewise.
2113 (ix86_i386interix_return_in_memory): Likewise.
2114 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
2115 (SUBTARGET_RETURN_IN_MEMORY): New.
2116 * config/i386/i386elf.h: Likewise.
2117 * config/i386/ptx4-i.h: Likewise.
2118 * config/i386/sol2-10.h: Likewise.
2119 * config/i386/sysv4.h: Likewise.
2120 * config/i386/vx-common.h: Likewise.
2121 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
2122 * config/i386/i386.c (ix86_return_in_memory): Made static and
2123 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
2124 (ix86_i386elf_return_in_memory): Removed.
2125 (ix86_i386interix_return_in_memory): Removed.
2126 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
2127 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
2129 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
2131 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
2133 2008-05-19 Xinliang David Li <davidxl@google.com>
2135 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
2137 * common.opt: Ditto.
2138 * doc/invoke.texi: Ditto.
2140 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
2142 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
2143 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
2145 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
2147 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
2148 sizes of operand array from 8/4 to 4/2.
2149 (ix86_expand_vector_init_general): Change size of operand array
2150 from 32 to 16. Remove op0, op1 and half_mode.
2152 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
2154 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
2155 (ix86_expand_vector_init_interleave): Likewise.
2156 (ix86_expand_vector_init_general): Use them. Assert
2157 word_mode == SImode when n_words == 4.
2159 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
2161 * config/i386/i386.c (ix86_secondary_reload): New static function.
2162 (TARGET_SECONDARY_RELOAD): New define.
2163 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2164 * config/i386/i386.md (reload_outqi): Remove.
2166 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2169 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
2170 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
2171 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
2172 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
2173 (fold_builtin_1): Likewise.
2174 * builtins.def (BUILT_IN_ISINF_SIGN): New.
2175 c-common.c (check_builtin_function_arguments): Handle
2176 BUILT_IN_ISINF_SIGN.
2177 * doc/extend.texi: Document __builtin_isinf_sign.
2178 * fold-const.c (operand_equal_p): Handle COND_EXPR.
2180 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
2182 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
2183 EH cleanup at the end of the pass, search for those that have been
2184 turned into forwarder blocks and do the cleanup on their successor.
2186 2008-05-18 Richard Guenther <rguenther@suse.de>
2188 * tree-cfg.c (verify_gimple_expr): Allow conversions from
2189 pointers to sizetype and vice versa.
2191 2008-05-18 Xinliang David Li <davidxl@google.com>
2193 * gcc/tree-ssa-dce.c: Coding style fix.
2194 (check_pow): Documentation comment.
2195 (check_log): Documenation comment. Coding style fix.
2196 (is_unnecessary_except_errno_call): Ditto.
2197 (gen_conditions_for_pow): Ditto.
2198 (gen_conditions_for_log): Ditto.
2199 (gen_shrink_wrap_conditions): Ditto.
2200 (shrink_wrap_one_built_in_calls): Ditto.
2201 * gcc/doc/invoke.texi: Better documentation string.
2202 * ChangeLog: Fix wrong change log entries from
2203 May 17 checkin on function call DCE.
2205 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
2207 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
2209 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
2211 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
2212 * df-problems.c (simulation routines): Fixed block comment to
2213 properly say how to add forwards scanning functions.
2215 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2217 * tree-inline.c (setup_one_parameter): Remove dead code.
2219 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2221 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
2222 a BIT_AND_EXPR only for an INTEGER_TYPE.
2224 2008-05-17 Xinliang David Li <davidxl@google.com>
2226 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
2227 (check_pow, check_log, is_unnecessary_except_errno_call): New
2228 functions to check for eliminating math functions that are pure
2229 except for setting errno.
2230 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
2231 general condition expressions for shrink-wrapping pow/log calls.
2232 (gen_shrink_wrap_conditions): Ditto.
2233 (shrink_wrap_one_built_in_call): Ditto.
2234 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
2235 (mark_operand_necessary): If debugging, output if OP is necessary.
2236 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
2238 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
2240 * gcc/common.opt: New user flag -ftree-builtin-dce.
2241 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
2243 2008-05-16 David S. Miller <davem@davemloft.net>
2245 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
2246 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2248 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
2251 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
2253 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2255 * ifcvt.c (dead_or_predicable): Rename
2256 df_simulate_one_insn_backwards to df_simulate_one_insn.
2257 * recog.c (peephole2_optimize): Ditto.
2258 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
2260 * df.h: Rename df_simulate_one_insn_backwards to
2261 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
2262 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
2263 scanning of defs and uses.
2264 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
2265 (df_simulate_one_insn_forwards): Removed.
2267 2008-05-16 Doug Kwan <dougkwan@google.com>
2269 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
2271 (real_from_string): Handle NaNs and Inf as approriate.
2273 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
2275 * doc/gty.texi (Source Files Containing Type Information): Note
2276 that headers should appear first in the gtfiles list.
2278 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2280 * tree.def (COND_EXEC): Properly documented this code.
2282 2008-05-16 Diego Novillo <dnovillo@google.com>
2284 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
2285 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
2288 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2290 * tree-ssa-dse (max_stmt_uid): Removed.
2291 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
2292 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
2293 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
2294 * function.h (cfun.last_stmt_uid): New field.
2295 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
2296 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
2298 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
2299 (create_stmt_ann): Initialize the ann->uid field.
2300 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
2302 * tree-flow.h (renumber_gimple_stmt_uids): New function.
2304 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
2306 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
2307 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
2308 (init_empty_tree_cfg): Call it.
2310 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2312 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
2315 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2317 * doc/invoke.text (-fdump-tree-*-verbose): New option.
2318 * tree-dump.c (dump_options): New verbose option.
2319 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
2321 * tree-pass.h (TDF_VERBOSE): New dump flag.
2322 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
2323 (tree-flow.h): Added include.
2324 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
2326 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
2328 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
2330 From Jie Zhang <jie.zhang@analog.com>
2331 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2332 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
2333 mcpu=bf561-none and mcpu=bf561-0.2.
2334 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2335 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2336 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2337 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2338 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
2339 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
2340 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
2342 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
2343 (cputype_selected): Remove.
2344 (bfin_handle_option): Don't use cputype_selected.
2345 (override_options): When no mcpu option, enable all workarounds.
2346 Don't use bfin_workarounds.
2347 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
2349 (DEFAULT_CPU_TYPE): Don't define.
2351 2008-05-16 Richard Guenther <rguenther@suse.de>
2353 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
2354 on deletion of the last stmt.
2356 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
2358 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
2359 V8HImode for SSE2 and V16QImode for SSE4.1.
2361 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
2363 * cgraph.h (compute_inline_parameters): Made public.
2364 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
2365 variable_generate_summary, function_write_summary,
2366 variable_write_summary, variable_read_summary. Added generate_summary,
2367 write_summary, read_summary.
2368 * cgraphunit.c (cgraph_process_new_functions): Changed call from
2369 pass_ipa_inline.function_generate_summary, to
2370 compute_inline_parameters.
2371 * ipa-inline.c (compute_inline_parameters): Made public and added
2373 (compute_inline_parameters_for_current): New function.
2374 (pass_inline_param): Now calls compute_inline_parameters_for_current.
2375 (inline_generate_summary): Removed parameter and made to loop over
2377 (pass_ipa_inline): Updated for new IPA_PASS structure.
2378 * passes.c (execute_ipa_summary_passes): Now is called once per
2379 pass rather than once per node*pass.
2381 2008-05-15 Anatoly Sokolov <aesok@post.ru>
2383 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
2384 avr_have_mul_p, avr_asm_only_p): Remove variables.
2385 (avr_override_options): Remove initialization of removed variables.
2386 (avr_file_start): Convert removed variables to fields of
2387 'struct base_arch_s *avr_current_arch'.
2388 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
2389 (AVR_HAVE_MUL): (Ditto.).
2390 (AVR_HAVE_MOVW): (Ditto.).
2391 (AVR_HAVE_LPMX): (Ditto.).
2392 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
2393 avr_asm_only_p): Remove declaration.
2395 2008-05-15 Diego Novillo <dnovillo@google.com>
2397 * config/arm/arm.c (arm_return_in_memory): Fix return type.
2398 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
2400 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
2403 * combine.c (check_conversion): Rename back to check_promoted_subreg.
2404 Don't call record_truncated_value from here.
2405 (record_truncated_value): Turn it into a for_each_rtx callback.
2406 (record_truncated_values): New function.
2407 (combine_instructions): Call note_uses with record_truncated_values.
2408 Change name of check_conversion to check_promoted_subreg.
2410 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2412 * doc/sourcebuild.texi: Document support for torture tests.
2414 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
2416 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
2417 to alternative 4 of operand 2.
2419 2008-05-15 Richard Guenther <rguenther@suse.de>
2421 * tree-pass.h (current_pass): Declare.
2422 (get_pass_for_id): Likewise.
2423 * passes.c (passes_by_id, passes_by_id_size): New globals.
2424 (set_pass_for_id): New function.
2425 (get_pass_for_id): Likewise.
2426 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
2427 (execute_function_todo): Flush per function statistics.
2428 * toplev.c (compile_file): Init statistics.
2429 (general_init): Do early statistics initialization.
2430 (finalize): Finish statistics.
2431 * statistics.h (statistics_early_init): Declare.
2432 (statistics_init): Likewise.
2433 (statistics_fini): Likewise.
2434 (statistics_fini_pass): Likewise.
2435 (statistics_counter_event): Likewise.
2436 (statistics_histogram_event): Likewise.
2437 * statistics.c: New file.
2438 * Makefile.in (OBJS-common): Add statistics.o.
2439 (statistics.o): Add dependencies.
2440 * doc/invoke.texi (-fdump-statistics): Document.
2442 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
2444 (execute_pre): Use statistics_counter_event.
2445 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
2446 (substitute_and_fold): Increment it. Use statistics_counter_event.
2448 2008-05-15 Diego Novillo <dnovillo@google.com>
2450 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
2452 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
2453 * tree-ssa-alias.c (new_type_alias): Remove references to
2454 sub-variables from comment.
2455 * tree-ssa-operands.c (swap_tree_operands): Likewise.
2457 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
2459 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
2460 attribute to 1 only for insertps alternative.
2462 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
2464 * config/bfin/bfin.md (loadbytes): New pattern.
2465 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
2466 (bfin_init_builtins): Initialize it.
2467 (bdesc_1arg): Add it.
2469 2008-05-15 Sa Liu <saliu@de.ibm.com>
2471 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
2472 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
2473 * testsuite/lib/target-supports.exp: Add
2474 check_effective_target_fortran_integer_16.
2476 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
2478 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
2479 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
2480 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
2481 (TARGET_RETURN_IN_MEMORY): Define.
2483 2008-05-15 Richard Guenther <rguenther@suse.de>
2486 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
2487 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
2488 represent unmodifiable vars.
2490 2008-05-15 Richard Guenther <rguenther@suse.de>
2492 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
2493 INDIRECT_REF and TARGET_MEM_REF.
2494 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2497 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
2498 H.J. Lu <hongjiu.lu@intel.com>
2500 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
2501 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
2502 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
2503 insn alternatives. Add missing alternatives.
2504 (*vec_concatv2di_rex64_sse4_1): Likewise.
2505 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
2506 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
2509 2008-05-15 Richard Guenther <rguenther@suse.de>
2511 PR tree-optimization/36009
2512 PR tree-optimization/36204
2513 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
2514 (determine_invariantness_stmt): Record the loop a store is
2516 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
2519 2008-05-15 Richard Guenther <rguenther@suse.de>
2521 PR tree-optimization/34330
2522 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
2523 through the pointer will alias the SMT.
2525 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
2527 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
2529 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
2531 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
2533 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2534 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2536 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
2537 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
2538 (vashl_optab): New optab for vector/vector shifts.
2539 (vashr_optab): Ditto.
2540 (vlshr_optab): Ditto.
2541 (vrotl_optab): Ditto.
2542 (vrotr_optab): Ditto.
2543 (optab_subtype): New enum for optab_for_tree_code call.
2544 (optab_for_tree_code): Add enum optab_subtype argument.
2546 * optabs.c (optab_for_tree_code): Take an additional argument to
2547 distinguish between a vector shift by a scalar and vector shift by
2548 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
2549 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
2550 vector shift by a vector.
2551 (expand_widen_pattern_expr): Pass additional argument to
2552 optab_for_tree_code.
2554 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
2555 vrotl_optab, vrotr_optab.
2557 * expr.c (expand_expr_real_1): Update calls to
2558 optab_for_tree_code to distinguish between vector shifted by a
2559 scalar and vector shifted by a vector.
2560 * tree-vectorizer.c (supportable_widening_operation): Ditto.
2561 (supportable_narrowing_operation): Ditto.
2562 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
2563 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
2564 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
2565 (vect_create_epilog_for_reduction): Ditto.
2566 (vectorizable_reduction): Ditto.
2567 (vectorizable_operation): Ditto.
2568 (vect_strided_store_supported): Ditto.
2569 (vect_strided_load_supported): Ditto.
2570 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2571 * expmed.c (expand_shift): Ditto.
2573 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
2575 (ashr@var{m}3): Ditto.
2576 (vashl@var{m}3): Document new vector/vector shift standard name.
2577 (vashr@var{m}3): Ditto.
2578 (vlshr@var{m}3): Ditto.
2579 (vrotl@var{m}3): Ditto.
2580 (vrotr@var{m}3): Ditto.
2582 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
2583 (PPERM_INVERT): Ditto.
2584 (PPERM_REVERSE): Ditto.
2585 (PPERM_REV_INV): Ditto.
2586 (PPERM_ZERO): Ditto.
2587 (PPERM_ONES): Ditto.
2588 (PPERM_SIGN): Ditto.
2589 (PPERM_INV_SIGN): Ditto.
2590 (PPERM_SRC1): Ditto.
2591 (PPERM_SRC2): Ditto.
2593 * config/i386/sse.md (mulv2di3): Add SSE5 support.
2594 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
2595 allows a memory operand to be the value being added, and split it
2596 to improve vectorization.
2597 (sse5_pmacsdqh_mem): Ditto.
2598 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
2599 (sse5_mulv2div2di3_high): Ditto.
2600 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
2601 (vec_pack_trunc_v4si): Ditto.
2602 (vec_pack_trunc_v2di): Ditto.
2603 (sse5_pcmov_<mode>): Remove code that tried to use use
2604 andps/andnps instead of pcmov.
2605 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
2606 pmacsdqh instructions.
2607 (vec_widen_smult_lo_v4si): Ditto.
2609 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
2610 (PPERM_INVERT): Ditto.
2611 (PPERM_REVERSE): Ditto.
2612 (PPERM_REV_INV): Ditto.
2613 (PPERM_ZERO): Ditto.
2614 (PPERM_ONES): Ditto.
2615 (PPERM_SIGN): Ditto.
2616 (PPERM_INV_SIGN): Ditto.
2617 (PPERM_SRC1): Ditto.
2618 (PPERM_SRC2): Ditto.
2619 (ix86_expand_sse_movcc): Move the SSE5 test after the if
2621 (ix86_expand_int_vcond): If SSE5 generate all possible integer
2623 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
2624 says ignore whether the last reference is a memory operand.
2626 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2627 Paolo Bonzini <bonzini at gnu dot org>
2629 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
2632 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
2633 (vlshr<mode>3): Rename from vlshr<mode>3.
2634 (vashr<mode>3): Rename from vashr<mode>3.
2635 (mulv4sf3): Change the names of vector shift patterns.
2639 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
2642 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
2667 * config/spu/spu.md (v): New iterator macro to add v for vector types.
2668 (floatunssidf2_internal): Change vector/vector shift names.
2669 (floatunsdidf2_internal): Ditto.
2676 (vashl<mode>3): Rename from ashl<mode>3.
2677 (vashr<mode>3): Rename from ashr<mode>3.
2678 (vlshr<mode>3): Rename from lshr<mode>3.
2679 (vrotl<mode>3): Rename from rotl<mode>3.
2681 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2684 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
2685 multiply gives the wrong value when doing widening multiplies.
2686 (vec_widen_smult_lo_v4si): Ditto.
2688 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
2690 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
2691 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
2692 emit_library_call_value.
2693 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
2694 * tree.h (ECF_LIBCALL_BLOCK): Removed.
2695 * calls.c (initialize_argument_information, precompute_arguments,
2696 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
2697 (precompute_arguments): Removed flags parameter.
2698 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
2700 2008-05-14 Richard Guenther <rguenther@suse.de>
2702 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
2703 Make sure to register the store if the use is a PHI_NODE.
2705 2008-05-14 Olivier Hainque <hainque@adacore.com>
2707 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
2708 memory if the component is to be referenced in BLKmode according
2709 to get_inner_reference.
2711 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
2713 * calls.c (emit_library_call_value_1): Restore code clearing
2714 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
2716 2008-05-14 Olivier Hainque <hainque@adacore.com>
2717 Nicolas Roche <roche@adacore.com>
2719 * configure.ac: Add support for a "gcc_subdir" variable in
2720 config-lang.in, to denote a subdirectory where the language/GCC
2721 integration files are to be found.
2722 * configure: Regenerate.
2724 2008-05-14 Ira Rosen <irar@il.ibm.com>
2726 PR tree-optimization/36098
2727 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
2728 value for the first load in the group in case of a gap.
2729 (vect_build_slp_tree): Check that there are no gaps in loads.
2731 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
2733 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
2734 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
2735 expand_copysign_bit, ): Change call to emit_no_conflict_block to
2736 emit_insn and remove unneeded code to construct extra args.
2737 (emit_no_conflict_block): Removed.
2738 * optabls.h: (emit_no_conflict_block): Removed.
2739 * cse.c (cse_extended_basic_block): Remove search for
2740 REG_NO_CONFLICT note.
2741 * global.c: Removed incorrect comment added in revision 117.
2742 * expr.c (convert_move): Change call to emit_no_conflict_block to
2744 * recog.c: Change comments so that they do not mention
2746 * local_alloc.c (combine_regs): Removed last parameter.
2747 (no_conflict_p): Removed.
2748 (block_alloc): Removed note, no_conflict_combined_regno and set
2749 local vars. Removed all code to process REG_NO_CONFLICT blocks.
2750 (combine_regs): Removed already_dead and code to look for
2751 REG_NO_CONFLICT notes.
2752 * lower_subreg (remove_retval_note): Removed code to look for
2753 REG_NO_CONFLICT block.
2754 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
2755 (resolve_clobber): Remove code to process libcalls that have
2756 REG_NO_CONFLICT notes.
2757 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
2759 * combine.c (can_combine_p, distribute_notes): Removed
2760 REG_NO_CONFLICT case.
2761 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
2763 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
2764 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
2766 * reg-notes.def (NO_CONFLICT): Removed.
2768 2008-05-14 David S. Miller <davem@davemloft.net>
2770 * config/sparc/sparc.c (sparc_profile_hook): If
2771 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
2772 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
2773 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2775 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
2777 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
2779 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
2782 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
2783 and op1 expansion before vector concat to have less live pseudos.
2785 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
2787 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
2788 ix86_expand_vector_set if supported.
2790 2008-05-13 Diego Novillo <dnovillo@google.com>
2791 Kenneth Zadeck <zadeck@naturalbridge.com>
2793 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
2795 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
2796 phinodes_print_statistics, init_ssanames, fini_ssanames,
2797 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
2798 release_ssa_name, release_defs, replace_ssa_name_symbol,
2799 ssanames_print_statistics): Move ...
2800 * tree-flow.h: ... here.
2801 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
2802 Use FN instead of cfun.
2803 (make_ssa_name_fn): Rename from make_ssa_name.
2804 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
2805 * tree-flow-inline.h (make_ssa_name): Move from
2806 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
2807 * omp-low.c (expand_omp_parallel):
2808 * tree-flow-inline.h (redirect_edge_var_map_result):
2809 * tree-ssa.c (init_tree_ssa): Add argument FN.
2810 Use it instead of cfun. Update all users.
2812 2008-05-13 Tom Tromey <tromey@redhat.com>
2814 PR preprocessor/22168:
2815 * doc/cpp.texi (Top): Update menu.
2816 (Alternatives to Wrapper #ifndef): New node.
2817 (Other Directives): Document deprecation.
2818 (Obsolete Features): Remove menu.
2819 (Assertions): Merge node into Obsolete Features.
2820 (Obsolete once-only headers): Move earlier; rename to Alternatives
2822 * doc/cppopts.texi: Update.
2823 * c.opt (Wdeprecated): Enable for C and ObjC.
2824 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
2825 (C++ Dialect Options): Move -Wno-deprecated from here to...
2826 (Warning Options): ... here.
2828 2008-05-13 Richard Guenther <rguenther@suse.de>
2831 * fold-const.c (fold_sign_changed_comparison): Do not allow
2832 changes in pointer-ness.
2834 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
2837 * config/sh/sh.c (sh_expand_prologue): Don't clear
2838 RTX_FRAME_RELATED_P for push insns.
2840 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
2842 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
2844 2008-05-12 Anatoly Sokolov <aesok@post.ru>
2846 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
2847 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
2848 Use 'machine->is_leaf' instead of 'leaf_func_p'.
2850 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
2852 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
2853 (*vec_concatv4sf_sse): This.
2854 (*sse2_concatv2si): Renamed to ...
2855 (*vec_concatv2si_sse2): This.
2856 (*sse1_concatv2si): Renamed to ...
2857 (*vec_concatv2si_sse): This.
2858 (*vec_concatv2di_rex): Renamed to ...
2859 (*vec_concatv2di_rex64): This.
2860 (*vec_concatv2si_sse4_1): New.
2861 (*vec_concatv2di_rex64_sse4_1): Likewise.
2863 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
2865 PR rtl-optimization/36111
2866 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
2867 that was created for swappable operands.
2869 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
2872 * Makefile.in: Substitute GNATMAKE and GNATBIND.
2873 * configure.ac: Add call to ACX_PROG_GNAT.
2875 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
2877 * optc-gen.awk: Fix comment typo.
2879 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2881 * pretty-print.c (pp_integer_with_precision): Use
2882 HOST_LONG_LONG_FORMAT.
2884 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
2886 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
2888 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
2890 * config/i386/i386.c (bdesc_ptest): Removed.
2891 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
2892 (bdesc_args): Add __builtin_ia32_ptestz128,
2893 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
2894 (ix86_init_mmx_sse_builtins): Updated.
2895 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
2896 (ix86_expand_builtin): Updated.
2898 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2900 * tree-cfg.c (valid_fixed_convert_types_p): New function.
2901 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
2903 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
2905 * value-prof.c (interesting_stringop_to_profile): Do not
2906 return early for BUILT_IN_MEMPCPY.
2908 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
2910 * calls.c (expand_call): Don't use callgraph to increase
2911 preferred_stack_boundary.
2913 * cgraph.h (cgraph_rtl_info): Use unsigned on
2914 preferred_incoming_stack_boundary.
2916 * final.c (rest_of_clean_state): Use unsigned on
2917 preferred_stack_boundary.
2919 2008-05-09 Tom Tromey <tromey@redhat.com>
2921 PR preprocessor/22231:
2922 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
2925 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
2927 PR tree-optimization/36129
2928 * tree-ssa-ccp.c: Include value-prof.h.
2929 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
2930 built-in function was folded to a constant.
2931 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
2933 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
2934 Sebastian Pop <sebastian.pop@amd.com>
2936 * tree-scalar-evolution.c: Document instantiate_scev.
2937 (instantiate_parameters_1): Renamed instantiate_scev_1.
2938 Don't use the same loop for instantiation_loop and evolution_loop.
2939 (instantiate_scev): New.
2940 (instantiate_parameters): Moved...
2941 (resolve_mixers): Update call to instantiate_scev_1 to pass the
2942 same loop twice. Maintains the semantics for this function.
2943 * tree-scalar-evolution.h (instantiate_scev): Declare.
2944 (instantiate_parameters): ...here. Now static inline.
2945 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
2946 instead of resolve_mixers.
2948 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
2950 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
2952 2008-05-09 Tomas Bily <tbily@suse.cz>
2954 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
2955 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
2956 * tree-ssa-structalias.c (get_constraint_for): Likewise.
2957 * c-common.c (c_common_truthvalue_conversion): Likewise.
2958 * tree-object-size.c (compute_object_offset): Likewise.
2959 * tree-inline.c (estimate_num_insns_1): Likewise.
2960 * varasm.c (const_hash_1, compare_constant, copy_constant)
2961 (compute_reloc_for_constant, output_addressed_constants)
2962 (initializer_constant_valid_p): Likewise.
2963 * c-omp.c (check_omp_for_incr_expr): Likewise.
2964 * gimplify.c (gimplify_expr): Likewise.
2965 * c-typeck.c (c_finish_return): Likewise.
2966 * tree-vectorizer.c (supportable_widening_operation)
2967 (supportable_narrowing_operation): Likewise.
2968 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
2969 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
2970 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
2971 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
2972 (descr_info_loc): Likewise.
2973 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2974 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
2975 (fold_unary): Likewise.
2976 * builtins.c (get_pointer_alignment): Likewise.
2977 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
2978 (instantiate_parameters_1): Likewise.
2979 * tree.c (expr_align, stabilize_reference): Likewise.
2980 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
2981 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
2982 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
2983 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
2984 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
2985 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
2987 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
2988 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
2989 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
2990 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
2991 (forward_propagate_comparison)
2992 (tree_ssa_forward_propagate_single_use_vars): Likewise.
2993 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
2994 * emit-rtl.c (component_ref_for_mem_expr)
2995 (set_mem_attributes_minus_bitpos): Likewise.
2996 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
2997 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
2999 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
3000 (build_function_call, pointer_diff, build_compound_expr)
3001 (c_finish_return): Likewise.
3002 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
3003 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
3005 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
3006 * expr.c (is_aligning_offset): Likewise.
3007 * tree-ssa-alias.c (is_escape_site): Likewise.
3008 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
3009 (check_all_va_list_escapes): Likewise.
3010 * tree-ssa-loop-ivopts.c (determine_base_object)
3011 (determine_common_wider_type): Likewise.
3012 * dojump.c (do_jump): Likewise.
3013 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
3014 * tree-gimple.c (is_gimple_cast): Likewise.
3015 * fold-const.c (decode_field_reference, )
3016 (fold_sign_changed_comparison, fold_unary, fold_comparison)
3017 (fold_binary): Likewise.
3018 * tree-ssa-alias-warnings.c (find_alias_site_helper)
3019 (already_warned_in_frontend_p): Likewise.
3020 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
3021 * tree.c (really_constant_p, get_unwidened): Likewise.
3022 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
3023 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
3024 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
3026 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
3028 (CONVERT_EXPR_P): Define.
3029 (CASE_CONVERT): Define.
3031 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
3034 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
3035 (delete_unmarked_insns): When deleting a call, call
3036 delete_unreachable_blocks.
3037 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3038 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
3040 2008-05-08 Richard Guenther <rguenther@suse.de>
3042 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
3043 (-ftree-salias): Likewise.
3044 (salias-max-implicit-fields): Remove param documentation.
3045 (salias-max-array-elements): Likewise.
3046 * tree-pass.h (pass_create_structure_vars): Remove.
3047 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3048 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3049 * tree-ssa-alias.c (create_structure_vars): Remove.
3050 (gate_structure_vars): Likewise.
3051 (pass_create_structure_vars): Likewise.
3052 (gate_build_alias): Likewise.
3053 (pass_build_alias): Adjust to run always and dump the function.
3054 * common.opt (ftree-salias): Hide.
3055 * passes.c (init_optimization_passes): Remove
3056 pass_create_structure_vars, adjust comment.
3057 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3058 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3059 * opts.c (decode_options): Do not set flag_tree_salias.
3060 (common_handle_option): Add OPT_ftree_salias to the backward
3061 compatibility section.
3063 2008-05-08 Richard Guenther <rguenther@suse.de>
3065 * tree-flow-inline.h (var_can_have_subvars): Move ...
3066 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
3067 * tree-flow.h (var_can_have_subvars): Remove.
3068 (push_fields_onto_fieldstack): Remove.
3069 (sort_fieldstack): Likewise.
3070 (struct fieldoff): Move ...
3071 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
3072 alias_set and base_for_components fields.
3073 (sort_fieldstack): Make static.
3074 (push_fields_onto_fieldstack): Likewise. Remove code that
3075 handles anything but RECORD_TYPEs. Remove alias_set and
3076 base_for_components handling.
3077 (create_variable_info_for): Adjust.
3079 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
3081 * common.opt (Wframe-larger-than=): Shorten the help message
3083 * doc/invoke.texi (Wframe-larger-than=): Add more description.
3085 2008-05-08 Rafael Espindola <espindola@google.com>
3087 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
3089 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
3090 trap and that both operands are gimple values.
3091 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
3092 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
3095 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
3097 * read-rtl.c (join_c_conditions): Return the first string if the
3098 two strings are equal.
3100 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
3102 * gensupport.h (pred_data): Add a "num_codes" field.
3103 (add_predicate_code): Declare.
3104 * gensupport.c (add_predicate_code): New function.
3105 (std_pred_table): Add an "allows_const_p" field.
3106 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
3107 Remove the (incomplete) list of such codes from the codes field.
3108 (init_predicate_table): Use add_predicate_code. Add all
3109 RTX_CONST_OBJs if allows_const_p is true.
3110 * genrecog.c (process_define_predicate): Use add_predicate_code.
3112 2008-05-08 David Daney <ddaney@avtrex.com>
3113 Richard Sandiford <rsandifo@nildram.co.uk>
3115 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
3116 special case of constant zero operands.
3117 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
3118 old and new values. Special case constant zero values.
3119 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
3121 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
3122 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
3124 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
3127 * simplify-rtx.c (simplify_plus_minus): Create CONST of
3128 similar RTX_CONST_OBJ before CONST_INT.
3130 2008-05-08 Steve Ellcey <sje@cup.hp.com>
3132 * stmt.c (expand_stack_restore): Change sa mode if needed.
3134 2008-05-08 Richard Guenther <rguenther@suse.de>
3136 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
3137 return type to bool.
3138 (ix86_sol10_return_in_memory): Likewise.
3139 (ix86_i386elf_return_in_memory): Likewise.
3140 (ix86_i386interix_return_in_memory): Likewise.
3141 * config/i386/i386.c (ix86_return_in_memory): Likewise.
3142 (ix86_sol10_return_in_memory): Likewise.
3143 (ix86_i386elf_return_in_memory): Likewise.
3144 (ix86_i386interix_return_in_memory): Likewise.
3146 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
3149 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
3151 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
3152 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
3155 2008-05-08 Richard Guenther <rguenther@suse.de>
3157 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
3158 * tree-data-ref.h (struct dr_alias): Remove subvars field.
3159 (DR_SUBVARS): Remove.
3160 * tree-dfa.c (dump_subvars_for): Remove.
3161 (debug_subvars_for): Likewise.
3162 (dump_variable): Do not dump subvars.
3163 (remove_referenced_var): Do not remove subvars.
3164 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
3165 (lookup_subvars_for_var): Remove.
3166 (get_subvars_for_var): Likewise.
3167 (get_subvars_at): Likewise.
3168 (get_first_overlapping_subvar): Likewise.
3169 (overlap_subvar): Likewise.
3170 * tree-flow.h (subvar_t): Remove.
3171 (struct var_ann_d): Remove subvars field.
3172 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
3173 argument. Remove special handling of SFTs.
3174 (compute_tag_properties): Likewise.
3175 (set_initial_properties): Likewise.
3176 (compute_call_clobbered): Likewise.
3177 (count_mem_refs): Likewise.
3178 (compute_memory_partitions): Likewise.
3179 (compute_flow_insensitive_aliasing): Likewise.
3180 (setup_pointers_and_addressables): Likewise.
3181 (new_type_alias): Likewise.
3182 (struct used_part): Remove.
3183 (used_portions): Likewise.
3184 (struct used_part_map): Likewise.
3185 (used_part_map_eq): Likewise.
3186 (used_part_map_hash): Likewise.
3187 (free_used_part_map): Likewise.
3188 (up_lookup): Likewise.
3189 (up_insert): Likewise.
3190 (get_or_create_used_part_for): Likewise.
3191 (create_sft): Likewise.
3192 (create_overlap_variables_for): Likewise.
3193 (find_used_portions): Likewise.
3194 (create_structure_vars): Likewise.
3195 * tree.def (STRUCT_FIELD_TAG): Remove.
3196 * tree.h (MTAG_P): Adjust.
3197 (struct tree_memory_tag): Remove base_for_components and
3198 unpartitionable flags.
3199 (struct tree_struct_field_tag): Remove.
3200 (SFT_PARENT_VAR): Likewise.
3201 (SFT_OFFSET): Likewise.
3202 (SFT_SIZE): Likewise.
3203 (SFT_NONADDRESSABLE_P): Likewise.
3204 (SFT_ALIAS_SET): Likewise.
3205 (SFT_UNPARTITIONABLE_P): Likewise.
3206 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
3207 (union tree_node): Remove sft field.
3208 * alias.c (get_alias_set): Remove special handling of SFTs.
3209 * print-tree.c (print_node): Remove handling of SFTs.
3210 * tree-dump.c (dequeue_and_dump): Likewise.
3211 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
3212 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
3213 * tree-predcom.c (set_alias_info): Do not set subvars.
3214 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
3215 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
3216 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
3217 (add_vars_for_offset): Remove.
3218 (add_virtual_operand): Remove special handling of SFTs.
3219 (add_call_clobber_ops): Likewise.
3220 (add_call_read_ops): Likewise.
3221 (get_asm_expr_operands): Likewise.
3222 (get_modify_stmt_operands): Likewise.
3223 (get_expr_operands): Likewise.
3224 (add_to_addressable_set): Likewise.
3225 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
3226 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3227 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
3228 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
3229 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
3230 (tree_node_structure): Likewise.
3231 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
3233 (find_what_p_points_to): Likewise.
3235 2008-05-08 Sa Liu <saliu@de.ibm.com>
3237 * config/spu/spu.md: Fixed subti3 pattern.
3239 2008-05-08 Richard Guenther <rguenther@suse.de>
3242 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
3243 sure to create a representative for trailing arrays for PTA.
3245 2008-05-08 Richard Guenther <rguenther@suse.de>
3248 * fold-const.c (operand_equal_p): Two objects which types
3249 differ in pointerness are not equal.
3251 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
3253 * calls.c (compute_argument_block_size): Add argument tree fndecl.
3254 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
3255 (emit_library_call_value_1): Add new variable fndecl initialized by
3256 NULL_TREE. It should be the decl type of orgfun, but this information
3257 seems not to be available here, so it uses the default calling abi.
3258 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
3259 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
3260 by TARGET_RETURN_IN_MEMORY.
3261 * config/i386/i386-interix.h: Likewise.
3262 * config/i386/i386.h: Likewise.
3263 * config/i386/i386elf.h: Likewise.
3264 * config/i386/ptx4-i.h: Likewise.
3265 * config/i386/sol2-10.h: Likewise.
3266 * config/i386/sysv4.h: Likewise.
3267 * config/i386/vx-common.h: Likewise.
3268 * config/cris/cris.h: Removed #if 0 clause.
3269 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
3270 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
3272 (ix86_sol10_return_in_memory): Likewise.
3273 (ix86_i386elf_return_in_memory): New.
3274 (ix86_i386interix_return_in_memory): New.
3275 * config/mt/mt-protos.h (mt_return_in_memory): New.
3276 * config/mt/mt.c: Likewise.
3277 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3278 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
3279 * config/bfin/bfin.h: Likewise.
3280 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
3282 * config/bfin/bfin.c: Likewise.
3283 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3284 * config/alpha/unicosmk.h: Likewise.
3285 * config/i386/cygming.h: Likewise.
3286 * config/iq2000/iq2000.h: Likewise.
3287 * config/mips/mips.h: Likewise.
3288 * config/mn10300/mn10300.h: Likewise.
3289 * config/rs6000/rs6000.h: Likewise.
3290 * config/score/score.h: Likewise.
3291 * config/spu/spu.h: Likewise.
3292 * config/v850/v850.h: Likewise.
3293 * defaults.h: Likewise.
3294 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
3295 * expr.c (emit_block_move): Adjust use of
3296 OUTGOING_REG_PARM_STACK_SPACE.
3297 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
3298 OUTGOING_REG_PARM_STACK_SPACE.
3299 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
3301 2008-05-08 Jakub Jelinek <jakub@redhat.com>
3303 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
3304 on OMP_RETURN for OMP_FOR.
3307 * dwarf2out.c (dw_expand_expr, common_check): Removed.
3308 (fortran_common): New function.
3309 (gen_variable_die): Call fortran_common instead of common_check,
3310 adjust for it returning tree instead of rtx. Formatting.
3312 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
3316 * see.c (see_copy_insn): Copy new pure const attributes for new call.
3317 * c-decl.c (merge_decls): Ditto.
3318 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
3319 to RTL_CONST_OR_PURE_CALL_P.
3320 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
3321 Initialized DECL_LOOPING_CONST_PURE.
3322 (process_call_operands): Set tree_side_effects properly.
3323 * tree.h (TREE_READONLY_DECL_P): Removed.
3324 (DECL_IS_PURE): Renamed to DECL_PURE_P.
3325 (DECL_LOOPING_OR_CONST_P): New macro.
3326 (struct tree_function_decl): Added looping_const_or_pure_p.
3328 (ECF_LOOPING_OR_CONST_P): New macro.
3329 * rtlanal.c (pure_const_p): Removed.
3330 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
3331 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
3332 to RTL_CONST_CALL_P.
3333 * ipa-pure-const.c (pure_const_state_e): Added looping field.
3334 (check_decl, check_tree, check_call, scan_function): Initialize
3336 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
3337 (static_execute): Set looping true for recursive functions.
3338 Undo setting state to IPA_NEITHER for recursive functions.
3340 * ifcvt.c (noce_can_store_speculate_p): Changed
3341 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
3342 RTL_CONST_OR_PURE_CALL_P.
3343 * dse.c (scan_insn): Ditto.
3344 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
3345 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
3346 RTL_CONST_OR_PURE_CALL_P.
3347 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
3348 pure_call_p to RTL_CONST_CALL_P.
3349 * gimplify.c (gimplify_call_expr): Clear side effects for
3350 non-looping pure and constant calls.
3351 * calls.c (emit_call_1): Set rtl flags from ecf flags.
3352 (flags_from_decl_or_type): Set ecf flags from decl flags.
3353 (initialize_argument_information): Turn off
3354 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
3355 Change const to pure if callee_copies is true rather than just
3357 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
3358 way of marking pure calls.
3359 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
3360 Remove hack that was supposed to fix pr7335 and remove old
3361 way of marking pure calls.
3362 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
3363 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
3364 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
3365 RTL_CONST_OR_PURE_CALL_P.
3366 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
3367 * loop-invariant.c (find_exits, find_invariant_bb): Changed
3368 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
3369 * sched-deps.c (schedule_analyze): Ditto.
3370 * rtl.h (struct rtx_def): Use call field, unchanging field, and
3371 return_val field of calls to represent pure and const function info.
3372 (CONST_OR_PURE_CALL_P): Deleted macro.
3373 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3374 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
3375 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
3377 * tree-optimize.c (execute_fixup_cfg): Added test for
3378 ECF_LOOPING_CONST_OR_PURE.
3379 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
3381 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
3382 effects for looping pure or const calls.
3383 (verify_gimple_expr): Added verification code.
3384 * config/alpha/alpha.c (alpha_legitimize_address,
3385 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
3387 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
3388 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
3389 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
3390 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
3391 RTL_CONST_OR_PURE_CALL_P.
3392 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
3393 and const calls to be deleted.
3395 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
3398 * config/i386/mmx.md (mmx_subv2sf3): New expander.
3399 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
3400 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
3401 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3402 to handle nonimmediate operands.
3403 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
3404 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
3405 to handle nonimmediate operands.
3406 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
3407 (mmx_pmulhrwv4hi3): New expander. Use
3408 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3409 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
3410 (sse2_umulv1siv1di3): New expander. Use
3411 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3412 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
3413 (mmx_eq<mode>3): New expander. Use
3414 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3415 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
3416 (mmx_uavgv8qi3): New expander. Use
3417 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3418 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
3419 (mmx_uavgv4hi3): New expander. Use
3420 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3422 * config/i386/sse.md
3423 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
3424 to handle nonimmediate operands.
3425 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
3426 to handle nonimmediate operands.
3427 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
3428 to handle nonimmediate operands.
3429 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
3430 to handle nonimmediate operands.
3431 (sse2_unpckhpd_exp): New expander. Use
3432 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3433 (sse2_unpcklpd_exp): New expander. Use
3434 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3435 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
3436 to handle nonimmediate operands.
3437 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
3438 to handle nonimmediate operands.
3439 (*sse2_<plusminus_insn><mode>3): Rename from
3440 sse2_<plusminus_insn><mode>3 insn pattern.
3441 (sse2_<plusminus_insn><mode>3): New expander. Use
3442 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3443 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
3444 (sse2_umulv2siv2di3): New expander. Use
3445 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3446 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
3447 (sse4_1_mulv2siv2di3): New expander. Use
3448 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3449 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
3450 (sse2_pmaddwd): New expander. Use
3451 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3452 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
3453 (sse2_eq<mode>3): New expander. Use
3454 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3455 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
3456 (sse4_1_eqv2di3): New expander. Use
3457 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3458 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3459 (sse2_uavgv16qi3): New expander. Use
3460 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3461 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3462 (sse2_uavgv16qi3): New expander. Use
3463 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3464 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
3465 (sse2_uavgv8hi3): New expander. Use
3466 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3467 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
3468 (ssse3_pmulhrswv8hi3): New expander. Use
3469 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3470 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
3471 (ssse3_pmulhrswv4hi3): New expander. Use
3472 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3474 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
3475 (<sse>_vmmul<mode>3): Ditto.
3476 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
3478 (ssse3_pmaddubsw128): Use register_operand for operand 1.
3479 (ssse3_pmaddubsw): Ditto.
3481 * config/i386/i386.c (struct_builtin_description)
3482 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
3483 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
3484 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
3485 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
3486 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
3487 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
3488 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
3489 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
3490 (ix86_fixup_binary_operands): Assert that src1
3491 and src2 must have the same mode when swapped.
3492 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
3493 and ix86_binary_operator_ok. Do not force operands in registers
3496 2008-05-07 Jan Hubicka <jh@suse.cz>
3498 * cgraph.c (dump_cgraph_node): Update.
3499 * cgraph.h (cgraph_local_info): Break out inline summary.
3500 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
3502 * ipa-inline (inline_summary): New accestor function.
3503 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
3504 cgraph_decide_inlining, compute_inline_parameters): Update.
3505 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
3507 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
3509 Cleanup ColdFire scheduling support and add V4 pipeline model.
3511 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
3512 (define_attr cpu): Add cfv4 value.
3513 (define_attr type, define_attr type1): Merge into a single 'type'
3514 attribute. Update all uses.
3515 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
3516 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
3518 (define_attr opx_mem, define_attr opy_mem): Remove.
3519 (define_attr op_mem): Clean up, update comment.
3520 (define_attr size): Use specific values instead of general int.
3521 (define_attr guess, define_attr split): Remove. Update all uses.
3522 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
3523 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
3524 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
3525 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
3526 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
3527 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
3528 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
3529 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
3530 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
3531 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
3532 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
3533 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
3534 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
3535 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
3536 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
3537 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
3538 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
3539 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
3540 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
3541 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
3542 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
3543 Update or set attributes.
3544 (stack_tie): New fake instruction.
3546 * config/m68k/m68k.h (TUNE_CFV4): New macro.
3547 (m68k_sched_attr_size): Update declaration.
3548 (m68k_sched_attr_type2): Remove.
3549 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
3550 Declare new bypass predicates.
3552 * config/m68k/m68k.c (m68k_sched_issue_rate,
3553 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
3555 (TARGET_SCHED_ISSUE_RATE,
3556 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
3557 (override_options): Handle scheduling for ColdFire V4 core.
3558 (m68k_expand_prologue): Emit stack_tie.
3559 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
3560 'OP_TYPE_FPN'. Update all uses.
3561 (sched_guess_p): Remove.
3562 (sched_address_type): Handle symbolic addresses.
3563 (sched_get_operand): New static function.
3564 (sched_operand_type): Merge into sched_attr_op_type.
3565 (sched_attr_op_type): Handle FP registers, handle quick constants,
3567 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
3568 (m68k_sched_attr_size): Update. Move logic to ...
3569 (sched_get_attr_size_int): New static function.
3570 (sched_get_opxy_mem_type): New static function.
3571 (m68k_sched_attr_op_mem): Update.
3572 (m68k_sched_attr_type2): Remove.
3573 (sched_cfv4_bypass_data): New static variable.
3574 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
3575 (m68k_sched_issue_rate): Implement scheduler hook.
3576 (struct _sched_ib: enabled_p): New field.
3577 (m68k_sched_variable_issue): Update. Handle V4.
3578 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
3579 sched_dump_class_func_t, sched_dump_split_class,
3580 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
3581 sched_dump_dfa_class, m68k_sched_dump): Remove.
3582 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
3584 (m68k_sched_init_global): Remove statisctics dumping, introduce
3585 sanity check that all instructions have pipeline reservations. Handle
3587 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
3588 Handle ColdFire V4 core.
3589 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
3590 New static functions.
3591 (m68k_sched_address_bypass_p): New bypass predicate.
3592 (sched_get_indexed_address_scale): New static function.
3593 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
3595 * cf.md: Update comments.
3596 (define_attr type2): Remove. Use 'type' attribute instead.
3598 (cf_ib): Rename to cfv123_ib. Update all uses.
3599 (cf_oep): Rename to cfv123_oep. Update all uses.
3600 (cf_chr): Rename to cfv123_chr. Update all uses.
3601 (cf_mem): Rename to cfv123_mem. Update all uses.
3602 (cf_mac): Move to more appropriate place.
3603 (cfv123_guess): New automaton and cpu_unit.
3604 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
3605 Update uses of 'size' attribute. Handle before reload scheduling.
3606 (cfv123_guess): New dummy reservation for unhandled instructions.
3607 (cfv4_*): Pipeline description of ColdFire V4 core.
3608 (ignore): New reservation to handle 'ignore' type.
3610 2008-05-07 Ian Lance Taylor <iant@google.com>
3613 * gimplify.c (find_single_pointer_decl_1): Don't look through
3615 (find_single_pointer_decl): Adjust comments.
3617 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3620 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
3621 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
3624 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
3625 integral type rather than floating point, then VIEW_CONVERT_EXPR
3626 to the floating point type.
3628 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
3630 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
3631 TFmode op0 to register.
3633 2008-05-07 Alan Modra <amodra@bigpond.net.au>
3635 * c-decl.c (grokdeclarator): Comment typo.
3637 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
3639 * tree-flow.h: Remove prototype for computed_goto_p.
3640 * tree-cfg.c (computed_goto_p): Make static.
3642 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
3645 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
3646 (contains_aligned_value_p): This. Handle _Decimal128.
3647 (ix86_function_arg_boundary): Only align _Decimal128 to its
3648 natural boundary and handle it properly.
3650 2008-05-06 Martin Jambor <mjambor@suse.cz>
3652 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
3653 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
3654 (ipcp_method_set_orig_node): Removed.
3655 (ipcp_cval_get_cvalue_type): Removed.
3656 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
3657 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
3658 (ipcp_cval_set_cvalue_type): Removed.
3659 (ipcp_cval_get_cvalue): Removed.
3660 (ipcp_cval_set_cvalue): Removed.
3661 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
3662 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
3663 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
3664 (ipcp_cval_meet): Renamed to ipa_lattice_meet
3665 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
3666 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
3667 (ipcp_get_ith_lattice): Changed parameters.
3668 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
3669 (ipcp_lattice_from_jfunc): Changed parameters.
3670 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
3671 (ipcp_method_cval_print): Added temporary variable info.
3672 (ipcp_redirect): Removed already unused local variable caller.
3673 (ipcp_redirect): New temporary variable orig_callee_info
3674 (ipcp_redirect): Removed newly unused local variable callee.
3675 (ipcp_redirect): Removed (a bit confusing) local variable type.
3676 (ipcp_insert_stage): Added local variable info.
3677 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
3679 (ipcp_formal_create): Removed.
3680 (ipcp_method_cval_set): Removed.
3681 (ipcp_propagate_stage): Renamed lattice variables.
3682 (ipcp_method_cval_set_cvalue_type): Removed.
3683 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
3684 (ipcp_print_all_lattices): Changed printed strings to refer to
3685 lattices rather than cvals.
3686 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
3687 (ipcp_propagate_const): Changed formal parameters.
3688 (build_const_val): Changed formal parameters.
3689 (ipcp_insert_stage): Removed useless variable cvalue
3690 (build_const_val): Changed formal parameters.
3691 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
3692 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
3693 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
3694 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
3695 (ipcp_print_func_profile_counts): Changed string from "method" to
3697 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
3698 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
3699 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
3700 (ipcp_structures_print): Renamed to ipcp_print_all_structures
3701 (ipcp_profile_print): Renamed to ipcp_print_profile_data
3702 (ipcp_lat_is_const): Changed parameters and made inline.
3703 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
3704 (ipcp_redirect): Renamed to ipcp_need_redirect_p
3705 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
3706 the predicate condition directly
3707 (ipcp_propagate_stage): Added local variable args. Removed local
3708 variable callee. (Both are mere code simplifications.)
3709 (ipcp_method_dont_insert_const): Renamed to
3710 ipcp_node_not_modifiable_p.
3711 (ipcp_node_not_modifiable_p): Made inline.
3712 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
3713 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
3714 (ipcp_print_all_lattices): Removed variable cvalue
3715 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
3718 2008-05-06 Olivier Hainque <hainque@adacore.com>
3720 * tree-sra.c (try_instantiate_multiple_fields): Early return
3721 if field has POINTER_TYPE.
3723 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
3725 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
3726 by using 'q' specifier for instruction.
3727 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
3729 2008-05-06 Anatoly Sokolov <aesok@post.ru>
3731 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
3732 Change mode of zero_extract from QImode to HImode.
3733 (sign bit tests peepholes): (Ditto.).
3735 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
3737 * config/i386/mmx.md: Remove double backslashes from asm templates.
3738 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
3739 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3740 to handle nonimmediate operands.
3741 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
3742 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3743 to handle nonimmediate operands.
3744 (*mmx_<code>v2sf3_finite): New insn pattern.
3745 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
3746 (mmx_<code>v2sf3): New expander. Use
3747 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3748 (mmx_<plusminus_insn><mode>3): New expander. Use
3749 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3750 (*mmx_<plusminus_insn><mode>3): New insn pattern.
3751 (mmx_add<mode>3): Removed.
3752 (mmx_ssadd<mode>3): Ditto.
3753 (mmx_usadd<mode>3): Ditto.
3754 (mmx_sub<mode>3): Ditto.
3755 (mmx_sssub<mode>3): Ditto.
3756 (mmx_ussub<mode>3): Ditto.
3757 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
3758 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
3759 to handle nonimmediate operands.
3760 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
3762 (mmx_smulv4hi3_highpart): New expander. Use
3763 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3764 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
3766 (mmx_umulv4hi3_highpart): New expander. Use
3767 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3768 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
3769 (mmx_<code>v4hi3): New expander. Use
3770 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3771 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
3772 (mmx_<code>v8qi3): New expander. Use
3773 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3774 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
3775 (mmx_<code><mode>3): New expander. Use
3776 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3778 2008-05-05 Jan Hubicka <jh@suse.cz>
3780 PR tree-optimization/36118
3781 * passes.c (pass_init_dump_file): Fix dump header.
3783 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
3786 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
3787 VCE for function decls.
3789 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
3791 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
3793 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
3795 * config/i386/i386.md (sat_plusminus): New.
3796 (plusminus_insn): Likewise.
3797 (plusminus_mnemonic): Likewise.
3799 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
3800 (*<addsub><mode>3_cc_overflow): Renamed to ...
3801 (*<plusminus_insn><mode>3_cc_overflow): This.
3802 (*<addsub>si3_zext_cc_overflow): Renamed to ...
3803 (*<plusminus_insn>si3_zext_cc_overflow): This.
3805 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
3806 (<plusminus_insn><mode>3): This.
3807 (*<addsub><mode>3): Renamed to ...
3808 (*<plusminus_insn><mode>3): This.
3809 (<sse>_vm<addsub><mode>3): Renamed to ...
3810 (<sse>_vm<plusminus_insn><mode>3): This.
3811 (sse3_h<addsub>v4sf3): Renamed to ...
3812 (sse3_h<plusminus_insn>v4sf3): This.
3813 (sse3_h<addsub>v2df3): Renamed to ...
3814 (sse3_h<plusminus_insn>v2df3): This.
3815 (<plusminus_insn><mode>3): New.
3816 (*<plusminus_insn><mode>3): Likewise.
3817 (sse2_<plusminus_insn><mode>3): Likewise.
3818 (add<mode>): Removed.
3819 (*add<mode>3): Likewise.
3820 (sse2_ssadd<mode>3): Likewise.
3821 (sse2_usadd<mode>3): Likewise.
3822 (sub<mode>3): Likewise.
3823 (*sub<mode>3): Likewise.
3824 (sse2_sssub<mode>3): Likewise.
3825 (sse2_ussub<mode>3): Likewise.
3827 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
3829 * gthr-single.h: Add in required interface elements as per gthr.h.
3830 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
3831 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
3832 Generalize UNUSED macro.
3833 (__gthread_once): Add.
3834 (__gthread_key_create): Add.
3835 (__gthread_key_delete): Add.
3836 (__gthread_getspecific): Add.
3837 (__gthread_setspecific): Add.
3839 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
3841 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
3842 the same size types for the indirect reference on the rhs, then
3845 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
3847 * config/i386/i386.md
3848 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
3849 one insn template instead of template series.
3850 (*xordi_1_rex64): Ditto.
3851 (*xordi_2_rex64): Ditto.
3853 2008-05-05 Ira Rosen <irar@il.ibm.com>
3855 PR tree-optimization/36119
3856 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
3859 2008-06-04 Jan Hubicka <jh@suse.cz>
3861 tree-optimization/36100
3862 * tree-pass.h (pass_O0_always_inline): Declare.
3863 * ipa-inline.c (inline_transform): Remove dead code.
3864 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
3865 pass_O0_always_inline): New.
3866 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
3868 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
3870 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
3871 mnemonic in this_param move for TARGET_64BIT.
3873 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
3875 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
3876 (*strmovsi_rex_1): Ditto.
3877 (*strsetsi_1): Ditto.
3878 (*strsetsi_rex_1): Ditto.
3880 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
3881 adddicc expanders using SWI mode iterator.
3883 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
3886 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
3889 2008-05-04 David S. Miller <davem@davemloft.net>
3891 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
3892 (sparc*-*-linux*): Use linux.h in tm_file.
3893 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
3894 compiler defaulting to 32-bit.
3895 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
3897 * config/sparc/linux.h: Remove definitions now obtained
3898 properly from linux.h
3899 * config/sparc/linux64.h: Likewise.
3900 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
3901 don't want this setting for 32-bit builds in a biarch compiler.
3902 * doc/install.texi: Add sparc-linux to list of targets
3903 supporting --enable-targets=all.
3905 2008-05-03 Andrew Pinski <pinskia@gmail.com>
3907 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
3909 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
3911 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
3912 after V4SI_FTYPE_V8HI.
3913 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
3914 case V4SI_FTYPE_V2DF.
3916 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
3918 * doc/invoke.texi (max-flow-memory-locations): Removed.
3919 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
3921 2008-05-03 Richard Guenther <rguenther@suse.de>
3924 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
3926 2008-05-02 David S. Miller <davem@davemloft.net>
3928 * config.gcc (need_64bit_hwint): Document libcpp dependency.
3930 2008-05-02 Simon Baldwin <simonb@google.com>
3933 * c-common.h (warn_array_subscript_range): Removed.
3934 * c-common.c (warn_array_subscript_range): Ditto.
3935 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
3936 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
3938 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
3940 * config/i386/i386.c (ix86_special_builtin_type): New.
3941 (bdesc_special_args): Likewise.
3942 (ix86_expand_special_args_builtin): Likewise.
3943 (ix86_init_mmx_sse_builtins): Updated.
3944 (ix86_expand_builtin): Updated.
3945 (ix86_expand_store_builtin): Removed.
3946 (ix86_expand_unop_builtin): Likewise.
3948 * config/i386/mm3dnow.h (__v2sf): Moved to ...
3949 * config/i386/mmintrin.h (__v2sf): Here.
3951 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
3953 (_mm_loadl_pi): Likewise.
3954 (_mm_storeh_pi): Replace __v2si with __v2sf.
3955 (_mm_storel_pi): Likewise.
3957 * doc/extend.texi: Correct __builtin_ia32_loadhps,
3958 __builtin_ia32_loadlps, __builtin_ia32_storehps,
3959 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
3960 __builtin_ia32_loadlpd.
3962 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
3964 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
3965 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
3966 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
3967 (ix86_init_mmx_sse_builtins): Updated.
3968 (ix86_expand_args_builtin): Likewise.
3969 (ix86_expand_builtin): Likewise.
3970 (ix86_expand_unop1_builtin): Renamed to ...
3971 (ix86_expand_unop_vec_merge_builtin): This.
3973 2008-05-01 Jan Hubicka <jh@suse.cz>
3976 * ipa-inline.c (inline_generate_summary): Make static.
3977 (inline_transform): Do not call inlining at -O0; make static.
3978 * passes.c (execute_todo): Add sanity check.
3979 (execute_one_ipa_transform_pass): Execute proper flags.
3981 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
3983 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
3984 (DECL_NONADDRESSABLE_P): Likewise.
3985 * alias.c (record_component_aliases): Fix comment.
3987 2008-05-01 Simon Baldwin <simonb@google.com>
3989 * c-common.h (warn_array_subscript_range): New function.
3990 * c-common.c (warn_array_subscript_range): Ditto.
3991 * tree-vrp.c (check_array_ref): Corrected code to agree with
3992 comment, ignoring only arrays of size 0 or size 1.
3993 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
3995 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
3997 * config/i386/i386.c (ix86_builtin_type): Replace
3998 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
3999 (bdesc_args): Updated.
4000 (ix86_init_mmx_sse_builtins): Likewise.
4001 (ix86_expand_args_builtin): Likewise.
4003 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
4006 * doc/extend.texi: Correct __builtin_ia32_palignr.
4008 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4011 * config/i386/i386.c (bdesc_crc32): Removed.
4012 (ix86_expand_crc32): Likewise.
4013 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
4014 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
4015 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
4016 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
4017 UINT_FTYPE_UINT_UCHAR.
4018 (bdesc_args): Updated. Add crc32 builtins.
4019 (ix86_init_mmx_sse_builtins): Updated.
4020 (ix86_expand_args_builtin): Updated to support subreg.
4022 * doc/extend.texi: Correct __builtin_ia32_crc32di.
4024 2008-05-01 Jan Hubicka <jh@suse.cz>
4026 * tree-pass.h (opt_pass): Add IPA_PASS.
4027 (varpool_node, cgraph_node): Forward declare.
4028 (ipa_opt_pass): Define.
4029 (pass_ipa_inline): Turn into ipa_opt_pass.
4030 (pass_apply_inline): Remove.
4031 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
4032 (apply_inline): Turn into ....
4033 (inline_transform): ... this one.
4034 (inline_generate_summary): New function.
4035 (pass_apply_inline): Remove.
4036 * function.h (ipa_opt_pass): Forward declare structure; typedef;
4038 (struct function): Add ipa_transforms_to_apply.
4039 * passes.c (register_one_dump_file): Work on IPA_PASS.
4040 (init_optimization_passes): Remove pass_inline_parameters and
4042 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
4043 (execute_one_pass) ... here; apply transforms when possible.
4044 (add_ipa_transform_pass, execute_ipa_summary_asses,
4045 execute_one_ipa_transform_pass): New.
4046 (execute_ipa_pass_list): Update for IPA_PASS type.
4048 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4050 * config/i386/i386.c (ix86_builtin_type): Add
4051 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
4052 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
4053 (bdesc_args): Add SSE4a builtins.
4054 (ix86_init_mmx_sse_builtins): Updated.
4055 (ix86_expand_args_builtin): Likewise.
4056 (ix86_expand_builtin): Likewise.
4058 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4060 * config/i386/i386.c (ix86_builtin_type): Add
4061 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
4062 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
4063 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
4064 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
4065 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
4066 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
4067 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
4068 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
4069 and DI_FTYPE_DI_DI_INT.
4070 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
4071 (ix86_init_mmx_sse_builtins): Updated.
4072 (ix86_expand_args_builtin): Likewise.
4073 (ix86_expand_builtin): Likewise.
4074 (ix86_expand_binop_imm_builtin): Removed.
4076 * doc/extend.texi: Correct __builtin_ia32_palignr128.
4078 2008-04-30 Richard Guenther <rguenther@suse.de>
4080 PR tree-optimization/32921
4081 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
4083 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
4085 * config/arm/arm.c (arm_unwind_emit): Use
4086 crtl->all_throwers_are_sibcalls instead of
4087 cfun->all_throwers_are_sibcalls.
4088 (arm_output_fn_unwind): Likewise.
4089 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
4090 instead of cfun->uses_pic_offset_table.
4091 (frv_expand_prologue): Likewise.
4092 (frv_frame_pointer_required): Likewise.
4093 (frv_expand_fdpic_call): Likewise.
4094 (frv_emit_movsi): Likewise.
4095 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
4096 cfun->returns_pcc_struct instead of
4097 current_function_returns_pcc_struct.
4098 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
4099 instead of cfun->calls_eh_return.
4100 (m32c_pushm_popm): Likewise.
4101 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
4102 "extern" declaration.
4104 2008-04-30 Richard Guenther <rguenther@suse.de>
4106 PR tree-optimization/21636
4107 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
4109 (evaluate_stmt): Print the likely value.
4110 (ccp_visit_stmt): Avoid excessive vertical spacing.
4112 2008-04-30 Rafael Espindola <espindola@google.com>
4114 * builtins.c (fold_call_expr): Return realret.
4115 * tree-ssa-threadedge.c
4116 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
4117 __builtin_object_size.
4119 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
4121 * gcc.c (wrapper_string): New variable.
4122 (insert_wrapper): New function.
4123 (execute): New option -wrapper.
4124 * doc/invoke.texi (Overall Options): New driver option -wrapper.
4126 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
4128 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
4129 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
4130 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
4132 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
4133 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
4134 config/rs6000/e500crtres64gprctr.asm,
4135 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
4136 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
4137 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
4138 config/rs6000/e500crtsav64gprctr.asm,
4139 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
4140 config/rs6000/e500crtsavg64gprctr.asm: New files.
4141 * config/rs6000/t-ppccomm: Add build rules for new files.
4142 (LIB2FUNCS_STATIC_EXTRA): Add new files.
4143 * config/rs6000/t-netbsd: Add build rules for new files.
4144 (LIB2FUNCS_STATIC_EXTRA): New variable.
4145 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
4146 (CRTSAVRES_DEFAULT_SPEC): Likewise.
4147 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
4149 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
4151 * config/i386/i386.c (ix86_builtin_type): Add
4152 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
4153 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
4154 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
4155 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
4156 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
4157 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
4158 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
4159 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
4160 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
4161 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
4162 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
4163 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
4164 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
4165 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
4166 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
4167 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
4168 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
4169 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
4170 V1DI_FTYPE_V2SI_V2SI.
4171 (bdesc_2arg): Moved to ...
4173 (ix86_init_mmx_sse_builtins): Updated.
4174 (ix86_expand_args_builtin): Updated. Take a pointer
4175 to const struct builtin_description. Handle comparison
4177 (ix86_expand_sse_compare): Take a new argument for swapping operands.
4178 (ix86_expand_builtin): Updated.
4180 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
4181 (ssse3_pmaddubsw128): This.
4182 (ssse3_pmaddubswv4hi3): Renamed to ...
4183 (ssse3_pmaddubsw): This.
4185 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
4186 (__builtin_ia32_packssdw128): Likewise.
4187 (__builtin_ia32_packuswb128): Likewise.
4188 (__builtin_ia32_pmaddubsw): Likewise.
4189 (__builtin_ia32_pmaddubsw128): Likewise.
4191 2008-04-30 Richard Guenther <rguenther@suse.de>
4193 PR tree-optimization/14847
4194 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
4195 (recognize_bits_test): Use it.
4196 (recognize_single_bit_test): Likewise.
4198 2008-04-30 Martin Jambor <mjambor@suse.cz>
4200 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
4201 instead of setting number of formal parameters to zero.
4202 (ipcp_init_stage): Do not set the number of actual parameters to zero
4204 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
4205 which are called with variable number of arguments.
4206 (ipcp_insert_stage): Explicitely skipping all nodes which are
4207 called with variable number of arguments.
4208 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
4209 number of parameters.
4211 * ipa-prop.h (struct ipa_node_params): Added flag
4212 called_with_var_arguments
4213 (ipa_set_param_count): Added. Changed sole setter to use it.
4214 (ipa_get_param_count): Added. All readers of param_count
4215 converted to use it instead.
4216 (ipa_set_called_with_variable_arg): Added.
4217 (ipa_is_called_with_var_arguments): Added.
4218 (ipa_get_ith_param): Added. All readers of param_decls converted
4220 (ipa_set_cs_argument_count): Added, sole writer to argument_count
4222 (ipa_get_cs_argument_count): Added, all readers of argument_count
4224 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
4227 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
4228 (struct ipcp_lattice): Renamed cval_type to type
4229 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
4231 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
4232 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
4233 (ipcp_insert_stage): Changed the type of variable cvalue to tree
4234 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
4235 (build_const_val): Changed the type of parameter cvalue to tree
4236 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
4237 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
4239 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
4242 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
4243 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
4244 (ipa_add_method): Renamed to ipa_push_func_to_list
4245 (ipa_remove_method): Renamed to ipa_pop_func_from_list
4246 (ipa_callsite_param_count): Removed.
4247 (ipa_callsite_param_count_set): Removed.
4248 (ipa_callsite_param): Removed.
4249 (ipa_callsite_callee): Removed.
4250 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
4251 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
4252 (ipa_method_formal_count): Removed.
4253 (ipa_method_formal_count_set): Removed.
4254 (ipa_method_get_tree): Removed.
4255 (ipa_method_tree_map_create): Removed.
4256 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
4257 (ipa_create_param_decls_array): Creates the array itself
4258 (ipa_create_param_decls_array): Temporary variable info instead of
4260 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
4261 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
4262 (get_type): Removed.
4263 (ipa_jf_get_info_type): Removed.
4264 (ipa_node_create): Renamed to ipa_create_node_params
4265 (ipa_free): Renamed to ipa_free_all_node_params
4266 (ipa_nodes_create): Renamed to ipa_create_all_node_params
4267 (ipa_edges_create): Renamed to ipa_create_all_edge_args
4268 (ipa_edges_free): Renamed to ipa_free_all_edge_args
4269 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
4270 (ipa_free_all_node_params): Deallocation to jump_functions moved to
4271 ipa_free_all_edge_args
4272 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
4273 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
4274 (ipa_create_methodlist_node): Removed.
4275 (ipa_methodlist_method): Removed.
4276 (ipa_methodlist_method_set): Removed.
4277 (ipa_methodlist_next_method): Removed.
4278 (ipa_methodlist_next_method_set): Removed.
4279 (ipa_method_is_modified): Removed.
4280 (ipa_method_modify_create): Removed.
4281 (ipa_method_modify_init): Temporary variable info instead of a few
4283 (ipa_detect_param_modifications): Temporary variable info instead of
4285 (ipa_compute_jump_functions): Temporary variable info instead of
4287 (ipa_method_modify_set): Removed.
4288 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
4289 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
4290 than craph_node as the first parameter.
4291 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
4292 (ipa_method_modify_init): Removed.
4293 (ipa_compute_jump_functions): Added a temp variable instead of
4294 repeatadly dereferencing the cgraph_edge.aux pointer
4295 (ipa_callsite_param_set_type): Removed.
4296 (ipa_compute_jump_functions): i renamed to index and moved to
4298 (ipa_callsite_param_set_info_type_formal): Removed.
4299 (ipa_callsite_param_set_info_type): Removed.
4300 (ipa_callsite_param_map_create): Removed.
4301 (ipa_callsite_tree): Removed.
4302 (ipa_callsite_caller): Removed.
4303 (ipa_pop_func_from_list): return_method removed to return_func
4305 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
4306 prefixed all values with IPA_. Changed all users.
4307 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
4308 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
4309 and FORMAL_IPATYPE IPA_PASS_THROUGH.
4310 (union parameter_info): Renamed to jump_func_value.
4311 (union jump_func_value): Renamed value to constant
4312 (struct ipa_jump_func): Renamed info_type to value
4313 (struct ipa_node): Renamed to ipa_node_params
4314 (struct ipa_node_params): Renamed ipa_arg_num to param_count
4315 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
4316 (struct ipa_node_params): Renamed ipa_mod to modified_flags
4317 (struct ipa_edge): Renamed to ipa_edge_args
4318 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
4319 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
4320 (struct ipa_methodlist): Renamed to ipa_func_list
4321 (struct ipa_func_list): method_p renamed to node, next_method
4323 (ipa_methodlist_p): Removed, switched all users to struct pointer
4324 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
4326 2008-04-30 Alan Modra <amodra@bigpond.net.au>
4328 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
4329 (rs6000_emit_epilogue): Use backchain to restore only when we
4330 have a large frame. Make use of frame pointer to restore if we
4331 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
4333 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
4335 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
4336 Add mode to zero_extract.
4337 (sign bit tests peepholes): (Ditto.).
4339 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
4341 * config/i386/i386.c (ix86_builtins): Replace Prescott New
4342 Instructions in comments with SSE3.
4343 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
4344 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
4345 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
4346 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
4347 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
4348 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
4349 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
4350 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
4351 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
4352 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
4353 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
4354 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
4355 (bdesc_sse_args): Renamed to ...
4356 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
4357 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
4358 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
4360 (bdesc_1arg): Moved to ...
4362 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
4363 Instructions in comments with SSE3.
4364 (ix86_expand_sse_operands_builtin): Renamed to ...
4365 (ix86_expand_args_builtin): This. Updated.
4366 (ix86_expand_unop1_builtin): Update comments.
4367 (ix86_expand_builtin): Updated.
4369 2008-04-29 Richard Guenther <rguenther@suse.de>
4371 PR tree-optimization/36078
4372 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4373 Update virtual SSA form after cleaning up the CFG.
4375 2008-04-29 Richard Guenther <rguenther@suse.de>
4378 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
4380 2008-04-29 Richard Guenther <rguenther@suse.de>
4382 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
4383 (compute_may_aliases): Do not call finalize_ref_all_pointers.
4384 (compute_flow_insensitive_aliasing): Do not treat
4385 PTR_IS_REF_ALL pointers special.
4386 (get_smt_for): Likewise.
4387 (may_alias_p): Re-structure.
4388 (is_escape_site): A ref-all pointer conversion is not an escape site.
4389 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
4390 PTR_IS_REF_ALL pointers special.
4391 * tree-ssa-structalias.h (struct alias_info): Remove
4392 ref_all_symbol_mem_tag field.
4393 (PTR_IS_REF_ALL): Remove.
4395 2008-04-29 Richard Guenther <rguenther@suse.de>
4398 * fold-const.c (extract_muldiv_1): In combining division constants
4399 make sure to never overflow.
4401 2008-04-29 Nick Clifton <nickc@redhat.com>
4403 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
4405 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4408 * optc-gen.awk: Work around HP-UX/IA awk bug.
4410 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
4412 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
4415 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
4418 * config/i386/i386.md
4419 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
4420 Change operand 1 predicate to nonimmediate_operand.
4422 2008-04-28 Jakub Jelinek <jakub@redhat.com>
4425 * dwarf2out.c (struct die_struct): Mark as chain_circular through
4427 * gengtype.c (walk_type, write_func_for_structure): Handle
4429 * doc/gty.texi: Document chain_circular.
4431 2008-04-28 Richard Guenther <rguenther@suse.de>
4433 PR tree-optimization/36066
4434 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
4437 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
4440 * config/i386/i386.md
4441 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
4442 Use match_scratch instead of match_operand for operands 3 and 4.
4444 2008-04-27 Richard Guenther <rguenther@suse.de>
4446 PR tree-optimization/18754
4447 PR tree-optimization/34223
4448 * tree-pass.h (pass_complete_unrolli): Declare.
4449 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
4450 loop size before and after unconditionally of UL_NO_GROWTH in effect.
4451 Rewrite loop into loop closed SSA form if it is not already.
4452 (tree_unroll_loops_completely): Re-structure to iterate over
4453 innermost loops with intermediate CFG cleanups.
4454 Unroll outermost loops only if requested or the code does not grow
4456 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
4457 loops are available.
4458 (tree_vectorize): Instead do so here.
4459 (tree_complete_unroll): Also unroll outermost loops.
4460 (tree_complete_unroll_inner): New function.
4461 (gate_tree_complete_unroll_inner): Likewise.
4462 (pass_complete_unrolli): New pass.
4463 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
4464 uses outside of the loop.
4465 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
4466 form if it is available.
4467 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
4468 * passes.c (init_optimization_passes): Schedule complete inner
4469 loop unrolling pass before the first CCP pass after final inlining.
4471 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
4473 * targhooks.h (default_emutls_var_fields,
4474 default_emutls_var_init): Declare.
4475 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
4476 * target.h (struct gcc_target): Add struct emutls member.
4477 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
4478 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
4479 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
4480 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
4481 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
4482 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
4483 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
4484 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
4485 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
4486 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
4487 emit debug information.
4488 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
4489 * varasm.c: Include targhooks.h.
4490 (emutls_object_section, emutls_tmpl_section): New.
4491 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
4492 (EMUTLS_SEPARATOR): New.
4494 (get_emutls_object_name): New.
4495 (default_emutls_var_fields): New, broken out of ...
4496 (get_emutls_object_type): ... here. Adjust to use target hooks.
4497 (get_emutls_init_templ_addr): Adjust to use target hooks.
4498 (emutls_decl): Adjust to use target hooks.
4499 (emutls_finish): Likewise.
4500 (default_emutls_var_init): New, broken out of ...
4501 (assemble_variable): ... here. Adjust to use target hooks.
4502 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
4504 * c-common.c (handle_section_attribute): Prevent overriding
4505 sections for emulated tls with special sections.
4506 * config/i386/i386.c (x86_64_elf_select_section): Add
4507 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
4508 (x86_64_elf_unique_section): Likewise.
4509 * config/vxworks.c: Include tree.h.
4510 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
4511 (vxworks_override_options): Set TLS scheme.
4512 * doc/tm.texi (Emulated TLS): New node.
4514 2008-04-26 Simon Baldwin <simonb@google.com>
4517 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
4518 with propagated string constants.
4520 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
4522 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
4523 constraint for operand 2 when operand 0 is memory operand.
4524 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
4525 operand 0 is memory operand.
4526 (fix_trunc<mode>_i387_with_temp): Ditto.
4527 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
4528 operand 2 when operand 1 is memory operand.
4529 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
4530 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
4531 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
4532 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
4533 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
4534 operands 2,3 and 4 when operand 1 is memory operand.
4535 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
4537 (fistdi2_floor_with_temp): Ditto.
4538 (fist<mode>2_floor_with_temp): Ditto.
4539 (fistdi2_ceil_with_temp): Ditto.
4540 (fist<mode>2_ceil_with_temp): Ditto.
4541 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
4543 2008-04-26 David Daney <ddaney@avtrex.com>
4545 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
4547 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
4548 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
4549 UNSPEC_UPDATE_GOT_VERSION): Renumber.
4550 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
4551 (compare_and_swap_12): New insn.
4552 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
4553 * config/mips/mips.c (mips_force_binary): New function.
4554 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
4555 (mips_expand_compare_and_swap_12): New function.
4556 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
4558 2008-04-25 Jan Hubicka <jh@suse.cz>
4561 * cfgexpand.c (pass_expand): Turn into RTL pass.
4562 * passes.c (execute_one_pass): Do pass typechecking after execution.
4563 * tree-pass.h (pass_expand): Turn into RTL pass.
4565 * function.h (struct rtl_data): Move here fields
4566 accesses_prior_frames, calls_eh_return, saves_all_registers,
4567 has_nonlocal_goto, has_asm_statement, is_thunk,
4568 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
4569 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
4570 arg_pointer_save_area_init from struct function; turn into bool.
4571 (struct function): Move
4572 calls_eh_return, saves_all_registers, has_nonlocal_goto,
4573 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
4574 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
4575 tail_call_emit, arg_pointer_save_area_init
4576 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
4577 (current_function_returns_struct, current_function_returns_pcc_struct,
4578 current_function_calls_setjmp, current_function_calls_alloca,
4579 current_function_accesses_prior_frames,
4580 current_function_calls_eh_return, current_function_is_thunk,
4581 current_function_stdarg, current_function_profile,
4582 current_function_limit_stack, current_function_uses_pic_offset_table,
4583 current_function_uses_const_pool, current_function_has_nonlocal_label,
4584 current_function_saves_all_registers,
4585 current_function_has_nonlocal_goto,
4586 current_function_has_asm_statement): Remove accesor macros.
4587 * ra-conflict.c (global_conflicts): Update.
4588 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
4589 (suitable_for_tail_call_opt_p): Update.
4590 * builtins.c (expand_builtin_return_addr): Update.
4591 (expand_builtin_setjmp_setup): Update.
4592 (expand_builtin_nonlocal_goto): Update.
4593 * final.c (final_start_function): Update.
4594 (profile_function): Update.
4595 (leaf_function_p): Update.
4596 (only_leaf_regs_used): Update.
4597 * df-scan.c (df_get_exit_block_use_set): Update.
4598 * dojump.c (clear_pending_stack_adjust): Update.
4599 * tree-stdarg.c (gate_optimize_stdarg): Update.
4600 * gimple-low.c (lower_function_body): Update.
4601 * global.c (compute_regsets): Update.
4602 (global_alloc): Update.
4603 * dwarf2out.c (dwarf2out_begin_prologue): Update.
4604 * expr.c (expand_assignment): Update.
4605 * dse.c (dse_step0): Update.
4606 (dse_step1): Update.
4607 * c-decl.c (store_parm_decls): Update.
4608 * local-alloc.c (combine_regs): Update.
4609 (find_free_reg): Update.
4610 * function.c (assign_parms_augmented_arg_list): Update.
4611 (assign_parm_find_data_types): Update.
4612 (assign_parms): Update.
4613 (allocate_struct_function): Update.
4614 (expand_function_start): Update.
4615 (expand_function_end): Update.
4616 (get_arg_pointer_save_area): Update.
4617 (thread_prologue_and_epilogue_insns): Update.
4618 (rest_of_match_asm_constraints): Update.
4619 * stor-layout.c (variable_size): Update.
4620 * gcse.c (gcse_main): Update.
4621 (bypass_jumps): Update.
4622 * gimplify.c (gimplify_function_tree): Update.
4623 * calls.c (emit_call_1): Update.
4624 (expand_call): Update.
4625 * bt-load.c (compute_defs_uses_and_gen): Update.
4626 * except.c (sjlj_assign_call_site_values): Update.
4627 (sjlj_emit_function_enter): Update.
4628 (can_throw_external): Update.
4629 (set_nothrow_function_flags): Update.
4630 (expand_builtin_unwind_init): Update.
4631 (expand_eh_return): Update.
4632 (convert_to_eh_region_ranges): Update.
4633 (output_function_exception_table): Update.
4634 * emit-rtl.c (gen_tmp_stack_mem): Update.
4635 * cfgexpand.c (expand_used_vars): Update.
4636 (tree_expand_cfg): Update.
4637 * cfgcleanup.c (rest_of_handle_jump): Update.
4638 * explow.c (allocate_dynamic_stack_space): Update.
4639 * varasm.c (assemble_start_function): Update.
4640 (force_const_mem): Update.
4641 (mark_constant_pool): Update.
4642 * tree-optimize.c (tree_rest_of_compilation): Update.
4643 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
4644 * tree-cfg.c (notice_special_calls): Update.
4645 (is_ctrl_altering_stmt): Update.
4646 (tree_can_make_abnormal_goto): Update.
4647 (tree_purge_dead_abnormal_call_edges): Update.
4648 * config/alpha/predicates.md: Update.
4649 * config/alpha/alpha.c (alpha_sa_mask): Update.
4650 (alpha_sa_size): Update.
4651 (alpha_does_function_need_gp): Update.
4652 (alpha_expand_prologue): Update.
4653 (alpha_start_function): Update.
4654 (alpha_output_function_end_prologue): Update.
4655 (alpha_expand_epilogue): Update.
4656 * config/frv/frv.c (frv_stack_info): Update.
4657 (frv_expand_epilogue): Update.
4658 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
4659 (s390_register_info): Update.
4660 (s390_frame_info): Update.
4661 (s390_init_frame_layout): Update.
4662 (s390_can_eliminate): Update.
4663 (save_gprs): Update.
4664 * config/spu/spu.c (spu_split_immediate): Update.
4665 (need_to_save_reg): Update.
4666 (spu_expand_prologue): Update.
4667 (spu_expand_epilogue): Update.
4668 * config/sparc/sparc.md: Update.
4669 * config/sparc/sparc.c (eligible_for_return_delay): Update.
4670 (sparc_tls_got): Update.
4671 (legitimize_pic_address): Update.
4672 (sparc_emit_call_insn): Update.
4673 (sparc_expand_prologue): Update.
4674 (output_return): Update.
4675 (print_operand): Update.
4676 (sparc_function_ok_for_sibcall): Update.
4677 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
4678 * config/m32r/m32r.md: Update.
4679 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
4680 (m32r_compute_frame_size): Update.
4681 (m32r_expand_prologue): Update.
4682 (m32r_expand_epilogue): Update.
4683 (m32r_legitimize_pic_address): Update.
4684 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
4685 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
4686 * config/i386/i386.c (ix86_frame_pointer_required): Update.
4688 (ix86_save_reg): Update.
4689 (ix86_compute_frame_layout): Update.
4690 (ix86_expand_prologue): Update.
4691 (ix86_expand_epilogue): Update.
4692 * config/sh/sh.c (output_stack_adjust): Update.
4693 (calc_live_regs): Update.
4694 (sh5_schedule_saves): Update.
4695 (sh_expand_prologue): Update.
4696 (sh_expand_epilogue): Update.
4697 (sh_setup_incoming_varargs): Update.
4698 (sh_allocate_initial_value): Update.
4699 (sh_get_pr_initial_val): Update.
4700 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
4701 * config/sh/sh.md (label:): Update.
4702 * config/avr/avr.c (out_movhi_mr_r): Update.
4703 * config/crx/crx.h (enum): Update.
4704 * config/xtensa/xtensa.h (along): Update.
4705 * config/stormy16/stormy16.c Update.
4706 (xstormy16_compute_stack_layout): Update.
4707 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
4708 (fr30_expand_prologue): Update.
4709 * config/cris/cris.c (cris_conditional_register_usage): Update.
4710 (cris_reg_saved_in_regsave_area): Update.
4711 (cris_initial_frame_pointer_offset): Update.
4712 (cris_simple_epilogue): Update.
4713 (cris_expand_prologue): Update.
4714 (cris_expand_epilogue): Update.
4715 (cris_expand_pic_call_address): Update.
4716 (cris_asm_output_symbol_ref): Update.
4717 (cris_asm_output_label_ref): Update.
4718 * config/cris/cris.md Update.
4719 * config/iq2000/iq2000.c (compute_frame_size): Update.
4720 (iq2000_expand_epilogue): Update.
4721 * config/mt/mt.h (save_direction): Update.
4722 * config/mn10300/mn10300.c (mn10300_function_value): Update.
4723 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
4724 (ia64_secondary_reload_class): Update.
4725 * config/m68k/m68k.c (m68k_save_reg): Update.
4726 (m68k_expand_prologue): Update.
4727 (m68k_expand_epilogue): Update.
4728 (legitimize_pic_address): Update.
4729 * config/rs6000/rs6000.c (rs6000_got_register): Update.
4730 (first_reg_to_save): Update.
4731 (first_altivec_reg_to_save): Update.
4732 (compute_vrsave_mask): Update.
4733 (compute_save_world_info): Update.
4734 (rs6000_stack_info): Update.
4735 (spe_func_has_64bit_regs_p): Update.
4736 (rs6000_ra_ever_killed): Update.
4737 (rs6000_emit_eh_reg_restore): Update.
4738 (rs6000_emit_allocate_stack): Update.
4739 (rs6000_emit_prologue): Update.
4740 (rs6000_emit_epilogue): Update.
4741 (rs6000_output_function_epilogue): Update.
4742 (output_profile_hook): Update.
4743 (rs6000_elf_declare_function_name): Update.
4744 * config/rs6000/rs6000.h (rs6000_args): Update.
4745 * config/rs6000/rs6000.md: Update.
4746 * config/mcore/mcore.c (mcore_expand_prolog): Update.
4747 * config/arc/arc.c (arc_output_function_epilogue): Update.
4748 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
4749 * config/darwin.c (machopic_function_base_name): Update.
4750 * config/score/score3.c (score3_compute_frame_size): Update.
4753 (score3_epilogue): Update.
4754 * config/score/score7.c (score7_compute_frame_size): Update.
4755 (score7_prologue): Update.
4756 (score7_epilogue): Update.
4757 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
4758 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
4759 * config/arm/arm.c (use_return_insn): Update.
4760 (require_pic_register): Update.
4761 (arm_load_pic_register): Update.
4762 (arm_compute_save_reg0_reg12_mask): Update.
4763 (arm_compute_save_reg_mask): Update.
4764 (thumb1_compute_save_reg_mask): Update.
4765 (output_return_instruction): Update.
4766 (arm_output_function_prologue): Update.
4767 (arm_output_epilogue): Update.
4768 (arm_get_frame_offsets): Update.
4769 (arm_expand_prologue): Update.
4770 (thumb_pushpop): Update.
4771 (thumb_exit): Update.
4772 (thumb1_expand_prologue): Update.
4773 (thumb1_expand_epilogue): Update.
4774 (arm_unwind_emit): Update.
4775 (arm_output_fn_unwind): Update.
4776 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
4777 * config/arm/arm.md: Update.
4778 * config/pa/pa.md: Update.
4779 * config/pa/pa.c (legitimize_pic_address): Update.
4780 (compute_frame_size): Update.
4781 (hppa_expand_prologue): Update.
4782 (hppa_expand_epilogue): Update.
4783 (borx_reg_operand): Update.
4784 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
4785 (HARD_REGNO_RENAME_OK): Update.
4786 * config/mips/mips.c (mips_global_pointer): Update.
4787 (mips_save_reg_p): Update.
4788 (mips_compute_frame_info): Update.
4789 (mips_frame_pointer_required): Update.
4790 (mips_expand_prologue): Update.
4791 (mips_expand_epilogue): Update.
4792 (mips_can_use_return_insn): Update.
4793 (mips_reorg_process_insns): Update.
4794 * config/v850/v850.c (compute_register_save_size): Update.
4795 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
4796 * config/mmix/mmix.c (along): Update.
4797 (mmix_expand_epilogue): Update.
4798 * config/bfin/bfin.c (legitimize_pic_address): Update.
4799 (must_save_p): Update.
4800 (stack_frame_needed_p): Update.
4801 (add_to_reg): Update.
4802 (bfin_expand_prologue): Update.
4803 * stmt.c (expand_asm_operands): Update.
4804 * reload1.c (reload): Update.
4805 (init_elim_table): Update.
4807 2008-04-25 Bob Wilson <bob.wilson@acm.org>
4809 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
4811 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
4813 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
4814 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
4815 (mov<mode>): Removed.
4816 (*movv4sf_internal): Likewise.
4817 (*movv2df_internal): Likewise.
4819 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
4821 * config.gcc (crx-*-elf): Remove deprecation.
4823 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
4825 * config/i386/cygming-crtend.c (register_frame_ctor): Register
4826 __gcc_deregister_frame with atexit.
4827 (deregister_frame_dtor): Remove.
4829 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
4830 Nathan Sidwell <nathan@codesourcery.com>
4832 * config/rs6000/rs6000.opt (mspe): Remove Var property.
4834 * config/rs6000/rs6000.h (rs6000_spe): Declare.
4835 (rs6000_isel): Likewise.
4836 * config/rs6000/rs6000.c (rs6000_spe): New variable.
4837 (rs6000_isel): New variable.
4838 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
4840 2008-04-24 Jakub Jelinek <jakub@redhat.com>
4843 * c-common.c (handle_vector_size_attribute): Call
4844 lang_hooks.types.reconstruct_complex_type instead of
4845 reconstruct_complex_type.
4846 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
4847 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
4848 * langhooks.h (struct lang_hooks_for_types): Add
4849 reconstruct_complex_type hook.
4850 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
4851 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
4853 2008-04-24 Richard Guenther <rguenther@suse.de>
4855 * c-common.h (check_builtin_function_arguments): Declare.
4856 * c-common.c (validate_nargs): New function.
4857 (check_builtin_function_arguments): Likewise.
4858 * c-typeck.c (build_function_call): Call
4859 check_builtin_function_arguments.
4860 * builtins.c (fold_builtin_classify): Remove error reporting code.
4861 (fold_builtin_unordered_cmp): Likewise.
4862 (fold_builtin_1): Likewise.
4863 (fold_builtin_n): Likewise.
4865 2008-04-24 Jakub Jelinek <jakub@redhat.com>
4867 PR tree-optimization/36008
4868 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
4869 the original op1, rather than delta by step.
4871 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
4872 Sebastian Pop <sebastian.pop@amd.com>
4874 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
4875 eliminate_local_variables_stmt, eliminate_local_variables,
4876 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
4877 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
4878 of code delimited by two edges in the CFG.
4879 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
4880 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
4881 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
4882 the case of parallelisation of reductions.
4883 (expr_invariant_in_region_p): New.
4885 * tree-flow.h (gather_blocks_in_sese_region): Declared.
4886 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
4888 2008-04-24 Ira Rosen <irar@il.ibm.com>
4889 Richard Guenther <rguenther@suse.de>
4891 PR tree-optimization/36034
4892 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
4893 incapable of dealing with loads with gaps.
4895 2008-04-24 Rafael Espindola <espindola@google.com>
4897 * tree-flow.h (vrp_evaluate_conditional): Change signature.
4898 * tree-ssa-propagate.c (fold_predicate_in): Update call to
4899 vrp_evaluate_conditional.
4900 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
4901 (vrp_evaluate_conditional): Split the cond argument.
4902 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
4903 (simplify_stmt_for_jump_threading): Update call to
4904 vrp_evaluate_conditional.
4906 2008-04-24 Ira Rosen <irar@il.ibm.com>
4908 PR tree-optimization/35982
4909 * tree-vect-analyze.c (vect_check_interleaving): Check that the
4910 interleaved data-refs are of the same type.
4912 2008-04-24 Danny Smith <dannysmith@users.net>
4914 * c-format.c (check_format_info_main): Use strncmp rather than a
4915 magic prefix to handle multichar length specs.
4916 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
4917 Don't prefix "I64" and "I32" with '\0'.
4919 2008-04-24 Jakub Jelinek <jakub@redhat.com>
4922 * config/i386/i386.c (init_cumulative_args): Don't pass anything
4923 in registers for -m32 only if stdarg_p (fntype).
4925 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
4927 PR rtl-optimization/36006
4928 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
4929 temp to op0 in order to avoid invalid rtx sharing.
4931 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4933 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
4934 check TREE_INVARIANT.
4935 * tree-gimple.c (is_gimple_address): New.
4936 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
4937 * tree-gimple.h (is_gimple_address): New.
4938 * tree.h (decl_address_invariant_p): New.
4939 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
4940 (build_string): Likewise.
4941 (decl_address_invariant_p): New, from is_gimple_invariant_address.
4942 (tree_invariant_p_1): Likewise.
4943 (save_expr): Use it.
4944 (tree_invariant_p): New.
4945 (skip_simple_arithmetic): Use it.
4946 (stabilize_reference_1): Use it.
4947 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
4949 (build1_stat): Drop code to compute TREE_INVARIANT.
4950 (build2_stat): Drop code to compute TREE_INVARIANT.
4951 (build3_stat): Drop code to compute TREE_INVARIANT.
4952 (build4_stat): Drop code to compute TREE_INVARIANT.
4953 (build5_stat): Drop code to compute TREE_INVARIANT.
4954 (build7_stat): Drop code to compute TREE_INVARIANT.
4955 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
4956 * tree.h (struct tree_base): Remove invariant_flag.
4957 (TREE_INVARIANT): Remove.
4958 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
4959 (fold_builtin_expect): Check TREE_CONSTANT.
4960 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
4961 * c-tree.h (c_expr_to_decl): Drop third parameter.
4962 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
4963 (build_c_cast): Don't set TREE_INVARIANT.
4964 (pop_init_level): Don't set TREE_INVARIANT.
4965 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
4966 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
4968 (gimplify_init_constructor): Don't set TREE_INVARIANT.
4969 (gimplify_addr_expr): Adjust comment.
4970 * tree-mudflap.c (mf_build_string):
4971 * print-tree.c (print_node): Don't print TREE_INVARIANT.
4972 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
4973 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
4974 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
4975 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
4976 * langhooks.h (struct lang_hooks): Drop third parameter from
4979 2008-04-23 Richard Guenther <rguenther@suse.de>
4981 PR tree-optimization/27799
4982 PR tree-optimization/32921
4983 PR tree-optimization/32624
4984 * tree-ssa-structalias.c (merge_smts_into): Only merge the
4985 SMTs aliases and the tag itself into the solution.
4986 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
4987 merge the points-to solution back into the SMT aliases.
4988 (may_alias_p): Use alias_set_subset_of instead of
4989 aliases_conflict_p. A pointer which points to
4990 memory with alias set zero may access any variable.
4992 2008-04-23 Richard Guenther <rguenther@suse.de>
4994 * alias.c (alias_set_subset_of): Correctly handle asking
4995 if zero is a subset of an alias set with zero child.
4996 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
4997 (compute_flow_insensitive_aliasing): Correctly walk all
4998 pointers. Do not unnecessarily union sets.
5000 2008-04-23 Richard Guenther <rguenther@suse.de>
5003 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
5005 2008-04-22 Tomas Bily <tbily@suse.cz>
5007 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
5009 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
5011 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
5012 * tree-ssa-structalias.c (get_constraint_for): Likewise.
5013 * tree-inline.c (estimate_num_insns_1): Likewise.
5014 * varasm.c (const_hash_1, compare_constant, copy_constant)
5015 (compute_reloc_for_constant, output_addressed_constants): Likewise.
5016 * emit-rtl.c (component_ref_for_mem_expr)
5017 (set_mem_attributes_minus_bitpos): Likewise.
5018 * expr.c (highest_pow2_factor, expand_expr_real_1, )
5019 (is_aligning_offset): Likewise.
5020 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
5021 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
5022 * dojump.c (do_jump): Likewise.
5023 * builtins.c (get_pointer_alignment, get_memory_rtx)
5024 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
5025 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
5027 2008-04-23 Jakub Jelinek <jakub@redhat.com>
5029 PR rtl-optimization/36017
5030 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
5031 expanding the library call.
5033 2008-04-22 Ian Lance Taylor <iant@google.com>
5035 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
5038 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
5040 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
5041 of LR/CTR moves for Power6.
5043 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
5046 * passes.c (init_optimization_passes): Remove
5047 pass_fast_rtl_byte_dce.
5049 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
5052 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
5053 builtin functions to generate faster code.
5054 (_mm_cvtpu16_ps): Ditto.
5055 (_mm_cvtpi32x2_ps): Ditto.
5057 2008-04-22 Nick Clifton <nickc@redhat.com>
5059 * common.opt (ftree-loop-distribution): Add Optimization
5062 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
5063 (frv_expand_builtin_va_start): Likewise.
5065 * config/arm/arm.c (thumb_find_work_register): Fix location of
5066 argument register count.
5068 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5070 Support scheduling for ColdFire V1 and V3 microarchitecture.
5071 Improve scheduling of multiplication instructions.
5073 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
5074 (mac): New instruction attribute.
5075 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
5076 (m68k_sched_mac): New variable.
5077 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
5078 Handle cfv1 and cfv3.
5079 (max_insn_size): New static variable.
5080 (struct _sched_ib): New type.
5081 (sched_ib): New static variable.
5082 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
5083 to fields of 'struct _sched_ib sched_ib'. Update all uses.
5084 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
5086 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
5087 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
5088 new variables. Update.
5089 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
5090 Add modeling of cfv3 instruction buffer. Update.
5091 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
5092 * config/m68k/m68k.h (TUNE_CFV3): New macro.
5093 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
5094 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
5095 a particular reservation applies to.
5096 (type2): Reorganize attribute values. Rename alu to alu_reg,
5097 alu_l to alu, move_l to omove. Join move to alu. Split mul
5099 (cf_ib_*): Simplify description of instruction buffer.
5100 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
5101 (cf_mem): Split into cf_mem1 and cf_mem2.
5102 (cf_v2_move_??): Rename to cfv12_alu_??.
5103 (cf_v2_move_l_??): Rename to cfv12_omove_??.
5104 (cf_v2_mul_??): Remove reservations.
5105 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
5106 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
5107 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
5109 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
5110 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
5111 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
5112 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
5113 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
5114 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
5115 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
5116 expansions of the above reservations for instructions of sizes
5119 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5121 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
5123 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
5125 * coverage.c: Include tree-pass.h.
5126 (coverage_counter_alloc): Print da_file_name to the dump file.
5128 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
5130 * sbitmap.c (sbitmap_range_empty_p): New function.
5131 * sbitmap.h (sbitmap_range_empty_p): New function.
5132 * bitmap.h: Now includes obstack.h.
5134 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
5135 Kenneth Zadeck <zadeck@naturalbridge.com>
5137 * dbgcnt.def (ra_byte_scan): Added.
5138 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
5139 when the last hit happens for a counter.
5140 * timevar.def (TV_DF_BYTE_LR): New variable.
5141 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
5142 * passes.c (pass_fast_rtl_byte_dce): New pass.
5143 * fwprop.c (update_df): Added mode to call df_ref_create.
5144 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
5145 DF_REF_EXTRACT_OFFSET.
5146 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
5147 DF_BYTE_LR_OUT, df_byte_lr): New macro.
5149 (df_ref_extract): Added mode field.
5150 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
5151 DF_REF_EXTRACT_OFFSET.
5152 (DF_REF_EXTRACT_MODE): New macro.
5153 (df_byte_lr_bb_info): New structure.
5154 (df_print_byte_regset, df_compute_accessed_bytes,
5155 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
5156 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
5157 df_byte_lr_simulate_uses,
5158 df_byte_lr_simulate_artificial_refs_at_top,
5159 df_byte_lr_simulate_artificial_refs_at_end,
5160 df_compute_accessed_bytes): New function.
5161 (df_ref_create): Add parameter.
5162 (df_byte_lr_get_bb_info): New inline function.
5163 * df-scan.c (df_ref_record, df_uses_record,
5164 df_ref_create_structure): Added mode parameter.
5165 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
5166 df_defs_record, df_uses_record, df_get_conditional_uses,
5167 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
5168 df_entry_block_defs_collect, df_exit_block_uses_collect):
5169 Added mode parameter to calls to df_ref_record, df_uses_record,
5170 df_ref_create_structure.
5171 (df_ref_equal_p, df_ref_compare): Added test for modes.
5172 (df_ref_create_structure): Added code to set mode. Renamed
5173 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
5174 DF_REF_EXTRACT_OFFSET.
5175 * df-core.c (df_print_byte_regset): New function.
5176 * df-byte-scan.c: New file.
5177 * df-problems.c (df_rd_transfer_function): Removed unnecessary
5178 calls to BITMAP_FREE.
5179 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
5180 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
5181 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
5182 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
5183 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
5184 df_byte_lr_local_compute, df_byte_lr_init,
5185 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5186 df_byte_lr_transfer_function, df_byte_lr_free,
5187 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
5188 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
5189 df_byte_lr_simulate_uses,
5190 df_byte_lr_simulate_artificial_refs_at_top,
5191 df_byte_lr_simulate_artificial_refs_at_end): New function.
5192 * dce.c (byte_dce_process_block): New function.
5193 (dce_process_block): au is now passed in rather than computed
5194 locally. Changed loops that look at artificial defs to not look
5195 for conditional or partial ones, because there never are any.
5196 (fast_dce): Now is able to drive byte_dce_process_block or
5197 dce_process_block depending on the kind of dce being done.
5198 (rest_of_handle_fast_dce): Add parameter to fast_dce.
5199 (rest_of_handle_fast_byte_dce): New function.
5200 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
5201 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
5203 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
5206 * gcc.h: Added fortran options that take arguments to
5207 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
5210 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
5212 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
5213 scalarization if on the LHS and not a full access.
5215 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5217 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
5219 2008-04-18 Rafael Espindola <espindola@google.com>
5221 * tree-vrp.c (find_case_label_index): Fix the binary search.
5222 (find_case_label_range): New.
5223 (vrp_visit_switch_stmt): Use find_case_label_range.
5224 (simplify_switch_using_ranges): Use find_case_label_range.
5226 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5228 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
5229 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
5231 2008-04-18 Tom Tromey <tromey@redhat.com>
5234 * doc/cpp.texi (Implementation-defined behavior): Mention
5237 2008-04-18 Ian Lance Taylor <iant@google.com>
5239 * fold-const.c (pointer_may_wrap_p): New static function.
5240 (fold_comparison): Add another test for pointer overflow. Use
5241 pointer_may_wrap_p to disable some false positives.
5243 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
5245 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
5246 (fname_as_string): Match updated cpp_interpret_string prototype.
5247 (fix_string_type): Support char16_t* and char32_t*.
5248 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
5249 derivative) nodes. Register as builtin if C++0x.
5250 (c_parse_error): Support CPP_CHAR{16,32}.
5251 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
5252 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
5253 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
5254 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
5255 CTI_CHAR32_ARRAY_TYPE>: New elements.
5256 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
5257 char32_type_node, signed_char32_type_node, char16_array_type_node,
5258 char32_array_type_node): New defines.
5259 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
5260 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
5261 (lex_string): Support CPP_STRING{16,32}, match updated
5262 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
5263 (lex_charconst): Support CPP_CHAR{16,32}.
5264 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
5265 and CPP_STRING{16,32}.
5267 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
5270 * aclocal.m4: Regenerate.
5271 * configure: Regenerate.
5273 2008-04-18 Jan Hubicka <jh@suse.cz>
5275 * except.c (dw2_size_of_call_site_table,
5276 sjlj_size_of_call_site_table): Use vector API for call_site_record.
5278 * cgraphbuild.c (build_cgraph_edges): Update.
5279 * tree-pass.h: Update comment.
5280 * final.c (leaf_function_p): Update.
5281 (leaf_renumber_regs): Update.
5282 (rest_of_clean_state): Update.
5283 * omp-low.c (expand_omp_parallel): Update.
5284 * ipa-reference.c (analyze_function): Update.
5285 * reorg.c (find_end_label): Update.
5286 (optimize_skip): Update.
5287 (fill_simple_delay_slots): Update.
5288 (fill_simple_delay_slots): Update.
5289 (make_return_insns): Update.
5290 (dbr_schedule): Update.
5291 * gimple-low.c (record_vars_into): Update.
5292 * cfgbuild.c (make_edges): Update.
5293 * function.c (assign_stack_local): Update.
5294 (assign_parm_adjust_stack_rtl): Update.
5295 (locate_and_pad_parm): Update.
5296 (allocate_struct_function): Do not initialize stack_alignment_needed
5297 and preferred_stack_boundary here.
5298 (stack_protect_prologue): Update.
5299 (stack_protect_epilogue): Update.
5300 (expand_function_start): Initialize stack_alignment_needed,
5301 preferred_stack_boundary and max_jumptable_ents.
5302 (expand_function_end): Update.
5303 (free_after_compilation): Do not NULLify epilogue_delay_list.
5304 * function.h (struct rtl_data): Add stack_protect_guard,
5305 stack_alignment_needed,
5306 preferred_stack_boundary, epilogue_delay_list.
5307 (struct function): Remove value_histograms, stack_alignment_needed,
5308 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
5310 unexpanded_var_list, stack_protect_guard.
5311 (current_function_epilogue_delay_list): Remove.
5312 * ipa-type-escape.c (analyze_function): Update.
5313 * gimplify.c (pop_gimplify_context): Update comment.
5314 * calls.c (expand_call): Update.
5315 (emit_library_call_value_1): Update.
5316 * except.c (set_nothrow_function_flags): Update.
5317 * cfgexpand.c (get_decl_align_unit): Update.
5318 (create_stack_guard): Update.
5319 (estimated_stack_frame_size): Update.
5320 (expand_used_vars): Update.
5321 (tree_expand_cfg): Free histogram earliers, init expansion variables.
5322 * explow.c (allocate_dynamic_stack_space): Update.
5323 * tree-ssa-live.c (remove_unused_locals): Update.
5324 * varasm.c (mark_constant_pool): Update.
5325 * tree-inline.c (remap_decls): Update.
5326 (initialize_cfun): Update.
5327 (declare_return_variable): Update.
5328 (inline_forbidden_p): Update.
5329 (expand_call_inline): Update.
5330 (declare_inline_vars): Update.
5331 (tree_function_versioning): Update.
5332 * tree-flow.h (value_histograms): New.
5333 (VALUE_HISTOGRAMS): New macro.
5334 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
5336 * tree-cfg.c (set_bb_for_stmt): Update.
5337 (replace_by_duplicate_decl): Update.
5338 (move_block_to_fn): Update.
5339 (new_label_mapper): Update.
5340 (dump_function_to_file): Update.
5341 * ipa-struct-reorg.c (build_data_structure): Update.
5342 * cfgrtl.c (print_rtl_with_bb): Update.
5343 * reload1.c (reload): Update.
5345 * config/i386/i386.c (setup_incoming_varargs_64,
5346 ix86_compute_frame_layout): Update.
5347 * config/arc/arc.c (arc_output_function_epilogue): Update.
5349 2008-04-18 Marius Strobl <marius@FreeBSD.org>
5351 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
5352 for FreeBSD as well.
5353 * gthr-posix95.h: Likewise.
5355 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
5357 PR rtl-optimization/35838
5358 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
5359 out the byte offset of the first subreg.
5361 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
5363 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
5364 to split_ti instead of three separate calls with single member arrays.
5365 (subti3 splitter): Ditto.
5366 (adddi3 splitter): Ditto with split_di.
5367 (subdi3 splitter): Ditto.
5368 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
5369 two separate calls with single member arrays. Swap match_dup
5370 operands 1 and 2 to better fit into the array.
5371 (negdi2 splitter): Ditto with split_di.
5372 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
5373 two separate calls with single member arrays. Swap match_dup operands
5374 6 and 7 to better fit into the array.
5376 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
5378 * config/i386/i386.c (sse_builtin_type): New.
5379 (bdesc_sse_args): Likewise.
5380 (bdesc_sse_3arg): Removed.
5381 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
5382 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
5383 IX86_BUILTIN_ROUNDPS.
5384 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
5385 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
5386 IX86_BUILTIN_ROUNDPS.
5387 (ix86_expand_sse_4_operands_builtin): Removed.
5388 (ix86_expand_sse_operands_builtin): New.
5389 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
5390 and CODE_FOR_sse4_1_roundps.
5391 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
5392 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
5394 2008-04-17 Alan Modra <amodra@bigpond.net.au>
5397 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
5398 regs before frame pop when needed. If use_backchain_to_restore_sp
5399 then load backchain into a temp reg to restore vr and vrsave. Add
5400 code to restore vr after frame pop if possible.
5402 2008-04-17 Richard Guenther <rguenther@suse.de>
5404 * tree-vn.c (expressions_equal_p): Do not check type
5405 equality or compatibility before calling operand_equal_p.
5406 * fold-const.c (operand_equal_p): Check equivalence of
5407 integer constants before bailing out due to signedness or
5408 precision differences.
5409 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
5410 spurious differences in type qualification. Ignore types
5411 for COMPONENT_REFs at all.
5413 2008-04-17 Christian Bruel <christian.bruel@st.com>
5415 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
5416 msw_skip comparison.
5418 2008-04-16 Jakub Jelinek <jakub@redhat.com>
5421 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
5424 PR tree-optimization/35899
5425 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
5426 rather than TREE_OPERAND.
5428 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
5431 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
5432 temporary registers. Change operand predicate to general_operand.
5433 (remainderxf3): Ditto.
5435 2008-04-16 Richard Guenther <rguenther@suse.de>
5437 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
5438 * tree-affine.c (aff_combination_expand): Look through some
5441 2008-04-15 Doug Kwan <dougkwan@google.com>
5443 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
5445 * tree-pretty-print.c (dump_generic_node): Ditto.
5446 * final.c (output_addr_const): Ditto.
5447 * dwarf2out.c (output_cfi): Ditto.
5448 * c-pretty-print.c (pp_c_integer_constant): Ditto.
5449 * print-rtl.c (print_rtx): Ditto.
5450 * print-tree.c (print_node_brief, print_node): Ditto.
5451 * c-common.c (match_case_to_enum_1): Ditto.
5452 * sched-vis.c (print_value): Ditto.
5453 * config/i386/i386.c (print_operand): Cast to long unsigned int
5456 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
5457 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
5458 MS Windows VirtualProtect function.
5460 2008-04-15 Jan Hubicka <jh@suse.cz>
5462 * gengtype.c (write_root): Param_is argument is OK.
5463 * expr.c (expand_expr_real_1): Update call of get_exception_*.
5464 * function.h: Include varray.h
5465 (rtl_eh): New stucture based on except.c one.
5466 (call_site_record): New forward declaration and vector type.
5467 * calls.c (emit_call_1): Do not call
5468 note_current_region_may_contain_throw.
5469 * except.c (eh_status): Remove cur_region, try_region since they are
5471 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
5472 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
5473 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
5474 Remove call_site_data_used, call_site_data_size.
5475 Turn call_site_record into vector in function.h.
5476 (note_current_region_may_contain_throw): Remove.
5477 (get_exception_pointer, get_exception_filter): Do not take struct
5478 function argument; update.
5479 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
5480 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
5481 build_post_landing_pads, dw2_build_landing_pads,
5482 sjlj_assign_call_site_values, sjlj_mark_call_sites,
5483 sjlj_emit_function_enter, sjlj_emit_function_enter,
5484 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
5485 sjlj_build_landing_pads, finish_eh_generation,
5486 remove_exception_handler_label, remove_eh_handler,
5487 maybe_remove_eh_handler, add_reachable_handler,
5488 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
5489 add_action_record, collect_one_action_chain, add_call_site,
5490 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
5491 sjlj_output_call_site_table, output_function_exception_table,
5492 * except.h (note_current_region_may_contain_throw): Remove
5493 (get_exception_pointer, get_exception_filter): Do not take struct
5495 * Makefile.in (GTFILES): Put varargs before struct function.
5497 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
5499 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
5500 punt for STRING_CST.
5501 (get_constraint_for): Deal with STRING_CST here instead.
5503 2008-04-15 Richard Guenther <rguenther@suse.de>
5505 * tree-ssa-propagate.c (substitute_and_fold): Substitute
5506 statements in a basic-block with a backward walk. Do not
5507 substitute into dead statements but instead remove those.
5509 2008-04-15 Richard Guenther <rguenther@suse.de>
5511 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
5512 to zero, thus disable creation of SFTs.
5514 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
5516 * tree-predcom.c (suitable_reference_p): Return false if the
5517 reference can throw.
5519 2008-04-15 Jakub Jelinek <jakub@redhat.com>
5522 * c-decl.c (finish_decl): If extern or static var has variable
5523 size, set TREE_TYPE (decl) to error_mark_node.
5525 2008-04-15 Rafael Espindola <espindola@google.com>
5527 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
5530 2008-04-15 Richard Guenther <rguenther@suse.de>
5532 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5533 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
5534 (visit_reference_op_load): Do walk vuse-vdef chains on
5535 vn_reference_lookup.
5536 (visit_reference_op_store): But do not here.
5537 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
5538 vn_reference_lookup.
5539 (vn_lookup_with_vuses): But do so here.
5541 2008-04-14 Ian Lance Taylor <iant@google.com>
5543 * fold-const.c (fold_overflow_warning): Remove assertion.
5545 2008-04-15 Ben Elliston <bje@au.ibm.com>
5547 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
5548 temp1 local variables.
5550 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
5553 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
5554 ".text.unlikely" section as executable.
5556 2008-04-14 James E. Wilson <wilson@tuliptree.org>
5558 * config/ia64/ia64.c (rtx_needs_barrier): Handle
5559 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
5560 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
5561 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
5562 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
5563 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
5564 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
5566 2008-04-14 Ian Lance Taylor <iant@google.com>
5568 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
5569 * fold-const.c (fold_comparison): If appropriate, test
5570 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
5571 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
5572 reassociating a pointer type.
5573 * doc/invoke.texi (Optimize Options): Document that
5574 -fstrict-overflow applies to pointer wraparound.
5576 2008-04-13 Jan Hubicka <jh@suse.cz>
5578 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
5580 2008-04-12 Andrew Pinski <pinskia@gmail.com>
5582 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
5583 we are going to "save the world".
5585 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
5587 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
5588 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
5589 operand 0 constraint, not "=".
5591 2008-04-11 James E. Wilson <wilson@tuliptree.org>
5593 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
5595 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
5597 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
5598 of size of positions_needed * CHAR_BIT.
5600 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
5603 * dse.c (store_info): Change positions_needed to unsigned
5605 (lowpart_bitmask): New.
5606 (record_store): Cast to unsigned HOST_WIDE_INT for
5607 positions_needed. Assert width <= size of positions_needed *
5608 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
5609 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
5610 lowpart_bitmask to set mask.
5612 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
5614 * config/bfin/constraints.md: New file.
5615 * config/bfin/bfin.md: Include it.
5616 (adddi3): Use satisfies_constraint functions instead of the old macros.
5617 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
5618 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
5619 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
5620 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
5621 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
5622 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
5623 EXTRA_CONSTRAINT): Delete.
5624 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
5625 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
5627 * config/bfin/bfin.c: Include "tm-constrs.h".
5628 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
5629 Use satisfies_constraint functions instead of the old macros.
5630 * doc/md.texi (Blackfin Constraints): Update file name reference.
5632 2008-04-11 Richard Guenther <rguenther@suse.de>
5634 PR tree-optimization/35869
5635 * tree-vrp.c (execute_vrp): Move switch statement update after
5636 jump threading. Schedule another cfg cleanup run.
5638 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
5641 * attribs.c (decl_attributes): Return early on errorneous node.
5643 2008-04-10 Oleg Ryjkov <olegr@google.com>
5645 * tree.h (struct tree_base): Added a new flag default_def_flag.
5646 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
5648 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
5650 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
5652 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5655 * pa.md: Define mode iterator P. Define mode attribute dwc.
5656 (dcacheflush): Update pattern to use iterator P and attribute dwc.
5657 (icacheflush): Likewise.
5658 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
5659 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
5661 2008-04-11 Ben Elliston <bje@au.ibm.com>
5663 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
5665 2008-04-10 Rafael Espindola <espindola@google.com>
5667 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
5668 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
5669 (extract_range_from_expr): The same.
5671 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
5673 * config/mips/mips.md (GPR2): New mode iterator.
5675 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
5676 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
5677 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
5678 Rewrite these to take two modes, the mode of comparison and the
5679 mode of the destination.
5680 * config/mips/mips.c (mips_expand_scc): Instead of having
5681 paradoxical subreg as destination, expand "narrowing" scc if mode
5682 of comparison is SI and target is requested in DI mode.
5683 (mips_emit_int_order_test): Update comment. Make mode of
5684 comparison match CMP0 rather than TARGET. When creating inverse
5685 target use mode of TARGET.
5687 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
5689 * gcov-dump.c (tag_summary): Only print summaries for the first
5690 GCOV_COUNTERS_SUMMABLE counters.
5692 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
5694 * config/i386/i386.md (absneg): New code iterator.
5695 (absnegprefix): New code attribute.
5696 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
5697 patterns using absneg code iterator.
5698 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
5699 using absneg code iterator.
5700 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
5701 *neg<mode>2 patterns using absneg code iterator.
5702 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
5703 *negextendsfdf2 patterns using absneg code iterator.
5704 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
5705 *negextendsfxf2 patterns using absneg code iterator.
5706 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
5707 *negextendsfdf2 patterns using absneg code iterator.
5708 * config/i386/sse.md (<code><mode>2): Macroize expander from
5709 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
5711 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
5713 * config/s390/s390.h: Remove the remains of the recent search
5714 & replace action of current_function_outgoing_args_size.
5716 2008-04-10 Ira Rosen <irar@il.ibm.com>
5718 PR tree-optimization/35821
5719 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
5720 NEW_STMT_LIST is not NULL.
5722 2008-04-09 David Edelsohn <edelsohn@gnu.org>
5725 * toplev.c (process_options): Remove -ffunction-sections debugging
5728 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
5730 PR middle-end/PR28690
5731 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
5732 than gen_rtx_fmt_ee to perform more canonicalizations.
5734 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5737 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
5739 2008-04-09 Richard Guenther <rguenther@suse.de>
5741 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
5742 (dump_function_to_file): Dump function arguments with types.
5744 2008-04-08 Richard Guenther <rguenther@suse.de>
5746 * fold-const.c (fold_widened_comparison): Do not allow
5747 sign-changes that change the result.
5749 2008-04-08 Janis Johnson <janis187@us.ibm.com>
5752 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
5753 kinds of indirect references.
5755 2008-04-08 David Edelsohn <edelsohn@gnu.org>
5757 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
5758 GNU Fortran language string.
5760 2008-04-08 Rafael Espindola <espindola@google.com>
5762 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
5763 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
5764 * tree.h (tree_call_nonnegative_warnv_p): New.
5766 2008-04-08 Jan Hubicka <jh@suse.cz>
5768 * function.c (free_after_compilation): Clear out regno_reg_rtx
5771 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
5774 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
5776 PR middle-end/PR28690
5777 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
5778 same precedence as REG_POINTER and MEM_POINTER operands.
5780 2008-04-08 Richard Guenther <rguenther@suse.de>
5783 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
5784 for adding index to base.
5786 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
5788 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
5789 (MINGW_ENABLE_EXECUTE_STACK): New.
5790 (IN_LIBGCC2): For libgcc include windows.h file for
5791 function declarations.
5793 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
5795 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
5796 and tem2 if tem1 is not a REG or MULT.
5798 2008-04-08 Jan Hubicka <jh@suse.cz>
5800 * function.h (incomming_args): Break out of struct function.
5801 (function_subsections): Break out of struct function.
5802 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
5803 return_rtx and hard_reg_initial_vals from struct function.
5804 Kill inl_max_label_num.
5805 (current_function_pops_args, current_function_args_info,
5806 current_function_args_size, current_function_args_size,
5807 current_function_pretend_args_size,
5808 current_function_outgoing_args_size,
5809 current_function_internal_arg_pointer, current_function_return_rtx):
5810 Kill compatibility accestor macros.
5811 * builtins.c (expand_builtin_apply_args_1): Update.
5812 (expand_builtin_next_arg): Update.
5813 * df-scan.c (df_get_call_refs): Update.
5814 * dbxout.c (dbxout_function_end): Update.
5815 * dwarf2out.c (dwarf2out_switch_text_section): Update.
5816 (output_line_info): Update.
5817 (secname_for_decl): Update.
5818 (dwarf2out_var_location): Update.
5819 * function.c (free_after_compilation): Update.
5820 (assign_parm_find_stack_rtl): Update.
5821 (assign_parms): Update.
5822 (expand_dummy_function_end): Update.
5823 (expand_function_end): Update.
5824 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
5825 (expand_call): Update.
5826 (emit_library_call_value_1): Update.
5827 (store_one_arg): Update.
5828 * varasm.c (initialize_cold_section_name): Update.
5829 (unlikely_text_section): Update.
5830 (unlikely_text_section_p): Update.
5831 (assemble_start_function): Update.
5832 (assemble_end_function): Update.
5833 (default_section_type_flags): Update.
5834 (switch_to_section): Update.
5835 * integrate.c (set_decl_abstract_flags): Update.
5836 (get_hard_reg_initial_val): Update.
5837 (has_hard_reg_initial_val): Update.
5838 (allocate_initial_values): Update.
5839 * resource.c (init_resource_info): Update.
5840 * config/alpha/alpha.c (NUM_ARGS): Update.
5841 (direct_return): Update.
5842 (alpha_va_start): Update.
5843 (alpha_sa_size): Update.
5844 (alpha_initial_elimination_offset): Update.
5845 (alpha_expand_prologue): Update.
5846 (alpha_start_function): Update.
5847 (alpha_expand_epilogue): Update.
5848 (unicosmk_initial_elimination_offset):
5849 * config/alpha/alpha.md (call expander): Update.
5850 * config/s390/s390.c (s390_register_info): Update.
5851 (s390_register_info): Update.
5852 (s390_frame_info): Update.
5853 (s390_initial_elimination_offset): Update.
5854 (s390_build_builtin_va_list): Update.
5855 (s390_va_start): Update.
5856 * config/spu/spu.c (direct_return): Update.
5857 (spu_expand_prologue): Update.
5858 (spu_initial_elimination_offset): Update.
5859 (spu_build_builtin_va_list): Update.
5860 (spu_va_start): Update.
5861 * config/sparc/sparc.c (sparc_init_modes): Update.
5862 (sparc_compute_frame_size): Update.
5863 (function_value): Update.
5864 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
5865 * config/i386/i386.md (return expander): Update.
5866 * config/i386/i386.c (ix86_va_start): Update.
5867 (ix86_can_use_return_insn_p): Update.
5868 (ix86_compute_frame_layout): Update.
5869 (ix86_expand_epilogue): Update.
5870 * config/sh/sh.c (output_stack_adjust): Update.
5871 (calc_live_regs): Update.
5872 (sh_expand_prologue): Update.
5873 (sh_builtin_saveregs): Update.
5874 (sh_va_start): Update.
5875 (initial_elimination_offset): Update.
5876 (sh_allocate_initial_value): Update.
5877 (sh_function_ok_for_sibcall): Update.
5878 (sh_get_pr_initial_val): Update.
5879 * config/sh/sh.md (return expander): Update.
5880 * config/avr/avr.c (frame_pointer_required_p): UPdate.
5881 * config/crx/crx.c (crx_compute_frame): UPdate.
5882 (crx_initial_elimination_offset): UPdate.
5883 * config/xtensa/xtensa.c (compute_frame_size): Update
5884 (xtensa_builtin_saveregs): Update.
5885 (xtensa_va_start): Update.
5886 (order_regs_for_local_alloc): Update.
5887 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
5888 (xstormy16_expand_builtin_va_start): Update.
5889 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
5890 * config/m68hc11/m68hc11.md (return expanders): Update.
5891 * config/m68hc11/m68hc11.c (expand_prologue): Update.
5892 (expand_epilogue): Update.
5893 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
5894 (cris_simple_epilogue): Update.
5895 (cris_expand_prologue): Update.
5896 (cris_expand_epilogue): Update.
5897 * config/iq2000/iq2000.c (iq2000_va_start): Update.
5898 (compute_frame_size): Update.
5899 * config/mt/mt.c (mt_compute_frame_size): Update.
5900 * config/mn10300/mn10300.c (expand_prologue): Update.
5901 (expand_epilogue): Update.
5902 (initial_offset): Update.
5903 (mn10300_builtin_saveregs):
5904 * config/mn10300/mn10300.md (return expander): Update.
5905 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
5906 (ia64_initial_elimination_offset): Update.
5907 (ia64_initial_elimination_offset): Update.
5908 (ia64_expand_prologue): Update.
5909 * config/m68k/m68k.md (return expander): Update.
5910 * config/rs6000/rs6000.c (rs6000_va_start): Update.
5911 (rs6000_stack_info): Update.
5912 * config/mcore/mcore.c (layout_mcore_frame): Update.
5913 (mcore_expand_prolog): Update.
5914 * config/arc/arc.c (arc_compute_frame_size): Update.
5915 * config/score/score3.c (score3_compute_frame_size): Update.
5916 * config/score/score7.c (score7_compute_frame_size): Update.
5917 * config/arm/arm.c (use_return_insn): Update.
5918 (thumb_find_work_register): Update.
5919 (arm_compute_save_reg_mask): Update.
5920 (arm_output_function_prologue): Update.
5921 (arm_output_epilogue): Update.
5922 (arm_size_return_regs): Update.
5923 (arm_get_frame_offsets): Update.
5924 (arm_expand_prologue): Update.
5925 (thumb_exit): Update.
5926 (thumb_unexpanded_epilogue): Update.
5927 (thumb1_output_function_prologue): Update.
5928 * config/pa/pa.md (return expander): Update.
5929 * config/pa/pa.c (compute_frame_size): Update.
5930 (hppa_builtin_saveregs): Update.
5931 * config/mips/mips.c (mips_va_start): Update.
5932 (mips16_build_function_stub): Update.
5933 (mips_compute_frame_info): Update.
5934 (mips_restore_gp): Update.
5935 (mips_output_function_prologue): Update.
5936 (mips_expand_prologue): Update.
5937 * config/v850/v850.c (compute_frame_size): Update.
5938 (expand_prologue): * config/mmix/mmix.c (along): update.
5939 (mmix_initial_elimination_offset): update.
5940 (mmix_reorg): update.
5941 (mmix_use_simple_return): update.
5942 (mmix_expand_prologue): update.
5943 (mmix_expand_epilogue): Update.
5944 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
5945 (emit_link_insn): Update.
5947 2008-04-08 Anatoly Sokolov <aesok@post.ru>
5949 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
5950 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
5952 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
5955 2008-04-07 Jan Hubicka <jh@suse.cz>
5957 * function.h (rtl): Rename to x_rtl.
5959 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
5960 frame_offset, stack_check_probe_note, arg_pointer_save_area,
5961 used_temp_slots avail_temp_slots, temp_slot_level,
5962 nonlocal_goto_handler_labels): Update accesstors.
5963 (rtl): New global variable.
5964 (struct function): Move some fileds to rtl_data.
5965 (get_arg_pointer_save_area): Update prototype.
5966 * builtins.c (expand_builtin_setjmp_receiver): Update call of
5967 get_arg_pointer_save_area.
5968 * expr.c (init_expr): Update
5969 * function.c (get_frame_size): Update
5970 (assign_stack_local): Update
5971 (expand_function_end): Update.
5972 (get_art_pointer_save_area): Update
5974 * emit-rtl.c (rtl): Declare.
5975 (regno_reg_rtx): Declare.
5976 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
5978 (gen_reg_rtx): Update.
5979 * varasm.c (n_deferred_constatns): Update accestor.
5980 (init_varasm_status): Do not allocate varasm_status.
5981 (force_const_mem, get_pool_size, output_constant_pool): Update.
5982 * stmt.c (force_label_rtx): Do not use x_ prefixes.
5983 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
5984 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
5985 * sparc/sparc.h (INIT_EXPANDERS): Update.
5986 * ia64/ia64.h (INIT_EXPANDERS): Update.
5988 2008-04-07 James E. Wilson <wilson@tuliptree.org>
5990 * reload.c (push_secondary_reload): Add missing break to for loop.
5992 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
5994 PR middle-end/PR28690
5995 * rtlanal.c: Update copyright years.
5996 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
5997 as REG_POINTER and MEM_POINTER operands.
5998 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
5999 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
6000 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
6001 * gcse.c: Update copyright years.
6002 (pre_delete): Call gen_reg_rtx_and_attrs.
6003 (hoist_code): Likewise.
6004 (build_store_vectors): Likewise.
6005 (delete_store): Likewise.
6006 * loop-invariant.c (move_invariant_reg): Likewise.
6007 Update copyright years.
6009 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
6011 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
6012 control string instead of quoted.
6014 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
6016 * doc/rtl.texi: Rewrite of subreg section.
6018 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
6021 * config/i386/i386.c (legitimize_pic_address): Add treating
6022 of dllimport SYM_REF's.
6023 (legitimize_dllimport_symbol): Add prototype.
6025 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6027 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
6028 reference in constructor with non self-referential type.
6030 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6032 Removal of Return with Depressed Stack Pointer support
6033 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
6034 (ECF_SP_DEPRESSED): Likewise.
6035 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
6036 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
6037 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6038 (expand_call): Do not test ECF_SP_DEPRESSED.
6039 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6040 * function.c (keep_stack_depressed): Delete.
6041 (handle_epilogue_set): Likewise.
6042 (update_epilogue_consts): Likewise.
6043 (emit_equiv_load): Likewise.
6044 (thread_prologue_and_epilogue_insns): Remove support for Return with
6045 Depressed Stack Pointer.
6046 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6048 2008-04-06 Richard Guenther <rguenther@suse.de>
6050 PR tree-optimization/35400
6051 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
6052 information from SSA_NAMEs.
6054 2008-04-06 Anatoly Sokolov <aesok@post.ru>
6056 * config/avr/avr.h (avr_mega_p): Remove declaration.
6057 (AVR_MEGA): Remove macro.
6058 * config/avr/avr.c (avr_mega_p): Remove variable.
6059 (avr_override_options): Remove inicializion of avr_mega_p.
6060 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
6061 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
6062 (avr_jump_mode): (Ditto.).
6063 (avr_output_progmem_section_asm_op): (Ditto.).
6064 (avr_asm_init_sections): (Ditto.).
6065 (avr_asm_init_sections): (Ditto.).
6066 (avr_rtx_costs): (Ditto.).
6067 * config/avr/avr.md: (Ditto.).
6068 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
6071 2008-04-06 Richard Guenther <rguenther@suse.de>
6073 PR tree-optimization/35842
6074 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
6075 is_gimple_invariant_address.
6077 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6079 * gcc.c (default_compilers): Sync Fortran extensions list with
6080 that in fortran/lang-specs.h.
6081 * doc/invoke.texi: Likewise.
6082 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
6083 * dwarf2out.c (gen_compile_unit_die): Likewise.
6085 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
6087 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
6089 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
6092 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
6093 attribute is used for nested functions.
6095 2008-04-05 Jan Hubicka <jh@suse.cz>
6097 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
6099 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
6101 (dump_files): Update.
6102 (enable_rtl_dump_file): Do not accept letter argument.
6103 * tree-pass.h (dump_file_info): Remove letter argument.
6104 * toplev.c (decode_d_option): Update -da handling.
6105 * toplev.h (enable_rtl_dump_file): Update prototype.
6106 * passes.c (register_one_dump_file): Do not accept IPA argument; work
6107 it out based on pass type.
6108 (register_dump_files_1): Likewise.
6109 (init_optimization_passes): Update register_one_dump_file calls.
6110 (execute_one_pass): Sanity check that IPA passes are called at IPA
6111 level and RTL passes at RTL level.
6112 (execute_pass_list): IPA pass can not be after or subpass of
6114 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
6115 disallov RTL subpasses of IPA subpasses.
6117 2008-04-05 Ben Elliston <bje@au.ibm.com>
6119 * tree-cfg.c (need_fake_edge_p): Return false for calls to
6120 builtins that return exactly once and do not throw. Cache call to
6123 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
6125 PR rtl-optimization/34916
6127 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
6128 between instruction pairs.
6130 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
6132 * doc/invoke.texi: Document -mbitops for SH.
6133 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
6134 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
6135 * config/sh/sh.c (print_operand): Add %t operand code.
6136 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
6137 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
6138 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
6139 (extendqihi2): Likewise.
6140 (movqi_i): Likewise.
6141 (insv): Use bset, bclr and bst instructions for SH2A if possible.
6142 (extv): Use bld instruction for SH2A if possible.
6144 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
6145 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
6146 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
6147 (bset.b, bclr.b): Define peepholes.
6148 * config/sh/sh.opt (mbitops): New option.
6150 2008-04-04 Janis Johnson <janis187@us.ibm.com>
6153 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
6154 and view convert expression.
6156 2008-04-04 Jakub Jelinek <jakub@redhat.com>
6159 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
6161 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
6163 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
6165 * config/i386/cpuid.h (bit_AES): New.
6166 (bit_PCLMUL): Likewise.
6168 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
6169 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
6170 SSE2 if AES or PCLMUL is enabled.
6171 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
6172 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
6173 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
6174 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
6175 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
6176 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
6177 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
6178 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
6179 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
6180 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
6181 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
6182 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
6183 __builtin_ia32_aeskeygenassist128 and
6184 __builtin_ia32_pclmulqdq128.
6185 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
6186 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
6187 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
6189 * config/i386/i386.h (TARGET_AES): New.
6190 (TARGET_PCLMUL): Likewise.
6191 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
6193 * config/i386/i386.md (UNSPEC_AESENC): New.
6194 (UNSPEC_AESENCLAST): Likewise.
6195 (UNSPEC_AESDEC): Likewise.
6196 (UNSPEC_AESDECLAST): Likewise.
6197 (UNSPEC_AESIMC): Likewise.
6198 (UNSPEC_AESKEYGENASSIST): Likewise.
6199 (UNSPEC_PCLMUL): Likewise.
6201 * config/i386/i386.opt (maes): New.
6202 (mpclmul): Likewise.
6204 * config/i386/sse.md (aesenc): New pattern.
6205 (aesenclast): Likewise.
6207 (aesdeclast): Likewise.
6209 (aeskeygenassist): Likewise.
6210 (pclmulqdq): Likewise.
6212 * config/i386/wmmintrin.h: New.
6214 * doc/extend.texi: Document AES and PCLMUL built-in function.
6216 * doc/invoke.texi: Document -maes and -mpclmul.
6218 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
6220 * function.c (free_after_parsing): Replace with
6221 cxx_push_function_context from C++ front-end.
6222 (allocate_struct_function): Don't call langhook.
6223 * langhooks.h (struct lang_hooks_for_functions): Delete.
6224 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
6226 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
6227 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
6228 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
6229 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
6230 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
6231 remove LANG_HOOKS_FUNCTION_INITIALIZER.
6232 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
6234 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
6235 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
6237 2008-04-04 Jakub Jelinek <jakub@redhat.com>
6240 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
6243 2008-04-04 Richard Guenther <rguenther@suse.de>
6246 * fold-const.c (optimize_minmax_comparison): Use the correct
6247 type for the constant in the simplified comparison.
6249 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
6251 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
6252 Pass L2 size as "--param l2-cache-size" to the compiler.
6253 (decode_l2_cache): New function to decode L2 cache parameters using
6254 0x8000006 extended cpuid function.
6255 (detect_caches_amd): Determine parameters of L2 cache using
6256 decode_l2_caches function.
6257 (decode_caches_intel): Decode L2 cache parameters.
6258 (detect_caches_intel): Determine L2 cache parameters using
6259 decode_caches_intel and decode_l2_caches functions.
6261 2008-04-03 Bob Wilson <bob.wilson@acm.org>
6263 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
6264 secondary input reload for subword loads from the constant pool.
6266 2008-04-03 Janis Johnson <janis187@us.ibm.com>
6269 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
6270 constants of the appropriate size for runtime calculations.
6273 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
6274 decimal-float literal constant zero.
6276 2008-04-03 Jakub Jelinek <jakub@redhat.com>
6279 * c-parser.c (c_parser_omp_atomic): Call
6280 default_function_array_conversion on the RHS.
6283 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
6284 call is_variable_sized if decl has incomplete type.
6286 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
6288 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
6290 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
6292 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
6294 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
6295 (sgt<u>): Merge sgt and sgtu into new expander.
6296 (sgt, sgtu): Remove expanders.
6297 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
6298 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
6299 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
6300 *sgtu_<mode>_mips16 into new pattern.
6301 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
6302 (sge<u>): Merge sge and sgeu into new expander.
6303 (sge, sgeu): Remove expanders.
6304 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
6306 (*sge_<mode>, second *sge_<mode>): Remove patterns.
6307 (slt<u>): Merge slt and sltu into new expander.
6308 (slt, sltu): Remove expanders.
6309 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
6310 (*slt_<mode>, *sltu_<mode>): Remove patterns.
6311 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
6312 *sltu_<mode>_mips16 into new pattern.
6313 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
6314 (sle<u>): Merge sle and sleu into new expander.
6315 (sle, sleu): Remove expanders.
6316 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
6317 (*sle_<mode>, *sleu_<mode>): Remove patterns.
6318 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
6319 *sleu_<mode>_mips16 into new pattern.
6320 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
6322 2008-04-03 Jan Hubicka <jh@suse.cz>
6324 PR tree-optimization/35795
6325 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
6326 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6327 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6328 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
6329 * score/score3.c (score3_output_mi_thunk): Likewise.
6330 * score/score7.c (score7_output_mi_thunk): Likewise.
6331 * mips/mips.c (mips_output_mi_thunk): Likewise.
6333 2008-04-03 Richard Guenther <rguenther@suse.de>
6335 * tree-vrp.c (extract_range_from_unary_expr): Handle all
6336 conversions. Simplify code.
6338 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
6340 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
6342 2008-04-03 Tom Tromey <tromey@redhat.com>
6343 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6345 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
6346 * config/bfin/t-bfin-linux (generated_files): Add
6347 linux-sysroot-suffix.h.
6348 * doc/install.texi (Prerequisites): Require make 3.80.
6349 * doc/sourcebuild.texi (Front End Directory): Document new
6351 * Makefile.in (generated_files): New variable.
6352 (ALL_HOST_OBJS): New variable.
6353 ($(ALL_HOST_OBJS)): New target.
6355 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6357 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
6358 (remap_block): Call id->transform_lang_insert_block instead
6360 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
6361 Set id.transform_lang_insert_block to NULL.
6362 (clone_body): Move to cp/optimize.c
6363 * tree-inline.h (struct copy_body_data): Change
6364 transform_lang_insert_block to function pointer.
6365 (copy_generic_body, copy_decl_no_change): Export.
6366 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
6367 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
6368 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
6370 * c-tree.h (insert_block): Kill.
6371 * c-decl.c (insert_block): Kill.
6373 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6375 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6376 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
6377 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
6379 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
6380 argument, call {push,pop}_function_context from here.
6381 * c-parser.c: Use c_{push,pop}_function_context.
6383 * function.c (push_function_context_to): Move meat ...
6384 (push_function_context): ... here. Simplify.
6385 * function.c (pop_function_context_from): Move meat ...
6386 (pop_function_context): ... here. Simplify.
6387 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
6389 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6390 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
6391 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
6392 * tree.h (push_function_context_to, pop_function_context_from): Remove.
6394 2008-04-03 Ben Elliston <bje@au.ibm.com>
6396 * expmed.c (extract_force_align_mem_bit_field): Remove.
6398 2008-04-03 Richard Guenther <rguenther@suse.de>
6401 * expr.h (try_casesi): Adjust prototype.
6402 * expr.c (try_casesi): Take fallback label as extra parameter.
6403 Use that for gen_casesi if default_label is NULL.
6404 * stmt.c (expand_case): Pass fallback label to try_casesi,
6405 make sure to fill gaps with a fallback label if default_label
6408 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
6411 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
6413 2008-04-03 Ben Elliston <bje@au.ibm.com>
6415 * expmed.c (extract_split_bit_field): Remove if (0) code.
6416 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
6417 (do_ds_constraint): Likewise.
6419 2008-04-02 Joseph Myers <joseph@codesourcery.com>
6421 * doc/cppopts.texi (-dU): Document.
6422 * c-common.h (flag_dump_macros): Update comment.
6423 * c-opts.c (handle_OPT_d): Handle -dU.
6424 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
6425 dump_queued_macros, cb_used_define, cb_used_undef): New.
6426 (init_pp_output): Handle -dU.
6427 (cb_line_change): Call dump_queued_macros.
6428 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
6430 2008-04-02 Anatoly Sokolov <aesok@post.ru>
6432 * config/avr/predicates.md (io_address_operand): New predicate.
6433 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
6434 * config/avr/avr.c (avr_io_address_p): Remove function.
6435 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
6436 'avr_io_address_p' function.
6437 (out_movhi_r_mr): (Ditto.).
6438 (out_movqi_mr_r): (Ditto.).
6439 (out_movhi_mr_r): (Ditto.).
6440 (avr_address_cost): (Ditto.).
6442 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
6444 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
6445 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
6446 in 32bit mode when XMM registers are available to avoid store
6448 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
6449 corresponding post-reload splitters.
6451 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
6453 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
6454 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
6455 __builtin_ia32_roundss.
6456 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
6457 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
6458 __builtin_ia32_roundss.
6459 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
6460 IX86_BUILTIN_SHUFPD here.
6462 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
6464 * config/i386/i386.md (plogic): New.
6465 (plogicprefix): Likewise.
6467 * config/i386/mmx.md (mmx_<code><mode>3): New.
6468 (mmx_and<mode>3): Removed.
6469 (mmx_ior<mode>3): Likewise.
6470 (mmx_xor<mode>3): Likewise.
6472 * config/i386/sse.md (<code><mode>3): New.
6473 (*<code><mode>3): Likewise.
6474 (*<code><mode>3): Likewise.
6475 (<code><mode>3): Likewise.
6476 (*sse_<code><mode>3): Likewise.
6477 (*sse2_<code><mode>3): Likewise.
6478 (<code>tf3): Likewise.
6479 (*<code>tf3): Likewise.
6480 (and<mode>3): Likewise.
6481 (*and<mode>3): Likewise.
6482 (ior<mode>3): Removed.
6483 (*ior<mode>3): Likewise.
6484 (xor<mode>3): Likewise.
6485 (*xor<mode>3): Likewise.
6486 (*and<mode>3): Likewise.
6487 (*ior<mode>3): Likewise.
6488 (*xor<mode>3): Likewise.
6489 (and<mode>3): Likewise.
6490 (*sse_and<mode>3): Likewise.
6491 (*sse2_and<mode>3): Likewise.
6493 (*andtf3): Likewise.
6494 (ior<mode>3): Likewise.
6495 (*sse_ior<mode>3): Likewise.
6496 (*sse2_ior<mode>3): Likewise.
6498 (*iortf3): Likewise.
6499 (xor<mode>3): Likewise.
6500 (*sse_xor<mode>3): Likewise.
6501 (*sse2_xor<mode>3): Likewise.
6503 (*xortf3): Likewise.
6505 2008-04-02 Richard Guenther <rguenther@suse.de>
6507 PR tree-optimization/14495
6508 PR tree-optimization/34793
6509 * tree-vrp.c (struct switch_update): New structure.
6510 (to_remove_edges, to_update_switch_stmts): New VECs.
6511 (simplify_switch_using_ranges): New function. Remove not taken
6512 case labels and edges.
6513 (simplify_stmt_using_ranges): Call it.
6514 (identify_jump_threads): Mark edges we have queued for removal
6515 so we don't thread them.
6516 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
6518 * tree-cfg.c (group_case_labels): Deal with missing default label.
6519 (tree_verify_flow_info): Allow missing default label.
6520 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
6521 (emit_case_nodes): Likewise.
6522 (expand_case): Do not rely on the default label to be present.
6523 * expr.c (try_casesi): Deal with NULL default_label.
6524 (do_tablejump): Likewise.
6526 2008-04-02 Richard Guenther <rguenther@suse.de>
6528 PR tree-optimization/14495
6529 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
6530 SWITCH_EXPR here ...
6531 (vrp_visit_switch_stmt): ... but here (new function).
6532 (find_case_label_index): New helper function.
6533 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
6535 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6537 * fwprop.c: Fix ISO-C99ism.
6539 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6542 * Makefile.in (objdir): Set it here.
6543 * configure.ac: Not here. Find dynamic linker characteristics.
6544 * exec-tool.in: Use them.
6545 * aclocal.m4: Regenerate.
6546 * configure: Regenerate.
6548 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6550 * expr.c (expand_var): Delete it.
6551 * expr.h (expand_var): Delete prototype.
6552 * function.c (expand_function_start): Use expand_decl instead.
6553 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
6556 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
6558 PR rtl-optimization/35542
6559 * fwprop.c (forward_propagate_and_simplify): Replace
6560 loc_reg_mentioned_in_p with reg_mentioned_p.
6562 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6564 PR rtl-optimization/35281
6565 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
6566 (propagate_rtx_1): Handle PR_HANDLE_MEM.
6567 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
6568 (varying_mem_p): Move above propagate_rtx.
6569 (all_uses_available_at): Do not check MEMs.
6571 2008-04-02 Rafael Espindola <espindola@google.com>
6573 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
6574 (register_edge_assert_for_2): Split the cond argument.
6575 (register_edge_assert_for_1): Adjust for the change in
6576 register_edge_assert_for_2.
6577 (register_edge_assert_for): Split the cond argument.
6578 (find_switch_asserts): Adjust for the change in
6579 register_edge_assert_for.
6581 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
6583 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
6584 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
6585 offsets for 64-bit mingw.
6586 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
6587 abi for x86_64-pc-mingw.
6589 2008-04-02 Richard Guenther <rguenther@suse.de>
6591 * tree-vrp.c (extract_range_from_assert): Make sure to not
6592 produce range min/max with TREE_OVERFOW set.
6593 If merging a anti-range and a range keep the anti-range if
6594 the range covers all values of the type.
6595 (register_edge_assert_for_2): Only allow sign-changing
6596 conversions in detecting canonical range checks. Also
6597 register an assert for the unsigned name if useful.
6599 PR tree-optimization/35787
6600 * tree-vrp.c (vrp_val_max): New function.
6601 (vrp_val_min): Likewise.
6602 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
6603 (vrp_val_is_min): Likewise.
6604 (supports_overflow_infinity): Use vrp_val_{min,max}.
6605 (negative_overflow_infinity): Likewise.
6606 (positive_overflow_infinity): Likewise.
6607 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
6608 (is_positive_overflow_infinity): Likewise.
6609 (is_overflow_infinity): Likewise.
6610 (avoid_overflow_infinity): Use vrp_val_{min,max} and
6611 vrp_val_is_{min,max}.
6612 (set_and_canonicalize_value_range): Canonicalize anti-ranges
6613 to ranges if possible. Avoid empty ranges.
6615 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6618 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
6619 the expression is a function address.
6621 2008-04-01 George Helffrich <george@gcc.gnu.org>
6623 PR fortran/35154, fortran/23057
6624 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
6625 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
6626 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
6627 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
6629 (dbxout_syms): Check for COMMON-based symbol and wrap in
6630 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
6631 in bracket for efficiency.
6633 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
6634 using DW_TAG_common_block + member offset.
6635 (add_pubname_string): New function.
6636 (dw_expand_expr): New function to find block name and offset for
6638 (common_check): New function to check whether symbol in Fortran COMMON.
6639 (gen_variable_die): If COMMON, use DW_TAG_common_block.
6641 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
6644 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
6646 2008-04-02 Ben Elliston <bje@au.ibm.com>
6648 * config/v850/v850.md (casesi): Remove if (0) code.
6649 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6650 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6652 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
6654 * config/i386/i386.md (rex64suffix): New mode attribute.
6655 (floathi<mode>2): Disable expander for SSE math.
6656 (*floathi<mode>2_1): New insn insn_and_split pattern.
6657 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
6658 corresponding post-reload splitters.
6659 (*floathi<mode>2_i387): New macroized insn pattern.
6660 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
6661 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
6662 insn_and_split pattern.
6663 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
6664 New macroized instruction patterns and corresponding post-reload
6666 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
6667 and corresponding post-reload splitters.
6668 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
6669 New macroized instruction patterns.
6670 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
6671 macroized instruction patterns and corresponding post-reload splitters.
6672 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
6673 corresponding post-reload splitters.
6674 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
6675 New macroized instruction patterns.
6676 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
6677 corresponding post-reload splitters.
6678 (*floatsi<mode>2_i387): New macroized instruction patterns.
6680 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
6682 * config/i386/i386.md (smaxmin): New.
6683 (umaxmin): Likewise.
6684 (maxminiprefix): Likewise.
6685 (maxminfprefix): Likewise.
6686 (<code><mode>3): Likewise.
6687 (smin<mode>3): Removed.
6688 (smax<mode>3): Likewise.
6690 * config/i386/mmx.md (mmx_<code>v2sf3): New.
6691 (mmx_<code>v4hi3): Likewise.
6692 (mmx_<code>v8qi3): Likewise.
6693 (mmx_smaxv2sf3): Removed.
6694 (mmx_sminv2sf3): Likewise.
6695 (mmx_umaxv8qi3): Likewise.
6696 (mmx_smaxv4hi3): Likewise.
6697 (mmx_uminv8qi3): Likewise.
6698 (mmx_sminv4hi3): Likewise.
6700 * config/i386/sse.md (<addsub><mode>3): New.
6701 (*<addsub><mode>3): Likewise.
6702 (<sse>_vm<addsub><mode>3): Likewise.
6703 (<maxmin><mode>3): Likewise.
6704 (*<maxmin><mode>3_finite): Likewise.
6705 (*<maxmin><mode>3): Likewise.
6706 (<sse>_vm<maxmin><mode>3): Likewise.
6707 (sse3_h<addsub>v4sf3): Likewise.
6708 (sse3_h<addsub>v2df3): Likewise.
6709 (<maxmin>v16qi3): Likewise.
6710 (*<maxmin>v16qi3): Likewise.
6711 (<maxmin>v8hi3): Likewise.
6712 (*<maxmin>v8hi3): Likewise.
6713 (*sse4_1_<maxmin><mode>3): Likewise.
6714 (*sse4_1_<maxmin><mode>3): Likewise.
6715 (add<mode>3): Removed.
6716 (*add<mode>3): Likewise.
6717 (<sse>_vmadd<mode>3): Likewise.
6718 (sub<mode>3): Likewise.
6719 (*sub<mode>3): Likewise.
6720 (<sse>_vmsub<mode>3): Likewise.
6721 (smin<mode>3): Likewise.
6722 (*smin<mode>3_finite): Likewise.
6723 (*smin<mode>3): Likewise.
6724 (<sse>_vmsmin<mode>3): Likewise.
6725 (smax<mode>3): Likewise.
6726 (*smax<mode>3_finite): Likewise.
6727 (*smax<mode>3): Likewise.
6728 (<sse>_vmsmax<mode>3): Likewise.
6729 (sse3_haddv4sf3): Likewise.
6730 (sse3_haddv2df3): Likewise.
6731 (sse3_hsubv4sf3): Likewise.
6732 (sse3_hsubv2df3): Likewise.
6733 (umaxv16qi3): Likewise.
6734 (*umaxv16qi3): Likewise.
6735 (smaxv8hi3): Likewise.
6736 (*smaxv8hi3): Likewise.
6737 (*sse4_1_smax<mode>3): Likewise.
6738 (*sse4_1_umax<mode>3): Likewise.
6739 (uminv16qi3): Likewise.
6740 (*uminv16qi3): Likewise.
6741 (sminv8hi3): Likewise.
6742 (*sminv8hi3): Likewise.
6743 (*sse4_1_smin<mode>3): Likewise.
6744 (*sse4_1_umin<mode>3): Likewise.
6746 2008-04-01 Rafael Espindola <espindola@google.com>
6748 * tree-cfg.c (verify_expr): remove in_phi.
6749 (verify_stmt): Don't call walk_tree with verify_expr. Use
6750 is_gimple_min_invariant instead of is_gimple_val.
6752 2008-04-01 Joseph Myers <joseph@codesourcery.com>
6754 * doc/include/gpl_v3.texi: Update for manpage generation.
6755 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
6757 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
6758 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
6759 gpl_v3.texi instead of gpl.texi.
6762 2008-04-01 Jakub Jelinek <jakub@redhat.com>
6765 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
6767 2008-04-01 Rafael Espindola <espindola@google.com>
6769 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
6770 (extract_code_and_val_from_cond): Use
6771 extract_code_and_val_from_cond_with_ops.
6773 2008-04-01 Jan Hubicka <jh@suse.cz>
6775 * function.c (free_after_compilation): Free epilogue_delay_list.
6776 (prepare_function_start): Assert that previous compilation was freed.
6778 2008-04-01 Jan Hubicka <jh@suse.cz>
6779 Jim Wilson <wilson@tuliptree.org>
6780 Andreas Tobler <andreast@gcc.gnu.org>
6783 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
6784 rtl.emit instead cfun->emit.
6785 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
6786 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
6788 2008-04-01 Ben Elliston <bje@au.ibm.com>
6790 * doc/c-tree.texi (Function Basics): Fix grammatical error.
6792 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
6794 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
6796 (fprofile-use): Add var flag_profile_use
6797 * coverage.c (coverage_begin_output): Do not open a gcno file for
6798 output only if -ftest-coverage is set.
6799 Do not add getpwd() to gcda file path.
6800 (build_gcov_info): Check the new flag
6801 flag_profile_datafile_relative_path.
6802 (coverage_init): Use profile_data_prefix.
6803 Read profile counter only if flag_profile_use is set.
6804 * opts.c (common_handle_option): New option fprofile-use=,
6805 fprofile-dir=, fprofile-generate=.
6806 * toplev.c (profile_data_prefix): New variable definition.
6807 * toplev.h (profile_data_prefix): New declaration.
6808 * doc/invoke.tex (Option Summary, Optimization Options):
6811 2008-03-31 James E. Wilson <wilson@tuliptree.org>
6813 * varasm.c (output_constant_pool_1): In LABEL_REF check,
6814 use tmp consistently.
6817 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
6818 * config/ia64/ia64.c (rtx_needs_barrier): Handle
6819 UNSPEC_FR_RECIP_APPROX_RES.
6820 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
6822 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
6825 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
6827 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
6830 * fold-const.c (fold_indirect_ref_1): Support accessing non first
6831 element of the vector via a pointer.
6833 2008-03-31 Ian Lance Taylor <iant@google.com>
6835 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
6837 2008-03-31 Jan Hubicka <jh@suse.cz>
6839 * builtins.c (expand_builtin_setjmp_receiver): Update call of
6840 get_arg_pointer_save_area.
6841 * expr.c (init_expr): Just clear out rtl.expr.
6842 * function.c (free_after_compilation): Clear out whole RTL structure.
6843 (get_func_frame_size): Merge into ...
6844 (get_frame_size): ... this one.
6845 (assign_stack_local_1): Merge into ...
6846 (assign_stack_local): ... this one.
6847 (expand_function_end): Update call of get_arg_pointer_save_area.
6848 (get_art_pointer_save_area): Remove cfun argument.
6849 * function.h (emit_status): regno_pointer_align does not need length
6850 attribute. Move x_regno_reg_rtx to ...
6851 (regno_reg_rtx): ... new global array.
6852 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
6853 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
6854 apply_args_value, forced_labels, stack_pointer_delta):
6856 (struct varasm_status): Move here from varasm.c
6857 (struct rtl_data): New. Move here some fields from struct function.
6858 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
6859 frame_offset, stack_check_probe_note, arg_pointer_save_area,
6860 used_temp_slots avail_temp_slots, temp_slot_level,
6861 nonlocal_goto_handler_labels): Update accesstors.
6862 (rtl): New global variable.
6863 (struct function): Move some fileds to rtl_data.
6864 (get_arg_pointer_save_area): Update prototype.
6865 * emit-rtl.c (rtl): Declare.
6866 (regno_reg_rtx): Declare.
6867 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
6869 (gen_reg_rtx): Update.
6870 (init_virtual_regs): Do not tate emit_status argument.
6871 (init_emit): Do not allocate emit.
6872 * varasm.c (varasm_statuc): Move to function.h.
6873 (n_deferred_constatns): Update accestor.
6874 (init_varasm_status): Do not allocate varasm_status.
6875 (force_const_mem, get_pool_size, output_constant_pool): Update.
6876 * stmt.c (force_label_rtx): Do not use x_ prefixes.
6877 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
6879 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
6881 PR rtl-optimization/35729
6882 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
6885 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
6888 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
6889 load/store if memory is unaligned.
6890 (*movti_rex64): Likewise.
6892 * config/i386/predicates.md (misaligned_operand): New.
6894 2008-03-31 Andrew Pinski <pinskia@gmail.com>
6897 * tree-ssa-phiopt.c (conditional_replacement): Return early for
6900 2008-03-31 Jan Beulich <jbeulich@novell.com>
6902 * config/ia64/constraints.md: Add 'j' constraint.
6903 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
6904 (movdi_internal): Likewise.
6906 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
6909 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
6911 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
6914 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
6915 proper error message for the third argument on blendpd and
6918 * config/i386/sse.md (blendbits): New.
6919 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
6921 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
6923 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
6925 2008-03-30 Richard Guenther <rguenther@suse.de>
6928 * fold-const.c (fold_sign_changed_comparison): Do leave
6929 conversions to base-types alone.
6931 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
6933 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
6934 the link register if one altivec register is be saved.
6936 2008-03-30 Ben Elliston <bje@au.ibm.com>
6938 * final.c (final_scan_insn): Remove if (0) code.
6940 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
6942 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
6944 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
6946 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
6947 of V4SFmode to ix86_binary_operator_ok.
6949 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
6951 * config/i386/i386.c (override_options): Initialize
6952 ix86_veclib_handler to ix86_veclibabi_svml when
6953 -mveclibabi=svml is used.
6954 (ix86_veclibabi_svml): New function for SVML ABI style
6955 vectorization support.
6956 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
6958 2008-03-28 Rafael Espindola <espindola@google.com>
6960 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
6961 (tree_binary_nonnegative_warnv_p): Make it public.
6962 (tree_single_nonnegative_warnv_p): Make it public.
6963 (tree_invalid_nonnegative_warnv_p): Make it public.
6964 (tree_unary_nonzero_warnv_p): Make it public.
6965 (tree_binary_nonzero_warnv_p): Make it public
6966 (tree_single_nonzero_warnv_p): Make it public.
6967 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
6968 (extract_range_from_binary_expr): Split the expr argument.
6969 (extract_range_from_unary_expr): Split the expr argument.
6970 (extract_range_from_comparison): Split the expr argument.
6971 (extract_range_from_expr): Use the new aux functions.
6972 (vrp_evaluate_conditional_warnv): Use
6973 vrp_evaluate_conditional_warnv_with_ops.
6974 * tree.h (tree_unary_nonzero_warnv_p): Declare.
6975 (tree_binary_nonzero_warnv_p): Declare.
6976 (tree_single_nonzero_warnv_p): Declare.
6977 (tree_expr_nonzero_warnv_p): Declare.
6978 (tree_unary_nonnegative_warnv_p): Declare.
6979 (tree_binary_nonnegative_warnv_p): Declare.
6980 (tree_single_nonnegative_warnv_p): Declare.
6981 (tree_invalid_nonnegative_warnv_p): Declare.
6983 2008-03-28 Richard Guenther <rguenther@suse.de>
6985 PR tree-optimization/30317
6986 PR tree-optimization/30911
6987 PR tree-optimization/34793
6988 * tree-vrp.c (set_and_canonicalize_value_range): New function.
6989 (struct assert_locus_d): New member EXPR.
6990 (register_new_assert_for): Add EXPR parameter to support
6991 ASSERT_EXPR <name, expr OP limit>.
6992 (register_edge_assert_for_1): Adjust callers.
6993 (find_assert_locations): Likewise.
6994 (process_assert_insertions_for): Build condition from expression.
6995 (extract_range_from_assert): Handle ASSERT_EXPRs
6996 of the form ASSERT_EXPR <name, expr OP limit>.
6997 (register_edge_assert_for_2): New helper registering
6998 asserts for comparisons. Recognize range tests of the form
6999 (unsigned)i - CST1 OP CST2.
7000 (register_edge_assert_for_1): Use it.
7001 (register_edge_assert_for): Likewise.
7002 (needs_overflow_infinity): Integer sub-types
7003 do not need overflow infinities.
7004 (vrp_val_is_max): The extreme values of integer sub-types
7005 are those of the base type.
7006 (vrp_val_is_min): Likewise.
7007 * tree.def (ASSERT_EXPR): Document extra allowed conditional
7010 2008-03-28 Nick Clifton <nickc@redhat.com>
7013 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
7014 Return GENERAL_REGS for stack adjustment reloads.
7016 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
7019 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
7020 const_vector when all the vectors are constant.
7022 2008-03-27 Bob Wilson <bob.wilson@acm.org>
7024 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
7026 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
7027 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
7029 (s<code>_sf): Use new scc_sf attribute for opcode names.
7031 2008-03-27 Tom Tromey <tromey@redhat.com>
7033 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
7034 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
7035 config/spu/t-spu-elf, config/i386/t-interix,
7036 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
7037 config/i386/x-darwin, config/i386/x-mingw32,
7038 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
7039 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
7040 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
7041 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
7042 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
7043 config/rs6000/x-darwin, config/rs6000/t-rs6000,
7044 config/score/t-score-elf, config/arm/t-strongarm-pe,
7045 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
7046 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
7047 Revert automatic dependency patch.
7049 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
7052 * config/i386/i386.c (ix86_function_arg_boundary): Align
7053 decimal floating point to its natural boundary.
7055 2008-03-27 Richard Guenther <rguenther@suse.de>
7058 * fold-const.c (fold_comparison): Restrict distinct decl
7059 comparison folding to VAR_DECLs and PARM_DECLs. Do not
7060 solely rely on operand_equal_p.
7062 2008-03-27 Richard Guenther <rguenther@suse.de>
7065 * c-common.c (handle_weak_attribute): Reject combination of
7068 2008-03-27 Richard Guenther <rguenther@suse.de>
7070 PR tree-optimization/32810
7071 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
7072 conversions from DECL_INITIAL.
7073 (fold_const_aggregate_ref): Likewise from constructor elements.
7075 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
7077 * tree-affine.h (aff_combination_expand): Declare.
7078 (get_inner_reference_aff): Likewise.
7079 * tree-affine.c (aff_combination_expand): Split out from
7080 tree_to_aff_combination_expand.
7081 (get_inner_reference_aff): New function.
7082 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
7083 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
7084 (struct lim_aux_data): sm_done field removed.
7085 (mem_ref_loc_p, mem_ref_locs_p): New types.
7086 (struct mem_ref): Added id, stored, accesses_in_loop,
7087 indep_loop, dep_loop, indep_ref, dep_ref fields.
7088 Removed is_stored, locs and next fields.
7089 (memory_accesses): New variable.
7090 (movement_possibility): Do not allow moving statements
7091 that store to memory.
7092 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
7094 (determine_max_movement): For statements with memory references,
7095 find the outermost loop in that the reference is independent.
7096 (move_computations_stmt): Mark the virtual operands for renaming.
7097 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
7098 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
7099 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
7100 add_vop_ref_mapping, create_vop_ref_mapping_loop,
7101 create_vop_ref_mapping, analyze_memory_references,
7102 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
7103 get_all_locs_in_loop, ref_always_accessed_p,
7104 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
7105 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
7106 store_motion_loop, store_motion): New functions.
7107 (struct vop_to_refs_elt): New type.
7108 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
7109 memref_hash, memref_eq, hoist_memory_references): Rewritten.
7110 (schedule_sm): Replaced by...
7111 (execute_sm): ... this.
7112 (determine_lsm_ref, hoist_memory_references,
7113 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
7114 find_more_ref_vops, free_mem_ref, free_mem_refs,
7115 determine_lsm_loop, determine_lsm): Removed.
7116 (tree_ssa_lim_finalize): Free data structures used by store motion.
7117 (tree_ssa_lim): Call analyze_memory_references. Use
7118 store_motion instead of determine_lsm.
7120 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
7122 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
7123 rename tmake_file to m68hc11/t-m68hc11.
7124 (mcore): Set inhibit_libc to true.
7125 * config.host (alpha*-dec-*vms*): Set extra_programs.
7126 (interix3*): Don't use host_xmake_file.
7127 * configure.ac: Let config.gcc override inhibit_libc.
7128 * configure: Regenerate.
7130 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
7131 * config/t-openbsd-thread: Remove commented out lines.
7133 * config/x-interix: Remove.
7135 * config/m68hc11/t-m68hc11-gas: Rename to...
7136 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
7138 * config/mcore/t-mcore: Remove T_CFLAGS.
7139 * config/mcore/t-mcore-pe: Likewise.
7141 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
7143 * configure.ac: Replace custom __GNU_SOURCE test with
7144 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
7145 * aclocal.m4: Regenerate.
7146 * configure: Regenerate.
7147 * config.in: Regenerate.
7149 2008-03-27 Richard Guenther <rguenther@suse.de>
7151 * fold-const.c (target.h): Include.
7152 (fold_comparison): Fold comparison of addresses of decls
7153 that bind locally or of constants. Consolidate address folding code.
7154 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
7155 results from fold_binary_to_constant.
7156 (compare_values_warnv): Likewise.
7158 2008-03-27 Andrew Pinski <pinskia@gmail.com>
7161 * fold-const.c (fold_truthop): Check for integeral types when folding
7162 a == 0 && b == 0 and a != 0 || b != 0 .
7164 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
7166 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
7168 2008-03-26 Andreas Schwab <schwab@suse.de>
7170 * doc/invoke.texi: Fix use of @item vs. @itemx.
7172 2008-03-26 Tom Tromey <tromey@redhat.com>
7174 * Makefile.in (build/gensupport.o, build/print-rtl.o,
7175 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
7176 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
7177 build/gencodes.o, build/genconditions.o, build/genconfig.o,
7178 build/genconstants.o, build/genemit.o, build/genextract.o,
7179 build/genflags.o, build/genmddeps.o, build/genopinit.o,
7180 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
7183 2008-03-26 Richard Guenther <rguenther@suse.de>
7186 2008-03-26 Richard Guenther <rguenther@suse.de>
7188 * fold-const.c (target.h): Include.
7189 (fold_comparison): Fold comparison of addresses of two decls
7190 that bind locally. Consolidate address folding code.
7192 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7194 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
7195 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
7196 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
7197 dconstsqrt2, dconstthird, dconste and/or dconst10.
7198 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
7199 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
7200 dconstsqrt2, dconste): Delete.
7201 (init_emit_once): Likewise. Simplify initializing dconstm1.
7203 * real.c (get_real_const): New.
7204 * real.h (dconst3, dconst10, dconstm2, dconstthird,
7205 dconstsqrt2, dconste): Delete.
7206 (real_value_const, get_real_const): New.
7208 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
7210 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
7212 * config/i386/i386.c (ix86_function_arg_boundary): Check
7213 BIGGEST_ALIGNMENT instead of 128.
7214 (setup_incoming_varargs_64): Likewise.
7216 2008-03-26 Tom Tromey <tromey@redhat.com>
7218 * Makefile.in (DEPFILES): Add missing '/'.
7220 2008-03-26 Richard Guenther <rguenther@suse.de>
7222 * fold-const.c (target.h): Include.
7223 (fold_comparison): Fold comparison of addresses of two decls
7224 that bind locally. Consolidate address folding code.
7226 2008-03-26 Nick Clifton <nickc@redhat.com>
7229 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
7230 not allow INT+INT as a legitimate addressing mode.
7232 2008-03-26 Richard Guenther <rguenther@suse.de>
7234 * tree-flow.h (widen_bitfield): Remove declaration.
7235 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
7236 (widen_bitfield): Remove function.
7237 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
7240 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
7243 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
7246 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
7248 PR rtl-optimization/35232
7249 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
7250 (forget_old_reloads_1, forget_marked_reloads): Don't clear
7251 reg_reloaded_call_part_clobbered here.
7252 (reload_regs_reach_end_p): New function.
7253 (reload_reg_rtx_for_input): New variable.
7254 (reload_reg_rtx_for_output): Likewise.
7255 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
7256 when reassigning a pseudo register. Load reloadreg from
7257 reload_reg_rtx_for_input, moving the mode and register
7259 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
7260 instead of the original when deciding whether an input reload
7261 would be a no-op or whether an output reload can be deleted.
7262 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
7263 when setting up new_spill_reg_store. Load it from
7264 reload_reg_rtx_for_output, moving the mode and register
7266 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
7267 instead of the original when deciding whether an output reload
7268 would be a no-op. Do the same when modifying insn notes.
7269 Use rtx_equal_p instead of == to compare the registers.
7270 (inherit_piecemeal_p): Take a mode and two register numbers
7272 (emit_reload_insns): Clear new_spill_reg_store for every hard
7273 register in the reload register. Remove spill registers
7274 from reg_reloaded_valid before considering whether to record
7275 inheritance information for them. Use reload_reg_rtx_for_output
7276 instead of reg_rtx when recording output reloads. Use
7277 reload_reg_rtx_for_input instead of reg_rtx when recording
7278 input reloads. Set or clear reg_reloaded_call_part_clobbered
7279 at the same time as setting reg_reloaded_valid.
7280 (delete_output_reload): Add a new_reload_reg parameter and use it
7281 instead of rld[j].reg_rtx.
7282 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
7285 2008-03-25 Tom Tromey <tromey@redhat.com>
7287 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
7288 (build/genattr.o): Likewise.
7289 (build/genattrtab.o): Likewise.
7290 (build/gencodes.o): Likewise.
7291 (build/genconfig.o): Likewise.
7292 (build/genconstants.o): Likewise.
7293 (build/genemit.o): Likewise.
7294 (build/genextract.o): Likewise.
7295 (build/genflags.o): Likewise.
7297 2008-03-25 Bob Wilson <bob.wilson@acm.org>
7299 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
7300 instead of size_int for integer types.
7301 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
7302 to match type of MINUS_EXPR.
7304 2008-03-25 Tom Tromey <tromey@redhat.com>
7306 * configure: Rebuilt.
7307 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
7310 2008-03-25 Tom Tromey <tromey@redhat.com>
7312 * config/x-solaris (host-solaris.o): Update.
7313 * config/x-linux (host-linux.o): Update.
7314 * config/x-hpux (host-hpux.o): Update.
7315 * config/x-darwin (host-darwin.o): Update.
7316 * config/v850/t-v850e (v850-c.o): Update.
7317 * config/v850/t-v850 (v850-c.o): Update.
7318 * config/t-vxworks (vxworks.o): Update.
7319 * config/t-sol2 (sol2-c.o, sol2.o): Update.
7320 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
7321 * config/spu/t-spu-elf (spu-c.o): Update.
7323 * config/sh/t-symbian (sh-c.o): Update.
7324 (symbian.o): Update.
7325 * config/sh/t-sh (sh-c.o): Update.
7326 * config/score/t-score-elf (score7.o, score3.o): Update.
7327 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
7328 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
7329 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
7330 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
7332 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
7333 * config/m32c/t-m32c (m32c-pragma.o): Update.
7334 * config/ia64/t-ia64 (ia64-c.o): Update.
7335 * config/i386/x-mingw32 (host-mingw32.o): Update.
7336 * config/i386/x-i386 (driver-i386.o): Update.
7337 * config/i386/x-darwin (host-i386-darwin.o): Update.
7338 * config/i386/x-cygwin (host-cygwin.o): Update.
7339 * config/i386/t-nwld (nwld.o): Update.
7340 * config/i386/t-netware (netware.o): Update.
7341 * config/i386/t-interix (winnt.o): Update.
7342 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
7343 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
7344 msformat-c.o): Update.
7345 * config/bfin/t-bfin-linux (generated_files): Add
7346 linux-sysroot-suffix.h.
7347 * config/arm/t-wince-pe (pe.o): Update.
7348 * config/arm/t-strongarm-pe (pe.o): Update.
7349 * config/arm/t-pe (pe.o): Update.
7350 * config/arm/t-arm (arm-c.o): Update.
7351 * doc/install.texi (Prerequisites): Require make 3.80.
7352 * Makefile.in: Remove .o targets.
7353 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
7354 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
7355 (simple_generated_h, simple_generated_c): Move earlier.
7356 (generated_files): New variable.
7357 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
7358 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
7359 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
7360 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
7361 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
7362 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
7363 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
7364 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
7365 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
7366 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
7367 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
7368 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
7370 (COMPILE.base, COMPILE): New variables.
7371 (%.o): New pattern rule.
7372 (ALL_HOST_OBJS): New variable.
7373 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
7374 (dummy-checksum.o, cc1-checksum.o): Remove.
7375 (DRIVER_SHLIB): New variable.
7376 (DRIVER_DEFINES): Use it.
7377 (gencondmd.c): Move out of build/.
7378 (s-conditions): Update.
7379 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
7380 (ALL_BUILD_OBJS): Likewise.
7381 (build/%.o): Use BUILDCOMPILE.
7382 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
7383 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
7384 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
7385 build/gencheck.o, build/gencodes.o, build/genconditions.o,
7386 build/genconfig.o, build/genconstants.o, build/genemit.o,
7387 build/genextract.o, build/genflags.o, build/genmddeps.o,
7388 build/genopinit.o, build/genoutput.o, build/genpeep.o,
7389 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
7390 build/gen-protos.o, build/scan.o, build/fix-header.o,
7391 build/scan-decls.o): Simplify.
7392 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
7393 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
7394 prefix.o, toplev.o): Reduce to variable setting.
7395 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
7396 ($(out_object_file), gcc-options.o): New targets.
7397 ($(ALL_HOST_OBJS)): New target. Include dependency files.
7398 * configure: Rebuilt.
7399 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
7400 * doc/sourcebuild.texi (Front End Directory): Document new variable.
7402 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
7404 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
7405 complain when we hit an error, return ERROR_MARK_NODE.
7407 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7409 * config/sh/constraints.md (Pso, Psz): New constraints.
7410 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
7411 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
7413 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7415 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
7416 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
7418 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7420 * config/sh/sh.md (prefetch): Add condition for SH2A target.
7421 (prefetch_sh2a): New.
7423 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
7424 Naveen.H.S <naveen.hs@kpitcummins.com>
7426 * config/sh/constraints.md (I28): New constraint.
7427 * config/sh/sh.c (broken_move): Add support for movi20s.
7428 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
7430 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
7431 Jayant Sonar <Jayant.sonar@kpitcummins.com>
7432 Naveen.H.S <naveen.hs@kpitcummins.com>
7434 * config/sh/sh.c (SH_ATTRIBUTES): Define.
7435 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
7436 (print_operand): Handle resbank in %@ operand code.
7437 (sh_encode_section_info): New.
7438 (push_regs): Add conditions for resbank.
7439 (sh_expand_epilogue): Likewise.
7440 (sh_insert_attributes): Likewise.
7441 (sh_attribute_table): Likewise.
7442 (sh_handle_resbank_handler_attribute): New.
7443 (sh2a_handle_function_vector_handler_attribute): New.
7444 (sh2a_is_function_vector_call): New.
7445 (sh2a_get_function_vector_number): New.
7446 (sh2a_function_vector_p): New.
7447 (sh_cfun_resbank_handler_p): New.
7448 * config/sh/sh.md (calli): Emit jsr/n if possible.
7449 (calli_tbr_rel): New.
7450 (calli_pcrel): Emit jsr/n if possible.
7451 (return_i): Emit rts/n if possible.
7452 (call_valuei_tbr_rel): New.
7453 (call_valuei_pcrel): Add condition for SH2A target.
7454 (call_value): Likewise.
7455 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
7456 (sh2a_get_function_vector_number): Likewise.
7457 (sh2a_is_function_vector_call): Likewise.
7458 * doc/extend.texi: Document TBR relative addressing of SH2A.
7459 (resbank): Add description for SH2A.
7461 2008-03-24 Richard Guenther <rguenther@suse.de>
7464 * gimplify.c (gimplify_modify_expr): For frontend type-correct
7465 pointer assignments change conversions according to middle-end rules.
7466 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
7467 * configure.ac: Include type checking in yes.
7468 * configure: Regenerate.
7470 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7472 * diagnostic.c (diagnostic_count_diagnostic): Delete.
7473 (diagnostic_report_diagnostic): Update. Handle ICEs here.
7475 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
7477 * gthr-vxworks.h (UNUSED): Define.
7479 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
7481 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
7483 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
7485 * doc/extend.texi (Function Attributes): Add missing comma in the
7486 example of the "alloc_size" attribute.
7488 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
7491 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
7493 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7496 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
7499 * stor-layout.c (update_alignment_for_field): Set minimum alignment
7500 of the underlying type of a MS bitfield layout to the natural
7501 alignment of the type.
7503 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
7505 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7506 to their natural alignment to avoid store forwarding stalls.
7508 2008-03-22 Richard Guenther <rguenther@suse.de>
7510 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
7511 For PHI nodes verify the address is invariant.
7512 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
7513 (get_symbol_constant_value): Use is_gimple_min_invariant.
7514 (maybe_fold_stmt_indirect): Likewise.
7516 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
7518 PR rtl-optimization/33927
7519 * Makefile.in (dse.o): Depend on $(TM_P_H).
7520 * expr.h (extract_low_bits): Declare.
7521 * expmed.c (extract_low_bits): New function.
7522 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
7523 * dse.c: Include tm_p.h.
7524 (find_shift_sequence): Remove the read_reg argument and return the
7525 read value. Emit the instructions instead of returning them.
7526 Iterate on new_mode rather than calculating it each time.
7527 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
7528 source to NEW_MODE and extract_low_bits to convert the shifted
7530 (replace_read): Allow the load and store to have different mode
7531 classes. Use extract_low_bits when SHIFT == 0. Create the shift
7532 or extraction instructions before trying the replacement. Update
7533 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
7535 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
7537 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7538 to their natural alignment to avoid store forwarding stalls.
7540 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
7543 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
7544 encouraging but not allowing gprs for input;
7545 change the input constraint to !f#r.
7546 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
7548 change the output constraint to !f#r.
7550 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
7553 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
7554 corresponding post-reload splitters.
7555 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
7556 when x87 FP math is selected.
7557 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
7558 New function prototype.
7559 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
7560 unreachable function to ease macroization of insn patterns.
7562 2008-03-21 Martin Jambor <mjambor@suse.cz>
7564 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
7565 reference dumps if ddr is NULL or dependence is unknown.
7567 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
7569 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
7570 unsigned extension into account.
7571 (ATOMIC_COMPARE_AND_SWAP): Likewise.
7572 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
7573 Do computations on a scratch register.
7575 2008-03-21 Richard Guenther <rguenther@suse.de>
7577 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7578 Use is_gimple_min_invariant instead of TREE_INVARIANT.
7579 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7580 * tree-ssa-dom.c (record_equality): Likewise.
7581 * tree-inline.c (copy_body_r): Likewise.
7582 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
7585 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
7587 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
7588 as 'delete_unused' argument.
7590 2008-03-20 Richard Guenther <rguenther@suse.de>
7592 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
7593 special casing of constant qualifiers.
7594 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
7595 care about them in general.
7596 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
7597 regardless of their type.
7598 (fold_stmt_r): Forcefully fold *& if we end up with that.
7600 2008-03-20 Paul Brook <paul@codesourcery.com>
7602 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
7603 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
7605 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
7607 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
7608 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
7610 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
7612 * common.opt (Wmudflap): New option.
7613 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
7614 (mx_register_decls): Likewise.
7615 (mudflap_finish_file): Likewise.
7616 * doc/invoke.texi: Document -Wno-mudflap.
7618 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
7620 * c-format.c (replace_format_name_to_system_name): New.
7622 (convert_format_name_to_system_name): New.
7623 (decode_format_attr): Add use of convert_format_name_to_system_name.
7624 (format_types_orig): Add gnu_ prefix to names.
7625 (check_format_info_main): Special treating of \0 escaped names for
7626 supporting multi-character format specifiers as I32, I64.
7627 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
7628 (gnu_target_overrides_format_attributes): New.
7629 * c-format.h: Add structure target_ovr_attr to hold
7630 system specific formatter names.
7631 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
7632 msformat-c.o file to c_target_objs and cxx_target_objs.
7633 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7634 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
7635 (TARGET_N_FORMAT_TYPES): New.
7636 * config/i386/msformat-c.c: New.
7637 * config/i386/t-cygming: Add build rule for msformat-c.o.
7638 * doc/extend.texi: Add new format names gnu_* and ms_* and
7640 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7642 2008-03-20 Ira Rosen <irar@il.ibm.com>
7644 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
7645 optimizations turned on under -O3.
7646 (ftree-vectorize): Add that the flag is turned on with -O3.
7648 2008-03-20 Ben Elliston <bje@au.ibm.com>
7650 * regmove.c (try_auto_increment): Fix spelling error in comment.
7651 * final.c (final_scan_insn): Likewise.
7653 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
7656 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
7657 allocator preferences for "y" and "r" class registers.
7658 ("*mov<mode>_internal"): Ditto.
7659 ("*movv2sf_internal_rex64"): Ditto.
7660 ("*movv2sf_internal"): Ditto.
7662 2008-03-19 Michael Matz <matz@suse.de>
7665 * calls.c (expand_call): Check overlap of arguments with call
7666 address for sibcalls.
7668 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
7671 * stor-layout.c (update_alignment_for_field): Set minimum alignment
7672 of the underlying type of a MS bitfield layout to the natural
7673 alignment of the type.
7675 2008-03-19 Jan Hubicka <jh@suse.cz>
7678 * toplev.c (decode_d_option): Handle all CPP flags.
7679 * tree-vrp.c: Update tree_pass descriptors.
7680 * regrename.c: Update tree_pass descriptors.
7681 * fwprop.c: Update tree_pass descriptors.
7682 * doc/invoke.texi: Remove documentation of dropped -d? flags.
7683 * tree-into-ssa.c: Update tree_pass descriptors.
7684 * tree-dump.c: Update tree_pass descriptors.
7685 * tree-complex.c: Update tree_pass descriptors.
7686 * tree-dump.h: Update tree_pass descriptors.
7687 * see.c: Update tree_pass descriptors.
7688 * cgraphbuild.c: Update tree_pass descriptors.
7689 * tracer.c: Update tree_pass descriptors.
7690 * tree-loop-distribution.c: Update tree_pass descriptors.
7691 * cgraph.c: Update tree_pass descriptors.
7692 * postreload-gcse.c: Update tree_pass descriptors.
7693 * postreload.c: Update tree_pass descriptors.
7694 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
7695 * tree-tailcall.c: Update tree_pass descriptors.
7696 * tree-pass.h (tree_opt_pass): Rename to ...
7697 (opt_pass) ... this one; add "type" field and remove letter field.
7698 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
7699 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
7700 all_lowering_passes): Update declaration.
7701 * ipa-cp.c: Update tree_pass descriptors.
7702 * final.c: Update tree_pass descriptors.
7703 * omp-low.c: Update tree_pass descriptors.
7704 * tree-ssa-dse.c: Update tree_pass descriptors.
7705 * ipa-reference.c: Update tree_pass descriptors.
7706 * tree-ssa-uncprop.c: Update tree_pass descriptors.
7707 * auto-inc-dec.c: Update tree_pass descriptors.
7708 * reorg.c: Update tree_pass descriptors.
7709 * cgraphunit.c: Update tree_pass descriptors.
7710 * tree-ssa-copyrename.c: Update tree_pass descriptors.
7711 * tree-ssa-ccp.c: Update tree_pass descriptors.
7712 * df-core.c: Update tree_pass descriptors.
7713 * mode-switching.c: Update tree_pass descriptors.
7714 * tree-nomudflap.c: Update tree_pass descriptors.
7715 * modulo-sched.c: Update tree_pass descriptors.
7716 * ipa-pure-const.c: Update tree_pass descriptors.
7717 * cse.c: Update tree_pass descriptors.
7718 * web.c: Update tree_pass descriptors.
7719 * tree-stdarg.c: Update tree_pass descriptors.
7720 * tree-ssa-math-opts.c: Update tree_pass descriptors.
7721 * tree-ssa-dom.c: Update tree_pass descriptors.
7722 * tree-nrv.c: Update tree_pass descriptors.
7723 * tree-ssa-alias.c: Update tree_pass descriptors.
7724 * loop-init.c: Update tree_pass descriptors.
7725 * gimple-low.c: Update tree_pass descriptors.
7726 * ipa-inline.c: Update tree_pass descriptors.
7727 * tree-ssa-sink.c: Update tree_pass descriptors.
7728 * global.c: Update tree_pass descriptors.
7729 * ifcvt.c: Update tree_pass descriptors.
7730 * jump.c: Update tree_pass descriptors.
7731 * predict.c: Update tree_pass descriptors.
7732 * tree-ssa-loop.c: Update tree_pass descriptors.
7733 * recog.c: Update tree_pass descriptors.
7734 * dse.c: Update tree_pass descriptors.
7735 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
7736 * tree-eh.c: Update tree_pass descriptors.
7737 * regmove.c: Update tree_pass descriptors.
7739 * function.c: Update tree_pass descriptors.
7740 * tree-vectorizer.c: Update tree_pass descriptors.
7741 * gcse.c: Update tree_pass descriptors.
7742 * ipa-type-escape.c: Update tree_pass descriptors.
7743 * tree-if-conv.c: Update tree_pass descriptors.
7744 * init-regs.c: Update tree_pass descriptors.
7745 * ipa.c: Update tree_pass descriptors.
7746 * tree-ssa-phiopt.c: Update tree_pass descriptors.
7747 * rtl-factoring.c: Update tree_pass descriptors.
7748 * lower-subreg.c: Update tree_pass descriptors.
7749 * bt-load.c: Update tree_pass descriptors.
7750 * tree-dfa.c: Update tree_pass descriptors.
7751 * except.c: Update tree_pass descriptors.
7752 * emit-rtl.c: Update tree_pass descriptors.
7753 * cfgexpand.c: Update tree_pass descriptors.
7754 * tree-cfgcleanup.c: Update tree_pass descriptors.
7755 * cfgcleanup.c: Update tree_pass descriptors.
7756 * tree-ssa-pre.c: Update tree_pass descriptors.
7757 * tree-sra.c: Update tree_pass descriptors.
7758 * tree-mudflap.c: Update tree_pass descriptors.
7759 * tree-ssa-copy.c: Update tree_pass descriptors.
7760 * cfglayout.c: Update tree_pass descriptors.
7761 * tree-ssa-forwprop.c: Update tree_pass descriptors.
7762 * tree-ssa-dce.c: Update tree_pass descriptors.
7763 * tree-ssa.c: Update tree_pass descriptors.
7764 * regclass.c: Update tree_pass descriptors.
7765 * integrate.c: Update tree_pass descriptors.
7766 * tree-optimize.c: Update tree_pass descriptors.
7767 * tree-ssa-phiprop.c: Update tree_pass descriptors.
7768 * tree-object-size.c: Update tree_pass descriptors.
7769 * combine.c: Update tree_pass descriptors.
7770 * tree-outof-ssa.c: Update tree_pass descriptors.
7771 * bb-reorder.c: Update tree_pass descriptors.
7772 * stack-ptr-mod.c: Update tree_pass descriptors.
7773 * var-tracking.c: Update tree_pass descriptors.
7774 * tree-profile.c: Update tree_pass descriptors.
7775 * tree-vect-generic.c: Update tree_pass descriptors.
7776 * reg-stack.c: Update tree_pass descriptors.
7777 * sched-rgn.c: Update tree_pass descriptors.
7778 * tree-ssa-structalias.c: Update tree_pass descriptors.
7779 * tree-cfg.c: Update tree_pass descriptors.
7780 * passes.c (current_pass): Update declaration.
7781 (finish_optimization_passes): Update.
7782 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
7783 (register_one_dump_file, register_dump_files_1, next_pass_1):
7785 (init_optimization_passes): Update handling of new types.
7786 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
7787 * ipa-struct-reorg.c: Update tree_pass descriptors.
7788 * tree-ssa-reassoc.c: Update tree_pass descriptors.
7789 * combine-stack-adj.c: Update tree_pass descriptors.
7790 * cfgrtl.c: Update tree_pass descriptors.
7791 * dce.c: Update tree_pass descriptors.
7792 * tree-ssanames.c: Update tree_pass descriptors.
7794 2008-03-19 Richard Guenther <rguenther@suse.de>
7797 * tree-ssa.c (walk_data): New structure.
7798 (warn_uninitialized_var): If not always_executed warn with "maybe"
7800 (execute_early_warn_uninitialized): Compute post-dominators.
7801 Initialize always_executed before processing each basic block.
7803 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
7806 * config/i386/i386.c (x86_this_parameter): Calculate correct location
7807 of "this" pointer when "regparm = N" or "fastcall" is in effect.
7809 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7811 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
7813 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
7815 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
7817 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
7818 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
7819 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
7820 target after ignore has been set, and move there also the commputation
7821 of subtarget and original_target.
7822 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7823 (LANG_HOOKS_INITIALIZER): Remove it.
7824 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
7826 2008-03-18 Richard Guenther <rguenther@suse.de>
7828 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
7829 found an expression with constants, note that in the VN for the lhs.
7830 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
7831 fold them to constants if possible. Run cleanup_cfg if done so.
7832 (execute_pre): Return todo.
7834 (execute_fre): Likewise.
7835 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
7837 (get_prop_source_stmt): Look through pointer conversions.
7839 2008-03-18 Jan Hubicka <jh@suse.cz>
7841 * tree-pretty-print.c: Include predict.h.
7842 (dump_generic_node): Dump predictor.
7843 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
7844 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
7845 * gimple-low.c (lower_stmt): Likewise.
7846 * expr.c (expand_expr_real): Likewise.
7847 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
7849 (build_predict_expr, build_predict_expr): New.
7850 * predict.h (predictor_name, build_predict_expr): Update.
7851 * c-typeck.c (c_finish_bc_stmt): Add prediction.
7852 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
7853 * predict.def (PRED_CONTINUE): Update hitrate.
7854 * tree.def (PREDICT_EXPR): Define.
7855 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
7856 do not handle BIND_EXPR.
7857 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
7858 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
7859 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
7862 2008-03-18 Michael Matz <matz@suse.de>
7864 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
7866 2008-03-18 Richard Guenther <rguenther@suse.de>
7868 * tree-gimple.h (is_gimple_invariant_address): Declare.
7869 (is_gimple_constant): Likewise.
7870 * tree-gimple.c (is_gimple_constant): New function.
7871 (is_gimple_invariant_address): Likewise.
7872 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
7873 and is_gimple_invariant_address.
7874 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
7876 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
7877 an addressable base.
7879 2008-03-18 Jakub Jelinek <jakub@redhat.com>
7882 * gimplify.c (gimplify_expr): Gimplify second operand of
7885 2008-03-17 Richard Guenther <rguenther@suse.de>
7887 PR tree-optimization/19637
7888 * fold-const.c (fold_unary): Remove restrictions of removing
7889 intermediate pointer-conversions (P2)(P1)P0.
7890 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
7891 conversion to void pointer.
7892 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
7894 2008-03-16 James E. Wilson <wilson@tuliptree.org>
7897 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
7898 emulated thread local variables.
7900 2008-03-16 Richard Guenther <rguenther@suse.de>
7903 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7904 expand TREE_INVARIANT operations that are not gimple invariant.
7906 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
7908 * doc/extend.texi (Alignment): Say that the ABI controls
7909 the __alignof__ for non-strict-alignment targets rather
7910 than being a recommendation.
7912 2008-03-15 Paul Brook <paul@codesourcery.com>
7914 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
7916 (arm_output_fn_unwind): Mark functions that can not be unwound.
7918 2008-03-15 Paul Brook <paul@codesourcery.com>
7920 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
7921 extension instructions.
7923 2008-03-15 Richard Guenther <rguenther@suse.de>
7925 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
7926 and fold constant aggregate refs.
7927 (fold_const_aggregate_ref): Handle string constants
7928 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
7929 (evaluate_stmt): Simplify now that ccp_fold folds constant
7932 2008-03-15 Paul Brook <paul@codesourcery.com>
7934 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
7935 (extzv): Use gen_extzv_t2.
7936 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
7938 2008-03-15 Richard Guenther <rguenther@suse.de>
7940 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
7941 (fold_const_aggregate_ref): Likewise.
7942 (get_value): Return NULL if we don't have any values.
7943 (ccp_finalize): Set const_val to NULL after freeing it.
7944 * tree-flow.h (get_symbol_constant_value): Declare.
7945 (fold_const_aggregate_ref): Likewise.
7946 * tree-ssa-sccvn.c (try_to_simplify): Use them.
7948 2008-03-15 Richard Guenther <rguenther@suse.de>
7951 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
7952 to not produce negative array indices if not allowed. Add
7953 parameter to indicate that.
7954 (maybe_fold_offset_to_component_ref): Allow negative array
7955 indices only for the first member of a structure.
7956 (maybe_fold_offset_to_reference): Allow negative array indices.
7957 (maybe_fold_stmt_addition): Likewise.
7959 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
7960 Anatoly Sokolov <aesok@post.ru>
7962 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
7963 (avr_arch): Add ARCH_AVR6.
7964 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
7965 (initial_elimination_offset): Initialize and use 'avr_pc_size'
7966 instead of fixed value 2.
7967 (print_operand_address): Use gs() asm specifier instead of pm().
7968 (avr_assemble_integer): (Ditto.).
7969 (avr_output_addr_vec_elt): (Ditto.).
7970 (print_operand): Handle "!" code.
7971 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
7972 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
7973 (AVR_HAVE_EIJMP_EICALL): Define.
7974 (AVR_3_BYTE_PC): Redefine.
7975 (AVR_2_BYTE_PC): (Ditto.).
7976 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
7977 (LINK_SPEC): Add atmega2560 and atmega2561.
7978 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
7980 * config/avr/avr.md (call_insn): Use eicall instead of icall
7981 for 3 byte PC devices.
7982 (call_value_insn): (Ditto.).
7983 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
7984 (indirect_jump): Use only for for 2 byte PC devices.
7985 (*tablejump): (Ditto.).
7986 (*indirect_jump_avr6): Add insn.
7987 (*tablejump_rjmp): Don't use for 3 byte PC devices.
7988 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
7989 instead of ijmp for 3 byte PC devices.
7990 (__tablejump2__): (Ditto.).
7991 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
7992 (MULITLIB_DIRNAMES): (Ditto.).
7993 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
7995 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
7997 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
7998 "sse2_umulsidi3". Use V1DI mode for operand 0.
7999 ("mmx_psadbw"): Use V1DI mode for operand 0.
8000 * config/i386/i386-modes.def (V1SI): New vector mode.
8001 * config/i386/i386.c (struct builtin_description)
8002 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
8003 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
8004 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
8005 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
8006 v1di_ftype_v8qi_v8qi type.
8007 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
8009 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
8010 __builtin_ia32_pmuludq]: Fix the mode of return value.
8012 2008-03-15 Richard Guenther <rguenther@suse.de>
8015 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
8018 2008-03-14 Bob Wilson <bob.wilson@acm.org>
8020 * doc/invoke.texi (Option Summary, Xtensa Options): Document
8021 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
8022 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
8023 unless TARGET_SERIALIZE_VOLATILE is enabled.
8024 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
8025 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
8026 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
8028 2008-03-14 Richard Guenther <rguenther@suse.de>
8030 PR tree-optimization/34172
8031 * tree-flow.h (refs_may_alias_p): Declare.
8032 (get_single_def_stmt): Likewise.
8033 (get_single_def_stmt_from_phi): Likewise.
8034 (get_single_def_stmt_with_phi): Likewise.
8035 * tree-dfa.c (refs_may_alias_p): New function.
8036 (get_single_def_stmt): Likewise.
8037 (get_single_def_stmt_from_phi): Likewise.
8038 (get_single_def_stmt_with_phi): Likewise.
8039 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
8040 (vn_reference_lookup_1): New helper function.
8041 (vn_reference_lookup): Walk the virtual use-def chain to
8042 continue searching for a match if the def does not alias the
8043 reference we are looking for.
8045 2008-03-14 David Edelsohn <edelsohn@gnu.org>
8047 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
8048 archive and Perzl. Update The Written Word listing.
8050 2008-03-14 Richard Guenther <rguenther@suse.de>
8052 PR tree-optimization/34043
8053 PR tree-optimization/33989
8054 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
8056 (bitmap_find_leader): Use extra argument to verify dominance
8057 relationship inside a basic-block.
8058 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
8059 (find_leader_in_sets): Adjust.
8060 (create_component_ref_by_pieces): Take extra argument for
8061 dominance check, handle lookup failures.
8062 (find_or_generate_expression): Likewise.
8063 (create_expression_by_pieces): Likewise.
8064 (insert_into_preds_of_block): Adjust.
8065 (create_value_expr_from): If asked for, verify all operands
8066 are in the blocks AVAIL_OUT set.
8067 (make_values_for_stmt): Check for SSA_NAMEs that are life
8068 over an abnormal edge.
8069 (compute_avail): Remove such check.
8070 (do_SCCVN_insertion): New function.
8071 (eliminate): If we do not find a leader suitable for replacement
8072 insert a replacement expression from SCCVN if available.
8073 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
8074 (struct vn_ssa_aux): Add needs_insertion flag.
8075 * tree-ssa-sccvn.c (may_insert): New global flag.
8076 (copy_reference_ops_from_ref): Value-number union member access
8077 based on its size, not type and member if insertion is allowed.
8078 (visit_reference_op_load): For a weak match from union type
8079 punning lookup a view-converted value and insert a SSA_NAME
8080 for that value if that is not found.
8081 (visit_use): Make dumps shorter. Do not disallow value numbering
8082 SSA_NAMEs that are life over an abnormal edge to constants.
8083 (free_scc_vn): Release inserted SSA_NAMEs.
8084 (run_scc_vn): New flag to specify whether insertion is allowed.
8085 Process SSA_NAMEs in forward order.
8086 * tree-ssa-loop-im.c (for_each_index): Handle invariant
8087 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
8088 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
8089 pointer type to/from integral types that do not change the
8090 precision to regular conversions.
8092 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
8094 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8095 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8096 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
8097 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
8098 input arguments and the mode of return value. Built-in functions
8099 that operate on whole 64-bit MMX register now use V1DI mode.
8101 2008-03-13 Alon Dayan <alond@il.ibm.com>
8102 Olga Golovanevsky <olga@il.ibm.com>
8104 PR tree-optimization/35041
8105 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
8106 to locate the right position in a statement.
8108 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
8112 * config/i386/xmmintrin.h: Change all static inline functions to
8113 extern inline and add __gnu_inline__ attribute.
8114 * config/i386/bmintrin.h: Ditto.
8115 * config/i386/smmintrin.h: Ditto.
8116 * config/i386/tmmintrin.h: Ditto.
8117 * config/i386/mmintrin-common.h: Ditto.
8118 * config/i386/ammintrin.h: Ditto.
8119 * config/i386/emmintrin.h: Ditto.
8120 * config/i386/pmmintrin.h: Ditto.
8121 * config/i386/mmintrin.h: Ditto.
8122 * config/i386/mm3dnow.h: Ditto.
8124 2008-03-13 Jakub Jelinek <jakub@redhat.com>
8127 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
8128 (lower_omp_2): New function.
8129 (lower_omp_1, lower_omp): Rewritten.
8131 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
8134 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
8135 with the phrase "Microsoft Windows compilers".
8136 (Push/Pop Macro Pragmas): New subsection. Document
8137 #pragma push_macro and pragma pop_macro.
8139 2008-03-12 Paul Brook <paul@codesourcery.com>
8141 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
8143 2008-03-12 Paul Brook <paul@codesourcery.com>
8145 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
8146 (thumb2_alusi3_short): Exclude PLUS and MINUS.
8147 (thumb2_addsi_shortim): Rename ...
8148 (thumb2_addsi_short): ... to this. Allow register operands.
8149 (thumb2_subsi_short): New pattern.
8150 (thumb2_one_cmplsi2_short,
8151 thumb2_negsi2_short): New patterns and peepholes.
8153 2008-03-12 Paul Brook <paul@codesourcery.com>
8155 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
8157 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
8159 * config/i386/i386.md (int_cond): New code iterator.
8161 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
8162 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
8163 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
8164 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
8165 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
8166 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
8167 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
8168 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
8170 2008-03-12 Paul Brook <paul@codesourcery.com>
8172 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
8173 instead of {arm,thumb}_compute_save_reg_mask.
8174 (output_return_instruction): Ditto.
8175 (thumb_unexpanded_epilogue): Ditto.
8176 (thumb1_expand_prologue): Ditto.
8177 (thumb1_output_function_prologue): Ditto.
8178 (arm_set_return_address): Ditto.
8179 (thumb_set_return_address): Ditto.
8180 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
8181 regs to achieve stack alignment.
8182 (thumb1_compute_save_reg_mask): Fix compiler warning.
8183 (arm_output_epilogue): Use offsets->saved_regs_mask.
8184 Adjust stack pointer by poping call clobered registers.
8185 (arm_expand_prologue): Use offsets->saved_regs_mask.
8186 Adjust stack pointer by pushing extra registers.
8187 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
8189 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
8192 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
8193 conversion to the operands of a multiplication.
8195 2008-03-12 Richard Guenther <rguenther@suse.de>
8197 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
8198 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
8199 * timevar.def (TV_TREE_PHIPROP): Add.
8200 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
8201 pass description. Use TV_TREE_PHIPROP.
8202 * tree-ssa-forwprop.c: Remove phiprop code.
8204 2008-03-12 Jakub Jelinek <jakub@redhat.com>
8207 * omp-low.c (maybe_lookup_decl): Constify first argument.
8208 (use_pointer_for_field): Change last argument from bool to
8209 omp_context *. Disallow shared copy-in/out in nested
8210 parallel if decl is shared in outer parallel too.
8211 (build_outer_var_ref, scan_sharing_clauses,
8212 lower_rec_input_clauses, lower_copyprivate_clauses,
8213 lower_send_clauses, lower_send_shared_vars): Adjust callers.
8215 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
8216 Ira Rosen <irar@il.ibm.com>
8218 * tree-vectorizer.c (free_stmt_vec_info): New function.
8219 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
8220 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
8221 * tree-vectorizer.h (free_stmt_vec_info): Declare.
8222 * tree-vect-transform.c (vectorizable_conversion): Free
8223 vec_oprnds0 if it was allocated.
8224 (vect_permute_store_chain): Remove unused VECs.
8225 (vectorizable_store): Free VECs that are allocated in the..
8227 (vect_transform_strided_load, vectorizable_load): Likewise.
8228 (vect_remove_stores): Simplify the code.
8229 (vect_transform_loop): Move code to vect_remove_stores().
8230 Call vect_remove_stores() and free_stmt_vec_info().
8232 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8234 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
8235 TARGET_HPUX. Revise comment.
8236 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
8237 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
8238 Use sr4 variant of `be' instruction when not generating PIC code.
8239 (attr_length_call): Adjust for above change.
8241 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
8243 * ipa-reference.c (static_execute): Remove module_statics_const and
8244 associated setting code.
8246 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
8249 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
8250 predicate for operand 1.
8251 (paritysi2_cmp): Use register_operand predicate for operand 2.
8252 Use earlyclobber modifier for operand 1. Remove support for
8254 (paritydi2_cmp): Use register_operand predicate for operand 3.
8255 Use earlyclobber modifier for operand 1. Remove support for
8258 2008-03-11 Paul Brook <paul@codesourcery.com>
8259 Vladimir Prus <vladimir@codesourcery.com>
8261 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
8262 (arm_compute_save_reg0_reg12_mask): Always
8263 check if register 11 must be saved. Always safe hard frame pointer
8264 when frame_pointer_needeed.
8265 (arm_compute_save_reg_mask): Save IP and PC
8266 only with apcs frames.
8267 (arm_output_epilogue): Adjust Thumb2 codepath to
8268 be also invoked and work for ARM non-apcs frames.
8269 (arm_expand_prologue): Don't bother saving IP
8270 for non-apcs frame, since it's not clobbered by
8271 prologue code. Implement non-apcs frame
8274 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
8276 PR rtl-optimization/35281
8277 * expr.c (convert_move): Use a new pseudo for the intermediate
8278 from_mode->word_mode result.
8280 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
8282 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
8283 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
8284 * toplev.c (compile_file): Don't call it.
8286 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
8289 * expr.c (store_expr): Call emit_block_move if the mode
8290 of "temp" RTX is BLKmode.
8292 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
8293 Richard Guenther <rguenther@suse.de>
8295 PR tree-optimization/31358
8296 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
8297 the step with a NULL_TREE.
8298 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
8299 to sizetype if type is a pointer type.
8300 (add_candidate_1): Don't convert the base and step to
8301 the generic type if the orginal type is a pointer type.
8302 (add_iv_value_candidates): Use sizetype for the step
8303 if type is a pointer type.
8304 (cand_value_at): Likewise.
8305 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
8307 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
8308 Don't convert the tem affine to the type.
8309 (add_elt_to_tree): Use sizetype for the step if a pointer.
8310 Use POINTER_PLUS_EXPR for pointers.
8311 (aff_combination_to_tree): Use sizetype for the step if a
8314 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
8316 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
8317 Remove commutativity hint.
8319 2008-03-10 Jakub Jelinek <jakub@redhat.com>
8323 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
8324 errorneous type. Check that v is a VAR_DECL.
8327 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
8329 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
8331 PR tree-optimization/35494
8332 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
8333 may be overriden at link and run time.
8335 2008-03-10 Richard Guenther <rguenther@suse.de>
8337 PR tree-optimization/34677
8338 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
8339 (poolify_tree): Likewise.
8340 (modify_expr_template): Likewise.
8341 (poolify_modify_stmt): Likewise.
8342 (insert_fake_stores): Handle all component-ref style stores
8343 in addition to INDIRECT_REF. Also handle complex types.
8344 Do not poolify the inserted load.
8345 (realify_fake_stores): Do not rebuild the tree but only
8346 make it a SSA_NAME copy.
8347 (init_pre): Remove initialzation of modify_expr_template.
8348 Do not allocate modify_expr_node_pool.
8349 (fini_pre): Do not free modify_expr_node_pool.
8351 2008-03-10 Paul Brook <paul@codesourcery.com>
8353 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
8356 2008-03-10 Paul Brook <paul@codesourcery.com>
8357 Mark Shinwell <shinwell@codesourcery.com>
8359 * config/arm/cortex-r4.md: New.
8360 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
8362 * config/arm/arm.md: Include cortex-r4.md.
8363 (insn): Add smmls, sdiv and udiv values.
8364 (generic_sched): Don't use generic scheduling for Cortex-R4.
8365 (arm_issue_rate): New function.
8366 (TARGET_SCHED_ISSUE_RATE): Define.
8368 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
8370 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
8372 2008-03-10 Richard Guenther <rguenther@suse.de>
8374 * tree-ssa-pre.c (get_sccvn_value): Simplify.
8375 (compute_avail): Do not add stmt uses to AVAIL_OUT.
8377 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
8379 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
8380 Set default to true.
8382 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8384 * c.opt (Wsynth): Deprecate.
8385 * doc/invoke.texi (Option Summary, Warning Options): Document
8386 -Wno-format-contains-nul.
8388 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
8391 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
8392 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
8394 2008-03-09 Ira Rosen <irar@il.ibm.com>
8396 * config/rs6000/rs6000.c (builtin_description): Rename vector
8397 left shift operations.
8398 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
8399 (altivec_vsl<VI_char>): Rename to ...
8400 (ashl<mode>3): ... new name.
8401 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
8403 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
8405 2008-03-08 Richard Guenther <rguenther@suse.de>
8407 * coverage.h (tree_coverage_counter_addr): Declare.
8408 * coverage.c (tree_coverage_counter_addr): New function.
8409 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
8411 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
8412 (tree_gen_one_value_profiler): Likewise.
8413 (tree_gen_ic_profiler): Likewise.
8414 (tree_gen_average_profiler): Likewise.
8415 (tree_gen_ior_profiler): Likewise.
8417 2008-03-08 Richard Guenther <rguenther@suse.de>
8419 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
8420 (vn_binary_op_insert): Likewise.
8421 (vn_unary_op_lookup): Likewise.
8422 (vn_unary_op_insert): Likewise.
8423 (vn_nary_op_lookup): Declare.
8424 (vn_nary_op_insert): Likewise.
8425 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
8426 and binary hashes, use a single obstack for unary_op_pool
8428 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
8429 a single struct vn_nary_op_s. Store tree code length and
8430 a variable number of operands.
8431 (struct vn_reference_op_struct): Remove unused op2.
8432 (vn_reference_op_eq): Do not compare op2.
8433 (vn_reference_op_compute_hash): Do not compute hash of op2.
8434 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
8435 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
8436 with vn_nary_op_compute_hash.
8437 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
8438 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
8440 (vn_unary_op_insert, vn_binary_op_insert): Replace with
8442 (visit_unary_op): Call nary functions.
8443 (visit_binary_op): Likewise.
8444 (process_scc): Adjust for struct vn_tables_s changes.
8445 (allocate_vn_table): Likewise.
8446 (free_vn_table): Likewise.
8447 * tree-vn.c (vn_add): Call nary functions.
8448 (vn_lookup): Likewise.
8450 2008-03-08 Jakub Jelinek <jakub@redhat.com>
8453 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
8454 wdst back after sync_compare_and_swapqhi_internal.
8456 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
8459 * config/i386/i386-modes.def (V1DI): New vector mode.
8460 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
8461 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
8462 (MMXMODE248): Ditto.
8463 (MMXMODE): Add V1DI mode.
8464 (mmxvecsize): Change DI mode to V1DI mode.
8465 ("mov<mode>): Use MMXMODEI8 mode iterator.
8466 ("*mov<mode>_internal_rex64"): Ditto.
8467 ("*mov<mode>_internal"): Ditto.
8468 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
8469 ("mmx_sub<mode>3"): Ditto.
8470 ("mmx_adddi3"): Remove insn pattern.
8471 ("mmx_subdi3"): Ditto.
8472 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
8473 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
8474 ("mmx_ashl<mode>3"): Ditto.
8475 ("mmx_lshrdi3"): Remove insn pattern.
8476 ("mmx_ashldi3"): Ditto.
8477 * config/i386/i386.c (classify_argument): Handle V1DImode.
8478 (function_arg_advance_32): Ditto.
8479 (function_arg_32): Ditto.
8480 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
8481 mmx_addv1di3 insn pattern.
8482 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
8483 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
8484 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
8485 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
8486 Remove definitions of built-in functions.
8487 (V1DI_type_node): New node.
8488 (v1di_ftype_v1di_int): Ditto.
8489 (v1di_ftype_v1di_v1di): Ditto.
8490 (v2si_ftype_v2si_si): Ditto.
8491 (v4hi_ftype_v4hi_di): Remove node.
8492 (v2si_ftype_v2si_di): Ditto.
8493 (ix86_init_mmx_sse_builtins): Handle V1DImode.
8494 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
8495 Redefine builtins using def_builtin_const with *_ftype_*_int node.
8496 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
8497 Add new builtins using def_builtin_const.
8498 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
8499 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
8500 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
8501 * config/i386/mmintrin.h (__v1di): New typedef.
8502 (_mm_add_si64): Cast arguments to __v1di type.
8503 (_mm_sub_si64): Ditto.
8504 (_mm_sll_pi16): Cast __count to __v4hi type.
8505 (_mm_sll_pi32): Cast __count to __v2si type.
8506 (_mm_sll_si64): Cast arguments to __v1di type.
8507 (_mm_srl_pi16): Cast __count to __v4hi type.
8508 (_mm_srl_pi32): Cast __count to __v2si type.
8509 (_mm_srl_si64): Cast arguments to __v1di type.
8510 (_mm_sra_pi16): Cast __count to __v4hi type.
8511 (_mm_sra_pi32): Cast __count to __v2si type.
8512 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
8513 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
8514 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
8515 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
8516 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
8517 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
8518 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
8519 (_mm_srai_pi32): Use __builtin_ia32_psradi.
8520 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
8521 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8522 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8523 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
8525 2008-03-07 Joseph Myers <joseph@codesourcery.com>
8527 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
8529 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
8532 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
8533 reg+const addressing for Altivec modes. Don't generate reg+reg
8534 addressing for TFmode or TDmode quantities.
8536 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
8538 * c-common.c (vector_types_convertible_p): Call langhook
8539 instead of comptypes.
8541 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
8544 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
8545 integral and scalar float variables which have a
8548 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
8550 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
8551 dwarf_register_span hook when emitting unwind information for
8552 register-to-memory saves.
8553 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
8554 (rs6000_frame_related): Remove call to spe_synthesize_frame.
8556 2008-03-06 Jakub Jelinek <jakub@redhat.com>
8558 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
8559 for the same VAR_DECL.
8561 2008-03-06 Tom Tromey <tromey@redhat.com>
8564 * doc/standards.texi (Standards): Don't mention treelang.
8565 * doc/invoke.texi (Overall Options): Don't mention treelang.
8566 * doc/install.texi (Prerequisites): Don't mention bison or
8568 (Configuration): Don't mention treelang.
8569 (Building): Likewise.
8570 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
8572 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
8574 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
8575 word-extractions out of a multi-word object.
8577 2008-03-06 Richard Guenther <rguenther@suse.de>
8579 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
8580 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
8581 result type and precision.
8582 * expr.c (get_inner_reference): Set unsignedp based on the result
8583 type of BIT_FIELD_REF.
8584 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
8585 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
8586 (try_instantiate_multiple_fields): Likewise. Use the correct type
8588 (sra_build_assignment): Likewise.
8589 (sra_build_elt_assignment): Likewise.
8590 (sra_explode_bitfield_assignment): Likewise.
8591 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
8592 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
8593 set BIT_FIELD_REF_UNSIGNED.
8594 (vectorizable_load): Likewise.
8596 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
8598 * cse.c (cse_extended_basic_block): Invalidate artificial defs
8601 2008-03-06 Richard Guenther <rguenther@suse.de>
8603 * alias.c (struct alias_set_entry): Move has_zero_child field
8604 to pack with alias_set.
8606 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
8608 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8611 2008-03-05 Ian Lance Taylor <iant@google.com>
8613 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
8615 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
8617 * fwprop.c (update_df): Support width and offset parameters of
8619 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
8620 global_conflicts): Change DF_REF_EXTRACT to either
8621 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
8622 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8623 * df-scan.c (df_ref_record, df_defs_record,
8624 df_ref_create_structure, df_def_record_1, df_uses_record,
8625 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
8626 df_bb_refs_collect, df_entry_block_defs_collect,
8627 df_exit_block_uses_collect): Support new width and offset fields.
8628 (ref_extract_pool): New storage pool.
8629 (df_free_ref): New function.
8630 (df_reg_chain_unlink, df_free_collection_rec,
8631 df_sort_and_compress_refs): Call df_free_ref.
8632 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
8634 (df_ref_create_structure): Allocate df_ref_extract if offset and
8635 width fields are used.
8636 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
8637 (df_uses_record): Get offset and width from ZERO_EXTRACT
8639 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
8640 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
8641 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8642 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
8643 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
8644 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8645 (df_ref_extract): New structure.
8646 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
8647 (df_ref_create): Add width and offset parameters.
8649 2008-03-05 Richard Guenther <rguenther@suse.de>
8651 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8652 Use ranges_overlap_p.
8653 (offset_overlaps_with_access): Rename
8654 to ranges_overlap_p and move ...
8655 * tree-flow-inline.h (ranges_overlap_p): ... here.
8657 * tree.h (get_inner_reference, handled_component_p): Update
8660 * tree.h (record_component_aliases, get_alias_set,
8661 alias_sets_conflict_p, alias_sets_must_conflict_p,
8662 objects_must_conflict_p): Move declarations ...
8663 * alias.h (record_component_aliases, get_alias_set,
8664 alias_sets_conflict_p, alias_sets_must_conflict_p,
8665 objects_must_conflict_p): ... here.
8666 Include coretypes.h.
8667 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
8669 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
8671 * cfg.c: Include tree-flow.h.
8672 (remove_edge_raw): Call redirect_edge_var_map_clear.
8673 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
8674 * tree-flow-inline.h (redirect_edge_var_map_def): New.
8675 (redirect_edge_var_map_result): New.
8676 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
8677 PENDING_STMT use with redirect_edge_var_map_*.
8678 * tree-ssa.c (edge_var_maps): New definition.
8679 (redirect_edge_var_map_add): New.
8680 (redirect_edge_var_map_clear): New.
8681 (redirect_edge_var_map_dup): New.
8682 (redirect_edge_var_map_vector): New.
8683 (redirect_edge_var_map_destroy): New.
8684 (ssa_redirect_edge): Replace PENDING_STMT use with
8685 redirect_edge_var_map_*.
8686 (flush_pending_stmts): Same.
8687 (delete_tree_ssa): Destroy edge var map.
8688 * tree-flow.h (struct _edge_var_map): New.
8689 Define edge_var_map vector type.
8690 Declare redirect_edge_var_map_* prototypes.
8691 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
8692 * tree-cfg.c (reinstall_phi_args): Replace
8693 PENDING_STMT use with redirect_edge_var_map_*.
8695 2008-03-05 Richard Guenther <rguenther@suse.de>
8697 PR tree-optimization/35472
8698 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
8699 whose single use_stmt has a overlapping set of loaded and
8700 stored symbols as that use_stmt might be a noop assignment then.
8702 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
8704 * gthr-rtems.h: Implement __gthread_mutex_destroy.
8706 2008-03-05 Richard Guenther <rguenther@suse.de>
8709 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
8710 should be constants.
8711 * tree-cfg.c (verify_expr): Verify it.
8712 * fold-const.c (fold_truthop): Remove code generating
8713 BIT_FIELD_REFs of structure bases.
8714 (fold_binary): Likewise.
8715 (fold_ternary): Position and size of BIT_FIELD_REFs are
8716 always host integers.
8717 (make_bit_field_ref): Remove.
8718 (optimize_bit_field_compare): Remove.
8719 (all_ones_mask_p): Remove.
8721 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
8724 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
8725 (split_block_and_df_analyze): New. Split basic block and rebuild
8727 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
8729 (split_pattern_seq): Likewise.
8730 (erase_matching_seqs): Likewise.
8731 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
8733 2008-03-04 Geoff Keating <geoffk@apple.com>
8735 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
8736 declaration and code.
8737 (tree_invalid_nonnegative_warnv_p): Likewise.
8739 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8741 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
8742 examples. Truncate option-names then causing overfull hbox.
8744 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8747 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
8749 * configure: Rebuilt.
8751 2008-03-04 Rafael Espindola <espindola@google.com>
8753 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
8754 (tree_unary_nonnegative_warnv_p): New.
8755 (tree_binary_nonnegative_warnv_p): New.
8756 (tree_single_nonnegative_warnv_p): New.
8757 (tree_invalid_nonnegative_warnv_p): New.
8758 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
8760 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8763 * opts.c (handle_option): Postpone 'unknown option' errors only for
8766 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
8769 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
8772 2008-03-04 Rafael Espindola <espindola@google.com>
8774 * fold-const.c (tree_unary_nonzero_warnv_p): New.
8775 (tree_binary_nonzero_warnv_p): New.
8776 (tree_single_nonzero_warnv_p): New.
8777 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
8779 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
8782 * fold-const.c (fold_cond_expr_with_comparison): Prevent
8783 transformations for modes that have signed zeros.
8784 * ifcvt.c (noce_try_abs): Ditto.
8786 2008-03-04 Joseph Myers <joseph@codesourcery.com>
8788 * config/i386/i386.c (override_options): Force
8789 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
8791 2008-03-04 Jan Hubicka <jh@suse.cz>
8794 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
8797 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
8799 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
8800 label to probe the stack.
8802 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
8804 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
8805 (__gthr_win32_mutex_destroy): Declare.
8806 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
8807 __gthr_win32_mutex_destroy.
8808 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
8810 2008-03-03 Jan Hubicka <jh@suse.cz>
8813 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
8814 aggressive on inlining cold calls.
8816 2008-03-03 Richard Guenther <rguenther@suse.de>
8818 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
8819 struct copies into the expression table.
8820 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
8821 (try_to_simplify): Likewise.
8822 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
8823 integral and pointer arguments which do not change the
8824 precision to NOP_EXPRs.
8825 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
8826 VIEW_CONVERT_EXPR case.
8828 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
8830 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
8831 defined in a loop at depth 0 is invariant.
8832 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
8833 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
8834 be called at loop depth 0.
8836 2008-03-02 Jakub Jelinek <jakub@redhat.com>
8839 * gcc.c (process_command): Update copyright notice dates.
8840 * gcov.c (print_version): Likewise.
8841 * gcov-dump.c (print_version): Likewise.
8842 * mips-tfile.c (main): Likewise.
8843 * mips-tdump.c (main): Likewise.
8845 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8848 * c-common.c (flag_permissive): Delete.
8849 (constant_expression_warnings): Check flags first.
8850 (constant_expression_error): New.
8851 * c-common.h (flag_permissive): Delete.
8852 (constant_expression_error): Declare.
8853 * flags.h (flag_permissive): Declare. Update description.
8854 * diagnostic.c (pedwarn): Update.
8856 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
8857 (permissive_error_kind): New.
8858 * toplev.c (flag_permissive): Define. Update description.
8859 * toplev.h (permissive_error_kind): Declare.
8860 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
8861 (pedwarn_c90): Use pedantic_warning_kind.
8862 * c-opts.c (c_common_post_options): flag_permissive does not affect
8863 flag_pedantic_errors.
8865 2008-03-02 Joseph Myers <joseph@codesourcery.com>
8867 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
8868 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
8869 __absvsi2, __absvDI2): Use unsigned arithmetic.
8871 2008-03-02 Andi Kleen <ak@suse.de>
8872 Richard Guenther <rguenther@suse.de>
8874 * struct-equiv.c: Remove file.
8875 * cfg_cleanup.c (condjump_equiv_p): Remove.
8876 * Makefile.in (OBJS-common): Remove struct-equiv.o.
8877 (struct-equiv.o): Remove rule.
8878 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
8879 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
8880 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
8882 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
8884 * ifcvt.c (noce_process_if_block): Try to handle only the then
8885 block if the else block exists but isn't suitable.
8887 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
8890 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
8891 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
8892 regression from previous patch.
8894 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
8897 * gthr.h: Add __gthread_mutex_destroy as a function that must be
8899 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
8900 * gthr-single.h (__gthread_mutex_destroy): Likewise.
8901 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
8902 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
8903 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
8904 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
8905 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
8906 (__gthread_mutex_destroy_function): Rename to
8907 __gthread_mutex_destroy.
8908 * gthr-dce.h (__gthread_mutex_destroy): Call
8909 pthread_mutex_destroy.
8910 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
8911 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
8912 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
8914 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
8916 * df-scan.c (df_ref_chain_change_bb): Simplify.
8917 (df_insn_change_bb): Add new_bb argument. Simplify. Call
8918 set_block_for_insn if there's any change.
8919 * df.h ((df_insn_change_bb): Fix prototype.
8920 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
8921 df_insn_change_bb, don't call set_block_for_insn.
8922 * emit-rtl.c (reorder_insns): Likewise.
8923 * haifa-sched.c (move_insn): Likewise.
8925 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
8927 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
8929 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
8931 * tree-flow-inline.h (next_readonly_imm_use): Return
8932 NULL_USE_OPERAND_P after the end.
8934 2008-03-01 Richard Guenther <rguenther@suse.de>
8936 PR tree-optimization/35411
8937 * tree-sra.c (sra_build_assignment): Split conversion to
8938 final type to a separate statement if we are not assigning
8941 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
8943 * fold-const.c (fold_convertible_p): Correct the logic to follow
8944 that in fold_convert().
8946 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
8949 * tree-inline.c (build_duplicate_type): When we make a
8950 duplicate type, make it unique in the canonical types system.
8952 2008-02-29 Tom Tromey <tromey@redhat.com>
8954 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
8955 input_file_stack_history, input_file_stack_restored): Remove.
8956 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
8957 * input.h (struct file_stack): Remove.
8958 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
8959 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
8961 * diagnostic.h (struct diagnostic_context) <last_module>: Change
8963 (diagnostic_last_module_changed): Add 'map' argument.
8964 (diagnostic_set_last_function): Likewise.
8965 * diagnostic.c (undiagnostic_report_current_module): Iterate using
8966 line map, not input_file_stack.
8967 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
8969 2008-02-29 Paul Brook <paul@codesourcery.com>
8971 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
8973 2008-02-29 Paul Brook <paul@codesourcery.com>
8975 * config/arm/ieee754-df.S (muldf3): Use RET macros.
8977 2008-02-29 Richard Guenther <rguenther@suse.de>
8979 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
8981 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
8982 value for comparing for a store match.
8983 (simplify_unary_expression): Do nothing for SSA_NAMEs.
8984 (try_to_simplify): Do not do a full-blown reference lookup.
8986 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
8988 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
8989 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
8991 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
8993 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
8995 * tree-loop-linear.c (try_interchange_loops): Compare memory access
8996 strides against cache sizes.
8998 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
9000 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
9003 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
9005 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
9006 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
9007 is smaller than the original promoted value.
9008 (simplify_subreg): If OP is a SUBREG, try to preserve its
9009 SUBREG_PROMOTED_VAR_P information.
9011 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
9013 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
9014 (VN_INFO_GET): Allocate new objects on the obstack.
9015 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
9016 for rpo_numbers_temp, for consistency.
9017 (free_scc_vn): Free the obstack.
9019 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
9021 * doc/invoke.texi: Document -ftree-loop-distribution.
9022 * tree-loop-distribution.c: New.
9023 * tree-pass.h (pass_loop_distribution): New.
9024 * graphds.h (struct graph): Add htab_t indices.
9025 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
9026 * tree-vectorizer.c (rename_variables_in_loop): Extern.
9027 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
9028 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
9029 * tree-data-ref.c (debug_data_dependence_relations): New.
9030 (dump_data_dependence_relation): Also print data references.
9031 (free_data_ref): Extern.
9032 (same_access_functions): Moved...
9033 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
9034 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9035 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
9036 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
9037 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
9038 (stmts_from_loop): Skip LABEL_EXPR.
9039 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
9041 (build_rdg): Initialize rdg->indices htab.
9042 (free_rdg, stores_from_loop, ref_base_address,
9043 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
9044 have_similar_memory_accesses_1, ref_base_address_1,
9045 remove_similar_memory_refs): New.
9046 * tree-data-ref.h: Depend on tree-chrec.h.
9047 (debug_data_dependence_relations, free_data_ref): Declared.
9048 (same_access_functions): ... here.
9049 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
9051 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
9052 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
9053 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
9054 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9055 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
9056 rdg_vertex_for_stmt): Declared.
9057 (struct rdg_edge): Add level.
9059 (free_rdg, stores_from_loop, remove_similar_memory_refs,
9060 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
9062 (rdg_has_similar_memory_accesses): New.
9063 * tree-vect-analyze.c: Remove unused static decls.
9064 * lambda.h (dependence_level): New.
9065 * common.opt (ftree-loop-distribution): New.
9066 * tree-flow.h (mark_virtual_ops_in_bb,
9067 slpeel_tree_duplicate_loop_to_edge_cfg,
9068 rename_variables_in_loop): Declared.
9069 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
9070 (OBJS-common): Add tree-loop-distribution.o.
9071 (tree-loop-distribution.o): New rule.
9072 * tree-cfg.c (mark_virtual_ops_in_bb): New.
9073 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
9074 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
9076 2008-02-28 Joseph Myers <joseph@codesourcery.com>
9079 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
9080 other than structures and unions.
9082 2008-02-28 Richard Guenther <rguenther@suse.de>
9085 2008-02-26 Richard Guenther <rguenther@suse.de>
9087 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9088 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9089 (lookup_decl_from_uid): Declare.
9090 (remove_decl_from_map): Likewise.
9091 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9092 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9093 (decl_for_uid_map): New global hashtable mapping DECL_UID
9095 (init_ttree): Allocate it.
9096 (insert_decl_to_uid_decl_map): New helper function.
9097 (make_node_stat): Insert new decls into the map.
9098 (copy_node_stat): Likewise.
9099 (lookup_decl_from_uid): New function.
9100 (remove_decl_from_map): Likewise.
9101 (print_decl_for_uid_map_statistics): New helper.
9102 (dump_tree_statistics): Call it.
9104 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9105 (referenced_var_iterator): Adjust.
9106 (FOR_EACH_REFERENCED_VAR): Adjust.
9107 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9108 (num_referenced_vars): Adjust.
9109 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9110 (first_referenced_var): Remove.
9111 (end_referenced_vars_p): Likewise.
9112 (next_referenced_var): Likewise.
9113 (referenced_var_iterator_set): New helper function.
9114 * tree-dfa.c (referenced_var_lookup): Adjust.
9115 (referenced_var_check_and_insert): Likewise.
9116 (remove_referenced_var): Likewise.
9117 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9118 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9119 (verify_call_clobbering): Likewise.
9120 (verify_memory_partitions): Likewise.
9121 (init_tree_ssa): Allocate bitmap instead of hashtable for
9123 (delete_tree_ssa): Adjust.
9124 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9125 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9126 (compute_tag_properties): Likewise.
9127 (set_initial_properties): Likewise.
9128 (find_partition_for): Likewise.
9129 (update_reference_counts): Likewise.
9130 (dump_may_aliases_for): Likewise.
9131 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9132 (add_call_clobber_ops): Likewise.
9133 (add_call_read_ops): Likewise.
9134 (get_asm_expr_operands): Likewise.
9135 * tree-into-ssa.c (dump_decl_set): Likewise.
9136 (update_ssa): Likewise.
9137 * tree-sra.c (scan_function): Likewise.
9138 (decide_instantiations): Likewise.
9139 (scalarize_parms): Likewise.
9140 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9141 (dsa_named_for): Likewise.
9142 * tree-ssa-structalias.c (update_alias_info): Likewise.
9143 (merge_smts_into): Likewise.
9145 2008-02-27 David Daney <ddaney@avtrex.com>
9148 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
9149 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
9150 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
9151 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
9152 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
9154 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
9157 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
9158 (BUILT_IN_NEXTTOWARD): Remove.
9159 (BUILT_IN_NEXTTOWARDF): Ditto.
9160 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
9161 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
9163 2008-02-27 Tom Tromey <tromey@redhat.com>
9165 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
9166 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
9168 2008-02-27 Jan Beulich <jbeulich@novell.com>
9170 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
9171 update the respective field on newdecl.
9173 2008-02-27 Revital Eres <eres@il.ibm.com>
9175 PR rtl-optimization/34999
9176 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
9177 crossing edges that ends with a call insn.
9178 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
9179 call insn and clear the EDGE_CROSSING flag of the crossing edge
9180 when fixing fallthru edges.
9182 2008-02-27 Richard Guenther <rguenther@suse.de>
9185 * fold-const.c (fold_unary): Return the correct argument,
9186 converted to the result type.
9188 2008-02-27 Richard Guenther <rguenther@suse.de>
9191 * expr.c (expand_expr_real_1): Assert on rotates that operate
9193 * fold-const.c (fold_binary): Use the types precision, not the
9194 bitsize of the mode if folding rotate expressions. Build rotates
9195 only for full modes.
9197 2008-02-27 Jakub Jelinek <jakub@redhat.com>
9199 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
9201 * c-pragma.c (pragma_ns_name): New typedef.
9202 (registered_pp_pragmas): New variable.
9203 (c_pp_lookup_pragma): New function.
9204 (c_register_pragma_1): If flag_preprocess_only, do nothing
9205 for non-expanded pragmas, for expanded ones push pragma's
9206 namespace and name into registered_pp_pragmas vector.
9207 (c_invoke_pragma_handler): Register OpenMP pragmas even when
9208 flag_preprocess_only, don't register GCC pch_preprocess
9209 pragma if flag_preprocess_only.
9210 * c-opts.c (c_common_init): Call init_pragma even if
9211 flag_preprocess_only.
9212 * c-pragma.c (c_pp_lookup_pragma): New prototype.
9213 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
9214 cpp_register_pragma if flag_preprocess_only.
9216 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9219 * c-parser.c (c_parser_translation_unit): Warn for empty
9220 translation unit, not empty source file.
9222 2008-02-26 Paul Brook <paul@codesourcery.com>
9224 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
9225 operand for Thumb-2.
9226 * config/arm/arm.h (reg_class): Add CORE_REGS.
9227 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
9228 (BASE_REG_CLASS): Use CORE_REGS.
9229 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
9230 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
9231 (REGNO_OK_FOR_INDEX_P): Exclude SP.
9232 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
9233 ARM_REGNO_OK_FOR_INDEX_P.
9234 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
9235 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
9236 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
9237 (ldm/stm peepholes): Ditto.
9238 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
9239 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
9240 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
9241 * config/arm/constraints.md: Enable "k" constraint on ARM.
9243 2008-02-27 Ben Elliston <bje@au.ibm.com>
9245 * config/rs6000/rs6000.c: Annotate cache line size field in all
9246 instances of struct processor_costs.
9248 2008-02-26 David Edelsohn <edelsohn@gnu.org>
9250 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
9251 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
9252 jump_bypass): New counters.
9253 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
9254 * dce.c (gate_ud_dce): Same.
9255 (gate_fast_dce): Same.
9256 * dse.c (gate_dse1): New function.
9257 (gate_dse2): New function.
9258 (gate_dse): Merge results of new gate functions.
9259 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
9260 (gate_handle_jump_bypass): Add dbg_cnt.
9261 (gate_handle_gcse): Add dbg_cnt.
9262 * ifcvt.c (gate_handle_if_conversion): Same.
9263 (gate_handle_if_after_combine): Same.
9264 (gate_handle_if_after_reload): Same.
9265 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
9267 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
9269 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
9271 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
9273 2008-02-26 Jason Merrill <jason@redhat.com>
9276 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
9277 alone if it's the naming decl for the type's main variant.
9279 2008-02-26 Tom Tromey <tromey@redhat.com>
9281 * system.h (USE_MAPPED_LOCATION): Poison.
9282 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
9283 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
9284 (make_goto_expr_edges): Likewise.
9285 (remove_bb): Likewise.
9286 (execute_warn_function_return): Likewise.
9287 * basic-block.h (struct edge_def) <goto_locus>: Change type to
9289 * c-common.c (fname_decl): Remove old location code.
9290 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
9292 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
9294 (ASM_INPUT_SOURCE_LOCATION): Likewise.
9295 (gen_rtx_ASM_INPUT): Likewise.
9296 (gen_rtx_ASM_INPUT_loc): Likewise.
9297 (get_rtx_asm_OPERANDS): Remove.
9298 * cfglayout.c (insn_locators_alloc): Remove old location code.
9299 (set_curr_insn_source_location): Likewise.
9300 (curr_insn_locator): Likewise.
9301 * print-tree.c (print_node): Remove old location code.
9302 * tree-mudflap.c (mf_varname_tree): Remove old location code.
9303 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
9304 * cfgexpand.c (expand_gimple_cond_expr): Don't use
9305 location_from_locus.
9306 (construct_exit_block): Remove old location code.
9307 * emit-rtl.c (force_next_line_note): Remove old location code.
9308 * profile.c (branch_prob): Remove old location code.
9309 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
9310 LOC_LINE): Remove old-location variants.
9311 * langhooks.c (lhd_print_error_function): Remove old location
9313 * configure, config.in: Rebuilt.
9314 * configure.ac (--enable-mapped-location): Remove.
9315 * c-decl.c (c_init_decl_processing): Remove old location code.
9316 (finish_function): Likewise.
9317 * recog.c (decode_asm_operands): Remove old location code.
9318 * c-pch.c (c_common_read_pch): Remove old location code.
9319 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
9321 * gimple-low.c (lower_function_body): Remove old location code.
9322 * toplev.c (unknown_location): Remove.
9323 (push_srcloc): Remove old-location variant.
9324 (process_options): Remove old location code.
9325 (lang_dependent_init): Likewise.
9326 * input.h (UNKNOWN_LOCATION): Move definition.
9327 (location_t): Undeprecate.
9328 (source_locus): Remove.
9329 (location_from_locus): Remove.
9330 (struct location_s): Remove.
9331 Remove all old-location code.
9332 (input_line, input_filename): Remove.
9333 * final.c (final_scan_insn): Remove old location code.
9334 * diagnostic.c (diagnostic_build_prefix): Remove
9335 USE_MAPPED_LOCATION test.
9336 * tree.h (gimple_stmt) <locus>: Now a location_t.
9337 (tree_exp) <locus>: Likewise.
9338 (DECL_IS_BUILTIN): Remove old-location variant.
9339 (annotate_with_file_line, annotate_with_locus): Likewise.
9340 (expr_locus, set_expr_locus): Update.
9341 * tree.c (build1_stat): Remove old location code.
9342 (last_annotated_node): Remove.
9343 (annotate_with_file_line): Remove old-location variant.
9344 (annotate_with_locus): Likewise.
9345 (expr_location): Remove old location code.
9346 (set_expr_location): Likewise.
9347 (expr_has_location): Likewise.
9348 (expr_locus): Likewise.
9349 (set_expr_locus): Likewise.
9350 (expr_filename): Don't use location_from_locus.
9351 (expr_lineno): Likewise.
9352 * rtl-error.c (location_for_asm): Remove old location code.
9353 * c-lex.c (cb_line_change): Remove old location code.
9354 (fe_file_change): Likewise.
9355 (cb_def_pragma): Likewise.
9356 (c_lex_with_flags): Likewise.
9357 * gengtype.c (do_typedef): Don't special-case location types.
9358 (define_location_structures): Remove.
9359 (main): Don't call define_location_structures.
9360 * tree-pretty-print.c (dump_implicit_edges): Remove old location
9363 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9366 * builtins.def (BUILT_IN_STDARG_START): Remove.
9367 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
9368 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9369 * tree-inline.c (inline_forbidden_p_1): Likewise.
9371 2008-02-26 Richard Guenther <rguenther@suse.de>
9373 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9374 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9375 (lookup_decl_from_uid): Declare.
9376 (remove_decl_from_map): Likewise.
9377 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9378 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9379 (decl_for_uid_map): New global hashtable mapping DECL_UID
9381 (init_ttree): Allocate it.
9382 (insert_decl_to_uid_decl_map): New helper function.
9383 (make_node_stat): Insert new decls into the map.
9384 (copy_node_stat): Likewise.
9385 (lookup_decl_from_uid): New function.
9386 (remove_decl_from_map): Likewise.
9387 (print_decl_for_uid_map_statistics): New helper.
9388 (dump_tree_statistics): Call it.
9390 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9391 (referenced_var_iterator): Adjust.
9392 (FOR_EACH_REFERENCED_VAR): Adjust.
9393 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9394 (num_referenced_vars): Adjust.
9395 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9396 (first_referenced_var): Remove.
9397 (end_referenced_vars_p): Likewise.
9398 (next_referenced_var): Likewise.
9399 (referenced_var_iterator_set): New helper function.
9400 * tree-dfa.c (referenced_var_lookup): Adjust.
9401 (referenced_var_check_and_insert): Likewise.
9402 (remove_referenced_var): Likewise.
9403 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9404 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9405 (verify_call_clobbering): Likewise.
9406 (verify_memory_partitions): Likewise.
9407 (init_tree_ssa): Allocate bitmap instead of hashtable for
9409 (delete_tree_ssa): Adjust.
9410 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9411 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9412 (compute_tag_properties): Likewise.
9413 (set_initial_properties): Likewise.
9414 (find_partition_for): Likewise.
9415 (update_reference_counts): Likewise.
9416 (dump_may_aliases_for): Likewise.
9417 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9418 (add_call_clobber_ops): Likewise.
9419 (add_call_read_ops): Likewise.
9420 (get_asm_expr_operands): Likewise.
9421 * tree-into-ssa.c (dump_decl_set): Likewise.
9422 (update_ssa): Likewise.
9423 * tree-sra.c (scan_function): Likewise.
9424 (decide_instantiations): Likewise.
9425 (scalarize_parms): Likewise.
9426 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9427 (dsa_named_for): Likewise.
9428 * tree-ssa-structalias.c (update_alias_info): Likewise.
9429 (merge_smts_into): Likewise.
9431 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9434 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
9435 * c-opts.c (c_common_handle_option): Wall enables
9436 Wvolatile-register-var.
9437 * common.opt: Move Wvolatile-register-var to...
9440 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9442 * common.opt (Wlarger-than=): New.
9443 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
9445 * opts.c (common_handle_option): Handle -Wlarger-than=.
9446 * optc-gen.awk: Likewise.
9447 * opth-gen.awk: Likewise.
9448 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
9449 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9451 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9453 * c-common.c (match_case_to_enum_1): Add appropriate
9454 OPT_W* parameter to warning.
9455 (c_do_switch_warnings): Likewise.
9456 * c-typeck.c (warning_init): Add one more parameter following
9458 (push_init_level): Update call to warning_init.
9459 (pop_init_level): Likewise.
9460 (add_pending_init): Likewise.
9461 (output_init_element: Likewise.
9463 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9466 * toplev.c (toplev_main): If there are warnings or error, print
9467 errors for ignored options.
9468 * opts.c (ignored_options): New static variable.
9469 (postpone_unknown_option_error): New.
9470 (print_ignored_options): New.
9471 (handle_option): Postpone errors for unknown -Wno-* options.
9472 * opts.h (print_ignored_options): Declare.
9474 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
9476 * config/mips/mips.md (loadgp_blockage, blockage): Change type
9479 2008-02-25 Richard Guenther <rguenther@suse.de>
9482 2008-02-25 Richard Guenther <rguenther@suse.de>
9484 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9485 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9486 (lookup_decl_from_uid): Declare.
9487 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9488 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9489 (decl_for_uid_map): New global hashtable mapping DECL_UID
9491 (init_ttree): Allocate it.
9492 (insert_decl_to_uid_decl_map): New helper function.
9493 (make_node_stat): Insert new decls into the map.
9494 (copy_node_stat): Likewise.
9495 (lookup_decl_from_uid): New function.
9496 (print_decl_for_uid_map_statistics): New helper.
9497 (dump_tree_statistics): Call it.
9499 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9500 (referenced_var_iterator): Adjust.
9501 (FOR_EACH_REFERENCED_VAR): Adjust.
9502 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9503 (num_referenced_vars): Adjust.
9504 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9505 (first_referenced_var): Remove.
9506 (end_referenced_vars_p): Likewise.
9507 (next_referenced_var): Likewise.
9508 (referenced_var_iterator_set): New helper function.
9509 * tree-dfa.c (referenced_var_lookup): Adjust.
9510 (referenced_var_check_and_insert): Likewise.
9511 (remove_referenced_var): Likewise.
9512 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9513 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9514 (verify_call_clobbering): Likewise.
9515 (verify_memory_partitions): Likewise.
9516 (init_tree_ssa): Allocate bitmap instead of hashtable for
9518 (delete_tree_ssa): Adjust.
9519 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9520 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9521 (compute_tag_properties): Likewise.
9522 (set_initial_properties): Likewise.
9523 (find_partition_for): Likewise.
9524 (update_reference_counts): Likewise.
9525 (dump_may_aliases_for): Likewise.
9526 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9527 (add_call_clobber_ops): Likewise.
9528 (add_call_read_ops): Likewise.
9529 (get_asm_expr_operands): Likewise.
9530 * tree-into-ssa.c (dump_decl_set): Likewise.
9531 (update_ssa): Likewise.
9532 * tree-sra.c (scan_function): Likewise.
9533 (decide_instantiations): Likewise.
9534 (scalarize_parms): Likewise.
9535 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9536 (dsa_named_for): Likewise.
9537 * tree-ssa-structalias.c (update_alias_info): Likewise.
9538 (merge_smts_into): Likewise.
9540 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
9543 * doc/invoke.texi (-fcx-limited-range): Document new option.
9544 * toplev.c (process_options): Handle -fcx-fortran-rules.
9545 * common.opt: Add documentation for -fcx-fortran-rules.
9547 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
9550 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
9551 actual behaviour and C99.
9553 2008-02-26 Ben Elliston <bje@au.ibm.com>
9555 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
9556 (ASM_CPU_POWER6_SPEC): Likewise.
9557 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
9558 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
9559 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
9561 2008-02-25 Richard Guenther <rguenther@suse.de>
9563 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9564 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9565 (lookup_decl_from_uid): Declare.
9566 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9567 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9568 (decl_for_uid_map): New global hashtable mapping DECL_UID
9570 (init_ttree): Allocate it.
9571 (insert_decl_to_uid_decl_map): New helper function.
9572 (make_node_stat): Insert new decls into the map.
9573 (copy_node_stat): Likewise.
9574 (lookup_decl_from_uid): New function.
9575 (print_decl_for_uid_map_statistics): New helper.
9576 (dump_tree_statistics): Call it.
9578 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9579 (referenced_var_iterator): Adjust.
9580 (FOR_EACH_REFERENCED_VAR): Adjust.
9581 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9582 (num_referenced_vars): Adjust.
9583 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9584 (first_referenced_var): Remove.
9585 (end_referenced_vars_p): Likewise.
9586 (next_referenced_var): Likewise.
9587 (referenced_var_iterator_set): New helper function.
9588 * tree-dfa.c (referenced_var_lookup): Adjust.
9589 (referenced_var_check_and_insert): Likewise.
9590 (remove_referenced_var): Likewise.
9591 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9592 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9593 (verify_call_clobbering): Likewise.
9594 (verify_memory_partitions): Likewise.
9595 (init_tree_ssa): Allocate bitmap instead of hashtable for
9597 (delete_tree_ssa): Adjust.
9598 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9599 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9600 (compute_tag_properties): Likewise.
9601 (set_initial_properties): Likewise.
9602 (find_partition_for): Likewise.
9603 (update_reference_counts): Likewise.
9604 (dump_may_aliases_for): Likewise.
9605 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9606 (add_call_clobber_ops): Likewise.
9607 (add_call_read_ops): Likewise.
9608 (get_asm_expr_operands): Likewise.
9609 * tree-into-ssa.c (dump_decl_set): Likewise.
9610 (update_ssa): Likewise.
9611 * tree-sra.c (scan_function): Likewise.
9612 (decide_instantiations): Likewise.
9613 (scalarize_parms): Likewise.
9614 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9615 (dsa_named_for): Likewise.
9616 * tree-ssa-structalias.c (update_alias_info): Likewise.
9617 (merge_smts_into): Likewise.
9619 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
9622 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
9623 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
9624 * alias.h (nonoverlapping_memrefs_p): Likewise.
9626 2008-02-25 Jan Beulich <jbeulich@novell.com>
9628 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
9629 * config/i386/netware-libgcc.exp: Add __bswap?i2,
9630 __emultls_get_address, __emultls_register_common,
9631 __floatundi?f, and _Unwind_GetIPInfo.
9632 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
9633 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
9634 (gen_regparm_prefix): Likewise.
9635 (i386_nlm_encode_section_info): Sync with
9636 config/i386/winnt.c:i386_pe_encode_section_info().
9637 (i386_nlm_maybe_mangle_decl_assembler_name): New.
9638 i386_nlm_mangle_decl_assembler_name): New.
9639 (netware_override_options): New.
9640 * config/i386/netware.h (netware_override_options): Declare.
9641 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
9642 (i386_nlm_mangle_decl_assembler_name): Declare.
9643 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
9645 2008-02-25 Ben Elliston <bje@au.ibm.com>
9648 * c-decl.c (grokdeclarator): Remove unused local variables
9649 `typedef_type' and `type_as_written'.
9651 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
9652 unused local variable `has_hot_blocks'.
9653 (fix_crossing_conditional_branches): Remove unused local variable
9656 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
9659 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
9660 using DEF_C99_BUILTIN.
9661 (BUILT_IN_NANF): Ditto.
9662 (BUILT_IN_NANL): Ditto.
9664 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
9665 Revital Eres <eres@il.ibm.com>
9667 * modulo-sched.c (calculate_must_precede_follow): Address TODO
9668 regarding the order of two dependent insns in the same row.
9670 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
9672 * stor-layout.c (layout_decl): Do not bump the alignment of a
9673 bit-field to more than byte alignment if it is packed.
9675 2008-02-24 David Edelsohn <edelsohn@gnu.org>
9677 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
9680 2008-02-24 Diego Novillo <dnovillo@google.com>
9682 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
9685 * tree-vrp.c (vrp_evaluate_conditional): With
9686 -Wtype-limits, emit a warning when comparing against a
9687 constant outside the natural range of OP0's type.
9688 * c.opt (Wtype-limits): Move ...
9689 * common.opt (Wtype-limits): ... here.
9691 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
9693 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
9694 * config/rs6000/e300c2c3.md: New file.
9695 * config/rs6000/rs6000.c (processor_costs): Add new costs for
9697 (rs6000_override_options): Add e300c2 and e300c3 cases to
9698 processor_target_table. Do not allow usage of Altivec or Spe
9699 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
9700 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
9701 * config/rs6000/rs6000.h (processor_type): Add
9702 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
9703 (ASM_CPU_SPEC): Add e300c2 and e300c3.
9704 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
9705 and ppce300c3. Include e300c2c3.md.
9707 2008-02-23 David Edelsohn <edelsohn@gnu.org>
9709 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
9710 instead of TARGET_STRICT_ALIGN.
9712 2008-02-23 Joseph Myers <joseph@codesourcery.com>
9714 * explow.c (memory_address): Assert that the generated address is
9717 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9720 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
9721 * config/darwin-ppc-ldouble-patch.def: New file.
9722 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
9723 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
9724 SUBTARGET_INIT_BUILTINS if defined.
9725 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
9728 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
9731 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
9732 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
9734 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
9737 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
9738 file" warning condtional on -Winvalid-PCH.
9740 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
9742 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
9744 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
9748 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
9749 prevent reload from using MMX registers.
9750 (*mov<mode>_internal): Ditto.
9751 (*movv2sf_internal_rex64): Ditto.
9752 (*movv2sf_internal): Ditto.
9754 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9756 PR documentation/31569
9757 * doc/install.texi2html: Use makeinfo --no-number-sections.
9759 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
9761 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
9762 ensure that we can address an entire entity > 8 bytes. Don't
9763 generate reg+reg addressing for such data.
9765 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
9767 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
9768 strings when optimizing for size, unless the target cares about
9771 2008-02-22 Tom Tromey <tromey@redhat.com>
9773 * regclass.c (current_pass): Remove declaration.
9775 2008-02-22 Anatoly Sokolov <aesok@post.ru>
9777 * config/avr/libgcc.S (__RAMPZ__): Define.
9778 (__do_copy_data): Add for devices with 128KB code memory.
9780 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
9782 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
9784 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
9786 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
9788 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
9791 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9794 * c-typeck.c (build_binary_op): Warn about floating point
9795 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
9797 2008-02-21 Janis Johnson <janis187@us.ibm.com>
9800 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
9801 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
9803 (rs6000_override_options): Set altivec_abi as default, not override,
9804 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
9805 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
9806 is used; use new member spe_abi.
9807 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
9808 spe_abi and altivec_abi.
9810 2008-02-22 Tomas Bily <tbily@suse.cz>
9812 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
9814 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9817 * config.build (build_file_translate): Set to `CMD //c' only if
9819 * Makefile.in (build_file_translate): Improve comment.
9821 2008-02-21 Jan Hubicka <jh@suse.cz>
9823 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
9824 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
9825 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
9827 2008-02-21 Michael Matz <matz@suse.de>
9830 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
9832 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
9834 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
9835 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
9837 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
9838 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
9839 SSE_VEC_FLOAT_MODE_P as insn constraint.
9840 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
9841 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
9842 sse4a_movntdf using MODEF mode iterator.
9843 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
9844 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
9845 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
9846 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
9847 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
9848 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
9849 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
9851 2008-02-21 Richard Guenther <rguenther@suse.de>
9853 * tree.def (PAREN_EXPR): New tree code.
9854 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
9856 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
9857 * expr.c (expand_expr_real_1): Likewise.
9858 * tree-inline.c (estimate_num_insns_1): Likewise.
9859 * tree-complex.c (expand_complex_move): Likewise.
9860 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
9863 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
9866 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
9868 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
9871 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
9873 * config/sh/sh.c (find_barrier): Don't go past
9874 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
9876 2008-02-20 DJ Delorie <dj@redhat.com>
9878 * config/h8300/h8300.md (insv): Force source operand to be a register.
9880 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
9881 as a jump, not as a plain insn.
9883 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
9885 * doc/invoke.texi (Warning Options): Add new option
9886 -Wframe-larger-than=.
9887 (-Wframe-larger-than): Document.
9889 * flags.h (warn_frame_larger_than, frame_larger_than_size):
9890 Add declarations for new option variables.
9892 * final.c (final_start_function): Check the frame size
9893 before emission and issue a Wframe-larger-than warning.
9895 * opts.c (warn_frame_larger_than, frame_larger_than_size):
9896 Add definitions for new option variables.
9897 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
9899 * common.opt (Wframe-larger-than=): New option.
9901 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
9903 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
9904 (<sse>_div<mode>3): Ditto.
9905 (<sse>_vmdiv<mode>3): Ditto.
9906 (<sse>_vmsqrt<mode>2): Ditto.
9907 (*smax<mode>3): Ditto.
9908 (sse5_frcz<mode>2): Ditto.
9909 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
9912 2008-02-20 Richard Guenther <rguenther@suse.de>
9915 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
9916 be happy with INTEGRAL_TYPE_P.
9918 2008-02-20 Richard Guenther <rguenther@suse.de>
9920 * fold-const.c (split_tree): Associate floatig-point expressions
9921 if flag_associative_math is set.
9923 2008-02-20 Richard Guenther <rguenther@suse.de>
9925 * tree.h (fold_real_zero_addition_p): Declare.
9926 * fold-const.c (fold_real_zero_addition_p): Export.
9927 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
9928 floating-point operations with zero and one.
9930 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
9932 * doc/install.texi: Correct references to CFLAGS, replacing them
9933 with BOOT_CFLAGS. Document flags used during bootstrap for
9936 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
9938 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
9939 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
9940 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
9942 (smin<mode>3): Ditto from similar patterns.
9943 (smax<mode>3): Ditto.
9944 (*ieee_smin<mode>3): Ditto.
9945 (*ieee_smax<mode>3): Ditto.
9946 * config/i386/sse.md (sse): New mode attribute.
9947 (mov<mode>): Macroize expander from movv4sf and movv2df using
9948 SSEMODEF2P mode iterator.
9949 (<sse>_movnt<mode>): Ditto from similar patterns. Use
9950 SSE_VEC_FLOAT_MODE_P as insn constraint.
9951 (storent<mode>): Ditto.
9952 (storent<mode>): Macroize expander from storentsf and storentdf using
9953 MODEF mode iterator.
9954 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
9955 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
9956 (abs<mode>2): Ditto from similar patterns.
9957 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
9958 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
9959 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
9960 (<sse>_vmsqrt<mode>2): Ditto.
9961 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
9962 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
9963 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
9964 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
9965 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
9966 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
9967 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
9969 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
9970 iterator and SSE_FLOAT_MODE_P as insn constraint.
9971 (<sse>_ucomi): Ditto from similar patterns.
9972 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
9973 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
9974 SSE_VEC_FLOAT_MODE_P as insn constraint.
9975 (vcond<mode>): Ditto from similar patterns.
9976 (and<mode>3, *and<mode>3): Ditto.
9977 (<sse>_nand<mode>3): Ditto.
9978 (ior<mode>3, *ior<mode>3): Ditto.
9979 (xor<mode>3, *xor<mode>3): Ditto.
9980 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
9981 iterator and SSE_FLOAT_MODE_P as insn constraint.
9982 (*nand<mode>3): Ditto from similar patterns.
9983 (*ior<mode>3): Ditto.
9984 (*xor<mode>3): Ditto.
9986 2008-02-20 Ira Rosen <irar@il.ibm.com>
9988 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
9989 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
9990 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
9992 2008-02-19 Jan Hubicka <jh@suse.cz>
9994 * predict.c (tree_bb_level_predictions): Remove variable next
9995 mistakely introduced by previous commit.
9997 2008-02-19 Jan Hubicka <jh@suse.cz>
9999 * predict.c (predict_paths_leading_to): Rewrite.
10000 (predict_paths_for_bb): New.
10001 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
10003 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10006 * Makefile.in (build_file_translate): New.
10007 (gcc-vers.texi): Use it for translating $(abs_srcdir).
10008 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
10009 * configure.ac (build_file_translate): Substitute it.
10010 * configure: Regenerate.
10012 2008-02-19 Jan Hubicka <jh@suse.cz>
10014 PR rtl-optimization/34408
10015 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
10018 2008-02-19 Jan Hubicka <jh@suse.cz>
10020 PR middle-end/28779
10021 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
10024 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
10027 * config/i386/i386-modes.def: Revert the last DI alignment
10028 change until Ada people can look into it.
10030 2008-02-19 Nick Clifton <nickc@redhat.com>
10032 * opts.c (print_specific_help): Fix typo in --help text.
10034 2008-02-19 Jakub Jelinek <jakub@redhat.com>
10037 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
10038 32-bit inline asm without asm alternatives for host GCC < 3.0.
10040 2008-02-19 Richard Guenther <rguenther@suse.de>
10042 PR tree-optimization/34989
10043 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
10044 Allow propagation to INDIRECT_REF if we can simplify only.
10046 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10048 * c-common.c (warn_for_collisions_1): Use appropriate option when
10051 2008-02-19 Nick Clifton <nickc@redhat.com>
10054 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
10055 (handle_options): Fix indentation.
10056 (print_filtered_help): If no language-specific options were
10057 displayed tell the user how to list all the options supported by
10058 the language's front-end.
10059 (print_specific_help): Fix indentation and remove duplicate line.
10060 (common_handle_option): Handle the -v option.
10061 For --help enable the display of undocumented options if the -v
10062 switch has been included on the command line.
10063 For --help= check for overlaps in the arguments between the option
10064 classes and the language names and issue a warning when they
10065 cannot be disambiguated.
10066 * c.opt (v): Pass on to the common option handler.
10068 2008-02-19 Revital Eres <eres@il.ibm.com>
10070 * modulo-sched.c (sms_schedule): Change dump message when
10071 create_ddg function fails.
10072 (try_scheduling_node_in_cycle): Rename row to cycle.
10073 (print_partial_schedule): Rename CYCLE to ROW.
10075 2008-02-19 Christian Bruel <christian.bruel@st.com>
10076 Zdenek Dvorak <ook@ucw.cz>
10078 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
10080 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
10083 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
10084 (*x86_movdicc_0_m1_se): Ditto.
10086 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
10088 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
10089 (CMPtype): Define as __gcc_CMPtype.
10090 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
10091 (CMPtype): Define as __gcc_CMPtype.
10093 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
10095 Support valgrind 3.3 for --enable-checking=valgrind.
10096 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
10098 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
10099 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
10100 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
10101 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
10102 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
10103 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
10104 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
10106 * ggc-zone.c: Similar.
10107 * ggc-page.c: Similar.
10109 2008-02-19 Paul Brook <paul@codesourcery.com>
10112 * config/arm/ieee754-df.S: Fix do_it typo.
10113 * config/arm/ieee754-sf.S: Fix do_it typo.
10115 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
10118 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
10119 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
10120 (OPTION_MASK_ISA_SSE_SET): Likewise.
10121 (OPTION_MASK_ISA_SSE2_SET): Likewise.
10122 (OPTION_MASK_ISA_SSE3_SET): Likewise.
10123 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
10124 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
10125 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
10126 (OPTION_MASK_ISA_SSE4_SET): Likewise.
10127 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
10128 (OPTION_MASK_ISA_SSE5_SET): Likewise.
10129 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
10130 (OPTION_MASK_ISA_MMX_UNSET): Updated.
10131 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
10132 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
10133 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
10134 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
10135 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
10136 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
10137 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
10138 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
10139 (OPTION_MASK_ISA_SSE4): Removed.
10140 (ix86_handle_option): Turn on bits in ix86_isa_flags and
10141 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
10142 (override_options): Don't turn on implied SSE/MMX bits in
10145 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
10147 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10150 2008-02-18 Joey Ye <joey.ye@intel.com>
10152 PR middle-end/34921
10153 * tree-nested.c (insert_field_into_struct): Set type alignment
10154 to field alignment if the former is less than the latter.
10156 2008-02-18 Jakub Jelinek <jakub@redhat.com>
10158 * BASE-VER: Set to 4.4.0.
10160 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10162 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
10163 * doc/cfg.texi: Likewise.
10164 * doc/extend.texi: Likewise.
10165 * doc/gty.texi: Likewise.
10166 * doc/invoke.texi: Likewise.
10167 * doc/loop.texi: Likewise.
10168 * doc/md.texi: Likewise.
10169 * doc/passes.texi: Likewise.
10170 * doc/rtl.texi: Likewise.
10171 * doc/sourcebuild.texi: Likewise.
10172 * doc/tm.texi: Likewise.
10173 * doc/tree-ssa.texi: Likewise.
10175 2008-02-17 Richard Guenther <rguenther@suse.de>
10177 PR middle-end/35227
10178 * tree-complex.c (init_parameter_lattice_values): Handle parameters
10179 without default definition.
10181 2008-02-17 Richard Guenther <rguenther@suse.de>
10183 PR tree-optimization/35231
10184 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
10187 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
10190 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10191 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10192 libgcc_cmp_return mode.
10194 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10197 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
10199 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
10201 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
10204 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10206 * doc/c-tree.texi: Use `@.' where appropriate.
10207 * doc/extend.texi: Likewise.
10208 * doc/install.texi: Likewise.
10209 * doc/invoke.texi: Likewise.
10210 * doc/loop.texi: Likewise.
10211 * doc/makefile.texi: Likewise.
10212 * doc/md.texi: Likewise.
10213 * doc/passes.texi: Likewise.
10214 * doc/standards.texi: Likewise.
10215 * doc/tm.texi: Likewise.
10217 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10219 PR middle-end/35196
10220 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
10222 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
10223 rather than in entry_bb.
10225 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10227 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10228 libgcc_cmp_return mode.
10230 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10232 PR middle-end/35130
10233 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
10234 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
10236 2008-02-15 Richard Guenther <rguenther@suse.de>
10237 Zdenek Dvorak <ook@ucw.cz>
10239 PR tree-optimization/35164
10240 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
10241 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
10242 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
10243 Only propagate addresses which do not have abnormal SSA_NAMEs
10246 2008-02-15 Joseph Myers <joseph@codesourcery.com>
10249 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
10251 2008-02-15 Jan Hubicka <jh@suse.cz>
10253 PR middle-end/35149
10254 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
10256 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10258 PR middle-end/34621
10259 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
10260 when calculating alignment_pad.
10262 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10264 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
10265 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
10266 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
10267 and STACK_BOUNDARY define.
10269 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
10271 PR preprocessor/35061
10272 * c-pragma.c (handle_pragma_pop_macro): Check that
10273 pushed_macro_table has been allocated.
10275 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
10277 PR middle-end/35136
10278 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
10279 (force_gimple_operand): Likewise.
10280 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
10281 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
10282 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
10283 (find_interesting_uses_address): Check addressability and alignment
10284 of the base expression only after substituting bases of IVs into it.
10286 2008-02-14 Michael Matz <matz@suse.de>
10289 * function.c (instantiate_virtual_regs_in_insn): Reload address
10290 before falling back to reloading the whole operand.
10292 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
10294 * config/s390/s390.c (s390_mainpool_start): Emit the pool
10295 before the first section switch note.
10297 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10299 * doc/bugreport.texi: Update copyright years.
10300 * doc/c-tree.texi: Likewise.
10301 * doc/cfg.texi: Likewise.
10302 * doc/cpp.texi: Likewise.
10303 * doc/cppinternals.texi: Likewise.
10304 * doc/fragments.texi: Likewise.
10305 * doc/frontends.texi: Likewise.
10306 * doc/gcc.texi: Likewise.
10307 * doc/gty.texi: Likewise.
10308 * doc/hostconfig.texi: Likewise.
10309 * doc/implement-c.texi: Likewise.
10310 * doc/libgcc.texi: Likewise.
10311 * doc/loop.texi: Likewise.
10312 * doc/makefile.texi: Likewise.
10313 * doc/options.texi: Likewise.
10314 * doc/passes.texi: Likewise.
10315 * doc/rtl.texi: Likewise.
10316 * doc/sourcebuild.texi: Likewise.
10317 * doc/standards.texi: Likewise.
10318 * doc/tree-ssa.texi: Likewise.
10319 * doc/trouble.texi: Likewise.
10321 * doc/extend.texi: Use @: or add comma where appropriate.
10322 * doc/invoke.texi: Likewise.
10323 * doc/tm.texi: Likewise.
10325 2008-02-14 Alan Modra <amodra@bigpond.net.au>
10328 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
10331 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
10333 * doc/md.texi (clz, ctz): Add reference.
10334 * doc/rtl.texi (clz, ctz): Likewise.
10336 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10339 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
10342 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
10344 * config/s390/s390.c (struct constant_pool): New field
10345 emit_pool_after added.
10346 (s390_mainpool_start): Set the emit_pool_after flag according
10347 to the section switch notes.
10348 (s390_mainpool_finish): Consider emit_pool_after when emitting
10349 the literal pool at the end of the function.
10350 (s390_chunkify_start): Force literal pool splits at section
10353 2008-02-13 Michael Matz <matz@suse.de>
10356 * var-tracking.c (clobber_variable_part): Correctly traverse the
10359 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10362 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
10363 Add -fdump-ipa-inline.
10364 * tree-dump.c (dump_files): Remove tree-inlined dump.
10365 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
10367 2008-02-12 Richard Guenther <rguenther@suse.de>
10369 PR tree-optimization/35171
10370 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
10373 2008-02-12 Richard Guenther <rguenther@suse.de>
10375 PR middle-end/35163
10376 * fold-const.c (fold_widened_comparison): Use get_unwidened in
10377 value-preserving mode. Disallow final truncation.
10379 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
10381 PR middle-end/35136
10382 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
10383 code from here to...
10384 (force_gimple_operand): ...here.
10386 2008-02-12 Jakub Jelinek <jakub@redhat.com>
10389 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
10390 non-compatible pointers.
10391 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
10392 different FIELD_DECLs, try harder by comparing field offsets, sizes
10395 PR inline-asm/35160
10396 * function.c (match_asm_constraints_1): Don't replace the same input
10399 2008-02-12 Anatoly Sokolov <aesok@post.ru>
10401 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
10402 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
10403 (expand_epilogue): Restore RAMPZ register.
10404 * config/avr/avr.md (RAMPZ_ADDR): New constant.
10406 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
10408 * config/i386/cygwin.asm: (__alloca): Correct calling
10409 convention and alignment.
10410 (__chkstk): Force 8 byte stack alignment.
10412 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
10413 Richard Guenther <rguenther@suse.de>
10415 PR tree-optimization/33992
10416 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
10417 the zero we compare against.
10419 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
10421 PR libfortran/35063
10422 * gthr-win32.h (__gthread_mutex_destroy_function): New function
10423 to CloseHandle after unlocking to prevent accumulation of handle
10426 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10428 PR middle_end/34150
10429 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
10430 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
10431 and update LABEL_NUSES during and after reload.
10433 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
10435 PR middle-end/34627
10436 * combine.c (simplify_if_then_else): Make sure the comparison is
10437 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
10439 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
10442 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
10443 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
10444 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
10445 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
10446 * tree.h (get_type_static_bounds): Likewise.
10448 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10450 * doc/invoke.texi (Option Summary, C++ Dialect Options)
10451 (Objective-C and Objective-C++ Dialect Options, Warning Options):
10452 Make -Wfoo language annotations match what the compiler outputs.
10454 2008-02-08 Sa Liu <saliu@de.ibm.com>
10456 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
10457 intrinsics spu_convts, spu_convtu, spu_convtf.
10459 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
10461 * doc/extend.texi (Function Attributes) <noinline>: Mention
10462 asm ("") as method to keep calls.
10464 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10467 * doc/options.texi (Options): Replace references to opts.sh with
10469 * opts-common.c: Likewise.
10470 * optc-gen.awk: Likewise.
10472 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10474 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
10476 2008-02-07 Richard Henderson <rth@redhat.com>
10479 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
10480 EXPR_LIST for the REG_EQUAL instead of a comparison with a
10483 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
10485 PR tree-optimization/35085
10486 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
10487 for operand entry oe2 in addition to operand entry oe3 in order to
10488 expose more opportunities for vectorizer sum reduction.
10490 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10493 * Makefile.in (LIBS): Remove $(GMPLIBS).
10494 (cc1-dummy, cc1): Add $(GMPLIBS).
10496 2008-02-06 Jan Hubicka <jh@suse.cz>
10499 * i386.md (moddf_integer): Do not produce partial memory stalls for
10500 targets where it hurts.
10502 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
10505 * optabs.c (expand_float): Do not check for decimal modes when
10506 expanding unsigned integer through signed conversion.
10508 2008-02-06 Nick Clifton <nickc@redhat.com>
10510 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
10511 inside the clobber with a match_operand and duplicated operand
10512 number in the constraint.
10513 (ineqbranchsi): Delete redundant comment.
10515 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
10517 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
10518 builtin_define ("__USE_INIT_FINI__").
10519 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
10521 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
10523 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10525 PR documentation/30330
10526 * doc/invoke.texi (C++ Dialect Options)
10527 (Objective-C and Objective-C++ Dialect Options, Warning Options):
10528 For each warning option -Wfoo that allows -Wno-foo, ensure both
10529 -Wfoo and -Wno-foo are listed in the option index. Fix index
10530 entry of -Wswitch-default, index -Wnormalized= including the
10531 `=', and -Wlarger-than-@var{len} including @var{len}.
10533 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
10535 * config/i386/i386.md (floatunssisf2): Use
10536 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
10537 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
10538 Macroize expander using MODEF mode iterator.
10540 2008-02-05 Diego Novillo <dnovillo@google.com>
10542 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
10545 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
10547 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10550 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
10552 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
10555 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
10556 to indicate if a message should be generated.
10557 (init_cumulative_args): Updated.
10558 (function_value_32): Likewise.
10560 2008-02-05 Joseph Myers <joseph@codesourcery.com>
10562 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
10564 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
10567 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
10568 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
10570 2008-02-04 Diego Novillo <dnovillo@google.com>
10572 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
10575 * tree-vrp.c (vrp_evaluate_conditional): With
10576 -Wtype-limits, emit a warning when comparing against a
10577 constant outside the natural range of OP0's type.
10579 2008-02-04 Richard Guenther <rguenther@suse.de>
10581 PR middle-end/33631
10582 * expr.c (count_type_elements): Give for unions instead of
10585 2008-02-04 Richard Guenther <rguenther@suse.de>
10587 PR middle-end/35043
10588 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
10589 to TYPE_DOMAINs base type instead of using bitsizetype here.
10591 2008-02-03 Jason Merrill <jason@redhat.com>
10593 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
10595 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10598 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
10599 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
10600 (RS/6000 and PowerPC Options): Fix typos and markup.
10601 * doc/passes.texi (Tree-SSA passes): Likewise.
10603 2008-02-02 Michael Matz <matz@suse.de>
10606 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
10607 from record_last_reg_set_info.
10608 (record_last_reg_set_info): Take an RTX argument, iterate over all
10609 constituent hardregs.
10610 (record_last_set_info, record_opr_changes): Change calls to
10611 new signature or to record_last_reg_set_info_regno.
10613 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10615 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
10617 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
10619 PR rtl-optimization/34773
10620 * reg-notes.def (EQUAL): Mention significance of combination of
10621 REG_EQUAL and REG_RETVAL.
10622 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
10623 insn that has a REG_RETVAL.
10625 2008-02-01 Roger Sayle <roger@eyesopen.com>
10628 * configure.ac (--enable-fixed-point): Disable unless explicitly
10630 * configure: Regenerate.
10632 2008-02-01 Richard Guenther <rguenther@suse.de>
10635 * invoke.texi (-finline-limit): Remove no longer true parts
10636 of the documentation. Note that there is no default value.
10638 2008-02-01 Andrew Pinski <pinskia@gmail.com>
10639 Mark Mitchell <mark@codesourcery.com>
10640 Ben Elliston <bje@au.ibm.com>
10643 * doc/extend.texi (Other Builtins): Document.
10645 2008-01-31 Tom Browder <tom.browder@gmail.com>
10647 * doc/c-tree.texi (Types): Fix grammar.
10648 (Expression trees): Ditto.
10649 * doc/passes.texi (Tree-SSA passes): Ditto.
10651 * doc/configterms.texi (Configure Terms): Fix typo.
10652 * doc/cpp.texi (Common Predefined Macros): Ditto.
10653 * doc/md.texi (Machine Constraints): Ditto.
10655 * doc/makefile.texi (Makefile): Add comma.
10657 2008-01-31 Tom Browder <tom.browder@gmail.com>
10658 Gerald Pfeifer <gerald@pfeifer.com>
10660 * doc/sourcebuild.texi (Front End): Remove references to CVS
10661 and CVSROOT/modules.
10662 (Texinfo Manuals): Replace reference to CVS by one to SVN.
10663 (Back End): Remove reference to CVS.
10665 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
10668 * config/mips/mips.c (gen_load_const_gp): New function, taking a
10670 (mips16_gp_pseudo_reg): ...here.
10671 * config/mips/mips.md (load_const_gp): Replace with...
10672 (load_const_gp_<mode>): ...this :P-based insn.
10674 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10676 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
10677 options. Minor fixes.
10678 (-std): Move reference to standards closer to where language
10679 standards are first mentioned.
10681 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
10683 PR rtl-optimization/34995
10684 * reload.c (alternative_allows_const_pool_ref): Take an rtx
10685 parameter and return a bool. If the rtx parameter is nonnull,
10686 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
10687 (find_reloads): Update call accordingly. Pass the new operand
10688 if it needed no address reloads, otherwise pass null.
10690 2008-01-30 Richard Henderson <rth@redhat.com>
10693 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
10694 for unbounded arrays.
10696 2008-01-30 Silvius Rus <rus@google.com>
10698 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
10700 2008-01-30 Jan Hubicka <jh@suse.cz>
10703 * i386.c (init_cumulative_args): Use real function declaration when
10706 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
10708 PR rtl-optimization/34998
10709 * global.c (build_insn_chain): Treat non-subreg_lowpart
10710 SUBREGs of pseudos as clobbering all the words covered by the
10711 SUBREG, not just all the bytes.
10712 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
10713 original df_ref rather than an extract parameter.
10714 (global_conflicts): Update call accordingly.
10716 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
10718 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
10719 the overflow check to make it easier to read.
10720 (__fixtfdi): Change the type of the ll member in union
10721 long_double to UDItype_x.
10723 2008-01-30 Jakub Jelinek <jakub@redhat.com>
10725 PR middle-end/34969
10726 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
10727 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
10728 * tree-inline.c (fold_marked_statements): Call
10729 cgraph_update_edges_for_call_stmt if folding a call statement.
10730 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
10731 debug_generic_stmt calls, reset it back afterwards.
10734 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
10736 * c-typeck.c (build_external_ref): Don't pedwarn about
10737 static vars in current function's scope.
10739 2008-01-29 Joseph Myers <joseph@codesourcery.com>
10741 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
10743 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
10746 * ipa-struct-reorg.c: Fix spelling.
10747 * params.def: Ditto.
10749 2008-01-29 Richard Guenther <rguenther@suse.de>
10751 PR middle-end/35006
10752 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
10754 * tree-inline.c (remap_type): Increment remapping_type_depth
10755 around remapping types.
10756 (copy_body_r): Only add referenced variables if they are referenced
10757 from code, not types.
10759 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
10770 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
10771 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
10773 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
10776 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
10777 pointer for tiny stack.
10779 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
10781 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
10783 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
10785 * config/vx-common.h: Fix typo in comment.
10787 2008-01-28 Ian Lance Taylor <iant@google.com>
10791 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10792 coalesce pointers if they have different DECL_NO_TBAA_P values.
10793 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
10794 between variables with different DECL_NO_TBAA_P values.
10796 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
10799 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
10800 are not legitimate small data references on SPE targets.
10802 2008-01-28 David Daney <ddaney@avtrex.com>
10804 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
10806 2008-01-28 David Daney <ddaney@avtrex.com>
10808 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
10810 2008-01-27 Joseph Myers <joseph@codesourcery.com>
10812 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
10813 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
10814 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
10815 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
10816 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
10817 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
10818 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
10819 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
10821 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
10823 * basic-block.h (condjump_equiv_p): Fix comment.
10825 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
10827 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
10828 print_generic_stmt_indented): Fix comment.
10830 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
10832 * configure.ac (__stack_chk_fail): Add detecion for availability
10833 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
10834 * configure: Regenerate.
10836 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
10838 PR middle-end/34688
10839 * final.c (output_addr_const): Handle TRUNCATE.
10841 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
10844 * tree-ssa-loop-ivopts.c (comp_cost): New type.
10845 (zero_cost, infinite_cost): New constants.
10846 (struct cost_pair): Change type of cost to comp_cost.
10847 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
10848 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
10850 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
10851 split_address_cost, ptr_difference_cost, difference_cost,
10852 get_computation_cost_at, get_computation_cost,
10853 determine_use_iv_cost_generic, determine_use_iv_cost_address,
10854 determine_use_iv_cost_condition, determine_use_iv_costs,
10855 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
10856 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
10857 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
10858 Change type of cost to comp_cost.
10859 (determine_iv_cost): Increase cost of non-original ivs, instead
10860 of decreasing the cost of original ones.
10861 (get_address_cost): Indicate the complexity of the addressing mode
10863 (try_add_cand_for): Prefer using ivs not specific to some object.
10864 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
10866 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
10867 Janis Johnson <janis187@us.ibm.com>
10870 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
10871 (TARGET_INSTANTIATE_DECLS): Likewise.
10872 * target.h (expand_to_rtl_hook): New target hook.
10873 (instantiate_decls): Likewise.
10874 * function.c (instantiate_decl): Make non-static. Rename to...
10875 (instantiate_decl_rtl): ... this.
10876 (instantiate_expr): Use instantiate_decl_rtl.
10877 (instantiate_decls_1): Likewise.
10878 (instantiate_decls): Likewise.
10879 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
10880 * function.h (instantiate_decl_rtl): Add prototype.
10881 * cfgexpand.c (target.h): New include.
10882 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
10883 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
10884 (TARGET_INSTANTIATE_DECLS): Likewise.
10885 (TARGET_INITIALIZER): New target hooks added.
10886 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
10888 * config/rs6000/rs6000.c (tree-flow.h): New include.
10889 (machine_function): Add sdmode_stack_slot field.
10890 (rs6000_alloc_sdmode_stack_slot): New function.
10891 (rs6000_instantiate_decls): Likewise.
10892 (rs6000_secondary_memory_needed_rtx): Likewise.
10893 (rs6000_check_sdmode): Likewise.
10894 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
10895 (TARGET_INSTANTIATE_DECLS): Likewise.
10896 (rs6000_hard_regno_mode_ok): Allow SDmode.
10897 (num_insns_constant): Likewise. Handle _Decimal32 constants.
10898 (rs6000_emit_move): Handle SDmode.
10899 (function_arg_advance): Likewise.
10900 (function_arg): Likewise.
10901 (rs6000_gimplify_va_arg): Likewise. Add special handling of
10902 SDmode var args for 32-bit compiles.
10903 (rs6000_secondary_reload_class): Handle SDmode.
10904 (rs6000_output_function_epilogue): Likewise.
10905 (rs6000_function_value): Simplify if statement.
10906 (rs6000_libcall_value): Likewise.
10907 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
10908 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
10909 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
10910 (movsd_hardfloat): New define_insn.
10911 (movsd_softfloat): Likewise.
10912 (movsd_store): Likewise.
10913 (movsd_load): Likewise.
10914 (extendsddd2): Likewise.
10915 (extendsdtd2): Likewise.
10916 (truncddsd2): Likewise.
10917 (movdd_hardfloat64): Fixup comment.
10918 (UNSPEC_MOVSD_LOAD): New constant.
10919 (UNSPEC_MOVSD_STORE): Likewise.
10921 2008-01-26 Jakub Jelinek <jakub@redhat.com>
10924 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
10926 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
10927 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
10928 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
10929 and TRUTH_XOR_EXPR.
10931 2008-01-26 David Edelsohn <edelsohn@gnu.org>
10934 * config.gcc: Separate AIX 5.3 from AIX 6.1.
10935 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
10936 __LONGDOUBLE128 too.
10937 * config/rs6000/aix61.h: New file.
10939 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
10941 PR rtl-optimization/34959
10942 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
10943 popcount and parity rtxes the same mode as their operand.
10944 Truncate or extend the result to the return value's mode
10947 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
10950 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
10951 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
10952 to GOT_VERSION_REGNUM.
10953 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
10954 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
10955 * config/mips/mips.c (mips_emit_call_insn): New function.
10956 (mips_call_tls_get_addr): Call mips_expand_call directly.
10957 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
10959 (mips16_build_call_stub): Likewise. Return the call insn or null.
10960 (mips_expand_call): Update the call to mips16_build_call_stub
10961 accordingly and a remove redundant condition. Assert that MIPS16
10962 stubs do not use lazy binding. Use mips_emit_call_insn and return
10964 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
10966 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
10967 (mips_avoid_hazard): Remove hazard_set handling.
10968 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
10969 (UNSPEC_RESTORE_GP): ...this.
10970 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
10971 (FAKE_CALL_REGNO): Rename to...
10972 (GOT_VERSION_REGNUM): ...this.
10973 (type): Add "ghost" value. Add an associated insn reservation.
10974 (hazard_set): Remove.
10975 (exception_receiver): Rename to...
10976 (restore_gp): ...this and update the unspec identifier accordingly.
10977 (exception_receiver, nonlocal_got_receiver): New expanders.
10978 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
10979 FAKE_CALL_REGNO. Remove hazard_set attribute.
10980 (set_got_version, update_got_version): New patterns.
10982 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
10985 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
10987 2008-01-25 Joseph Myers <joseph@codesourcery.com>
10990 * doc/install.texi2html: Generate gcc-vers.texi.
10992 2008-01-25 DJ Delorie <dj@redhat.com>
10994 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10996 2008-01-25 Joseph Myers <joseph@codesourcery.com>
10998 * config/c4x: Remove directory.
10999 * config.gcc (crx-*, mt-*): Mark obsolete.
11000 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
11001 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
11002 sh-*-rtemscoff*): Remove cases.
11003 * defaults.h (C4X_FLOAT_FORMAT): Remove.
11004 * real.c (encode_c4x_single, decode_c4x_single,
11005 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
11006 c4x_extended_format): Remove.
11007 * real.h (c4x_single_format, c4x_extended_format): Remove.
11008 * doc/extend.texi (interrupt, naked): Remove mention of attributes
11010 (Pragmas): Remove comment about c4x pragmas.
11011 * doc/install.texi (c4x): Remove target-specific instructions.
11012 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
11013 * doc/md.texi (Machine Constraints): Remove C4x documentation.
11014 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
11015 refer to C4x source files as examples.
11016 (C4X_FLOAT_FORMAT): Remove documentation.
11018 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
11020 * config/bfin/bfin.c (override_options): Reorder tests so that
11021 flag_pic gets enabled for -msep-data.
11023 2008-01-25 Richard Guenther <rguenther@suse.de>
11025 PR middle-end/32244
11026 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
11027 to its bitfield precision if required.
11029 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11031 PR middle-end/33880
11032 * tree-nested.c (walk_omp_for): New function.
11033 (convert_nonlocal_reference, convert_local_reference): Call
11034 walk_omp_for on OMP_FOR.
11035 (convert_call_expr): Call walk_body on OMP_FOR's
11036 OMP_FOR_PRE_INIT_BODY.
11038 2008-01-25 Richard Guenther <rguenther@suse.de>
11040 PR tree-optimization/34966
11041 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
11042 default defs and PHI_NODEs we have to insert after the
11043 defining statement.
11045 2008-01-24 Nick Clifton <nickc@redhat.com>
11047 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
11048 Provide a default definition.
11049 (LIBGCC2_UNITS_PER_WORD): Likewise.
11051 * config/stormy16/stormy16.c: Include df.h for the prototype
11052 for df_regs_ever_live_p.
11053 (xstormy16_expand_builtin_va_start): Convert the stack offset
11054 into a component_ref and then use POINTER_PLUS_EXPR to add it
11055 to the incoming_virtual_args_rtx.
11056 (xstormy16_gimplify_va_arg_expr): Rename to
11057 xstormy16_gimplify_va_arg_expr.
11058 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
11059 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
11060 xstormy16_gimplify_va_arg_expr.
11061 Fix up some formatting issues.
11063 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
11064 Move to predicates.md.
11065 (xs_hi_general_operand): Likewise.
11066 (xs_hi_nonmemory_operand): Likewise.
11067 * config/stormy16/predicates.md:
11068 (xstormy16_carry_plus_operand): New predicate.
11069 (xs_hi_general_operand): New predicate.
11070 (xs_hi_nonmemory_operand): New predicate.
11071 * config/stormy16/stormy16-protos.h:
11072 (xstormy16_carry_plus_operand): Delete prototype.
11073 (xs_hi_general_operand): Likewise.
11074 (xs_hi_nonmemory_operand): Likewise.
11076 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
11077 modifiers as they are no longer needed and they can trigger
11078 reload spill failures.
11080 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
11081 with a match_operand in order to help reload.
11083 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
11084 constraint with 'e' for the 8th alternative as this version of
11085 the mov.w instruction only accepts the lower 8 registers.
11087 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
11090 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
11091 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
11094 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11096 PR middle-end/33333
11097 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
11099 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
11101 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
11103 (remove_structure): Update allocations list before removing structure.
11105 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
11107 * ipa-struct-reorg.c (is_safe_cond_expr,
11108 create_new_stmts_for_cond_expr): Use integer_zerop function,
11109 that recognize not only zero-pointer, but zero-integer too.
11111 2008-01-25 Ben Elliston <bje@au.ibm.com>
11114 * fixproto: Escape "." in sed expression that strips leading "./".
11116 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
11119 * gcc.c (SWITCH_OK): Removed.
11120 (SWITCH_LIVE): Changed to bit.
11121 (SWITCH_FALSE): Likewise.
11122 (SWITCH_IGNORE): Likewise.
11123 (switchstr): Change live_cond to unsigned int.
11124 (process_command): Replace SWITCH_OK with 0.
11125 (do_self_spec): Likewise.
11126 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
11127 (give_switch): Likewise.
11128 (used_arg): Likewise.
11129 (do_spec_1): Set the SWITCH_IGNORE bit.
11130 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
11131 bits. Set the SWITCH_LIVE bit.
11133 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
11135 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
11137 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
11139 PR tree-optimization/34472
11140 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
11141 parameter to a "bool *" and set *DATA to false if there is
11142 an unsafe access. Do not delete the structure here.
11143 (check_cond_exprs): Delete it here instead.
11144 (check_cond_exprs, exclude_cold_structs): Do not increase
11145 I when removing a structure.
11147 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
11150 * config/i386/i386.c (ix86_expand_vector_init): Consider only
11151 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
11153 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
11155 PR middle-end/34934
11156 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
11157 a fixed vector for stack.
11159 2008-01-24 Ben Elliston <bje@au.ibm.com>
11162 * doc/gcc.texi (Software development): Add a direntry for g++.
11164 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
11166 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
11167 stale and straggling -fforce-addr comments above.
11169 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
11171 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
11172 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
11174 2008-01-23 Michael Matz <matz@suse.de>
11177 * dwarf2out.c (force_type_die): Use modified_type_die instead of
11180 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
11182 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
11183 malloc result type.
11185 2008-01-23 Anatoly Sokolov <aesok@post.ru>
11187 * config/avr/avr.c (avr_current_arch): New variable.
11188 (avr_arch_types): Add 'avr31' and 'avr51' entries.
11189 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
11190 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
11191 (avr_override_options): Init 'avr_current_arch'.
11192 (base_arch_s): Move from here...
11193 * config/avr/avr.h (base_arch_s): ... here. Add new members
11194 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
11195 'mega' to 'have_jmp_call'.
11196 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
11197 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
11199 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
11201 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
11202 MULTILIB_MATCHES): (Ditto.).
11204 2008-01-23 Richard Guenther <rguenther@suse.de>
11206 PR middle-end/31529
11207 * cgraphunit.c (cgraph_reset_node): Always mark the node
11208 not reachable if it is not queued already.
11210 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
11212 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
11213 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
11214 (cputype_selected): New static variable.
11215 (bfin_handle_option): Set it if -mcpu is used.
11216 (override_option): Select default set of workarounds if no cpu type
11217 selected on the command line.
11218 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
11220 From Michael Frysinger <michael.frysinger@analog.com>
11221 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
11222 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
11224 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
11225 for bf547, bf523, bf524, and bf526.
11226 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
11228 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11229 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
11230 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
11231 __ADSPBF547__ and __ADSPBF54x__ for bf547.
11232 * doc/invoke.texi (Blackfin Options): Document that
11233 -mcpu now accept bf547, bf523, bf524, and bf526.
11235 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
11237 PR rtl-optimization/34628
11238 * combine.c (try_combine): Stop and undo after the first combination
11239 if an autoincrement side-effect on the first insn has effectively
11242 2008-01-22 David Edelsohn <edelsohn@gnu.org>
11245 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
11246 Offset addresses are not valid for Altivec or paired float modes.
11248 2008-01-22 Jakub Jelinek <jakub@redhat.com>
11251 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
11252 if DECL_INITIAL (decl) is error_mark_node.
11255 * c-common.c (handle_vector_size_attribute): Only allow
11256 integral, scalar float and fixed point types. Handle OFFSET_TYPE
11257 the same way as pointer, array etc. types.
11258 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
11261 * tree.c (build_type_attribute_qual_variant): Call
11262 build_qualified_type if attributes are equal, but quals are not.
11264 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11267 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
11268 * flags.h (warn_strict_aliasing): Remove.
11269 (warn_strict_overflow): Remove.
11270 * opts.c (warn_strict_aliasing): Remove.
11271 (warn_strict_overflow): Remove.
11272 * c-opts.c (c_common_handle_option): -Wall only sets
11273 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
11274 (c_common_post_options): Give default values to -Wstrict-aliasing
11275 and -Wstrict-overflow if they are uninitialized.
11276 * common.opt (Wstrict-aliasing): Specify Var and Init.
11277 (Wstrict-overflow): Likewise.
11279 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
11281 PR rtl-optimization/26854
11282 PR rtl-optimization/34400
11283 PR rtl-optimization/34884
11284 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
11286 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
11287 (df_rd_bb_info.expanded_lr_out): Deleted
11288 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
11289 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
11290 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
11291 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
11292 Removed code to allocate, initialize or free expanded_lr_out.
11293 (df_rd_bb_local_compute_process_def): Restructured to make more
11295 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
11296 sets if the sets are being trimmed.
11298 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
11301 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
11302 (as_vers): Likewise.
11303 * configure: Regenerated.
11305 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11307 PR middle-end/33092
11308 * tree-pass.h (pass_build_alias): New pass.
11309 * tree-ssa-alias.c (gate_build_alias): New.
11310 (pass_build_alias): New.
11311 * passes.c (init_optimization_passes): Add pass_build_alias after
11312 pass_create_structure_vars.
11314 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
11316 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
11317 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
11318 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
11319 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
11320 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
11321 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
11322 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
11323 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
11324 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
11325 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
11326 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
11327 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
11328 * config/s390/s390.md (FP_ALL): New mode iterator.
11329 (_d): New mode attribute.
11330 ("*signbit<mode>2>"): Changed mode of first operand.
11331 ("isinf<mode>2"): Changed mode of first operand.
11332 ("*TDC_insn"): Adaptation for DFP modes.
11334 2008-01-22 Ben Elliston <bje@au.ibm.com>
11336 * tree.c (check_qualified_type): Improve function description.
11338 2008-01-21 Jason Merrill <jason@redhat.com>
11341 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
11342 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
11345 2008-01-21 DJ Delorie <dj@redhat.com>
11347 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
11350 2008-01-21 Richard Guenther <rguenther@suse.de>
11352 PR middle-end/34856
11353 * tree-cfg.c (verify_expr): Allow all invariant expressions
11354 instead of just constant class ones as reference argument.
11355 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
11356 like any other constant.
11357 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11359 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
11361 * regmove.c (fixup_match_1): Update call crossed frequencies.
11363 2008-01-21 Richard Guenther <rguenther@suse.de>
11366 * tree-inline.c (setup_one_parameter): Deal with mismatched
11367 types using a VIEW_CONVERT_EXPR.
11369 2008-01-21 Alon Dayan <alond@il.ibm.com>
11370 Olga Golovanevsky <olga@il.ibm.com>
11372 PR tree-optimization/34701
11373 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
11374 when the structure size is not a power of 2.
11376 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
11378 * doc/install.texi: Add doc for --enable-checking=df.
11380 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
11382 PR rtl-optimization/34808
11383 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
11385 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
11387 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
11390 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
11392 PR rtl-optimization/26854
11393 PR rtl-optimization/34400
11394 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
11396 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
11397 (df_rd_bb_info.expanded_lr_out): New.
11398 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
11399 * loop_iv.c (iv_analysis_loop_init): Ditto.
11400 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
11401 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
11402 Added code to allocate, initialize or free expanded_lr_out.
11403 (df_rd_bb_local_compute_process_def): Restructured to make
11404 more understandable.
11405 (df_rd_confluence_n): Add code to do nothing with fake edges and
11406 code to no apply invalidate_by_call sets if the sets are being trimmed.
11407 (df_lr_local_finalize): Renamed to df_lr_finalize.
11408 (df_live_local_finalize): Renamed to df_live_finalize.
11410 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
11413 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
11414 deciding whether to use reciprocal instructions.
11416 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
11418 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
11419 dwarf2out_note_section_used if cold_text_section is NULL.
11421 2008-01-19 Jakub Jelinek <jakub@redhat.com>
11423 PR gcov-profile/34610
11424 * tree-cfg.c (make_edges): Mark both outgoing edges from
11425 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
11426 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
11427 from OMP_FOR and OMP_CONTINUE outgoing edges.
11429 * tree-profile.c (tree_profiling): Return early if
11430 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
11432 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
11433 from cfun to child_cfun.
11434 * function.h (struct function): Add after_tree_profile bit.
11436 2008-01-19 Anatoly Sokolov <aesok@post.ru>
11438 * config/avr/avr.S (_exit): Disable interrupt.
11440 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
11441 Steven Bosscher <stevenb.gcc@gmail.com>
11443 PR rtl-optimization/26854
11444 PR rtl-optimization/34400
11445 * df-problems.c (df_live_scratch): New scratch bitmap.
11446 (df_live_alloc): Allocate df_live_scratch when doing df_live.
11447 (df_live_reset): Clear the proper bitmaps.
11448 (df_live_bb_local_compute): Only process the artificial defs once
11449 since the order is not important.
11450 (df_live_init): Init the df_live sets only with the variables
11451 found live by df_lr.
11452 (df_live_transfer_function): Use the df_lr sets to prune the
11453 df_live sets as they are being computed.
11454 (df_live_free): Free df_live_scratch.
11456 2008-01-18 Ian Lance Taylor <iant@google.com>
11458 * common.opt: Add fmerge-debug-strings.
11459 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
11460 flag_merge_debug_strings rather than flag_merge_constants.
11461 * doc/invoke.texi (Option Summary): Mention
11462 -fmerge-debug-strings.
11463 (Debugging Options): Document -fmerge-debug-strings.
11465 2008-01-18 Ian Lance Taylor <iant@google.com>
11468 * tree.h (DECL_IS_OPERATOR_NEW): Define.
11469 (struct tree_function_decl): Add new field operator_new_flag.
11470 * tree-inline.c (expand_call_inline): When inlining a call to
11471 operator new, force the return value to go into a variable, and
11472 set DECL_NO_TBAA_P on that variable.
11473 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
11475 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
11478 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
11479 DWARF2_DEBUGGING_INFO.
11480 (dwarf2out_note_section_used): Ditto. Add prototype.
11481 (have_multiple_function_sections, text_section_used,
11482 cold_text_section_used, *cold_text_sections): Move declarations
11485 2008-01-17 Bob Wilson <bob.wilson@acm.org>
11487 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
11488 field and add signal_ra.
11489 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
11490 assignments to frame state pc. Move end of stack check after
11491 MD_FALLBACK_FRAME_STATE_FOR.
11492 (uw_update_context_1): Use frame state signal_regs if set, instead
11493 of checking signal_frame flag.
11494 (uw_update_context): Use frame state signal_ra if set.
11495 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
11496 * config/xtensa/linux-unwind.h: New file.
11498 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
11500 * modulo-sched.c (get_sched_window): Fix comment typo.
11502 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
11504 PR tree-optimization/34648
11505 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
11507 2008-01-17 Anatoly Sokolov <aesok@post.ru>
11509 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
11510 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
11512 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
11514 PR rtl-optimization/34400
11515 * df-core.c (df_worklist_dataflow_overeager,
11516 df_worklist_dataflow_doublequeue): New functions.
11517 (df_worklist_dataflow): Two different worklist solvers.
11518 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
11521 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11524 * doc/invoke.texi: Document the dependence on pthread for fopenmp
11525 and ftree-parallelize-loops.
11527 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
11529 PR rtl-optimization/34826
11530 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
11532 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
11534 * global.c (find_reg): Mark the eh regs as used if necessary.
11535 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
11536 * ra.h (struct allocno): no_eh_reg field added. Changed
11537 no_stack_reg type to bitfield.
11539 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
11541 * tree.c (substitute_in_expr): Add missing 'break'.
11543 2008-01-17 Richard Guenther <rguenther@suse.de>
11545 PR tree-optimization/34825
11546 * tree-ssa-math-opts.c (is_division_by): Do not recognize
11547 x / x as division to handle.
11549 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11551 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
11552 "-pthread" is specified.
11553 * pa-hpux11.h (LIB_SPEC): Likewise.
11555 2008-01-16 Janis Johnson <janis187@us.ibm.com>
11556 Peter Bergner <bergner@vnet.ibm.com>
11558 PR rtl-optimization/33796
11559 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
11561 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11563 PR libgfortran/34699
11564 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
11566 * pa-hpux10.h (LINK_SPEC): Likewise.
11567 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
11569 2008-01-16 Richard Guenther <rguenther@suse.de>
11571 PR middle-end/32628
11572 * fold-const.c (fold_convert_const_int_from_int): Do not
11573 set overflow if that occured only because of a sign extension
11574 change when converting from/to a sizetype with the same
11575 precision and signedness.
11577 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
11580 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
11581 location address to the correct place. Update copyright year.
11583 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11585 * lambda-code.c (lambda_transform_legal_p): Handle the case of
11586 no dependences in the dependence_relations vector.
11588 2008-01-16 Jan Hubicka <jh@suse.cz>
11590 PR rtl-optimization/31396
11591 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
11592 * cfg.c (dump_reg_info): Print it.
11593 * regs.h (struct reg_info_t): add freq_calls_crossed.
11594 (REG_FREQ_CALLS_CROSSED): New macro.
11595 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
11596 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
11597 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
11598 regmove_optimize): Update call crossed frequencies.
11599 * local-alloc.c (struct qty): Add freq_calls_crossed.
11600 (alloc_qty): Copute freq_calls_crossed.
11601 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
11602 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
11603 * ra.h (struct allocno): Add freq_calls_crossed.
11605 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11607 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
11608 libgomp when compiling with ftree-parallelize-loops.
11609 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
11611 2008-01-16 Richard Guenther <rguenther@suse.de>
11613 PR tree-optimization/34769
11614 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
11615 * tree.c (int_cst_value): Instead make this function more
11616 permissive in what it accepts as valid input. Document this
11617 function always sign-extends the value.
11619 2008-01-16 Jakub Jelinek <jakub@redhat.com>
11620 Richard Guenther <rguenther@suse.de>
11623 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
11624 (gimple_fold_indirect_ref_rhs): ... this.
11625 (gimple_fold_indirect_ref): New function with foldings
11626 that preserve lvalueness.
11627 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
11628 * tree-flow.h (gimple_fold_indirect_ref): Declare.
11629 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
11630 to fold an INDIRECT_REF, fall back to the old use of
11631 fold_indirect_ref_1.
11633 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11635 * tree-data-ref.c (subscript_dependence_tester_1): Call
11636 free_conflict_function.
11637 (compute_self_dependence): Same.
11639 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
11642 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
11643 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
11645 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
11646 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
11647 for DWARF2_UNWIND_INFO targets.
11649 2008-01-16 Richard Guenther <rguenther@suse.de>
11652 * c-typeck.c (common_pointer_type): Do not merge inconsistent
11653 type qualifiers for function types.
11655 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
11657 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
11658 loop_iterator li from previous commit.
11660 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
11662 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
11664 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
11666 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
11667 (parallelize_loops): Don't parallelize irreducible components.
11669 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11672 * c-opts (c_common_post_options): Do not enable CPP
11673 flag_pedantic_errors by default.
11675 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
11677 PR rtl-optimization/31944
11678 * cse.c (remove_pseudo_from_table): New function.
11679 (merge_equiv_classes): Use above function to remove pseudo-registers.
11680 (invalidate): Likewise.
11682 2008-01-13 Richard Guenther <rguenther@suse.de>
11684 PR middle-end/34601
11685 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
11686 instead of TYPE_MODE to deal with calls from expand_one_error_var.
11688 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
11690 * gcse.c (cprop_jump): Call validate_unshare_change instead of
11691 validate_change to unshare the source of the PC set.
11693 2008-01-12 Jan Hubicka <jh@suse.cz>
11695 PR middle-end/32135
11696 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
11697 references above array bounds. This might trigger bounds checks for
11698 pointers to arrays.
11700 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
11702 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
11703 new_replaceable_dependencies.
11705 2008-01-12 Doug Kwan <dougkwan@google.com>
11707 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
11708 instead of OPT_Wreturn_type in warning due to ignored return type
11710 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
11711 options included in -Wextra.
11712 * c.opt: New option -Wignored_qualifiers.
11713 * doc/invoke.texi (Warning Options, -Wextra): Add new option
11714 -Wignore_qualifiers.
11715 (-Wignored-qualifiers): Document.
11716 (-Wreturn-type): Remove description of functionality now handled
11717 by -Wignored-qualifiers.
11719 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
11722 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
11723 NOP_EXPR if it is between integral types with the same precision.
11725 2008-01-12 Jan Hubicka <jh@suse.cz>
11728 * invoke.texi (max-inline-recursive-depth): Fix default value.
11730 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
11732 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
11735 2008-01-11 Bob Wilson <bob.wilson@acm.org>
11737 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
11739 2008-01-11 James E. Wilson <wilson@specifix.com>
11742 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
11744 2008-01-11 Anatoly Sokolov <aesok@post.ru>
11746 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
11747 save/restore frame pointer register and don't use 'call-prologues'
11748 optimization in function with "OS_task" attribute.
11750 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
11752 PR middle-end/31309
11753 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
11754 when copying to memory.
11756 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
11758 PR rtl-optimization/30905
11759 * cfgcleanup.c: Include dce.h
11760 (crossjumps_occured): New global variable.
11761 (try_crossjump_bb): Exit loop after finding a fallthru edge.
11762 If something changed, set crossjumps_occured to true.
11763 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
11764 Don't add/remove fake edges to exit here...
11765 (cleanup_cfg): ...but do it here, when crossjumping.
11766 Run a fast DCE when successful crossjumps occured in the latest
11767 iteration of try_optimize_cfg.
11769 2008-01-11 Richard Guenther <rguenther@suse.de>
11771 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
11772 (struct vn_unary_op_s): Likewise.
11773 (vn_reference_insert): Free old reference on hash collision.
11775 2008-01-10 Raksit Ashok <raksit@google.com>
11777 PR rtl-optimization/27971
11778 * combine.c (find_split_point): Split PLUS expressions which are
11779 inside a MEM rtx, and whose first operand is complex.
11781 2008-01-10 DJ Delorie <dj@redhat.com>
11783 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
11784 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
11785 (m32c_hard_regno_ok): Call the underlying function.
11787 2008-01-10 Richard Guenther <rguenther@suse.de>
11789 PR middle-end/34683
11790 * tree-cfg.c (tree_merge_blocks): Do not go through the
11791 full-blown folding and stmt updating path if we just deal
11792 with virtual operands.
11793 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
11794 test for abnormal SSA_NAMEs.
11796 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
11798 PR middle-end/34641
11799 * reload.c (push_reload): Add assertions. All constants from
11800 reg_equiv_constant should have been used for replacing the respective
11802 (find_reloads_address): Invoke find_reloads_address_part for
11803 constant taken from the reg_equiv_constant array.
11805 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
11807 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
11808 field (valnum) the first in the struct. Replace bools with
11811 2008-01-10 Richard Guenther <rguenther@suse.de>
11813 PR tree-optimization/34651
11814 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
11815 types and ordering for masking and converting.
11817 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
11819 PR tree-optimization/34017
11820 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
11821 also for PHI_NODE expressions.
11823 2008-01-09 Jan Hubicka <jh@suse.cz>
11825 PR tree-optimization/34708
11826 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
11827 based on number of case labels.
11828 (init_inline_once): Remove switch_cost.
11829 * tree-inline.h (eni_weights_d): Remove switch_cost.
11831 2008-01-09 Richard Guenther <rguenther@suse.de>
11832 Andrew Pinski <andrew_pinski@playstation.sony.com>
11834 PR middle-end/30132
11835 * gimplify.c (gimplify_cond_expr): Do not create an addressable
11836 temporary if an rvalue is ok or an lvalue is not required.
11838 2008-01-09 Richard Guenther <rguenther@suse.de>
11840 PR middle-end/34458
11841 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
11842 adjust return type.
11844 2008-01-09 Richard Guenther <rguenther@suse.de>
11846 PR middle-end/34679
11847 * tree.c (host_integerp): Check for sizetype only if the
11848 type is an integer type.
11850 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
11853 * opts.c (decode_options): Disable inlining of functions called
11854 once if not in unit-at-a-time mode.
11856 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
11858 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
11860 2008-01-08 Richard Guenther <rguenther@suse.de>
11862 PR middle-end/31863
11863 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
11864 out early if the result will be unused.
11866 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
11871 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
11872 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
11875 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
11877 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
11878 for vectorization tuned.
11880 2008-01-08 Richard Guenther <rguenther@suse.de>
11882 PR tree-optimization/34683
11883 * tree-ssa-operands.c (operand_build_cmp): Export.
11884 * tree-ssa-operands.h (operand_build_cmp): Declare.
11885 * tree-vn.c (vuses_compare): Remove.
11886 (sort_vuses): Use operand_build_cmp.
11887 (sort_vuses_heap): Likewise.
11888 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
11889 to re-use old VEC if available. Do not sort already sorted VUSEs.
11890 (vdefs_to_vec): Do not sort already sorted VDEFs.
11892 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11894 PR middle-end/34694
11895 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
11897 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
11900 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
11901 limitations of reciprocal sequences on x86 targets.
11903 2008-01-08 Richard Guenther <rguenther@suse.de>
11905 PR tree-optimization/34683
11906 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
11908 2008-01-07 Jakub Jelinek <jakub@redhat.com>
11911 * config/darwin.c (darwin_mergeable_string_section): Don't use
11912 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
11914 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
11917 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
11918 negxf2. Macroize expander using X87MODEF mode iterator. Change
11919 predicates of op0 and op1 to register_operand.
11920 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
11921 expander using X87MODEF mode iterator. Change predicates of
11922 op0 and op1 to register_operand.
11923 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
11924 corresponding patterns and macroize using MODEF macro. Change
11925 predicates of op0 and op1 to register_operand and remove
11926 "m" constraint. Disparage "r" alternative with "!".
11927 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
11928 macroize using X87MODEF macro. Change predicates of op0 and op1
11929 to register_operand and remove "m" constraint. Disparage "r"
11930 alternative with "!".
11931 (absneg splitter with memory operands): Remove.
11932 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
11933 patterns and macroize using X87MODEF mode iterator.
11934 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
11935 Change predicate of op1 to register_operand.
11936 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
11937 for memory operands.
11939 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
11941 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
11943 2008-01-07 Richard Guenther <rguenther@suse.de>
11945 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
11948 2008-01-07 Richard Guenther <rguenther@suse.de>
11950 PR tree-optimization/34683
11951 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
11952 VOPs of the needed size to save memory. Use VEC_quick_push
11953 to save compile-time.
11954 (vdefs_to_vec): Likewise.
11956 2008-01-07 Sa Liu <saliu@de.ibm.com>
11958 * config/spu/spu.md (divdf3): Genetate inline code for double
11959 division. The implementation doesn't handle INF or NAN, therefore it
11960 only applies when -ffinite-math-only is given.
11962 2008-01-06 Paolo Carlini <pcarlini@suse.de>
11965 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
11966 * doc/cpp.texi ([Common Predefined Macros]): Document.
11968 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
11970 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
11971 order to use commutative addition instead of subtraction.
11973 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
11974 Mircea Namolaru <namolaru@il.ibm.com>
11975 Vladimir Yanovsky <yanov@il.ibm.com>
11976 Revital Eres <eres@il.ibm.com>
11978 PR tree-optimization/34263
11979 * tree-outof-ssa.c (process_single_block_loop_latch,
11980 contains_tree_r): New functions.
11981 (analyze_edges_for_bb): Call process_single_block_loop_latch
11982 function to empty single-basic-block latch block if possible.
11984 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
11986 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
11988 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
11990 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
11992 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
11994 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
11996 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
11998 2008-01-05 Jakub Jelinek <jakub@redhat.com>
12000 PR tree-optimization/34618
12001 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
12004 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
12007 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
12008 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
12009 Update copyright year.
12011 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
12012 Update copyright year.
12013 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
12016 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
12018 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
12019 edge does not point to current bb before changing need_assert.
12021 2008-01-04 Richard Guenther <rguenther@suse.de>
12023 PR middle-end/34029
12024 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
12025 for verifying purposes if they are is_gimple_min_invariant.
12027 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
12029 PR tree-optimization/34448
12030 PR tree-optimization/34465
12031 * gimplify.c (gimplify_init_constructor): Add new parameter
12032 notify_temp_creation. Use it.
12033 (gimplify_modify_expr_rhs): Take volatiles into account when
12034 optimizing constructors.
12035 Do not optimize constructors if gimplify_init_constructor will dump to
12037 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
12038 * gcc.c-torture/compile/pr34448.c: New.
12040 2008-01-04 Jakub Jelinek <jakub@redhat.com>
12042 PR gcov-profile/34609
12043 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
12044 return_slot if result is TREE_ADDRESSABLE.
12046 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
12048 * config/mips/mips.md (sqrt_condition): Tweak comment.
12049 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
12051 2008-01-03 Tom Tromey <tromey@redhat.com>
12054 * c-common.c (c_type_hash): Handle VLAs.
12056 2008-01-03 Jan Hubicka <jh@suse.cz>
12058 PR tree-optimization/31081
12059 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
12060 0 when inlining and not inlining to first basic block.
12061 (remap_decl): When var is initialized to 0, don't set default_def.
12062 (expand_call_inline): Set entry_bb.
12063 * tree-inline.h (copy_body_data): Add entry_bb.
12065 2008-01-03 Jakub Jelinek <jakub@redhat.com>
12068 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
12071 PR tree-optimization/29484
12072 * tree-inline.c (inline_forbidden_p_2): New function.
12073 (inline_forbidden_p): Disallow inlining if some static var
12074 has an address of a local LABEL_DECL in its initializer.
12075 * doc/extend.texi (Labels as Values): Document &&foo behaviour
12078 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
12080 PR tree-optimization/34635
12081 * tree-data-ref.c (add_other_self_distances): Make sure that the
12082 evolution step is constant.
12084 2008-01-03 Jakub Jelinek <jakub@redhat.com>
12086 PR middle-end/34608
12087 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
12089 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
12091 * tree-sra.c (scalarize_init): Insert the generate_element_init
12092 statements after the generate_element_zero statements.
12094 2008-01-02 Richard Guenther <rguenther@suse.de>
12096 PR middle-end/34093
12097 PR middle-end/31976
12098 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
12099 for very large number of operands instead of ICEing.
12101 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
12104 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
12105 while stack probing.
12107 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
12109 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
12112 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
12114 PR libmudflap/26442
12115 * tree-mudflap.c (mx_register_decls): Guard warning by
12116 !DECL_ARTIFICIAL check.
12118 2008-01-01 Jakub Jelinek <jakub@redhat.com>
12120 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
12121 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
12122 sse5_perm<mode>): Fix constraints.