config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64 tune_32 tune_64.
[gcc.git] / gcc / ChangeLog
1 2008-06-11 Joseph Myers <joseph@codesourcery.com>
2
3 * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4 tune_32 tune_64.
5 (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
6 tune_32 tune_64 to supported_defaults. Allow values not
7 supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
8 x86_64. Do not override cpu_32 or cpu_64 values from target name.
9 (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
10 with_cpu_64 to generic for 64-bit-supporting configurations, not
11 with_cpu. Remove FIXMEs.
12 * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
13 --with-arch-64, --with-tune-32, --with-tune-64): Document.
14 * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
15 (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
16 arch_32 and arch_64.
17
18 2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
19 Olivier Hainque <hainque@adacore.com>
20
21 * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
22 Use DECL_SIZE_UNIT to retrieve the size of the field.
23
24 2008-06-11 Joseph Myers <joseph@codesourcery.com>
25
26 * config/arm/arm.c (arm_init_neon_builtins): Move initialization
27 with function calls after declarations. Lay out
28 neon_float_type_node before further use.
29
30 2008-06-11 Richard Guenther <rguenther@suse.de>
31
32 * tree-flow.h (may_point_to_global_var): Declare.
33 * tree-ssa-alias.c (may_point_to_global_var): New function.
34 * tree-ssa-sink.c (is_hidden_global_store): Use it.
35
36 2008-06-10 Kazu Hirata <kazu@codesourcery.com>
37
38 * configure.ac: Teach that fido supports .debug_line.
39 * configure: Regenerate.
40
41 2008-06-10 Tom Tromey <tromey@redhat.com>
42
43 * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
44 debug hook.
45
46 2008-06-10 Joseph Myers <joseph@codesourcery.com>
47
48 * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
49 (encode_decimal64, decode_decimal64, encode_decimal128,
50 decode_decimal128): Reverse order of 32-bit parts of value if host
51 and target endianness differ.
52
53 2008-06-10 Vinodha Ramasamy <vinodha@google.com>
54 * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
55 Avoid division by 0.
56 (tree_mod_pow2_value_transform): Likewise.
57 (tree_ic_transform): Likewise.
58 (tree_stringops_transform): Likewise.
59 (tree_mod_subtract_transform): Likewise.
60 * tree-inline-c (copy_bb): Corrected int type to gcov_type.
61 (copy_edges_for_bb): Likewise.
62 (initialize_cfun): Likewise.
63
64 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
65
66 * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
67 nonmemory_operand. Add "N" operand constraint.
68 (*btsi): Ditto.
69 (*jcc_btdi_mask_rex64): New instruction and split pattern.
70 (*jcc_btsi_mask): Ditto.
71 (*jcc_btsi_mask_1): Ditto.
72
73 2008-06-10 Joseph Myers <joseph@codesourcery.com>
74
75 * config/rs6000/rs6000.c (build_opaque_vector_type): Set
76 TYPE_CANONICAL for copied element type.
77
78 2008-06-10 Uros Bizjak <ubizjak@gmail.com>
79
80 PR target/36473
81 * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
82 Add m_CORE2 and m_GENERIC.
83 * config/i386/predicates.md (bt_comparison_operator): New predicate.
84 * config/i386/i386.md (*btdi_rex64): New instruction pattern.
85 (*btsi): Ditto.
86 (*jcc_btdi_rex64): New instruction and split pattern.
87 (*jcc_btsi): Ditto.
88 (*jcc_btsi_1): Ditto.
89 (*btsq): Fix Intel asm dialect operand order.
90 (*btrq): Ditto.
91 (*btcq): Ditto.
92
93 2008-06-09 Andy Hutchinson <hutchinsonandy@aim.com>
94
95 PR middle-end/36447
96 * simplify-rtx.c (simplify_subreg): Add check for shift count
97 greater than size.
98
99 2008-06-09 Richard Sandiford <rdsandiford@googlemail.com>
100
101 * doc/md.texi: Synchronize with later constraints.md change.
102 * longlong.h (umul_ppmm): Replace the MIPS asm implementation
103 with a C implementation.
104 * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
105 MFLO handling.
106 (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
107 (mips_split_doubleword_move): Use special MTHI and MFHI instructions
108 when moving to and from MD_REGNUM.
109 (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
110 Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
111 Handle byte and halfword moves.
112 (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
113 separately.
114 * config/mips/constraints.md (h): Turn into NO_REGS.
115 (l, x): Update documentation.
116 * config/mips/mips.md (UNSPEC_MFHILO): Delete.
117 (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
118 (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
119 (HILO): New mode iterator.
120 (MOVE128): Add TI.
121 (any_div): New code iterator.
122 (u): Extend code attribute to div and udiv.
123 (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
124 d_operand in the splitters. Remove redundant CONST_INT checks.
125 (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
126 (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
127 (*muls): Remove "=h" clobbers. Adjust peephole2s and define_splits
128 accordingly, using normal moves instead of unspecs to move LO into
129 a GPR. Use d_operand and lo_operand instead of *_REG_P checks.
130 (<u>mulsidi3): Handle expansion in C code.
131 (<u>mulsidi3_32bit_internal): Rename to...
132 (<u>mulsidi3_32bit): ...this.
133 (<u>mulsidi3_32bit_r4000): Fix insn separator.
134 (*<u>mulsidi3_64bit): Rename to...
135 (<u>mulsidi3_64bit): ...this. Combine DImode "=h" and "=l" clobbers
136 into a TImode "=x" clobber. In the split, use an UNSPEC_SET_HILO
137 to set LO and HI to the multiplication result. Use a normal move
138 for MFLO and an unspec for MFHI.
139 (*<u>mulsidi3_64bit_parts): Replace with...
140 (<u>mulsidi3_64bit_hilo): ...this new instruction.
141 (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
142 (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
143 and extend it to TARGET_FIX_R4000. Store the destination in a GPR
144 instead of HI. Split the instruction into a separate multiplication
145 and MFHI if !TARGET_FIX_R4000.
146 (<su>muldi3_highpart): Likewise.
147 (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
148 and the "=h" clobber.
149 (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
150 (<u>mulditi3): New expander.
151 (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
152 (madsi): Remove "=h" clobber.
153 (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
154 Force the modulus result to be a GPR and split the instruction into
155 a division followed by an MFHI after reload.
156 (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
157 (*lea_high64): Use d_operand in the define_peephole2. Likewise
158 the MIPS16 HIGH define_split.
159 (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
160 of acc<->gpr moves to "multi".
161 (*movdi_64bit): Replace the single "x" alternative with
162 alternatives for moving into and out of "a".
163 (*movhi_internal, *movqi_internal): Likewise. Use mips_output_move.
164 (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
165 (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
166 Use d_operand in the splitters. Remove redundant CONST_INT checks.
167 (*movhi_mips16, *movqi_mips16): Likewise. Use mips_output_move.
168 (movti): New expander.
169 (*movti, *movti_mips16): New insns.
170 (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
171 (mfhi<GPR:mode>_<HILO:mode>): New pattern.
172 (mthi<GPR:mode>_<HILO:mode>): Likewise.
173 * config/mips/predicates.md (fpr_operand): Delete.
174 (d_operand): New predicate.
175
176 2008-06-09 Michael Meissner <michael.meissner@amd.com>
177
178 * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
179 failure on some Bourne shells.
180 (x86_64-*-*): Ditto.
181
182 2008-06-09 Kai Tietz <kai.tietz@onevision.com>
183
184 * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
185
186 2008-06-09 Eric Botcazou <ebotcazou@libertysurf.fr>
187
188 * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
189 (sparc-sun-solaris2*): Likewise.
190
191 2008-06-09 Arnaud Charlet <charlet@adacore.com
192
193 * doc/install.texi: Update requirements to build the Ada compiler.
194
195 2008-06-08 Steven Bosscher <stevenb.gcc@gmail.com>
196
197 * df-scan.c (struct df_scan_problem_data): Remove the
198 mw_link_pool alloc pool.
199 (df_scan_free_internal): Don't free it.
200 (df_scan_alloc): Don't allocate it.
201 * df.h (struct df_link): Update comment.
202
203 2008-06-08 Nathan Sidwell <nathan@codesourcery.com>
204
205 * except.h: Correct checks for when SJLJ exceptions must be used.
206
207 2008-06-08 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
208
209 * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
210 default.
211
212 2008-06-08 Joseph Myers <joseph@codesourcery.com>
213
214 PR tree-optimization/36218
215 * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
216 configure for the build system.
217 (BUILD_LDFLAGS): Define.
218 * configure: Regenerate.
219 * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
220
221 2008-07-08 Anatoly Sokolov <aesok@post.ru>
222
223 PR target/36424
224 * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
225 * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
226 * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
227
228 2008-06-07 Danny Smith <dannysmith@users.sourceforge.net>
229
230 * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
231
232 2008-06-07 Joseph Myers <joseph@codesourcery.com>
233
234 * config.gcc (Obsolete configurations): Remove list of
235 configurations.
236 (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
237 *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*. Remove other
238 targets matched by those patterns.
239 (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
240 m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
241 alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
242 arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
243 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
244 i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
245 i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
246 i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
247 i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
248 mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
249 powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
250 powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
251 strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
252 vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
253 i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
254 Make code for Solaris 7 and greater unconditional for Solaris.
255 (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
256 Remove --with-* handling.
257 * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
258 (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
259 ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
260 LINK_OS_WINDISS_SPEC): Remove.
261 * config/rs6000/sysv4.opt (mwindiss): Remove.
262 * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
263 * configure: Regenerate.
264 * doc/cpp.texi: Don't mention BeOS.
265 * doc/extend.texi (interrupt): Don't mention MS1.
266 * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
267 m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
268 alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
269 i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
270 powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
271 Remove.
272 * doc/invoke.texi (MT Options): Remove.
273 (-mwindiss): Remove.
274 (CRIS Options): Remove cris-axis-aout references.
275 (HPPA Options): Don't mention hppa1.1-*-pro.
276 * doc/md.texi: (MorphoTech family): Remove.
277 * libgcc2.c: Don't handle UWIN.
278 * config/alpha/t-unicosmk: Remove.
279 * config/alpha/unicosmk.h: Remove.
280 * config/arm/kaos-arm.h: Remove.
281 * config/arm/kaos-strongarm.h: Remove.
282 * config/arm/strongarm-coff.h: Remove.
283 * config/arm/strongarm-elf.h: Remove.
284 * config/arm/strongarm-pe.h: Remove.
285 * config/arm/t-strongarm-pe: Remove.
286 * config/arm/t-xscale-coff: Remove.
287 * config/arm/t-xscale-elf: Remove.
288 * config/arm/xscale-coff.h: Remove.
289 * config/arm/xscale-elf.h: Remove.
290 * config/chorus.h: Remove.
291 * config/cris/aout.h: Remove.
292 * config/cris/aout.opt: Remove.
293 * config/cris/t-aout: Remove.
294 * config/i386/beos-elf.h: Remove.
295 * config/i386/kaos-i386.h: Remove.
296 * config/i386/ptx4-i.h: Remove.
297 * config/i386/sco5.h: Remove.
298 * config/i386/sco5.opt: Remove.
299 * config/i386/sysv4-cpp.h: Remove.
300 * config/i386/sysv5.h: Remove.
301 * config/i386/t-beos: Remove.
302 * config/i386/t-sco5: Remove.
303 * config/i386/t-uwin: Remove.
304 * config/i386/uwin.asm: Remove.
305 * config/i386/uwin.h: Remove.
306 * config/kaos.h: Remove.
307 * config/mips/windiss.h: Remove.
308 * config/mt: Remove directory.
309 * config/pa/pa-osf.h: Remove.
310 * config/pa/pa-pro-end.h: Remove.
311 * config/pa/t-pro: Remove.
312 * config/ptx4.h: Remove.
313 * config/rs6000/beos.h: Remove.
314 * config/rs6000/kaos-ppc.h: Remove.
315 * config/rs6000/t-beos: Remove.
316 * config/rs6000/windiss.h: Remove.
317 * config/sh/kaos-sh.h: Remove.
318 * config/sol2-6.h: Remove.
319 * config/sparc/sol26-sld.h: Remove.
320 * config/sparc/sysv4-only.h: Remove.
321 * config/vax/bsd.h: Remove.
322 * config/vax/t-memfuncs: Remove.
323 * config/vax/ultrix.h: Remove.
324 * config/vax/vaxv.h: Remove.
325 * config/windiss.h: Remove.
326
327 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
328
329 PR rtl-optimization/36438
330 * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
331 for vector shifts with constant scalar shift operands.
332
333 2008-06-06 Sandip Matte <sandip@rmicorp.com>
334
335 * doc/invoke.texi: Document -march=xlr.
336 * config/mips/xlr.md: New file.
337 * config/mips/mips.md: Include it.
338 (cpu): Add "xlr".
339 * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
340 * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
341 (mips_rtx_cost_data): Likewise.
342
343 2008-06-06 Nathan Froyd <froydnj@codesourcery.com>
344
345 * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
346 PRE_INC and PRE_DEC cases.
347
348 2008-06-06 Jakub Jelinek <jakub@redhat.com>
349
350 PR rtl-optimization/36419
351 * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
352 the emitting jump insn.
353
354 PR target/36362
355 * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
356 is not bool, boolify the whole *expr_p and convert to the desired type.
357
358 2008-06-06 Jakub Jelinek <jakub@redhat.com>
359
360 * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
361 * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
362 Add omp_private_outer_ref hook, add another argument to
363 omp_clause_default_ctor hook.
364 * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
365 (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
366 (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
367 hook_tree_tree_tree_tree_null.
368 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
369 LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
370 * hooks.c (hook_tree_tree_tree_tree_null): New function.
371 * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
372 * tree.def (OMP_TASK): New tree code.
373 * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
374 OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
375 OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
376 OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
377 OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
378 OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
379 OMP_CLAUSE_COLLAPSE_EXPR): Define.
380 (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
381 (OMP_DIRECTIVE_P): Add OMP_TASK.
382 (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
383 (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
384 * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
385 and OMP_CLAUSE_UNTIED entries.
386 (omp_clause_num_ops): Likewise. Increase OMP_CLAUSE_LASTPRIVATE
387 num_ops to 2.
388 (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
389 Walk OMP_CLAUSE_LASTPRIVATE_STMT.
390 * tree-pretty-print.c (dump_omp_clause): Handle
391 OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
392 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
393 (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
394 * c-omp.c (c_finish_omp_for): Allow pointer iterators. Remove
395 warning about unsigned iterators. Change decl/init/cond/incr
396 arguments to TREE_VECs, check arguments for all collapsed loops.
397 (c_finish_omp_taskwait): New function.
398 (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
399 ws_clauses.
400 * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops. Call
401 default_function_array_conversion on init. Add par_clauses argument.
402 If decl is present in parallel's lastprivate clause, change it to
403 shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
404 Add clauses argument, on success set OMP_FOR_CLAUSES to it. Look up
405 collapse count in clauses.
406 (c_parser_omp_for, c_parser_omp_parallel): Adjust
407 c_parser_omp_for_loop callers.
408 (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
409 (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
410 (c_parser_omp_clause_name): Handle collapse and untied clauses.
411 (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
412 functions.
413 (c_parser_omp_clause_schedule): Handle schedule(auto).
414 Include correct location in the error message.
415 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
416 and PRAGMA_OMP_CLAUSE_UNTIED.
417 (OMP_TASK_CLAUSE_MASK): Define.
418 (c_parser_omp_task, c_parser_omp_taskwait): New functions.
419 (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
420 * tree-nested.c (convert_nonlocal_omp_clauses,
421 convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
422 OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
423 OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
424 Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
425 OMP_CLAUSE_DECL.
426 (conver_nonlocal_reference, convert_local_reference,
427 convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL. Use
428 OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
429 (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
430 * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
431 * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
432 * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
433 (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
434 * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
435 (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
436 OMP_CLAUSE_UNTIED.
437 * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
438 * c-common.h (c_finish_omp_taskwait): New prototype.
439 * gimple-low.c (lower_stmt): Handle OMP_TASK.
440 * tree-parloops.c (create_parallel_loop): Create 1 entry
441 vectors for OMP_FOR_{INIT,COND,INCR}.
442 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
443 (make_edges): Handle OMP_TASK.
444 * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
445 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
446 * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
447 * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
448 BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
449 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
450 BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
451 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
452 * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
453 BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
454 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
455 BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
456 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
457 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
458 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
459 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
460 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
461 BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
462 BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
463 BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
464 BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
465 BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
466 BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
467 BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
468 BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
469 * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
470 handle POINTER_PLUS_EXPR. If loop counter has been replaced and
471 original iterator is present in lastprivate clause or if
472 collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT. Handle collapsed
473 OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
474 (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
475 (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
476 (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
477 if it is set, lookup var in outer contexts too. Handle
478 OMP_CLAUSE_DEFAULT_FIRSTPRIVATE. Handle vars that are supposed
479 to be implicitly determined firstprivate for task regions.
480 (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
481 if it is set, lookup var in outer contexts too. Set
482 OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
483 Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
484 OMP_CLAUSE_UNTIED. Take region_type as last argument
485 instead of in_parallel and in_combined_parallel.
486 (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
487 Adjust callers.
488 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
489 GOVD_PRIVATE_OUTER_REF is set. Call omp_finish_clause langhook.
490 (new_omp_context): Set default_kind to
491 OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
492 (omp_region_type): New enum.
493 (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
494 fields, add region_type.
495 (new_omp_context): Take region_type as argument instead of is_parallel
496 and is_combined_parallel.
497 (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
498 omp_is_private, omp_check_private): Adjust ctx->is_parallel and
499 ctx->is_combined_parallel checks.
500 (gimplify_omp_task): New function.
501 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
502 OMP_CLAUSE_UNTIED.
503 * omp-low.c (extract_omp_for_data): Use schedule(static)
504 for schedule(auto). Handle pointer and unsigned iterators.
505 Compute fd->iter_type. Handle POINTER_PLUS_EXPR increments.
506 Add loops argument. Extract data for collapsed OMP_FOR loops.
507 (expand_parallel_call): Assert sched_kind isn't auto,
508 map runtime schedule to index 3.
509 (struct omp_for_data_loop): New type.
510 (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
511 Add loop, loops, collapse and iter_type fields.
512 (workshare_safe_to_combine_p): Disallow combined for if
513 iter_type is unsigned long long. Don't combine collapse > 1 loops
514 unless all bounds and steps are constant. Adjust extract_omp_for_data
515 caller.
516 (expand_omp_for_generic): Handle pointer, unsigned and long long
517 iterators. Handle collapsed OMP_FOR loops. Adjust
518 for struct omp_for_data changes. If libgomp function doesn't return
519 boolean_type_node, add comparison of the return value with 0.
520 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
521 pointer, unsigned and long long iterators. Adjust for struct
522 omp_for_data changes.
523 (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
524 to index 3. Use GOMP_loop_ull*{start,next} if iter_type is
525 unsigned long long. Allocate loops array, pass it to
526 extract_omp_for_data. For collapse > 1 loops use always
527 expand_omp_for_generic.
528 (omp_context): Add sfield_map and srecord_type fields.
529 (is_task_ctx, lookup_sfield): New functions.
530 (use_pointer_for_field): Use is_task_ctx helper. Change first
531 argument's type from const_tree to tree. Clarify comment.
532 In OMP_TASK disallow copy-in/out sharing.
533 (build_sender_ref): Call lookup_sfield instead of lookup_field.
534 (install_var_field): Add mask argument. Populate both record_type
535 and srecord_type if needed.
536 (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
537 in srecord_type.
538 (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
539 and DECL_FIELD_OFFSET.
540 (scan_sharing_clauses): Adjust install_var_field callers. For
541 firstprivate clauses on explicit tasks allocate the var by value in
542 record_type unconditionally, rather than by reference.
543 Handle OMP_CLAUSE_PRIVATE_OUTER_REF. Scan OMP_CLAUSE_LASTPRIVATE_STMT.
544 Use is_taskreg_ctx instead of is_parallel_ctx.
545 Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
546 (create_omp_child_function_name): Add task_copy argument, use
547 *_omp_cpyfn* names if it is true.
548 (create_omp_child_function): Add task_copy argument, if true create
549 *_omp_cpyfn* helper function.
550 (scan_omp_parallel): Adjust create_omp_child_function callers.
551 Rename parallel_nesting_level to taskreg_nesting_level.
552 (scan_omp_task): New function.
553 (lower_rec_input_clauses): Don't run constructors for firstprivate
554 explicit task vars which are initialized by *_omp_cpyfn*.
555 Pass outer var ref to omp_clause_default_ctor hook if
556 OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
557 Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
558 OMP_CLAUSE_REDUCTION_INIT.
559 (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
560 avoid duplicate setting of fields. Handle
561 OMP_CLAUSE_PRIVATE_OUTER_REF.
562 (lower_send_shared_vars): Use srecord_type if non-NULL. Don't
563 copy-out if TREE_READONLY, only copy-in.
564 (expand_task_copyfn): New function.
565 (expand_task_call): New function.
566 (struct omp_taskcopy_context): New type.
567 (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
568 New functions.
569 (lower_omp_parallel): Rename to...
570 (lower_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
571 Call create_task_copyfn if srecord_type is needed. Adjust
572 sender_decl type.
573 (task_shared_vars): New variable.
574 (check_omp_nesting_restrictions): Warn if work-sharing,
575 barrier, master or ordered region is closely nested inside OMP_TASK.
576 Add warnings for barrier if closely nested inside of work-sharing,
577 ordered, or master region.
578 (scan_omp_1): Call check_omp_nesting_restrictions even for
579 GOMP_barrier calls. Rename parallel_nesting_level to
580 taskreg_nesting_level. Handle OMP_TASK.
581 (lower_lastprivate_clauses): Even if some lastprivate is found on a
582 work-sharing construct, continue looking for them on parent parallel
583 construct.
584 (lower_omp_for_lastprivate): Add lastprivate clauses
585 to the beginning of dlist rather than end. Adjust for struct
586 omp_for_data changes.
587 (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
588 not after it. Handle collapsed OMP_FOR loops, adjust for
589 OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
590 (get_ws_args_for): Adjust extract_omp_for_data caller.
591 (scan_omp_for): Handle collapsed OMP_FOR
592 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
593 (lower_omp_single_simple): If libgomp function doesn't return
594 boolean_type_node, add comparison of the return value with 0.
595 (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
596 loops, adjust for OMP_FOR_{INIT,COND,INCR} changes. Handle OMP_TASK.
597 (parallel_nesting_level): Rename to...
598 (taskreg_nesting_level): ... this.
599 (is_taskreg_ctx): New function.
600 (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
601 of is_parallel_ctx.
602 (execute_lower_omp): Rename parallel_nesting_level to
603 taskreg_nesting_level.
604 (expand_omp_parallel): Rename to...
605 (expand_omp_taskreg): ... this. Use OMP_TASKREG_* macros where needed.
606 Call omp_task_call for OMP_TASK regions.
607 (expand_omp): Adjust caller, handle OMP_TASK.
608 (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
609
610 * bitmap.c (bitmap_default_obstack_depth): New variable.
611 (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
612 if argument is NULL and bitmap_default_obstack is already initialized.
613 * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
614 at the end.
615 * matrix-reorg.c (matrix_reorg): Likewise.
616
617 2008-06-06 Uros Bizjak <ubizjak@gmail.com>
618
619 * config/i386/i386.md (*indirect_jump): Macroize using P
620 mode iterator. Remove !TARGET_64BIT from insn constraints.
621 (*tablejump_1): Ditto.
622 (*indirect_jump_rex64): Remove insn pattern.
623 (*tablejump_1_rex64): Ditto.
624 (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
625 and eh_return_si insn patterns.
626
627 2008-06-06 Richard Guenther <rguenther@suse.de>
628
629 * tree-ssa-structalias.c (merge_smts_into): Remove.
630 (find_what_p_points_to): Do not bother to compute the
631 points-to set for pt_anything pointers.
632 * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
633 for pt_anything pointers is ok.
634
635 2008-06-06 Jan Hubicka <jh@suse.cz>
636
637 * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
638
639 2008-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
640
641 * cgraph.c: Fix typos in comments.
642 (cgraph_availability_names): Fix string typo.
643 * fold-const.c: Fix typos in comments.
644 (fold_binary): Fix typo in warning.
645 * genautomata.c: Fix typos in comments.
646 (check_presence_pattern_sets): Fix typo in local variable.
647 (output_description): Fix typo in output.
648 * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
649 * hwint.h: Likewise.
650 * matrix-reorg.c (check_allocation_function): Likewise.
651 * omega.c (smooth_weird_equations): Likewise.
652 * auto-inc-dec.c: Fix typos in comments.
653 * bb-reorder.c: Likewise.
654 * builtins.c: Likewise.
655 * c-common.c: Likewise.
656 * c-cppbuiltin.c: Likewise.
657 * c-parser.c: Likewise.
658 * c-pretty-print.c: Likewise.
659 * cfgcleanup.c: Likewise.
660 * cfgexpand.c: Likewise.
661 * cfghooks.c: Likewise.
662 * cfglayout.c: Likewise.
663 * cfgloopmanip.c: Likewise.
664 * cgraphunit.c: Likewise.
665 * coverage.c: Likewise.
666 * dbxout.c: Likewise.
667 * df-byte-scan.c: Likewise.
668 * df-core.c: Likewise.
669 * df-problems.c: Likewise.
670 * df-scan.c: Likewise.
671 * dfp.c: Likewise.
672 * dominance.c: Likewise.
673 * domwalk.c: Likewise.
674 * dse.c: Likewise.
675 * dwarf2out.c: Likewise.
676 * emit-rtl.c: Likewise.
677 * et-forest.c: Likewise.
678 * function.c: Likewise.
679 * function.h: Likewise.
680 * gcc.c: Likewise.
681 * gcov-io.c: Likewise.
682 * gcov.c: Likewise.
683 * gcse.c: Likewise.
684 * genattrtab.c: Likewise.
685 * ggc-page.c: Likewise.
686 * gimplify.c: Likewise.
687 * gthr-lynx.h: Likewise.
688 * haifa-sched.c: Likewise.
689 * ipa-cp.c: Likewise.
690 * ipa-inline.c: Likewise.
691 * ipa-prop.h: Likewise.
692 * ipa-pure-const.c: Likewise.
693 * ipa-struct-reorg.c: Likewise.
694 * ipa-struct-reorg.h: Likewise.
695 * ipa-type-escape.c: Likewise.
696 * ipa.c: Likewise.
697 * loop-doloop.c: Likewise.
698 * mips-tfile.c: Likewise.
699 * mkmap-flat.awk: Likewise.
700 * mkmap-symver.awk: Likewise.
701 * modulo-sched.c: Likewise.
702 * omp-low.c: Likewise.
703 * optabs.c: Likewise.
704 * optabs.h: Likewise.
705 * opts.c: Likewise.
706 * passes.c: Likewise.
707 * postreload-gcse.c: Likewise.
708 * postreload.c: Likewise.
709 * predict.c: Likewise.
710 * pretty-print.h: Likewise.
711 * profile.c: Likewise.
712 * protoize.c: Likewise.
713 * ra-conflict.c: Likewise.
714 * real.c: Likewise.
715 * recog.c: Likewise.
716 * regclass.c: Likewise.
717 * regs.h: Likewise.
718 * reload.c: Likewise.
719 * rtl-error.c: Likewise.
720 * rtlanal.c: Likewise.
721 * scan.h: Likewise.
722 * sched-rgn.c: Likewise.
723 * see.c: Likewise.
724 * stmt.c: Likewise.
725 * target.h: Likewise.
726 * tree-dfa.c: Likewise.
727 * tree-eh.c: Likewise.
728 * tree-flow-inline.h: Likewise.
729 * tree-inline.c: Likewise.
730 * tree-into-ssa.c: Likewise.
731 * tree-loop-distribution.c: Likewise.
732 * tree-nested.c: Likewise.
733 * tree-parloops.c: Likewise.
734 * tree-pass.h: Likewise.
735 * tree-pretty-print.c: Likewise.
736 * tree-profile.c: Likewise.
737 * tree-scalar-evolution.c: Likewise.
738 * tree-sra.c: Likewise.
739 * tree-ssa-alias-warnings.c: Likewise.
740 * tree-ssa-ccp.c: Likewise.
741 * tree-ssa-coalesce.c: Likewise.
742 * tree-ssa-dom.c: Likewise.
743 * tree-ssa-dse.c: Likewise.
744 * tree-ssa-forwprop.c: Likewise.
745 * tree-ssa-live.c: Likewise.
746 * tree-ssa-live.h: Likewise.
747 * tree-ssa-loop-im.c: Likewise.
748 * tree-ssa-loop-ivopts.c: Likewise.
749 * tree-ssa-loop-niter.c: Likewise.
750 * tree-ssa-loop-prefetch.c: Likewise.
751 * tree-ssa-phiopt.c: Likewise.
752 * tree-ssa-phiprop.c: Likewise.
753 * tree-ssa-sccvn.c: Likewise.
754 * tree-ssa-ter.c: Likewise.
755 * tree-ssa-threadupdate.c: Likewise.
756 * tree-ssa.c: Likewise.
757 * tree-vect-analyze.c: Likewise.
758 * tree-vect-transform.c: Likewise.
759 * tree-vectorizer.c: Likewise.
760 * tree-vn.c: Likewise.
761 * tree-vrp.c: Likewise.
762 * tree.c: Likewise.
763 * tree.def: Likewise.
764 * tree.h: Likewise.
765 * unwind-dw2-fde.c: Likewise.
766 * unwind.inc: Likewise.
767 * value-prof.c: Likewise.
768 * vmsdbgout.c: Likewise.
769
770 2008-06-05 David Edelsohn <edelsohn@gnu.org>
771
772 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
773 always place FP constants in the TOC for TARGET_POWERPC64.
774 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
775
776 2008-06-05 Joseph Myers <joseph@codesourcery.com>
777
778 * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
779 * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
780 enable for TARGET_E500_DOUBLE.
781 (*movdd_softfloat32): Also enable for !TARGET_FPRS.
782 * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
783 floating-point modes like integer modes for E500 double.
784 (rs6000_legitimate_offset_address_p): Likewise.
785 (rs6000_legitimize_address): Likewise. Do not allow REG+REG
786 addressing for DDmode for E500 double.
787 (rs6000_hard_regno_nregs): Do not treat decimal floating-point
788 modes as using 64-bits of registers for E500 double.
789 (spe_build_register_parallel): Do not handle DDmode or TDmode.
790 (rs6000_spe_function_arg): Do not handle DDmode or TDmode
791 specially for E500 double.
792 (function_arg): Do not call rs6000_spe_function_arg for DDmode or
793 TDmode for E500 double.
794 (rs6000_gimplify_va_arg): Only handle SDmode in registers
795 specially if TARGET_HARD_FLOAT && TARGET_FPRS.
796 (rs6000_split_multireg_move): Do not handle TDmode specially for
797 E500 double.
798 (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
799 using 64-bit registers for E500 double.
800 (emit_frame_save): Do not handle DDmode specially for E500 double.
801 (gen_frame_mem_offset): Likewise.
802 (rs6000_function_value): Do not call spe_build_register_parallel
803 for DDmode or TDmode.
804 (rs6000_libcall_value): Likewise.
805 * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
806 DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
807 for E500 double.
808
809 2008-06-04 H.J. Lu <hongjiu.lu@intel.com>
810
811 * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
812 in comments.
813
814 2008-06-04 Junjie Gu <jgu@tensilica.com>
815
816 * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
817 comparison for frame pointers.
818
819 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
820
821 PR target/27386
822 * config/avr/avr.h (PUSH_ROUNDING): Remove.
823
824 2008-06-04 Andy Hutchinson <hutchinsonandy@aim.com>
825
826 PR target/30243
827 * builtins.c (expand_builtin_signbit): Don't take lowpart when
828 register is already smaller or equal to required mode.
829
830 2008-06-04 Xinliang David Li <davidxl@google.com>
831
832 * tree-call-cdce.c: New file.
833 (cond_dead_built_in_calls): New static variable.
834 (input_domain): New struct.
835 (check_pow): New function.
836 (check_builtin_call): Ditto.
837 (check_target_format): Ditto.
838 (is_call_dce_candidate): Ditto.
839 (gen_one_condition): Ditto.
840 (gen_conditions_for_domain): Ditto.
841 (get_domain): Ditto.
842 (gen_conditions_for_pow_cst_base): Ditto.
843 (gen_conditions_for_pow_int_base): Ditto.
844 (gen_conditions_for_pow): Ditto.
845 (get_no_error_domain): Ditto.
846 (gen_shrink_wrap_conditions): Ditto.
847 (shrink_wrap_one_built_in_call): Ditto.
848 (shink_wrap_conditional_dead_built_in_calls): Ditto.
849 (tree_call_cdce): Ditto.
850 (gate_call_cdce): Ditto.
851 (pass_call_cdce): New gimple pass.
852 * passes.c: (init_optimization_passes): New pass.
853 * tree-pass.h: New pass declaration.
854 * opts.c (decode_options): New flag setting.
855 * common.opt: Add -ftree-builtin-call-dce flag.
856 * Makefile.in: Add new source file.
857 * tempvar.def: New tv_id.
858 * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
859
860 2008-06-04 Richard Guenther <rguenther@suse.de>
861
862 * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
863 (is_call_clobbered): Always check var_ann->call_clobbered.
864 (mark_call_clobbered): Always set var_ann->call_clobbered.
865 (clear_call_clobbered): Always clear var_ann->call_clobbered.
866 * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
867 (reset_alias_info): Clear call clobbering info on MTAGs and
868 globals as well.
869 (set_pt_anything): Set pt_global_mem.
870 (create_tag_raw): Adjust comment.
871 (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
872
873 2008-06-04 Joseph Myers <joseph@codesourcery.com>
874 Maxim Kuvyrkov <maxim@codesourcery.com>
875
876 * config/m68k/m68k.opt (mxgot): New option.
877 * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
878 (m68k_output_addr_const_extra): New.
879 * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
880 * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
881 * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
882 * doc/invoke.texi (M680x0 Options): Document -mxgot.
883
884 2008-06-04 Richard Guenther <rguenther@suse.de>
885
886 * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
887 negative or non-representable offsets.
888
889 2008-06-03 H.J. Lu <hongjiu.lu@intel.com>
890
891 * config/i386/i386.c (ix86_gen_leave): New.
892 (ix86_gen_pop1): Likewise.
893 (ix86_gen_add3): Likewise.
894 (ix86_gen_sub3): Likewise.
895 (ix86_gen_sub3_carry): Likewise.
896 (ix86_gen_one_cmpl2): Likewise.
897 (ix86_gen_monitor): Likewise.
898 (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
899 ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
900 ix86_gen_one_cmpl2 and ix86_gen_monitor.
901 (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
902 (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
903 mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
904 (ix86_expand_epilogue): Updated.
905 (print_operand): Handle integer register operand for 'z'.
906 (ix86_expand_strlensi_unroll_1): Likewise.
907 (ix86_expand_strlen): Likewise.
908 (ix86_expand_builtin): Likewise.
909 (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
910 mov{q}/mov{l} and add{q}/add{l}.
911
912 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
913
914 * config/i386/i386.md (P): New mode iterator.
915 (SFmode push_operand splitter): Macroize DImode and SImode pushes
916 using P mode iterator.
917 (DFmode push_operand splitter): Ditto.
918 (XFmode push_operand splitter): Ditto.
919 (DFmode float_extend SFmode push_operand splitter): Ditto.
920 (XFmode float_extend SFmode push_operand splitter): Do not generate
921 SImode pushes for 64bit target. Macroize Dimode and SImode
922 pushes using P mode iterator.
923 (XFmode float_extend DFmode push_operand splitter): Ditto.
924
925 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
926
927 * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
928 * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
929 * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
930 return type to int.
931 (ix86_call_abi_override): Remove check for call_used_regs.
932
933 2008-06-03 Richard Guenther <rguenther@suse.de>
934
935 * tree-ssa-structalias.c (find_func_aliases): Add constraints
936 for the lhs of calls if the return type contains pointers.
937
938 2008-06-03 Kai Tietz <kai.tietz@onevision.com>
939
940 * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
941 * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
942 * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
943 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
944 of cfun and DEFAULT_ABI to deceide abi mode.
945 (DEFAULT_ABI): New.
946 (REG_PARM_STACK_SPACE): Removed.
947 (OUTGOING_REG_PARM_STACK_SPACE): Removed.
948 (STACK_BOUNDARY): Use default target to deceide stack boundary.
949 * config/i386/i386-protos.h (ix86_cfun_abi): New.
950 (ix86_function_abi): Likewise.
951 (ix86_function_type_abi): Likewise.
952 (ix86_call_abi_override): Likewise.
953 * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
954 specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
955 * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
956 (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
957 specific defines.
958 (X86_64_REGPARM_MAX): New.
959 (X86_64_SSE_REGPARM_MAX): New.
960 (X64_REGPARM_MAX): New.
961 (X64_SSE_REGPARM_MAX): New.
962 (X86_32_REGPARM_MAX): New.
963 (X86_32_SSE_REGPARM_MAX): New.
964 (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
965 (ix86_function_regparm): Handle user calling abi.
966 (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
967 by DEFAULT_ABI versus SYSV_ABI check.
968 (ix86_reg_parm_stack_space): New.
969 (ix86_function_type_abi): New.
970 (ix86_call_abi_override): New.
971 (ix86_function_abi): New.
972 (ix86_cfun_abi): New.
973 (init_cumulative_args): Call abi specific initialization.
974 (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
975 (function_arg_64): Extend SSE_REGPARM_MAX check.
976 (function_arg (): Remove TARGET_64BIT_MS_ABI.
977 (ix86_pass_by_reference): Likewise.
978 (ix86_function_value_regno_p): Likewise.
979 (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
980 (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
981 (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
982 (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
983 (setup_incoming_varargs_64): Adjust regparm for call abi.
984 (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
985 (ix86_va_start): Likewise.
986 (ix86_gimplify_va_arg): Likewise.
987 (ix86_expand_prologue): Likewise.
988 (output_pic_addr_const): Likewise.
989 (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
990 (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
991 (x86_output_mi_thunk): Likewise.
992 (x86_function_profiler): Likewise.
993 * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
994 (SYSV_ABI, MS_ABI): New constants.
995 (DEFAULT_ABI): New.
996 (init_regs): Add prototype of function in regclass.c file.
997 (OVERRIDE_ABI_FORMAT): New.
998 (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
999 (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
1000 (OUTGOING_REG_PARM_STACK_SPACE): New.
1001 (ix86_reg_parm_stack_space): New prototype.
1002 (CUMULATIVE_ARGS): Add call_abi member.
1003 (machine_function): Add call_abi member.
1004 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
1005 TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
1006
1007 2008-06-02 Andy Hutchinson <hutchinsonandy@aim.com>
1008
1009 PR target/34879
1010 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
1011 (avr_builtin_setjmp_frame_value): New function.
1012 * config/avr/avr.md (nonlocal_goto_receiver): Define.
1013 (nonlocal_goto): Define.
1014
1015 2008-06-02 Richard Sandiford <rdsandiford@googlemail.com>
1016
1017 * config/mips/mips.c (mips_emit_loadgp): Return early if
1018 there is nothing do to, otherwise emit a blockage if
1019 !TARGET_EXPLICIT_RELOCS || crtl->profile.
1020 * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
1021
1022 2008-06-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1023
1024 * configure.ac: Drop unneeded backslash ending up in config.in.
1025 * acinclude.m4: Likewise.
1026 * config.in: Regenerate.
1027
1028 2008-05-26 Jan Hubicka <jh@suse.cz>
1029
1030 * predict.c (maybe_hot_frequency_p): Break out of...
1031 (maybe_hot_bb_p): ... here.
1032 (maybe_hot_edge_p): New.
1033 * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
1034 * basic-block.h (maybe_hot_edge_p): Declare.
1035
1036 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
1037
1038 * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
1039 (*cmpfp_<mode>_cc): Ditto.
1040 (*fp_jcc_8<mode>_387): Ditto.
1041 (*fop_<MODEF:mode>_2_i387): Ditto.
1042 (*fop_<MODEF:mode>_3_i387): Ditto.
1043 (*fop_xf_2_i387): Ditto.
1044 (*fop_xf_3_i387): Ditto.
1045
1046 2008-06-02 Tomas Bily <tbily@suse.cz>
1047
1048 * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
1049
1050 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1051
1052 * config/mips/mips.c (mips_valid_offset_p): New function.
1053 (mips_valid_lo_sum_p): Likewise.
1054 (mips_classify_address): Use them.
1055 (mips_force_address): New function.
1056 (mips_legitimize_address): Use it.
1057 * config/mips/mips.md (MOVE128): New mode iterator.
1058 (movtf): Require TARGET_64BIT. Remove empty strings.
1059 (*movtf_internal): Rename to...
1060 (*movtf): ...this and require !TARGET_MIPS16. Use "m" instead
1061 of "R" and use {,fp}{load,store} attributes instead of "multi".
1062 Use a separate define_split.
1063 (*movtf_mips16): New pattern.
1064
1065 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1066
1067 * config/mips/mips-protos.h (mips_expand_before_return): Declare.
1068 * config/mips/mips.c (mips_expand_before_return): New function.
1069 (mips_expand_epilogue): Call it.
1070 * config/mips/mips.md (return): Turn into a define_expand.
1071 (*return): New insn.
1072
1073 2008-06-01 Richard Sandiford <rdsandiford@googlemail.com>
1074
1075 * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
1076 * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
1077 functions. Do not emit uses and clobbers of CONCATs; individually
1078 use and clobber their operands.
1079 * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
1080 gen_clobber, emit_use and gen_use.
1081 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
1082 (expand_builtin_return): Likewise.
1083 * cfgbuild.c (count_basic_blocks): Likewise.
1084 * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
1085 * explow.c (emit_stack_restore): Likewise.
1086 * expmed.c (extract_bit_field_1): Likewise.
1087 * expr.c (convert_move, emit_move_complex_parts): Likewise.
1088 (emit_move_multi_word, store_constructor): Likewise.
1089 * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
1090 (thread_prologue_and_epilogue_insns): Likewise.
1091 * lower-subreg.c (resolve_simple_move): Likewise.
1092 * optabs.c (widen_operand, expand_binop): Likewise.
1093 (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
1094 * reload.c (find_reloads): Likewise.
1095 * reload1.c (eliminate_regs_in_insn): Likewise.
1096 * stmt.c (expand_nl_goto_receiver): Likewise.
1097 * config/alpha/alpha.md (builtin_longjmp): Likewise.
1098 * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
1099 * config/arm/arm.c (arm_load_pic_register): Likewise.
1100 (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
1101 * config/arm/arm.md (untyped_return): Likewise.
1102 * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
1103 * config/avr/avr.c (expand_prologue): Likewise.
1104 * config/bfin/bfin.c (do_unlink): Likewise.
1105 * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
1106 * config/cris/cris.c (cris_expand_prologue): Likewise.
1107 * config/darwin.c (machopic_indirect_data_reference): Likewise.
1108 (machopic_legitimize_pic_address): Likewise.
1109 * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
1110 (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
1111 * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
1112 (ix86_expand_convert_uns_didf_sse): Likewise.
1113 (ix86_expand_vector_init_general): Likewise.
1114 * config/ia64/ia64.md (eh_epilogue): Likewise.
1115 * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
1116 * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
1117 * config/m32r/m32r.c (m32r_reload_lr): Likewise.
1118 (config/iq2000/iq2000.c): Likewise.
1119 * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
1120 (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
1121 (builtin_longjmp): Likewise.
1122 * config/mn10300/mn10300.md (call, call_value): Likewise.
1123 * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
1124 * config/pdp11/pdp11.md (abshi2): Likewise.
1125 * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
1126 * config/s390/s390.c (s390_emit_prologue): Likewise.
1127 * config/s390/s390.md (movmem_long, setmem_long): Likewise.
1128 (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
1129 (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
1130 * config/sh/sh.c (prepare_move_operands): Likewise.
1131 (output_stack_adjust, sh_expand_epilogue): Likewise.
1132 (sh_set_return_address, sh_expand_t_scc): Likewise.
1133 * config/sparc/sparc.c (load_pic_register): Likewise.
1134 * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
1135 * config/spu/spu.c (spu_expand_epilogue): Likewise.
1136 * config/v850/v850.c (expand_epilogue): Likewise.
1137
1138 2008-05-31 Anatoly Sokolov <aesok@post.ru>
1139
1140 * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
1141 (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
1142 (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
1143 * config/avr/avr.c (expand_prologue, expand_epilogue): Use
1144 movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
1145 stack pointer register.
1146 (output_movhi): Remove code for interrupt specific writing to the
1147 stack pointer register.
1148
1149 2008-05-31 Richard Guenther <rguenther@suse.de>
1150
1151 PR tree-optimization/34244
1152 * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
1153 (tree_expr_nonzero_warnv_p): Likewise.
1154 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
1155 ssa_name_nonnegative_p.
1156 (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
1157 (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
1158 not tree_expr_nonzero_warnv_p.
1159
1160 PR tree-optimization/36262
1161 Revert
1162 2007-11-29 Zdenek Dvorak <ook@ucw.cz>
1163
1164 PR tree-optimization/34244
1165 * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
1166 (record_numbers_of_iterations): New function.
1167 (execute_vrp): Cache the numbers of iterations of loops.
1168 * tree-scalar-evolution.c (scev_reset_except_niters):
1169 New function.
1170 (scev_reset): Use scev_reset_except_niters.
1171 * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
1172
1173 2008-05-31 Bernd Schmidt <bernd.schmidt@analog.com>
1174
1175 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1176 __WORKAROUND_RETS when appropriate.
1177
1178 2008-05-31 Uros Bizjak <ubizjak@gmail.com>
1179
1180 * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
1181 *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
1182 mode iterator.
1183 (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
1184 *fop_df_comm_sse insn patterns using MODEF mode iterator.
1185 (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
1186 *fop_df_comm_i387 insn patterns using MODEF mode iterator.
1187 (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
1188 *fop_df_1_mixed insn patterns using MODEF mode iterator.
1189 (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
1190 *fop_df_1_sse insn patterns using MODEF mode iterator.
1191 (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
1192 *fop_df_1_i387 insn patterns using MODEF mode iterator.
1193 (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
1194 *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
1195 (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
1196 *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
1197 (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
1198 (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
1199 (*fop_xf_4_i387): Use <MODE> for mode attribute.
1200 (*fop_xf_5_i387): Ditto.
1201 (*fop_xf_6_i387): Ditto.
1202
1203 2008-05-30 Richard Guenther <rguenther@suse.de>
1204
1205 * builtins.c (build_string_literal): Avoid generating
1206 a non-gimple_val result.
1207
1208 2008-05-30 DJ Delorie <dj@redhat.com>
1209
1210 * exec-tool.in: Use an environment variable (private) instead of a
1211 file (shared) as a semaphore, so as to not break parallel builds.
1212
1213 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1214
1215 * optabs.c (maybe_encapsulate_block): Remove.
1216 (emit_libcall_block): Adjust accordingly.
1217 * optabs.h (maybe_encapsulate_block): Remove prototype.
1218
1219 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
1220 Don't use maybe_encapsulate_block.
1221
1222 2008-05-30 Steven Bosscher <stevenb.gcc@gmail.com>
1223
1224 * config/rs6000/rs6000.c (rs6000_legitimize_address,
1225 rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
1226 rtx is a SYMBOL_REF before calling get_pool_constant.
1227
1228 2008-05-30 Eric Botcazou <ebotcazou@adacore.com>
1229
1230 * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
1231
1232 2008-05-30 Danny Smith <dannysmith@users.sourceforge.net>
1233
1234 * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
1235 rather than OS names to choose INO_T_EQ definition.
1236 (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
1237 (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
1238
1239 2008-05-29 Daniel Franke <franke.daniel@gmail.com>
1240
1241 PR target/36348
1242 * config/darwin-f.c: New.
1243 * config/t-darwin: Added rule to build darwin-f.o.
1244 * config.gcc: Defined new variable, fortran_target_objs.
1245 (*-*-darwin*): Set fortran_target_objs.
1246 * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
1247 * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
1248 * configure: Regenerated.
1249
1250 2008-05-29 H.J. Lu <hongjiu.lu@intel.com>
1251
1252 PR target/35771
1253 * config/i386/i386.c (ix86_function_arg_boundary): Convert to
1254 canonical type if needed.
1255
1256 2008-05-29 Eric Botcazou <ebotcazou@adacore.com>
1257
1258 * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
1259
1260 2008-05-29 Richard Guenther <rguenther@suse.de>
1261
1262 PR tree-optimization/36343
1263 PR tree-optimization/36346
1264 PR tree-optimization/36347
1265 * tree-flow.h (clobber_what_p_points_to): Declare.
1266 * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
1267 pointed-to variable is dereferenced is irrelevant to whether
1268 the pointer can access the pointed-to variable.
1269 (clobber_what_p_points_to): New function.
1270 * tree-ssa-alias.c (set_initial_properties): Use it.
1271 * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
1272 call clobber check for NMTs.
1273
1274 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1275
1276 * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
1277 for printing gcov_type.
1278
1279 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1280
1281 * tree-ssa-propagate.c (set_rhs): Preserve the histogram
1282 and the eh region information.
1283 * value-prof.c (gimple_move_stmt_histograms): New function.
1284 * value-prof.h (gimple_move_stmt_histograms): New function declaration.
1285
1286 2008-05-28 Andreas Tobler <a.tobler@schweiz.org>
1287
1288 * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
1289
1290 2008-05-28 Seongbae Park <seongbae.park@gmail.com>
1291
1292 * value-prof.c (tree_ic_transform): Print counts.
1293 * tree-profile.c (tree_gen_ic_func_profiler):
1294 Clear __gcov_indreict_call_callee variable to avoid misattribution
1295 of the profile.
1296
1297 2008-05-28 Rafael Espindola <espindola@google.com>
1298
1299 * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
1300 invalid sharing.
1301
1302 2008-05-28 Richard Guenther <rguenther@suse.de>
1303
1304 PR tree-optimization/36339
1305 * tree-ssa-alias.c (set_initial_properties): Move pt_anything
1306 and clobbering code out of the loop.
1307
1308 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
1309
1310 * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
1311 letters defined.
1312
1313 * config/s390/s390.c (s390_compare_and_branch_condition_mask,
1314 s390_contiguous_bitmask_p, s390_symref_operand_p,
1315 s390_check_symref_alignment, s390_reload_larl_operand,
1316 s390_reload_symref_address): New functions.
1317 (s390_branch_condition_mnemonic): Support compare and branch
1318 instructions.
1319 (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
1320 and 'W' constraints.
1321 (s390_secondary_reload): Add secondary reloads for unaligned
1322 symbol refs or symbol refs to floating point or QI/TI mode
1323 integer values.
1324 (legitimate_address_p): Accept symbol references as addresses.
1325 (s390_expand_insv): Use rotate and insert selected bits
1326 instruction for insv when building for z10.
1327 (print_operand_address): Handle symbol ref addresses.
1328 (print_operand): Output modifier 'c' added for signed byte values.
1329 (s390_encode_section_info): Mark symbol refs with
1330 SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
1331
1332 * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
1333 (length attribute): RRF, RRR have 4 byte length.
1334 (FPALL, INTALL): New mode iterators added.
1335 (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
1336 *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
1337 *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
1338 *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
1339 *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
1340 *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
1341 *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
1342 *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
1343 instructions.
1344 (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
1345 *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
1346 *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
1347 reload<INTALL:mode><P:mode>_toreg_z10,
1348 reload<FPALL:mode><P:mode>_tomem_z10,
1349 reload<FPALL:mode><P:mode>_toreg_z10,
1350 reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
1351 *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
1352 *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
1353 *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
1354 definition.
1355 (movmem, clrmem, cmpmem): New splitters added.
1356
1357 * config/s390/predicates.md (larl_operand): Use
1358 SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
1359 SYMBOL_REF_ALIGN1_P.
1360 (s390_signed_integer_comparison,
1361 s390_unsigned_integer_comparison): New predicates.
1362
1363 * config/s390/s390-protos.h (s390_check_symref_alignment,
1364 s390_contiguous_bitmask_p, s390_reload_larl_operand,
1365 s390_reload_symref_address,
1366 s390_compare_and_branch_condition_mask): Prototypes added.
1367
1368 * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
1369 SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
1370 SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
1371
1372 2008-05-28 Andreas Krebbel <krebbel1@de.ibm.com>
1373
1374 * config/s390/s390.c (z10_cost): New cost function for z10.
1375 (s390_handle_arch_option, override_options): Support -march=z10 switch.
1376 (s390_issue_rate): Adjust issue rate for z10.
1377 * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
1378 (processor_flags): Add PF_Z10.
1379 (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
1380 * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
1381 * gcc/config.gcc: Add z10.
1382
1383 2008-05-28 Richard Guenther <rguenther@suse.de>
1384
1385 PR tree-optimization/36291
1386 * tree-flow. h (struct gimple_df): Remove var_anns member.
1387 * tree-flow-inline.h (gimple_var_anns): Remove.
1388 (var_ann): Simplify.
1389 * tree-dfa.c (create_var_ann): Simplify.
1390 (remove_referenced_var): Clear alias info from var_anns of globals.
1391 * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
1392 (delete_tree_ssa): Clear alias info from var_anns of globals.
1393 Do not free var_anns.
1394 (var_ann_eq): Remove.
1395 (var_ann_hash): Likewise.
1396
1397 2008-05-28 Mark Shinwell <shinwell@codesourcery.com>
1398
1399 * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
1400 and loongson2f entries.
1401 (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
1402 * config/mips/mips.h (processor_type): Add Loongson-2E
1403 and Loongson-2F entries.
1404 (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
1405 (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
1406 * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
1407 * doc/invoke.texi (MIPS Options): Document loongson2e
1408 and loongson2f processor names.
1409
1410 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
1411
1412 PR target/35767
1413 PR target/35771
1414 * config/i386/i386.c (ix86_function_arg_boundary): Use
1415 alignment of canonical type.
1416 (ix86_expand_vector_move): Check unaligned memory access for
1417 all SSE modes.
1418
1419 2008-05-27 H.J. Lu <hongjiu.lu@intel.com>
1420
1421 * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
1422 Moved to the front of file.
1423
1424 2008-05-27 Xuepeng Guo <xuepeng.guo@intel.com>
1425 H.J. Lu <hongjiu.lu@intel.com>
1426
1427 * dwarf2out.c (current_fde): New.
1428 (add_cfi): Use it.
1429 (lookup_cfa:): Likewise.
1430 (dwarf2out_end_epilogue): Likewise.
1431 (dwarf2out_note_section_used): Likewise.
1432
1433 2008-05-27 Michael Matz <matz@suse.de>
1434
1435 PR c++/27975
1436 * c.opt (Wenum-compare): New warning option.
1437 * doc/invoke.texi (Warning Options): Document -Wenum-compare.
1438
1439 2008-05-27 Michael Matz <matz@suse.de>
1440
1441 PR middle-end/36326
1442 * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
1443 non-BLKmode types.
1444 * tree-tailcall.c (find_tail_calls): Don't mark calls storing
1445 into memory as tail calls.
1446
1447 2008-05-27 Richard Guenther <rguenther@suse.de>
1448
1449 PR tree-optimization/36339
1450 * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
1451 pointers cause all addressable variables to be call clobbered.
1452
1453 2008-05-27 Richard Guenther <rguenther@suse.de>
1454
1455 PR tree-optimization/36245
1456 * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
1457
1458 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1459
1460 * config/s390/s390.md: Replace all occurences of the 'm'
1461 constraint with 'RT'.
1462
1463 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1464
1465 * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
1466 definitions added.
1467 ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
1468 "*movdi_64".
1469 ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
1470 ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
1471 ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
1472
1473 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1474
1475 * reload.c: (find_reloads): Skip alternatives according to the
1476 "enabled" attribute. Constify the constraint variable.
1477 * recog.c (get_attr_enabled): Add default implementation.
1478 (extract_insn): Set the alternative_enabled_p array
1479 in the recog_data struct.
1480 (preprocess_constraints, constrain_operands): Skip
1481 alternatives according to the "enabled" attribute
1482 * recog.h (struct recog_data): New field alternative_enabled_p.
1483 (skip_alternative): New inline function.
1484 * regclass.c: (record_operand_costs): Check the "enabled" attribute.
1485 (record_reg_classes): Skip alternative according to the
1486 "enabled" attribute.
1487
1488 * doc/md.texi: Add documention for the "enabled" attribute.
1489
1490 2008-05-27 Andreas Krebbel <krebbel1@de.ibm.com>
1491
1492 * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
1493 * postreload.c (reload_cse_simplify_operands): Replace 'm'
1494 constraint with TARGET_MEM_CONSTRAINT.
1495 * recog.c (asm_operand_ok, preprocess_constraints,
1496 constrain_operands): Likewise.
1497 * regclass.c (record_reg_classes): Likewise.
1498 * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
1499 * reload1.c (maybe_fix_stack_asms): Likewise.
1500 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
1501 * recog.h: Adjust comment.
1502 * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
1503 * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
1504 * doc/md.texi: Add a note to description of 'm' constraint.
1505 * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
1506
1507 2008-05-27 Eric Botcazou <ebotcazou@adacore.com>
1508
1509 * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
1510 that the bitfield is of integral type before testing its precision.
1511
1512 2008-05-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
1513 Sa Liu <saliu@de.ibm.com>
1514
1515 * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
1516 __modti3, __udivti3, __umodti3 and __udivmodti4.
1517 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
1518 that implement TImode mul and div functions.
1519 * config/spu/multi3.c: New. Implement __multi3.
1520 * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
1521 * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
1522 functions on SPU.
1523
1524 2008-05-26 Steven Bosscher <stevenb.gcc@gmail.com>
1525
1526 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
1527 new tls_gd_* and tls_ld_* insns instead of an insn sequence.
1528 * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
1529 tls_sysv_suffix): New mode and mode attribute iterators.
1530 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
1531 (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
1532 (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
1533 tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
1534 tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
1535 iterators.
1536
1537 2008-05-26 Eric Botcazou <ebotcazou@adacore.com>
1538
1539 PR tree-optimization/36329
1540 * tree.h (CALL_CANNOT_INLINE_P): Add access check.
1541 * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
1542 * cgraphbuild.c (initialize_inline_failed): Use the latter
1543 macro in lieu of the former.
1544 * ipa-inline.c (cgraph_mark_inline): Likewise.
1545 (cgraph_decide_inlining_of_small_function): Likewise.
1546 (cgraph_decide_inlining): Likewise.
1547 (cgraph_decide_inlining_incrementally): Likewise.
1548
1549 2008-05-26 Tristan Gingold <gingold@adacore.com>
1550 Anatoly Sokolov <aesok@post.ru>
1551
1552 * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
1553 instead of pm_lo8/pm_hi8 to makes this call working on avr6.
1554 * config/avr/avr.c (expand_prologue): Tune "call_prologue"
1555 optimization for 'avr6' architecture.
1556
1557 2008-05-26 Andy Hutchinson <hutchinsonandy@aim.com>
1558
1559 PR target/34932
1560 * config/avr/avr.md (*addhi3_zero_extend2): Remove.
1561
1562 2008-05-26 Richard Guenther <rguenther@suse.de>
1563
1564 * tree-ssa-sccvn.c (expr_has_constants): Declare.
1565 (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
1566
1567 2008-05-26 H.J. Lu <hongjiu.lu@intel.com>
1568
1569 PR middle-end/36253
1570 * caller-save.c (insert_restore): Verify alignment of spill space.
1571 (insert_save): Likewise.
1572 * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
1573 * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
1574 (STACK_SLOT_ALIGNMENT): Likewise.
1575 * function.c (LOCAL_ALIGNMENT): Removed.
1576 (get_stack_local_alignment): New.
1577 (assign_stack_local): Use it. Set alignment on stack slot.
1578 (assign_stack_temp_for_type): Use get_stack_local_alignment.
1579 * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
1580 (STACK_SLOT_ALIGNMENT): New.
1581 * config/i386/i386.c (ix86_local_alignment): Handle caller-save
1582 stack slot in XFmode.
1583
1584 * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
1585
1586 2008-05-26 Kai Tietz <kai.tietz@onevision.com>
1587
1588 PR/36321
1589 * config/i386/i386.md (allocate_stack_worker_64): Make sure
1590 argument operand in rax isn't removed.
1591
1592 2008-05-26 Richard Guenther <rguenther@suse.de>
1593
1594 PR middle-end/36300
1595 * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
1596 not TYPE_UNSIGNED. Use TYPE_PRECISION instead of GET_MODE_SIZE.
1597
1598 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1599
1600 PR bootstrap/36331
1601 * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
1602
1603 2008-05-26 Dominique Dhumieres <dominiq@lps.ens.fr>
1604
1605 * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
1606 * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
1607
1608 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1609
1610 * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
1611 build a trampoline if we don't want one.
1612 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
1613 return zero for nested functions if we don't want a trampoline.
1614
1615 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1616
1617 * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
1618
1619 2008-05-26 Daniel Franke <franke.daniel@gmail.com>
1620
1621 PR fortran/18428
1622 * c.opt: Removed undocumented option '-lang-fortran'.
1623 * c-common.h: Removed global variable 'lang_fortran'.
1624 * c-opts.c (c_common_handle_option): Removed code to handle
1625 option '-lang-fortran'. Updated includes.
1626 * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
1627 definition of '__GFORTRAN__'.
1628 (define__GNUC__): Reimplemented to use BASEVER and
1629 cpp_define_formatted.
1630 (builtin_define_with_value_n): Removed.
1631 * c-incpath.h: Renamed to ...
1632 * incpath.h: ... this.
1633 * c-incpath.c: Renamed to ...
1634 * incpath.c: ... this. Updated includes.
1635 * fix-header.c: Updated includes.
1636 * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
1637 (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
1638 (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
1639
1640 2008-05-25 Eric Botcazou <ebotcazou@adacore.com>
1641
1642 * tree.h: Update the table of flags used on tree nodes.
1643 (TREE_NO_TRAMPOLINE): New accessor for static_flag.
1644 (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
1645 (FORCED_LABEL): Add access check.
1646 (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
1647 (ASM_INPUT_P): Likewise.
1648 (ASM_VOLATILE_P): Likewise.
1649 (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
1650 (OMP_SECTION_LAST): Access private_flag directly.
1651 (OMP_RETURN_NOWAIT): Likewise.
1652 (OMP_PARALLEL_COMBINED): Likewise.
1653 (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
1654 (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
1655 * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
1656 deprecated_flag directly.
1657
1658 2008-05-25 H.J. Lu <hongjiu.lu@intel.com>
1659
1660 * final.c (frame_pointer_needed): Removed.
1661 * flags.h (frame_pointer_needed): Likewise.
1662
1663 * function.h (rtl_data): Add frame_pointer_needed.
1664 (frame_pointer_needed): New.
1665
1666 2008-05-25 Arthur Loiret <arthur.loiret@u-psud.fr>
1667
1668 * config.gcc (sh2[lbe]*-*-linux*): Allow target.
1669
1670 2008-05-25 Steven Bosscher <stevenb.gcc@gmail.com>
1671
1672 * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
1673 SRC is a REG.
1674
1675 2008-05-25 Alan Modra <amodra@bigpond.net.au>
1676
1677 * c-common.c (strip_array_types): Move function to..
1678 * tree.c: ..here.
1679 (get_inner_array_type): Delete.
1680 * c-common.h (strip_array_types): Move declaration to..
1681 * tree.h: ..here.
1682 (get_inner_array_type): Delete.
1683 * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
1684 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
1685 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
1686 * config/pa/pa.c (emit_move_sequence): Likewise.
1687
1688 2008-05-24 H.J. Lu <hongjiu.lu@intel.com>
1689
1690 * config/i386/i386.md (*sse_prologue_save_insn): Set length
1691 attribute to 34.
1692
1693 2008-05-24 Andy Hutchinson <hutchinsonandy@aim.com>
1694
1695 * function.c: Include target hook for nonlocal_goto frame value.
1696
1697 2008-05-24 Richard Guenther <rguenther@suse.de>
1698
1699 * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
1700 variable can be only accessed through a pointer or a union.
1701
1702 2008-05-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1703
1704 * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
1705 * doc/extend.texi: Likewise.
1706
1707 2008-05-23 DJ Delorie <dj@redhat.com>
1708
1709 * config/m32c/jump.md (untyped_call): Add.
1710
1711 * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
1712 for A24 to PSImode.
1713 (m32c_address_cost): Detail costs for indirect offsets.
1714
1715 2008-05-23 Rafael Espindola <espindola@google.com>
1716
1717 * see.c (see_get_extension_data): Don't use SUBREG_REG to test
1718 if a node is a SUBREG.
1719 (see_analyze_one_def): Don't use SUBREG_REG to test if a node
1720 is a SUBREG.
1721
1722 2008-05-23 Paul Brook <paul@codesourcery.com>
1723 Carlos O'Donell <carlos@codesourcery.com>
1724
1725 * doc/extend.texi: Clarify use of __attribute__((naked)).
1726 * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
1727 * target.h (gcc_target): Add allocate_stack_slots_for_args.
1728 * function.c (use_register_for_decl): Use
1729 targetm.calls.allocate_stack_slots_for_args.
1730 * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
1731 * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
1732 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
1733
1734 2008-05-23 Eric Botcazou <ebotcazou@adacore.com>
1735
1736 * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
1737
1738 2008-05-23 Steven Munroe <sjmunroe@us.ibm.com>
1739
1740 * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
1741 PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
1742 is only rounded once.
1743
1744 2008-05-23 Richard Guenther <rguenther@suse.de>
1745
1746 * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
1747
1748 2008-05-23 Uros Bizjak <ubizjak@gmail.com>
1749 Jakub Jelinek <jakub@redhat.com>
1750
1751 PR target/36079
1752 * configure.ac: Handle --enable-cld.
1753 * configure: Regenerated.
1754 * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
1755 * config/i386/i386.h (struct machine_function): Add needs_cld field.
1756 (ix86_current_function_needs_cld): New define.
1757 * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
1758 (cld): New isns pattern.
1759 (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
1760 cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
1761 * config/i386/i386.opt (mcld): New option.
1762 * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
1763 TARGET_CLD and ix86_current_function_needs_cld.
1764 (override_options): Use -mcld by default for 32-bit code if
1765 USE_IX86_CLD.
1766
1767 * doc/install.texi (Options specification): Document --enable-cld.
1768 * doc/invoke.texi (Machine Dependent Options)
1769 [i386 and x86-64 Options]: Add -mcld option.
1770 (Intel 386 and AMD x86-64 Options): Document -mcld option.
1771
1772 2008-05-23 Kai Tietz <kai.tietz@onevison.com>
1773 * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
1774 (return_in_memory_64): Likewise.
1775 (return_in_memory_ms_64): Likewise.
1776
1777 2008-05-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1778
1779 * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
1780 * builtins.c (fold_builtin_fpclassify): New.
1781 (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
1782 * builtins.def (BUILT_IN_FPCLASSIFY): New.
1783 * c-common.c (handle_type_generic_attribute): Adjust to accept
1784 fixed arguments before an elipsis.
1785 (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
1786 * doc/extend.texi: Document __builtin_fpclassify.
1787
1788 2008-05-22 Aldy Hernandez <aldyh@redhat.com>
1789
1790 * omp-low.c (gate_expand_omp_ssa): Remove.
1791 (pass_expand_omp_ssa): Remove.
1792 (gate_expand_omp): Do not check for flag_openmp_ssa.
1793 * common.opt (-fopenmp-ssa): Remove.
1794 * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
1795
1796 2008-05-22 Kaz Kojima <kkojima@gcc.gnu.org>
1797
1798 * config/sh/sh.opt (mfixed-range): New option.
1799 * config/sh/sh-protos.h (sh_fix_range): Declare.
1800 * config/sh/sh.c (sh_fix_range): New function.
1801 * config/sh/sh.h (sh_fixed_range_str): Declare.
1802 (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
1803 is not empty.
1804 * doc/invoke.texi (SH Options): Document -mfixed-range.
1805
1806 2008-05-22 Kai Tietz <kai.tietz@onevision.com>
1807
1808 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
1809 it before the redeclaration.
1810
1811 2008-05-22 Anatoly Sokolov <aesok@post.ru>
1812
1813 * config/avr/avr.c (get_sequence_length): Add new function.
1814 (expand_prologue, expand_epilogue): Remove duplicate code.
1815
1816 2008-05-22 Rafael Espindola <espindola@google.com>
1817
1818 * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
1819 sharing.
1820
1821 2008-05-22 H.J. Lu <hongjiu.lu@intel.com>
1822
1823 * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
1824 * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
1825
1826 * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
1827 UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
1828 (vect_update_misalignment_for_peel): Likewise.
1829 (vector_alignment_reachable_p): Likewise.
1830 * tree-vect-transform.c (vectorizable_load): Likewise.
1831 * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
1832 (get_vectype_for_scalar_type): Pass mode of scalar_type
1833 to UNITS_PER_SIMD_WORD.
1834
1835 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
1836 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
1837 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
1838 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
1839 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
1840
1841 2008-05-22 Ira Rosen <irar@il.ibm.com>
1842
1843 PR tree-optimization/36293
1844 * tree-vect-transform.c (vect_transform_strided_load): Don't check
1845 if the first load must be skipped because of a gap.
1846
1847 2008-05-22 Richard Guenther <rguenther@suse.de>
1848
1849 * tree-dfa.c (refs_may_alias_p): Exit early if possible. Handle
1850 more cases of offset disambiguation that is possible if
1851 strict-aliasing rules apply.
1852 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
1853 for basic offset and type-based disambiguation.
1854
1855 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1856
1857 * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
1858 ix86_expand_vector_set on V16QImode for SSE4.1.
1859
1860 2008-05-21 Tom Tromey <tromey@redhat.com>
1861
1862 * c.opt (Wimport): Mark as undocumented.
1863 * doc/invoke.texi (Option Summary): Don't mention -Wimport or
1864 -Wno-import.
1865 (Warning Options): Likewise.
1866 * doc/cppopts.texi: Don't mention -Wimport.
1867
1868 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
1869
1870 PR tree-optimization/36287
1871 PR tree-optimization/36286
1872 * lambda-code.c (build_access_matrix): Do not use the loop->num
1873 for computing the number of induction variables: use the loop depth
1874 instead.
1875
1876 2008-05-21 Kai Tietz <kai.tietz@onevision.com>
1877
1878 PR/36280
1879 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
1880 option -f(no-)leading-underscore.
1881
1882 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1883
1884 * config/i386/i386.c (ix86_expand_vector_init_general): Use
1885 GET_MODE_NUNITS (mode).
1886
1887 2008-05-21 Peter Bergner <bergner@vnet.ibm.com>
1888
1889 * doc/invoke.texi: Add cpu_type's 464 and 464fp.
1890 (-mmulhw): Add 464 to description.
1891 (-mdlmzb): Likewise.
1892 * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
1893 * config/rs6000/rs6000.c (processor_target_table): Add 464 and
1894 464fp entries.
1895 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
1896 * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
1897 * config/rs6000/rs6000.md: Update comments for 464.
1898
1899 2008-05-21 Janis Johnson <janis187@us.ibm.com>
1900
1901 * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
1902
1903 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1904
1905 * config/i386/sse.md (vec_extractv4sf): Removed.
1906 (vec_extractv2df): Likewise.
1907 (vec_extractv2di): Likewise.
1908 (vec_extractv4si): Likewise.
1909 (vec_extractv8hi): Likewise.
1910 (vec_extractv16qi): Likewise.
1911 (vec_extract<mode>): New.
1912
1913 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1914
1915 * config/i386/sse.md (vec_setv4sf): Removed.
1916 (vec_setv2df): Likewise.
1917 (vec_setv2di): Likewise.
1918 (vec_setv4si): Likewise.
1919 (vec_setv8hi): Likewise.
1920 (vec_setv16qi): Likewise.
1921 (vec_set<mode>): New.
1922
1923 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1924
1925 * config/i386/i386.c (ix86_expand_vector_init_general): Remove
1926 goto for vec_concat and vec_interleave.
1927
1928 2008-05-21 H.J. Lu <hongjiu.lu@intel.com>
1929
1930 * config/i386/sse.md (vec_initv4sf): Removed.
1931 (vec_initv2df): Likewise.
1932 (vec_initv2di): Likewise.
1933 (vec_initv4si): Likewise.
1934 (vec_initv8hi): Likewise.
1935 (vec_initv16qi): Likewise.
1936 (vec_init<mode>): New.
1937
1938 2008-05-21 Joseph Myers <joseph@codesourcery.com>
1939
1940 * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
1941
1942 2008-05-21 Tom Tromey <tromey@redhat.com>
1943
1944 * ggc-zone.c (lookup_page_table_if_allocated): New function.
1945 (zone_find_object_offset): Likewise.
1946 (gt_ggc_m_S): Likewise.
1947 (highest_bit): Likewise.
1948 * ggc-page.c (gt_ggc_m_S): New function.
1949 * stringpool.c (string_stack): Remove.
1950 (init_stringpool): Update.
1951 (ggc_alloc_string): Use ggc_alloc.
1952 (maybe_delete_ident): New function.
1953 (ggc_purge_stringpool): Likewise.
1954 (gt_ggc_m_S): Remove.
1955 * ggc-common.c (ggc_protect_identifiers): New global.
1956 (ggc_mark_roots): Call ggc_purge_stringpool. Use
1957 ggc_protect_identifiers.
1958 * ggc.h (ggc_protect_identifiers): Declare.
1959 (gt_ggc_m_S): Update.
1960 (ggc_purge_stringpool): Declare.
1961 * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
1962 * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
1963 special case.
1964 (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
1965
1966 2008-05-21 David S. Miller <davem@davemloft.net>
1967
1968 * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
1969 tmake_file.
1970
1971 2008-05-21 Eric Botcazou <ebotcazou@adacore.com>
1972
1973 * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
1974 once finished.
1975
1976 2008-05-20 David Daney <ddaney@avtrex.com>
1977
1978 * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
1979 UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
1980 (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
1981 UNSPEC_UPDATE_GOT_VERSION): Renumber.
1982 (optab, insn): Add 'plus' and 'minus' to define_code_attr.
1983 (atomic_hiqi_op): New define_code_iterator.
1984 (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
1985 mips_expand_compare_and_swap_12.
1986 (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
1987 MIPS_COMPARE_AND_SWAP_12_0. Pass argument to MIPS_COMPARE_AND_SWAP_12.
1988 (sync_<optab><mode>, sync_old_<optab><mode>,
1989 sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
1990 sync_new_nand<mode>): New define_expands for HI and QI mode operands.
1991 (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
1992 sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
1993 (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
1994 (test_and_set_12): New insn.
1995 (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
1996 sync_new_<optab><mode>, sync_old_nand<mode>,
1997 sync_new_nand<mode>, sync_lock_test_and_set<mode>): Add early
1998 clobber to operand 0 for SI and DI mode insns.
1999 * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
2000 mips_gen_fn_4): New typedefs.
2001 (mips_gen_fn_ptrs): Define new union type.
2002 (mips_expand_compare_and_swap_12): Remove declaration.
2003 (mips_expand_atomic_qihi): Declare function.
2004 * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
2005 (mips_expand_atomic_qihi): ... this. Use new generator function
2006 parameter.
2007 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
2008 (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
2009 (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
2010 MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
2011 MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
2012 MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
2013 MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
2014 MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
2015 MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
2016 MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
2017 New macros.
2018
2019 2008-05-20 H.J. Lu <hongjiu.lu@intel.com>
2020
2021 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
2022 the missing break.
2023
2024 2008-05-20 Anatoly Sokolov <aesok@post.ru>
2025
2026 * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
2027 * config/avr/avr.c (avr_OS_main_function_p): Add new function.
2028 (avr_attribute_table): Add 'OS_main' function attribute.
2029 (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
2030 functions with 'OS_main' attribute.
2031
2032 2008-05-20 Richard Guenther <rguenther@suse.de>
2033
2034 PR tree-optimization/35204
2035 * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
2036 helper, split out from ...
2037 (DFS): ... here. Make the DFS walk non-recursive.
2038
2039 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
2040 Jan Sjodin <jan.sjodin@amd.com>
2041
2042 PR tree-optimization/36181
2043 * tree-parloops.c (loop_has_vector_phi_nodes): New.
2044 (parallelize_loops): Don't parallelize when the loop has vector
2045 phi nodes.
2046
2047 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2048 Sebastian Pop <sebastian.pop@amd.com>
2049
2050 * tree-loop-linear.c (gather_interchange_stats): Look in the access
2051 matrix, and never look at the tree representation of the memory
2052 accesses.
2053 (linear_transform_loops): Computes parameters and access matrices.
2054 * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
2055 when fails.
2056 (access_matrix_get_index_for_parameter): New.
2057 * tree-data-ref.h (struct access_matrix): New.
2058 (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
2059 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
2060 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
2061 am_vector_index_for_loop): New.
2062 (struct data_reference): Add field access_matrix.
2063 (DR_ACCESS_MATRIX): New.
2064 (compute_data_dependences_for_loop): Update declaration.
2065 (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
2066 * lambda.h (lambda_vector_vec_p): Declared.
2067 * lambda-code.c: Depend on pointer-set.h.
2068 (lambda_collect_parameters_from_af, lambda_collect_parameters,
2069 av_for_af_base, av_for_af, build_access_matrix,
2070 lambda_compute_access_matrices): New.
2071 * Makefile.in (lambda-code.o): Depend on pointer-set.h.
2072
2073 2008-05-20 Joseph Myers <joseph@codesourcery.com>
2074
2075 * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
2076 $SOURCEDIR/include.
2077
2078 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2079 Sebastian Pop <sebastian.pop@amd.com>
2080
2081 PR tree-optimization/36206
2082 * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
2083 FOLD_CONVERSIONS.
2084 (instantiate_scev_1): Rename flags to fold_conversions.
2085 Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
2086 outeside instantiation_loop.
2087 * tree-chrec.h (evolution_function_is_affine_in_loop): New.
2088 (evolution_function_is_affine_or_constant_p): Removed.
2089 * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
2090 instantiate_scev.
2091 (analyze_siv_subscript): Pass in the loop nest number.
2092 Call evolution_function_is_affine_in_loop instead of
2093 evolution_function_is_affine_p.
2094 (analyze_overlapping_iterations): Pass in the loop nest number.
2095
2096 2008-05-20 Jan Sjodin <jan.sjodin@amd.com>
2097 Sebastian Pop <sebastian.pop@amd.com>
2098
2099 PR tree-optimization/36206
2100 * tree-chrec.h (chrec_fold_op): New.
2101 * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
2102 and other trees.
2103
2104 2008-05-20 Nathan Sidwell <nathan@codesourcery.com>
2105
2106 * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
2107 (DIRS_EQ): New.
2108 (remove_duplicates): Do not set inode on non-inode systems.
2109 Use DIRS_EQ.
2110
2111 2008-05-20 Sandra Loosemore <sandra@codesourcery.com>
2112
2113 * config.gcc (tm_file): Update comments about relative pathnames.
2114
2115 2008-05-20 Richard Guenther <rguenther@suse.de>
2116
2117 * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
2118 * tree-ssa-sccvn.c (process_scc): Likewise.
2119 * tree-ssa-sink.c (execute_sink_code): Likewise.
2120 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
2121 * tree-vrp.c (process_assert_insertions): Likewise.
2122 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
2123 (perform_tree_ssa_dce): Likewise.
2124 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
2125 (dump_dominator_optimization_stats): Likewise.
2126 * tree-vectorizer.c (vectorize_loops): Likewise.
2127
2128 2008-05-20 Richard Guenther <rguenther@suse.de>
2129
2130 * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
2131
2132 2008-05-20 Kai Tietz <kai.tietz@onevision.com>
2133
2134 * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
2135 (ix86_i386elf_return_in_memory): Likewise.
2136 (ix86_i386interix_return_in_memory): Likewise.
2137 * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
2138 (SUBTARGET_RETURN_IN_MEMORY): New.
2139 * config/i386/i386elf.h: Likewise.
2140 * config/i386/ptx4-i.h: Likewise.
2141 * config/i386/sol2-10.h: Likewise.
2142 * config/i386/sysv4.h: Likewise.
2143 * config/i386/vx-common.h: Likewise.
2144 * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
2145 * config/i386/i386.c (ix86_return_in_memory): Made static and
2146 make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
2147 (ix86_i386elf_return_in_memory): Removed.
2148 (ix86_i386interix_return_in_memory): Removed.
2149 (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
2150 * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
2151
2152 2008-05-20 Alexandre Oliva <aoliva@redhat.com>
2153
2154 * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
2155
2156 2008-05-19 Xinliang David Li <davidxl@google.com>
2157
2158 * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
2159 * opts.c: Ditto.
2160 * common.opt: Ditto.
2161 * doc/invoke.texi: Ditto.
2162
2163 2008-05-19 Eric Botcazou <ebotcazou@adacore.com>
2164
2165 * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
2166 (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
2167
2168 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
2169
2170 * config/i386/i386.c (ix86_expand_vector_init_concat): Change
2171 sizes of operand array from 8/4 to 4/2.
2172 (ix86_expand_vector_init_general): Change size of operand array
2173 from 32 to 16. Remove op0, op1 and half_mode.
2174
2175 2008-05-19 H.J. Lu <hongjiu.lu@intel.com>
2176
2177 * config/i386/i386.c (ix86_expand_vector_init_concat): New.
2178 (ix86_expand_vector_init_interleave): Likewise.
2179 (ix86_expand_vector_init_general): Use them. Assert
2180 word_mode == SImode when n_words == 4.
2181
2182 2008-05-19 Uros Bizjak <ubizjak@gmail.com>
2183
2184 * config/i386/i386.c (ix86_secondary_reload): New static function.
2185 (TARGET_SECONDARY_RELOAD): New define.
2186 * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
2187 * config/i386/i386.md (reload_outqi): Remove.
2188
2189 2008-05-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2190
2191 PR middle-end/35509
2192 * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
2193 Add `implicit' parameter. Handle BUILT_IN_SIGNBIT.
2194 (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
2195 (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
2196 (fold_builtin_1): Likewise.
2197 * builtins.def (BUILT_IN_ISINF_SIGN): New.
2198 c-common.c (check_builtin_function_arguments): Handle
2199 BUILT_IN_ISINF_SIGN.
2200 * doc/extend.texi: Document __builtin_isinf_sign.
2201 * fold-const.c (operand_equal_p): Handle COND_EXPR.
2202
2203 2008-05-18 Eric Botcazou <ebotcazou@adacore.com>
2204
2205 * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
2206 EH cleanup at the end of the pass, search for those that have been
2207 turned into forwarder blocks and do the cleanup on their successor.
2208
2209 2008-05-18 Richard Guenther <rguenther@suse.de>
2210
2211 * tree-cfg.c (verify_gimple_expr): Allow conversions from
2212 pointers to sizetype and vice versa.
2213
2214 2008-05-18 Xinliang David Li <davidxl@google.com>
2215
2216 * gcc/tree-ssa-dce.c: Coding style fix.
2217 (check_pow): Documentation comment.
2218 (check_log): Documenation comment. Coding style fix.
2219 (is_unnecessary_except_errno_call): Ditto.
2220 (gen_conditions_for_pow): Ditto.
2221 (gen_conditions_for_log): Ditto.
2222 (gen_shrink_wrap_conditions): Ditto.
2223 (shrink_wrap_one_built_in_calls): Ditto.
2224 * gcc/doc/invoke.texi: Better documentation string.
2225 * ChangeLog: Fix wrong change log entries from
2226 May 17 checkin on function call DCE.
2227
2228 2008-05-17 Kaz Kojima <kkojima@gcc.gnu.org>
2229
2230 * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
2231
2232 2008-05-17 Kenneth Zadeck <zadeck@naturalbridge.com>
2233
2234 * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
2235 * df-problems.c (simulation routines): Fixed block comment to
2236 properly say how to add forwards scanning functions.
2237
2238 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2239
2240 * tree-inline.c (setup_one_parameter): Remove dead code.
2241
2242 2008-05-17 Eric Botcazou <ebotcazou@adacore.com>
2243
2244 * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
2245 a BIT_AND_EXPR only for an INTEGER_TYPE.
2246
2247 2008-05-17 Xinliang David Li <davidxl@google.com>
2248
2249 * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
2250 (check_pow, check_log, is_unnecessary_except_errno_call): New
2251 functions to check for eliminating math functions that are pure
2252 except for setting errno.
2253 (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
2254 general condition expressions for shrink-wrapping pow/log calls.
2255 (gen_shrink_wrap_conditions): Ditto.
2256 (shrink_wrap_one_built_in_call): Ditto.
2257 (shrink_wrap_conditional_dead_built_in_calls): Ditto.
2258 (mark_operand_necessary): If debugging, output if OP is necessary.
2259 (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
2260 unnecessary.
2261 * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
2262 opt level >= 2.
2263 * gcc/common.opt: New user flag -ftree-builtin-dce.
2264 * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
2265
2266 2008-05-16 David S. Miller <davem@davemloft.net>
2267
2268 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
2269 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2270
2271 2008-05-16 Uros Bizjak <ubizjak@gmail.com>
2272
2273 PR target/36246
2274 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
2275
2276 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2277
2278 * ifcvt.c (dead_or_predicable): Rename
2279 df_simulate_one_insn_backwards to df_simulate_one_insn.
2280 * recog.c (peephole2_optimize): Ditto.
2281 * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
2282 Ditto.
2283 * df.h: Rename df_simulate_one_insn_backwards to
2284 df_simulate_one_insn. and delete df_simulate_one_insn_forwards.
2285 * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
2286 scanning of defs and uses.
2287 (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
2288 (df_simulate_one_insn_forwards): Removed.
2289
2290 2008-05-16 Doug Kwan <dougkwan@google.com>
2291
2292 * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
2293 QNaN & SNaN.
2294 (real_from_string): Handle NaNs and Inf as approriate.
2295
2296 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
2297
2298 * doc/gty.texi (Source Files Containing Type Information): Note
2299 that headers should appear first in the gtfiles list.
2300
2301 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2302
2303 * tree.def (COND_EXEC): Properly documented this code.
2304
2305 2008-05-16 Diego Novillo <dnovillo@google.com>
2306
2307 * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
2308 * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
2309 the new field.
2310
2311 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2312
2313 * tree-ssa-dse (max_stmt_uid): Removed.
2314 (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
2315 tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
2316 * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
2317 * function.h (cfun.last_stmt_uid): New field.
2318 * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
2319 gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
2320 New functions.
2321 * tree-dfa.c (renumber_gimple_stmt_uids): New function.
2322 (create_stmt_ann): Initialize the ann->uid field.
2323 * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
2324 with new calls.
2325 * tree-flow.h (renumber_gimple_stmt_uids): New function.
2326
2327 2008-05-16 Nathan Froyd <froydnj@codesourcery.com>
2328
2329 * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
2330 * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
2331 (init_empty_tree_cfg): Call it.
2332
2333 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2334
2335 * cfg.c (init_flow): Add argument THE_FUN. Use it instead of cfun.
2336 Update all users.
2337
2338 2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
2339
2340 * doc/invoke.text (-fdump-tree-*-verbose): New option.
2341 * tree-dump.c (dump_options): New verbose option.
2342 * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
2343 Add verbose dump.
2344 * tree-pass.h (TDF_VERBOSE): New dump flag.
2345 * print-tree.c (print_node): Added code to be able to print PHI_NODES.
2346 (tree-flow.h): Added include.
2347 * Makefile.in (print-tree.o): Added TREE_FLOW_H.
2348
2349 2008-05-16 Bernd Schmidt <bernd.schmidt@analog.com>
2350
2351 * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
2352
2353 From Jie Zhang <jie.zhang@analog.com>
2354 * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2355 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
2356 mcpu=bf561-none and mcpu=bf561-0.2.
2357 * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2358 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2359 * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
2360 MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
2361 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
2362 * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
2363 (LIB_SPEC): Use proper linker script for bf561. Error if no mcpu
2364 option.
2365 * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
2366 (cputype_selected): Remove.
2367 (bfin_handle_option): Don't use cputype_selected.
2368 (override_options): When no mcpu option, enable all workarounds.
2369 Don't use bfin_workarounds.
2370 * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
2371 processor type.
2372 (DEFAULT_CPU_TYPE): Don't define.
2373
2374 2008-05-16 Richard Guenther <rguenther@suse.de>
2375
2376 * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
2377 on deletion of the last stmt.
2378
2379 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
2380
2381 * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
2382 V8HImode for SSE2 and V16QImode for SSE4.1.
2383
2384 2008-05-15 Kenneth Zadeck <zadeck@naturalbridge.com>
2385
2386 * cgraph.h (compute_inline_parameters): Made public.
2387 * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
2388 variable_generate_summary, function_write_summary,
2389 variable_write_summary, variable_read_summary. Added generate_summary,
2390 write_summary, read_summary.
2391 * cgraphunit.c (cgraph_process_new_functions): Changed call from
2392 pass_ipa_inline.function_generate_summary, to
2393 compute_inline_parameters.
2394 * ipa-inline.c (compute_inline_parameters): Made public and added
2395 node parameter.
2396 (compute_inline_parameters_for_current): New function.
2397 (pass_inline_param): Now calls compute_inline_parameters_for_current.
2398 (inline_generate_summary): Removed parameter and made to loop over
2399 all cgraph nodes.
2400 (pass_ipa_inline): Updated for new IPA_PASS structure.
2401 * passes.c (execute_ipa_summary_passes): Now is called once per
2402 pass rather than once per node*pass.
2403
2404 2008-05-15 Anatoly Sokolov <aesok@post.ru>
2405
2406 * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
2407 avr_have_mul_p, avr_asm_only_p): Remove variables.
2408 (avr_override_options): Remove initialization of removed variables.
2409 (avr_file_start): Convert removed variables to fields of
2410 'struct base_arch_s *avr_current_arch'.
2411 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
2412 (AVR_HAVE_MUL): (Ditto.).
2413 (AVR_HAVE_MOVW): (Ditto.).
2414 (AVR_HAVE_LPMX): (Ditto.).
2415 (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
2416 avr_asm_only_p): Remove declaration.
2417
2418 2008-05-15 Diego Novillo <dnovillo@google.com>
2419
2420 * config/arm/arm.c (arm_return_in_memory): Fix return type.
2421 * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
2422
2423 2008-05-15 Adam Nemet <anemet@caviumnetworks.com>
2424
2425 PR middle-end/36194
2426 * combine.c (check_conversion): Rename back to check_promoted_subreg.
2427 Don't call record_truncated_value from here.
2428 (record_truncated_value): Turn it into a for_each_rtx callback.
2429 (record_truncated_values): New function.
2430 (combine_instructions): Call note_uses with record_truncated_values.
2431 Change name of check_conversion to check_promoted_subreg.
2432
2433 2008-05-15 Janis Johnson <janis187@us.ibm.com>
2434
2435 * doc/sourcebuild.texi: Document support for torture tests.
2436
2437 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
2438
2439 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
2440 to alternative 4 of operand 2.
2441
2442 2008-05-15 Richard Guenther <rguenther@suse.de>
2443
2444 * tree-pass.h (current_pass): Declare.
2445 (get_pass_for_id): Likewise.
2446 * passes.c (passes_by_id, passes_by_id_size): New globals.
2447 (set_pass_for_id): New function.
2448 (get_pass_for_id): Likewise.
2449 (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
2450 (execute_function_todo): Flush per function statistics.
2451 * toplev.c (compile_file): Init statistics.
2452 (general_init): Do early statistics initialization.
2453 (finalize): Finish statistics.
2454 * statistics.h (statistics_early_init): Declare.
2455 (statistics_init): Likewise.
2456 (statistics_fini): Likewise.
2457 (statistics_fini_pass): Likewise.
2458 (statistics_counter_event): Likewise.
2459 (statistics_histogram_event): Likewise.
2460 * statistics.c: New file.
2461 * Makefile.in (OBJS-common): Add statistics.o.
2462 (statistics.o): Add dependencies.
2463 * doc/invoke.texi (-fdump-statistics): Document.
2464
2465 * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
2466 (insert): Likewise.
2467 (execute_pre): Use statistics_counter_event.
2468 * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
2469 (substitute_and_fold): Increment it. Use statistics_counter_event.
2470
2471 2008-05-15 Diego Novillo <dnovillo@google.com>
2472
2473 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
2474
2475 * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
2476 * tree-ssa-alias.c (new_type_alias): Remove references to
2477 sub-variables from comment.
2478 * tree-ssa-operands.c (swap_tree_operands): Likewise.
2479
2480 2008-05-15 H.J. Lu <hongjiu.lu@intel.com>
2481
2482 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
2483 attribute to 1 only for insertps alternative.
2484
2485 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
2486
2487 * config/bfin/bfin.md (loadbytes): New pattern.
2488 * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
2489 (bfin_init_builtins): Initialize it.
2490 (bdesc_1arg): Add it.
2491
2492 2008-05-15 Sa Liu <saliu@de.ibm.com>
2493
2494 * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
2495 * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
2496 * testsuite/lib/target-supports.exp: Add
2497 check_effective_target_fortran_integer_16.
2498
2499 2008-05-15 Bernd Schmidt <bernd.schmidt@analog.com>
2500
2501 * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
2502 * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
2503 * config/bfin/bfin.c (bfin_return_in_memory): Now static. Return bool.
2504 (TARGET_RETURN_IN_MEMORY): Define.
2505
2506 2008-05-15 Richard Guenther <rguenther@suse.de>
2507
2508 PR middle-end/36244
2509 * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
2510 * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
2511 represent unmodifiable vars.
2512
2513 2008-05-15 Richard Guenther <rguenther@suse.de>
2514
2515 * tree-dfa.c (refs_may_alias_p): Allow all kinds of
2516 INDIRECT_REF and TARGET_MEM_REF.
2517 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2518 TARGET_MEM_REF.
2519
2520 2008-05-15 Uros Bizjak <ubizjak@gmail.com>
2521 H.J. Lu <hongjiu.lu@intel.com>
2522
2523 * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
2524 (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
2525 for operand 2. Remove pinsr{q,d} with 0x0 immediate operand from
2526 insn alternatives. Add missing alternatives.
2527 (*vec_concatv2di_rex64_sse4_1): Likewise.
2528 (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
2529 (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
2530 Require TARGET_SSE.
2531
2532 2008-05-15 Richard Guenther <rguenther@suse.de>
2533
2534 PR tree-optimization/36009
2535 PR tree-optimization/36204
2536 * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
2537 (determine_invariantness_stmt): Record the loop a store is
2538 always executed in.
2539 * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
2540 dependency.
2541
2542 2008-05-15 Richard Guenther <rguenther@suse.de>
2543
2544 PR tree-optimization/34330
2545 * tree-ssa-alias.c (get_smt_for): Only assert that accesses
2546 through the pointer will alias the SMT.
2547
2548 2008-05-14 Andreas Tobler <a.tobler@schweiz.org>
2549
2550 * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
2551
2552 2008-05-14 H.J. Lu <hongjiu.lu@intel.com>
2553
2554 * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
2555
2556 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2557 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
2558
2559 * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
2560 OTI_vrotl, OTI_vrotr to support vector/vector shifts.
2561 (vashl_optab): New optab for vector/vector shifts.
2562 (vashr_optab): Ditto.
2563 (vlshr_optab): Ditto.
2564 (vrotl_optab): Ditto.
2565 (vrotr_optab): Ditto.
2566 (optab_subtype): New enum for optab_for_tree_code call.
2567 (optab_for_tree_code): Add enum optab_subtype argument.
2568
2569 * optabs.c (optab_for_tree_code): Take an additional argument to
2570 distinguish between a vector shift by a scalar and vector shift by
2571 a vector. Make lshr/ashr/ashl/rotl/rotr optabs just vector
2572 shifted by a scalar. Use vlshr/vashr/vashl/vrotl/vrotr for the
2573 vector shift by a vector.
2574 (expand_widen_pattern_expr): Pass additional argument to
2575 optab_for_tree_code.
2576
2577 * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
2578 vrotl_optab, vrotr_optab.
2579
2580 * expr.c (expand_expr_real_1): Update calls to
2581 optab_for_tree_code to distinguish between vector shifted by a
2582 scalar and vector shifted by a vector.
2583 * tree-vectorizer.c (supportable_widening_operation): Ditto.
2584 (supportable_narrowing_operation): Ditto.
2585 * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
2586 * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
2587 * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
2588 (vect_create_epilog_for_reduction): Ditto.
2589 (vectorizable_reduction): Ditto.
2590 (vectorizable_operation): Ditto.
2591 (vect_strided_store_supported): Ditto.
2592 (vect_strided_load_supported): Ditto.
2593 * tree-vect-generic.c (expand_vector_operations_1): Ditto.
2594 * expmed.c (expand_shift): Ditto.
2595
2596 * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
2597 scalar type.
2598 (ashr@var{m}3): Ditto.
2599 (vashl@var{m}3): Document new vector/vector shift standard name.
2600 (vashr@var{m}3): Ditto.
2601 (vlshr@var{m}3): Ditto.
2602 (vrotl@var{m}3): Ditto.
2603 (vrotr@var{m}3): Ditto.
2604
2605 * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
2606 (PPERM_INVERT): Ditto.
2607 (PPERM_REVERSE): Ditto.
2608 (PPERM_REV_INV): Ditto.
2609 (PPERM_ZERO): Ditto.
2610 (PPERM_ONES): Ditto.
2611 (PPERM_SIGN): Ditto.
2612 (PPERM_INV_SIGN): Ditto.
2613 (PPERM_SRC1): Ditto.
2614 (PPERM_SRC2): Ditto.
2615
2616 * config/i386/sse.md (mulv2di3): Add SSE5 support.
2617 (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
2618 allows a memory operand to be the value being added, and split it
2619 to improve vectorization.
2620 (sse5_pmacsdqh_mem): Ditto.
2621 (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
2622 (sse5_mulv2div2di3_high): Ditto.
2623 (vec_pack_trunc_v8hi): Add SSE5 pperm support.
2624 (vec_pack_trunc_v4si): Ditto.
2625 (vec_pack_trunc_v2di): Ditto.
2626 (sse5_pcmov_<mode>): Remove code that tried to use use
2627 andps/andnps instead of pcmov.
2628 (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
2629 pmacsdqh instructions.
2630 (vec_widen_smult_lo_v4si): Ditto.
2631
2632 * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
2633 (PPERM_INVERT): Ditto.
2634 (PPERM_REVERSE): Ditto.
2635 (PPERM_REV_INV): Ditto.
2636 (PPERM_ZERO): Ditto.
2637 (PPERM_ONES): Ditto.
2638 (PPERM_SIGN): Ditto.
2639 (PPERM_INV_SIGN): Ditto.
2640 (PPERM_SRC1): Ditto.
2641 (PPERM_SRC2): Ditto.
2642 (ix86_expand_sse_movcc): Move the SSE5 test after the if
2643 true/false tests.
2644 (ix86_expand_int_vcond): If SSE5 generate all possible integer
2645 comparisons.
2646 (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
2647 says ignore whether the last reference is a memory operand.
2648
2649 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2650 Paolo Bonzini <bonzini at gnu dot org>
2651
2652 * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
2653 shift patterns.
2654
2655 * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
2656 (vlshr<mode>3): Rename from vlshr<mode>3.
2657 (vashr<mode>3): Rename from vashr<mode>3.
2658 (mulv4sf3): Change the names of vector shift patterns.
2659 (mulv4si3): Ditto.
2660 (negv4sf2): Ditt.
2661
2662 * config/spu/spu.c (spu_initialize_trampoline): Rename vector
2663 shift insns.
2664
2665 * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
2666 (SI_SHLHI): Ditto.
2667 (SI_SHL): Ditto.
2668 (SI_SHLI): Ditto.
2669 (SI_ROTH): Ditto.
2670 (SI_ROTHI): Ditto.
2671 (SI_ROT): Ditto.
2672 (SI_ROTI): Ditto.
2673 (SPU_RL_0): Ditto.
2674 (SPU_RL_1): Ditto.
2675 (SPU_RL_2): Ditto.
2676 (SPU_RL_3): Ditto.
2677 (SPU_RL_4): Ditto.
2678 (SPU_RL_5): Ditto.
2679 (SPU_RL_6): Ditto.
2680 (SPU_RL_7): Ditto.
2681 (SPU_SL_0): Ditto.
2682 (SPU_SL_1): Ditto.
2683 (SPU_SL_2): Ditto.
2684 (SPU_SL_3): Ditto.
2685 (SPU_SL_4): Ditto.
2686 (SPU_SL_5): Ditto.
2687 (SPU_SL_6): Ditto.
2688 (SPU_SL_7): Ditto.
2689
2690 * config/spu/spu.md (v): New iterator macro to add v for vector types.
2691 (floatunssidf2_internal): Change vector/vector shift names.
2692 (floatunsdidf2_internal): Ditto.
2693 (mulv8hi3): Ditto.
2694 (ashrdi3): Ditto.
2695 (ashrti3): Ditto.
2696 (cgt_df): Ditto.
2697 (cgt_v2df): Ditto.
2698 (dftsv): Ditto.
2699 (vashl<mode>3): Rename from ashl<mode>3.
2700 (vashr<mode>3): Rename from ashr<mode>3.
2701 (vlshr<mode>3): Rename from lshr<mode>3.
2702 (vrotl<mode>3): Rename from rotl<mode>3.
2703
2704 2008-05-14 Michael Meissner <michael.meissner@amd.com>
2705
2706 PR target/36224
2707 * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
2708 multiply gives the wrong value when doing widening multiplies.
2709 (vec_widen_smult_lo_v4si): Ditto.
2710
2711 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
2712
2713 * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
2714 LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
2715 emit_library_call_value.
2716 * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
2717 * tree.h (ECF_LIBCALL_BLOCK): Removed.
2718 * calls.c (initialize_argument_information, precompute_arguments,
2719 expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
2720 (precompute_arguments): Removed flags parameter.
2721 * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
2722
2723 2008-05-14 Richard Guenther <rguenther@suse.de>
2724
2725 * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
2726 Make sure to register the store if the use is a PHI_NODE.
2727
2728 2008-05-14 Olivier Hainque <hainque@adacore.com>
2729
2730 * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
2731 memory if the component is to be referenced in BLKmode according
2732 to get_inner_reference.
2733
2734 2008-05-14 Adam Nemet <anemet@caviumnetworks.com>
2735
2736 * calls.c (emit_library_call_value_1): Restore code clearing
2737 ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
2738
2739 2008-05-14 Olivier Hainque <hainque@adacore.com>
2740 Nicolas Roche <roche@adacore.com>
2741
2742 * configure.ac: Add support for a "gcc_subdir" variable in
2743 config-lang.in, to denote a subdirectory where the language/GCC
2744 integration files are to be found.
2745 * configure: Regenerate.
2746
2747 2008-05-14 Ira Rosen <irar@il.ibm.com>
2748
2749 PR tree-optimization/36098
2750 * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
2751 value for the first load in the group in case of a gap.
2752 (vect_build_slp_tree): Check that there are no gaps in loads.
2753
2754 2008-05-14 Kenneth Zadeck <zadeck@naturalbridge.com>
2755
2756 * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
2757 * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
2758 expand_copysign_bit, ): Change call to emit_no_conflict_block to
2759 emit_insn and remove unneeded code to construct extra args.
2760 (emit_no_conflict_block): Removed.
2761 * optabls.h: (emit_no_conflict_block): Removed.
2762 * cse.c (cse_extended_basic_block): Remove search for
2763 REG_NO_CONFLICT note.
2764 * global.c: Removed incorrect comment added in revision 117.
2765 * expr.c (convert_move): Change call to emit_no_conflict_block to
2766 emit_insn.
2767 * recog.c: Change comments so that they do not mention
2768 REG_NO_CONFLICT.
2769 * local_alloc.c (combine_regs): Removed last parameter.
2770 (no_conflict_p): Removed.
2771 (block_alloc): Removed note, no_conflict_combined_regno and set
2772 local vars. Removed all code to process REG_NO_CONFLICT blocks.
2773 (combine_regs): Removed already_dead and code to look for
2774 REG_NO_CONFLICT notes.
2775 * lower_subreg (remove_retval_note): Removed code to look for
2776 REG_NO_CONFLICT block.
2777 (resolve_reg_notes): Removed REG_NO_CONFLICT case.
2778 (resolve_clobber): Remove code to process libcalls that have
2779 REG_NO_CONFLICT notes.
2780 * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
2781 case.
2782 * combine.c (can_combine_p, distribute_notes): Removed
2783 REG_NO_CONFLICT case.
2784 * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
2785 to emit_insns.
2786 * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
2787 * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
2788 Ditto.
2789 * reg-notes.def (NO_CONFLICT): Removed.
2790
2791 2008-05-14 David S. Miller <davem@davemloft.net>
2792
2793 * config/sparc/sparc.c (sparc_profile_hook): If
2794 NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
2795 * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
2796 * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
2797
2798 2008-05-14 Andreas Krebbel <krebbel1@de.ibm.com>
2799
2800 * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
2801
2802 2008-05-13 Uros Bizjak <ubizjak@gmail.com>
2803
2804 PR target/36222
2805 * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
2806 and op1 expansion before vector concat to have less live pseudos.
2807
2808 2008-05-13 H.J. Lu <hongjiu.lu@intel.com>
2809
2810 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
2811 ix86_expand_vector_set if supported.
2812
2813 2008-05-13 Diego Novillo <dnovillo@google.com>
2814 Kenneth Zadeck <zadeck@naturalbridge.com>
2815
2816 http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
2817
2818 * tree.h (init_phinodes, fini_phinodes, release_phi_node,
2819 phinodes_print_statistics, init_ssanames, fini_ssanames,
2820 make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
2821 release_ssa_name, release_defs, replace_ssa_name_symbol,
2822 ssanames_print_statistics): Move ...
2823 * tree-flow.h: ... here.
2824 * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
2825 Use FN instead of cfun.
2826 (make_ssa_name_fn): Rename from make_ssa_name.
2827 (pass_release_ssa_names): Add TODO_dump_func to finish flags.
2828 * tree-flow-inline.h (make_ssa_name): Move from
2829 tree-ssanames.c. Convert to static inline. Call make_ssa_name_fn.
2830 * omp-low.c (expand_omp_parallel):
2831 * tree-flow-inline.h (redirect_edge_var_map_result):
2832 * tree-ssa.c (init_tree_ssa): Add argument FN.
2833 Use it instead of cfun. Update all users.
2834
2835 2008-05-13 Tom Tromey <tromey@redhat.com>
2836
2837 PR preprocessor/22168:
2838 * doc/cpp.texi (Top): Update menu.
2839 (Alternatives to Wrapper #ifndef): New node.
2840 (Other Directives): Document deprecation.
2841 (Obsolete Features): Remove menu.
2842 (Assertions): Merge node into Obsolete Features.
2843 (Obsolete once-only headers): Move earlier; rename to Alternatives
2844 to Wrapper #ifndef.
2845 * doc/cppopts.texi: Update.
2846 * c.opt (Wdeprecated): Enable for C and ObjC.
2847 * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
2848 (C++ Dialect Options): Move -Wno-deprecated from here to...
2849 (Warning Options): ... here.
2850
2851 2008-05-13 Richard Guenther <rguenther@suse.de>
2852
2853 PR middle-end/36227
2854 * fold-const.c (fold_sign_changed_comparison): Do not allow
2855 changes in pointer-ness.
2856
2857 2008-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
2858
2859 PR target/24713
2860 * config/sh/sh.c (sh_expand_prologue): Don't clear
2861 RTX_FRAME_RELATED_P for push insns.
2862
2863 2008-05-12 Andy Hutchinson <hutchinsonandy@aim.com>
2864
2865 * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
2866
2867 2008-05-12 Anatoly Sokolov <aesok@post.ru>
2868
2869 * config/avr/avr.h (machine_function): Add 'is_leaf' field.
2870 * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
2871 Use 'machine->is_leaf' instead of 'leaf_func_p'.
2872
2873 2008-05-12 H.J. Lu <hongjiu.lu@intel.com>
2874
2875 * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
2876 (*vec_concatv4sf_sse): This.
2877 (*sse2_concatv2si): Renamed to ...
2878 (*vec_concatv2si_sse2): This.
2879 (*sse1_concatv2si): Renamed to ...
2880 (*vec_concatv2si_sse): This.
2881 (*vec_concatv2di_rex): Renamed to ...
2882 (*vec_concatv2di_rex64): This.
2883 (*vec_concatv2si_sse4_1): New.
2884 (*vec_concatv2di_rex64_sse4_1): Likewise.
2885
2886 2008-05-12 Uros Bizjak <ubizjak@gmail.com>
2887
2888 PR rtl-optimization/36111
2889 * recog.c (validate_replace_rtx_1): Unshare new RTL expression
2890 that was created for swappable operands.
2891
2892 2008-05-12 Samuel Tardieu <sam@rfc1149.net>
2893
2894 PR ada/36001
2895 * Makefile.in: Substitute GNATMAKE and GNATBIND.
2896 * configure.ac: Add call to ACX_PROG_GNAT.
2897
2898 2008-05-11 Volker Reichelt <v.reichelt@netcologne.de>
2899
2900 * optc-gen.awk: Fix comment typo.
2901
2902 2008-05-11 Aaron W. LaFramboise <aaronavay62@aaronwl.com>
2903
2904 * pretty-print.c (pp_integer_with_precision): Use
2905 HOST_LONG_LONG_FORMAT.
2906
2907 2008-05-10 Kenneth Zadeck <zadeck@naturalbridge.com>
2908
2909 * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
2910
2911 2008-05-10 H.J. Lu <hongjiu.lu@intel.com>
2912
2913 * config/i386/i386.c (bdesc_ptest): Removed.
2914 (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
2915 (bdesc_args): Add __builtin_ia32_ptestz128,
2916 __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
2917 (ix86_init_mmx_sse_builtins): Updated.
2918 (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
2919 (ix86_expand_builtin): Updated.
2920
2921 2008-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2922
2923 * tree-cfg.c (valid_fixed_convert_types_p): New function.
2924 (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
2925
2926 2008-05-10 Uros Bizjak <ubizjak@gmail.com>
2927
2928 * value-prof.c (interesting_stringop_to_profile): Do not
2929 return early for BUILT_IN_MEMPCPY.
2930
2931 2008-05-09 H.J. Lu <hongjiu.lu@intel.com>
2932
2933 * calls.c (expand_call): Don't use callgraph to increase
2934 preferred_stack_boundary.
2935
2936 * cgraph.h (cgraph_rtl_info): Use unsigned on
2937 preferred_incoming_stack_boundary.
2938
2939 * final.c (rest_of_clean_state): Use unsigned on
2940 preferred_stack_boundary.
2941
2942 2008-05-09 Tom Tromey <tromey@redhat.com>
2943
2944 PR preprocessor/22231:
2945 * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
2946 proceeding.
2947
2948 2008-05-09 Uros Bizjak <ubizjak@gmail.com>
2949
2950 PR tree-optimization/36129
2951 * tree-ssa-ccp.c: Include value-prof.h.
2952 (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
2953 built-in function was folded to a constant.
2954 * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
2955
2956 2008-05-09 Jan Sjodin <jan.sjodin@amd.com>
2957 Sebastian Pop <sebastian.pop@amd.com>
2958
2959 * tree-scalar-evolution.c: Document instantiate_scev.
2960 (instantiate_parameters_1): Renamed instantiate_scev_1.
2961 Don't use the same loop for instantiation_loop and evolution_loop.
2962 (instantiate_scev): New.
2963 (instantiate_parameters): Moved...
2964 (resolve_mixers): Update call to instantiate_scev_1 to pass the
2965 same loop twice. Maintains the semantics for this function.
2966 * tree-scalar-evolution.h (instantiate_scev): Declare.
2967 (instantiate_parameters): ...here. Now static inline.
2968 * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
2969 instead of resolve_mixers.
2970
2971 2008-05-09 Maxim Kuvyrkov <maxim@codesourcery.com>
2972
2973 * rtl-factoring.c (collect_pattern_seqs): Fix typo.
2974
2975 2008-05-09 Tomas Bily <tbily@suse.cz>
2976
2977 * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
2978 * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
2979 * tree-ssa-structalias.c (get_constraint_for): Likewise.
2980 * c-common.c (c_common_truthvalue_conversion): Likewise.
2981 * tree-object-size.c (compute_object_offset): Likewise.
2982 * tree-inline.c (estimate_num_insns_1): Likewise.
2983 * varasm.c (const_hash_1, compare_constant, copy_constant)
2984 (compute_reloc_for_constant, output_addressed_constants)
2985 (initializer_constant_valid_p): Likewise.
2986 * c-omp.c (check_omp_for_incr_expr): Likewise.
2987 * gimplify.c (gimplify_expr): Likewise.
2988 * c-typeck.c (c_finish_return): Likewise.
2989 * tree-vectorizer.c (supportable_widening_operation)
2990 (supportable_narrowing_operation): Likewise.
2991 * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
2992 * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
2993 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
2994 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
2995 (descr_info_loc): Likewise.
2996 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
2997 * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
2998 (fold_unary): Likewise.
2999 * builtins.c (get_pointer_alignment): Likewise.
3000 * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
3001 (instantiate_parameters_1): Likewise.
3002 * tree.c (expr_align, stabilize_reference): Likewise.
3003 * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
3004 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3005 * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
3006 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
3007 * config/alpha/alpha.c (va_list_skip_additions): Likewise.
3008 * c-common.c (c_alignof_expr, check_function_arguments_recurse):
3009 Likewise.
3010 * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
3011 * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
3012 * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
3013 (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
3014 (forward_propagate_comparison)
3015 (tree_ssa_forward_propagate_single_use_vars): Likewise.
3016 * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
3017 * emit-rtl.c (component_ref_for_mem_expr)
3018 (set_mem_attributes_minus_bitpos): Likewise.
3019 * tree-ssa-phiopt.c (conditional_replacement): Likewise.
3020 * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
3021 Likewise.
3022 * c-typeck.c (default_function_array_conversion, build_indirect_ref)
3023 (build_function_call, pointer_diff, build_compound_expr)
3024 (c_finish_return): Likewise.
3025 * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
3026 * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
3027 Likewise.
3028 * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
3029 * expr.c (is_aligning_offset): Likewise.
3030 * tree-ssa-alias.c (is_escape_site): Likewise.
3031 * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
3032 (check_all_va_list_escapes): Likewise.
3033 * tree-ssa-loop-ivopts.c (determine_base_object)
3034 (determine_common_wider_type): Likewise.
3035 * dojump.c (do_jump): Likewise.
3036 * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
3037 * tree-gimple.c (is_gimple_cast): Likewise.
3038 * fold-const.c (decode_field_reference, )
3039 (fold_sign_changed_comparison, fold_unary, fold_comparison)
3040 (fold_binary): Likewise.
3041 * tree-ssa-alias-warnings.c (find_alias_site_helper)
3042 (already_warned_in_frontend_p): Likewise.
3043 * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
3044 * tree.c (really_constant_p, get_unwidened): Likewise.
3045 * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
3046 * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
3047 * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
3048 Likewise.
3049 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
3050 CONVERT_EXPR_P.
3051 (CONVERT_EXPR_P): Define.
3052 (CASE_CONVERT): Define.
3053
3054 2008-05-08 Kenneth Zadeck <zadeck@naturalbridge.com>
3055
3056 PR middle-end/36117
3057 * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
3058 (delete_unmarked_insns): When deleting a call, call
3059 delete_unreachable_blocks.
3060 * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3061 RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
3062
3063 2008-05-08 Richard Guenther <rguenther@suse.de>
3064
3065 * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
3066 (-ftree-salias): Likewise.
3067 (salias-max-implicit-fields): Remove param documentation.
3068 (salias-max-array-elements): Likewise.
3069 * tree-pass.h (pass_create_structure_vars): Remove.
3070 * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3071 (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3072 * tree-ssa-alias.c (create_structure_vars): Remove.
3073 (gate_structure_vars): Likewise.
3074 (pass_create_structure_vars): Likewise.
3075 (gate_build_alias): Likewise.
3076 (pass_build_alias): Adjust to run always and dump the function.
3077 * common.opt (ftree-salias): Hide.
3078 * passes.c (init_optimization_passes): Remove
3079 pass_create_structure_vars, adjust comment.
3080 * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
3081 (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
3082 * opts.c (decode_options): Do not set flag_tree_salias.
3083 (common_handle_option): Add OPT_ftree_salias to the backward
3084 compatibility section.
3085
3086 2008-05-08 Richard Guenther <rguenther@suse.de>
3087
3088 * tree-flow-inline.h (var_can_have_subvars): Move ...
3089 * tree-ssa-structalias.c (var_can_have_subvars): ... here.
3090 * tree-flow.h (var_can_have_subvars): Remove.
3091 (push_fields_onto_fieldstack): Remove.
3092 (sort_fieldstack): Likewise.
3093 (struct fieldoff): Move ...
3094 * tree-ssa-structalias.c (struct fieldoff): ... here. Remove
3095 alias_set and base_for_components fields.
3096 (sort_fieldstack): Make static.
3097 (push_fields_onto_fieldstack): Likewise. Remove code that
3098 handles anything but RECORD_TYPEs. Remove alias_set and
3099 base_for_components handling.
3100 (create_variable_info_for): Adjust.
3101
3102 2008-05-08 Seongbae Park <seongbae.park@gmail.com>
3103
3104 * common.opt (Wframe-larger-than=): Shorten the help message
3105 to one line.
3106 * doc/invoke.texi (Wframe-larger-than=): Add more description.
3107
3108 2008-05-08 Rafael Espindola <espindola@google.com>
3109
3110 * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
3111 trap.
3112 * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
3113 trap and that both operands are gimple values.
3114 (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
3115 * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
3116 is a fp operation.
3117
3118 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
3119
3120 * read-rtl.c (join_c_conditions): Return the first string if the
3121 two strings are equal.
3122
3123 2008-05-08 Richard Sandiford <rsandifo@nildram.co.uk>
3124
3125 * gensupport.h (pred_data): Add a "num_codes" field.
3126 (add_predicate_code): Declare.
3127 * gensupport.c (add_predicate_code): New function.
3128 (std_pred_table): Add an "allows_const_p" field.
3129 (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
3130 Remove the (incomplete) list of such codes from the codes field.
3131 (init_predicate_table): Use add_predicate_code. Add all
3132 RTX_CONST_OBJs if allows_const_p is true.
3133 * genrecog.c (process_define_predicate): Use add_predicate_code.
3134
3135 2008-05-08 David Daney <ddaney@avtrex.com>
3136 Richard Sandiford <rsandifo@nildram.co.uk>
3137
3138 * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
3139 special case of constant zero operands.
3140 * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
3141 old and new values. Special case constant zero values.
3142 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
3143 fails.
3144 (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
3145 (MIPS_COMPARE_AND_SWAP_12_0): New macro.
3146
3147 2008-05-08 Paolo Bonzini <bonzini@gnu.org>
3148
3149 PR target/36090
3150 * simplify-rtx.c (simplify_plus_minus): Create CONST of
3151 similar RTX_CONST_OBJ before CONST_INT.
3152
3153 2008-05-08 Steve Ellcey <sje@cup.hp.com>
3154
3155 * stmt.c (expand_stack_restore): Change sa mode if needed.
3156
3157 2008-05-08 Richard Guenther <rguenther@suse.de>
3158
3159 * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
3160 return type to bool.
3161 (ix86_sol10_return_in_memory): Likewise.
3162 (ix86_i386elf_return_in_memory): Likewise.
3163 (ix86_i386interix_return_in_memory): Likewise.
3164 * config/i386/i386.c (ix86_return_in_memory): Likewise.
3165 (ix86_sol10_return_in_memory): Likewise.
3166 (ix86_i386elf_return_in_memory): Likewise.
3167 (ix86_i386interix_return_in_memory): Likewise.
3168
3169 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
3170
3171 PR bootstrap/36180
3172 * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
3173 fndecl argument.
3174 (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
3175 * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
3176 declared in front.
3177
3178 2008-05-08 Richard Guenther <rguenther@suse.de>
3179
3180 * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
3181 * tree-data-ref.h (struct dr_alias): Remove subvars field.
3182 (DR_SUBVARS): Remove.
3183 * tree-dfa.c (dump_subvars_for): Remove.
3184 (debug_subvars_for): Likewise.
3185 (dump_variable): Do not dump subvars.
3186 (remove_referenced_var): Do not remove subvars.
3187 * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
3188 (lookup_subvars_for_var): Remove.
3189 (get_subvars_for_var): Likewise.
3190 (get_subvars_at): Likewise.
3191 (get_first_overlapping_subvar): Likewise.
3192 (overlap_subvar): Likewise.
3193 * tree-flow.h (subvar_t): Remove.
3194 (struct var_ann_d): Remove subvars field.
3195 * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
3196 argument. Remove special handling of SFTs.
3197 (compute_tag_properties): Likewise.
3198 (set_initial_properties): Likewise.
3199 (compute_call_clobbered): Likewise.
3200 (count_mem_refs): Likewise.
3201 (compute_memory_partitions): Likewise.
3202 (compute_flow_insensitive_aliasing): Likewise.
3203 (setup_pointers_and_addressables): Likewise.
3204 (new_type_alias): Likewise.
3205 (struct used_part): Remove.
3206 (used_portions): Likewise.
3207 (struct used_part_map): Likewise.
3208 (used_part_map_eq): Likewise.
3209 (used_part_map_hash): Likewise.
3210 (free_used_part_map): Likewise.
3211 (up_lookup): Likewise.
3212 (up_insert): Likewise.
3213 (get_or_create_used_part_for): Likewise.
3214 (create_sft): Likewise.
3215 (create_overlap_variables_for): Likewise.
3216 (find_used_portions): Likewise.
3217 (create_structure_vars): Likewise.
3218 * tree.def (STRUCT_FIELD_TAG): Remove.
3219 * tree.h (MTAG_P): Adjust.
3220 (struct tree_memory_tag): Remove base_for_components and
3221 unpartitionable flags.
3222 (struct tree_struct_field_tag): Remove.
3223 (SFT_PARENT_VAR): Likewise.
3224 (SFT_OFFSET): Likewise.
3225 (SFT_SIZE): Likewise.
3226 (SFT_NONADDRESSABLE_P): Likewise.
3227 (SFT_ALIAS_SET): Likewise.
3228 (SFT_UNPARTITIONABLE_P): Likewise.
3229 (SFT_BASE_FOR_COMPONENTS_P): Likewise.
3230 (union tree_node): Remove sft field.
3231 * alias.c (get_alias_set): Remove special handling of SFTs.
3232 * print-tree.c (print_node): Remove handling of SFTs.
3233 * tree-dump.c (dequeue_and_dump): Likewise.
3234 * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
3235 * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
3236 * tree-predcom.c (set_alias_info): Do not set subvars.
3237 * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
3238 * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
3239 * tree-ssa-operands.c (access_can_touch_variable): Likewise.
3240 (add_vars_for_offset): Remove.
3241 (add_virtual_operand): Remove special handling of SFTs.
3242 (add_call_clobber_ops): Likewise.
3243 (add_call_read_ops): Likewise.
3244 (get_asm_expr_operands): Likewise.
3245 (get_modify_stmt_operands): Likewise.
3246 (get_expr_operands): Likewise.
3247 (add_to_addressable_set): Likewise.
3248 * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
3249 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
3250 * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
3251 * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
3252 (tree_code_size): Remove STRUCT_FIELD_TAG handling.
3253 (tree_node_structure): Likewise.
3254 * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
3255 handling of SFTs.
3256 (find_what_p_points_to): Likewise.
3257
3258 2008-05-08 Sa Liu <saliu@de.ibm.com>
3259
3260 * config/spu/spu.md: Fixed subti3 pattern.
3261
3262 2008-05-08 Richard Guenther <rguenther@suse.de>
3263
3264 PR middle-end/36154
3265 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
3266 sure to create a representative for trailing arrays for PTA.
3267
3268 2008-05-08 Richard Guenther <rguenther@suse.de>
3269
3270 PR middle-end/36172
3271 * fold-const.c (operand_equal_p): Two objects which types
3272 differ in pointerness are not equal.
3273
3274 2008-05-08 Kai Tietz <kai.tietz@onevision.com>
3275
3276 * calls.c (compute_argument_block_size): Add argument tree fndecl.
3277 (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
3278 (emit_library_call_value_1): Add new variable fndecl initialized by
3279 NULL_TREE. It should be the decl type of orgfun, but this information
3280 seems not to be available here, so it uses the default calling abi.
3281 * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
3282 * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
3283 by TARGET_RETURN_IN_MEMORY.
3284 * config/i386/i386-interix.h: Likewise.
3285 * config/i386/i386.h: Likewise.
3286 * config/i386/i386elf.h: Likewise.
3287 * config/i386/ptx4-i.h: Likewise.
3288 * config/i386/sol2-10.h: Likewise.
3289 * config/i386/sysv4.h: Likewise.
3290 * config/i386/vx-common.h: Likewise.
3291 * config/cris/cris.h: Removed #if 0 clause.
3292 * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
3293 * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
3294 argument.
3295 (ix86_sol10_return_in_memory): Likewise.
3296 (ix86_i386elf_return_in_memory): New.
3297 (ix86_i386interix_return_in_memory): New.
3298 * config/mt/mt-protos.h (mt_return_in_memory): New.
3299 * config/mt/mt.c: Likewise.
3300 * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3301 (RETURN_IN_MEMORY): Replace by TARGET_RETURN_IN_MEMORY.
3302 * config/bfin/bfin.h: Likewise.
3303 * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
3304 argument.
3305 * config/bfin/bfin.c: Likewise.
3306 * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
3307 * config/alpha/unicosmk.h: Likewise.
3308 * config/i386/cygming.h: Likewise.
3309 * config/iq2000/iq2000.h: Likewise.
3310 * config/mips/mips.h: Likewise.
3311 * config/mn10300/mn10300.h: Likewise.
3312 * config/rs6000/rs6000.h: Likewise.
3313 * config/score/score.h: Likewise.
3314 * config/spu/spu.h: Likewise.
3315 * config/v850/v850.h: Likewise.
3316 * defaults.h: Likewise.
3317 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
3318 * expr.c (emit_block_move): Adjust use of
3319 OUTGOING_REG_PARM_STACK_SPACE.
3320 * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
3321 OUTGOING_REG_PARM_STACK_SPACE.
3322 * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
3323
3324 2008-05-08 Jakub Jelinek <jakub@redhat.com>
3325
3326 * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
3327 on OMP_RETURN for OMP_FOR.
3328
3329 PR debug/35896
3330 * dwarf2out.c (dw_expand_expr, common_check): Removed.
3331 (fortran_common): New function.
3332 (gen_variable_die): Call fortran_common instead of common_check,
3333 adjust for it returning tree instead of rtx. Formatting.
3334
3335 2008-05-07 Kenneth Zadeck <zadeck@naturalbridge.com>
3336
3337 PR rtl/7335
3338 PR rtl/33826
3339 * see.c (see_copy_insn): Copy new pure const attributes for new call.
3340 * c-decl.c (merge_decls): Ditto.
3341 * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
3342 to RTL_CONST_OR_PURE_CALL_P.
3343 * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
3344 Initialized DECL_LOOPING_CONST_PURE.
3345 (process_call_operands): Set tree_side_effects properly.
3346 * tree.h (TREE_READONLY_DECL_P): Removed.
3347 (DECL_IS_PURE): Renamed to DECL_PURE_P.
3348 (DECL_LOOPING_OR_CONST_P): New macro.
3349 (struct tree_function_decl): Added looping_const_or_pure_p.
3350 (ECF_*) Renumbered.
3351 (ECF_LOOPING_OR_CONST_P): New macro.
3352 * rtlanal.c (pure_const_p): Removed.
3353 * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
3354 * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
3355 to RTL_CONST_CALL_P.
3356 * ipa-pure-const.c (pure_const_state_e): Added looping field.
3357 (check_decl, check_tree, check_call, scan_function): Initialize
3358 looping.
3359 (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
3360 (static_execute): Set looping true for recursive functions.
3361 Undo setting state to IPA_NEITHER for recursive functions.
3362 * cse.c (cse_insn):
3363 * ifcvt.c (noce_can_store_speculate_p): Changed
3364 CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
3365 RTL_CONST_OR_PURE_CALL_P.
3366 * dse.c (scan_insn): Ditto.
3367 * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
3368 * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
3369 RTL_CONST_OR_PURE_CALL_P.
3370 (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
3371 pure_call_p to RTL_CONST_CALL_P.
3372 * gimplify.c (gimplify_call_expr): Clear side effects for
3373 non-looping pure and constant calls.
3374 * calls.c (emit_call_1): Set rtl flags from ecf flags.
3375 (flags_from_decl_or_type): Set ecf flags from decl flags.
3376 (initialize_argument_information): Turn off
3377 ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
3378 Change const to pure if callee_copies is true rather than just
3379 turning off const.
3380 (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
3381 way of marking pure calls.
3382 (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
3383 Remove hack that was supposed to fix pr7335 and remove old
3384 way of marking pure calls.
3385 * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
3386 RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
3387 * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
3388 RTL_CONST_OR_PURE_CALL_P.
3389 * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
3390 * loop-invariant.c (find_exits, find_invariant_bb): Changed
3391 CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
3392 * sched-deps.c (schedule_analyze): Ditto.
3393 * rtl.h (struct rtx_def): Use call field, unchanging field, and
3394 return_val field of calls to represent pure and const function info.
3395 (CONST_OR_PURE_CALL_P): Deleted macro.
3396 (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
3397 RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
3398 * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
3399 TREE_READONLY.
3400 * tree-optimize.c (execute_fixup_cfg): Added test for
3401 ECF_LOOPING_CONST_OR_PURE.
3402 * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
3403 DECL_PURE_P.
3404 * tree-cfg.c (update_call_expr_flags): Do not clear tree side
3405 effects for looping pure or const calls.
3406 (verify_gimple_expr): Added verification code.
3407 * config/alpha/alpha.c (alpha_legitimize_address,
3408 alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
3409 RTL_CONST_CALL_P.
3410 * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
3411 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
3412 * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
3413 * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
3414 RTL_CONST_OR_PURE_CALL_P.
3415 * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
3416 and const calls to be deleted.
3417
3418 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
3419
3420 PR target/35714
3421 * config/i386/mmx.md (mmx_subv2sf3): New expander.
3422 (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
3423 (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
3424 (mmx_eqv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3425 to handle nonimmediate operands.
3426 (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
3427 (mmx_paddwd): New expander. Use ix86_fixup_binary_operands_no_copy
3428 to handle nonimmediate operands.
3429 (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
3430 (mmx_pmulhrwv4hi3): New expander. Use
3431 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3432 (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
3433 (sse2_umulv1siv1di3): New expander. Use
3434 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3435 (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
3436 (mmx_eq<mode>3): New expander. Use
3437 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3438 (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
3439 (mmx_uavgv8qi3): New expander. Use
3440 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3441 (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
3442 (mmx_uavgv4hi3): New expander. Use
3443 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3444
3445 * config/i386/sse.md
3446 (sse_movhlps_exp): New expander. Use ix86_fixup_binary_operands
3447 to handle nonimmediate operands.
3448 (sse_movlhps_exp): New expander. Use ix86_fixup_binary_operands
3449 to handle nonimmediate operands.
3450 (sse_loadhps_exp): New expander. Use ix86_fixup_binary_operands
3451 to handle nonimmediate operands.
3452 (sse_loadlps_exp): New expander. Use ix86_fixup_binary_operands
3453 to handle nonimmediate operands.
3454 (sse2_unpckhpd_exp): New expander. Use
3455 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3456 (sse2_unpcklpd_exp): New expander. Use
3457 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3458 (sse_loadhpd_exp): New expander. Use ix86_fixup_binary_operands
3459 to handle nonimmediate operands.
3460 (sse_loadlpd): New expander. Use ix86_fixup_binary_operands
3461 to handle nonimmediate operands.
3462 (*sse2_<plusminus_insn><mode>3): Rename from
3463 sse2_<plusminus_insn><mode>3 insn pattern.
3464 (sse2_<plusminus_insn><mode>3): New expander. Use
3465 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3466 (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
3467 (sse2_umulv2siv2di3): New expander. Use
3468 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3469 (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
3470 (sse4_1_mulv2siv2di3): New expander. Use
3471 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3472 (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
3473 (sse2_pmaddwd): New expander. Use
3474 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3475 (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
3476 (sse2_eq<mode>3): New expander. Use
3477 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3478 (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
3479 (sse4_1_eqv2di3): New expander. Use
3480 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3481 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3482 (sse2_uavgv16qi3): New expander. Use
3483 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3484 (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
3485 (sse2_uavgv16qi3): New expander. Use
3486 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3487 (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
3488 (sse2_uavgv8hi3): New expander. Use
3489 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3490 (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
3491 (ssse3_pmulhrswv8hi3): New expander. Use
3492 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3493 (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
3494 (ssse3_pmulhrswv4hi3): New expander. Use
3495 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3496
3497 (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
3498 (<sse>_vmmul<mode>3): Ditto.
3499 (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
3500 (divv2df3): Ditto.
3501 (ssse3_pmaddubsw128): Use register_operand for operand 1.
3502 (ssse3_pmaddubsw): Ditto.
3503
3504 * config/i386/i386.c (struct_builtin_description)
3505 [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
3506 [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
3507 [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
3508 [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
3509 [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
3510 [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
3511 [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
3512 [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
3513 (ix86_fixup_binary_operands): Assert that src1
3514 and src2 must have the same mode when swapped.
3515 (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
3516 and ix86_binary_operator_ok. Do not force operands in registers
3517 when optimizing.
3518
3519 2008-05-07 Jan Hubicka <jh@suse.cz>
3520
3521 * cgraph.c (dump_cgraph_node): Update.
3522 * cgraph.h (cgraph_local_info): Break out inline summary.
3523 * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
3524 hook.
3525 * ipa-inline (inline_summary): New accestor function.
3526 (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
3527 cgraph_decide_inlining, compute_inline_parameters): Update.
3528 * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
3529
3530 2008-05-07 Maxim Kuvyrkov <maxim@codesourcery.com>
3531
3532 Cleanup ColdFire scheduling support and add V4 pipeline model.
3533
3534 * config/m68k/m68k.md (UNSPEC_TIE): New constant.
3535 (define_attr cpu): Add cfv4 value.
3536 (define_attr type, define_attr type1): Merge into a single 'type'
3537 attribute. Update all uses.
3538 (define_attr opx_type, define_attr opy_type, define_attr opx_access):
3539 Rearrange and update. Rename value 'reg' to 'Rn', add value 'FPn'.
3540 Update all uses.
3541 (define_attr opx_mem, define_attr opy_mem): Remove.
3542 (define_attr op_mem): Clean up, update comment.
3543 (define_attr size): Use specific values instead of general int.
3544 (define_attr guess, define_attr split): Remove. Update all uses.
3545 (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
3546 tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
3547 movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
3548 zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
3549 68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
3550 floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
3551 fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
3552 adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
3553 add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
3554 add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
3555 sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
3556 sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
3557 mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
3558 umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
3559 mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
3560 div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
3561 one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
3562 bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
3563 beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
3564 bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
3565 symbolic_call_value_jsr, symbolic_call_value_bsr, link):
3566 Update or set attributes.
3567 (stack_tie): New fake instruction.
3568
3569 * config/m68k/m68k.h (TUNE_CFV4): New macro.
3570 (m68k_sched_attr_size): Update declaration.
3571 (m68k_sched_attr_type2): Remove.
3572 (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
3573 Declare new bypass predicates.
3574
3575 * config/m68k/m68k.c (m68k_sched_issue_rate,
3576 m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
3577 implementations.
3578 (TARGET_SCHED_ISSUE_RATE,
3579 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
3580 (override_options): Handle scheduling for ColdFire V4 core.
3581 (m68k_expand_prologue): Emit stack_tie.
3582 (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
3583 'OP_TYPE_FPN'. Update all uses.
3584 (sched_guess_p): Remove.
3585 (sched_address_type): Handle symbolic addresses.
3586 (sched_get_operand): New static function.
3587 (sched_operand_type): Merge into sched_attr_op_type.
3588 (sched_attr_op_type): Handle FP registers, handle quick constants,
3589 update.
3590 (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
3591 (m68k_sched_attr_size): Update. Move logic to ...
3592 (sched_get_attr_size_int): New static function.
3593 (sched_get_opxy_mem_type): New static function.
3594 (m68k_sched_attr_op_mem): Update.
3595 (m68k_sched_attr_type2): Remove.
3596 (sched_cfv4_bypass_data): New static variable.
3597 (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
3598 (m68k_sched_issue_rate): Implement scheduler hook.
3599 (struct _sched_ib: enabled_p): New field.
3600 (m68k_sched_variable_issue): Update. Handle V4.
3601 (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
3602 sched_dump_class_func_t, sched_dump_split_class,
3603 sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
3604 sched_dump_dfa_class, m68k_sched_dump): Remove.
3605 (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
3606 hook.
3607 (m68k_sched_init_global): Remove statisctics dumping, introduce
3608 sanity check that all instructions have pipeline reservations. Handle
3609 ColdFire V4 core.
3610 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
3611 Handle ColdFire V4 core.
3612 (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
3613 New static functions.
3614 (m68k_sched_address_bypass_p): New bypass predicate.
3615 (sched_get_indexed_address_scale): New static function.
3616 (m68k_sched_indexed_address_bypass_p): New bypass predicate.
3617
3618 * cf.md: Update comments.
3619 (define_attr type2): Remove. Use 'type' attribute instead.
3620 Update all uses.
3621 (cf_ib): Rename to cfv123_ib. Update all uses.
3622 (cf_oep): Rename to cfv123_oep. Update all uses.
3623 (cf_chr): Rename to cfv123_chr. Update all uses.
3624 (cf_mem): Rename to cfv123_mem. Update all uses.
3625 (cf_mac): Move to more appropriate place.
3626 (cfv123_guess): New automaton and cpu_unit.
3627 (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
3628 Update uses of 'size' attribute. Handle before reload scheduling.
3629 (cfv123_guess): New dummy reservation for unhandled instructions.
3630 (cfv4_*): Pipeline description of ColdFire V4 core.
3631 (ignore): New reservation to handle 'ignore' type.
3632
3633 2008-05-07 Ian Lance Taylor <iant@google.com>
3634
3635 PR middle-end/36013
3636 * gimplify.c (find_single_pointer_decl_1): Don't look through
3637 indirections.
3638 (find_single_pointer_decl): Adjust comments.
3639
3640 2008-05-07 Jakub Jelinek <jakub@redhat.com>
3641
3642 PR middle-end/36137
3643 * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
3644 STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
3645
3646 PR middle-end/36106
3647 * omp-low.c (expand_omp_atomic_pipeline): Load value using the
3648 integral type rather than floating point, then VIEW_CONVERT_EXPR
3649 to the floating point type.
3650
3651 2008-05-07 Uros Bizjak <ubizjak@gmail.com>
3652
3653 * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
3654 TFmode op0 to register.
3655
3656 2008-05-07 Alan Modra <amodra@bigpond.net.au>
3657
3658 * c-decl.c (grokdeclarator): Comment typo.
3659
3660 2008-05-06 Aldy Hernandez <aldyh@redhat.com>
3661
3662 * tree-flow.h: Remove prototype for computed_goto_p.
3663 * tree-cfg.c (computed_goto_p): Make static.
3664
3665 2008-05-06 H.J. Lu <hongjiu.lu@intel.com>
3666
3667 PR target/35657
3668 * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
3669 (contains_aligned_value_p): This. Handle _Decimal128.
3670 (ix86_function_arg_boundary): Only align _Decimal128 to its
3671 natural boundary and handle it properly.
3672
3673 2008-05-06 Martin Jambor <mjambor@suse.cz>
3674
3675 * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
3676 (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
3677 (ipcp_method_set_orig_node): Removed.
3678 (ipcp_cval_get_cvalue_type): Removed.
3679 (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
3680 (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
3681 (ipcp_cval_set_cvalue_type): Removed.
3682 (ipcp_cval_get_cvalue): Removed.
3683 (ipcp_cval_set_cvalue): Removed.
3684 (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
3685 (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
3686 (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
3687 (ipcp_cval_meet): Renamed to ipa_lattice_meet
3688 (ipcp_cval_changed): Changed to use ipcp_lat_is_const
3689 (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
3690 (ipcp_get_ith_lattice): Changed parameters.
3691 (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
3692 (ipcp_lattice_from_jfunc): Changed parameters.
3693 (ipcp_redirect): Local lattice pointer instead of lattice type variable.
3694 (ipcp_method_cval_print): Added temporary variable info.
3695 (ipcp_redirect): Removed already unused local variable caller.
3696 (ipcp_redirect): New temporary variable orig_callee_info
3697 (ipcp_redirect): Removed newly unused local variable callee.
3698 (ipcp_redirect): Removed (a bit confusing) local variable type.
3699 (ipcp_insert_stage): Added local variable info.
3700 (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
3701 renamed too
3702 (ipcp_formal_create): Removed.
3703 (ipcp_method_cval_set): Removed.
3704 (ipcp_propagate_stage): Renamed lattice variables.
3705 (ipcp_method_cval_set_cvalue_type): Removed.
3706 (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
3707 (ipcp_print_all_lattices): Changed printed strings to refer to
3708 lattices rather than cvals.
3709 (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
3710 (ipcp_propagate_const): Changed formal parameters.
3711 (build_const_val): Changed formal parameters.
3712 (ipcp_insert_stage): Removed useless variable cvalue
3713 (build_const_val): Changed formal parameters.
3714 (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
3715 (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
3716 (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
3717 (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
3718 (ipcp_print_func_profile_counts): Changed string from "method" to
3719 "function"
3720 (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
3721 (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
3722 (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
3723 (ipcp_structures_print): Renamed to ipcp_print_all_structures
3724 (ipcp_profile_print): Renamed to ipcp_print_profile_data
3725 (ipcp_lat_is_const): Changed parameters and made inline.
3726 (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
3727 (ipcp_redirect): Renamed to ipcp_need_redirect_p
3728 (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
3729 the predicate condition directly
3730 (ipcp_propagate_stage): Added local variable args. Removed local
3731 variable callee. (Both are mere code simplifications.)
3732 (ipcp_method_dont_insert_const): Renamed to
3733 ipcp_node_not_modifiable_p.
3734 (ipcp_node_not_modifiable_p): Made inline.
3735 (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
3736 (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
3737 (ipcp_print_all_lattices): Removed variable cvalue
3738 (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
3739 Updated comments.
3740
3741 2008-05-06 Olivier Hainque <hainque@adacore.com>
3742
3743 * tree-sra.c (try_instantiate_multiple_fields): Early return
3744 if field has POINTER_TYPE.
3745
3746 2008-05-06 Kai Tietz <kai.tietz@onevision.com>
3747
3748 * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
3749 by using 'q' specifier for instruction.
3750 (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
3751
3752 2008-05-06 Anatoly Sokolov <aesok@post.ru>
3753
3754 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
3755 Change mode of zero_extract from QImode to HImode.
3756 (sign bit tests peepholes): (Ditto.).
3757
3758 2008-05-06 Uros Bizjak <ubizjak@gmail.com>
3759
3760 * config/i386/mmx.md: Remove double backslashes from asm templates.
3761 (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
3762 (mmx_addv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3763 to handle nonimmediate operands.
3764 (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
3765 (mmx_mulv2sf3): New expander. Use ix86_fixup_binary_operands_no_copy
3766 to handle nonimmediate operands.
3767 (*mmx_<code>v2sf3_finite): New insn pattern.
3768 (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
3769 (mmx_<code>v2sf3): New expander. Use
3770 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3771 (mmx_<plusminus_insn><mode>3): New expander. Use
3772 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3773 (*mmx_<plusminus_insn><mode>3): New insn pattern.
3774 (mmx_add<mode>3): Removed.
3775 (mmx_ssadd<mode>3): Ditto.
3776 (mmx_usadd<mode>3): Ditto.
3777 (mmx_sub<mode>3): Ditto.
3778 (mmx_sssub<mode>3): Ditto.
3779 (mmx_ussub<mode>3): Ditto.
3780 (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
3781 (mmx_mulv4hi3): New expander. Use ix86_fixup_binary_operands_no_copy
3782 to handle nonimmediate operands.
3783 (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
3784 insn pattern.
3785 (mmx_smulv4hi3_highpart): New expander. Use
3786 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3787 (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
3788 insn pattern.
3789 (mmx_umulv4hi3_highpart): New expander. Use
3790 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3791 (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
3792 (mmx_<code>v4hi3): New expander. Use
3793 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3794 (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
3795 (mmx_<code>v8qi3): New expander. Use
3796 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3797 (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
3798 (mmx_<code><mode>3): New expander. Use
3799 ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
3800
3801 2008-05-05 Jan Hubicka <jh@suse.cz>
3802
3803 PR tree-optimization/36118
3804 * passes.c (pass_init_dump_file): Fix dump header.
3805
3806 2008-05-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
3807
3808 PR middle-end/36141
3809 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
3810 VCE for function decls.
3811
3812 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
3813
3814 * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
3815
3816 2008-05-05 H.J. Lu <hongjiu.lu@intel.com>
3817
3818 * config/i386/i386.md (sat_plusminus): New.
3819 (plusminus_insn): Likewise.
3820 (plusminus_mnemonic): Likewise.
3821 (addsub): Removed.
3822 (comm): Add ss_plus, us_plus, ss_minus and us_minus.
3823 (*<addsub><mode>3_cc_overflow): Renamed to ...
3824 (*<plusminus_insn><mode>3_cc_overflow): This.
3825 (*<addsub>si3_zext_cc_overflow): Renamed to ...
3826 (*<plusminus_insn>si3_zext_cc_overflow): This.
3827
3828 * config/i386/sse.md (<addsub><mode>3): Renamed to ...
3829 (<plusminus_insn><mode>3): This.
3830 (*<addsub><mode>3): Renamed to ...
3831 (*<plusminus_insn><mode>3): This.
3832 (<sse>_vm<addsub><mode>3): Renamed to ...
3833 (<sse>_vm<plusminus_insn><mode>3): This.
3834 (sse3_h<addsub>v4sf3): Renamed to ...
3835 (sse3_h<plusminus_insn>v4sf3): This.
3836 (sse3_h<addsub>v2df3): Renamed to ...
3837 (sse3_h<plusminus_insn>v2df3): This.
3838 (<plusminus_insn><mode>3): New.
3839 (*<plusminus_insn><mode>3): Likewise.
3840 (sse2_<plusminus_insn><mode>3): Likewise.
3841 (add<mode>): Removed.
3842 (*add<mode>3): Likewise.
3843 (sse2_ssadd<mode>3): Likewise.
3844 (sse2_usadd<mode>3): Likewise.
3845 (sub<mode>3): Likewise.
3846 (*sub<mode>3): Likewise.
3847 (sse2_sssub<mode>3): Likewise.
3848 (sse2_ussub<mode>3): Likewise.
3849
3850 2008-05-05 Benjamin Kosnik <bkoz@redhat.com>
3851
3852 * gthr-single.h: Add in required interface elements as per gthr.h.
3853 Add stub types for __gthread_key_t, __gthread_once_t. Add defines
3854 for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
3855 Generalize UNUSED macro.
3856 (__gthread_once): Add.
3857 (__gthread_key_create): Add.
3858 (__gthread_key_delete): Add.
3859 (__gthread_getspecific): Add.
3860 (__gthread_setspecific): Add.
3861
3862 2008-05-05 Andrew Pinski <Andrew.Pinski@playstation.sony.com>
3863
3864 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
3865 the same size types for the indirect reference on the rhs, then
3866 create a VCE.
3867
3868 2008-05-05 Uros Bizjak <ubizjak@gmail.com>
3869
3870 * config/i386/i386.md
3871 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
3872 one insn template instead of template series.
3873 (*xordi_1_rex64): Ditto.
3874 (*xordi_2_rex64): Ditto.
3875
3876 2008-05-05 Ira Rosen <irar@il.ibm.com>
3877
3878 PR tree-optimization/36119
3879 * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
3880 in case of SLP.
3881
3882 2008-06-04 Jan Hubicka <jh@suse.cz>
3883
3884 tree-optimization/36100
3885 * tree-pass.h (pass_O0_always_inline): Declare.
3886 * ipa-inline.c (inline_transform): Remove dead code.
3887 (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
3888 pass_O0_always_inline): New.
3889 * passes.c (init_optimization_passes): Add pass_O0_always_inline.
3890
3891 2008-05-04 Kai Tietz <kai.tietz@onevision.com>
3892
3893 * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
3894 mnemonic in this_param move for TARGET_64BIT.
3895
3896 2008-05-04 Uros Bizjak <ubizjak@gmail.com>
3897
3898 * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
3899 (*strmovsi_rex_1): Ditto.
3900 (*strsetsi_1): Ditto.
3901 (*strsetsi_rex_1): Ditto.
3902
3903 (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
3904 adddicc expanders using SWI mode iterator.
3905
3906 2008-05-04 H.J. Lu <hongjiu.lu@intel.com>
3907
3908 PR target/36121
3909 * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
3910 argument handling.
3911
3912 2008-05-04 David S. Miller <davem@davemloft.net>
3913
3914 * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
3915 (sparc*-*-linux*): Use linux.h in tm_file.
3916 (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
3917 compiler defaulting to 32-bit.
3918 (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
3919 no longer needed.
3920 * config/sparc/linux.h: Remove definitions now obtained
3921 properly from linux.h
3922 * config/sparc/linux64.h: Likewise.
3923 (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
3924 don't want this setting for 32-bit builds in a biarch compiler.
3925 * doc/install.texi: Add sparc-linux to list of targets
3926 supporting --enable-targets=all.
3927
3928 2008-05-03 Andrew Pinski <pinskia@gmail.com>
3929
3930 * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
3931
3932 2008-05-03 H.J. Lu <hongjiu.lu@intel.com>
3933
3934 * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
3935 after V4SI_FTYPE_V8HI.
3936 (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
3937 case V4SI_FTYPE_V2DF.
3938
3939 2008-05-03 Kenneth Zadeck <zadeck@naturalbridge.com>
3940
3941 * doc/invoke.texi (max-flow-memory-locations): Removed.
3942 * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
3943
3944 2008-05-03 Richard Guenther <rguenther@suse.de>
3945
3946 PR middle-end/34973
3947 * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
3948
3949 2008-05-02 David S. Miller <davem@davemloft.net>
3950
3951 * config.gcc (need_64bit_hwint): Document libcpp dependency.
3952
3953 2008-05-02 Simon Baldwin <simonb@google.com>
3954
3955 PR bootstrap/36108
3956 * c-common.h (warn_array_subscript_range): Removed.
3957 * c-common.c (warn_array_subscript_range): Ditto.
3958 * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
3959 * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
3960
3961 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
3962
3963 * config/i386/i386.c (ix86_special_builtin_type): New.
3964 (bdesc_special_args): Likewise.
3965 (ix86_expand_special_args_builtin): Likewise.
3966 (ix86_init_mmx_sse_builtins): Updated.
3967 (ix86_expand_builtin): Updated.
3968 (ix86_expand_store_builtin): Removed.
3969 (ix86_expand_unop_builtin): Likewise.
3970
3971 * config/i386/mm3dnow.h (__v2sf): Moved to ...
3972 * config/i386/mmintrin.h (__v2sf): Here.
3973
3974 * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
3975 const __v2sf.
3976 (_mm_loadl_pi): Likewise.
3977 (_mm_storeh_pi): Replace __v2si with __v2sf.
3978 (_mm_storel_pi): Likewise.
3979
3980 * doc/extend.texi: Correct __builtin_ia32_loadhps,
3981 __builtin_ia32_loadlps, __builtin_ia32_storehps,
3982 __builtin_ia32_storelps, __builtin_ia32_loadhpd and
3983 __builtin_ia32_loadlpd.
3984
3985 2008-05-02 H.J. Lu <hongjiu.lu@intel.com>
3986
3987 * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
3988 V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
3989 (bdesc_args): Updated. Add scalar SSE builtins with vec_merge.
3990 (ix86_init_mmx_sse_builtins): Updated.
3991 (ix86_expand_args_builtin): Likewise.
3992 (ix86_expand_builtin): Likewise.
3993 (ix86_expand_unop1_builtin): Renamed to ...
3994 (ix86_expand_unop_vec_merge_builtin): This.
3995
3996 2008-05-01 Jan Hubicka <jh@suse.cz>
3997
3998 PR bootstrap/36100
3999 * ipa-inline.c (inline_generate_summary): Make static.
4000 (inline_transform): Do not call inlining at -O0; make static.
4001 * passes.c (execute_todo): Add sanity check.
4002 (execute_one_ipa_transform_pass): Execute proper flags.
4003
4004 2008-05-01 Eric Botcazou <ebotcazou@adacore.com>
4005
4006 * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
4007 (DECL_NONADDRESSABLE_P): Likewise.
4008 * alias.c (record_component_aliases): Fix comment.
4009
4010 2008-05-01 Simon Baldwin <simonb@google.com>
4011
4012 * c-common.h (warn_array_subscript_range): New function.
4013 * c-common.c (warn_array_subscript_range): Ditto.
4014 * tree-vrp.c (check_array_ref): Corrected code to agree with
4015 comment, ignoring only arrays of size 0 or size 1.
4016 * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
4017
4018 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4019
4020 * config/i386/i386.c (ix86_builtin_type): Replace
4021 DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
4022 (bdesc_args): Updated.
4023 (ix86_init_mmx_sse_builtins): Likewise.
4024 (ix86_expand_args_builtin): Likewise.
4025
4026 * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
4027 with __v1di.
4028
4029 * doc/extend.texi: Correct __builtin_ia32_palignr.
4030
4031 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4032
4033 PR target/36095
4034 * config/i386/i386.c (bdesc_crc32): Removed.
4035 (ix86_expand_crc32): Likewise.
4036 (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
4037 V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
4038 V2DI2TI_FTYPE_V2DI_V2DI_INT. Add UINT64_FTYPE_UINT64_UINT64,
4039 UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
4040 UINT_FTYPE_UINT_UCHAR.
4041 (bdesc_args): Updated. Add crc32 builtins.
4042 (ix86_init_mmx_sse_builtins): Updated.
4043 (ix86_expand_args_builtin): Updated to support subreg.
4044
4045 * doc/extend.texi: Correct __builtin_ia32_crc32di.
4046
4047 2008-05-01 Jan Hubicka <jh@suse.cz>
4048
4049 * tree-pass.h (opt_pass): Add IPA_PASS.
4050 (varpool_node, cgraph_node): Forward declare.
4051 (ipa_opt_pass): Define.
4052 (pass_ipa_inline): Turn into ipa_opt_pass.
4053 (pass_apply_inline): Remove.
4054 * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
4055 (apply_inline): Turn into ....
4056 (inline_transform): ... this one.
4057 (inline_generate_summary): New function.
4058 (pass_apply_inline): Remove.
4059 * function.h (ipa_opt_pass): Forward declare structure; typedef;
4060 vector.
4061 (struct function): Add ipa_transforms_to_apply.
4062 * passes.c (register_one_dump_file): Work on IPA_PASS.
4063 (init_optimization_passes): Remove pass_inline_parameters and
4064 pass_apply_inline.
4065 (pass_init_dump_file, pass_fini_dump_file): Break out from ....
4066 (execute_one_pass) ... here; apply transforms when possible.
4067 (add_ipa_transform_pass, execute_ipa_summary_asses,
4068 execute_one_ipa_transform_pass): New.
4069 (execute_ipa_pass_list): Update for IPA_PASS type.
4070
4071 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4072
4073 * config/i386/i386.c (ix86_builtin_type): Add
4074 V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
4075 V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
4076 (bdesc_args): Add SSE4a builtins.
4077 (ix86_init_mmx_sse_builtins): Updated.
4078 (ix86_expand_args_builtin): Likewise.
4079 (ix86_expand_builtin): Likewise.
4080
4081 2008-05-01 H.J. Lu <hongjiu.lu@intel.com>
4082
4083 * config/i386/i386.c (ix86_builtin_type): Add
4084 V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
4085 V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
4086 V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
4087 V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
4088 V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
4089 V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
4090 V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
4091 V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
4092 and DI_FTYPE_DI_DI_INT.
4093 (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
4094 (ix86_init_mmx_sse_builtins): Updated.
4095 (ix86_expand_args_builtin): Likewise.
4096 (ix86_expand_builtin): Likewise.
4097 (ix86_expand_binop_imm_builtin): Removed.
4098
4099 * doc/extend.texi: Correct __builtin_ia32_palignr128.
4100
4101 2008-04-30 Richard Guenther <rguenther@suse.de>
4102
4103 PR tree-optimization/32921
4104 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
4105
4106 2008-04-30 Richard Sandiford <rsandifo@nildram.co.uk>
4107
4108 * config/arm/arm.c (arm_unwind_emit): Use
4109 crtl->all_throwers_are_sibcalls instead of
4110 cfun->all_throwers_are_sibcalls.
4111 (arm_output_fn_unwind): Likewise.
4112 * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
4113 instead of cfun->uses_pic_offset_table.
4114 (frv_expand_prologue): Likewise.
4115 (frv_frame_pointer_required): Likewise.
4116 (frv_expand_fdpic_call): Likewise.
4117 (frv_emit_movsi): Likewise.
4118 * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
4119 cfun->returns_pcc_struct instead of
4120 current_function_returns_pcc_struct.
4121 * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
4122 instead of cfun->calls_eh_return.
4123 (m32c_pushm_popm): Likewise.
4124 * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
4125 "extern" declaration.
4126
4127 2008-04-30 Richard Guenther <rguenther@suse.de>
4128
4129 PR tree-optimization/21636
4130 * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
4131 constant address.
4132 (evaluate_stmt): Print the likely value.
4133 (ccp_visit_stmt): Avoid excessive vertical spacing.
4134
4135 2008-04-30 Rafael Espindola <espindola@google.com>
4136
4137 * builtins.c (fold_call_expr): Return realret.
4138 * tree-ssa-threadedge.c
4139 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
4140 __builtin_object_size.
4141
4142 2008-04-30 Seongbae Park <seongbae.park@gmail.com>
4143
4144 * gcc.c (wrapper_string): New variable.
4145 (insert_wrapper): New function.
4146 (execute): New option -wrapper.
4147 * doc/invoke.texi (Overall Options): New driver option -wrapper.
4148
4149 2008-04-30 Nathan Froyd <froydnj@codesourcery.com>
4150
4151 * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
4152 config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
4153 config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
4154 from...
4155 * config/rs6000/crtsavres.asm: ...here. Remove unneeded file.
4156 * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
4157 config/rs6000/e500crtres64gprctr.asm,
4158 config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
4159 config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
4160 config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
4161 config/rs6000/e500crtsav64gprctr.asm,
4162 config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
4163 config/rs6000/e500crtsavg64gprctr.asm: New files.
4164 * config/rs6000/t-ppccomm: Add build rules for new files.
4165 (LIB2FUNCS_STATIC_EXTRA): Add new files.
4166 * config/rs6000/t-netbsd: Add build rules for new files.
4167 (LIB2FUNCS_STATIC_EXTRA): New variable.
4168 * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
4169 (CRTSAVRES_DEFAULT_SPEC): Likewise.
4170 * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
4171
4172 2008-04-30 H.J. Lu <hongjiu.lu@intel.com>
4173
4174 * config/i386/i386.c (ix86_builtin_type): Add
4175 FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
4176 V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
4177 V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
4178 V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
4179 V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
4180 V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
4181 V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
4182 V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
4183 V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
4184 V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
4185 V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
4186 V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
4187 V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
4188 V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
4189 V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
4190 V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
4191 V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
4192 V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
4193 V1DI_FTYPE_V2SI_V2SI.
4194 (bdesc_2arg): Moved to ...
4195 (bdesc_args): Here.
4196 (ix86_init_mmx_sse_builtins): Updated.
4197 (ix86_expand_args_builtin): Updated. Take a pointer
4198 to const struct builtin_description. Handle comparison
4199 builtin functions.
4200 (ix86_expand_sse_compare): Take a new argument for swapping operands.
4201 (ix86_expand_builtin): Updated.
4202
4203 * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
4204 (ssse3_pmaddubsw128): This.
4205 (ssse3_pmaddubswv4hi3): Renamed to ...
4206 (ssse3_pmaddubsw): This.
4207
4208 * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
4209 (__builtin_ia32_packssdw128): Likewise.
4210 (__builtin_ia32_packuswb128): Likewise.
4211 (__builtin_ia32_pmaddubsw): Likewise.
4212 (__builtin_ia32_pmaddubsw128): Likewise.
4213
4214 2008-04-30 Richard Guenther <rguenther@suse.de>
4215
4216 PR tree-optimization/14847
4217 * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
4218 (recognize_bits_test): Use it.
4219 (recognize_single_bit_test): Likewise.
4220
4221 2008-04-30 Martin Jambor <mjambor@suse.cz>
4222
4223 * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
4224 instead of setting number of formal parameters to zero.
4225 (ipcp_init_stage): Do not set the number of actual parameters to zero
4226 either.
4227 (ipcp_propagate_stage): Explicitly skipping all calls to nodes
4228 which are called with variable number of arguments.
4229 (ipcp_insert_stage): Explicitely skipping all nodes which are
4230 called with variable number of arguments.
4231 (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
4232 number of parameters.
4233
4234 * ipa-prop.h (struct ipa_node_params): Added flag
4235 called_with_var_arguments
4236 (ipa_set_param_count): Added. Changed sole setter to use it.
4237 (ipa_get_param_count): Added. All readers of param_count
4238 converted to use it instead.
4239 (ipa_set_called_with_variable_arg): Added.
4240 (ipa_is_called_with_var_arguments): Added.
4241 (ipa_get_ith_param): Added. All readers of param_decls converted
4242 to use it instead.
4243 (ipa_set_cs_argument_count): Added, sole writer to argument_count
4244 changed to use it.
4245 (ipa_get_cs_argument_count): Added, all readers of argument_count
4246 changed to cal it.
4247 (ipa_get_ith_jump_func): Added. Accessors of jump values changed
4248 to use it.
4249
4250 * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
4251 (struct ipcp_lattice): Renamed cval_type to type
4252 (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
4253
4254 * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
4255 (ipcp_cval_set_cvalue): Changed type of parameter value to tree
4256 (ipcp_insert_stage): Changed the type of variable cvalue to tree
4257 (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
4258 (build_const_val): Changed the type of parameter cvalue to tree
4259 (ipcp_propagate_const): Changed the type of parameter cvalue to tree
4260 (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
4261
4262 * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
4263 constant
4264
4265 * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
4266 (ipa_methodlist_not_empty): Removed, the sole user now checks directly
4267 (ipa_add_method): Renamed to ipa_push_func_to_list
4268 (ipa_remove_method): Renamed to ipa_pop_func_from_list
4269 (ipa_callsite_param_count): Removed.
4270 (ipa_callsite_param_count_set): Removed.
4271 (ipa_callsite_param): Removed.
4272 (ipa_callsite_callee): Removed.
4273 (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
4274 (ipa_callsite_compute_count): Renamed to ipa_count_arguments
4275 (ipa_method_formal_count): Removed.
4276 (ipa_method_formal_count_set): Removed.
4277 (ipa_method_get_tree): Removed.
4278 (ipa_method_tree_map_create): Removed.
4279 (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
4280 (ipa_create_param_decls_array): Creates the array itself
4281 (ipa_create_param_decls_array): Temporary variable info instead of
4282 a few dereferences.
4283 (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
4284 (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
4285 (get_type): Removed.
4286 (ipa_jf_get_info_type): Removed.
4287 (ipa_node_create): Renamed to ipa_create_node_params
4288 (ipa_free): Renamed to ipa_free_all_node_params
4289 (ipa_nodes_create): Renamed to ipa_create_all_node_params
4290 (ipa_edges_create): Renamed to ipa_create_all_edge_args
4291 (ipa_edges_free): Renamed to ipa_free_all_edge_args
4292 (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
4293 (ipa_free_all_node_params): Deallocation to jump_functions moved to
4294 ipa_free_all_edge_args
4295 (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
4296 (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
4297 (ipa_create_methodlist_node): Removed.
4298 (ipa_methodlist_method): Removed.
4299 (ipa_methodlist_method_set): Removed.
4300 (ipa_methodlist_next_method): Removed.
4301 (ipa_methodlist_next_method_set): Removed.
4302 (ipa_method_is_modified): Removed.
4303 (ipa_method_modify_create): Removed.
4304 (ipa_method_modify_init): Temporary variable info instead of a few
4305 dereferences.
4306 (ipa_detect_param_modifications): Temporary variable info instead of
4307 a few dereferences.
4308 (ipa_compute_jump_functions): Temporary variable info instead of
4309 a few dereferences.
4310 (ipa_method_modify_set): Removed.
4311 (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
4312 (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
4313 than craph_node as the first parameter.
4314 (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
4315 (ipa_method_modify_init): Removed.
4316 (ipa_compute_jump_functions): Added a temp variable instead of
4317 repeatadly dereferencing the cgraph_edge.aux pointer
4318 (ipa_callsite_param_set_type): Removed.
4319 (ipa_compute_jump_functions): i renamed to index and moved to
4320 an inner block
4321 (ipa_callsite_param_set_info_type_formal): Removed.
4322 (ipa_callsite_param_set_info_type): Removed.
4323 (ipa_callsite_param_map_create): Removed.
4324 (ipa_callsite_tree): Removed.
4325 (ipa_callsite_caller): Removed.
4326 (ipa_pop_func_from_list): return_method removed to return_func
4327
4328 * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
4329 prefixed all values with IPA_. Changed all users.
4330 (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
4331 CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
4332 and FORMAL_IPATYPE IPA_PASS_THROUGH.
4333 (union parameter_info): Renamed to jump_func_value.
4334 (union jump_func_value): Renamed value to constant
4335 (struct ipa_jump_func): Renamed info_type to value
4336 (struct ipa_node): Renamed to ipa_node_params
4337 (struct ipa_node_params): Renamed ipa_arg_num to param_count
4338 (struct ipa_node_params): Renamed ipa_param_tree to param_decls
4339 (struct ipa_node_params): Renamed ipa_mod to modified_flags
4340 (struct ipa_edge): Renamed to ipa_edge_args
4341 (struct ipa_edge_args): Renamed ipa_param_num to argument_count
4342 (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
4343 (struct ipa_methodlist): Renamed to ipa_func_list
4344 (struct ipa_func_list): method_p renamed to node, next_method
4345 renamed to next
4346 (ipa_methodlist_p): Removed, switched all users to struct pointer
4347 (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
4348
4349 2008-04-30 Alan Modra <amodra@bigpond.net.au>
4350
4351 * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
4352 (rs6000_emit_epilogue): Use backchain to restore only when we
4353 have a large frame. Make use of frame pointer to restore if we
4354 have one. Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
4355
4356 2008-04-29 Paolo Bonzini <bonzini@gnu.org>
4357
4358 * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
4359 Add mode to zero_extract.
4360 (sign bit tests peepholes): (Ditto.).
4361
4362 2008-04-29 H.J. Lu <hongjiu.lu@intel.com>
4363
4364 * config/i386/i386.c (ix86_builtins): Replace Prescott New
4365 Instructions in comments with SSE3.
4366 (ix86_builtin_type): This. Add FLOAT128_FTYPE_FLOAT128,
4367 INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
4368 INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
4369 V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
4370 V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
4371 V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
4372 V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
4373 V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
4374 V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
4375 V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
4376 V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
4377 V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
4378 (bdesc_sse_args): Renamed to ...
4379 (bdesc_args): This. Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
4380 IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
4381 IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
4382 IX86_BUILTIN_FABSQ.
4383 (bdesc_1arg): Moved to ...
4384 (bdesc_args): Here.
4385 (ix86_init_mmx_sse_builtins): Updated. Replace Prescott New
4386 Instructions in comments with SSE3.
4387 (ix86_expand_sse_operands_builtin): Renamed to ...
4388 (ix86_expand_args_builtin): This. Updated.
4389 (ix86_expand_unop1_builtin): Update comments.
4390 (ix86_expand_builtin): Updated.
4391
4392 2008-04-29 Richard Guenther <rguenther@suse.de>
4393
4394 PR tree-optimization/36078
4395 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
4396 Update virtual SSA form after cleaning up the CFG.
4397
4398 2008-04-29 Richard Guenther <rguenther@suse.de>
4399
4400 PR middle-end/15255
4401 * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
4402
4403 2008-04-29 Richard Guenther <rguenther@suse.de>
4404
4405 * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
4406 (compute_may_aliases): Do not call finalize_ref_all_pointers.
4407 (compute_flow_insensitive_aliasing): Do not treat
4408 PTR_IS_REF_ALL pointers special.
4409 (get_smt_for): Likewise.
4410 (may_alias_p): Re-structure.
4411 (is_escape_site): A ref-all pointer conversion is not an escape site.
4412 * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
4413 PTR_IS_REF_ALL pointers special.
4414 * tree-ssa-structalias.h (struct alias_info): Remove
4415 ref_all_symbol_mem_tag field.
4416 (PTR_IS_REF_ALL): Remove.
4417
4418 2008-04-29 Richard Guenther <rguenther@suse.de>
4419
4420 PR middle-end/36077
4421 * fold-const.c (extract_muldiv_1): In combining division constants
4422 make sure to never overflow.
4423
4424 2008-04-29 Nick Clifton <nickc@redhat.com>
4425
4426 * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
4427
4428 2008-04-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4429
4430 PR bootstrap/35169
4431 * optc-gen.awk: Work around HP-UX/IA awk bug.
4432
4433 2008-04-28 Danny Smith <dannysmith@users.sourceforge.net>
4434
4435 * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
4436 2008-04-25 commit.
4437
4438 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
4439
4440 PR target/36073
4441 * config/i386/i386.md
4442 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
4443 Change operand 1 predicate to nonimmediate_operand.
4444
4445 2008-04-28 Jakub Jelinek <jakub@redhat.com>
4446
4447 PR debug/36060
4448 * dwarf2out.c (struct die_struct): Mark as chain_circular through
4449 die_sub field.
4450 * gengtype.c (walk_type, write_func_for_structure): Handle
4451 chain_circular.
4452 * doc/gty.texi: Document chain_circular.
4453
4454 2008-04-28 Richard Guenther <rguenther@suse.de>
4455
4456 PR tree-optimization/36066
4457 * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
4458 SCEV and loop.
4459
4460 2008-04-28 Uros Bizjak <ubizjak@gmail.com>
4461
4462 PR target/36064
4463 * config/i386/i386.md
4464 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
4465 Use match_scratch instead of match_operand for operands 3 and 4.
4466
4467 2008-04-27 Richard Guenther <rguenther@suse.de>
4468
4469 PR tree-optimization/18754
4470 PR tree-optimization/34223
4471 * tree-pass.h (pass_complete_unrolli): Declare.
4472 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
4473 loop size before and after unconditionally of UL_NO_GROWTH in effect.
4474 Rewrite loop into loop closed SSA form if it is not already.
4475 (tree_unroll_loops_completely): Re-structure to iterate over
4476 innermost loops with intermediate CFG cleanups.
4477 Unroll outermost loops only if requested or the code does not grow
4478 doing so.
4479 * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
4480 loops are available.
4481 (tree_vectorize): Instead do so here.
4482 (tree_complete_unroll): Also unroll outermost loops.
4483 (tree_complete_unroll_inner): New function.
4484 (gate_tree_complete_unroll_inner): Likewise.
4485 (pass_complete_unrolli): New pass.
4486 * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
4487 uses outside of the loop.
4488 (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
4489 form if it is available.
4490 * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
4491 * passes.c (init_optimization_passes): Schedule complete inner
4492 loop unrolling pass before the first CCP pass after final inlining.
4493
4494 2008-04-27 Nathan Sidwell <nathan@codesourcery.com>
4495
4496 * targhooks.h (default_emutls_var_fields,
4497 default_emutls_var_init): Declare.
4498 * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
4499 * target.h (struct gcc_target): Add struct emutls member.
4500 * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
4501 TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
4502 TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
4503 TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
4504 TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
4505 TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
4506 (TARGET_INITIALIZER): Add TARGET_EMUTLS.
4507 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
4508 BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
4509 * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
4510 emit debug information.
4511 * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
4512 * varasm.c: Include targhooks.h.
4513 (emutls_object_section, emutls_tmpl_section): New.
4514 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
4515 (EMUTLS_SEPARATOR): New.
4516 (prefix_name): New.
4517 (get_emutls_object_name): New.
4518 (default_emutls_var_fields): New, broken out of ...
4519 (get_emutls_object_type): ... here. Adjust to use target hooks.
4520 (get_emutls_init_templ_addr): Adjust to use target hooks.
4521 (emutls_decl): Adjust to use target hooks.
4522 (emutls_finish): Likewise.
4523 (default_emutls_var_init): New, broken out of ...
4524 (assemble_variable): ... here. Adjust to use target hooks.
4525 * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
4526 SECCAT_EMUTLS_TMPL.
4527 * c-common.c (handle_section_attribute): Prevent overriding
4528 sections for emulated tls with special sections.
4529 * config/i386/i386.c (x86_64_elf_select_section): Add
4530 SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
4531 (x86_64_elf_unique_section): Likewise.
4532 * config/vxworks.c: Include tree.h.
4533 (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
4534 (vxworks_override_options): Set TLS scheme.
4535 * doc/tm.texi (Emulated TLS): New node.
4536
4537 2008-04-26 Simon Baldwin <simonb@google.com>
4538
4539 PR c/35652
4540 * builtins.c (c_strlen): Suppressed multiple warnings that can occur
4541 with propagated string constants.
4542
4543 2008-04-26 Uros Bizjak <ubizjak@gmail.com>
4544
4545 * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
4546 constraint for operand 2 when operand 0 is memory operand.
4547 (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
4548 operand 0 is memory operand.
4549 (fix_trunc<mode>_i387_with_temp): Ditto.
4550 (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
4551 operand 2 when operand 1 is memory operand.
4552 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
4553 (*floatsi<mode>2_vector_sse_with_temp): Ditto.
4554 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
4555 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
4556 (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
4557 operands 2,3 and 4 when operand 1 is memory operand.
4558 (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
4559 is memory operand.
4560 (fistdi2_floor_with_temp): Ditto.
4561 (fist<mode>2_floor_with_temp): Ditto.
4562 (fistdi2_ceil_with_temp): Ditto.
4563 (fist<mode>2_ceil_with_temp): Ditto.
4564 (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
4565
4566 2008-04-26 David Daney <ddaney@avtrex.com>
4567
4568 * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
4569 unspec_volitile.
4570 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
4571 UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
4572 UNSPEC_UPDATE_GOT_VERSION): Renumber.
4573 (sync_compare_and_swap<mode>): New expand for QI and HI modes.
4574 (compare_and_swap_12): New insn.
4575 * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
4576 * config/mips/mips.c (mips_force_binary): New function.
4577 (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
4578 (mips_expand_compare_and_swap_12): New function.
4579 * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
4580
4581 2008-04-25 Jan Hubicka <jh@suse.cz>
4582
4583 PR testsuite/35843
4584 * cfgexpand.c (pass_expand): Turn into RTL pass.
4585 * passes.c (execute_one_pass): Do pass typechecking after execution.
4586 * tree-pass.h (pass_expand): Turn into RTL pass.
4587
4588 * function.h (struct rtl_data): Move here fields
4589 accesses_prior_frames, calls_eh_return, saves_all_registers,
4590 has_nonlocal_goto, has_asm_statement, is_thunk,
4591 all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
4592 uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
4593 arg_pointer_save_area_init from struct function; turn into bool.
4594 (struct function): Move
4595 calls_eh_return, saves_all_registers, has_nonlocal_goto,
4596 has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
4597 profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
4598 tail_call_emit, arg_pointer_save_area_init
4599 into struct rtl_data. Remove recursive_call_emit and gimplified flags.
4600 (current_function_returns_struct, current_function_returns_pcc_struct,
4601 current_function_calls_setjmp, current_function_calls_alloca,
4602 current_function_accesses_prior_frames,
4603 current_function_calls_eh_return, current_function_is_thunk,
4604 current_function_stdarg, current_function_profile,
4605 current_function_limit_stack, current_function_uses_pic_offset_table,
4606 current_function_uses_const_pool, current_function_has_nonlocal_label,
4607 current_function_saves_all_registers,
4608 current_function_has_nonlocal_goto,
4609 current_function_has_asm_statement): Remove accesor macros.
4610 * ra-conflict.c (global_conflicts): Update.
4611 * tree-tailcall.c (suitable_for_tail_opt_p): Update.
4612 (suitable_for_tail_call_opt_p): Update.
4613 * builtins.c (expand_builtin_return_addr): Update.
4614 (expand_builtin_setjmp_setup): Update.
4615 (expand_builtin_nonlocal_goto): Update.
4616 * final.c (final_start_function): Update.
4617 (profile_function): Update.
4618 (leaf_function_p): Update.
4619 (only_leaf_regs_used): Update.
4620 * df-scan.c (df_get_exit_block_use_set): Update.
4621 * dojump.c (clear_pending_stack_adjust): Update.
4622 * tree-stdarg.c (gate_optimize_stdarg): Update.
4623 * gimple-low.c (lower_function_body): Update.
4624 * global.c (compute_regsets): Update.
4625 (global_alloc): Update.
4626 * dwarf2out.c (dwarf2out_begin_prologue): Update.
4627 * expr.c (expand_assignment): Update.
4628 * dse.c (dse_step0): Update.
4629 (dse_step1): Update.
4630 * c-decl.c (store_parm_decls): Update.
4631 * local-alloc.c (combine_regs): Update.
4632 (find_free_reg): Update.
4633 * function.c (assign_parms_augmented_arg_list): Update.
4634 (assign_parm_find_data_types): Update.
4635 (assign_parms): Update.
4636 (allocate_struct_function): Update.
4637 (expand_function_start): Update.
4638 (expand_function_end): Update.
4639 (get_arg_pointer_save_area): Update.
4640 (thread_prologue_and_epilogue_insns): Update.
4641 (rest_of_match_asm_constraints): Update.
4642 * stor-layout.c (variable_size): Update.
4643 * gcse.c (gcse_main): Update.
4644 (bypass_jumps): Update.
4645 * gimplify.c (gimplify_function_tree): Update.
4646 * calls.c (emit_call_1): Update.
4647 (expand_call): Update.
4648 * bt-load.c (compute_defs_uses_and_gen): Update.
4649 * except.c (sjlj_assign_call_site_values): Update.
4650 (sjlj_emit_function_enter): Update.
4651 (can_throw_external): Update.
4652 (set_nothrow_function_flags): Update.
4653 (expand_builtin_unwind_init): Update.
4654 (expand_eh_return): Update.
4655 (convert_to_eh_region_ranges): Update.
4656 (output_function_exception_table): Update.
4657 * emit-rtl.c (gen_tmp_stack_mem): Update.
4658 * cfgexpand.c (expand_used_vars): Update.
4659 (tree_expand_cfg): Update.
4660 * cfgcleanup.c (rest_of_handle_jump): Update.
4661 * explow.c (allocate_dynamic_stack_space): Update.
4662 * varasm.c (assemble_start_function): Update.
4663 (force_const_mem): Update.
4664 (mark_constant_pool): Update.
4665 * tree-optimize.c (tree_rest_of_compilation): Update.
4666 * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
4667 * tree-cfg.c (notice_special_calls): Update.
4668 (is_ctrl_altering_stmt): Update.
4669 (tree_can_make_abnormal_goto): Update.
4670 (tree_purge_dead_abnormal_call_edges): Update.
4671 * config/alpha/predicates.md: Update.
4672 * config/alpha/alpha.c (alpha_sa_mask): Update.
4673 (alpha_sa_size): Update.
4674 (alpha_does_function_need_gp): Update.
4675 (alpha_expand_prologue): Update.
4676 (alpha_start_function): Update.
4677 (alpha_output_function_end_prologue): Update.
4678 (alpha_expand_epilogue): Update.
4679 * config/frv/frv.c (frv_stack_info): Update.
4680 (frv_expand_epilogue): Update.
4681 * config/s390/s390.c (s390_regs_ever_clobbered): Update.
4682 (s390_register_info): Update.
4683 (s390_frame_info): Update.
4684 (s390_init_frame_layout): Update.
4685 (s390_can_eliminate): Update.
4686 (save_gprs): Update.
4687 * config/spu/spu.c (spu_split_immediate): Update.
4688 (need_to_save_reg): Update.
4689 (spu_expand_prologue): Update.
4690 (spu_expand_epilogue): Update.
4691 * config/sparc/sparc.md: Update.
4692 * config/sparc/sparc.c (eligible_for_return_delay): Update.
4693 (sparc_tls_got): Update.
4694 (legitimize_pic_address): Update.
4695 (sparc_emit_call_insn): Update.
4696 (sparc_expand_prologue): Update.
4697 (output_return): Update.
4698 (print_operand): Update.
4699 (sparc_function_ok_for_sibcall): Update.
4700 * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
4701 * config/m32r/m32r.md: Update.
4702 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
4703 (m32r_compute_frame_size): Update.
4704 (m32r_expand_prologue): Update.
4705 (m32r_expand_epilogue): Update.
4706 (m32r_legitimize_pic_address): Update.
4707 * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
4708 * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
4709 * config/i386/i386.c (ix86_frame_pointer_required): Update.
4710 (gen_push): Update.
4711 (ix86_save_reg): Update.
4712 (ix86_compute_frame_layout): Update.
4713 (ix86_expand_prologue): Update.
4714 (ix86_expand_epilogue): Update.
4715 * config/sh/sh.c (output_stack_adjust): Update.
4716 (calc_live_regs): Update.
4717 (sh5_schedule_saves): Update.
4718 (sh_expand_prologue): Update.
4719 (sh_expand_epilogue): Update.
4720 (sh_setup_incoming_varargs): Update.
4721 (sh_allocate_initial_value): Update.
4722 (sh_get_pr_initial_val): Update.
4723 * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
4724 * config/sh/sh.md (label:): Update.
4725 * config/avr/avr.c (out_movhi_mr_r): Update.
4726 * config/crx/crx.h (enum): Update.
4727 * config/xtensa/xtensa.h (along): Update.
4728 * config/stormy16/stormy16.c Update.
4729 (xstormy16_compute_stack_layout): Update.
4730 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
4731 (fr30_expand_prologue): Update.
4732 * config/cris/cris.c (cris_conditional_register_usage): Update.
4733 (cris_reg_saved_in_regsave_area): Update.
4734 (cris_initial_frame_pointer_offset): Update.
4735 (cris_simple_epilogue): Update.
4736 (cris_expand_prologue): Update.
4737 (cris_expand_epilogue): Update.
4738 (cris_expand_pic_call_address): Update.
4739 (cris_asm_output_symbol_ref): Update.
4740 (cris_asm_output_label_ref): Update.
4741 * config/cris/cris.md Update.
4742 * config/iq2000/iq2000.c (compute_frame_size): Update.
4743 (iq2000_expand_epilogue): Update.
4744 * config/mt/mt.h (save_direction): Update.
4745 * config/mn10300/mn10300.c (mn10300_function_value): Update.
4746 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
4747 (ia64_secondary_reload_class): Update.
4748 * config/m68k/m68k.c (m68k_save_reg): Update.
4749 (m68k_expand_prologue): Update.
4750 (m68k_expand_epilogue): Update.
4751 (legitimize_pic_address): Update.
4752 * config/rs6000/rs6000.c (rs6000_got_register): Update.
4753 (first_reg_to_save): Update.
4754 (first_altivec_reg_to_save): Update.
4755 (compute_vrsave_mask): Update.
4756 (compute_save_world_info): Update.
4757 (rs6000_stack_info): Update.
4758 (spe_func_has_64bit_regs_p): Update.
4759 (rs6000_ra_ever_killed): Update.
4760 (rs6000_emit_eh_reg_restore): Update.
4761 (rs6000_emit_allocate_stack): Update.
4762 (rs6000_emit_prologue): Update.
4763 (rs6000_emit_epilogue): Update.
4764 (rs6000_output_function_epilogue): Update.
4765 (output_profile_hook): Update.
4766 (rs6000_elf_declare_function_name): Update.
4767 * config/rs6000/rs6000.h (rs6000_args): Update.
4768 * config/rs6000/rs6000.md: Update.
4769 * config/mcore/mcore.c (mcore_expand_prolog): Update.
4770 * config/arc/arc.c (arc_output_function_epilogue): Update.
4771 * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
4772 * config/darwin.c (machopic_function_base_name): Update.
4773 * config/score/score3.c (score3_compute_frame_size): Update.
4774 (rpush): Update.
4775 (rpop): Update.
4776 (score3_epilogue): Update.
4777 * config/score/score7.c (score7_compute_frame_size): Update.
4778 (score7_prologue): Update.
4779 (score7_epilogue): Update.
4780 * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
4781 * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
4782 * config/arm/arm.c (use_return_insn): Update.
4783 (require_pic_register): Update.
4784 (arm_load_pic_register): Update.
4785 (arm_compute_save_reg0_reg12_mask): Update.
4786 (arm_compute_save_reg_mask): Update.
4787 (thumb1_compute_save_reg_mask): Update.
4788 (output_return_instruction): Update.
4789 (arm_output_function_prologue): Update.
4790 (arm_output_epilogue): Update.
4791 (arm_get_frame_offsets): Update.
4792 (arm_expand_prologue): Update.
4793 (thumb_pushpop): Update.
4794 (thumb_exit): Update.
4795 (thumb1_expand_prologue): Update.
4796 (thumb1_expand_epilogue): Update.
4797 (arm_unwind_emit): Update.
4798 (arm_output_fn_unwind): Update.
4799 * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
4800 * config/arm/arm.md: Update.
4801 * config/pa/pa.md: Update.
4802 * config/pa/pa.c (legitimize_pic_address): Update.
4803 (compute_frame_size): Update.
4804 (hppa_expand_prologue): Update.
4805 (hppa_expand_epilogue): Update.
4806 (borx_reg_operand): Update.
4807 * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
4808 (HARD_REGNO_RENAME_OK): Update.
4809 * config/mips/mips.c (mips_global_pointer): Update.
4810 (mips_save_reg_p): Update.
4811 (mips_compute_frame_info): Update.
4812 (mips_frame_pointer_required): Update.
4813 (mips_expand_prologue): Update.
4814 (mips_expand_epilogue): Update.
4815 (mips_can_use_return_insn): Update.
4816 (mips_reorg_process_insns): Update.
4817 * config/v850/v850.c (compute_register_save_size): Update.
4818 * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
4819 * config/mmix/mmix.c (along): Update.
4820 (mmix_expand_epilogue): Update.
4821 * config/bfin/bfin.c (legitimize_pic_address): Update.
4822 (must_save_p): Update.
4823 (stack_frame_needed_p): Update.
4824 (add_to_reg): Update.
4825 (bfin_expand_prologue): Update.
4826 * stmt.c (expand_asm_operands): Update.
4827 * reload1.c (reload): Update.
4828 (init_elim_table): Update.
4829
4830 2008-04-25 Bob Wilson <bob.wilson@acm.org>
4831
4832 * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
4833
4834 2008-04-25 H.J. Lu <hongjiu.lu@intel.com>
4835
4836 * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
4837 (*mov<mode>_internal): Likewise. Support V4SF and V2DF.
4838 (mov<mode>): Removed.
4839 (*movv4sf_internal): Likewise.
4840 (*movv2df_internal): Likewise.
4841
4842 2008-04-25 Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
4843
4844 * config.gcc (crx-*-elf): Remove deprecation.
4845
4846 2008-04-25 Danny Smith <dannysmith@users.sourceforge.net>
4847
4848 * config/i386/cygming-crtend.c (register_frame_ctor): Register
4849 __gcc_deregister_frame with atexit.
4850 (deregister_frame_dtor): Remove.
4851
4852 2008-04-24 Nathan Froyd <froydnj@codesourcery.com>
4853 Nathan Sidwell <nathan@codesourcery.com>
4854
4855 * config/rs6000/rs6000.opt (mspe): Remove Var property.
4856 (misel): Likewise.
4857 * config/rs6000/rs6000.h (rs6000_spe): Declare.
4858 (rs6000_isel): Likewise.
4859 * config/rs6000/rs6000.c (rs6000_spe): New variable.
4860 (rs6000_isel): New variable.
4861 (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
4862
4863 2008-04-24 Jakub Jelinek <jakub@redhat.com>
4864
4865 PR c++/35758
4866 * c-common.c (handle_vector_size_attribute): Call
4867 lang_hooks.types.reconstruct_complex_type instead of
4868 reconstruct_complex_type.
4869 * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
4870 * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
4871 * langhooks.h (struct lang_hooks_for_types): Add
4872 reconstruct_complex_type hook.
4873 * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
4874 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
4875
4876 2008-04-24 Richard Guenther <rguenther@suse.de>
4877
4878 * c-common.h (check_builtin_function_arguments): Declare.
4879 * c-common.c (validate_nargs): New function.
4880 (check_builtin_function_arguments): Likewise.
4881 * c-typeck.c (build_function_call): Call
4882 check_builtin_function_arguments.
4883 * builtins.c (fold_builtin_classify): Remove error reporting code.
4884 (fold_builtin_unordered_cmp): Likewise.
4885 (fold_builtin_1): Likewise.
4886 (fold_builtin_n): Likewise.
4887
4888 2008-04-24 Jakub Jelinek <jakub@redhat.com>
4889
4890 PR tree-optimization/36008
4891 * fold-const.c (try_move_mult_to_index): If s == NULL, divide
4892 the original op1, rather than delta by step.
4893
4894 2008-04-22 Antoniu Pop <antoniu.pop@gmail.com>
4895 Sebastian Pop <sebastian.pop@amd.com>
4896
4897 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
4898 eliminate_local_variables_stmt, eliminate_local_variables,
4899 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
4900 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
4901 of code delimited by two edges in the CFG.
4902 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
4903 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
4904 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
4905 the case of parallelisation of reductions.
4906 (expr_invariant_in_region_p): New.
4907
4908 * tree-flow.h (gather_blocks_in_sese_region): Declared.
4909 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
4910
4911 2008-04-24 Ira Rosen <irar@il.ibm.com>
4912 Richard Guenther <rguenther@suse.de>
4913
4914 PR tree-optimization/36034
4915 * tree-vect-analyze.c (vect_analyze_group_access): SLP is
4916 incapable of dealing with loads with gaps.
4917
4918 2008-04-24 Rafael Espindola <espindola@google.com>
4919
4920 * tree-flow.h (vrp_evaluate_conditional): Change signature.
4921 * tree-ssa-propagate.c (fold_predicate_in): Update call to
4922 vrp_evaluate_conditional.
4923 * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
4924 (vrp_evaluate_conditional): Split the cond argument.
4925 (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
4926 (simplify_stmt_for_jump_threading): Update call to
4927 vrp_evaluate_conditional.
4928
4929 2008-04-24 Ira Rosen <irar@il.ibm.com>
4930
4931 PR tree-optimization/35982
4932 * tree-vect-analyze.c (vect_check_interleaving): Check that the
4933 interleaved data-refs are of the same type.
4934
4935 2008-04-24 Danny Smith <dannysmith@users.net>
4936
4937 * c-format.c (check_format_info_main): Use strncmp rather than a
4938 magic prefix to handle multichar length specs.
4939 * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
4940 Don't prefix "I64" and "I32" with '\0'.
4941
4942 2008-04-24 Jakub Jelinek <jakub@redhat.com>
4943
4944 PR target/36015
4945 * config/i386/i386.c (init_cumulative_args): Don't pass anything
4946 in registers for -m32 only if stdarg_p (fntype).
4947
4948 2008-04-24 Uros Bizjak <ubizjak@gmail.com>
4949
4950 PR rtl-optimization/36006
4951 * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
4952 temp to op0 in order to avoid invalid rtx sharing.
4953
4954 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
4955
4956 * tree-cfg.c (verify_expr): Check with is_gimple_address. Don't
4957 check TREE_INVARIANT.
4958 * tree-gimple.c (is_gimple_address): New.
4959 (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
4960 * tree-gimple.h (is_gimple_address): New.
4961 * tree.h (decl_address_invariant_p): New.
4962 * tree.c (make_node_stat): Don't set TREE_INVARIANT.
4963 (build_string): Likewise.
4964 (decl_address_invariant_p): New, from is_gimple_invariant_address.
4965 (tree_invariant_p_1): Likewise.
4966 (save_expr): Use it.
4967 (tree_invariant_p): New.
4968 (skip_simple_arithmetic): Use it.
4969 (stabilize_reference_1): Use it.
4970 (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
4971 simplify.
4972 (build1_stat): Drop code to compute TREE_INVARIANT.
4973 (build2_stat): Drop code to compute TREE_INVARIANT.
4974 (build3_stat): Drop code to compute TREE_INVARIANT.
4975 (build4_stat): Drop code to compute TREE_INVARIANT.
4976 (build5_stat): Drop code to compute TREE_INVARIANT.
4977 (build7_stat): Drop code to compute TREE_INVARIANT.
4978 (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
4979 * tree.h (struct tree_base): Remove invariant_flag.
4980 (TREE_INVARIANT): Remove.
4981 * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
4982 (fold_builtin_expect): Check TREE_CONSTANT.
4983 * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
4984 * c-tree.h (c_expr_to_decl): Drop third parameter.
4985 * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
4986 (build_c_cast): Don't set TREE_INVARIANT.
4987 (pop_init_level): Don't set TREE_INVARIANT.
4988 (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
4989 * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
4990 TREE_CONSTANT.
4991 (gimplify_init_constructor): Don't set TREE_INVARIANT.
4992 (gimplify_addr_expr): Adjust comment.
4993 * tree-mudflap.c (mf_build_string):
4994 * print-tree.c (print_node): Don't print TREE_INVARIANT.
4995 * tree-nested.c (convert_nonlocal_reference): Adjust comment.
4996 * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
4997 * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
4998 * langhooks.c (lhd_expr_to_decl): Drop third parameter.
4999 * langhooks.h (struct lang_hooks): Drop third parameter from
5000 expr_to_decl.
5001
5002 2008-04-23 Richard Guenther <rguenther@suse.de>
5003
5004 PR tree-optimization/27799
5005 PR tree-optimization/32921
5006 PR tree-optimization/32624
5007 * tree-ssa-structalias.c (merge_smts_into): Only merge the
5008 SMTs aliases and the tag itself into the solution.
5009 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
5010 merge the points-to solution back into the SMT aliases.
5011 (may_alias_p): Use alias_set_subset_of instead of
5012 aliases_conflict_p. A pointer which points to
5013 memory with alias set zero may access any variable.
5014
5015 2008-04-23 Richard Guenther <rguenther@suse.de>
5016
5017 * alias.c (alias_set_subset_of): Correctly handle asking
5018 if zero is a subset of an alias set with zero child.
5019 * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
5020 (compute_flow_insensitive_aliasing): Correctly walk all
5021 pointers. Do not unnecessarily union sets.
5022
5023 2008-04-23 Richard Guenther <rguenther@suse.de>
5024
5025 PR middle-end/36021
5026 * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
5027
5028 2008-04-22 Tomas Bily <tbily@suse.cz>
5029
5030 * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
5031 unreachable case.
5032 * tree-vrp.c (extract_range_from_unary_expr): Removed unused
5033 NON_LVALUE_EXPR.
5034 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
5035 * tree-ssa-structalias.c (get_constraint_for): Likewise.
5036 * tree-inline.c (estimate_num_insns_1): Likewise.
5037 * varasm.c (const_hash_1, compare_constant, copy_constant)
5038 (compute_reloc_for_constant, output_addressed_constants): Likewise.
5039 * emit-rtl.c (component_ref_for_mem_expr)
5040 (set_mem_attributes_minus_bitpos): Likewise.
5041 * expr.c (highest_pow2_factor, expand_expr_real_1, )
5042 (is_aligning_offset): Likewise.
5043 * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
5044 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
5045 * dojump.c (do_jump): Likewise.
5046 * builtins.c (get_pointer_alignment, get_memory_rtx)
5047 (integer_valued_real_p, fold_builtin_next_arg): Likewise.
5048 * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
5049
5050 2008-04-23 Jakub Jelinek <jakub@redhat.com>
5051
5052 PR rtl-optimization/36017
5053 * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
5054 expanding the library call.
5055
5056 2008-04-22 Ian Lance Taylor <iant@google.com>
5057
5058 * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
5059 than size_in_bytes.
5060
5061 2008-04-22 Pat Haugen <pthaugen@us.ibm.com>
5062
5063 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
5064 of LR/CTR moves for Power6.
5065
5066 2008-04-22 Kenneth Zadeck <zadeck@naturalbridge.com>
5067
5068 PR middle-end/36003
5069 * passes.c (init_optimization_passes): Remove
5070 pass_fast_rtl_byte_dce.
5071
5072 2008-04-22 Uros Bizjak <ubizjak@gmail.com>
5073
5074 PR target/29096
5075 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
5076 builtin functions to generate faster code.
5077 (_mm_cvtpu16_ps): Ditto.
5078 (_mm_cvtpi32x2_ps): Ditto.
5079
5080 2008-04-22 Nick Clifton <nickc@redhat.com>
5081
5082 * common.opt (ftree-loop-distribution): Add Optimization
5083 attribute.
5084
5085 * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
5086 (frv_expand_builtin_va_start): Likewise.
5087
5088 * config/arm/arm.c (thumb_find_work_register): Fix location of
5089 argument register count.
5090
5091 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5092
5093 Support scheduling for ColdFire V1 and V3 microarchitecture.
5094 Improve scheduling of multiplication instructions.
5095
5096 * config/m68k/m68k.md (cpu): Add cfv1 and cfv3. Rename cf_v2 to cfv1.
5097 (mac): New instruction attribute.
5098 * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
5099 (m68k_sched_mac): New variable.
5100 (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
5101 Handle cfv1 and cfv3.
5102 (max_insn_size): New static variable.
5103 (struct _sched_ib): New type.
5104 (sched_ib): New static variable.
5105 (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
5106 to fields of 'struct _sched_ib sched_ib'. Update all uses.
5107 (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
5108 Update.
5109 (m68k_sched_md_init_global, m68k_sched_md_finish_global,
5110 m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3. Init
5111 new variables. Update.
5112 (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
5113 Add modeling of cfv3 instruction buffer. Update.
5114 * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
5115 * config/m68k/m68k.h (TUNE_CFV3): New macro.
5116 * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
5117 (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
5118 a particular reservation applies to.
5119 (type2): Reorganize attribute values. Rename alu to alu_reg,
5120 alu_l to alu, move_l to omove. Join move to alu. Split mul
5121 to mul_l and mul_w.
5122 (cf_ib_*): Simplify description of instruction buffer.
5123 (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
5124 (cf_mem): Split into cf_mem1 and cf_mem2.
5125 (cf_v2_move_??): Rename to cfv12_alu_??.
5126 (cf_v2_move_l_??): Rename to cfv12_omove_??.
5127 (cf_v2_mul_??): Remove reservations.
5128 (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
5129 cfv12_emac_??, cfv12_emac_w_i0): New reservations.
5130 (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
5131 appropriate place.
5132 (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
5133 cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
5134 cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
5135 cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
5136 cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
5137 cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
5138 (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
5139 expansions of the above reservations for instructions of sizes
5140 1, 2 and 3 words.
5141
5142 2008-04-22 Maxim Kuvyrkov <maxim@codesourcery.com>
5143
5144 * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
5145
5146 2008-04-21 Adam Nemet <anemet@caviumnetworks.com>
5147
5148 * coverage.c: Include tree-pass.h.
5149 (coverage_counter_alloc): Print da_file_name to the dump file.
5150
5151 2008-04-21 Kenneth Zadeck <zadeck@naturalbridge.com>
5152
5153 * sbitmap.c (sbitmap_range_empty_p): New function.
5154 * sbitmap.h (sbitmap_range_empty_p): New function.
5155 * bitmap.h: Now includes obstack.h.
5156
5157 2008-04-21 Richard Sandiford <rsandifo@nildram.co.uk>
5158 Kenneth Zadeck <zadeck@naturalbridge.com>
5159
5160 * dbgcnt.def (ra_byte_scan): Added.
5161 * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
5162 when the last hit happens for a counter.
5163 * timevar.def (TV_DF_BYTE_LR): New variable.
5164 * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
5165 * passes.c (pass_fast_rtl_byte_dce): New pass.
5166 * fwprop.c (update_df): Added mode to call df_ref_create.
5167 Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
5168 DF_REF_EXTRACT_OFFSET.
5169 * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
5170 DF_BYTE_LR_OUT, df_byte_lr): New macro.
5171 (df_mm): New enum.
5172 (df_ref_extract): Added mode field.
5173 (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
5174 DF_REF_EXTRACT_OFFSET.
5175 (DF_REF_EXTRACT_MODE): New macro.
5176 (df_byte_lr_bb_info): New structure.
5177 (df_print_byte_regset, df_compute_accessed_bytes,
5178 df_byte_lr_add_problem, df_byte_lr_get_regno_start,
5179 df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
5180 df_byte_lr_simulate_uses,
5181 df_byte_lr_simulate_artificial_refs_at_top,
5182 df_byte_lr_simulate_artificial_refs_at_end,
5183 df_compute_accessed_bytes): New function.
5184 (df_ref_create): Add parameter.
5185 (df_byte_lr_get_bb_info): New inline function.
5186 * df-scan.c (df_ref_record, df_uses_record,
5187 df_ref_create_structure): Added mode parameter.
5188 (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
5189 df_defs_record, df_uses_record, df_get_conditional_uses,
5190 df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
5191 df_entry_block_defs_collect, df_exit_block_uses_collect):
5192 Added mode parameter to calls to df_ref_record, df_uses_record,
5193 df_ref_create_structure.
5194 (df_ref_equal_p, df_ref_compare): Added test for modes.
5195 (df_ref_create_structure): Added code to set mode. Renamed
5196 DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
5197 DF_REF_EXTRACT_OFFSET.
5198 * df-core.c (df_print_byte_regset): New function.
5199 * df-byte-scan.c: New file.
5200 * df-problems.c (df_rd_transfer_function): Removed unnecessary
5201 calls to BITMAP_FREE.
5202 (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
5203 (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
5204 df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
5205 df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
5206 df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
5207 df_byte_lr_local_compute, df_byte_lr_init,
5208 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5209 df_byte_lr_transfer_function, df_byte_lr_free,
5210 df_byte_lr_top_dump, df_byte_lr_bottom_dump,
5211 df_byte_lr_add_problem, df_byte_lr_simulate_defs,
5212 df_byte_lr_simulate_uses,
5213 df_byte_lr_simulate_artificial_refs_at_top,
5214 df_byte_lr_simulate_artificial_refs_at_end): New function.
5215 * dce.c (byte_dce_process_block): New function.
5216 (dce_process_block): au is now passed in rather than computed
5217 locally. Changed loops that look at artificial defs to not look
5218 for conditional or partial ones, because there never are any.
5219 (fast_dce): Now is able to drive byte_dce_process_block or
5220 dce_process_block depending on the kind of dce being done.
5221 (rest_of_handle_fast_dce): Add parameter to fast_dce.
5222 (rest_of_handle_fast_byte_dce): New function.
5223 (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
5224 * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
5225
5226 2008-04-21 Daniel Franke <franke.daniel@gmail.com>
5227
5228 PR fortran/35019
5229 * gcc.h: Added fortran options that take arguments to
5230 DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
5231 macros.
5232
5233 2008-04-20 Eric Botcazou <ebotcazou@adacore.com>
5234
5235 * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
5236 scalarization if on the LHS and not a full access.
5237
5238 2008-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5239
5240 * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
5241
5242 2008-04-18 Rafael Espindola <espindola@google.com>
5243
5244 * tree-vrp.c (find_case_label_index): Fix the binary search.
5245 (find_case_label_range): New.
5246 (vrp_visit_switch_stmt): Use find_case_label_range.
5247 (simplify_switch_using_ranges): Use find_case_label_range.
5248
5249 2008-04-18 Eric Botcazou <ebotcazou@adacore.com>
5250
5251 * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
5252 using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
5253
5254 2008-04-18 Tom Tromey <tromey@redhat.com>
5255
5256 PR libcpp/15500:
5257 * doc/cpp.texi (Implementation-defined behavior): Mention
5258 -finput-charset.
5259
5260 2008-04-18 Ian Lance Taylor <iant@google.com>
5261
5262 * fold-const.c (pointer_may_wrap_p): New static function.
5263 (fold_comparison): Add another test for pointer overflow. Use
5264 pointer_may_wrap_p to disable some false positives.
5265
5266 2008-04-18 Kris Van Hees <kris.van.hees@oracle.com>
5267
5268 * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
5269 (fname_as_string): Match updated cpp_interpret_string prototype.
5270 (fix_string_type): Support char16_t* and char32_t*.
5271 (c_common_nodes_and_builtins): Add char16_t and char32_t (and
5272 derivative) nodes. Register as builtin if C++0x.
5273 (c_parse_error): Support CPP_CHAR{16,32}.
5274 * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
5275 (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
5276 CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
5277 CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
5278 CTI_CHAR32_ARRAY_TYPE>: New elements.
5279 (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
5280 char32_type_node, signed_char32_type_node, char16_array_type_node,
5281 char32_array_type_node): New defines.
5282 * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
5283 (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
5284 (lex_string): Support CPP_STRING{16,32}, match updated
5285 cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
5286 (lex_charconst): Support CPP_CHAR{16,32}.
5287 * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
5288 and CPP_STRING{16,32}.
5289
5290 2008-04-18 Paolo Bonzini <bonzini@gnu.org>
5291
5292 PR bootstrap/35457
5293 * aclocal.m4: Regenerate.
5294 * configure: Regenerate.
5295
5296 2008-04-18 Jan Hubicka <jh@suse.cz>
5297
5298 * except.c (dw2_size_of_call_site_table,
5299 sjlj_size_of_call_site_table): Use vector API for call_site_record.
5300
5301 * cgraphbuild.c (build_cgraph_edges): Update.
5302 * tree-pass.h: Update comment.
5303 * final.c (leaf_function_p): Update.
5304 (leaf_renumber_regs): Update.
5305 (rest_of_clean_state): Update.
5306 * omp-low.c (expand_omp_parallel): Update.
5307 * ipa-reference.c (analyze_function): Update.
5308 * reorg.c (find_end_label): Update.
5309 (optimize_skip): Update.
5310 (fill_simple_delay_slots): Update.
5311 (fill_simple_delay_slots): Update.
5312 (make_return_insns): Update.
5313 (dbr_schedule): Update.
5314 * gimple-low.c (record_vars_into): Update.
5315 * cfgbuild.c (make_edges): Update.
5316 * function.c (assign_stack_local): Update.
5317 (assign_parm_adjust_stack_rtl): Update.
5318 (locate_and_pad_parm): Update.
5319 (allocate_struct_function): Do not initialize stack_alignment_needed
5320 and preferred_stack_boundary here.
5321 (stack_protect_prologue): Update.
5322 (stack_protect_epilogue): Update.
5323 (expand_function_start): Initialize stack_alignment_needed,
5324 preferred_stack_boundary and max_jumptable_ents.
5325 (expand_function_end): Update.
5326 (free_after_compilation): Do not NULLify epilogue_delay_list.
5327 * function.h (struct rtl_data): Add stack_protect_guard,
5328 stack_alignment_needed,
5329 preferred_stack_boundary, epilogue_delay_list.
5330 (struct function): Remove value_histograms, stack_alignment_needed,
5331 preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
5332 last_label_uid,
5333 unexpanded_var_list, stack_protect_guard.
5334 (current_function_epilogue_delay_list): Remove.
5335 * ipa-type-escape.c (analyze_function): Update.
5336 * gimplify.c (pop_gimplify_context): Update comment.
5337 * calls.c (expand_call): Update.
5338 (emit_library_call_value_1): Update.
5339 * except.c (set_nothrow_function_flags): Update.
5340 * cfgexpand.c (get_decl_align_unit): Update.
5341 (create_stack_guard): Update.
5342 (estimated_stack_frame_size): Update.
5343 (expand_used_vars): Update.
5344 (tree_expand_cfg): Free histogram earliers, init expansion variables.
5345 * explow.c (allocate_dynamic_stack_space): Update.
5346 * tree-ssa-live.c (remove_unused_locals): Update.
5347 * varasm.c (mark_constant_pool): Update.
5348 * tree-inline.c (remap_decls): Update.
5349 (initialize_cfun): Update.
5350 (declare_return_variable): Update.
5351 (inline_forbidden_p): Update.
5352 (expand_call_inline): Update.
5353 (declare_inline_vars): Update.
5354 (tree_function_versioning): Update.
5355 * tree-flow.h (value_histograms): New.
5356 (VALUE_HISTOGRAMS): New macro.
5357 * basic-block.h (control_flow_graph): Add max_jumptable_ents,
5358 last_label_uid.
5359 * tree-cfg.c (set_bb_for_stmt): Update.
5360 (replace_by_duplicate_decl): Update.
5361 (move_block_to_fn): Update.
5362 (new_label_mapper): Update.
5363 (dump_function_to_file): Update.
5364 * ipa-struct-reorg.c (build_data_structure): Update.
5365 * cfgrtl.c (print_rtl_with_bb): Update.
5366 * reload1.c (reload): Update.
5367 (reload): Update.
5368 * config/i386/i386.c (setup_incoming_varargs_64,
5369 ix86_compute_frame_layout): Update.
5370 * config/arc/arc.c (arc_output_function_epilogue): Update.
5371
5372 2008-04-18 Marius Strobl <marius@FreeBSD.org>
5373
5374 * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
5375 for FreeBSD as well.
5376 * gthr-posix95.h: Likewise.
5377
5378 2008-04-17 Richard Sandiford <rsandifo@nildram.co.uk>
5379
5380 PR rtl-optimization/35838
5381 * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
5382 out the byte offset of the first subreg.
5383
5384 2008-04-17 Uros Bizjak <ubizjak@gmail.com>
5385
5386 * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
5387 to split_ti instead of three separate calls with single member arrays.
5388 (subti3 splitter): Ditto.
5389 (adddi3 splitter): Ditto with split_di.
5390 (subdi3 splitter): Ditto.
5391 (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
5392 two separate calls with single member arrays. Swap match_dup
5393 operands 1 and 2 to better fit into the array.
5394 (negdi2 splitter): Ditto with split_di.
5395 (movdfcc splitter): Pass arrays of 2 operands to split_di instead of
5396 two separate calls with single member arrays. Swap match_dup operands
5397 6 and 7 to better fit into the array.
5398
5399 2008-04-17 H.J. Lu <hongjiu.lu@intel.com>
5400
5401 * config/i386/i386.c (sse_builtin_type): New.
5402 (bdesc_sse_args): Likewise.
5403 (bdesc_sse_3arg): Removed.
5404 (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
5405 (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
5406 IX86_BUILTIN_ROUNDPS.
5407 (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args. Remove
5408 bdesc_sse_3arg. Remove IX86_BUILTIN_ROUNDPD and
5409 IX86_BUILTIN_ROUNDPS.
5410 (ix86_expand_sse_4_operands_builtin): Removed.
5411 (ix86_expand_sse_operands_builtin): New.
5412 (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
5413 and CODE_FOR_sse4_1_roundps.
5414 (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
5415 Handle bdesc_sse_args. Remove bdesc_sse_3arg.
5416
5417 2008-04-17 Alan Modra <amodra@bigpond.net.au>
5418
5419 PR target/35907
5420 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
5421 regs before frame pop when needed. If use_backchain_to_restore_sp
5422 then load backchain into a temp reg to restore vr and vrsave. Add
5423 code to restore vr after frame pop if possible.
5424
5425 2008-04-17 Richard Guenther <rguenther@suse.de>
5426
5427 * tree-vn.c (expressions_equal_p): Do not check type
5428 equality or compatibility before calling operand_equal_p.
5429 * fold-const.c (operand_equal_p): Check equivalence of
5430 integer constants before bailing out due to signedness or
5431 precision differences.
5432 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
5433 spurious differences in type qualification. Ignore types
5434 for COMPONENT_REFs at all.
5435
5436 2008-04-17 Christian Bruel <christian.bruel@st.com>
5437
5438 * config/sh/sh.c (expand_cbranchdi4): Use original operands for
5439 msw_skip comparison.
5440
5441 2008-04-16 Jakub Jelinek <jakub@redhat.com>
5442
5443 PR c/35739
5444 * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
5445 reg type.
5446
5447 PR tree-optimization/35899
5448 * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
5449 rather than TREE_OPERAND.
5450
5451 2008-04-16 Uros Bizjak <ubizjak@gmail.com>
5452
5453 PR target/35944
5454 * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
5455 temporary registers. Change operand predicate to general_operand.
5456 (remainderxf3): Ditto.
5457
5458 2008-04-16 Richard Guenther <rguenther@suse.de>
5459
5460 * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
5461 * tree-affine.c (aff_combination_expand): Look through some
5462 conversions.
5463
5464 2008-04-15 Doug Kwan <dougkwan@google.com>
5465
5466 * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
5467 for hex printing.
5468 * tree-pretty-print.c (dump_generic_node): Ditto.
5469 * final.c (output_addr_const): Ditto.
5470 * dwarf2out.c (output_cfi): Ditto.
5471 * c-pretty-print.c (pp_c_integer_constant): Ditto.
5472 * print-rtl.c (print_rtx): Ditto.
5473 * print-tree.c (print_node_brief, print_node): Ditto.
5474 * c-common.c (match_case_to_enum_1): Ditto.
5475 * sched-vis.c (print_value): Ditto.
5476 * config/i386/i386.c (print_operand): Cast to long unsigned int
5477 for hex printing.
5478
5479 2008-04-15 Danny Smith <dannysmith@users.sourceforge.net>
5480 * libgcc2.c [L_trampoline]: Remove unnecessary prototype for
5481 MS Windows VirtualProtect function.
5482
5483 2008-04-15 Jan Hubicka <jh@suse.cz>
5484
5485 * gengtype.c (write_root): Param_is argument is OK.
5486 * expr.c (expand_expr_real_1): Update call of get_exception_*.
5487 * function.h: Include varray.h
5488 (rtl_eh): New stucture based on except.c one.
5489 (call_site_record): New forward declaration and vector type.
5490 * calls.c (emit_call_1): Do not call
5491 note_current_region_may_contain_throw.
5492 * except.c (eh_status): Remove cur_region, try_region since they are
5493 unused.
5494 Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
5495 exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
5496 sjlj_fc, sjlj_exit_after to rth_eh in function.h.
5497 Remove call_site_data_used, call_site_data_size.
5498 Turn call_site_record into vector in function.h.
5499 (note_current_region_may_contain_throw): Remove.
5500 (get_exception_pointer, get_exception_filter): Do not take struct
5501 function argument; update.
5502 (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
5503 add_ttypes_entry, add_ehspec_entry, assign_filter_values,
5504 build_post_landing_pads, dw2_build_landing_pads,
5505 sjlj_assign_call_site_values, sjlj_mark_call_sites,
5506 sjlj_emit_function_enter, sjlj_emit_function_enter,
5507 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
5508 sjlj_build_landing_pads, finish_eh_generation,
5509 remove_exception_handler_label, remove_eh_handler,
5510 maybe_remove_eh_handler, add_reachable_handler,
5511 reachable_handlers, expand_builtin_eh_return, expand_eh_return,
5512 add_action_record, collect_one_action_chain, add_call_site,
5513 convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
5514 sjlj_output_call_site_table, output_function_exception_table,
5515 * except.h (note_current_region_may_contain_throw): Remove
5516 (get_exception_pointer, get_exception_filter): Do not take struct
5517 function argument.
5518 * Makefile.in (GTFILES): Put varargs before struct function.
5519
5520 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
5521
5522 * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
5523 punt for STRING_CST.
5524 (get_constraint_for): Deal with STRING_CST here instead.
5525
5526 2008-04-15 Richard Guenther <rguenther@suse.de>
5527
5528 * tree-ssa-propagate.c (substitute_and_fold): Substitute
5529 statements in a basic-block with a backward walk. Do not
5530 substitute into dead statements but instead remove those.
5531
5532 2008-04-15 Richard Guenther <rguenther@suse.de>
5533
5534 * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
5535 to zero, thus disable creation of SFTs.
5536
5537 2008-04-15 Eric Botcazou <ebotcazou@adacore.com>
5538
5539 * tree-predcom.c (suitable_reference_p): Return false if the
5540 reference can throw.
5541
5542 2008-04-15 Jakub Jelinek <jakub@redhat.com>
5543
5544 PR c/35751
5545 * c-decl.c (finish_decl): If extern or static var has variable
5546 size, set TREE_TYPE (decl) to error_mark_node.
5547
5548 2008-04-15 Rafael Espindola <espindola@google.com>
5549
5550 * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
5551 variable arg1.
5552
5553 2008-04-15 Richard Guenther <rguenther@suse.de>
5554
5555 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5556 * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
5557 (visit_reference_op_load): Do walk vuse-vdef chains on
5558 vn_reference_lookup.
5559 (visit_reference_op_store): But do not here.
5560 * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
5561 vn_reference_lookup.
5562 (vn_lookup_with_vuses): But do so here.
5563
5564 2008-04-14 Ian Lance Taylor <iant@google.com>
5565
5566 * fold-const.c (fold_overflow_warning): Remove assertion.
5567
5568 2008-04-15 Ben Elliston <bje@au.ibm.com>
5569
5570 * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
5571 temp1 local variables.
5572
5573 2008-04-15 Zuxy Meng <zuxy.meng@gmail.com>
5574
5575 PR target/35661
5576 * config/i386/winnt.c (i386_pe_section_type_flags): Mark
5577 ".text.unlikely" section as executable.
5578
5579 2008-04-14 James E. Wilson <wilson@tuliptree.org>
5580
5581 * config/ia64/ia64.c (rtx_needs_barrier): Handle
5582 UNSPEC_FR_SQRT_RECIP_APPROX_RES.
5583 * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
5584 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
5585 divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
5586 divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
5587 divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
5588
5589 2008-04-14 Ian Lance Taylor <iant@google.com>
5590
5591 * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
5592 * fold-const.c (fold_comparison): If appropriate, test
5593 POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
5594 (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
5595 reassociating a pointer type.
5596 * doc/invoke.texi (Optimize Options): Document that
5597 -fstrict-overflow applies to pointer wraparound.
5598
5599 2008-04-13 Jan Hubicka <jh@suse.cz>
5600
5601 * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
5602
5603 2008-04-12 Andrew Pinski <pinskia@gmail.com>
5604
5605 * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
5606 we are going to "save the world".
5607
5608 2008-04-13 Hans-Peter Nilsson <hp@axis.com>
5609
5610 * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
5611 ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
5612 operand 0 constraint, not "=".
5613
5614 2008-04-11 James E. Wilson <wilson@tuliptree.org>
5615
5616 * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
5617
5618 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
5619
5620 * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
5621 of size of positions_needed * CHAR_BIT.
5622
5623 2008-04-11 H.J. Lu <hongjiu.lu@intel.com>
5624
5625 PR middle-end/35897
5626 * dse.c (store_info): Change positions_needed to unsigned
5627 HOST_WIDE_INT.
5628 (lowpart_bitmask): New.
5629 (record_store): Cast to unsigned HOST_WIDE_INT for
5630 positions_needed. Assert width <= size of positions_needed *
5631 CHAR_BIT. Call lowpart_bitmask to initialize positions_needed.
5632 (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask. Call
5633 lowpart_bitmask to set mask.
5634
5635 2008-04-11 Bernd Schmidt <bernd.schmidt@analog.com>
5636
5637 * config/bfin/constraints.md: New file.
5638 * config/bfin/bfin.md: Include it.
5639 (adddi3): Use satisfies_constraint functions instead of the old macros.
5640 * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
5641 CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
5642 CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
5643 CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
5644 CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
5645 CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
5646 EXTRA_CONSTRAINT): Delete.
5647 * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
5648 reg_or_neg7bit_operand): Use satisfies_constraint functions instead
5649 of the old macros.
5650 * config/bfin/bfin.c: Include "tm-constrs.h".
5651 (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
5652 Use satisfies_constraint functions instead of the old macros.
5653 * doc/md.texi (Blackfin Constraints): Update file name reference.
5654
5655 2008-04-11 Richard Guenther <rguenther@suse.de>
5656
5657 PR tree-optimization/35869
5658 * tree-vrp.c (execute_vrp): Move switch statement update after
5659 jump threading. Schedule another cfg cleanup run.
5660
5661 2008-04-11 Volker Reichelt <v.reichelt@netcologne.de>
5662
5663 PR c/35744
5664 * attribs.c (decl_attributes): Return early on errorneous node.
5665
5666 2008-04-10 Oleg Ryjkov <olegr@google.com>
5667
5668 * tree.h (struct tree_base): Added a new flag default_def_flag.
5669 (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
5670
5671 2008-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
5672
5673 * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
5674
5675 2008-04-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5676
5677 PR target/35768
5678 * pa.md: Define mode iterator P. Define mode attribute dwc.
5679 (dcacheflush): Update pattern to use iterator P and attribute dwc.
5680 (icacheflush): Likewise.
5681 * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
5682 !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
5683
5684 2008-04-11 Ben Elliston <bje@au.ibm.com>
5685
5686 * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
5687
5688 2008-04-10 Rafael Espindola <espindola@google.com>
5689
5690 * tree-vrp.c (extract_range_from_binary_expr): Don't handle
5691 TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
5692 (extract_range_from_expr): The same.
5693
5694 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
5695
5696 * config/mips/mips.md (GPR2): New mode iterator.
5697 (seq): Add comment.
5698 (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
5699 *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
5700 *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
5701 Rewrite these to take two modes, the mode of comparison and the
5702 mode of the destination.
5703 * config/mips/mips.c (mips_expand_scc): Instead of having
5704 paradoxical subreg as destination, expand "narrowing" scc if mode
5705 of comparison is SI and target is requested in DI mode.
5706 (mips_emit_int_order_test): Update comment. Make mode of
5707 comparison match CMP0 rather than TARGET. When creating inverse
5708 target use mode of TARGET.
5709
5710 2008-04-10 Adam Nemet <anemet@caviumnetworks.com>
5711
5712 * gcov-dump.c (tag_summary): Only print summaries for the first
5713 GCOV_COUNTERS_SUMMABLE counters.
5714
5715 2008-04-10 Uros Bizjak <ubizjak@gmail.com>
5716
5717 * config/i386/i386.md (absneg): New code iterator.
5718 (absnegprefix): New code attribute.
5719 (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
5720 patterns using absneg code iterator.
5721 (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
5722 using absneg code iterator.
5723 (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
5724 *neg<mode>2 patterns using absneg code iterator.
5725 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
5726 *negextendsfdf2 patterns using absneg code iterator.
5727 (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
5728 *negextendsfxf2 patterns using absneg code iterator.
5729 (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
5730 *negextendsfdf2 patterns using absneg code iterator.
5731 * config/i386/sse.md (<code><mode>2): Macroize expander from
5732 abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
5733
5734 2008-04-10 Andreas Krebbel <krebbel1@de.ibm.com>
5735
5736 * config/s390/s390.h: Remove the remains of the recent search
5737 & replace action of current_function_outgoing_args_size.
5738
5739 2008-04-10 Ira Rosen <irar@il.ibm.com>
5740
5741 PR tree-optimization/35821
5742 * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
5743 NEW_STMT_LIST is not NULL.
5744
5745 2008-04-09 David Edelsohn <edelsohn@gnu.org>
5746
5747 PR libstdc++/35597
5748 * toplev.c (process_options): Remove -ffunction-sections debugging
5749 warning.
5750
5751 2008-04-09 Peter Bergner <bergner@vnet.ibm.com>
5752
5753 PR middle-end/PR28690
5754 * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
5755 than gen_rtx_fmt_ee to perform more canonicalizations.
5756
5757 2008-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5758
5759 PR driver/35665
5760 * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
5761
5762 2008-04-09 Richard Guenther <rguenther@suse.de>
5763
5764 * tree-cfg.c (verify_stmt): Print complete bogus stmt.
5765 (dump_function_to_file): Dump function arguments with types.
5766
5767 2008-04-08 Richard Guenther <rguenther@suse.de>
5768
5769 * fold-const.c (fold_widened_comparison): Do not allow
5770 sign-changes that change the result.
5771
5772 2008-04-08 Janis Johnson <janis187@us.ibm.com>
5773
5774 PR target/35839
5775 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
5776 kinds of indirect references.
5777
5778 2008-04-08 David Edelsohn <edelsohn@gnu.org>
5779
5780 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
5781 GNU Fortran language string.
5782
5783 2008-04-08 Rafael Espindola <espindola@google.com>
5784
5785 * fold-canst.c (tree_call_nonnegative_warnv_p): New.
5786 (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
5787 * tree.h (tree_call_nonnegative_warnv_p): New.
5788
5789 2008-04-08 Jan Hubicka <jh@suse.cz>
5790
5791 * function.c (free_after_compilation): Clear out regno_reg_rtx
5792 pointer.
5793
5794 2008-04-08 Peter Bergner <bergner@vnet.ibm.com>
5795
5796 Revert
5797 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
5798
5799 PR middle-end/PR28690
5800 * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
5801 same precedence as REG_POINTER and MEM_POINTER operands.
5802
5803 2008-04-08 Richard Guenther <rguenther@suse.de>
5804
5805 PR middle-end/35834
5806 * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
5807 for adding index to base.
5808
5809 2008-04-08 Kai Tietz <kai.tietz@onevision.com>
5810
5811 * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
5812 (MINGW_ENABLE_EXECUTE_STACK): New.
5813 (IN_LIBGCC2): For libgcc include windows.h file for
5814 function declarations.
5815
5816 2008-04-08 Hans-Peter Nilsson <hp@axis.com>
5817
5818 * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
5819 and tem2 if tem1 is not a REG or MULT.
5820
5821 2008-04-08 Jan Hubicka <jh@suse.cz>
5822
5823 * function.h (incomming_args): Break out of struct function.
5824 (function_subsections): Break out of struct function.
5825 (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
5826 return_rtx and hard_reg_initial_vals from struct function.
5827 Kill inl_max_label_num.
5828 (current_function_pops_args, current_function_args_info,
5829 current_function_args_size, current_function_args_size,
5830 current_function_pretend_args_size,
5831 current_function_outgoing_args_size,
5832 current_function_internal_arg_pointer, current_function_return_rtx):
5833 Kill compatibility accestor macros.
5834 * builtins.c (expand_builtin_apply_args_1): Update.
5835 (expand_builtin_next_arg): Update.
5836 * df-scan.c (df_get_call_refs): Update.
5837 * dbxout.c (dbxout_function_end): Update.
5838 * dwarf2out.c (dwarf2out_switch_text_section): Update.
5839 (output_line_info): Update.
5840 (secname_for_decl): Update.
5841 (dwarf2out_var_location): Update.
5842 * function.c (free_after_compilation): Update.
5843 (assign_parm_find_stack_rtl): Update.
5844 (assign_parms): Update.
5845 (expand_dummy_function_end): Update.
5846 (expand_function_end): Update.
5847 * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
5848 (expand_call): Update.
5849 (emit_library_call_value_1): Update.
5850 (store_one_arg): Update.
5851 * varasm.c (initialize_cold_section_name): Update.
5852 (unlikely_text_section): Update.
5853 (unlikely_text_section_p): Update.
5854 (assemble_start_function): Update.
5855 (assemble_end_function): Update.
5856 (default_section_type_flags): Update.
5857 (switch_to_section): Update.
5858 * integrate.c (set_decl_abstract_flags): Update.
5859 (get_hard_reg_initial_val): Update.
5860 (has_hard_reg_initial_val): Update.
5861 (allocate_initial_values): Update.
5862 * resource.c (init_resource_info): Update.
5863 * config/alpha/alpha.c (NUM_ARGS): Update.
5864 (direct_return): Update.
5865 (alpha_va_start): Update.
5866 (alpha_sa_size): Update.
5867 (alpha_initial_elimination_offset): Update.
5868 (alpha_expand_prologue): Update.
5869 (alpha_start_function): Update.
5870 (alpha_expand_epilogue): Update.
5871 (unicosmk_initial_elimination_offset):
5872 * config/alpha/alpha.md (call expander): Update.
5873 * config/s390/s390.c (s390_register_info): Update.
5874 (s390_register_info): Update.
5875 (s390_frame_info): Update.
5876 (s390_initial_elimination_offset): Update.
5877 (s390_build_builtin_va_list): Update.
5878 (s390_va_start): Update.
5879 * config/spu/spu.c (direct_return): Update.
5880 (spu_expand_prologue): Update.
5881 (spu_initial_elimination_offset): Update.
5882 (spu_build_builtin_va_list): Update.
5883 (spu_va_start): Update.
5884 * config/sparc/sparc.c (sparc_init_modes): Update.
5885 (sparc_compute_frame_size): Update.
5886 (function_value): Update.
5887 * config/m32r/m32r.c (m32r_compute_frame_size): Update.
5888 * config/i386/i386.md (return expander): Update.
5889 * config/i386/i386.c (ix86_va_start): Update.
5890 (ix86_can_use_return_insn_p): Update.
5891 (ix86_compute_frame_layout): Update.
5892 (ix86_expand_epilogue): Update.
5893 * config/sh/sh.c (output_stack_adjust): Update.
5894 (calc_live_regs): Update.
5895 (sh_expand_prologue): Update.
5896 (sh_builtin_saveregs): Update.
5897 (sh_va_start): Update.
5898 (initial_elimination_offset): Update.
5899 (sh_allocate_initial_value): Update.
5900 (sh_function_ok_for_sibcall): Update.
5901 (sh_get_pr_initial_val): Update.
5902 * config/sh/sh.md (return expander): Update.
5903 * config/avr/avr.c (frame_pointer_required_p): UPdate.
5904 * config/crx/crx.c (crx_compute_frame): UPdate.
5905 (crx_initial_elimination_offset): UPdate.
5906 * config/xtensa/xtensa.c (compute_frame_size): Update
5907 (xtensa_builtin_saveregs): Update.
5908 (xtensa_va_start): Update.
5909 (order_regs_for_local_alloc): Update.
5910 * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
5911 (xstormy16_expand_builtin_va_start): Update.
5912 * config/fr30/fr30.c (fr30_compute_frame_size): Update.
5913 * config/m68hc11/m68hc11.md (return expanders): Update.
5914 * config/m68hc11/m68hc11.c (expand_prologue): Update.
5915 (expand_epilogue): Update.
5916 * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
5917 (cris_simple_epilogue): Update.
5918 (cris_expand_prologue): Update.
5919 (cris_expand_epilogue): Update.
5920 * config/iq2000/iq2000.c (iq2000_va_start): Update.
5921 (compute_frame_size): Update.
5922 * config/mt/mt.c (mt_compute_frame_size): Update.
5923 * config/mn10300/mn10300.c (expand_prologue): Update.
5924 (expand_epilogue): Update.
5925 (initial_offset): Update.
5926 (mn10300_builtin_saveregs):
5927 * config/mn10300/mn10300.md (return expander): Update.
5928 * config/ia64/ia64.c (ia64_compute_frame_size): Update.
5929 (ia64_initial_elimination_offset): Update.
5930 (ia64_initial_elimination_offset): Update.
5931 (ia64_expand_prologue): Update.
5932 * config/m68k/m68k.md (return expander): Update.
5933 * config/rs6000/rs6000.c (rs6000_va_start): Update.
5934 (rs6000_stack_info): Update.
5935 * config/mcore/mcore.c (layout_mcore_frame): Update.
5936 (mcore_expand_prolog): Update.
5937 * config/arc/arc.c (arc_compute_frame_size): Update.
5938 * config/score/score3.c (score3_compute_frame_size): Update.
5939 * config/score/score7.c (score7_compute_frame_size): Update.
5940 * config/arm/arm.c (use_return_insn): Update.
5941 (thumb_find_work_register): Update.
5942 (arm_compute_save_reg_mask): Update.
5943 (arm_output_function_prologue): Update.
5944 (arm_output_epilogue): Update.
5945 (arm_size_return_regs): Update.
5946 (arm_get_frame_offsets): Update.
5947 (arm_expand_prologue): Update.
5948 (thumb_exit): Update.
5949 (thumb_unexpanded_epilogue): Update.
5950 (thumb1_output_function_prologue): Update.
5951 * config/pa/pa.md (return expander): Update.
5952 * config/pa/pa.c (compute_frame_size): Update.
5953 (hppa_builtin_saveregs): Update.
5954 * config/mips/mips.c (mips_va_start): Update.
5955 (mips16_build_function_stub): Update.
5956 (mips_compute_frame_info): Update.
5957 (mips_restore_gp): Update.
5958 (mips_output_function_prologue): Update.
5959 (mips_expand_prologue): Update.
5960 * config/v850/v850.c (compute_frame_size): Update.
5961 (expand_prologue): * config/mmix/mmix.c (along): update.
5962 (mmix_initial_elimination_offset): update.
5963 (mmix_reorg): update.
5964 (mmix_use_simple_return): update.
5965 (mmix_expand_prologue): update.
5966 (mmix_expand_epilogue): Update.
5967 * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
5968 (emit_link_insn): Update.
5969
5970 2008-04-08 Anatoly Sokolov <aesok@post.ru>
5971
5972 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
5973 __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
5974 instructions.
5975 * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
5976 atmega103 device.
5977
5978 2008-04-07 Jan Hubicka <jh@suse.cz>
5979
5980 * function.h (rtl): Rename to x_rtl.
5981 (crtl): New define.
5982 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
5983 frame_offset, stack_check_probe_note, arg_pointer_save_area,
5984 used_temp_slots avail_temp_slots, temp_slot_level,
5985 nonlocal_goto_handler_labels): Update accesstors.
5986 (rtl): New global variable.
5987 (struct function): Move some fileds to rtl_data.
5988 (get_arg_pointer_save_area): Update prototype.
5989 * builtins.c (expand_builtin_setjmp_receiver): Update call of
5990 get_arg_pointer_save_area.
5991 * expr.c (init_expr): Update
5992 * function.c (get_frame_size): Update
5993 (assign_stack_local): Update
5994 (expand_function_end): Update.
5995 (get_art_pointer_save_area): Update
5996 * function.h
5997 * emit-rtl.c (rtl): Declare.
5998 (regno_reg_rtx): Declare.
5999 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
6000 Update.
6001 (gen_reg_rtx): Update.
6002 * varasm.c (n_deferred_constatns): Update accestor.
6003 (init_varasm_status): Do not allocate varasm_status.
6004 (force_const_mem, get_pool_size, output_constant_pool): Update.
6005 * stmt.c (force_label_rtx): Do not use x_ prefixes.
6006 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
6007 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
6008 * sparc/sparc.h (INIT_EXPANDERS): Update.
6009 * ia64/ia64.h (INIT_EXPANDERS): Update.
6010
6011 2008-04-07 James E. Wilson <wilson@tuliptree.org>
6012
6013 * reload.c (push_secondary_reload): Add missing break to for loop.
6014
6015 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
6016
6017 PR middle-end/PR28690
6018 * rtlanal.c: Update copyright years.
6019 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
6020 as REG_POINTER and MEM_POINTER operands.
6021 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
6022 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
6023 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
6024 * gcse.c: Update copyright years.
6025 (pre_delete): Call gen_reg_rtx_and_attrs.
6026 (hoist_code): Likewise.
6027 (build_store_vectors): Likewise.
6028 (delete_store): Likewise.
6029 * loop-invariant.c (move_invariant_reg): Likewise.
6030 Update copyright years.
6031
6032 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
6033
6034 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
6035 control string instead of quoted.
6036
6037 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
6038
6039 * doc/rtl.texi: Rewrite of subreg section.
6040
6041 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
6042
6043 PR/35842
6044 * config/i386/i386.c (legitimize_pic_address): Add treating
6045 of dllimport SYM_REF's.
6046 (legitimize_dllimport_symbol): Add prototype.
6047
6048 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6049
6050 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
6051 reference in constructor with non self-referential type.
6052
6053 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
6054
6055 Removal of Return with Depressed Stack Pointer support
6056 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
6057 (ECF_SP_DEPRESSED): Likewise.
6058 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
6059 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
6060 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6061 (expand_call): Do not test ECF_SP_DEPRESSED.
6062 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6063 * function.c (keep_stack_depressed): Delete.
6064 (handle_epilogue_set): Likewise.
6065 (update_epilogue_consts): Likewise.
6066 (emit_equiv_load): Likewise.
6067 (thread_prologue_and_epilogue_insns): Remove support for Return with
6068 Depressed Stack Pointer.
6069 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
6070
6071 2008-04-06 Richard Guenther <rguenther@suse.de>
6072
6073 PR tree-optimization/35400
6074 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
6075 information from SSA_NAMEs.
6076
6077 2008-04-06 Anatoly Sokolov <aesok@post.ru>
6078
6079 * config/avr/avr.h (avr_mega_p): Remove declaration.
6080 (AVR_MEGA): Remove macro.
6081 * config/avr/avr.c (avr_mega_p): Remove variable.
6082 (avr_override_options): Remove inicializion of avr_mega_p.
6083 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
6084 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
6085 (avr_jump_mode): (Ditto.).
6086 (avr_output_progmem_section_asm_op): (Ditto.).
6087 (avr_asm_init_sections): (Ditto.).
6088 (avr_asm_init_sections): (Ditto.).
6089 (avr_rtx_costs): (Ditto.).
6090 * config/avr/avr.md: (Ditto.).
6091 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
6092 '__AVR_MEGA__'.
6093
6094 2008-04-06 Richard Guenther <rguenther@suse.de>
6095
6096 PR tree-optimization/35842
6097 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
6098 is_gimple_invariant_address.
6099
6100 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6101
6102 * gcc.c (default_compilers): Sync Fortran extensions list with
6103 that in fortran/lang-specs.h.
6104 * doc/invoke.texi: Likewise.
6105 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
6106 * dwarf2out.c (gen_compile_unit_die): Likewise.
6107
6108 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
6109
6110 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
6111
6112 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
6113
6114 PR target/12329
6115 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
6116 attribute is used for nested functions.
6117
6118 2008-04-05 Jan Hubicka <jh@suse.cz>
6119
6120 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
6121
6122 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
6123 letter argument.
6124 (dump_files): Update.
6125 (enable_rtl_dump_file): Do not accept letter argument.
6126 * tree-pass.h (dump_file_info): Remove letter argument.
6127 * toplev.c (decode_d_option): Update -da handling.
6128 * toplev.h (enable_rtl_dump_file): Update prototype.
6129 * passes.c (register_one_dump_file): Do not accept IPA argument; work
6130 it out based on pass type.
6131 (register_dump_files_1): Likewise.
6132 (init_optimization_passes): Update register_one_dump_file calls.
6133 (execute_one_pass): Sanity check that IPA passes are called at IPA
6134 level and RTL passes at RTL level.
6135 (execute_pass_list): IPA pass can not be after or subpass of
6136 GIMPLE/RTL pass.
6137 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
6138 disallov RTL subpasses of IPA subpasses.
6139
6140 2008-04-05 Ben Elliston <bje@au.ibm.com>
6141
6142 * tree-cfg.c (need_fake_edge_p): Return false for calls to
6143 builtins that return exactly once and do not throw. Cache call to
6144 call_expr_flags.
6145
6146 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
6147
6148 PR rtl-optimization/34916
6149 PR middle-end/35519
6150 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
6151 between instruction pairs.
6152
6153 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
6154
6155 * doc/invoke.texi: Document -mbitops for SH.
6156 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
6157 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
6158 * config/sh/sh.c (print_operand): Add %t operand code.
6159 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
6160 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
6161 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
6162 (extendqihi2): Likewise.
6163 (movqi_i): Likewise.
6164 (insv): Use bset, bclr and bst instructions for SH2A if possible.
6165 (extv): Use bld instruction for SH2A if possible.
6166 (extzv): Likewise.
6167 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
6168 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
6169 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
6170 (bset.b, bclr.b): Define peepholes.
6171 * config/sh/sh.opt (mbitops): New option.
6172
6173 2008-04-04 Janis Johnson <janis187@us.ibm.com>
6174
6175 PR target/35620
6176 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
6177 and view convert expression.
6178
6179 2008-04-04 Jakub Jelinek <jakub@redhat.com>
6180
6181 PR target/35364
6182 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
6183
6184 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
6185
6186 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
6187
6188 * config/i386/cpuid.h (bit_AES): New.
6189 (bit_PCLMUL): Likewise.
6190
6191 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
6192 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
6193 SSE2 if AES or PCLMUL is enabled.
6194 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
6195 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
6196 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
6197 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
6198 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
6199 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
6200 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
6201 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
6202 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
6203 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
6204 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
6205 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
6206 __builtin_ia32_aeskeygenassist128 and
6207 __builtin_ia32_pclmulqdq128.
6208 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
6209 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
6210 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
6211
6212 * config/i386/i386.h (TARGET_AES): New.
6213 (TARGET_PCLMUL): Likewise.
6214 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
6215
6216 * config/i386/i386.md (UNSPEC_AESENC): New.
6217 (UNSPEC_AESENCLAST): Likewise.
6218 (UNSPEC_AESDEC): Likewise.
6219 (UNSPEC_AESDECLAST): Likewise.
6220 (UNSPEC_AESIMC): Likewise.
6221 (UNSPEC_AESKEYGENASSIST): Likewise.
6222 (UNSPEC_PCLMUL): Likewise.
6223
6224 * config/i386/i386.opt (maes): New.
6225 (mpclmul): Likewise.
6226
6227 * config/i386/sse.md (aesenc): New pattern.
6228 (aesenclast): Likewise.
6229 (aesdec): Likewise.
6230 (aesdeclast): Likewise.
6231 (aesimc): Likewise.
6232 (aeskeygenassist): Likewise.
6233 (pclmulqdq): Likewise.
6234
6235 * config/i386/wmmintrin.h: New.
6236
6237 * doc/extend.texi: Document AES and PCLMUL built-in function.
6238
6239 * doc/invoke.texi: Document -maes and -mpclmul.
6240
6241 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
6242
6243 * function.c (free_after_parsing): Replace with
6244 cxx_push_function_context from C++ front-end.
6245 (allocate_struct_function): Don't call langhook.
6246 * langhooks.h (struct lang_hooks_for_functions): Delete.
6247 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
6248 member "function".
6249 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
6250 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
6251 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
6252 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
6253 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
6254 remove LANG_HOOKS_FUNCTION_INITIALIZER.
6255 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
6256
6257 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
6258 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
6259
6260 2008-04-04 Jakub Jelinek <jakub@redhat.com>
6261
6262 PR c/35440
6263 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
6264 for all types.
6265
6266 2008-04-04 Richard Guenther <rguenther@suse.de>
6267
6268 PR middle-end/35823
6269 * fold-const.c (optimize_minmax_comparison): Use the correct
6270 type for the constant in the simplified comparison.
6271
6272 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
6273
6274 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
6275 Pass L2 size as "--param l2-cache-size" to the compiler.
6276 (decode_l2_cache): New function to decode L2 cache parameters using
6277 0x8000006 extended cpuid function.
6278 (detect_caches_amd): Determine parameters of L2 cache using
6279 decode_l2_caches function.
6280 (decode_caches_intel): Decode L2 cache parameters.
6281 (detect_caches_intel): Determine L2 cache parameters using
6282 decode_caches_intel and decode_l2_caches functions.
6283
6284 2008-04-03 Bob Wilson <bob.wilson@acm.org>
6285
6286 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
6287 secondary input reload for subword loads from the constant pool.
6288
6289 2008-04-03 Janis Johnson <janis187@us.ibm.com>
6290
6291 PR target/35713
6292 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
6293 constants of the appropriate size for runtime calculations.
6294
6295 PR c/35712
6296 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
6297 decimal-float literal constant zero.
6298
6299 2008-04-03 Jakub Jelinek <jakub@redhat.com>
6300
6301 PR c/35738
6302 * c-parser.c (c_parser_omp_atomic): Call
6303 default_function_array_conversion on the RHS.
6304
6305 PR middle-end/35818
6306 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
6307 call is_variable_sized if decl has incomplete type.
6308
6309 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
6310
6311 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
6312
6313 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
6314
6315 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
6316 iterators.
6317 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
6318 (sgt<u>): Merge sgt and sgtu into new expander.
6319 (sgt, sgtu): Remove expanders.
6320 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
6321 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
6322 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
6323 *sgtu_<mode>_mips16 into new pattern.
6324 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
6325 (sge<u>): Merge sge and sgeu into new expander.
6326 (sge, sgeu): Remove expanders.
6327 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
6328 new pattern.
6329 (*sge_<mode>, second *sge_<mode>): Remove patterns.
6330 (slt<u>): Merge slt and sltu into new expander.
6331 (slt, sltu): Remove expanders.
6332 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
6333 (*slt_<mode>, *sltu_<mode>): Remove patterns.
6334 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
6335 *sltu_<mode>_mips16 into new pattern.
6336 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
6337 (sle<u>): Merge sle and sleu into new expander.
6338 (sle, sleu): Remove expanders.
6339 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
6340 (*sle_<mode>, *sleu_<mode>): Remove patterns.
6341 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
6342 *sleu_<mode>_mips16 into new pattern.
6343 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
6344
6345 2008-04-03 Jan Hubicka <jh@suse.cz>
6346
6347 PR tree-optimization/35795
6348 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
6349 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
6350 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
6351 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
6352 * score/score3.c (score3_output_mi_thunk): Likewise.
6353 * score/score7.c (score7_output_mi_thunk): Likewise.
6354 * mips/mips.c (mips_output_mi_thunk): Likewise.
6355
6356 2008-04-03 Richard Guenther <rguenther@suse.de>
6357
6358 * tree-vrp.c (extract_range_from_unary_expr): Handle all
6359 conversions. Simplify code.
6360
6361 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
6362
6363 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
6364
6365 2008-04-03 Tom Tromey <tromey@redhat.com>
6366 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6367
6368 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
6369 * config/bfin/t-bfin-linux (generated_files): Add
6370 linux-sysroot-suffix.h.
6371 * doc/install.texi (Prerequisites): Require make 3.80.
6372 * doc/sourcebuild.texi (Front End Directory): Document new
6373 variable.
6374 * Makefile.in (generated_files): New variable.
6375 (ALL_HOST_OBJS): New variable.
6376 ($(ALL_HOST_OBJS)): New target.
6377
6378 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6379
6380 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
6381 (remap_block): Call id->transform_lang_insert_block instead
6382 of langhook.
6383 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
6384 Set id.transform_lang_insert_block to NULL.
6385 (clone_body): Move to cp/optimize.c
6386 * tree-inline.h (struct copy_body_data): Change
6387 transform_lang_insert_block to function pointer.
6388 (copy_generic_body, copy_decl_no_change): Export.
6389 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
6390 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
6391 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
6392
6393 * c-tree.h (insert_block): Kill.
6394 * c-decl.c (insert_block): Kill.
6395
6396 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
6397
6398 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6399 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
6400 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
6401 argument.
6402 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
6403 argument, call {push,pop}_function_context from here.
6404 * c-parser.c: Use c_{push,pop}_function_context.
6405
6406 * function.c (push_function_context_to): Move meat ...
6407 (push_function_context): ... here. Simplify.
6408 * function.c (pop_function_context_from): Move meat ...
6409 (pop_function_context): ... here. Simplify.
6410 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
6411 leave_nested).
6412 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6413 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
6414 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
6415 * tree.h (push_function_context_to, pop_function_context_from): Remove.
6416
6417 2008-04-03 Ben Elliston <bje@au.ibm.com>
6418
6419 * expmed.c (extract_force_align_mem_bit_field): Remove.
6420
6421 2008-04-03 Richard Guenther <rguenther@suse.de>
6422
6423 PR middle-end/35800
6424 * expr.h (try_casesi): Adjust prototype.
6425 * expr.c (try_casesi): Take fallback label as extra parameter.
6426 Use that for gen_casesi if default_label is NULL.
6427 * stmt.c (expand_case): Pass fallback label to try_casesi,
6428 make sure to fill gaps with a fallback label if default_label
6429 is not present.
6430
6431 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
6432
6433 PR target/35801
6434 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
6435
6436 2008-04-03 Ben Elliston <bje@au.ibm.com>
6437
6438 * expmed.c (extract_split_bit_field): Remove if (0) code.
6439 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
6440 (do_ds_constraint): Likewise.
6441
6442 2008-04-02 Joseph Myers <joseph@codesourcery.com>
6443
6444 * doc/cppopts.texi (-dU): Document.
6445 * c-common.h (flag_dump_macros): Update comment.
6446 * c-opts.c (handle_OPT_d): Handle -dU.
6447 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
6448 dump_queued_macros, cb_used_define, cb_used_undef): New.
6449 (init_pp_output): Handle -dU.
6450 (cb_line_change): Call dump_queued_macros.
6451 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
6452
6453 2008-04-02 Anatoly Sokolov <aesok@post.ru>
6454
6455 * config/avr/predicates.md (io_address_operand): New predicate.
6456 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
6457 * config/avr/avr.c (avr_io_address_p): Remove function.
6458 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
6459 'avr_io_address_p' function.
6460 (out_movhi_r_mr): (Ditto.).
6461 (out_movqi_mr_r): (Ditto.).
6462 (out_movhi_mr_r): (Ditto.).
6463 (avr_address_cost): (Ditto.).
6464
6465 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
6466
6467 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
6468 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
6469 in 32bit mode when XMM registers are available to avoid store
6470 forwarding stalls.
6471 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
6472 corresponding post-reload splitters.
6473
6474 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
6475
6476 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
6477 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
6478 __builtin_ia32_roundss.
6479 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
6480 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
6481 __builtin_ia32_roundss.
6482 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
6483 IX86_BUILTIN_SHUFPD here.
6484
6485 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
6486
6487 * config/i386/i386.md (plogic): New.
6488 (plogicprefix): Likewise.
6489
6490 * config/i386/mmx.md (mmx_<code><mode>3): New.
6491 (mmx_and<mode>3): Removed.
6492 (mmx_ior<mode>3): Likewise.
6493 (mmx_xor<mode>3): Likewise.
6494
6495 * config/i386/sse.md (<code><mode>3): New.
6496 (*<code><mode>3): Likewise.
6497 (*<code><mode>3): Likewise.
6498 (<code><mode>3): Likewise.
6499 (*sse_<code><mode>3): Likewise.
6500 (*sse2_<code><mode>3): Likewise.
6501 (<code>tf3): Likewise.
6502 (*<code>tf3): Likewise.
6503 (and<mode>3): Likewise.
6504 (*and<mode>3): Likewise.
6505 (ior<mode>3): Removed.
6506 (*ior<mode>3): Likewise.
6507 (xor<mode>3): Likewise.
6508 (*xor<mode>3): Likewise.
6509 (*and<mode>3): Likewise.
6510 (*ior<mode>3): Likewise.
6511 (*xor<mode>3): Likewise.
6512 (and<mode>3): Likewise.
6513 (*sse_and<mode>3): Likewise.
6514 (*sse2_and<mode>3): Likewise.
6515 (andtf3): Likewise.
6516 (*andtf3): Likewise.
6517 (ior<mode>3): Likewise.
6518 (*sse_ior<mode>3): Likewise.
6519 (*sse2_ior<mode>3): Likewise.
6520 (iortf3): Likewise.
6521 (*iortf3): Likewise.
6522 (xor<mode>3): Likewise.
6523 (*sse_xor<mode>3): Likewise.
6524 (*sse2_xor<mode>3): Likewise.
6525 (xortf3): Likewise.
6526 (*xortf3): Likewise.
6527
6528 2008-04-02 Richard Guenther <rguenther@suse.de>
6529
6530 PR tree-optimization/14495
6531 PR tree-optimization/34793
6532 * tree-vrp.c (struct switch_update): New structure.
6533 (to_remove_edges, to_update_switch_stmts): New VECs.
6534 (simplify_switch_using_ranges): New function. Remove not taken
6535 case labels and edges.
6536 (simplify_stmt_using_ranges): Call it.
6537 (identify_jump_threads): Mark edges we have queued for removal
6538 so we don't thread them.
6539 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
6540 case label vector.
6541 * tree-cfg.c (group_case_labels): Deal with missing default label.
6542 (tree_verify_flow_info): Allow missing default label.
6543 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
6544 (emit_case_nodes): Likewise.
6545 (expand_case): Do not rely on the default label to be present.
6546 * expr.c (try_casesi): Deal with NULL default_label.
6547 (do_tablejump): Likewise.
6548
6549 2008-04-02 Richard Guenther <rguenther@suse.de>
6550
6551 PR tree-optimization/14495
6552 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
6553 SWITCH_EXPR here ...
6554 (vrp_visit_switch_stmt): ... but here (new function).
6555 (find_case_label_index): New helper function.
6556 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
6557
6558 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6559
6560 * fwprop.c: Fix ISO-C99ism.
6561
6562 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6563
6564 PR bootstrap/35752
6565 * Makefile.in (objdir): Set it here.
6566 * configure.ac: Not here. Find dynamic linker characteristics.
6567 * exec-tool.in: Use them.
6568 * aclocal.m4: Regenerate.
6569 * configure: Regenerate.
6570
6571 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6572
6573 * expr.c (expand_var): Delete it.
6574 * expr.h (expand_var): Delete prototype.
6575 * function.c (expand_function_start): Use expand_decl instead.
6576 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
6577 langhook.
6578
6579 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
6580
6581 PR rtl-optimization/35542
6582 * fwprop.c (forward_propagate_and_simplify): Replace
6583 loc_reg_mentioned_in_p with reg_mentioned_p.
6584
6585 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
6586
6587 PR rtl-optimization/35281
6588 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
6589 (propagate_rtx_1): Handle PR_HANDLE_MEM.
6590 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
6591 (varying_mem_p): Move above propagate_rtx.
6592 (all_uses_available_at): Do not check MEMs.
6593
6594 2008-04-02 Rafael Espindola <espindola@google.com>
6595
6596 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
6597 (register_edge_assert_for_2): Split the cond argument.
6598 (register_edge_assert_for_1): Adjust for the change in
6599 register_edge_assert_for_2.
6600 (register_edge_assert_for): Split the cond argument.
6601 (find_switch_asserts): Adjust for the change in
6602 register_edge_assert_for.
6603
6604 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
6605
6606 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
6607 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
6608 offsets for 64-bit mingw.
6609 * config/i386/i386.c (ix86_pass_by_reference): Correct calling
6610 abi for x86_64-pc-mingw.
6611
6612 2008-04-02 Richard Guenther <rguenther@suse.de>
6613
6614 * tree-vrp.c (extract_range_from_assert): Make sure to not
6615 produce range min/max with TREE_OVERFOW set.
6616 If merging a anti-range and a range keep the anti-range if
6617 the range covers all values of the type.
6618 (register_edge_assert_for_2): Only allow sign-changing
6619 conversions in detecting canonical range checks. Also
6620 register an assert for the unsigned name if useful.
6621
6622 PR tree-optimization/35787
6623 * tree-vrp.c (vrp_val_max): New function.
6624 (vrp_val_min): Likewise.
6625 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
6626 (vrp_val_is_min): Likewise.
6627 (supports_overflow_infinity): Use vrp_val_{min,max}.
6628 (negative_overflow_infinity): Likewise.
6629 (positive_overflow_infinity): Likewise.
6630 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
6631 (is_positive_overflow_infinity): Likewise.
6632 (is_overflow_infinity): Likewise.
6633 (avoid_overflow_infinity): Use vrp_val_{min,max} and
6634 vrp_val_is_{min,max}.
6635 (set_and_canonicalize_value_range): Canonicalize anti-ranges
6636 to ranges if possible. Avoid empty ranges.
6637
6638 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6639
6640 PR middle-end/35705
6641 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
6642 the expression is a function address.
6643
6644 2008-04-01 George Helffrich <george@gcc.gnu.org>
6645
6646 PR fortran/35154, fortran/23057
6647 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
6648 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
6649 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
6650 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
6651 in common.
6652 (dbxout_syms): Check for COMMON-based symbol and wrap in
6653 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
6654 in bracket for efficiency.
6655
6656 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
6657 using DW_TAG_common_block + member offset.
6658 (add_pubname_string): New function.
6659 (dw_expand_expr): New function to find block name and offset for
6660 COMMON var.
6661 (common_check): New function to check whether symbol in Fortran COMMON.
6662 (gen_variable_die): If COMMON, use DW_TAG_common_block.
6663
6664 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
6665
6666 PR c/35436
6667 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
6668
6669 2008-04-02 Ben Elliston <bje@au.ibm.com>
6670
6671 * config/v850/v850.md (casesi): Remove if (0) code.
6672 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
6673 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
6674
6675 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
6676
6677 * config/i386/i386.md (rex64suffix): New mode attribute.
6678 (floathi<mode>2): Disable expander for SSE math.
6679 (*floathi<mode>2_1): New insn insn_and_split pattern.
6680 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
6681 corresponding post-reload splitters.
6682 (*floathi<mode>2_i387): New macroized insn pattern.
6683 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
6684 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
6685 insn_and_split pattern.
6686 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
6687 New macroized instruction patterns and corresponding post-reload
6688 splitters.
6689 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
6690 and corresponding post-reload splitters.
6691 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
6692 New macroized instruction patterns.
6693 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
6694 macroized instruction patterns and corresponding post-reload splitters.
6695 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
6696 corresponding post-reload splitters.
6697 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
6698 New macroized instruction patterns.
6699 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
6700 corresponding post-reload splitters.
6701 (*floatsi<mode>2_i387): New macroized instruction patterns.
6702
6703 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
6704
6705 * config/i386/i386.md (smaxmin): New.
6706 (umaxmin): Likewise.
6707 (maxminiprefix): Likewise.
6708 (maxminfprefix): Likewise.
6709 (<code><mode>3): Likewise.
6710 (smin<mode>3): Removed.
6711 (smax<mode>3): Likewise.
6712
6713 * config/i386/mmx.md (mmx_<code>v2sf3): New.
6714 (mmx_<code>v4hi3): Likewise.
6715 (mmx_<code>v8qi3): Likewise.
6716 (mmx_smaxv2sf3): Removed.
6717 (mmx_sminv2sf3): Likewise.
6718 (mmx_umaxv8qi3): Likewise.
6719 (mmx_smaxv4hi3): Likewise.
6720 (mmx_uminv8qi3): Likewise.
6721 (mmx_sminv4hi3): Likewise.
6722
6723 * config/i386/sse.md (<addsub><mode>3): New.
6724 (*<addsub><mode>3): Likewise.
6725 (<sse>_vm<addsub><mode>3): Likewise.
6726 (<maxmin><mode>3): Likewise.
6727 (*<maxmin><mode>3_finite): Likewise.
6728 (*<maxmin><mode>3): Likewise.
6729 (<sse>_vm<maxmin><mode>3): Likewise.
6730 (sse3_h<addsub>v4sf3): Likewise.
6731 (sse3_h<addsub>v2df3): Likewise.
6732 (<maxmin>v16qi3): Likewise.
6733 (*<maxmin>v16qi3): Likewise.
6734 (<maxmin>v8hi3): Likewise.
6735 (*<maxmin>v8hi3): Likewise.
6736 (*sse4_1_<maxmin><mode>3): Likewise.
6737 (*sse4_1_<maxmin><mode>3): Likewise.
6738 (add<mode>3): Removed.
6739 (*add<mode>3): Likewise.
6740 (<sse>_vmadd<mode>3): Likewise.
6741 (sub<mode>3): Likewise.
6742 (*sub<mode>3): Likewise.
6743 (<sse>_vmsub<mode>3): Likewise.
6744 (smin<mode>3): Likewise.
6745 (*smin<mode>3_finite): Likewise.
6746 (*smin<mode>3): Likewise.
6747 (<sse>_vmsmin<mode>3): Likewise.
6748 (smax<mode>3): Likewise.
6749 (*smax<mode>3_finite): Likewise.
6750 (*smax<mode>3): Likewise.
6751 (<sse>_vmsmax<mode>3): Likewise.
6752 (sse3_haddv4sf3): Likewise.
6753 (sse3_haddv2df3): Likewise.
6754 (sse3_hsubv4sf3): Likewise.
6755 (sse3_hsubv2df3): Likewise.
6756 (umaxv16qi3): Likewise.
6757 (*umaxv16qi3): Likewise.
6758 (smaxv8hi3): Likewise.
6759 (*smaxv8hi3): Likewise.
6760 (*sse4_1_smax<mode>3): Likewise.
6761 (*sse4_1_umax<mode>3): Likewise.
6762 (uminv16qi3): Likewise.
6763 (*uminv16qi3): Likewise.
6764 (sminv8hi3): Likewise.
6765 (*sminv8hi3): Likewise.
6766 (*sse4_1_smin<mode>3): Likewise.
6767 (*sse4_1_umin<mode>3): Likewise.
6768
6769 2008-04-01 Rafael Espindola <espindola@google.com>
6770
6771 * tree-cfg.c (verify_expr): remove in_phi.
6772 (verify_stmt): Don't call walk_tree with verify_expr. Use
6773 is_gimple_min_invariant instead of is_gimple_val.
6774
6775 2008-04-01 Joseph Myers <joseph@codesourcery.com>
6776
6777 * doc/include/gpl_v3.texi: Update for manpage generation.
6778 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
6779 gpl.texi.
6780 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
6781 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
6782 gpl_v3.texi instead of gpl.texi.
6783 (gpl.pod): New.
6784
6785 2008-04-01 Jakub Jelinek <jakub@redhat.com>
6786
6787 PR pch/13675
6788 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
6789
6790 2008-04-01 Rafael Espindola <espindola@google.com>
6791
6792 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
6793 (extract_code_and_val_from_cond): Use
6794 extract_code_and_val_from_cond_with_ops.
6795
6796 2008-04-01 Jan Hubicka <jh@suse.cz>
6797
6798 * function.c (free_after_compilation): Free epilogue_delay_list.
6799 (prepare_function_start): Assert that previous compilation was freed.
6800
6801 2008-04-01 Jan Hubicka <jh@suse.cz>
6802 Jim Wilson <wilson@tuliptree.org>
6803 Andreas Tobler <andreast@gcc.gnu.org>
6804
6805 PR middle-end/35781
6806 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
6807 rtl.emit instead cfun->emit.
6808 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
6809 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
6810
6811 2008-04-01 Ben Elliston <bje@au.ibm.com>
6812
6813 * doc/c-tree.texi (Function Basics): Fix grammatical error.
6814
6815 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
6816
6817 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
6818 New options
6819 (fprofile-use): Add var flag_profile_use
6820 * coverage.c (coverage_begin_output): Do not open a gcno file for
6821 output only if -ftest-coverage is set.
6822 Do not add getpwd() to gcda file path.
6823 (build_gcov_info): Check the new flag
6824 flag_profile_datafile_relative_path.
6825 (coverage_init): Use profile_data_prefix.
6826 Read profile counter only if flag_profile_use is set.
6827 * opts.c (common_handle_option): New option fprofile-use=,
6828 fprofile-dir=, fprofile-generate=.
6829 * toplev.c (profile_data_prefix): New variable definition.
6830 * toplev.h (profile_data_prefix): New declaration.
6831 * doc/invoke.tex (Option Summary, Optimization Options):
6832 Add new options.
6833
6834 2008-03-31 James E. Wilson <wilson@tuliptree.org>
6835
6836 * varasm.c (output_constant_pool_1): In LABEL_REF check,
6837 use tmp consistently.
6838
6839 PR target/35695
6840 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
6841 * config/ia64/ia64.c (rtx_needs_barrier): Handle
6842 UNSPEC_FR_RECIP_APPROX_RES.
6843 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
6844
6845 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
6846
6847 PR c/35750
6848 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
6849
6850 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
6851
6852 PR middle-end/30186
6853 * fold-const.c (fold_indirect_ref_1): Support accessing non first
6854 element of the vector via a pointer.
6855
6856 2008-03-31 Ian Lance Taylor <iant@google.com>
6857
6858 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
6859
6860 2008-03-31 Jan Hubicka <jh@suse.cz>
6861
6862 * builtins.c (expand_builtin_setjmp_receiver): Update call of
6863 get_arg_pointer_save_area.
6864 * expr.c (init_expr): Just clear out rtl.expr.
6865 * function.c (free_after_compilation): Clear out whole RTL structure.
6866 (get_func_frame_size): Merge into ...
6867 (get_frame_size): ... this one.
6868 (assign_stack_local_1): Merge into ...
6869 (assign_stack_local): ... this one.
6870 (expand_function_end): Update call of get_arg_pointer_save_area.
6871 (get_art_pointer_save_area): Remove cfun argument.
6872 * function.h (emit_status): regno_pointer_align does not need length
6873 attribute. Move x_regno_reg_rtx to ...
6874 (regno_reg_rtx): ... new global array.
6875 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
6876 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
6877 apply_args_value, forced_labels, stack_pointer_delta):
6878 Update accestors.
6879 (struct varasm_status): Move here from varasm.c
6880 (struct rtl_data): New. Move here some fields from struct function.
6881 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
6882 frame_offset, stack_check_probe_note, arg_pointer_save_area,
6883 used_temp_slots avail_temp_slots, temp_slot_level,
6884 nonlocal_goto_handler_labels): Update accesstors.
6885 (rtl): New global variable.
6886 (struct function): Move some fileds to rtl_data.
6887 (get_arg_pointer_save_area): Update prototype.
6888 * emit-rtl.c (rtl): Declare.
6889 (regno_reg_rtx): Declare.
6890 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
6891 Update.
6892 (gen_reg_rtx): Update.
6893 (init_virtual_regs): Do not tate emit_status argument.
6894 (init_emit): Do not allocate emit.
6895 * varasm.c (varasm_statuc): Move to function.h.
6896 (n_deferred_constatns): Update accestor.
6897 (init_varasm_status): Do not allocate varasm_status.
6898 (force_const_mem, get_pool_size, output_constant_pool): Update.
6899 * stmt.c (force_label_rtx): Do not use x_ prefixes.
6900 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
6901
6902 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
6903
6904 PR rtl-optimization/35729
6905 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
6906 references.
6907
6908 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
6909
6910 PR target/32000
6911 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
6912 load/store if memory is unaligned.
6913 (*movti_rex64): Likewise.
6914
6915 * config/i386/predicates.md (misaligned_operand): New.
6916
6917 2008-03-31 Andrew Pinski <pinskia@gmail.com>
6918
6919 PR tree-opt/35431
6920 * tree-ssa-phiopt.c (conditional_replacement): Return early for
6921 complex types.
6922
6923 2008-03-31 Jan Beulich <jbeulich@novell.com>
6924
6925 * config/ia64/constraints.md: Add 'j' constraint.
6926 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
6927 (movdi_internal): Likewise.
6928
6929 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
6930
6931 PR c/35748
6932 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
6933
6934 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
6935
6936 PR target/35757
6937 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
6938 proper error message for the third argument on blendpd and
6939 blendps.
6940
6941 * config/i386/sse.md (blendbits): New.
6942 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
6943
6944 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
6945
6946 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
6947
6948 2008-03-30 Richard Guenther <rguenther@suse.de>
6949
6950 PR middle-end/31023
6951 * fold-const.c (fold_sign_changed_comparison): Do leave
6952 conversions to base-types alone.
6953
6954 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
6955
6956 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
6957 the link register if one altivec register is be saved.
6958
6959 2008-03-30 Ben Elliston <bje@au.ibm.com>
6960
6961 * final.c (final_scan_insn): Remove if (0) code.
6962
6963 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
6964
6965 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
6966
6967 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
6968
6969 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
6970 of V4SFmode to ix86_binary_operator_ok.
6971
6972 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
6973
6974 * config/i386/i386.c (override_options): Initialize
6975 ix86_veclib_handler to ix86_veclibabi_svml when
6976 -mveclibabi=svml is used.
6977 (ix86_veclibabi_svml): New function for SVML ABI style
6978 vectorization support.
6979 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
6980
6981 2008-03-28 Rafael Espindola <espindola@google.com>
6982
6983 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
6984 (tree_binary_nonnegative_warnv_p): Make it public.
6985 (tree_single_nonnegative_warnv_p): Make it public.
6986 (tree_invalid_nonnegative_warnv_p): Make it public.
6987 (tree_unary_nonzero_warnv_p): Make it public.
6988 (tree_binary_nonzero_warnv_p): Make it public
6989 (tree_single_nonzero_warnv_p): Make it public.
6990 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
6991 (extract_range_from_binary_expr): Split the expr argument.
6992 (extract_range_from_unary_expr): Split the expr argument.
6993 (extract_range_from_comparison): Split the expr argument.
6994 (extract_range_from_expr): Use the new aux functions.
6995 (vrp_evaluate_conditional_warnv): Use
6996 vrp_evaluate_conditional_warnv_with_ops.
6997 * tree.h (tree_unary_nonzero_warnv_p): Declare.
6998 (tree_binary_nonzero_warnv_p): Declare.
6999 (tree_single_nonzero_warnv_p): Declare.
7000 (tree_expr_nonzero_warnv_p): Declare.
7001 (tree_unary_nonnegative_warnv_p): Declare.
7002 (tree_binary_nonnegative_warnv_p): Declare.
7003 (tree_single_nonnegative_warnv_p): Declare.
7004 (tree_invalid_nonnegative_warnv_p): Declare.
7005
7006 2008-03-28 Richard Guenther <rguenther@suse.de>
7007
7008 PR tree-optimization/30317
7009 PR tree-optimization/30911
7010 PR tree-optimization/34793
7011 * tree-vrp.c (set_and_canonicalize_value_range): New function.
7012 (struct assert_locus_d): New member EXPR.
7013 (register_new_assert_for): Add EXPR parameter to support
7014 ASSERT_EXPR <name, expr OP limit>.
7015 (register_edge_assert_for_1): Adjust callers.
7016 (find_assert_locations): Likewise.
7017 (process_assert_insertions_for): Build condition from expression.
7018 (extract_range_from_assert): Handle ASSERT_EXPRs
7019 of the form ASSERT_EXPR <name, expr OP limit>.
7020 (register_edge_assert_for_2): New helper registering
7021 asserts for comparisons. Recognize range tests of the form
7022 (unsigned)i - CST1 OP CST2.
7023 (register_edge_assert_for_1): Use it.
7024 (register_edge_assert_for): Likewise.
7025 (needs_overflow_infinity): Integer sub-types
7026 do not need overflow infinities.
7027 (vrp_val_is_max): The extreme values of integer sub-types
7028 are those of the base type.
7029 (vrp_val_is_min): Likewise.
7030 * tree.def (ASSERT_EXPR): Document extra allowed conditional
7031 expressions.
7032
7033 2008-03-28 Nick Clifton <nickc@redhat.com>
7034
7035 PR target/31110
7036 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
7037 Return GENERAL_REGS for stack adjustment reloads.
7038
7039 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
7040
7041 PR target/31334
7042 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
7043 const_vector when all the vectors are constant.
7044
7045 2008-03-27 Bob Wilson <bob.wilson@acm.org>
7046
7047 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
7048 comparisons.
7049 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
7050 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
7051 (scc_sf): New.
7052 (s<code>_sf): Use new scc_sf attribute for opcode names.
7053
7054 2008-03-27 Tom Tromey <tromey@redhat.com>
7055
7056 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
7057 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
7058 config/spu/t-spu-elf, config/i386/t-interix,
7059 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
7060 config/i386/x-darwin, config/i386/x-mingw32,
7061 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
7062 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
7063 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
7064 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
7065 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
7066 config/rs6000/x-darwin, config/rs6000/t-rs6000,
7067 config/score/t-score-elf, config/arm/t-strongarm-pe,
7068 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
7069 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
7070 Revert automatic dependency patch.
7071
7072 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
7073
7074 PR target/35657
7075 * config/i386/i386.c (ix86_function_arg_boundary): Align
7076 decimal floating point to its natural boundary.
7077
7078 2008-03-27 Richard Guenther <rguenther@suse.de>
7079
7080 PR middle-end/35716
7081 * fold-const.c (fold_comparison): Restrict distinct decl
7082 comparison folding to VAR_DECLs and PARM_DECLs. Do not
7083 solely rely on operand_equal_p.
7084
7085 2008-03-27 Richard Guenther <rguenther@suse.de>
7086
7087 PR c/32511
7088 * c-common.c (handle_weak_attribute): Reject combination of
7089 weak and inline.
7090
7091 2008-03-27 Richard Guenther <rguenther@suse.de>
7092
7093 PR tree-optimization/32810
7094 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
7095 conversions from DECL_INITIAL.
7096 (fold_const_aggregate_ref): Likewise from constructor elements.
7097
7098 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
7099
7100 * tree-affine.h (aff_combination_expand): Declare.
7101 (get_inner_reference_aff): Likewise.
7102 * tree-affine.c (aff_combination_expand): Split out from
7103 tree_to_aff_combination_expand.
7104 (get_inner_reference_aff): New function.
7105 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
7106 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
7107 (struct lim_aux_data): sm_done field removed.
7108 (mem_ref_loc_p, mem_ref_locs_p): New types.
7109 (struct mem_ref): Added id, stored, accesses_in_loop,
7110 indep_loop, dep_loop, indep_ref, dep_ref fields.
7111 Removed is_stored, locs and next fields.
7112 (memory_accesses): New variable.
7113 (movement_possibility): Do not allow moving statements
7114 that store to memory.
7115 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
7116 New functions.
7117 (determine_max_movement): For statements with memory references,
7118 find the outermost loop in that the reference is independent.
7119 (move_computations_stmt): Mark the virtual operands for renaming.
7120 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
7121 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
7122 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
7123 add_vop_ref_mapping, create_vop_ref_mapping_loop,
7124 create_vop_ref_mapping, analyze_memory_references,
7125 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
7126 get_all_locs_in_loop, ref_always_accessed_p,
7127 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
7128 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
7129 store_motion_loop, store_motion): New functions.
7130 (struct vop_to_refs_elt): New type.
7131 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
7132 memref_hash, memref_eq, hoist_memory_references): Rewritten.
7133 (schedule_sm): Replaced by...
7134 (execute_sm): ... this.
7135 (determine_lsm_ref, hoist_memory_references,
7136 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
7137 find_more_ref_vops, free_mem_ref, free_mem_refs,
7138 determine_lsm_loop, determine_lsm): Removed.
7139 (tree_ssa_lim_finalize): Free data structures used by store motion.
7140 (tree_ssa_lim): Call analyze_memory_references. Use
7141 store_motion instead of determine_lsm.
7142
7143 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
7144
7145 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
7146 rename tmake_file to m68hc11/t-m68hc11.
7147 (mcore): Set inhibit_libc to true.
7148 * config.host (alpha*-dec-*vms*): Set extra_programs.
7149 (interix3*): Don't use host_xmake_file.
7150 * configure.ac: Let config.gcc override inhibit_libc.
7151 * configure: Regenerate.
7152
7153 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
7154 * config/t-openbsd-thread: Remove commented out lines.
7155
7156 * config/x-interix: Remove.
7157
7158 * config/m68hc11/t-m68hc11-gas: Rename to...
7159 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
7160
7161 * config/mcore/t-mcore: Remove T_CFLAGS.
7162 * config/mcore/t-mcore-pe: Likewise.
7163
7164 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
7165
7166 * configure.ac: Replace custom __GNU_SOURCE test with
7167 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
7168 * aclocal.m4: Regenerate.
7169 * configure: Regenerate.
7170 * config.in: Regenerate.
7171
7172 2008-03-27 Richard Guenther <rguenther@suse.de>
7173
7174 * fold-const.c (target.h): Include.
7175 (fold_comparison): Fold comparison of addresses of decls
7176 that bind locally or of constants. Consolidate address folding code.
7177 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
7178 results from fold_binary_to_constant.
7179 (compare_values_warnv): Likewise.
7180
7181 2008-03-27 Andrew Pinski <pinskia@gmail.com>
7182
7183 PR middle-end/35429
7184 * fold-const.c (fold_truthop): Check for integeral types when folding
7185 a == 0 && b == 0 and a != 0 || b != 0 .
7186
7187 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
7188
7189 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
7190
7191 2008-03-26 Andreas Schwab <schwab@suse.de>
7192
7193 * doc/invoke.texi: Fix use of @item vs. @itemx.
7194
7195 2008-03-26 Tom Tromey <tromey@redhat.com>
7196
7197 * Makefile.in (build/gensupport.o, build/print-rtl.o,
7198 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
7199 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
7200 build/gencodes.o, build/genconditions.o, build/genconfig.o,
7201 build/genconstants.o, build/genemit.o, build/genextract.o,
7202 build/genflags.o, build/genmddeps.o, build/genopinit.o,
7203 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
7204 options.h.
7205
7206 2008-03-26 Richard Guenther <rguenther@suse.de>
7207
7208 Revert
7209 2008-03-26 Richard Guenther <rguenther@suse.de>
7210
7211 * fold-const.c (target.h): Include.
7212 (fold_comparison): Fold comparison of addresses of two decls
7213 that bind locally. Consolidate address folding code.
7214
7215 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7216
7217 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
7218 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
7219 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
7220 dconstsqrt2, dconstthird, dconste and/or dconst10.
7221 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
7222 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
7223 dconstsqrt2, dconste): Delete.
7224 (init_emit_once): Likewise. Simplify initializing dconstm1.
7225 Constify variable.
7226 * real.c (get_real_const): New.
7227 * real.h (dconst3, dconst10, dconstm2, dconstthird,
7228 dconstsqrt2, dconste): Delete.
7229 (real_value_const, get_real_const): New.
7230
7231 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
7232
7233 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
7234
7235 * config/i386/i386.c (ix86_function_arg_boundary): Check
7236 BIGGEST_ALIGNMENT instead of 128.
7237 (setup_incoming_varargs_64): Likewise.
7238
7239 2008-03-26 Tom Tromey <tromey@redhat.com>
7240
7241 * Makefile.in (DEPFILES): Add missing '/'.
7242
7243 2008-03-26 Richard Guenther <rguenther@suse.de>
7244
7245 * fold-const.c (target.h): Include.
7246 (fold_comparison): Fold comparison of addresses of two decls
7247 that bind locally. Consolidate address folding code.
7248
7249 2008-03-26 Nick Clifton <nickc@redhat.com>
7250
7251 PR target/31232
7252 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
7253 not allow INT+INT as a legitimate addressing mode.
7254
7255 2008-03-26 Richard Guenther <rguenther@suse.de>
7256
7257 * tree-flow.h (widen_bitfield): Remove declaration.
7258 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
7259 (widen_bitfield): Remove function.
7260 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
7261 code.
7262
7263 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
7264
7265 PR target/31558
7266 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
7267 error_mark_node's.
7268
7269 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
7270
7271 PR rtl-optimization/35232
7272 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
7273 (forget_old_reloads_1, forget_marked_reloads): Don't clear
7274 reg_reloaded_call_part_clobbered here.
7275 (reload_regs_reach_end_p): New function.
7276 (reload_reg_rtx_for_input): New variable.
7277 (reload_reg_rtx_for_output): Likewise.
7278 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
7279 when reassigning a pseudo register. Load reloadreg from
7280 reload_reg_rtx_for_input, moving the mode and register
7281 calculation to...
7282 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
7283 instead of the original when deciding whether an input reload
7284 would be a no-op or whether an output reload can be deleted.
7285 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
7286 when setting up new_spill_reg_store. Load it from
7287 reload_reg_rtx_for_output, moving the mode and register
7288 calculation to...
7289 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
7290 instead of the original when deciding whether an output reload
7291 would be a no-op. Do the same when modifying insn notes.
7292 Use rtx_equal_p instead of == to compare the registers.
7293 (inherit_piecemeal_p): Take a mode and two register numbers
7294 as argument.
7295 (emit_reload_insns): Clear new_spill_reg_store for every hard
7296 register in the reload register. Remove spill registers
7297 from reg_reloaded_valid before considering whether to record
7298 inheritance information for them. Use reload_reg_rtx_for_output
7299 instead of reg_rtx when recording output reloads. Use
7300 reload_reg_rtx_for_input instead of reg_rtx when recording
7301 input reloads. Set or clear reg_reloaded_call_part_clobbered
7302 at the same time as setting reg_reloaded_valid.
7303 (delete_output_reload): Add a new_reload_reg parameter and use it
7304 instead of rld[j].reg_rtx.
7305 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
7306 calls accordingly.
7307
7308 2008-03-25 Tom Tromey <tromey@redhat.com>
7309
7310 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
7311 (build/genattr.o): Likewise.
7312 (build/genattrtab.o): Likewise.
7313 (build/gencodes.o): Likewise.
7314 (build/genconfig.o): Likewise.
7315 (build/genconstants.o): Likewise.
7316 (build/genemit.o): Likewise.
7317 (build/genextract.o): Likewise.
7318 (build/genflags.o): Likewise.
7319
7320 2008-03-25 Bob Wilson <bob.wilson@acm.org>
7321
7322 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
7323 instead of size_int for integer types.
7324 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
7325 to match type of MINUS_EXPR.
7326
7327 2008-03-25 Tom Tromey <tromey@redhat.com>
7328
7329 * configure: Rebuilt.
7330 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
7331 Makefile.
7332
7333 2008-03-25 Tom Tromey <tromey@redhat.com>
7334
7335 * config/x-solaris (host-solaris.o): Update.
7336 * config/x-linux (host-linux.o): Update.
7337 * config/x-hpux (host-hpux.o): Update.
7338 * config/x-darwin (host-darwin.o): Update.
7339 * config/v850/t-v850e (v850-c.o): Update.
7340 * config/v850/t-v850 (v850-c.o): Update.
7341 * config/t-vxworks (vxworks.o): Update.
7342 * config/t-sol2 (sol2-c.o, sol2.o): Update.
7343 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
7344 * config/spu/t-spu-elf (spu-c.o): Update.
7345 (spu.o): Remove.
7346 * config/sh/t-symbian (sh-c.o): Update.
7347 (symbian.o): Update.
7348 * config/sh/t-sh (sh-c.o): Update.
7349 * config/score/t-score-elf (score7.o, score3.o): Update.
7350 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
7351 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
7352 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
7353 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
7354 (rs6000.o): Remove.
7355 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
7356 * config/m32c/t-m32c (m32c-pragma.o): Update.
7357 * config/ia64/t-ia64 (ia64-c.o): Update.
7358 * config/i386/x-mingw32 (host-mingw32.o): Update.
7359 * config/i386/x-i386 (driver-i386.o): Update.
7360 * config/i386/x-darwin (host-i386-darwin.o): Update.
7361 * config/i386/x-cygwin (host-cygwin.o): Update.
7362 * config/i386/t-nwld (nwld.o): Update.
7363 * config/i386/t-netware (netware.o): Update.
7364 * config/i386/t-interix (winnt.o): Update.
7365 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
7366 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
7367 msformat-c.o): Update.
7368 * config/bfin/t-bfin-linux (generated_files): Add
7369 linux-sysroot-suffix.h.
7370 * config/arm/t-wince-pe (pe.o): Update.
7371 * config/arm/t-strongarm-pe (pe.o): Update.
7372 * config/arm/t-pe (pe.o): Update.
7373 * config/arm/t-arm (arm-c.o): Update.
7374 * doc/install.texi (Prerequisites): Require make 3.80.
7375 * Makefile.in: Remove .o targets.
7376 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
7377 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
7378 (simple_generated_h, simple_generated_c): Move earlier.
7379 (generated_files): New variable.
7380 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
7381 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
7382 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
7383 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
7384 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
7385 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
7386 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
7387 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
7388 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
7389 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
7390 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
7391 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
7392 (.c.o): Remove.
7393 (COMPILE.base, COMPILE): New variables.
7394 (%.o): New pattern rule.
7395 (ALL_HOST_OBJS): New variable.
7396 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
7397 (dummy-checksum.o, cc1-checksum.o): Remove.
7398 (DRIVER_SHLIB): New variable.
7399 (DRIVER_DEFINES): Use it.
7400 (gencondmd.c): Move out of build/.
7401 (s-conditions): Update.
7402 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
7403 (ALL_BUILD_OBJS): Likewise.
7404 (build/%.o): Use BUILDCOMPILE.
7405 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
7406 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
7407 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
7408 build/gencheck.o, build/gencodes.o, build/genconditions.o,
7409 build/genconfig.o, build/genconstants.o, build/genemit.o,
7410 build/genextract.o, build/genflags.o, build/genmddeps.o,
7411 build/genopinit.o, build/genoutput.o, build/genpeep.o,
7412 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
7413 build/gen-protos.o, build/scan.o, build/fix-header.o,
7414 build/scan-decls.o): Simplify.
7415 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
7416 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
7417 prefix.o, toplev.o): Reduce to variable setting.
7418 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
7419 ($(out_object_file), gcc-options.o): New targets.
7420 ($(ALL_HOST_OBJS)): New target. Include dependency files.
7421 * configure: Rebuilt.
7422 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
7423 * doc/sourcebuild.texi (Front End Directory): Document new variable.
7424
7425 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
7426
7427 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
7428 complain when we hit an error, return ERROR_MARK_NODE.
7429
7430 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7431
7432 * config/sh/constraints.md (Pso, Psz): New constraints.
7433 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
7434 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
7435
7436 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7437
7438 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
7439 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
7440
7441 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
7442
7443 * config/sh/sh.md (prefetch): Add condition for SH2A target.
7444 (prefetch_sh2a): New.
7445
7446 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
7447 Naveen.H.S <naveen.hs@kpitcummins.com>
7448
7449 * config/sh/constraints.md (I28): New constraint.
7450 * config/sh/sh.c (broken_move): Add support for movi20s.
7451 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
7452
7453 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
7454 Jayant Sonar <Jayant.sonar@kpitcummins.com>
7455 Naveen.H.S <naveen.hs@kpitcummins.com>
7456
7457 * config/sh/sh.c (SH_ATTRIBUTES): Define.
7458 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
7459 (print_operand): Handle resbank in %@ operand code.
7460 (sh_encode_section_info): New.
7461 (push_regs): Add conditions for resbank.
7462 (sh_expand_epilogue): Likewise.
7463 (sh_insert_attributes): Likewise.
7464 (sh_attribute_table): Likewise.
7465 (sh_handle_resbank_handler_attribute): New.
7466 (sh2a_handle_function_vector_handler_attribute): New.
7467 (sh2a_is_function_vector_call): New.
7468 (sh2a_get_function_vector_number): New.
7469 (sh2a_function_vector_p): New.
7470 (sh_cfun_resbank_handler_p): New.
7471 * config/sh/sh.md (calli): Emit jsr/n if possible.
7472 (calli_tbr_rel): New.
7473 (calli_pcrel): Emit jsr/n if possible.
7474 (return_i): Emit rts/n if possible.
7475 (call_valuei_tbr_rel): New.
7476 (call_valuei_pcrel): Add condition for SH2A target.
7477 (call_value): Likewise.
7478 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
7479 (sh2a_get_function_vector_number): Likewise.
7480 (sh2a_is_function_vector_call): Likewise.
7481 * doc/extend.texi: Document TBR relative addressing of SH2A.
7482 (resbank): Add description for SH2A.
7483
7484 2008-03-24 Richard Guenther <rguenther@suse.de>
7485
7486 PR c/22371
7487 * gimplify.c (gimplify_modify_expr): For frontend type-correct
7488 pointer assignments change conversions according to middle-end rules.
7489 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
7490 * configure.ac: Include type checking in yes.
7491 * configure: Regenerate.
7492
7493 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7494
7495 * diagnostic.c (diagnostic_count_diagnostic): Delete.
7496 (diagnostic_report_diagnostic): Update. Handle ICEs here.
7497
7498 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
7499
7500 * gthr-vxworks.h (UNUSED): Define.
7501
7502 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
7503
7504 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
7505
7506 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
7507
7508 * doc/extend.texi (Function Attributes): Add missing comma in the
7509 example of the "alloc_size" attribute.
7510
7511 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
7512
7513 Revert:
7514 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
7515
7516 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
7517 32bit host.
7518
7519 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
7520
7521 PR target/35496
7522 * stor-layout.c (update_alignment_for_field): Set minimum alignment
7523 of the underlying type of a MS bitfield layout to the natural
7524 alignment of the type.
7525
7526 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
7527
7528 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7529 to their natural alignment to avoid store forwarding stalls.
7530
7531 2008-03-22 Richard Guenther <rguenther@suse.de>
7532
7533 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
7534 For PHI nodes verify the address is invariant.
7535 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
7536 (get_symbol_constant_value): Use is_gimple_min_invariant.
7537 (maybe_fold_stmt_indirect): Likewise.
7538
7539 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
7540
7541 PR rtl-optimization/33927
7542 * Makefile.in (dse.o): Depend on $(TM_P_H).
7543 * expr.h (extract_low_bits): Declare.
7544 * expmed.c (extract_low_bits): New function.
7545 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
7546 * dse.c: Include tm_p.h.
7547 (find_shift_sequence): Remove the read_reg argument and return the
7548 read value. Emit the instructions instead of returning them.
7549 Iterate on new_mode rather than calculating it each time.
7550 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
7551 source to NEW_MODE and extract_low_bits to convert the shifted
7552 value to READ_MODE.
7553 (replace_read): Allow the load and store to have different mode
7554 classes. Use extract_low_bits when SHIFT == 0. Create the shift
7555 or extraction instructions before trying the replacement. Update
7556 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
7557
7558 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
7559
7560 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
7561 to their natural alignment to avoid store forwarding stalls.
7562
7563 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
7564
7565 PR target/27946
7566 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
7567 encouraging but not allowing gprs for input;
7568 change the input constraint to !f#r.
7569 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
7570 gprs for output;
7571 change the output constraint to !f#r.
7572
7573 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
7574
7575 PR target/13958
7576 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
7577 corresponding post-reload splitters.
7578 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
7579 when x87 FP math is selected.
7580 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
7581 New function prototype.
7582 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
7583 unreachable function to ease macroization of insn patterns.
7584
7585 2008-03-21 Martin Jambor <mjambor@suse.cz>
7586
7587 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
7588 reference dumps if ddr is NULL or dependence is unknown.
7589
7590 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
7591
7592 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
7593 unsigned extension into account.
7594 (ATOMIC_COMPARE_AND_SWAP): Likewise.
7595 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
7596 Do computations on a scratch register.
7597
7598 2008-03-21 Richard Guenther <rguenther@suse.de>
7599
7600 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7601 Use is_gimple_min_invariant instead of TREE_INVARIANT.
7602 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
7603 * tree-ssa-dom.c (record_equality): Likewise.
7604 * tree-inline.c (copy_body_r): Likewise.
7605 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
7606 TREE_INVARIANT.
7607
7608 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
7609
7610 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
7611 as 'delete_unused' argument.
7612
7613 2008-03-20 Richard Guenther <rguenther@suse.de>
7614
7615 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
7616 special casing of constant qualifiers.
7617 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
7618 care about them in general.
7619 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
7620 regardless of their type.
7621 (fold_stmt_r): Forcefully fold *& if we end up with that.
7622
7623 2008-03-20 Paul Brook <paul@codesourcery.com>
7624
7625 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
7626 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
7627 linker flags.
7628 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
7629 definition.
7630 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
7631 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
7632
7633 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
7634
7635 * common.opt (Wmudflap): New option.
7636 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
7637 (mx_register_decls): Likewise.
7638 (mudflap_finish_file): Likewise.
7639 * doc/invoke.texi: Document -Wno-mudflap.
7640
7641 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
7642
7643 * c-format.c (replace_format_name_to_system_name): New.
7644 (cmp_attribs): New.
7645 (convert_format_name_to_system_name): New.
7646 (decode_format_attr): Add use of convert_format_name_to_system_name.
7647 (format_types_orig): Add gnu_ prefix to names.
7648 (check_format_info_main): Special treating of \0 escaped names for
7649 supporting multi-character format specifiers as I32, I64.
7650 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
7651 (gnu_target_overrides_format_attributes): New.
7652 * c-format.h: Add structure target_ovr_attr to hold
7653 system specific formatter names.
7654 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
7655 msformat-c.o file to c_target_objs and cxx_target_objs.
7656 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7657 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
7658 (TARGET_N_FORMAT_TYPES): New.
7659 * config/i386/msformat-c.c: New.
7660 * config/i386/t-cygming: Add build rule for msformat-c.o.
7661 * doc/extend.texi: Add new format names gnu_* and ms_* and
7662 further details.
7663 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
7664
7665 2008-03-20 Ira Rosen <irar@il.ibm.com>
7666
7667 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
7668 optimizations turned on under -O3.
7669 (ftree-vectorize): Add that the flag is turned on with -O3.
7670
7671 2008-03-20 Ben Elliston <bje@au.ibm.com>
7672
7673 * regmove.c (try_auto_increment): Fix spelling error in comment.
7674 * final.c (final_scan_insn): Likewise.
7675
7676 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
7677
7678 PR target/14552
7679 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
7680 allocator preferences for "y" and "r" class registers.
7681 ("*mov<mode>_internal"): Ditto.
7682 ("*movv2sf_internal_rex64"): Ditto.
7683 ("*movv2sf_internal"): Ditto.
7684
7685 2008-03-19 Michael Matz <matz@suse.de>
7686
7687 PR middle-end/35616
7688 * calls.c (expand_call): Check overlap of arguments with call
7689 address for sibcalls.
7690
7691 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
7692
7693 PR target/35496
7694 * stor-layout.c (update_alignment_for_field): Set minimum alignment
7695 of the underlying type of a MS bitfield layout to the natural
7696 alignment of the type.
7697
7698 2008-03-19 Jan Hubicka <jh@suse.cz>
7699
7700 PR other/35094
7701 * toplev.c (decode_d_option): Handle all CPP flags.
7702 * tree-vrp.c: Update tree_pass descriptors.
7703 * regrename.c: Update tree_pass descriptors.
7704 * fwprop.c: Update tree_pass descriptors.
7705 * doc/invoke.texi: Remove documentation of dropped -d? flags.
7706 * tree-into-ssa.c: Update tree_pass descriptors.
7707 * tree-dump.c: Update tree_pass descriptors.
7708 * tree-complex.c: Update tree_pass descriptors.
7709 * tree-dump.h: Update tree_pass descriptors.
7710 * see.c: Update tree_pass descriptors.
7711 * cgraphbuild.c: Update tree_pass descriptors.
7712 * tracer.c: Update tree_pass descriptors.
7713 * tree-loop-distribution.c: Update tree_pass descriptors.
7714 * cgraph.c: Update tree_pass descriptors.
7715 * postreload-gcse.c: Update tree_pass descriptors.
7716 * postreload.c: Update tree_pass descriptors.
7717 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
7718 * tree-tailcall.c: Update tree_pass descriptors.
7719 * tree-pass.h (tree_opt_pass): Rename to ...
7720 (opt_pass) ... this one; add "type" field and remove letter field.
7721 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
7722 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
7723 all_lowering_passes): Update declaration.
7724 * ipa-cp.c: Update tree_pass descriptors.
7725 * final.c: Update tree_pass descriptors.
7726 * omp-low.c: Update tree_pass descriptors.
7727 * tree-ssa-dse.c: Update tree_pass descriptors.
7728 * ipa-reference.c: Update tree_pass descriptors.
7729 * tree-ssa-uncprop.c: Update tree_pass descriptors.
7730 * auto-inc-dec.c: Update tree_pass descriptors.
7731 * reorg.c: Update tree_pass descriptors.
7732 * cgraphunit.c: Update tree_pass descriptors.
7733 * tree-ssa-copyrename.c: Update tree_pass descriptors.
7734 * tree-ssa-ccp.c: Update tree_pass descriptors.
7735 * df-core.c: Update tree_pass descriptors.
7736 * mode-switching.c: Update tree_pass descriptors.
7737 * tree-nomudflap.c: Update tree_pass descriptors.
7738 * modulo-sched.c: Update tree_pass descriptors.
7739 * ipa-pure-const.c: Update tree_pass descriptors.
7740 * cse.c: Update tree_pass descriptors.
7741 * web.c: Update tree_pass descriptors.
7742 * tree-stdarg.c: Update tree_pass descriptors.
7743 * tree-ssa-math-opts.c: Update tree_pass descriptors.
7744 * tree-ssa-dom.c: Update tree_pass descriptors.
7745 * tree-nrv.c: Update tree_pass descriptors.
7746 * tree-ssa-alias.c: Update tree_pass descriptors.
7747 * loop-init.c: Update tree_pass descriptors.
7748 * gimple-low.c: Update tree_pass descriptors.
7749 * ipa-inline.c: Update tree_pass descriptors.
7750 * tree-ssa-sink.c: Update tree_pass descriptors.
7751 * global.c: Update tree_pass descriptors.
7752 * ifcvt.c: Update tree_pass descriptors.
7753 * jump.c: Update tree_pass descriptors.
7754 * predict.c: Update tree_pass descriptors.
7755 * tree-ssa-loop.c: Update tree_pass descriptors.
7756 * recog.c: Update tree_pass descriptors.
7757 * dse.c: Update tree_pass descriptors.
7758 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
7759 * tree-eh.c: Update tree_pass descriptors.
7760 * regmove.c: Update tree_pass descriptors.
7761 * local-alloc.c
7762 * function.c: Update tree_pass descriptors.
7763 * tree-vectorizer.c: Update tree_pass descriptors.
7764 * gcse.c: Update tree_pass descriptors.
7765 * ipa-type-escape.c: Update tree_pass descriptors.
7766 * tree-if-conv.c: Update tree_pass descriptors.
7767 * init-regs.c: Update tree_pass descriptors.
7768 * ipa.c: Update tree_pass descriptors.
7769 * tree-ssa-phiopt.c: Update tree_pass descriptors.
7770 * rtl-factoring.c: Update tree_pass descriptors.
7771 * lower-subreg.c: Update tree_pass descriptors.
7772 * bt-load.c: Update tree_pass descriptors.
7773 * tree-dfa.c: Update tree_pass descriptors.
7774 * except.c: Update tree_pass descriptors.
7775 * emit-rtl.c: Update tree_pass descriptors.
7776 * cfgexpand.c: Update tree_pass descriptors.
7777 * tree-cfgcleanup.c: Update tree_pass descriptors.
7778 * cfgcleanup.c: Update tree_pass descriptors.
7779 * tree-ssa-pre.c: Update tree_pass descriptors.
7780 * tree-sra.c: Update tree_pass descriptors.
7781 * tree-mudflap.c: Update tree_pass descriptors.
7782 * tree-ssa-copy.c: Update tree_pass descriptors.
7783 * cfglayout.c: Update tree_pass descriptors.
7784 * tree-ssa-forwprop.c: Update tree_pass descriptors.
7785 * tree-ssa-dce.c: Update tree_pass descriptors.
7786 * tree-ssa.c: Update tree_pass descriptors.
7787 * regclass.c: Update tree_pass descriptors.
7788 * integrate.c: Update tree_pass descriptors.
7789 * tree-optimize.c: Update tree_pass descriptors.
7790 * tree-ssa-phiprop.c: Update tree_pass descriptors.
7791 * tree-object-size.c: Update tree_pass descriptors.
7792 * combine.c: Update tree_pass descriptors.
7793 * tree-outof-ssa.c: Update tree_pass descriptors.
7794 * bb-reorder.c: Update tree_pass descriptors.
7795 * stack-ptr-mod.c: Update tree_pass descriptors.
7796 * var-tracking.c: Update tree_pass descriptors.
7797 * tree-profile.c: Update tree_pass descriptors.
7798 * tree-vect-generic.c: Update tree_pass descriptors.
7799 * reg-stack.c: Update tree_pass descriptors.
7800 * sched-rgn.c: Update tree_pass descriptors.
7801 * tree-ssa-structalias.c: Update tree_pass descriptors.
7802 * tree-cfg.c: Update tree_pass descriptors.
7803 * passes.c (current_pass): Update declaration.
7804 (finish_optimization_passes): Update.
7805 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
7806 (register_one_dump_file, register_dump_files_1, next_pass_1):
7807 Update arguments.
7808 (init_optimization_passes): Update handling of new types.
7809 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
7810 * ipa-struct-reorg.c: Update tree_pass descriptors.
7811 * tree-ssa-reassoc.c: Update tree_pass descriptors.
7812 * combine-stack-adj.c: Update tree_pass descriptors.
7813 * cfgrtl.c: Update tree_pass descriptors.
7814 * dce.c: Update tree_pass descriptors.
7815 * tree-ssanames.c: Update tree_pass descriptors.
7816
7817 2008-03-19 Richard Guenther <rguenther@suse.de>
7818
7819 PR middle-end/35609
7820 * tree-ssa.c (walk_data): New structure.
7821 (warn_uninitialized_var): If not always_executed warn with "maybe"
7822 instead of "is".
7823 (execute_early_warn_uninitialized): Compute post-dominators.
7824 Initialize always_executed before processing each basic block.
7825
7826 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
7827
7828 PR target/35504
7829 * config/i386/i386.c (x86_this_parameter): Calculate correct location
7830 of "this" pointer when "regparm = N" or "fastcall" is in effect.
7831
7832 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7833
7834 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
7835
7836 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
7837
7838 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
7839 is true.
7840 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
7841 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
7842 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
7843 target after ignore has been set, and move there also the commputation
7844 of subtarget and original_target.
7845 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
7846 (LANG_HOOKS_INITIALIZER): Remove it.
7847 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
7848
7849 2008-03-18 Richard Guenther <rguenther@suse.de>
7850
7851 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
7852 found an expression with constants, note that in the VN for the lhs.
7853 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
7854 fold them to constants if possible. Run cleanup_cfg if done so.
7855 (execute_pre): Return todo.
7856 (do_pre): Likewise.
7857 (execute_fre): Likewise.
7858 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
7859 of constants.
7860 (get_prop_source_stmt): Look through pointer conversions.
7861
7862 2008-03-18 Jan Hubicka <jh@suse.cz>
7863
7864 * tree-pretty-print.c: Include predict.h.
7865 (dump_generic_node): Dump predictor.
7866 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
7867 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
7868 * gimple-low.c (lower_stmt): Likewise.
7869 * expr.c (expand_expr_real): Likewise.
7870 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
7871 them.
7872 (build_predict_expr, build_predict_expr): New.
7873 * predict.h (predictor_name, build_predict_expr): Update.
7874 * c-typeck.c (c_finish_bc_stmt): Add prediction.
7875 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
7876 * predict.def (PRED_CONTINUE): Update hitrate.
7877 * tree.def (PREDICT_EXPR): Define.
7878 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
7879 do not handle BIND_EXPR.
7880 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
7881 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
7882 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
7883 operands.
7884
7885 2008-03-18 Michael Matz <matz@suse.de>
7886
7887 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
7888
7889 2008-03-18 Richard Guenther <rguenther@suse.de>
7890
7891 * tree-gimple.h (is_gimple_invariant_address): Declare.
7892 (is_gimple_constant): Likewise.
7893 * tree-gimple.c (is_gimple_constant): New function.
7894 (is_gimple_invariant_address): Likewise.
7895 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
7896 and is_gimple_invariant_address.
7897 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
7898 previous change.
7899 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
7900 an addressable base.
7901
7902 2008-03-18 Jakub Jelinek <jakub@redhat.com>
7903
7904 PR middle-end/35611
7905 * gimplify.c (gimplify_expr): Gimplify second operand of
7906 OMP_ATOMIC_LOAD.
7907
7908 2008-03-17 Richard Guenther <rguenther@suse.de>
7909
7910 PR tree-optimization/19637
7911 * fold-const.c (fold_unary): Remove restrictions of removing
7912 intermediate pointer-conversions (P2)(P1)P0.
7913 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
7914 conversion to void pointer.
7915 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
7916
7917 2008-03-16 James E. Wilson <wilson@tuliptree.org>
7918
7919 PR debug/31510
7920 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
7921 emulated thread local variables.
7922
7923 2008-03-16 Richard Guenther <rguenther@suse.de>
7924
7925 PR middle-end/35607
7926 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
7927 expand TREE_INVARIANT operations that are not gimple invariant.
7928
7929 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
7930
7931 * doc/extend.texi (Alignment): Say that the ABI controls
7932 the __alignof__ for non-strict-alignment targets rather
7933 than being a recommendation.
7934
7935 2008-03-15 Paul Brook <paul@codesourcery.com>
7936
7937 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
7938 annotations.
7939 (arm_output_fn_unwind): Mark functions that can not be unwound.
7940
7941 2008-03-15 Paul Brook <paul@codesourcery.com>
7942
7943 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
7944 extension instructions.
7945
7946 2008-03-15 Richard Guenther <rguenther@suse.de>
7947
7948 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
7949 and fold constant aggregate refs.
7950 (fold_const_aggregate_ref): Handle string constants
7951 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
7952 (evaluate_stmt): Simplify now that ccp_fold folds constant
7953 aggregate refs.
7954
7955 2008-03-15 Paul Brook <paul@codesourcery.com>
7956
7957 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
7958 (extzv): Use gen_extzv_t2.
7959 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
7960
7961 2008-03-15 Richard Guenther <rguenther@suse.de>
7962
7963 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
7964 (fold_const_aggregate_ref): Likewise.
7965 (get_value): Return NULL if we don't have any values.
7966 (ccp_finalize): Set const_val to NULL after freeing it.
7967 * tree-flow.h (get_symbol_constant_value): Declare.
7968 (fold_const_aggregate_ref): Likewise.
7969 * tree-ssa-sccvn.c (try_to_simplify): Use them.
7970
7971 2008-03-15 Richard Guenther <rguenther@suse.de>
7972
7973 PR middle-end/35593
7974 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
7975 to not produce negative array indices if not allowed. Add
7976 parameter to indicate that.
7977 (maybe_fold_offset_to_component_ref): Allow negative array
7978 indices only for the first member of a structure.
7979 (maybe_fold_offset_to_reference): Allow negative array indices.
7980 (maybe_fold_stmt_addition): Likewise.
7981
7982 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
7983 Anatoly Sokolov <aesok@post.ru>
7984
7985 * config/avr/avr.c (avr_arch_types): Add avr6 entry.
7986 (avr_arch): Add ARCH_AVR6.
7987 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
7988 (initial_elimination_offset): Initialize and use 'avr_pc_size'
7989 instead of fixed value 2.
7990 (print_operand_address): Use gs() asm specifier instead of pm().
7991 (avr_assemble_integer): (Ditto.).
7992 (avr_output_addr_vec_elt): (Ditto.).
7993 (print_operand): Handle "!" code.
7994 * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
7995 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
7996 (AVR_HAVE_EIJMP_EICALL): Define.
7997 (AVR_3_BYTE_PC): Redefine.
7998 (AVR_2_BYTE_PC): (Ditto.).
7999 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
8000 (LINK_SPEC): Add atmega2560 and atmega2561.
8001 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
8002 (crtm2561.o).
8003 * config/avr/avr.md (call_insn): Use eicall instead of icall
8004 for 3 byte PC devices.
8005 (call_value_insn): (Ditto.).
8006 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
8007 (indirect_jump): Use only for for 2 byte PC devices.
8008 (*tablejump): (Ditto.).
8009 (*indirect_jump_avr6): Add insn.
8010 (*tablejump_rjmp): Don't use for 3 byte PC devices.
8011 * config/avr/libgcc.S (__prologue_saves__): Use eijmp
8012 instead of ijmp for 3 byte PC devices.
8013 (__tablejump2__): (Ditto.).
8014 * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
8015 (MULITLIB_DIRNAMES): (Ditto.).
8016 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
8017
8018 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
8019
8020 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
8021 "sse2_umulsidi3". Use V1DI mode for operand 0.
8022 ("mmx_psadbw"): Use V1DI mode for operand 0.
8023 * config/i386/i386-modes.def (V1SI): New vector mode.
8024 * config/i386/i386.c (struct builtin_description)
8025 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
8026 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
8027 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
8028 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
8029 v1di_ftype_v8qi_v8qi type.
8030 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
8031
8032 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
8033 __builtin_ia32_pmuludq]: Fix the mode of return value.
8034
8035 2008-03-15 Richard Guenther <rguenther@suse.de>
8036
8037 PR middle-end/35595
8038 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
8039 being a PHI_NODE.
8040
8041 2008-03-14 Bob Wilson <bob.wilson@acm.org>
8042
8043 * doc/invoke.texi (Option Summary, Xtensa Options): Document
8044 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
8045 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
8046 unless TARGET_SERIALIZE_VOLATILE is enabled.
8047 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
8048 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
8049 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
8050
8051 2008-03-14 Richard Guenther <rguenther@suse.de>
8052
8053 PR tree-optimization/34172
8054 * tree-flow.h (refs_may_alias_p): Declare.
8055 (get_single_def_stmt): Likewise.
8056 (get_single_def_stmt_from_phi): Likewise.
8057 (get_single_def_stmt_with_phi): Likewise.
8058 * tree-dfa.c (refs_may_alias_p): New function.
8059 (get_single_def_stmt): Likewise.
8060 (get_single_def_stmt_from_phi): Likewise.
8061 (get_single_def_stmt_with_phi): Likewise.
8062 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
8063 (vn_reference_lookup_1): New helper function.
8064 (vn_reference_lookup): Walk the virtual use-def chain to
8065 continue searching for a match if the def does not alias the
8066 reference we are looking for.
8067
8068 2008-03-14 David Edelsohn <edelsohn@gnu.org>
8069
8070 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
8071 archive and Perzl. Update The Written Word listing.
8072
8073 2008-03-14 Richard Guenther <rguenther@suse.de>
8074
8075 PR tree-optimization/34043
8076 PR tree-optimization/33989
8077 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
8078 when doing FRE.
8079 (bitmap_find_leader): Use extra argument to verify dominance
8080 relationship inside a basic-block.
8081 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
8082 (find_leader_in_sets): Adjust.
8083 (create_component_ref_by_pieces): Take extra argument for
8084 dominance check, handle lookup failures.
8085 (find_or_generate_expression): Likewise.
8086 (create_expression_by_pieces): Likewise.
8087 (insert_into_preds_of_block): Adjust.
8088 (create_value_expr_from): If asked for, verify all operands
8089 are in the blocks AVAIL_OUT set.
8090 (make_values_for_stmt): Check for SSA_NAMEs that are life
8091 over an abnormal edge.
8092 (compute_avail): Remove such check.
8093 (do_SCCVN_insertion): New function.
8094 (eliminate): If we do not find a leader suitable for replacement
8095 insert a replacement expression from SCCVN if available.
8096 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
8097 (struct vn_ssa_aux): Add needs_insertion flag.
8098 * tree-ssa-sccvn.c (may_insert): New global flag.
8099 (copy_reference_ops_from_ref): Value-number union member access
8100 based on its size, not type and member if insertion is allowed.
8101 (visit_reference_op_load): For a weak match from union type
8102 punning lookup a view-converted value and insert a SSA_NAME
8103 for that value if that is not found.
8104 (visit_use): Make dumps shorter. Do not disallow value numbering
8105 SSA_NAMEs that are life over an abnormal edge to constants.
8106 (free_scc_vn): Release inserted SSA_NAMEs.
8107 (run_scc_vn): New flag to specify whether insertion is allowed.
8108 Process SSA_NAMEs in forward order.
8109 * tree-ssa-loop-im.c (for_each_index): Handle invariant
8110 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
8111 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
8112 pointer type to/from integral types that do not change the
8113 precision to regular conversions.
8114
8115 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
8116
8117 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8118 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8119 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
8120 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
8121 input arguments and the mode of return value. Built-in functions
8122 that operate on whole 64-bit MMX register now use V1DI mode.
8123
8124 2008-03-13 Alon Dayan <alond@il.ibm.com>
8125 Olga Golovanevsky <olga@il.ibm.com>
8126
8127 PR tree-optimization/35041
8128 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
8129 to locate the right position in a statement.
8130
8131 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
8132
8133 PR target/34000
8134 PR target/35553
8135 * config/i386/xmmintrin.h: Change all static inline functions to
8136 extern inline and add __gnu_inline__ attribute.
8137 * config/i386/bmintrin.h: Ditto.
8138 * config/i386/smmintrin.h: Ditto.
8139 * config/i386/tmmintrin.h: Ditto.
8140 * config/i386/mmintrin-common.h: Ditto.
8141 * config/i386/ammintrin.h: Ditto.
8142 * config/i386/emmintrin.h: Ditto.
8143 * config/i386/pmmintrin.h: Ditto.
8144 * config/i386/mmintrin.h: Ditto.
8145 * config/i386/mm3dnow.h: Ditto.
8146
8147 2008-03-13 Jakub Jelinek <jakub@redhat.com>
8148
8149 PR middle-end/35185
8150 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
8151 (lower_omp_2): New function.
8152 (lower_omp_1, lower_omp): Rewritten.
8153
8154 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
8155
8156 PR 35054
8157 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
8158 with the phrase "Microsoft Windows compilers".
8159 (Push/Pop Macro Pragmas): New subsection. Document
8160 #pragma push_macro and pragma pop_macro.
8161
8162 2008-03-12 Paul Brook <paul@codesourcery.com>
8163
8164 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
8165
8166 2008-03-12 Paul Brook <paul@codesourcery.com>
8167
8168 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
8169 (thumb2_alusi3_short): Exclude PLUS and MINUS.
8170 (thumb2_addsi_shortim): Rename ...
8171 (thumb2_addsi_short): ... to this. Allow register operands.
8172 (thumb2_subsi_short): New pattern.
8173 (thumb2_one_cmplsi2_short,
8174 thumb2_negsi2_short): New patterns and peepholes.
8175
8176 2008-03-12 Paul Brook <paul@codesourcery.com>
8177
8178 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
8179
8180 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
8181
8182 * config/i386/i386.md (int_cond): New code iterator.
8183 (fp_cond): Ditto.
8184 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
8185 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
8186 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
8187 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
8188 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
8189 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
8190 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
8191 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
8192
8193 2008-03-12 Paul Brook <paul@codesourcery.com>
8194
8195 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
8196 instead of {arm,thumb}_compute_save_reg_mask.
8197 (output_return_instruction): Ditto.
8198 (thumb_unexpanded_epilogue): Ditto.
8199 (thumb1_expand_prologue): Ditto.
8200 (thumb1_output_function_prologue): Ditto.
8201 (arm_set_return_address): Ditto.
8202 (thumb_set_return_address): Ditto.
8203 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
8204 regs to achieve stack alignment.
8205 (thumb1_compute_save_reg_mask): Fix compiler warning.
8206 (arm_output_epilogue): Use offsets->saved_regs_mask.
8207 Adjust stack pointer by poping call clobered registers.
8208 (arm_expand_prologue): Use offsets->saved_regs_mask.
8209 Adjust stack pointer by pushing extra registers.
8210 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
8211
8212 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
8213
8214 PR tree-opt/35422
8215 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
8216 conversion to the operands of a multiplication.
8217
8218 2008-03-12 Richard Guenther <rguenther@suse.de>
8219
8220 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
8221 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
8222 * timevar.def (TV_TREE_PHIPROP): Add.
8223 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
8224 pass description. Use TV_TREE_PHIPROP.
8225 * tree-ssa-forwprop.c: Remove phiprop code.
8226
8227 2008-03-12 Jakub Jelinek <jakub@redhat.com>
8228
8229 PR middle-end/35549
8230 * omp-low.c (maybe_lookup_decl): Constify first argument.
8231 (use_pointer_for_field): Change last argument from bool to
8232 omp_context *. Disallow shared copy-in/out in nested
8233 parallel if decl is shared in outer parallel too.
8234 (build_outer_var_ref, scan_sharing_clauses,
8235 lower_rec_input_clauses, lower_copyprivate_clauses,
8236 lower_send_clauses, lower_send_shared_vars): Adjust callers.
8237
8238 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
8239 Ira Rosen <irar@il.ibm.com>
8240
8241 * tree-vectorizer.c (free_stmt_vec_info): New function.
8242 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
8243 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
8244 * tree-vectorizer.h (free_stmt_vec_info): Declare.
8245 * tree-vect-transform.c (vectorizable_conversion): Free
8246 vec_oprnds0 if it was allocated.
8247 (vect_permute_store_chain): Remove unused VECs.
8248 (vectorizable_store): Free VECs that are allocated in the..
8249 function.
8250 (vect_transform_strided_load, vectorizable_load): Likewise.
8251 (vect_remove_stores): Simplify the code.
8252 (vect_transform_loop): Move code to vect_remove_stores().
8253 Call vect_remove_stores() and free_stmt_vec_info().
8254
8255 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8256
8257 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
8258 TARGET_HPUX. Revise comment.
8259 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
8260 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
8261 Use sr4 variant of `be' instruction when not generating PIC code.
8262 (attr_length_call): Adjust for above change.
8263
8264 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
8265
8266 * ipa-reference.c (static_execute): Remove module_statics_const and
8267 associated setting code.
8268
8269 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
8270
8271 PR target/35540
8272 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
8273 predicate for operand 1.
8274 (paritysi2_cmp): Use register_operand predicate for operand 2.
8275 Use earlyclobber modifier for operand 1. Remove support for
8276 memory operands.
8277 (paritydi2_cmp): Use register_operand predicate for operand 3.
8278 Use earlyclobber modifier for operand 1. Remove support for
8279 memory operands.
8280
8281 2008-03-11 Paul Brook <paul@codesourcery.com>
8282 Vladimir Prus <vladimir@codesourcery.com>
8283
8284 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
8285 (arm_compute_save_reg0_reg12_mask): Always
8286 check if register 11 must be saved. Always safe hard frame pointer
8287 when frame_pointer_needeed.
8288 (arm_compute_save_reg_mask): Save IP and PC
8289 only with apcs frames.
8290 (arm_output_epilogue): Adjust Thumb2 codepath to
8291 be also invoked and work for ARM non-apcs frames.
8292 (arm_expand_prologue): Don't bother saving IP
8293 for non-apcs frame, since it's not clobbered by
8294 prologue code. Implement non-apcs frame
8295 layout.
8296
8297 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
8298
8299 PR rtl-optimization/35281
8300 * expr.c (convert_move): Use a new pseudo for the intermediate
8301 from_mode->word_mode result.
8302
8303 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
8304
8305 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
8306 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
8307 * toplev.c (compile_file): Don't call it.
8308
8309 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
8310
8311 PR middle-end/35526
8312 * expr.c (store_expr): Call emit_block_move if the mode
8313 of "temp" RTX is BLKmode.
8314
8315 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
8316 Richard Guenther <rguenther@suse.de>
8317
8318 PR tree-optimization/31358
8319 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
8320 the step with a NULL_TREE.
8321 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
8322 to sizetype if type is a pointer type.
8323 (add_candidate_1): Don't convert the base and step to
8324 the generic type if the orginal type is a pointer type.
8325 (add_iv_value_candidates): Use sizetype for the step
8326 if type is a pointer type.
8327 (cand_value_at): Likewise.
8328 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
8329 for pointer types.
8330 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
8331 Don't convert the tem affine to the type.
8332 (add_elt_to_tree): Use sizetype for the step if a pointer.
8333 Use POINTER_PLUS_EXPR for pointers.
8334 (aff_combination_to_tree): Use sizetype for the step if a
8335 pointer.
8336
8337 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
8338
8339 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
8340 Remove commutativity hint.
8341
8342 2008-03-10 Jakub Jelinek <jakub@redhat.com>
8343
8344 PR c/35438
8345 PR c/35439
8346 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
8347 errorneous type. Check that v is a VAR_DECL.
8348
8349 PR middle-end/35099
8350 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
8351
8352 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
8353
8354 PR tree-optimization/35494
8355 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
8356 may be overriden at link and run time.
8357
8358 2008-03-10 Richard Guenther <rguenther@suse.de>
8359
8360 PR tree-optimization/34677
8361 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
8362 (poolify_tree): Likewise.
8363 (modify_expr_template): Likewise.
8364 (poolify_modify_stmt): Likewise.
8365 (insert_fake_stores): Handle all component-ref style stores
8366 in addition to INDIRECT_REF. Also handle complex types.
8367 Do not poolify the inserted load.
8368 (realify_fake_stores): Do not rebuild the tree but only
8369 make it a SSA_NAME copy.
8370 (init_pre): Remove initialzation of modify_expr_template.
8371 Do not allocate modify_expr_node_pool.
8372 (fini_pre): Do not free modify_expr_node_pool.
8373
8374 2008-03-10 Paul Brook <paul@codesourcery.com>
8375
8376 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
8377 to avoid conflicts.
8378
8379 2008-03-10 Paul Brook <paul@codesourcery.com>
8380 Mark Shinwell <shinwell@codesourcery.com>
8381
8382 * config/arm/cortex-r4.md: New.
8383 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
8384 insn attributes.
8385 * config/arm/arm.md: Include cortex-r4.md.
8386 (insn): Add smmls, sdiv and udiv values.
8387 (generic_sched): Don't use generic scheduling for Cortex-R4.
8388 (arm_issue_rate): New function.
8389 (TARGET_SCHED_ISSUE_RATE): Define.
8390
8391 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
8392
8393 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
8394
8395 2008-03-10 Richard Guenther <rguenther@suse.de>
8396
8397 * tree-ssa-pre.c (get_sccvn_value): Simplify.
8398 (compute_avail): Do not add stmt uses to AVAIL_OUT.
8399
8400 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
8401
8402 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
8403 Set default to true.
8404
8405 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8406
8407 * c.opt (Wsynth): Deprecate.
8408 * doc/invoke.texi (Option Summary, Warning Options): Document
8409 -Wno-format-contains-nul.
8410
8411 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
8412
8413 PR target/35496
8414 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
8415 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
8416
8417 2008-03-09 Ira Rosen <irar@il.ibm.com>
8418
8419 * config/rs6000/rs6000.c (builtin_description): Rename vector
8420 left shift operations.
8421 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
8422 (altivec_vsl<VI_char>): Rename to ...
8423 (ashl<mode>3): ... new name.
8424 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
8425 gen_ashlv4si3.
8426 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
8427
8428 2008-03-08 Richard Guenther <rguenther@suse.de>
8429
8430 * coverage.h (tree_coverage_counter_addr): Declare.
8431 * coverage.c (tree_coverage_counter_addr): New function.
8432 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
8433 before using again.
8434 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
8435 (tree_gen_one_value_profiler): Likewise.
8436 (tree_gen_ic_profiler): Likewise.
8437 (tree_gen_average_profiler): Likewise.
8438 (tree_gen_ior_profiler): Likewise.
8439
8440 2008-03-08 Richard Guenther <rguenther@suse.de>
8441
8442 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
8443 (vn_binary_op_insert): Likewise.
8444 (vn_unary_op_lookup): Likewise.
8445 (vn_unary_op_insert): Likewise.
8446 (vn_nary_op_lookup): Declare.
8447 (vn_nary_op_insert): Likewise.
8448 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
8449 and binary hashes, use a single obstack for unary_op_pool
8450 and binary_op_pool.
8451 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
8452 a single struct vn_nary_op_s. Store tree code length and
8453 a variable number of operands.
8454 (struct vn_reference_op_struct): Remove unused op2.
8455 (vn_reference_op_eq): Do not compare op2.
8456 (vn_reference_op_compute_hash): Do not compute hash of op2.
8457 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
8458 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
8459 with vn_nary_op_compute_hash.
8460 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
8461 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
8462 vn_nary_op_lookup.
8463 (vn_unary_op_insert, vn_binary_op_insert): Replace with
8464 vn_nary_op_insert.
8465 (visit_unary_op): Call nary functions.
8466 (visit_binary_op): Likewise.
8467 (process_scc): Adjust for struct vn_tables_s changes.
8468 (allocate_vn_table): Likewise.
8469 (free_vn_table): Likewise.
8470 * tree-vn.c (vn_add): Call nary functions.
8471 (vn_lookup): Likewise.
8472
8473 2008-03-08 Jakub Jelinek <jakub@redhat.com>
8474
8475 PR target/35498
8476 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
8477 wdst back after sync_compare_and_swapqhi_internal.
8478
8479 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
8480
8481 PR target/22152
8482 * config/i386/i386-modes.def (V1DI): New vector mode.
8483 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
8484 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
8485 (MMXMODE248): Ditto.
8486 (MMXMODE): Add V1DI mode.
8487 (mmxvecsize): Change DI mode to V1DI mode.
8488 ("mov<mode>): Use MMXMODEI8 mode iterator.
8489 ("*mov<mode>_internal_rex64"): Ditto.
8490 ("*mov<mode>_internal"): Ditto.
8491 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
8492 ("mmx_sub<mode>3"): Ditto.
8493 ("mmx_adddi3"): Remove insn pattern.
8494 ("mmx_subdi3"): Ditto.
8495 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
8496 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
8497 ("mmx_ashl<mode>3"): Ditto.
8498 ("mmx_lshrdi3"): Remove insn pattern.
8499 ("mmx_ashldi3"): Ditto.
8500 * config/i386/i386.c (classify_argument): Handle V1DImode.
8501 (function_arg_advance_32): Ditto.
8502 (function_arg_32): Ditto.
8503 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
8504 mmx_addv1di3 insn pattern.
8505 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
8506 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
8507 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
8508 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
8509 Remove definitions of built-in functions.
8510 (V1DI_type_node): New node.
8511 (v1di_ftype_v1di_int): Ditto.
8512 (v1di_ftype_v1di_v1di): Ditto.
8513 (v2si_ftype_v2si_si): Ditto.
8514 (v4hi_ftype_v4hi_di): Remove node.
8515 (v2si_ftype_v2si_di): Ditto.
8516 (ix86_init_mmx_sse_builtins): Handle V1DImode.
8517 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
8518 Redefine builtins using def_builtin_const with *_ftype_*_int node.
8519 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
8520 Add new builtins using def_builtin_const.
8521 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
8522 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
8523 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
8524 * config/i386/mmintrin.h (__v1di): New typedef.
8525 (_mm_add_si64): Cast arguments to __v1di type.
8526 (_mm_sub_si64): Ditto.
8527 (_mm_sll_pi16): Cast __count to __v4hi type.
8528 (_mm_sll_pi32): Cast __count to __v2si type.
8529 (_mm_sll_si64): Cast arguments to __v1di type.
8530 (_mm_srl_pi16): Cast __count to __v4hi type.
8531 (_mm_srl_pi32): Cast __count to __v2si type.
8532 (_mm_srl_si64): Cast arguments to __v1di type.
8533 (_mm_sra_pi16): Cast __count to __v4hi type.
8534 (_mm_sra_pi32): Cast __count to __v2si type.
8535 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
8536 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
8537 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
8538 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
8539 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
8540 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
8541 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
8542 (_mm_srai_pi32): Use __builtin_ia32_psradi.
8543 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
8544 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
8545 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
8546 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
8547
8548 2008-03-07 Joseph Myers <joseph@codesourcery.com>
8549
8550 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
8551
8552 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
8553
8554 PR target/35373
8555 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
8556 reg+const addressing for Altivec modes. Don't generate reg+reg
8557 addressing for TFmode or TDmode quantities.
8558
8559 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
8560
8561 * c-common.c (vector_types_convertible_p): Call langhook
8562 instead of comptypes.
8563
8564 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
8565
8566 PR tree-opt/35402
8567 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
8568 integral and scalar float variables which have a
8569 NULL DECL_INITIAL.
8570
8571 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
8572
8573 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
8574 dwarf_register_span hook when emitting unwind information for
8575 register-to-memory saves.
8576 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
8577 (rs6000_frame_related): Remove call to spe_synthesize_frame.
8578
8579 2008-03-06 Jakub Jelinek <jakub@redhat.com>
8580
8581 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
8582 for the same VAR_DECL.
8583
8584 2008-03-06 Tom Tromey <tromey@redhat.com>
8585
8586 * treelang: Delete.
8587 * doc/standards.texi (Standards): Don't mention treelang.
8588 * doc/invoke.texi (Overall Options): Don't mention treelang.
8589 * doc/install.texi (Prerequisites): Don't mention bison or
8590 treelang.
8591 (Configuration): Don't mention treelang.
8592 (Building): Likewise.
8593 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
8594
8595 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
8596
8597 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
8598 word-extractions out of a multi-word object.
8599
8600 2008-03-06 Richard Guenther <rguenther@suse.de>
8601
8602 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
8603 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
8604 result type and precision.
8605 * expr.c (get_inner_reference): Set unsignedp based on the result
8606 type of BIT_FIELD_REF.
8607 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
8608 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
8609 (try_instantiate_multiple_fields): Likewise. Use the correct type
8610 for BIT_FIELD_REF.
8611 (sra_build_assignment): Likewise.
8612 (sra_build_elt_assignment): Likewise.
8613 (sra_explode_bitfield_assignment): Likewise.
8614 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
8615 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
8616 set BIT_FIELD_REF_UNSIGNED.
8617 (vectorizable_load): Likewise.
8618
8619 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
8620
8621 * cse.c (cse_extended_basic_block): Invalidate artificial defs
8622 at bb start.
8623
8624 2008-03-06 Richard Guenther <rguenther@suse.de>
8625
8626 * alias.c (struct alias_set_entry): Move has_zero_child field
8627 to pack with alias_set.
8628
8629 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
8630
8631 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
8632 32bit host.
8633
8634 2008-03-05 Ian Lance Taylor <iant@google.com>
8635
8636 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
8637
8638 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
8639
8640 * fwprop.c (update_df): Support width and offset parameters of
8641 df_ref_create.
8642 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
8643 global_conflicts): Change DF_REF_EXTRACT to either
8644 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
8645 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8646 * df-scan.c (df_ref_record, df_defs_record,
8647 df_ref_create_structure, df_def_record_1, df_uses_record,
8648 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
8649 df_bb_refs_collect, df_entry_block_defs_collect,
8650 df_exit_block_uses_collect): Support new width and offset fields.
8651 (ref_extract_pool): New storage pool.
8652 (df_free_ref): New function.
8653 (df_reg_chain_unlink, df_free_collection_rec,
8654 df_sort_and_compress_refs): Call df_free_ref.
8655 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
8656 of df_ref_extract.
8657 (df_ref_create_structure): Allocate df_ref_extract if offset and
8658 width fields are used.
8659 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
8660 (df_uses_record): Get offset and width from ZERO_EXTRACT
8661 and SIGN_EXTRACT.
8662 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
8663 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
8664 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8665 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
8666 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
8667 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
8668 (df_ref_extract): New structure.
8669 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
8670 (df_ref_create): Add width and offset parameters.
8671
8672 2008-03-05 Richard Guenther <rguenther@suse.de>
8673
8674 * tree-ssa-structalias.c (get_constraint_for_component_ref):
8675 Use ranges_overlap_p.
8676 (offset_overlaps_with_access): Rename
8677 to ranges_overlap_p and move ...
8678 * tree-flow-inline.h (ranges_overlap_p): ... here.
8679
8680 * tree.h (get_inner_reference, handled_component_p): Update
8681 comments.
8682
8683 * tree.h (record_component_aliases, get_alias_set,
8684 alias_sets_conflict_p, alias_sets_must_conflict_p,
8685 objects_must_conflict_p): Move declarations ...
8686 * alias.h (record_component_aliases, get_alias_set,
8687 alias_sets_conflict_p, alias_sets_must_conflict_p,
8688 objects_must_conflict_p): ... here.
8689 Include coretypes.h.
8690 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
8691
8692 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
8693
8694 * cfg.c: Include tree-flow.h.
8695 (remove_edge_raw): Call redirect_edge_var_map_clear.
8696 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
8697 * tree-flow-inline.h (redirect_edge_var_map_def): New.
8698 (redirect_edge_var_map_result): New.
8699 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
8700 PENDING_STMT use with redirect_edge_var_map_*.
8701 * tree-ssa.c (edge_var_maps): New definition.
8702 (redirect_edge_var_map_add): New.
8703 (redirect_edge_var_map_clear): New.
8704 (redirect_edge_var_map_dup): New.
8705 (redirect_edge_var_map_vector): New.
8706 (redirect_edge_var_map_destroy): New.
8707 (ssa_redirect_edge): Replace PENDING_STMT use with
8708 redirect_edge_var_map_*.
8709 (flush_pending_stmts): Same.
8710 (delete_tree_ssa): Destroy edge var map.
8711 * tree-flow.h (struct _edge_var_map): New.
8712 Define edge_var_map vector type.
8713 Declare redirect_edge_var_map_* prototypes.
8714 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
8715 * tree-cfg.c (reinstall_phi_args): Replace
8716 PENDING_STMT use with redirect_edge_var_map_*.
8717
8718 2008-03-05 Richard Guenther <rguenther@suse.de>
8719
8720 PR tree-optimization/35472
8721 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
8722 whose single use_stmt has a overlapping set of loaded and
8723 stored symbols as that use_stmt might be a noop assignment then.
8724
8725 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
8726
8727 * gthr-rtems.h: Implement __gthread_mutex_destroy.
8728
8729 2008-03-05 Richard Guenther <rguenther@suse.de>
8730
8731 PR c++/35336
8732 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
8733 should be constants.
8734 * tree-cfg.c (verify_expr): Verify it.
8735 * fold-const.c (fold_truthop): Remove code generating
8736 BIT_FIELD_REFs of structure bases.
8737 (fold_binary): Likewise.
8738 (fold_ternary): Position and size of BIT_FIELD_REFs are
8739 always host integers.
8740 (make_bit_field_ref): Remove.
8741 (optimize_bit_field_compare): Remove.
8742 (all_ones_mask_p): Remove.
8743
8744 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
8745
8746 PR gcc/33009
8747 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
8748 (split_block_and_df_analyze): New. Split basic block and rebuild
8749 dataflow.
8750 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
8751 SPLIT_BLOCK.
8752 (split_pattern_seq): Likewise.
8753 (erase_matching_seqs): Likewise.
8754 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
8755
8756 2008-03-04 Geoff Keating <geoffk@apple.com>
8757
8758 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
8759 declaration and code.
8760 (tree_invalid_nonnegative_warnv_p): Likewise.
8761
8762 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
8763
8764 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
8765 examples. Truncate option-names then causing overfull hbox.
8766
8767 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8768
8769 PR target/35222
8770 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
8771 on hpux10.
8772 * configure: Rebuilt.
8773
8774 2008-03-04 Rafael Espindola <espindola@google.com>
8775
8776 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
8777 (tree_unary_nonnegative_warnv_p): New.
8778 (tree_binary_nonnegative_warnv_p): New.
8779 (tree_single_nonnegative_warnv_p): New.
8780 (tree_invalid_nonnegative_warnv_p): New.
8781 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
8782
8783 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8784
8785 PR 28322
8786 * opts.c (handle_option): Postpone 'unknown option' errors only for
8787 warning options.
8788
8789 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
8790
8791 PR target/35453
8792 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
8793 (_SIDD_XXX): This.
8794
8795 2008-03-04 Rafael Espindola <espindola@google.com>
8796
8797 * fold-const.c (tree_unary_nonzero_warnv_p): New.
8798 (tree_binary_nonzero_warnv_p): New.
8799 (tree_single_nonzero_warnv_p): New.
8800 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
8801
8802 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
8803
8804 PR middle-end/35456
8805 * fold-const.c (fold_cond_expr_with_comparison): Prevent
8806 transformations for modes that have signed zeros.
8807 * ifcvt.c (noce_try_abs): Ditto.
8808
8809 2008-03-04 Joseph Myers <joseph@codesourcery.com>
8810
8811 * config/i386/i386.c (override_options): Force
8812 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
8813
8814 2008-03-04 Jan Hubicka <jh@suse.cz>
8815
8816 PR c++/35262
8817 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
8818 in last commit.
8819
8820 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
8821
8822 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
8823 label to probe the stack.
8824
8825 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
8826
8827 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
8828 (__gthr_win32_mutex_destroy): Declare.
8829 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
8830 __gthr_win32_mutex_destroy.
8831 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
8832
8833 2008-03-03 Jan Hubicka <jh@suse.cz>
8834
8835 PR c++/35262
8836 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
8837 aggressive on inlining cold calls.
8838
8839 2008-03-03 Richard Guenther <rguenther@suse.de>
8840
8841 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
8842 struct copies into the expression table.
8843 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
8844 (try_to_simplify): Likewise.
8845 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
8846 integral and pointer arguments which do not change the
8847 precision to NOP_EXPRs.
8848 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
8849 VIEW_CONVERT_EXPR case.
8850
8851 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
8852
8853 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
8854 defined in a loop at depth 0 is invariant.
8855 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
8856 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
8857 be called at loop depth 0.
8858
8859 2008-03-02 Jakub Jelinek <jakub@redhat.com>
8860
8861 PR driver/35420
8862 * gcc.c (process_command): Update copyright notice dates.
8863 * gcov.c (print_version): Likewise.
8864 * gcov-dump.c (print_version): Likewise.
8865 * mips-tfile.c (main): Likewise.
8866 * mips-tdump.c (main): Likewise.
8867
8868 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8869
8870 PR 24924
8871 * c-common.c (flag_permissive): Delete.
8872 (constant_expression_warnings): Check flags first.
8873 (constant_expression_error): New.
8874 * c-common.h (flag_permissive): Delete.
8875 (constant_expression_error): Declare.
8876 * flags.h (flag_permissive): Declare. Update description.
8877 * diagnostic.c (pedwarn): Update.
8878 (permerror): New.
8879 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
8880 (permissive_error_kind): New.
8881 * toplev.c (flag_permissive): Define. Update description.
8882 * toplev.h (permissive_error_kind): Declare.
8883 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
8884 (pedwarn_c90): Use pedantic_warning_kind.
8885 * c-opts.c (c_common_post_options): flag_permissive does not affect
8886 flag_pedantic_errors.
8887
8888 2008-03-02 Joseph Myers <joseph@codesourcery.com>
8889
8890 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
8891 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
8892 __absvsi2, __absvDI2): Use unsigned arithmetic.
8893
8894 2008-03-02 Andi Kleen <ak@suse.de>
8895 Richard Guenther <rguenther@suse.de>
8896
8897 * struct-equiv.c: Remove file.
8898 * cfg_cleanup.c (condjump_equiv_p): Remove.
8899 * Makefile.in (OBJS-common): Remove struct-equiv.o.
8900 (struct-equiv.o): Remove rule.
8901 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
8902 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
8903 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
8904
8905 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
8906
8907 * ifcvt.c (noce_process_if_block): Try to handle only the then
8908 block if the else block exists but isn't suitable.
8909
8910 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
8911
8912 PR gcc/35063
8913 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
8914 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
8915 regression from previous patch.
8916
8917 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
8918
8919 PR gcc/35063
8920 * gthr.h: Add __gthread_mutex_destroy as a function that must be
8921 implemented.
8922 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
8923 * gthr-single.h (__gthread_mutex_destroy): Likewise.
8924 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
8925 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
8926 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
8927 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
8928 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
8929 (__gthread_mutex_destroy_function): Rename to
8930 __gthread_mutex_destroy.
8931 * gthr-dce.h (__gthread_mutex_destroy): Call
8932 pthread_mutex_destroy.
8933 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
8934 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
8935 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
8936
8937 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
8938
8939 * df-scan.c (df_ref_chain_change_bb): Simplify.
8940 (df_insn_change_bb): Add new_bb argument. Simplify. Call
8941 set_block_for_insn if there's any change.
8942 * df.h ((df_insn_change_bb): Fix prototype.
8943 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
8944 df_insn_change_bb, don't call set_block_for_insn.
8945 * emit-rtl.c (reorder_insns): Likewise.
8946 * haifa-sched.c (move_insn): Likewise.
8947
8948 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
8949
8950 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
8951
8952 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
8953
8954 * tree-flow-inline.h (next_readonly_imm_use): Return
8955 NULL_USE_OPERAND_P after the end.
8956
8957 2008-03-01 Richard Guenther <rguenther@suse.de>
8958
8959 PR tree-optimization/35411
8960 * tree-sra.c (sra_build_assignment): Split conversion to
8961 final type to a separate statement if we are not assigning
8962 to a register.
8963
8964 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
8965
8966 * fold-const.c (fold_convertible_p): Correct the logic to follow
8967 that in fold_convert().
8968
8969 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
8970
8971 PR c++/35315
8972 * tree-inline.c (build_duplicate_type): When we make a
8973 duplicate type, make it unique in the canonical types system.
8974
8975 2008-02-29 Tom Tromey <tromey@redhat.com>
8976
8977 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
8978 input_file_stack_history, input_file_stack_restored): Remove.
8979 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
8980 * input.h (struct file_stack): Remove.
8981 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
8982 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
8983 Likewise.
8984 * diagnostic.h (struct diagnostic_context) <last_module>: Change
8985 type.
8986 (diagnostic_last_module_changed): Add 'map' argument.
8987 (diagnostic_set_last_function): Likewise.
8988 * diagnostic.c (undiagnostic_report_current_module): Iterate using
8989 line map, not input_file_stack.
8990 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
8991
8992 2008-02-29 Paul Brook <paul@codesourcery.com>
8993
8994 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
8995
8996 2008-02-29 Paul Brook <paul@codesourcery.com>
8997
8998 * config/arm/ieee754-df.S (muldf3): Use RET macros.
8999
9000 2008-02-29 Richard Guenther <rguenther@suse.de>
9001
9002 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
9003 vn_lookup_or_add.
9004 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
9005 value for comparing for a store match.
9006 (simplify_unary_expression): Do nothing for SSA_NAMEs.
9007 (try_to_simplify): Do not do a full-blown reference lookup.
9008
9009 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
9010
9011 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
9012 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
9013
9014 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
9015
9016 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
9017
9018 * tree-loop-linear.c (try_interchange_loops): Compare memory access
9019 strides against cache sizes.
9020
9021 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
9022
9023 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
9024 constant to fpul.
9025
9026 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
9027
9028 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
9029 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
9030 is smaller than the original promoted value.
9031 (simplify_subreg): If OP is a SUBREG, try to preserve its
9032 SUBREG_PROMOTED_VAR_P information.
9033
9034 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
9035
9036 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
9037 (VN_INFO_GET): Allocate new objects on the obstack.
9038 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
9039 for rpo_numbers_temp, for consistency.
9040 (free_scc_vn): Free the obstack.
9041
9042 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
9043
9044 * doc/invoke.texi: Document -ftree-loop-distribution.
9045 * tree-loop-distribution.c: New.
9046 * tree-pass.h (pass_loop_distribution): New.
9047 * graphds.h (struct graph): Add htab_t indices.
9048 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
9049 * tree-vectorizer.c (rename_variables_in_loop): Extern.
9050 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
9051 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
9052 * tree-data-ref.c (debug_data_dependence_relations): New.
9053 (dump_data_dependence_relation): Also print data references.
9054 (free_data_ref): Extern.
9055 (same_access_functions): Moved...
9056 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
9057 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9058 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
9059 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
9060 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
9061 (stmts_from_loop): Skip LABEL_EXPR.
9062 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
9063 New.
9064 (build_rdg): Initialize rdg->indices htab.
9065 (free_rdg, stores_from_loop, ref_base_address,
9066 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
9067 have_similar_memory_accesses_1, ref_base_address_1,
9068 remove_similar_memory_refs): New.
9069 * tree-data-ref.h: Depend on tree-chrec.h.
9070 (debug_data_dependence_relations, free_data_ref): Declared.
9071 (same_access_functions): ... here.
9072 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
9073 New.
9074 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
9075 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
9076 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
9077 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
9078 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
9079 rdg_vertex_for_stmt): Declared.
9080 (struct rdg_edge): Add level.
9081 (RDGE_LEVEL): New.
9082 (free_rdg, stores_from_loop, remove_similar_memory_refs,
9083 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
9084 Declared.
9085 (rdg_has_similar_memory_accesses): New.
9086 * tree-vect-analyze.c: Remove unused static decls.
9087 * lambda.h (dependence_level): New.
9088 * common.opt (ftree-loop-distribution): New.
9089 * tree-flow.h (mark_virtual_ops_in_bb,
9090 slpeel_tree_duplicate_loop_to_edge_cfg,
9091 rename_variables_in_loop): Declared.
9092 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
9093 (OBJS-common): Add tree-loop-distribution.o.
9094 (tree-loop-distribution.o): New rule.
9095 * tree-cfg.c (mark_virtual_ops_in_bb): New.
9096 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
9097 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
9098
9099 2008-02-28 Joseph Myers <joseph@codesourcery.com>
9100
9101 PR target/33963
9102 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
9103 other than structures and unions.
9104
9105 2008-02-28 Richard Guenther <rguenther@suse.de>
9106
9107 Revert:
9108 2008-02-26 Richard Guenther <rguenther@suse.de>
9109
9110 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9111 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9112 (lookup_decl_from_uid): Declare.
9113 (remove_decl_from_map): Likewise.
9114 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9115 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9116 (decl_for_uid_map): New global hashtable mapping DECL_UID
9117 to the decl tree.
9118 (init_ttree): Allocate it.
9119 (insert_decl_to_uid_decl_map): New helper function.
9120 (make_node_stat): Insert new decls into the map.
9121 (copy_node_stat): Likewise.
9122 (lookup_decl_from_uid): New function.
9123 (remove_decl_from_map): Likewise.
9124 (print_decl_for_uid_map_statistics): New helper.
9125 (dump_tree_statistics): Call it.
9126
9127 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9128 (referenced_var_iterator): Adjust.
9129 (FOR_EACH_REFERENCED_VAR): Adjust.
9130 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9131 (num_referenced_vars): Adjust.
9132 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9133 (first_referenced_var): Remove.
9134 (end_referenced_vars_p): Likewise.
9135 (next_referenced_var): Likewise.
9136 (referenced_var_iterator_set): New helper function.
9137 * tree-dfa.c (referenced_var_lookup): Adjust.
9138 (referenced_var_check_and_insert): Likewise.
9139 (remove_referenced_var): Likewise.
9140 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9141 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9142 (verify_call_clobbering): Likewise.
9143 (verify_memory_partitions): Likewise.
9144 (init_tree_ssa): Allocate bitmap instead of hashtable for
9145 referenced_vars.
9146 (delete_tree_ssa): Adjust.
9147 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9148 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9149 (compute_tag_properties): Likewise.
9150 (set_initial_properties): Likewise.
9151 (find_partition_for): Likewise.
9152 (update_reference_counts): Likewise.
9153 (dump_may_aliases_for): Likewise.
9154 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9155 (add_call_clobber_ops): Likewise.
9156 (add_call_read_ops): Likewise.
9157 (get_asm_expr_operands): Likewise.
9158 * tree-into-ssa.c (dump_decl_set): Likewise.
9159 (update_ssa): Likewise.
9160 * tree-sra.c (scan_function): Likewise.
9161 (decide_instantiations): Likewise.
9162 (scalarize_parms): Likewise.
9163 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9164 (dsa_named_for): Likewise.
9165 * tree-ssa-structalias.c (update_alias_info): Likewise.
9166 (merge_smts_into): Likewise.
9167
9168 2008-02-27 David Daney <ddaney@avtrex.com>
9169
9170 PR target/34409
9171 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
9172 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
9173 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
9174 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
9175 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
9176
9177 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
9178
9179 PR target/25477
9180 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
9181 (BUILT_IN_NEXTTOWARD): Remove.
9182 (BUILT_IN_NEXTTOWARDF): Ditto.
9183 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
9184 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
9185
9186 2008-02-27 Tom Tromey <tromey@redhat.com>
9187
9188 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
9189 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
9190
9191 2008-02-27 Jan Beulich <jbeulich@novell.com>
9192
9193 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
9194 update the respective field on newdecl.
9195
9196 2008-02-27 Revital Eres <eres@il.ibm.com>
9197
9198 PR rtl-optimization/34999
9199 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
9200 crossing edges that ends with a call insn.
9201 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
9202 call insn and clear the EDGE_CROSSING flag of the crossing edge
9203 when fixing fallthru edges.
9204
9205 2008-02-27 Richard Guenther <rguenther@suse.de>
9206
9207 PR middle-end/35390
9208 * fold-const.c (fold_unary): Return the correct argument,
9209 converted to the result type.
9210
9211 2008-02-27 Richard Guenther <rguenther@suse.de>
9212
9213 PR middle-end/34971
9214 * expr.c (expand_expr_real_1): Assert on rotates that operate
9215 on partial modes.
9216 * fold-const.c (fold_binary): Use the types precision, not the
9217 bitsize of the mode if folding rotate expressions. Build rotates
9218 only for full modes.
9219
9220 2008-02-27 Jakub Jelinek <jakub@redhat.com>
9221
9222 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
9223 and CPP_PRAGMA_EOL.
9224 * c-pragma.c (pragma_ns_name): New typedef.
9225 (registered_pp_pragmas): New variable.
9226 (c_pp_lookup_pragma): New function.
9227 (c_register_pragma_1): If flag_preprocess_only, do nothing
9228 for non-expanded pragmas, for expanded ones push pragma's
9229 namespace and name into registered_pp_pragmas vector.
9230 (c_invoke_pragma_handler): Register OpenMP pragmas even when
9231 flag_preprocess_only, don't register GCC pch_preprocess
9232 pragma if flag_preprocess_only.
9233 * c-opts.c (c_common_init): Call init_pragma even if
9234 flag_preprocess_only.
9235 * c-pragma.c (c_pp_lookup_pragma): New prototype.
9236 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
9237 cpp_register_pragma if flag_preprocess_only.
9238
9239 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9240
9241 PR c/28800
9242 * c-parser.c (c_parser_translation_unit): Warn for empty
9243 translation unit, not empty source file.
9244
9245 2008-02-26 Paul Brook <paul@codesourcery.com>
9246
9247 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
9248 operand for Thumb-2.
9249 * config/arm/arm.h (reg_class): Add CORE_REGS.
9250 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
9251 (BASE_REG_CLASS): Use CORE_REGS.
9252 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
9253 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
9254 (REGNO_OK_FOR_INDEX_P): Exclude SP.
9255 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
9256 ARM_REGNO_OK_FOR_INDEX_P.
9257 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
9258 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
9259 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
9260 (ldm/stm peepholes): Ditto.
9261 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
9262 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
9263 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
9264 * config/arm/constraints.md: Enable "k" constraint on ARM.
9265
9266 2008-02-27 Ben Elliston <bje@au.ibm.com>
9267
9268 * config/rs6000/rs6000.c: Annotate cache line size field in all
9269 instances of struct processor_costs.
9270
9271 2008-02-26 David Edelsohn <edelsohn@gnu.org>
9272
9273 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
9274 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
9275 jump_bypass): New counters.
9276 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
9277 * dce.c (gate_ud_dce): Same.
9278 (gate_fast_dce): Same.
9279 * dse.c (gate_dse1): New function.
9280 (gate_dse2): New function.
9281 (gate_dse): Merge results of new gate functions.
9282 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
9283 (gate_handle_jump_bypass): Add dbg_cnt.
9284 (gate_handle_gcse): Add dbg_cnt.
9285 * ifcvt.c (gate_handle_if_conversion): Same.
9286 (gate_handle_if_after_combine): Same.
9287 (gate_handle_if_after_reload): Same.
9288 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
9289
9290 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
9291
9292 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
9293 line sizes.
9294 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
9295
9296 2008-02-26 Jason Merrill <jason@redhat.com>
9297
9298 PR c++/35315
9299 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
9300 alone if it's the naming decl for the type's main variant.
9301
9302 2008-02-26 Tom Tromey <tromey@redhat.com>
9303
9304 * system.h (USE_MAPPED_LOCATION): Poison.
9305 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
9306 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
9307 (make_goto_expr_edges): Likewise.
9308 (remove_bb): Likewise.
9309 (execute_warn_function_return): Likewise.
9310 * basic-block.h (struct edge_def) <goto_locus>: Change type to
9311 location_t.
9312 * c-common.c (fname_decl): Remove old location code.
9313 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
9314 location code.
9315 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
9316 variant.
9317 (ASM_INPUT_SOURCE_LOCATION): Likewise.
9318 (gen_rtx_ASM_INPUT): Likewise.
9319 (gen_rtx_ASM_INPUT_loc): Likewise.
9320 (get_rtx_asm_OPERANDS): Remove.
9321 * cfglayout.c (insn_locators_alloc): Remove old location code.
9322 (set_curr_insn_source_location): Likewise.
9323 (curr_insn_locator): Likewise.
9324 * print-tree.c (print_node): Remove old location code.
9325 * tree-mudflap.c (mf_varname_tree): Remove old location code.
9326 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
9327 * cfgexpand.c (expand_gimple_cond_expr): Don't use
9328 location_from_locus.
9329 (construct_exit_block): Remove old location code.
9330 * emit-rtl.c (force_next_line_note): Remove old location code.
9331 * profile.c (branch_prob): Remove old location code.
9332 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
9333 LOC_LINE): Remove old-location variants.
9334 * langhooks.c (lhd_print_error_function): Remove old location
9335 code.
9336 * configure, config.in: Rebuilt.
9337 * configure.ac (--enable-mapped-location): Remove.
9338 * c-decl.c (c_init_decl_processing): Remove old location code.
9339 (finish_function): Likewise.
9340 * recog.c (decode_asm_operands): Remove old location code.
9341 * c-pch.c (c_common_read_pch): Remove old location code.
9342 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
9343 variants.
9344 * gimple-low.c (lower_function_body): Remove old location code.
9345 * toplev.c (unknown_location): Remove.
9346 (push_srcloc): Remove old-location variant.
9347 (process_options): Remove old location code.
9348 (lang_dependent_init): Likewise.
9349 * input.h (UNKNOWN_LOCATION): Move definition.
9350 (location_t): Undeprecate.
9351 (source_locus): Remove.
9352 (location_from_locus): Remove.
9353 (struct location_s): Remove.
9354 Remove all old-location code.
9355 (input_line, input_filename): Remove.
9356 * final.c (final_scan_insn): Remove old location code.
9357 * diagnostic.c (diagnostic_build_prefix): Remove
9358 USE_MAPPED_LOCATION test.
9359 * tree.h (gimple_stmt) <locus>: Now a location_t.
9360 (tree_exp) <locus>: Likewise.
9361 (DECL_IS_BUILTIN): Remove old-location variant.
9362 (annotate_with_file_line, annotate_with_locus): Likewise.
9363 (expr_locus, set_expr_locus): Update.
9364 * tree.c (build1_stat): Remove old location code.
9365 (last_annotated_node): Remove.
9366 (annotate_with_file_line): Remove old-location variant.
9367 (annotate_with_locus): Likewise.
9368 (expr_location): Remove old location code.
9369 (set_expr_location): Likewise.
9370 (expr_has_location): Likewise.
9371 (expr_locus): Likewise.
9372 (set_expr_locus): Likewise.
9373 (expr_filename): Don't use location_from_locus.
9374 (expr_lineno): Likewise.
9375 * rtl-error.c (location_for_asm): Remove old location code.
9376 * c-lex.c (cb_line_change): Remove old location code.
9377 (fe_file_change): Likewise.
9378 (cb_def_pragma): Likewise.
9379 (c_lex_with_flags): Likewise.
9380 * gengtype.c (do_typedef): Don't special-case location types.
9381 (define_location_structures): Remove.
9382 (main): Don't call define_location_structures.
9383 * tree-pretty-print.c (dump_implicit_edges): Remove old location
9384 code.
9385
9386 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9387
9388 PR 26264
9389 * builtins.def (BUILT_IN_STDARG_START): Remove.
9390 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
9391 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
9392 * tree-inline.c (inline_forbidden_p_1): Likewise.
9393
9394 2008-02-26 Richard Guenther <rguenther@suse.de>
9395
9396 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9397 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9398 (lookup_decl_from_uid): Declare.
9399 (remove_decl_from_map): Likewise.
9400 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9401 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9402 (decl_for_uid_map): New global hashtable mapping DECL_UID
9403 to the decl tree.
9404 (init_ttree): Allocate it.
9405 (insert_decl_to_uid_decl_map): New helper function.
9406 (make_node_stat): Insert new decls into the map.
9407 (copy_node_stat): Likewise.
9408 (lookup_decl_from_uid): New function.
9409 (remove_decl_from_map): Likewise.
9410 (print_decl_for_uid_map_statistics): New helper.
9411 (dump_tree_statistics): Call it.
9412
9413 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9414 (referenced_var_iterator): Adjust.
9415 (FOR_EACH_REFERENCED_VAR): Adjust.
9416 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9417 (num_referenced_vars): Adjust.
9418 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9419 (first_referenced_var): Remove.
9420 (end_referenced_vars_p): Likewise.
9421 (next_referenced_var): Likewise.
9422 (referenced_var_iterator_set): New helper function.
9423 * tree-dfa.c (referenced_var_lookup): Adjust.
9424 (referenced_var_check_and_insert): Likewise.
9425 (remove_referenced_var): Likewise.
9426 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9427 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9428 (verify_call_clobbering): Likewise.
9429 (verify_memory_partitions): Likewise.
9430 (init_tree_ssa): Allocate bitmap instead of hashtable for
9431 referenced_vars.
9432 (delete_tree_ssa): Adjust.
9433 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9434 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9435 (compute_tag_properties): Likewise.
9436 (set_initial_properties): Likewise.
9437 (find_partition_for): Likewise.
9438 (update_reference_counts): Likewise.
9439 (dump_may_aliases_for): Likewise.
9440 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9441 (add_call_clobber_ops): Likewise.
9442 (add_call_read_ops): Likewise.
9443 (get_asm_expr_operands): Likewise.
9444 * tree-into-ssa.c (dump_decl_set): Likewise.
9445 (update_ssa): Likewise.
9446 * tree-sra.c (scan_function): Likewise.
9447 (decide_instantiations): Likewise.
9448 (scalarize_parms): Likewise.
9449 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9450 (dsa_named_for): Likewise.
9451 * tree-ssa-structalias.c (update_alias_info): Likewise.
9452 (merge_smts_into): Likewise.
9453
9454 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9455
9456 PR 34351
9457 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
9458 * c-opts.c (c_common_handle_option): Wall enables
9459 Wvolatile-register-var.
9460 * common.opt: Move Wvolatile-register-var to...
9461 * c.opt: ...here.
9462
9463 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9464
9465 * common.opt (Wlarger-than=): New.
9466 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
9467 -Wlarger-than=.
9468 * opts.c (common_handle_option): Handle -Wlarger-than=.
9469 * optc-gen.awk: Likewise.
9470 * opth-gen.awk: Likewise.
9471 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
9472 * tree-optimize.c (tree_rest_of_compilation): Likewise.
9473
9474 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9475
9476 * c-common.c (match_case_to_enum_1): Add appropriate
9477 OPT_W* parameter to warning.
9478 (c_do_switch_warnings): Likewise.
9479 * c-typeck.c (warning_init): Add one more parameter following
9480 'warning' function.
9481 (push_init_level): Update call to warning_init.
9482 (pop_init_level): Likewise.
9483 (add_pending_init): Likewise.
9484 (output_init_element: Likewise.
9485
9486 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9487
9488 PR 28322
9489 * toplev.c (toplev_main): If there are warnings or error, print
9490 errors for ignored options.
9491 * opts.c (ignored_options): New static variable.
9492 (postpone_unknown_option_error): New.
9493 (print_ignored_options): New.
9494 (handle_option): Postpone errors for unknown -Wno-* options.
9495 * opts.h (print_ignored_options): Declare.
9496
9497 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
9498
9499 * config/mips/mips.md (loadgp_blockage, blockage): Change type
9500 to "ghost".
9501
9502 2008-02-25 Richard Guenther <rguenther@suse.de>
9503
9504 Revert:
9505 2008-02-25 Richard Guenther <rguenther@suse.de>
9506
9507 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9508 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9509 (lookup_decl_from_uid): Declare.
9510 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9511 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9512 (decl_for_uid_map): New global hashtable mapping DECL_UID
9513 to the decl tree.
9514 (init_ttree): Allocate it.
9515 (insert_decl_to_uid_decl_map): New helper function.
9516 (make_node_stat): Insert new decls into the map.
9517 (copy_node_stat): Likewise.
9518 (lookup_decl_from_uid): New function.
9519 (print_decl_for_uid_map_statistics): New helper.
9520 (dump_tree_statistics): Call it.
9521
9522 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9523 (referenced_var_iterator): Adjust.
9524 (FOR_EACH_REFERENCED_VAR): Adjust.
9525 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9526 (num_referenced_vars): Adjust.
9527 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9528 (first_referenced_var): Remove.
9529 (end_referenced_vars_p): Likewise.
9530 (next_referenced_var): Likewise.
9531 (referenced_var_iterator_set): New helper function.
9532 * tree-dfa.c (referenced_var_lookup): Adjust.
9533 (referenced_var_check_and_insert): Likewise.
9534 (remove_referenced_var): Likewise.
9535 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9536 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9537 (verify_call_clobbering): Likewise.
9538 (verify_memory_partitions): Likewise.
9539 (init_tree_ssa): Allocate bitmap instead of hashtable for
9540 referenced_vars.
9541 (delete_tree_ssa): Adjust.
9542 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9543 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9544 (compute_tag_properties): Likewise.
9545 (set_initial_properties): Likewise.
9546 (find_partition_for): Likewise.
9547 (update_reference_counts): Likewise.
9548 (dump_may_aliases_for): Likewise.
9549 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9550 (add_call_clobber_ops): Likewise.
9551 (add_call_read_ops): Likewise.
9552 (get_asm_expr_operands): Likewise.
9553 * tree-into-ssa.c (dump_decl_set): Likewise.
9554 (update_ssa): Likewise.
9555 * tree-sra.c (scan_function): Likewise.
9556 (decide_instantiations): Likewise.
9557 (scalarize_parms): Likewise.
9558 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9559 (dsa_named_for): Likewise.
9560 * tree-ssa-structalias.c (update_alias_info): Likewise.
9561 (merge_smts_into): Likewise.
9562
9563 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
9564
9565 PR fortran/29549
9566 * doc/invoke.texi (-fcx-limited-range): Document new option.
9567 * toplev.c (process_options): Handle -fcx-fortran-rules.
9568 * common.opt: Add documentation for -fcx-fortran-rules.
9569
9570 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
9571
9572 PR c/35162
9573 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
9574 actual behaviour and C99.
9575
9576 2008-02-26 Ben Elliston <bje@au.ibm.com>
9577
9578 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
9579 (ASM_CPU_POWER6_SPEC): Likewise.
9580 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
9581 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
9582 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
9583
9584 2008-02-25 Richard Guenther <rguenther@suse.de>
9585
9586 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
9587 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
9588 (lookup_decl_from_uid): Declare.
9589 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
9590 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
9591 (decl_for_uid_map): New global hashtable mapping DECL_UID
9592 to the decl tree.
9593 (init_ttree): Allocate it.
9594 (insert_decl_to_uid_decl_map): New helper function.
9595 (make_node_stat): Insert new decls into the map.
9596 (copy_node_stat): Likewise.
9597 (lookup_decl_from_uid): New function.
9598 (print_decl_for_uid_map_statistics): New helper.
9599 (dump_tree_statistics): Call it.
9600
9601 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
9602 (referenced_var_iterator): Adjust.
9603 (FOR_EACH_REFERENCED_VAR): Adjust.
9604 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
9605 (num_referenced_vars): Adjust.
9606 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
9607 (first_referenced_var): Remove.
9608 (end_referenced_vars_p): Likewise.
9609 (next_referenced_var): Likewise.
9610 (referenced_var_iterator_set): New helper function.
9611 * tree-dfa.c (referenced_var_lookup): Adjust.
9612 (referenced_var_check_and_insert): Likewise.
9613 (remove_referenced_var): Likewise.
9614 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
9615 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9616 (verify_call_clobbering): Likewise.
9617 (verify_memory_partitions): Likewise.
9618 (init_tree_ssa): Allocate bitmap instead of hashtable for
9619 referenced_vars.
9620 (delete_tree_ssa): Adjust.
9621 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
9622 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
9623 (compute_tag_properties): Likewise.
9624 (set_initial_properties): Likewise.
9625 (find_partition_for): Likewise.
9626 (update_reference_counts): Likewise.
9627 (dump_may_aliases_for): Likewise.
9628 * tree-ssa-operands.c (add_virtual_operand): Likewise.
9629 (add_call_clobber_ops): Likewise.
9630 (add_call_read_ops): Likewise.
9631 (get_asm_expr_operands): Likewise.
9632 * tree-into-ssa.c (dump_decl_set): Likewise.
9633 (update_ssa): Likewise.
9634 * tree-sra.c (scan_function): Likewise.
9635 (decide_instantiations): Likewise.
9636 (scalarize_parms): Likewise.
9637 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
9638 (dsa_named_for): Likewise.
9639 * tree-ssa-structalias.c (update_alias_info): Likewise.
9640 (merge_smts_into): Likewise.
9641
9642 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
9643
9644 PR target/35258
9645 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
9646 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
9647 * alias.h (nonoverlapping_memrefs_p): Likewise.
9648
9649 2008-02-25 Jan Beulich <jbeulich@novell.com>
9650
9651 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
9652 * config/i386/netware-libgcc.exp: Add __bswap?i2,
9653 __emultls_get_address, __emultls_register_common,
9654 __floatundi?f, and _Unwind_GetIPInfo.
9655 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
9656 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
9657 (gen_regparm_prefix): Likewise.
9658 (i386_nlm_encode_section_info): Sync with
9659 config/i386/winnt.c:i386_pe_encode_section_info().
9660 (i386_nlm_maybe_mangle_decl_assembler_name): New.
9661 i386_nlm_mangle_decl_assembler_name): New.
9662 (netware_override_options): New.
9663 * config/i386/netware.h (netware_override_options): Declare.
9664 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
9665 (i386_nlm_mangle_decl_assembler_name): Declare.
9666 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
9667
9668 2008-02-25 Ben Elliston <bje@au.ibm.com>
9669
9670 PR other/32948
9671 * c-decl.c (grokdeclarator): Remove unused local variables
9672 `typedef_type' and `type_as_written'.
9673 * bb-reorder.c
9674 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
9675 unused local variable `has_hot_blocks'.
9676 (fix_crossing_conditional_branches): Remove unused local variable
9677 `prev_bb'.
9678
9679 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
9680
9681 PR middle-end/19984
9682 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
9683 using DEF_C99_BUILTIN.
9684 (BUILT_IN_NANF): Ditto.
9685 (BUILT_IN_NANL): Ditto.
9686
9687 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
9688 Revital Eres <eres@il.ibm.com>
9689
9690 * modulo-sched.c (calculate_must_precede_follow): Address TODO
9691 regarding the order of two dependent insns in the same row.
9692
9693 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
9694
9695 * stor-layout.c (layout_decl): Do not bump the alignment of a
9696 bit-field to more than byte alignment if it is packed.
9697
9698 2008-02-24 David Edelsohn <edelsohn@gnu.org>
9699
9700 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
9701 e300c2 and e300c3.
9702
9703 2008-02-24 Diego Novillo <dnovillo@google.com>
9704
9705 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
9706
9707 PR 33738
9708 * tree-vrp.c (vrp_evaluate_conditional): With
9709 -Wtype-limits, emit a warning when comparing against a
9710 constant outside the natural range of OP0's type.
9711 * c.opt (Wtype-limits): Move ...
9712 * common.opt (Wtype-limits): ... here.
9713
9714 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
9715
9716 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
9717 * config/rs6000/e300c2c3.md: New file.
9718 * config/rs6000/rs6000.c (processor_costs): Add new costs for
9719 e300c2 and e300c3.
9720 (rs6000_override_options): Add e300c2 and e300c3 cases to
9721 processor_target_table. Do not allow usage of Altivec or Spe
9722 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
9723 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
9724 * config/rs6000/rs6000.h (processor_type): Add
9725 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
9726 (ASM_CPU_SPEC): Add e300c2 and e300c3.
9727 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
9728 and ppce300c3. Include e300c2c3.md.
9729
9730 2008-02-23 David Edelsohn <edelsohn@gnu.org>
9731
9732 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
9733 instead of TARGET_STRICT_ALIGN.
9734
9735 2008-02-23 Joseph Myers <joseph@codesourcery.com>
9736
9737 * explow.c (memory_address): Assert that the generated address is
9738 valid.
9739
9740 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
9741
9742 PR target/25477
9743 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
9744 * config/darwin-ppc-ldouble-patch.def: New file.
9745 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
9746 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
9747 SUBTARGET_INIT_BUILTINS if defined.
9748 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
9749 New functions.
9750
9751 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
9752
9753 PR rtl-opt/33512
9754 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
9755 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
9756
9757 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
9758
9759 PR pch/35027
9760 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
9761 file" warning condtional on -Winvalid-PCH.
9762
9763 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
9764
9765 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
9766
9767 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
9768
9769 PR target/22076
9770 PR target/34256
9771 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
9772 prevent reload from using MMX registers.
9773 (*mov<mode>_internal): Ditto.
9774 (*movv2sf_internal_rex64): Ditto.
9775 (*movv2sf_internal): Ditto.
9776
9777 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9778
9779 PR documentation/31569
9780 * doc/install.texi2html: Use makeinfo --no-number-sections.
9781
9782 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
9783
9784 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
9785 ensure that we can address an entire entity > 8 bytes. Don't
9786 generate reg+reg addressing for such data.
9787
9788 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
9789
9790 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
9791 strings when optimizing for size, unless the target cares about
9792 alignment.
9793
9794 2008-02-22 Tom Tromey <tromey@redhat.com>
9795
9796 * regclass.c (current_pass): Remove declaration.
9797
9798 2008-02-22 Anatoly Sokolov <aesok@post.ru>
9799
9800 * config/avr/libgcc.S (__RAMPZ__): Define.
9801 (__do_copy_data): Add for devices with 128KB code memory.
9802
9803 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
9804
9805 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
9806 Use spe_abi.
9807 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
9808
9809 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
9810
9811 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
9812 GENNONACR_REGS.
9813
9814 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9815
9816 PR c/19999
9817 * c-typeck.c (build_binary_op): Warn about floating point
9818 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
9819
9820 2008-02-21 Janis Johnson <janis187@us.ibm.com>
9821
9822 PR target/34526
9823 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
9824 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
9825 add vrsave.
9826 (rs6000_override_options): Set altivec_abi as default, not override,
9827 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
9828 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
9829 is used; use new member spe_abi.
9830 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
9831 spe_abi and altivec_abi.
9832
9833 2008-02-22 Tomas Bily <tbily@suse.cz>
9834
9835 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
9836
9837 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9838
9839 PR bootstrap/35273
9840 * config.build (build_file_translate): Set to `CMD //c' only if
9841 it works.
9842 * Makefile.in (build_file_translate): Improve comment.
9843
9844 2008-02-21 Jan Hubicka <jh@suse.cz>
9845
9846 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
9847 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
9848 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
9849
9850 2008-02-21 Michael Matz <matz@suse.de>
9851
9852 PR target/35264
9853 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
9854
9855 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
9856
9857 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
9858 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
9859 as insn constraint.
9860 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
9861 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
9862 SSE_VEC_FLOAT_MODE_P as insn constraint.
9863 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
9864 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
9865 sse4a_movntdf using MODEF mode iterator.
9866 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
9867 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
9868 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
9869 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
9870 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
9871 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
9872 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
9873
9874 2008-02-21 Richard Guenther <rguenther@suse.de>
9875
9876 * tree.def (PAREN_EXPR): New tree code.
9877 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
9878 and PAREN_EXPR.
9879 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
9880 * expr.c (expand_expr_real_1): Likewise.
9881 * tree-inline.c (estimate_num_insns_1): Likewise.
9882 * tree-complex.c (expand_complex_move): Likewise.
9883 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
9884 as plain x.
9885
9886 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
9887
9888 PR target/35225
9889 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
9890
9891 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
9892
9893 PR target/35190
9894 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
9895
9896 * config/sh/sh.c (find_barrier): Don't go past
9897 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
9898
9899 2008-02-20 DJ Delorie <dj@redhat.com>
9900
9901 * config/h8300/h8300.md (insv): Force source operand to be a register.
9902
9903 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
9904 as a jump, not as a plain insn.
9905
9906 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
9907
9908 * doc/invoke.texi (Warning Options): Add new option
9909 -Wframe-larger-than=.
9910 (-Wframe-larger-than): Document.
9911
9912 * flags.h (warn_frame_larger_than, frame_larger_than_size):
9913 Add declarations for new option variables.
9914
9915 * final.c (final_start_function): Check the frame size
9916 before emission and issue a Wframe-larger-than warning.
9917
9918 * opts.c (warn_frame_larger_than, frame_larger_than_size):
9919 Add definitions for new option variables.
9920 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
9921
9922 * common.opt (Wframe-larger-than=): New option.
9923
9924 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
9925
9926 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
9927 (<sse>_div<mode>3): Ditto.
9928 (<sse>_vmdiv<mode>3): Ditto.
9929 (<sse>_vmsqrt<mode>2): Ditto.
9930 (*smax<mode>3): Ditto.
9931 (sse5_frcz<mode>2): Ditto.
9932 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
9933 as insn constraint.
9934
9935 2008-02-20 Richard Guenther <rguenther@suse.de>
9936
9937 PR middle-end/35265
9938 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
9939 be happy with INTEGRAL_TYPE_P.
9940
9941 2008-02-20 Richard Guenther <rguenther@suse.de>
9942
9943 * fold-const.c (split_tree): Associate floatig-point expressions
9944 if flag_associative_math is set.
9945
9946 2008-02-20 Richard Guenther <rguenther@suse.de>
9947
9948 * tree.h (fold_real_zero_addition_p): Declare.
9949 * fold-const.c (fold_real_zero_addition_p): Export.
9950 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
9951 floating-point operations with zero and one.
9952
9953 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
9954
9955 * doc/install.texi: Correct references to CFLAGS, replacing them
9956 with BOOT_CFLAGS. Document flags used during bootstrap for
9957 target libraries.
9958
9959 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
9960
9961 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
9962 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
9963 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
9964 insn constraint.
9965 (smin<mode>3): Ditto from similar patterns.
9966 (smax<mode>3): Ditto.
9967 (*ieee_smin<mode>3): Ditto.
9968 (*ieee_smax<mode>3): Ditto.
9969 * config/i386/sse.md (sse): New mode attribute.
9970 (mov<mode>): Macroize expander from movv4sf and movv2df using
9971 SSEMODEF2P mode iterator.
9972 (<sse>_movnt<mode>): Ditto from similar patterns. Use
9973 SSE_VEC_FLOAT_MODE_P as insn constraint.
9974 (storent<mode>): Ditto.
9975 (storent<mode>): Macroize expander from storentsf and storentdf using
9976 MODEF mode iterator.
9977 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
9978 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
9979 (abs<mode>2): Ditto from similar patterns.
9980 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
9981 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
9982 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
9983 (<sse>_vmsqrt<mode>2): Ditto.
9984 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
9985 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
9986 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
9987 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
9988 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
9989 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
9990 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
9991 insn constraint.
9992 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
9993 iterator and SSE_FLOAT_MODE_P as insn constraint.
9994 (<sse>_ucomi): Ditto from similar patterns.
9995 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
9996 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
9997 SSE_VEC_FLOAT_MODE_P as insn constraint.
9998 (vcond<mode>): Ditto from similar patterns.
9999 (and<mode>3, *and<mode>3): Ditto.
10000 (<sse>_nand<mode>3): Ditto.
10001 (ior<mode>3, *ior<mode>3): Ditto.
10002 (xor<mode>3, *xor<mode>3): Ditto.
10003 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
10004 iterator and SSE_FLOAT_MODE_P as insn constraint.
10005 (*nand<mode>3): Ditto from similar patterns.
10006 (*ior<mode>3): Ditto.
10007 (*xor<mode>3): Ditto.
10008
10009 2008-02-20 Ira Rosen <irar@il.ibm.com>
10010
10011 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
10012 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
10013 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
10014
10015 2008-02-19 Jan Hubicka <jh@suse.cz>
10016
10017 * predict.c (tree_bb_level_predictions): Remove variable next
10018 mistakely introduced by previous commit.
10019
10020 2008-02-19 Jan Hubicka <jh@suse.cz>
10021
10022 * predict.c (predict_paths_leading_to): Rewrite.
10023 (predict_paths_for_bb): New.
10024 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
10025
10026 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10027
10028 PR bootstrap/35218
10029 * Makefile.in (build_file_translate): New.
10030 (gcc-vers.texi): Use it for translating $(abs_srcdir).
10031 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
10032 * configure.ac (build_file_translate): Substitute it.
10033 * configure: Regenerate.
10034
10035 2008-02-19 Jan Hubicka <jh@suse.cz>
10036
10037 PR rtl-optimization/34408
10038 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
10039 invalid sharing.
10040
10041 2008-02-19 Jan Hubicka <jh@suse.cz>
10042
10043 PR middle-end/28779
10044 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
10045 call_expr.
10046
10047 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
10048
10049 PR Ada/35186
10050 * config/i386/i386-modes.def: Revert the last DI alignment
10051 change until Ada people can look into it.
10052
10053 2008-02-19 Nick Clifton <nickc@redhat.com>
10054
10055 * opts.c (print_specific_help): Fix typo in --help text.
10056
10057 2008-02-19 Jakub Jelinek <jakub@redhat.com>
10058
10059 PR target/35239
10060 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
10061 32-bit inline asm without asm alternatives for host GCC < 3.0.
10062
10063 2008-02-19 Richard Guenther <rguenther@suse.de>
10064
10065 PR tree-optimization/34989
10066 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
10067 Allow propagation to INDIRECT_REF if we can simplify only.
10068
10069 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10070
10071 * c-common.c (warn_for_collisions_1): Use appropriate option when
10072 warning.
10073
10074 2008-02-19 Nick Clifton <nickc@redhat.com>
10075
10076 PR other/31349
10077 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
10078 (handle_options): Fix indentation.
10079 (print_filtered_help): If no language-specific options were
10080 displayed tell the user how to list all the options supported by
10081 the language's front-end.
10082 (print_specific_help): Fix indentation and remove duplicate line.
10083 (common_handle_option): Handle the -v option.
10084 For --help enable the display of undocumented options if the -v
10085 switch has been included on the command line.
10086 For --help= check for overlaps in the arguments between the option
10087 classes and the language names and issue a warning when they
10088 cannot be disambiguated.
10089 * c.opt (v): Pass on to the common option handler.
10090
10091 2008-02-19 Revital Eres <eres@il.ibm.com>
10092
10093 * modulo-sched.c (sms_schedule): Change dump message when
10094 create_ddg function fails.
10095 (try_scheduling_node_in_cycle): Rename row to cycle.
10096 (print_partial_schedule): Rename CYCLE to ROW.
10097
10098 2008-02-19 Christian Bruel <christian.bruel@st.com>
10099 Zdenek Dvorak <ook@ucw.cz>
10100
10101 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
10102
10103 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
10104
10105 PR target/33555
10106 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
10107 (*x86_movdicc_0_m1_se): Ditto.
10108
10109 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
10110
10111 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
10112 (CMPtype): Define as __gcc_CMPtype.
10113 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
10114 (CMPtype): Define as __gcc_CMPtype.
10115
10116 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
10117
10118 Support valgrind 3.3 for --enable-checking=valgrind.
10119 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
10120 here.
10121 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
10122 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
10123 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
10124 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
10125 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
10126 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
10127 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
10128 respectively.
10129 * ggc-zone.c: Similar.
10130 * ggc-page.c: Similar.
10131
10132 2008-02-19 Paul Brook <paul@codesourcery.com>
10133
10134 PR target/35071
10135 * config/arm/ieee754-df.S: Fix do_it typo.
10136 * config/arm/ieee754-sf.S: Fix do_it typo.
10137
10138 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
10139
10140 PR target/35189
10141 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
10142 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
10143 (OPTION_MASK_ISA_SSE_SET): Likewise.
10144 (OPTION_MASK_ISA_SSE2_SET): Likewise.
10145 (OPTION_MASK_ISA_SSE3_SET): Likewise.
10146 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
10147 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
10148 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
10149 (OPTION_MASK_ISA_SSE4_SET): Likewise.
10150 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
10151 (OPTION_MASK_ISA_SSE5_SET): Likewise.
10152 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
10153 (OPTION_MASK_ISA_MMX_UNSET): Updated.
10154 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
10155 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
10156 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
10157 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
10158 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
10159 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
10160 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
10161 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
10162 (OPTION_MASK_ISA_SSE4): Removed.
10163 (ix86_handle_option): Turn on bits in ix86_isa_flags and
10164 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
10165 (override_options): Don't turn on implied SSE/MMX bits in
10166 ix86_isa_flags.
10167
10168 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
10169
10170 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10171 32bit host.
10172
10173 2008-02-18 Joey Ye <joey.ye@intel.com>
10174
10175 PR middle-end/34921
10176 * tree-nested.c (insert_field_into_struct): Set type alignment
10177 to field alignment if the former is less than the latter.
10178
10179 2008-02-18 Jakub Jelinek <jakub@redhat.com>
10180
10181 * BASE-VER: Set to 4.4.0.
10182
10183 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10184
10185 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
10186 * doc/cfg.texi: Likewise.
10187 * doc/extend.texi: Likewise.
10188 * doc/gty.texi: Likewise.
10189 * doc/invoke.texi: Likewise.
10190 * doc/loop.texi: Likewise.
10191 * doc/md.texi: Likewise.
10192 * doc/passes.texi: Likewise.
10193 * doc/rtl.texi: Likewise.
10194 * doc/sourcebuild.texi: Likewise.
10195 * doc/tm.texi: Likewise.
10196 * doc/tree-ssa.texi: Likewise.
10197
10198 2008-02-17 Richard Guenther <rguenther@suse.de>
10199
10200 PR middle-end/35227
10201 * tree-complex.c (init_parameter_lattice_values): Handle parameters
10202 without default definition.
10203
10204 2008-02-17 Richard Guenther <rguenther@suse.de>
10205
10206 PR tree-optimization/35231
10207 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
10208 if A | B != 1.
10209
10210 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
10211
10212 Revert:
10213 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10214 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10215 libgcc_cmp_return mode.
10216
10217 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10218
10219 PR c/28368
10220 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
10221
10222 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
10223
10224 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
10225 multilibs.
10226
10227 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10228
10229 * doc/c-tree.texi: Use `@.' where appropriate.
10230 * doc/extend.texi: Likewise.
10231 * doc/install.texi: Likewise.
10232 * doc/invoke.texi: Likewise.
10233 * doc/loop.texi: Likewise.
10234 * doc/makefile.texi: Likewise.
10235 * doc/md.texi: Likewise.
10236 * doc/passes.texi: Likewise.
10237 * doc/standards.texi: Likewise.
10238 * doc/tm.texi: Likewise.
10239
10240 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10241
10242 PR middle-end/35196
10243 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
10244 in entry_bb.
10245 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
10246 rather than in entry_bb.
10247
10248 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10249
10250 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
10251 libgcc_cmp_return mode.
10252
10253 2008-02-15 Jakub Jelinek <jakub@redhat.com>
10254
10255 PR middle-end/35130
10256 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
10257 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
10258
10259 2008-02-15 Richard Guenther <rguenther@suse.de>
10260 Zdenek Dvorak <ook@ucw.cz>
10261
10262 PR tree-optimization/35164
10263 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
10264 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
10265 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
10266 Only propagate addresses which do not have abnormal SSA_NAMEs
10267 in their operands.
10268
10269 2008-02-15 Joseph Myers <joseph@codesourcery.com>
10270
10271 PR target/35088
10272 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
10273
10274 2008-02-15 Jan Hubicka <jh@suse.cz>
10275
10276 PR middle-end/35149
10277 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
10278
10279 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10280
10281 PR middle-end/34621
10282 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
10283 when calculating alignment_pad.
10284
10285 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
10286
10287 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
10288 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
10289 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
10290 and STACK_BOUNDARY define.
10291
10292 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
10293
10294 PR preprocessor/35061
10295 * c-pragma.c (handle_pragma_pop_macro): Check that
10296 pushed_macro_table has been allocated.
10297
10298 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
10299
10300 PR middle-end/35136
10301 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
10302 (force_gimple_operand): Likewise.
10303 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
10304 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
10305 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
10306 (find_interesting_uses_address): Check addressability and alignment
10307 of the base expression only after substituting bases of IVs into it.
10308
10309 2008-02-14 Michael Matz <matz@suse.de>
10310
10311 PR target/34930
10312 * function.c (instantiate_virtual_regs_in_insn): Reload address
10313 before falling back to reloading the whole operand.
10314
10315 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
10316
10317 * config/s390/s390.c (s390_mainpool_start): Emit the pool
10318 before the first section switch note.
10319
10320 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10321
10322 * doc/bugreport.texi: Update copyright years.
10323 * doc/c-tree.texi: Likewise.
10324 * doc/cfg.texi: Likewise.
10325 * doc/cpp.texi: Likewise.
10326 * doc/cppinternals.texi: Likewise.
10327 * doc/fragments.texi: Likewise.
10328 * doc/frontends.texi: Likewise.
10329 * doc/gcc.texi: Likewise.
10330 * doc/gty.texi: Likewise.
10331 * doc/hostconfig.texi: Likewise.
10332 * doc/implement-c.texi: Likewise.
10333 * doc/libgcc.texi: Likewise.
10334 * doc/loop.texi: Likewise.
10335 * doc/makefile.texi: Likewise.
10336 * doc/options.texi: Likewise.
10337 * doc/passes.texi: Likewise.
10338 * doc/rtl.texi: Likewise.
10339 * doc/sourcebuild.texi: Likewise.
10340 * doc/standards.texi: Likewise.
10341 * doc/tree-ssa.texi: Likewise.
10342 * doc/trouble.texi: Likewise.
10343
10344 * doc/extend.texi: Use @: or add comma where appropriate.
10345 * doc/invoke.texi: Likewise.
10346 * doc/tm.texi: Likewise.
10347
10348 2008-02-14 Alan Modra <amodra@bigpond.net.au>
10349
10350 PR target/34393
10351 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
10352 to a reg.
10353
10354 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
10355
10356 * doc/md.texi (clz, ctz): Add reference.
10357 * doc/rtl.texi (clz, ctz): Likewise.
10358
10359 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10360
10361 PR other/35148
10362 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
10363 srcdir.
10364
10365 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
10366
10367 * config/s390/s390.c (struct constant_pool): New field
10368 emit_pool_after added.
10369 (s390_mainpool_start): Set the emit_pool_after flag according
10370 to the section switch notes.
10371 (s390_mainpool_finish): Consider emit_pool_after when emitting
10372 the literal pool at the end of the function.
10373 (s390_chunkify_start): Force literal pool splits at section
10374 switch notes.
10375
10376 2008-02-13 Michael Matz <matz@suse.de>
10377
10378 PR debug/35065
10379 * var-tracking.c (clobber_variable_part): Correctly traverse the
10380 list.
10381
10382 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10383
10384 PR 29673
10385 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
10386 Add -fdump-ipa-inline.
10387 * tree-dump.c (dump_files): Remove tree-inlined dump.
10388 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
10389
10390 2008-02-12 Richard Guenther <rguenther@suse.de>
10391
10392 PR tree-optimization/35171
10393 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
10394 default defs.
10395
10396 2008-02-12 Richard Guenther <rguenther@suse.de>
10397
10398 PR middle-end/35163
10399 * fold-const.c (fold_widened_comparison): Use get_unwidened in
10400 value-preserving mode. Disallow final truncation.
10401
10402 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
10403
10404 PR middle-end/35136
10405 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
10406 code from here to...
10407 (force_gimple_operand): ...here.
10408
10409 2008-02-12 Jakub Jelinek <jakub@redhat.com>
10410
10411 PR c++/35144
10412 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
10413 non-compatible pointers.
10414 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
10415 different FIELD_DECLs, try harder by comparing field offsets, sizes
10416 and types.
10417
10418 PR inline-asm/35160
10419 * function.c (match_asm_constraints_1): Don't replace the same input
10420 multiple times.
10421
10422 2008-02-12 Anatoly Sokolov <aesok@post.ru>
10423
10424 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
10425 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
10426 (expand_epilogue): Restore RAMPZ register.
10427 * config/avr/avr.md (RAMPZ_ADDR): New constant.
10428
10429 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
10430
10431 * config/i386/cygwin.asm: (__alloca): Correct calling
10432 convention and alignment.
10433 (__chkstk): Force 8 byte stack alignment.
10434
10435 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
10436 Richard Guenther <rguenther@suse.de>
10437
10438 PR tree-optimization/33992
10439 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
10440 the zero we compare against.
10441
10442 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
10443
10444 PR libfortran/35063
10445 * gthr-win32.h (__gthread_mutex_destroy_function): New function
10446 to CloseHandle after unlocking to prevent accumulation of handle
10447 count.
10448
10449 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10450
10451 PR middle_end/34150
10452 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
10453 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
10454 and update LABEL_NUSES during and after reload.
10455
10456 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
10457
10458 PR middle-end/34627
10459 * combine.c (simplify_if_then_else): Make sure the comparison is
10460 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
10461
10462 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
10463
10464 PR bootstrap/35051
10465 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
10466 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
10467 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
10468 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
10469 * tree.h (get_type_static_bounds): Likewise.
10470
10471 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10472
10473 * doc/invoke.texi (Option Summary, C++ Dialect Options)
10474 (Objective-C and Objective-C++ Dialect Options, Warning Options):
10475 Make -Wfoo language annotations match what the compiler outputs.
10476
10477 2008-02-08 Sa Liu <saliu@de.ibm.com>
10478
10479 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
10480 intrinsics spu_convts, spu_convtu, spu_convtf.
10481
10482 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
10483
10484 * doc/extend.texi (Function Attributes) <noinline>: Mention
10485 asm ("") as method to keep calls.
10486
10487 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10488
10489 PR other/32754
10490 * doc/options.texi (Options): Replace references to opts.sh with
10491 optc-gen.awk.
10492 * opts-common.c: Likewise.
10493 * optc-gen.awk: Likewise.
10494
10495 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
10496
10497 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
10498
10499 2008-02-07 Richard Henderson <rth@redhat.com>
10500
10501 PR rtl-opt/33410
10502 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
10503 EXPR_LIST for the REG_EQUAL instead of a comparison with a
10504 funny mode.
10505
10506 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
10507
10508 PR tree-optimization/35085
10509 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
10510 for operand entry oe2 in addition to operand entry oe3 in order to
10511 expose more opportunities for vectorizer sum reduction.
10512
10513 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10514
10515 PR other/35107
10516 * Makefile.in (LIBS): Remove $(GMPLIBS).
10517 (cc1-dummy, cc1): Add $(GMPLIBS).
10518
10519 2008-02-06 Jan Hubicka <jh@suse.cz>
10520
10521 PR target/23322
10522 * i386.md (moddf_integer): Do not produce partial memory stalls for
10523 targets where it hurts.
10524
10525 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
10526
10527 PR target/35083
10528 * optabs.c (expand_float): Do not check for decimal modes when
10529 expanding unsigned integer through signed conversion.
10530
10531 2008-02-06 Nick Clifton <nickc@redhat.com>
10532
10533 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
10534 inside the clobber with a match_operand and duplicated operand
10535 number in the constraint.
10536 (ineqbranchsi): Delete redundant comment.
10537
10538 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
10539
10540 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
10541 builtin_define ("__USE_INIT_FINI__").
10542 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
10543 -msx multilibs.
10544 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
10545
10546 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10547
10548 PR documentation/30330
10549 * doc/invoke.texi (C++ Dialect Options)
10550 (Objective-C and Objective-C++ Dialect Options, Warning Options):
10551 For each warning option -Wfoo that allows -Wno-foo, ensure both
10552 -Wfoo and -Wno-foo are listed in the option index. Fix index
10553 entry of -Wswitch-default, index -Wnormalized= including the
10554 `=', and -Wlarger-than-@var{len} including @var{len}.
10555
10556 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
10557
10558 * config/i386/i386.md (floatunssisf2): Use
10559 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
10560 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
10561 Macroize expander using MODEF mode iterator.
10562
10563 2008-02-05 Diego Novillo <dnovillo@google.com>
10564
10565 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
10566
10567 PR 33738
10568 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
10569
10570 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10571
10572 PR other/35070
10573 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
10574
10575 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
10576
10577 PR target/35084
10578 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
10579 to indicate if a message should be generated.
10580 (init_cumulative_args): Updated.
10581 (function_value_32): Likewise.
10582
10583 2008-02-05 Joseph Myers <joseph@codesourcery.com>
10584
10585 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
10586
10587 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
10588
10589 PR target/35083
10590 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
10591 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
10592
10593 2008-02-04 Diego Novillo <dnovillo@google.com>
10594
10595 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
10596
10597 PR 33738
10598 * tree-vrp.c (vrp_evaluate_conditional): With
10599 -Wtype-limits, emit a warning when comparing against a
10600 constant outside the natural range of OP0's type.
10601
10602 2008-02-04 Richard Guenther <rguenther@suse.de>
10603
10604 PR middle-end/33631
10605 * expr.c (count_type_elements): Give for unions instead of
10606 guessing.
10607
10608 2008-02-04 Richard Guenther <rguenther@suse.de>
10609
10610 PR middle-end/35043
10611 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
10612 to TYPE_DOMAINs base type instead of using bitsizetype here.
10613
10614 2008-02-03 Jason Merrill <jason@redhat.com>
10615
10616 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
10617
10618 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10619
10620 PR other/29972
10621 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
10622 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
10623 (RS/6000 and PowerPC Options): Fix typos and markup.
10624 * doc/passes.texi (Tree-SSA passes): Likewise.
10625
10626 2008-02-02 Michael Matz <matz@suse.de>
10627
10628 PR target/35045
10629 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
10630 from record_last_reg_set_info.
10631 (record_last_reg_set_info): Take an RTX argument, iterate over all
10632 constituent hardregs.
10633 (record_last_set_info, record_opr_changes): Change calls to
10634 new signature or to record_last_reg_set_info_regno.
10635
10636 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
10637
10638 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
10639
10640 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
10641
10642 PR rtl-optimization/34773
10643 * reg-notes.def (EQUAL): Mention significance of combination of
10644 REG_EQUAL and REG_RETVAL.
10645 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
10646 insn that has a REG_RETVAL.
10647
10648 2008-02-01 Roger Sayle <roger@eyesopen.com>
10649
10650 PR bootstrap/33781
10651 * configure.ac (--enable-fixed-point): Disable unless explicitly
10652 requested on IRIX.
10653 * configure: Regenerate.
10654
10655 2008-02-01 Richard Guenther <rguenther@suse.de>
10656
10657 PR other/35042
10658 * invoke.texi (-finline-limit): Remove no longer true parts
10659 of the documentation. Note that there is no default value.
10660
10661 2008-02-01 Andrew Pinski <pinskia@gmail.com>
10662 Mark Mitchell <mark@codesourcery.com>
10663 Ben Elliston <bje@au.ibm.com>
10664
10665 PR c/29326
10666 * doc/extend.texi (Other Builtins): Document.
10667
10668 2008-01-31 Tom Browder <tom.browder@gmail.com>
10669
10670 * doc/c-tree.texi (Types): Fix grammar.
10671 (Expression trees): Ditto.
10672 * doc/passes.texi (Tree-SSA passes): Ditto.
10673
10674 * doc/configterms.texi (Configure Terms): Fix typo.
10675 * doc/cpp.texi (Common Predefined Macros): Ditto.
10676 * doc/md.texi (Machine Constraints): Ditto.
10677
10678 * doc/makefile.texi (Makefile): Add comma.
10679
10680 2008-01-31 Tom Browder <tom.browder@gmail.com>
10681 Gerald Pfeifer <gerald@pfeifer.com>
10682
10683 * doc/sourcebuild.texi (Front End): Remove references to CVS
10684 and CVSROOT/modules.
10685 (Texinfo Manuals): Replace reference to CVS by one to SVN.
10686 (Back End): Remove reference to CVS.
10687
10688 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
10689
10690 PR target/34900
10691 * config/mips/mips.c (gen_load_const_gp): New function, taking a
10692 comment from...
10693 (mips16_gp_pseudo_reg): ...here.
10694 * config/mips/mips.md (load_const_gp): Replace with...
10695 (load_const_gp_<mode>): ...this :P-based insn.
10696
10697 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10698
10699 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
10700 options. Minor fixes.
10701 (-std): Move reference to standards closer to where language
10702 standards are first mentioned.
10703
10704 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
10705
10706 PR rtl-optimization/34995
10707 * reload.c (alternative_allows_const_pool_ref): Take an rtx
10708 parameter and return a bool. If the rtx parameter is nonnull,
10709 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
10710 (find_reloads): Update call accordingly. Pass the new operand
10711 if it needed no address reloads, otherwise pass null.
10712
10713 2008-01-30 Richard Henderson <rth@redhat.com>
10714
10715 PR c/34993
10716 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
10717 for unbounded arrays.
10718
10719 2008-01-30 Silvius Rus <rus@google.com>
10720
10721 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
10722
10723 2008-01-30 Jan Hubicka <jh@suse.cz>
10724
10725 PR target/34982
10726 * i386.c (init_cumulative_args): Use real function declaration when
10727 calling locally.
10728
10729 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
10730
10731 PR rtl-optimization/34998
10732 * global.c (build_insn_chain): Treat non-subreg_lowpart
10733 SUBREGs of pseudos as clobbering all the words covered by the
10734 SUBREG, not just all the bytes.
10735 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
10736 original df_ref rather than an extract parameter.
10737 (global_conflicts): Update call accordingly.
10738
10739 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
10740
10741 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
10742 the overflow check to make it easier to read.
10743 (__fixtfdi): Change the type of the ll member in union
10744 long_double to UDItype_x.
10745
10746 2008-01-30 Jakub Jelinek <jakub@redhat.com>
10747
10748 PR middle-end/34969
10749 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
10750 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
10751 * tree-inline.c (fold_marked_statements): Call
10752 cgraph_update_edges_for_call_stmt if folding a call statement.
10753 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
10754 debug_generic_stmt calls, reset it back afterwards.
10755
10756 PR c/35017
10757 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
10758 static decls.
10759 * c-typeck.c (build_external_ref): Don't pedwarn about
10760 static vars in current function's scope.
10761
10762 2008-01-29 Joseph Myers <joseph@codesourcery.com>
10763
10764 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
10765
10766 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
10767
10768 PR c/35002
10769 * ipa-struct-reorg.c: Fix spelling.
10770 * params.def: Ditto.
10771
10772 2008-01-29 Richard Guenther <rguenther@suse.de>
10773
10774 PR middle-end/35006
10775 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
10776 field.
10777 * tree-inline.c (remap_type): Increment remapping_type_depth
10778 around remapping types.
10779 (copy_body_r): Only add referenced variables if they are referenced
10780 from code, not types.
10781
10782 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
10783
10784 PR c++/34055
10785 PR c++/34103
10786 PR c++/34219
10787 PR c++/34606
10788 PR c++/34753
10789 PR c++/34754
10790 PR c++/34755
10791 PR c++/34919
10792 PR c++/34961
10793 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
10794 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
10795
10796 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
10797
10798 PR target/34412
10799 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
10800 pointer for tiny stack.
10801
10802 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
10803
10804 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
10805
10806 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
10807
10808 * config/vx-common.h: Fix typo in comment.
10809
10810 2008-01-28 Ian Lance Taylor <iant@google.com>
10811
10812 PR c++/34862
10813 PR c++/33407
10814 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
10815 coalesce pointers if they have different DECL_NO_TBAA_P values.
10816 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
10817 between variables with different DECL_NO_TBAA_P values.
10818
10819 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
10820
10821 PR 31535
10822 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
10823 are not legitimate small data references on SPE targets.
10824
10825 2008-01-28 David Daney <ddaney@avtrex.com>
10826
10827 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
10828
10829 2008-01-28 David Daney <ddaney@avtrex.com>
10830
10831 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
10832
10833 2008-01-27 Joseph Myers <joseph@codesourcery.com>
10834
10835 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
10836 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
10837 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
10838 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
10839 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
10840 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
10841 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
10842 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
10843
10844 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
10845
10846 * basic-block.h (condjump_equiv_p): Fix comment.
10847
10848 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
10849
10850 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
10851 print_generic_stmt_indented): Fix comment.
10852
10853 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
10854
10855 * configure.ac (__stack_chk_fail): Add detecion for availability
10856 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
10857 * configure: Regenerate.
10858
10859 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
10860
10861 PR middle-end/34688
10862 * final.c (output_addr_const): Handle TRUNCATE.
10863
10864 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
10865
10866 PR target/34711
10867 * tree-ssa-loop-ivopts.c (comp_cost): New type.
10868 (zero_cost, infinite_cost): New constants.
10869 (struct cost_pair): Change type of cost to comp_cost.
10870 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
10871 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
10872 New functions.
10873 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
10874 split_address_cost, ptr_difference_cost, difference_cost,
10875 get_computation_cost_at, get_computation_cost,
10876 determine_use_iv_cost_generic, determine_use_iv_cost_address,
10877 determine_use_iv_cost_condition, determine_use_iv_costs,
10878 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
10879 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
10880 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
10881 Change type of cost to comp_cost.
10882 (determine_iv_cost): Increase cost of non-original ivs, instead
10883 of decreasing the cost of original ones.
10884 (get_address_cost): Indicate the complexity of the addressing mode
10885 in comp_cost.
10886 (try_add_cand_for): Prefer using ivs not specific to some object.
10887 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
10888
10889 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
10890 Janis Johnson <janis187@us.ibm.com>
10891
10892 PR target/34814
10893 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
10894 (TARGET_INSTANTIATE_DECLS): Likewise.
10895 * target.h (expand_to_rtl_hook): New target hook.
10896 (instantiate_decls): Likewise.
10897 * function.c (instantiate_decl): Make non-static. Rename to...
10898 (instantiate_decl_rtl): ... this.
10899 (instantiate_expr): Use instantiate_decl_rtl.
10900 (instantiate_decls_1): Likewise.
10901 (instantiate_decls): Likewise.
10902 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
10903 * function.h (instantiate_decl_rtl): Add prototype.
10904 * cfgexpand.c (target.h): New include.
10905 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
10906 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
10907 (TARGET_INSTANTIATE_DECLS): Likewise.
10908 (TARGET_INITIALIZER): New target hooks added.
10909 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
10910 New prototype.
10911 * config/rs6000/rs6000.c (tree-flow.h): New include.
10912 (machine_function): Add sdmode_stack_slot field.
10913 (rs6000_alloc_sdmode_stack_slot): New function.
10914 (rs6000_instantiate_decls): Likewise.
10915 (rs6000_secondary_memory_needed_rtx): Likewise.
10916 (rs6000_check_sdmode): Likewise.
10917 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
10918 (TARGET_INSTANTIATE_DECLS): Likewise.
10919 (rs6000_hard_regno_mode_ok): Allow SDmode.
10920 (num_insns_constant): Likewise. Handle _Decimal32 constants.
10921 (rs6000_emit_move): Handle SDmode.
10922 (function_arg_advance): Likewise.
10923 (function_arg): Likewise.
10924 (rs6000_gimplify_va_arg): Likewise. Add special handling of
10925 SDmode var args for 32-bit compiles.
10926 (rs6000_secondary_reload_class): Handle SDmode.
10927 (rs6000_output_function_epilogue): Likewise.
10928 (rs6000_function_value): Simplify if statement.
10929 (rs6000_libcall_value): Likewise.
10930 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
10931 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
10932 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
10933 (movsd_hardfloat): New define_insn.
10934 (movsd_softfloat): Likewise.
10935 (movsd_store): Likewise.
10936 (movsd_load): Likewise.
10937 (extendsddd2): Likewise.
10938 (extendsdtd2): Likewise.
10939 (truncddsd2): Likewise.
10940 (movdd_hardfloat64): Fixup comment.
10941 (UNSPEC_MOVSD_LOAD): New constant.
10942 (UNSPEC_MOVSD_STORE): Likewise.
10943
10944 2008-01-26 Jakub Jelinek <jakub@redhat.com>
10945
10946 PR c++/34965
10947 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
10948 TRUTH_XOR_EXPR.
10949 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
10950 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
10951 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
10952 and TRUTH_XOR_EXPR.
10953
10954 2008-01-26 David Edelsohn <edelsohn@gnu.org>
10955
10956 PR target/34794
10957 * config.gcc: Separate AIX 5.3 from AIX 6.1.
10958 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
10959 __LONGDOUBLE128 too.
10960 * config/rs6000/aix61.h: New file.
10961
10962 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
10963
10964 PR rtl-optimization/34959
10965 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
10966 popcount and parity rtxes the same mode as their operand.
10967 Truncate or extend the result to the return value's mode
10968 if necessary.
10969
10970 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
10971
10972 PR target/34981
10973 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
10974 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
10975 to GOT_VERSION_REGNUM.
10976 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
10977 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
10978 * config/mips/mips.c (mips_emit_call_insn): New function.
10979 (mips_call_tls_get_addr): Call mips_expand_call directly.
10980 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
10981 emit_call_insn.
10982 (mips16_build_call_stub): Likewise. Return the call insn or null.
10983 (mips_expand_call): Update the call to mips16_build_call_stub
10984 accordingly and a remove redundant condition. Assert that MIPS16
10985 stubs do not use lazy binding. Use mips_emit_call_insn and return
10986 the call insn.
10987 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
10988 TARGET_USE_GOT.
10989 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
10990 (mips_avoid_hazard): Remove hazard_set handling.
10991 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
10992 (UNSPEC_RESTORE_GP): ...this.
10993 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
10994 (FAKE_CALL_REGNO): Rename to...
10995 (GOT_VERSION_REGNUM): ...this.
10996 (type): Add "ghost" value. Add an associated insn reservation.
10997 (hazard_set): Remove.
10998 (exception_receiver): Rename to...
10999 (restore_gp): ...this and update the unspec identifier accordingly.
11000 (exception_receiver, nonlocal_got_receiver): New expanders.
11001 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
11002 FAKE_CALL_REGNO. Remove hazard_set attribute.
11003 (set_got_version, update_got_version): New patterns.
11004
11005 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
11006
11007 PR target/34970
11008 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
11009
11010 2008-01-25 Joseph Myers <joseph@codesourcery.com>
11011
11012 PR other/31955
11013 * doc/install.texi2html: Generate gcc-vers.texi.
11014
11015 2008-01-25 DJ Delorie <dj@redhat.com>
11016
11017 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
11018
11019 2008-01-25 Joseph Myers <joseph@codesourcery.com>
11020
11021 * config/c4x: Remove directory.
11022 * config.gcc (crx-*, mt-*): Mark obsolete.
11023 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
11024 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
11025 sh-*-rtemscoff*): Remove cases.
11026 * defaults.h (C4X_FLOAT_FORMAT): Remove.
11027 * real.c (encode_c4x_single, decode_c4x_single,
11028 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
11029 c4x_extended_format): Remove.
11030 * real.h (c4x_single_format, c4x_extended_format): Remove.
11031 * doc/extend.texi (interrupt, naked): Remove mention of attributes
11032 on C4x.
11033 (Pragmas): Remove comment about c4x pragmas.
11034 * doc/install.texi (c4x): Remove target-specific instructions.
11035 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
11036 * doc/md.texi (Machine Constraints): Remove C4x documentation.
11037 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
11038 refer to C4x source files as examples.
11039 (C4X_FLOAT_FORMAT): Remove documentation.
11040
11041 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
11042
11043 * config/bfin/bfin.c (override_options): Reorder tests so that
11044 flag_pic gets enabled for -msep-data.
11045
11046 2008-01-25 Richard Guenther <rguenther@suse.de>
11047
11048 PR middle-end/32244
11049 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
11050 to its bitfield precision if required.
11051
11052 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11053
11054 PR middle-end/33880
11055 * tree-nested.c (walk_omp_for): New function.
11056 (convert_nonlocal_reference, convert_local_reference): Call
11057 walk_omp_for on OMP_FOR.
11058 (convert_call_expr): Call walk_body on OMP_FOR's
11059 OMP_FOR_PRE_INIT_BODY.
11060
11061 2008-01-25 Richard Guenther <rguenther@suse.de>
11062
11063 PR tree-optimization/34966
11064 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
11065 default defs and PHI_NODEs we have to insert after the
11066 defining statement.
11067
11068 2008-01-24 Nick Clifton <nickc@redhat.com>
11069
11070 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
11071 Provide a default definition.
11072 (LIBGCC2_UNITS_PER_WORD): Likewise.
11073
11074 * config/stormy16/stormy16.c: Include df.h for the prototype
11075 for df_regs_ever_live_p.
11076 (xstormy16_expand_builtin_va_start): Convert the stack offset
11077 into a component_ref and then use POINTER_PLUS_EXPR to add it
11078 to the incoming_virtual_args_rtx.
11079 (xstormy16_gimplify_va_arg_expr): Rename to
11080 xstormy16_gimplify_va_arg_expr.
11081 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
11082 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
11083 xstormy16_gimplify_va_arg_expr.
11084 Fix up some formatting issues.
11085
11086 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
11087 Move to predicates.md.
11088 (xs_hi_general_operand): Likewise.
11089 (xs_hi_nonmemory_operand): Likewise.
11090 * config/stormy16/predicates.md:
11091 (xstormy16_carry_plus_operand): New predicate.
11092 (xs_hi_general_operand): New predicate.
11093 (xs_hi_nonmemory_operand): New predicate.
11094 * config/stormy16/stormy16-protos.h:
11095 (xstormy16_carry_plus_operand): Delete prototype.
11096 (xs_hi_general_operand): Likewise.
11097 (xs_hi_nonmemory_operand): Likewise.
11098
11099 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
11100 modifiers as they are no longer needed and they can trigger
11101 reload spill failures.
11102
11103 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
11104 with a match_operand in order to help reload.
11105
11106 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
11107 constraint with 'e' for the 8th alternative as this version of
11108 the mov.w instruction only accepts the lower 8 registers.
11109
11110 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
11111
11112 PR target/34856
11113 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
11114 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
11115 vector elements.
11116
11117 2008-01-25 Jakub Jelinek <jakub@redhat.com>
11118
11119 PR middle-end/33333
11120 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
11121
11122 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
11123
11124 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
11125 New functions.
11126 (remove_structure): Update allocations list before removing structure.
11127
11128 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
11129
11130 * ipa-struct-reorg.c (is_safe_cond_expr,
11131 create_new_stmts_for_cond_expr): Use integer_zerop function,
11132 that recognize not only zero-pointer, but zero-integer too.
11133
11134 2008-01-25 Ben Elliston <bje@au.ibm.com>
11135
11136 PR other/22232
11137 * fixproto: Escape "." in sed expression that strips leading "./".
11138
11139 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
11140
11141 PR driver/34904
11142 * gcc.c (SWITCH_OK): Removed.
11143 (SWITCH_LIVE): Changed to bit.
11144 (SWITCH_FALSE): Likewise.
11145 (SWITCH_IGNORE): Likewise.
11146 (switchstr): Change live_cond to unsigned int.
11147 (process_command): Replace SWITCH_OK with 0.
11148 (do_self_spec): Likewise.
11149 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
11150 (give_switch): Likewise.
11151 (used_arg): Likewise.
11152 (do_spec_1): Set the SWITCH_IGNORE bit.
11153 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
11154 bits. Set the SWITCH_LIVE bit.
11155
11156 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
11157
11158 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
11159
11160 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
11161
11162 PR tree-optimization/34472
11163 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
11164 parameter to a "bool *" and set *DATA to false if there is
11165 an unsafe access. Do not delete the structure here.
11166 (check_cond_exprs): Delete it here instead.
11167 (check_cond_exprs, exclude_cold_structs): Do not increase
11168 I when removing a structure.
11169
11170 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
11171
11172 PR target/34856
11173 * config/i386/i386.c (ix86_expand_vector_init): Consider only
11174 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
11175
11176 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
11177
11178 PR middle-end/34934
11179 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
11180 a fixed vector for stack.
11181
11182 2008-01-24 Ben Elliston <bje@au.ibm.com>
11183
11184 PR c++/25701
11185 * doc/gcc.texi (Software development): Add a direntry for g++.
11186
11187 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
11188
11189 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
11190 stale and straggling -fforce-addr comments above.
11191
11192 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
11193 define.
11194 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
11195 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
11196
11197 2008-01-23 Michael Matz <matz@suse.de>
11198
11199 PR debug/34895
11200 * dwarf2out.c (force_type_die): Use modified_type_die instead of
11201 gen_type_die.
11202
11203 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
11204
11205 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
11206 malloc result type.
11207
11208 2008-01-23 Anatoly Sokolov <aesok@post.ru>
11209
11210 * config/avr/avr.c (avr_current_arch): New variable.
11211 (avr_arch_types): Add 'avr31' and 'avr51' entries.
11212 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
11213 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
11214 (avr_override_options): Init 'avr_current_arch'.
11215 (base_arch_s): Move from here...
11216 * config/avr/avr.h (base_arch_s): ... here. Add new members
11217 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
11218 'mega' to 'have_jmp_call'.
11219 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
11220 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
11221 macros.
11222 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
11223 architectures.
11224 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
11225 MULTILIB_MATCHES): (Ditto.).
11226
11227 2008-01-23 Richard Guenther <rguenther@suse.de>
11228
11229 PR middle-end/31529
11230 * cgraphunit.c (cgraph_reset_node): Always mark the node
11231 not reachable if it is not queued already.
11232
11233 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
11234
11235 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
11236 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
11237 (cputype_selected): New static variable.
11238 (bfin_handle_option): Set it if -mcpu is used.
11239 (override_option): Select default set of workarounds if no cpu type
11240 selected on the command line.
11241 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
11242
11243 From Michael Frysinger <michael.frysinger@analog.com>
11244 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
11245 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
11246
11247 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
11248 for bf547, bf523, bf524, and bf526.
11249 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
11250 bf526.
11251 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11252 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
11253 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
11254 __ADSPBF547__ and __ADSPBF54x__ for bf547.
11255 * doc/invoke.texi (Blackfin Options): Document that
11256 -mcpu now accept bf547, bf523, bf524, and bf526.
11257
11258 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
11259
11260 PR rtl-optimization/34628
11261 * combine.c (try_combine): Stop and undo after the first combination
11262 if an autoincrement side-effect on the first insn has effectively
11263 been lost.
11264
11265 2008-01-22 David Edelsohn <edelsohn@gnu.org>
11266
11267 PR target/34529
11268 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
11269 Offset addresses are not valid for Altivec or paired float modes.
11270
11271 2008-01-22 Jakub Jelinek <jakub@redhat.com>
11272
11273 PR c++/34607
11274 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
11275 if DECL_INITIAL (decl) is error_mark_node.
11276
11277 PR c++/34914
11278 * c-common.c (handle_vector_size_attribute): Only allow
11279 integral, scalar float and fixed point types. Handle OFFSET_TYPE
11280 the same way as pointer, array etc. types.
11281 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
11282
11283 PR c++/34917
11284 * tree.c (build_type_attribute_qual_variant): Call
11285 build_qualified_type if attributes are equal, but quals are not.
11286
11287 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11288
11289 PR 32102
11290 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
11291 * flags.h (warn_strict_aliasing): Remove.
11292 (warn_strict_overflow): Remove.
11293 * opts.c (warn_strict_aliasing): Remove.
11294 (warn_strict_overflow): Remove.
11295 * c-opts.c (c_common_handle_option): -Wall only sets
11296 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
11297 (c_common_post_options): Give default values to -Wstrict-aliasing
11298 and -Wstrict-overflow if they are uninitialized.
11299 * common.opt (Wstrict-aliasing): Specify Var and Init.
11300 (Wstrict-overflow): Likewise.
11301
11302 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
11303
11304 PR rtl-optimization/26854
11305 PR rtl-optimization/34400
11306 PR rtl-optimization/34884
11307 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
11308 DF_RD->gen.
11309 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
11310 (df_rd_bb_info.expanded_lr_out): Deleted
11311 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
11312 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
11313 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
11314 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
11315 Removed code to allocate, initialize or free expanded_lr_out.
11316 (df_rd_bb_local_compute_process_def): Restructured to make more
11317 understandable.
11318 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
11319 sets if the sets are being trimmed.
11320
11321 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
11322
11323 PR bootstrap/32287
11324 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
11325 (as_vers): Likewise.
11326 * configure: Regenerated.
11327
11328 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11329
11330 PR middle-end/33092
11331 * tree-pass.h (pass_build_alias): New pass.
11332 * tree-ssa-alias.c (gate_build_alias): New.
11333 (pass_build_alias): New.
11334 * passes.c (init_optimization_passes): Add pass_build_alias after
11335 pass_create_structure_vars.
11336
11337 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
11338
11339 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
11340 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
11341 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
11342 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
11343 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
11344 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
11345 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
11346 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
11347 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
11348 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
11349 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
11350 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
11351 * config/s390/s390.md (FP_ALL): New mode iterator.
11352 (_d): New mode attribute.
11353 ("*signbit<mode>2>"): Changed mode of first operand.
11354 ("isinf<mode>2"): Changed mode of first operand.
11355 ("*TDC_insn"): Adaptation for DFP modes.
11356
11357 2008-01-22 Ben Elliston <bje@au.ibm.com>
11358
11359 * tree.c (check_qualified_type): Improve function description.
11360
11361 2008-01-21 Jason Merrill <jason@redhat.com>
11362
11363 PR c++/34196
11364 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
11365 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
11366 if it is set.
11367
11368 2008-01-21 DJ Delorie <dj@redhat.com>
11369
11370 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
11371 return zero.
11372
11373 2008-01-21 Richard Guenther <rguenther@suse.de>
11374
11375 PR middle-end/34856
11376 * tree-cfg.c (verify_expr): Allow all invariant expressions
11377 instead of just constant class ones as reference argument.
11378 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
11379 like any other constant.
11380 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11381
11382 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
11383
11384 * regmove.c (fixup_match_1): Update call crossed frequencies.
11385
11386 2008-01-21 Richard Guenther <rguenther@suse.de>
11387
11388 PR c/34885
11389 * tree-inline.c (setup_one_parameter): Deal with mismatched
11390 types using a VIEW_CONVERT_EXPR.
11391
11392 2008-01-21 Alon Dayan <alond@il.ibm.com>
11393 Olga Golovanevsky <olga@il.ibm.com>
11394
11395 PR tree-optimization/34701
11396 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
11397 when the structure size is not a power of 2.
11398
11399 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
11400
11401 * doc/install.texi: Add doc for --enable-checking=df.
11402
11403 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
11404
11405 PR rtl-optimization/34808
11406 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
11407
11408 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
11409
11410 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
11411 input.
11412
11413 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
11414
11415 PR rtl-optimization/26854
11416 PR rtl-optimization/34400
11417 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
11418 DF_RD->gen.
11419 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
11420 (df_rd_bb_info.expanded_lr_out): New.
11421 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
11422 * loop_iv.c (iv_analysis_loop_init): Ditto.
11423 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
11424 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
11425 Added code to allocate, initialize or free expanded_lr_out.
11426 (df_rd_bb_local_compute_process_def): Restructured to make
11427 more understandable.
11428 (df_rd_confluence_n): Add code to do nothing with fake edges and
11429 code to no apply invalidate_by_call sets if the sets are being trimmed.
11430 (df_lr_local_finalize): Renamed to df_lr_finalize.
11431 (df_live_local_finalize): Renamed to df_live_finalize.
11432
11433 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
11434
11435 PR target/34831
11436 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
11437 deciding whether to use reciprocal instructions.
11438
11439 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
11440
11441 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
11442 dwarf2out_note_section_used if cold_text_section is NULL.
11443
11444 2008-01-19 Jakub Jelinek <jakub@redhat.com>
11445
11446 PR gcov-profile/34610
11447 * tree-cfg.c (make_edges): Mark both outgoing edges from
11448 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
11449 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
11450 from OMP_FOR and OMP_CONTINUE outgoing edges.
11451
11452 * tree-profile.c (tree_profiling): Return early if
11453 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
11454 at the end.
11455 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
11456 from cfun to child_cfun.
11457 * function.h (struct function): Add after_tree_profile bit.
11458
11459 2008-01-19 Anatoly Sokolov <aesok@post.ru>
11460
11461 * config/avr/avr.S (_exit): Disable interrupt.
11462
11463 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
11464 Steven Bosscher <stevenb.gcc@gmail.com>
11465
11466 PR rtl-optimization/26854
11467 PR rtl-optimization/34400
11468 * df-problems.c (df_live_scratch): New scratch bitmap.
11469 (df_live_alloc): Allocate df_live_scratch when doing df_live.
11470 (df_live_reset): Clear the proper bitmaps.
11471 (df_live_bb_local_compute): Only process the artificial defs once
11472 since the order is not important.
11473 (df_live_init): Init the df_live sets only with the variables
11474 found live by df_lr.
11475 (df_live_transfer_function): Use the df_lr sets to prune the
11476 df_live sets as they are being computed.
11477 (df_live_free): Free df_live_scratch.
11478
11479 2008-01-18 Ian Lance Taylor <iant@google.com>
11480
11481 * common.opt: Add fmerge-debug-strings.
11482 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
11483 flag_merge_debug_strings rather than flag_merge_constants.
11484 * doc/invoke.texi (Option Summary): Mention
11485 -fmerge-debug-strings.
11486 (Debugging Options): Document -fmerge-debug-strings.
11487
11488 2008-01-18 Ian Lance Taylor <iant@google.com>
11489
11490 PR c++/33407
11491 * tree.h (DECL_IS_OPERATOR_NEW): Define.
11492 (struct tree_function_decl): Add new field operator_new_flag.
11493 * tree-inline.c (expand_call_inline): When inlining a call to
11494 operator new, force the return value to go into a variable, and
11495 set DECL_NO_TBAA_P on that variable.
11496 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
11497
11498 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
11499
11500 PR debug/34484
11501 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
11502 DWARF2_DEBUGGING_INFO.
11503 (dwarf2out_note_section_used): Ditto. Add prototype.
11504 (have_multiple_function_sections, text_section_used,
11505 cold_text_section_used, *cold_text_sections): Move declarations
11506 before their uses.
11507
11508 2008-01-17 Bob Wilson <bob.wilson@acm.org>
11509
11510 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
11511 field and add signal_ra.
11512 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
11513 assignments to frame state pc. Move end of stack check after
11514 MD_FALLBACK_FRAME_STATE_FOR.
11515 (uw_update_context_1): Use frame state signal_regs if set, instead
11516 of checking signal_frame flag.
11517 (uw_update_context): Use frame state signal_ra if set.
11518 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
11519 * config/xtensa/linux-unwind.h: New file.
11520
11521 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
11522
11523 * modulo-sched.c (get_sched_window): Fix comment typo.
11524
11525 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
11526
11527 PR tree-optimization/34648
11528 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
11529
11530 2008-01-17 Anatoly Sokolov <aesok@post.ru>
11531
11532 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
11533 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
11534
11535 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
11536
11537 PR rtl-optimization/34400
11538 * df-core.c (df_worklist_dataflow_overeager,
11539 df_worklist_dataflow_doublequeue): New functions.
11540 (df_worklist_dataflow): Two different worklist solvers.
11541 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
11542 New param.
11543
11544 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11545
11546 PR testsuite/34821
11547 * doc/invoke.texi: Document the dependence on pthread for fopenmp
11548 and ftree-parallelize-loops.
11549
11550 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
11551
11552 PR rtl-optimization/34826
11553 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
11554
11555 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
11556
11557 * global.c (find_reg): Mark the eh regs as used if necessary.
11558 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
11559 * ra.h (struct allocno): no_eh_reg field added. Changed
11560 no_stack_reg type to bitfield.
11561
11562 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
11563
11564 * tree.c (substitute_in_expr): Add missing 'break'.
11565
11566 2008-01-17 Richard Guenther <rguenther@suse.de>
11567
11568 PR tree-optimization/34825
11569 * tree-ssa-math-opts.c (is_division_by): Do not recognize
11570 x / x as division to handle.
11571
11572 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11573
11574 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
11575 "-pthread" is specified.
11576 * pa-hpux11.h (LIB_SPEC): Likewise.
11577
11578 2008-01-16 Janis Johnson <janis187@us.ibm.com>
11579 Peter Bergner <bergner@vnet.ibm.com>
11580
11581 PR rtl-optimization/33796
11582 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
11583
11584 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11585
11586 PR libgfortran/34699
11587 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
11588 static links.
11589 * pa-hpux10.h (LINK_SPEC): Likewise.
11590 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
11591
11592 2008-01-16 Richard Guenther <rguenther@suse.de>
11593
11594 PR middle-end/32628
11595 * fold-const.c (fold_convert_const_int_from_int): Do not
11596 set overflow if that occured only because of a sign extension
11597 change when converting from/to a sizetype with the same
11598 precision and signedness.
11599
11600 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
11601
11602 PR debug/34249
11603 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
11604 location address to the correct place. Update copyright year.
11605
11606 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11607
11608 * lambda-code.c (lambda_transform_legal_p): Handle the case of
11609 no dependences in the dependence_relations vector.
11610
11611 2008-01-16 Jan Hubicka <jh@suse.cz>
11612
11613 PR rtl-optimization/31396
11614 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
11615 * cfg.c (dump_reg_info): Print it.
11616 * regs.h (struct reg_info_t): add freq_calls_crossed.
11617 (REG_FREQ_CALLS_CROSSED): New macro.
11618 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
11619 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
11620 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
11621 regmove_optimize): Update call crossed frequencies.
11622 * local-alloc.c (struct qty): Add freq_calls_crossed.
11623 (alloc_qty): Copute freq_calls_crossed.
11624 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
11625 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
11626 * ra.h (struct allocno): Add freq_calls_crossed.
11627
11628 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11629
11630 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
11631 libgomp when compiling with ftree-parallelize-loops.
11632 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
11633
11634 2008-01-16 Richard Guenther <rguenther@suse.de>
11635
11636 PR tree-optimization/34769
11637 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
11638 * tree.c (int_cst_value): Instead make this function more
11639 permissive in what it accepts as valid input. Document this
11640 function always sign-extends the value.
11641
11642 2008-01-16 Jakub Jelinek <jakub@redhat.com>
11643 Richard Guenther <rguenther@suse.de>
11644
11645 PR c/34668
11646 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
11647 (gimple_fold_indirect_ref_rhs): ... this.
11648 (gimple_fold_indirect_ref): New function with foldings
11649 that preserve lvalueness.
11650 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
11651 * tree-flow.h (gimple_fold_indirect_ref): Declare.
11652 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
11653 to fold an INDIRECT_REF, fall back to the old use of
11654 fold_indirect_ref_1.
11655
11656 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
11657
11658 * tree-data-ref.c (subscript_dependence_tester_1): Call
11659 free_conflict_function.
11660 (compute_self_dependence): Same.
11661
11662 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
11663
11664 PR debug/34249
11665 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
11666 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
11667 function global.
11668 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
11669 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
11670 for DWARF2_UNWIND_INFO targets.
11671
11672 2008-01-16 Richard Guenther <rguenther@suse.de>
11673
11674 PR c/34768
11675 * c-typeck.c (common_pointer_type): Do not merge inconsistent
11676 type qualifiers for function types.
11677
11678 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
11679
11680 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
11681 loop_iterator li from previous commit.
11682
11683 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
11684
11685 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
11686
11687 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
11688
11689 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
11690 (parallelize_loops): Don't parallelize irreducible components.
11691
11692 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11693
11694 PR c++/24924
11695 * c-opts (c_common_post_options): Do not enable CPP
11696 flag_pedantic_errors by default.
11697
11698 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
11699
11700 PR rtl-optimization/31944
11701 * cse.c (remove_pseudo_from_table): New function.
11702 (merge_equiv_classes): Use above function to remove pseudo-registers.
11703 (invalidate): Likewise.
11704
11705 2008-01-13 Richard Guenther <rguenther@suse.de>
11706
11707 PR middle-end/34601
11708 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
11709 instead of TYPE_MODE to deal with calls from expand_one_error_var.
11710
11711 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
11712
11713 * gcse.c (cprop_jump): Call validate_unshare_change instead of
11714 validate_change to unshare the source of the PC set.
11715
11716 2008-01-12 Jan Hubicka <jh@suse.cz>
11717
11718 PR middle-end/32135
11719 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
11720 references above array bounds. This might trigger bounds checks for
11721 pointers to arrays.
11722
11723 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
11724
11725 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
11726 new_replaceable_dependencies.
11727
11728 2008-01-12 Doug Kwan <dougkwan@google.com>
11729
11730 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
11731 instead of OPT_Wreturn_type in warning due to ignored return type
11732 qualifiers.
11733 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
11734 options included in -Wextra.
11735 * c.opt: New option -Wignored_qualifiers.
11736 * doc/invoke.texi (Warning Options, -Wextra): Add new option
11737 -Wignore_qualifiers.
11738 (-Wignored-qualifiers): Document.
11739 (-Wreturn-type): Remove description of functionality now handled
11740 by -Wignored-qualifiers.
11741
11742 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
11743
11744 PR ada/33788
11745 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
11746 NOP_EXPR if it is between integral types with the same precision.
11747
11748 2008-01-12 Jan Hubicka <jh@suse.cz>
11749
11750 PR other/28023
11751 * invoke.texi (max-inline-recursive-depth): Fix default value.
11752
11753 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
11754
11755 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
11756 correct type.
11757
11758 2008-01-11 Bob Wilson <bob.wilson@acm.org>
11759
11760 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
11761
11762 2008-01-11 James E. Wilson <wilson@specifix.com>
11763
11764 PR target/26015
11765 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
11766
11767 2008-01-11 Anatoly Sokolov <aesok@post.ru>
11768
11769 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
11770 save/restore frame pointer register and don't use 'call-prologues'
11771 optimization in function with "OS_task" attribute.
11772
11773 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
11774
11775 PR middle-end/31309
11776 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
11777 when copying to memory.
11778
11779 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
11780
11781 PR rtl-optimization/30905
11782 * cfgcleanup.c: Include dce.h
11783 (crossjumps_occured): New global variable.
11784 (try_crossjump_bb): Exit loop after finding a fallthru edge.
11785 If something changed, set crossjumps_occured to true.
11786 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
11787 Don't add/remove fake edges to exit here...
11788 (cleanup_cfg): ...but do it here, when crossjumping.
11789 Run a fast DCE when successful crossjumps occured in the latest
11790 iteration of try_optimize_cfg.
11791
11792 2008-01-11 Richard Guenther <rguenther@suse.de>
11793
11794 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
11795 (struct vn_unary_op_s): Likewise.
11796 (vn_reference_insert): Free old reference on hash collision.
11797
11798 2008-01-10 Raksit Ashok <raksit@google.com>
11799
11800 PR rtl-optimization/27971
11801 * combine.c (find_split_point): Split PLUS expressions which are
11802 inside a MEM rtx, and whose first operand is complex.
11803
11804 2008-01-10 DJ Delorie <dj@redhat.com>
11805
11806 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
11807 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
11808 (m32c_hard_regno_ok): Call the underlying function.
11809
11810 2008-01-10 Richard Guenther <rguenther@suse.de>
11811
11812 PR middle-end/34683
11813 * tree-cfg.c (tree_merge_blocks): Do not go through the
11814 full-blown folding and stmt updating path if we just deal
11815 with virtual operands.
11816 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
11817 test for abnormal SSA_NAMEs.
11818
11819 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
11820
11821 PR middle-end/34641
11822 * reload.c (push_reload): Add assertions. All constants from
11823 reg_equiv_constant should have been used for replacing the respective
11824 pseudo earlier.
11825 (find_reloads_address): Invoke find_reloads_address_part for
11826 constant taken from the reg_equiv_constant array.
11827
11828 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
11829
11830 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
11831 field (valnum) the first in the struct. Replace bools with
11832 unit bit fields.
11833
11834 2008-01-10 Richard Guenther <rguenther@suse.de>
11835
11836 PR tree-optimization/34651
11837 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
11838 types and ordering for masking and converting.
11839
11840 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
11841
11842 PR tree-optimization/34017
11843 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
11844 also for PHI_NODE expressions.
11845
11846 2008-01-09 Jan Hubicka <jh@suse.cz>
11847
11848 PR tree-optimization/34708
11849 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
11850 based on number of case labels.
11851 (init_inline_once): Remove switch_cost.
11852 * tree-inline.h (eni_weights_d): Remove switch_cost.
11853
11854 2008-01-09 Richard Guenther <rguenther@suse.de>
11855 Andrew Pinski <andrew_pinski@playstation.sony.com>
11856
11857 PR middle-end/30132
11858 * gimplify.c (gimplify_cond_expr): Do not create an addressable
11859 temporary if an rvalue is ok or an lvalue is not required.
11860
11861 2008-01-09 Richard Guenther <rguenther@suse.de>
11862
11863 PR middle-end/34458
11864 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
11865 adjust return type.
11866
11867 2008-01-09 Richard Guenther <rguenther@suse.de>
11868
11869 PR middle-end/34679
11870 * tree.c (host_integerp): Check for sizetype only if the
11871 type is an integer type.
11872
11873 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
11874
11875 PR debug/26364
11876 * opts.c (decode_options): Disable inlining of functions called
11877 once if not in unit-at-a-time mode.
11878
11879 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
11880
11881 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
11882
11883 2008-01-08 Richard Guenther <rguenther@suse.de>
11884
11885 PR middle-end/31863
11886 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
11887 out early if the result will be unused.
11888
11889 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
11890
11891 PR target/34709
11892 Revert:
11893
11894 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
11895 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
11896 for TARGET_RECIP.
11897
11898 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
11899
11900 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
11901 for vectorization tuned.
11902
11903 2008-01-08 Richard Guenther <rguenther@suse.de>
11904
11905 PR tree-optimization/34683
11906 * tree-ssa-operands.c (operand_build_cmp): Export.
11907 * tree-ssa-operands.h (operand_build_cmp): Declare.
11908 * tree-vn.c (vuses_compare): Remove.
11909 (sort_vuses): Use operand_build_cmp.
11910 (sort_vuses_heap): Likewise.
11911 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
11912 to re-use old VEC if available. Do not sort already sorted VUSEs.
11913 (vdefs_to_vec): Do not sort already sorted VDEFs.
11914
11915 2008-01-08 Jakub Jelinek <jakub@redhat.com>
11916
11917 PR middle-end/34694
11918 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
11919
11920 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
11921
11922 PR target/34702
11923 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
11924 limitations of reciprocal sequences on x86 targets.
11925
11926 2008-01-08 Richard Guenther <rguenther@suse.de>
11927
11928 PR tree-optimization/34683
11929 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
11930
11931 2008-01-07 Jakub Jelinek <jakub@redhat.com>
11932
11933 PR target/34622
11934 * config/darwin.c (darwin_mergeable_string_section): Don't use
11935 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
11936
11937 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
11938
11939 PR target/34682
11940 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
11941 negxf2. Macroize expander using X87MODEF mode iterator. Change
11942 predicates of op0 and op1 to register_operand.
11943 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
11944 expander using X87MODEF mode iterator. Change predicates of
11945 op0 and op1 to register_operand.
11946 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
11947 corresponding patterns and macroize using MODEF macro. Change
11948 predicates of op0 and op1 to register_operand and remove
11949 "m" constraint. Disparage "r" alternative with "!".
11950 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
11951 macroize using X87MODEF macro. Change predicates of op0 and op1
11952 to register_operand and remove "m" constraint. Disparage "r"
11953 alternative with "!".
11954 (absneg splitter with memory operands): Remove.
11955 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
11956 patterns and macroize using X87MODEF mode iterator.
11957 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
11958 Change predicate of op1 to register_operand.
11959 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
11960 for memory operands.
11961
11962 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
11963
11964 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
11965
11966 2008-01-07 Richard Guenther <rguenther@suse.de>
11967
11968 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
11969 fields.
11970
11971 2008-01-07 Richard Guenther <rguenther@suse.de>
11972
11973 PR tree-optimization/34683
11974 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
11975 VOPs of the needed size to save memory. Use VEC_quick_push
11976 to save compile-time.
11977 (vdefs_to_vec): Likewise.
11978
11979 2008-01-07 Sa Liu <saliu@de.ibm.com>
11980
11981 * config/spu/spu.md (divdf3): Genetate inline code for double
11982 division. The implementation doesn't handle INF or NAN, therefore it
11983 only applies when -ffinite-math-only is given.
11984
11985 2008-01-06 Paolo Carlini <pcarlini@suse.de>
11986
11987 PR libstdc++/34680
11988 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
11989 * doc/cpp.texi ([Common Predefined Macros]): Document.
11990
11991 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
11992
11993 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
11994 order to use commutative addition instead of subtraction.
11995
11996 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
11997 Mircea Namolaru <namolaru@il.ibm.com>
11998 Vladimir Yanovsky <yanov@il.ibm.com>
11999 Revital Eres <eres@il.ibm.com>
12000
12001 PR tree-optimization/34263
12002 * tree-outof-ssa.c (process_single_block_loop_latch,
12003 contains_tree_r): New functions.
12004 (analyze_edges_for_bb): Call process_single_block_loop_latch
12005 function to empty single-basic-block latch block if possible.
12006
12007 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
12008
12009 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
12010 for TARGET_RECIP.
12011 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
12012
12013 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
12014
12015 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
12016
12017 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
12018
12019 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
12020
12021 2008-01-05 Jakub Jelinek <jakub@redhat.com>
12022
12023 PR tree-optimization/34618
12024 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
12025 flag from T.
12026
12027 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
12028
12029 PR target/34673
12030 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
12031 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
12032 Update copyright year.
12033
12034 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
12035 Update copyright year.
12036 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
12037 using NR fixup.
12038
12039 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
12040
12041 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
12042 edge does not point to current bb before changing need_assert.
12043
12044 2008-01-04 Richard Guenther <rguenther@suse.de>
12045
12046 PR middle-end/34029
12047 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
12048 for verifying purposes if they are is_gimple_min_invariant.
12049
12050 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
12051
12052 PR tree-optimization/34448
12053 PR tree-optimization/34465
12054 * gimplify.c (gimplify_init_constructor): Add new parameter
12055 notify_temp_creation. Use it.
12056 (gimplify_modify_expr_rhs): Take volatiles into account when
12057 optimizing constructors.
12058 Do not optimize constructors if gimplify_init_constructor will dump to
12059 memory.
12060 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
12061 * gcc.c-torture/compile/pr34448.c: New.
12062
12063 2008-01-04 Jakub Jelinek <jakub@redhat.com>
12064
12065 PR gcov-profile/34609
12066 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
12067 return_slot if result is TREE_ADDRESSABLE.
12068
12069 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
12070
12071 * config/mips/mips.md (sqrt_condition): Tweak comment.
12072 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
12073
12074 2008-01-03 Tom Tromey <tromey@redhat.com>
12075
12076 PR c/34457
12077 * c-common.c (c_type_hash): Handle VLAs.
12078
12079 2008-01-03 Jan Hubicka <jh@suse.cz>
12080
12081 PR tree-optimization/31081
12082 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
12083 0 when inlining and not inlining to first basic block.
12084 (remap_decl): When var is initialized to 0, don't set default_def.
12085 (expand_call_inline): Set entry_bb.
12086 * tree-inline.h (copy_body_data): Add entry_bb.
12087
12088 2008-01-03 Jakub Jelinek <jakub@redhat.com>
12089
12090 PR c++/34619
12091 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
12092 before returning.
12093
12094 PR tree-optimization/29484
12095 * tree-inline.c (inline_forbidden_p_2): New function.
12096 (inline_forbidden_p): Disallow inlining if some static var
12097 has an address of a local LABEL_DECL in its initializer.
12098 * doc/extend.texi (Labels as Values): Document &&foo behaviour
12099 vs. inlining.
12100
12101 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
12102
12103 PR tree-optimization/34635
12104 * tree-data-ref.c (add_other_self_distances): Make sure that the
12105 evolution step is constant.
12106
12107 2008-01-03 Jakub Jelinek <jakub@redhat.com>
12108
12109 PR middle-end/34608
12110 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
12111
12112 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
12113
12114 * tree-sra.c (scalarize_init): Insert the generate_element_init
12115 statements after the generate_element_zero statements.
12116
12117 2008-01-02 Richard Guenther <rguenther@suse.de>
12118
12119 PR middle-end/34093
12120 PR middle-end/31976
12121 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
12122 for very large number of operands instead of ICEing.
12123
12124 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
12125
12126 PR target/34013
12127 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
12128 while stack probing.
12129
12130 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
12131
12132 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
12133 in C++0x mode.
12134
12135 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
12136
12137 PR libmudflap/26442
12138 * tree-mudflap.c (mx_register_decls): Guard warning by
12139 !DECL_ARTIFICIAL check.
12140
12141 2008-01-01 Jakub Jelinek <jakub@redhat.com>
12142
12143 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
12144 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
12145 sse5_perm<mode>): Fix constraints.